@adyen/bento-vue2 1.59.0 → 1.60.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/package.json +12 -8
- package/dist/@types/components.d.ts +0 -201
- package/dist/@types/index.d.ts +0 -17671
- package/dist/accordion.js +0 -6
- package/dist/accordion.js.map +0 -1
- package/dist/action-bar.js +0 -5
- package/dist/action-bar.js.map +0 -1
- package/dist/alert.js +0 -8
- package/dist/alert.js.map +0 -1
- package/dist/assets/accordion-item.css +0 -1
- package/dist/assets/action-bar.css +0 -1
- package/dist/assets/alert.css +0 -1
- package/dist/assets/avatar.css +0 -1
- package/dist/assets/base-button.css +0 -1
- package/dist/assets/base-modal.css +0 -1
- package/dist/assets/button-actions-with-menu.css +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/button.css +0 -1
- package/dist/assets/calendar.css +0 -1
- package/dist/assets/card.css +0 -1
- package/dist/assets/checkbox-group.css +0 -1
- package/dist/assets/checkbox-input.css +0 -1
- package/dist/assets/checkbox.css +0 -1
- package/dist/assets/chip.css +0 -1
- package/dist/assets/code-snippet.css +0 -1
- package/dist/assets/controls-group.css +0 -1
- package/dist/assets/copy.css +0 -1
- package/dist/assets/country.css +0 -1
- package/dist/assets/currency.css +0 -1
- package/dist/assets/dashboard-section.css +0 -1
- package/dist/assets/dashed-underline.css +0 -1
- package/dist/assets/data-grid-template.css +0 -1
- package/dist/assets/data-grid.css +0 -1
- package/dist/assets/date-picker.css +0 -1
- package/dist/assets/date-range-picker.css +0 -1
- package/dist/assets/date.css +0 -1
- package/dist/assets/dialog-page.css +0 -1
- package/dist/assets/divider.css +0 -1
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/assets/dropdown-tag.css +0 -1
- package/dist/assets/dropdown.css +0 -1
- package/dist/assets/empty-state.css +0 -1
- package/dist/assets/error-message.css +0 -1
- package/dist/assets/file-uploader.css +0 -1
- package/dist/assets/filter-bar.css +0 -1
- package/dist/assets/fixed-scroller.css +0 -1
- package/dist/assets/focus-trap.css +0 -1
- package/dist/assets/footer-actions.css +0 -1
- package/dist/assets/form-layout-title.css +0 -1
- package/dist/assets/grid-layout.css +0 -1
- package/dist/assets/header-with-views.css +0 -1
- package/dist/assets/header.css +0 -1
- package/dist/assets/info-icon-with-popover.css +0 -1
- package/dist/assets/info-icon.css +0 -1
- package/dist/assets/input-field-password.css +0 -1
- package/dist/assets/input-field-phone-number.css +0 -1
- package/dist/assets/input-field.css +0 -1
- package/dist/assets/inspector.css +0 -1
- package/dist/assets/layout-row.css +0 -1
- package/dist/assets/link.css +0 -1
- package/dist/assets/listbox-option-tag.css +0 -1
- package/dist/assets/loading-indicator.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/modal-fullscreen.css +0 -1
- package/dist/assets/pagination.css +0 -1
- package/dist/assets/payment-method.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/popper-container.css +0 -1
- package/dist/assets/promo-banner.css +0 -1
- package/dist/assets/radio-group.css +0 -1
- package/dist/assets/radio-input.css +0 -1
- package/dist/assets/rich-text-editor.css +0 -1
- package/dist/assets/search-bar.css +0 -1
- package/dist/assets/secondary-nav.css +0 -1
- package/dist/assets/segmented-control.css +0 -1
- package/dist/assets/selection-card-group.css +0 -1
- package/dist/assets/sidepanel.css +0 -1
- package/dist/assets/status.css +0 -1
- package/dist/assets/step.css +0 -1
- package/dist/assets/structured-list-item.css +0 -1
- package/dist/assets/summary-grid.css +0 -1
- package/dist/assets/tabs.css +0 -1
- package/dist/assets/tag.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/assets/textarea.css +0 -1
- package/dist/assets/timeline-item.css +0 -1
- package/dist/assets/toast.css +0 -1
- package/dist/assets/toggle-button.css +0 -1
- package/dist/assets/toggle.css +0 -1
- package/dist/assets/tooltip.css +0 -1
- package/dist/assets/tutorial.css +0 -1
- package/dist/assets/typography.css +0 -1
- package/dist/assets/use-cached-selected-values.css +0 -1
- package/dist/avatar.js +0 -5
- package/dist/avatar.js.map +0 -1
- package/dist/button.js +0 -16
- package/dist/button.js.map +0 -1
- package/dist/card.js +0 -7
- package/dist/card.js.map +0 -1
- package/dist/checkbox.js +0 -11
- package/dist/checkbox.js.map +0 -1
- package/dist/chip.js +0 -5
- package/dist/chip.js.map +0 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
- package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
- package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
- package/dist/chunks/accordion-item.C4tyRMCt.js +0 -116
- package/dist/chunks/accordion-item.C4tyRMCt.js.map +0 -1
- package/dist/chunks/action-bar.CHVePTM6.js +0 -161
- package/dist/chunks/action-bar.CHVePTM6.js.map +0 -1
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
- package/dist/chunks/alert.Du9NfW-V.js +0 -103
- package/dist/chunks/alert.Du9NfW-V.js.map +0 -1
- package/dist/chunks/aria-label.CaUURpnB.js +0 -13
- package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
- package/dist/chunks/avatar.BgwjpLQO.js +0 -71
- package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
- package/dist/chunks/base-button.-gx_u8Bd.js +0 -86
- package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
- package/dist/chunks/base-modal.DxywEyGO.js +0 -373
- package/dist/chunks/base-modal.DxywEyGO.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/bin.DuebwJYu.js +0 -24
- package/dist/chunks/bin.DuebwJYu.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js +0 -166
- package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js.map +0 -1
- package/dist/chunks/button-actions.V0te_IrY.js +0 -194
- package/dist/chunks/button-actions.V0te_IrY.js.map +0 -1
- package/dist/chunks/button.BuD-IsW5.js +0 -99
- package/dist/chunks/button.BuD-IsW5.js.map +0 -1
- package/dist/chunks/calendar.C4vFYvsY.js +0 -1166
- package/dist/chunks/calendar.C4vFYvsY.js.map +0 -1
- package/dist/chunks/card.CC4BEw-7.js +0 -123
- package/dist/chunks/card.CC4BEw-7.js.map +0 -1
- package/dist/chunks/checkbox-group.BfPZ_Eec.js +0 -152
- package/dist/chunks/checkbox-group.BfPZ_Eec.js.map +0 -1
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js +0 -137
- package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +0 -1
- package/dist/chunks/checkbox.CTeT6JEP.js +0 -176
- package/dist/chunks/checkbox.CTeT6JEP.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +0 -24
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +0 -1
- package/dist/chunks/checkmark-small.C8T8ISN6.js +0 -24
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +0 -1
- package/dist/chunks/chevron-left.DOMTgGel.js +0 -43
- package/dist/chunks/chevron-left.DOMTgGel.js.map +0 -1
- package/dist/chunks/chevron-up.CSVyoaTy.js +0 -43
- package/dist/chunks/chevron-up.CSVyoaTy.js.map +0 -1
- package/dist/chunks/chip.bZEhHfIk.js +0 -63
- package/dist/chunks/chip.bZEhHfIk.js.map +0 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
- package/dist/chunks/code-snippet.0x8O1dkV.js +0 -259
- package/dist/chunks/code-snippet.0x8O1dkV.js.map +0 -1
- package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
- package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
- package/dist/chunks/controls-group.CvpddKxq.js +0 -81
- package/dist/chunks/controls-group.CvpddKxq.js.map +0 -1
- package/dist/chunks/copy.TvI9Au3G.js +0 -129
- package/dist/chunks/copy.TvI9Au3G.js.map +0 -1
- package/dist/chunks/country.Df7erZov.js +0 -94
- package/dist/chunks/country.Df7erZov.js.map +0 -1
- package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +0 -24
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +0 -1
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +0 -24
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +0 -1
- package/dist/chunks/cross-small.CZqsjZDz.js +0 -24
- package/dist/chunks/cross-small.CZqsjZDz.js.map +0 -1
- package/dist/chunks/cross.CJ5EEL2c.js +0 -24
- package/dist/chunks/cross.CJ5EEL2c.js.map +0 -1
- package/dist/chunks/currency.B1F9YOIx.js +0 -106
- package/dist/chunks/currency.B1F9YOIx.js.map +0 -1
- package/dist/chunks/dashboard-section.C5zXN82c.js +0 -102
- package/dist/chunks/dashboard-section.C5zXN82c.js.map +0 -1
- package/dist/chunks/dashed-underline.pd87ohFZ.js +0 -65
- package/dist/chunks/dashed-underline.pd87ohFZ.js.map +0 -1
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
- package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
- package/dist/chunks/data-grid-template.l-aJapU0.js +0 -84
- package/dist/chunks/data-grid-template.l-aJapU0.js.map +0 -1
- package/dist/chunks/data-grid.vFEU_kt8.js +0 -2782
- package/dist/chunks/data-grid.vFEU_kt8.js.map +0 -1
- package/dist/chunks/date-input.BqBdAO1E.js +0 -17
- package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
- package/dist/chunks/date-picker.DjbZAEcj.js +0 -235
- package/dist/chunks/date-picker.DjbZAEcj.js.map +0 -1
- package/dist/chunks/date-range-picker.C1ijTRdf.js +0 -966
- package/dist/chunks/date-range-picker.C1ijTRdf.js.map +0 -1
- package/dist/chunks/date.dYFFEunA.js +0 -987
- package/dist/chunks/date.dYFFEunA.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.uGh0kYDL.js +0 -131
- package/dist/chunks/dialog-page.uGh0kYDL.js.map +0 -1
- package/dist/chunks/directive.Cbdox5VL.js +0 -23
- package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
- package/dist/chunks/divider.Cc4JFWG_.js +0 -35
- package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
- package/dist/chunks/dot.CnkXzRn3.js +0 -24
- package/dist/chunks/dot.CnkXzRn3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +0 -348
- package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +0 -1
- package/dist/chunks/dropdown-tag.CXY_WiRj.js +0 -215
- package/dist/chunks/dropdown-tag.CXY_WiRj.js.map +0 -1
- package/dist/chunks/dropdown.DYN8Okpo.js +0 -818
- package/dist/chunks/dropdown.DYN8Okpo.js.map +0 -1
- package/dist/chunks/empty-state.IvvHHQ35.js +0 -151
- package/dist/chunks/empty-state.IvvHHQ35.js.map +0 -1
- package/dist/chunks/error-message.BM8Y6-u5.js +0 -121
- package/dist/chunks/error-message.BM8Y6-u5.js.map +0 -1
- package/dist/chunks/es6.BA9GH7QZ.js +0 -11
- package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
- package/dist/chunks/events.CMzGybJJ.js +0 -47
- package/dist/chunks/events.CMzGybJJ.js.map +0 -1
- package/dist/chunks/expand.C263WARj.js +0 -24
- package/dist/chunks/expand.C263WARj.js.map +0 -1
- package/dist/chunks/file-uploader.pWrwnN-c.js +0 -1913
- package/dist/chunks/file-uploader.pWrwnN-c.js.map +0 -1
- package/dist/chunks/filter-bar.BYHzhAr8.js +0 -2288
- package/dist/chunks/filter-bar.BYHzhAr8.js.map +0 -1
- package/dist/chunks/fixed-scroller.D0a6q8_i.js +0 -106
- package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +0 -1
- package/dist/chunks/focus-trap.DKT1Fe6X.js +0 -499
- package/dist/chunks/focus-trap.DKT1Fe6X.js.map +0 -1
- package/dist/chunks/footer-actions.Cn-793_Z.js +0 -96
- package/dist/chunks/footer-actions.Cn-793_Z.js.map +0 -1
- package/dist/chunks/form-layout-title.DBCY18f8.js +0 -190
- package/dist/chunks/form-layout-title.DBCY18f8.js.map +0 -1
- package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
- package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
- package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
- package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
- package/dist/chunks/grid-layout.HvTAa4to.js +0 -76
- package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
- package/dist/chunks/header-with-views.Cqd864mp.js +0 -1536
- package/dist/chunks/header-with-views.Cqd864mp.js.map +0 -1
- package/dist/chunks/header.Ds1iyTzn.js +0 -187
- package/dist/chunks/header.Ds1iyTzn.js.map +0 -1
- package/dist/chunks/i18n.BQkEbtPM.js +0 -31
- package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
- package/dist/chunks/image.C2D2hKat.js +0 -56
- package/dist/chunks/image.C2D2hKat.js.map +0 -1
- package/dist/chunks/index.BDuTpjD8.js +0 -40
- package/dist/chunks/index.BDuTpjD8.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/index.Cl4_42j5.js +0 -8
- package/dist/chunks/index.Cl4_42j5.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/index.oJzeCMPe.js +0 -529
- package/dist/chunks/index.oJzeCMPe.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.yLETQrb9.js +0 -71
- package/dist/chunks/info-icon-with-popover.yLETQrb9.js.map +0 -1
- package/dist/chunks/info-icon.G9FAlO4C.js +0 -41
- package/dist/chunks/info-icon.G9FAlO4C.js.map +0 -1
- package/dist/chunks/info.4d_mJHvT.js +0 -24
- package/dist/chunks/info.4d_mJHvT.js.map +0 -1
- package/dist/chunks/input-field-password.C1OF1nmo.js +0 -251
- package/dist/chunks/input-field-password.C1OF1nmo.js.map +0 -1
- package/dist/chunks/input-field-phone-number.Dfa1fxvS.js +0 -3097
- package/dist/chunks/input-field-phone-number.Dfa1fxvS.js.map +0 -1
- package/dist/chunks/input-field.C9-4Xo4h.js +0 -152
- package/dist/chunks/input-field.C9-4Xo4h.js.map +0 -1
- package/dist/chunks/inspector.types.NVDCPiVL.js +0 -104
- package/dist/chunks/inspector.types.NVDCPiVL.js.map +0 -1
- package/dist/chunks/internal-error.BLZodVBE.js +0 -5
- package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
- package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
- package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
- package/dist/chunks/keyboard-navigation.pB8weElW.js +0 -66
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +0 -1
- package/dist/chunks/layout-row.c0ugsIw6.js +0 -87
- package/dist/chunks/layout-row.c0ugsIw6.js.map +0 -1
- package/dist/chunks/link.D0P79Toh.js +0 -95
- package/dist/chunks/link.D0P79Toh.js.map +0 -1
- package/dist/chunks/listbox-option-tag.BcLYsizL.js +0 -44
- package/dist/chunks/listbox-option-tag.BcLYsizL.js.map +0 -1
- package/dist/chunks/loading-indicator.z8COalOc.js +0 -48
- package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
- package/dist/chunks/menu.DDXB-L8u.js +0 -601
- package/dist/chunks/menu.DDXB-L8u.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal-fullscreen.os2jZ30i.js +0 -202
- package/dist/chunks/modal-fullscreen.os2jZ30i.js.map +0 -1
- package/dist/chunks/modal.D5OesJnF.js +0 -445
- package/dist/chunks/modal.D5OesJnF.js.map +0 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
- package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
- package/dist/chunks/pagination.BoWzbJVF.js +0 -338
- package/dist/chunks/pagination.BoWzbJVF.js.map +0 -1
- package/dist/chunks/payment-method.Cx4nPDtE.js +0 -76
- package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
- package/dist/chunks/popover.K53VtitI.js +0 -295
- package/dist/chunks/popover.K53VtitI.js.map +0 -1
- package/dist/chunks/popper-container.DUNt7nKd.js +0 -1393
- package/dist/chunks/popper-container.DUNt7nKd.js.map +0 -1
- package/dist/chunks/promo-banner.BpLrkuMc.js +0 -70
- package/dist/chunks/promo-banner.BpLrkuMc.js.map +0 -1
- package/dist/chunks/radio-group.BE8gvwsL.js +0 -229
- package/dist/chunks/radio-group.BE8gvwsL.js.map +0 -1
- package/dist/chunks/radio-input.uJAhxKRs.js +0 -90
- package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
- package/dist/chunks/referrals.BvtT-kQS.js +0 -5
- package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
- package/dist/chunks/referrals.aX8WZigH.js +0 -5
- package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
- package/dist/chunks/refresh.Bc9FzGjJ.js +0 -24
- package/dist/chunks/refresh.Bc9FzGjJ.js.map +0 -1
- package/dist/chunks/resize.Bqks3WUm.js +0 -15
- package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
- package/dist/chunks/rich-text-editor.CP_xdt6R.js +0 -6203
- package/dist/chunks/rich-text-editor.CP_xdt6R.js.map +0 -1
- package/dist/chunks/search-bar.I2f0f4fU.js +0 -97
- package/dist/chunks/search-bar.I2f0f4fU.js.map +0 -1
- package/dist/chunks/search.DLtglc02.js +0 -24
- package/dist/chunks/search.DLtglc02.js.map +0 -1
- package/dist/chunks/secondary-nav.D1-GnlU-.js +0 -112
- package/dist/chunks/secondary-nav.D1-GnlU-.js.map +0 -1
- package/dist/chunks/segmented-control.A2eatwIG.js +0 -112
- package/dist/chunks/segmented-control.A2eatwIG.js.map +0 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
- package/dist/chunks/selection-card-group.CFNCbcRU.js +0 -299
- package/dist/chunks/selection-card-group.CFNCbcRU.js.map +0 -1
- package/dist/chunks/show.e4LEpZKG.js +0 -43
- package/dist/chunks/show.e4LEpZKG.js.map +0 -1
- package/dist/chunks/sidepanel.CGGRp0oL.js +0 -210
- package/dist/chunks/sidepanel.CGGRp0oL.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.p_TCvoo0.js +0 -36
- package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
- package/dist/chunks/step.CuOpi-Ye.js +0 -217
- package/dist/chunks/step.CuOpi-Ye.js.map +0 -1
- package/dist/chunks/structured-list-item.C8K371Ss.js +0 -87
- package/dist/chunks/structured-list-item.C8K371Ss.js.map +0 -1
- package/dist/chunks/success.DhioLvPD.js +0 -5
- package/dist/chunks/success.DhioLvPD.js.map +0 -1
- package/dist/chunks/success.nNwxJRBS.js +0 -5
- package/dist/chunks/success.nNwxJRBS.js.map +0 -1
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
- package/dist/chunks/summary-grid.types.DdghLR6f.js +0 -301
- package/dist/chunks/summary-grid.types.DdghLR6f.js.map +0 -1
- package/dist/chunks/tabs.DX_Gq12z.js +0 -205
- package/dist/chunks/tabs.DX_Gq12z.js.map +0 -1
- package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
- package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
- package/dist/chunks/tag.B2vxWwV1.js +0 -44
- package/dist/chunks/tag.B2vxWwV1.js.map +0 -1
- package/dist/chunks/teleport.BV6zrDjA.js +0 -128
- package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
- package/dist/chunks/textarea.DPa9t8Jw.js +0 -200
- package/dist/chunks/textarea.DPa9t8Jw.js.map +0 -1
- package/dist/chunks/timeline-item.D2534IA9.js +0 -386
- package/dist/chunks/timeline-item.D2534IA9.js.map +0 -1
- package/dist/chunks/toast.B2u2W_TQ.js +0 -171
- package/dist/chunks/toast.B2u2W_TQ.js.map +0 -1
- package/dist/chunks/toggle-button.ChDbeBZ8.js +0 -83
- package/dist/chunks/toggle-button.ChDbeBZ8.js.map +0 -1
- package/dist/chunks/toggle.Q52IIKfi.js +0 -121
- package/dist/chunks/toggle.Q52IIKfi.js.map +0 -1
- package/dist/chunks/tooltip.B8nCejpo.js +0 -189
- package/dist/chunks/tooltip.B8nCejpo.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.X3GhtKlY.js +0 -348
- package/dist/chunks/tutorial.X3GhtKlY.js.map +0 -1
- package/dist/chunks/typography.J1v_SPG3.js +0 -87
- package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
- package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
- package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
- package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
- package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +0 -52
- package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C6VRhL5_.js +0 -1177
- package/dist/chunks/use-cached-selected-values.C6VRhL5_.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
- package/dist/chunks/use-country-items.HFnjuDsG.js +0 -30
- package/dist/chunks/use-country-items.HFnjuDsG.js.map +0 -1
- package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
- package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +0 -13
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +0 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
- package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +0 -1
- package/dist/chunks/warning-filled.Cd0kVWwa.js +0 -24
- package/dist/chunks/warning-filled.Cd0kVWwa.js.map +0 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
- package/dist/click-outside.js +0 -5
- package/dist/click-outside.js.map +0 -1
- package/dist/code-snippet.js +0 -8
- package/dist/code-snippet.js.map +0 -1
- package/dist/country.js +0 -12
- package/dist/country.js.map +0 -1
- package/dist/currency.js +0 -6
- package/dist/currency.js.map +0 -1
- package/dist/dashboard-template.js +0 -6
- package/dist/dashboard-template.js.map +0 -1
- package/dist/dashed-underline.js +0 -5
- package/dist/dashed-underline.js.map +0 -1
- package/dist/data-grid-template.js +0 -5
- package/dist/data-grid-template.js.map +0 -1
- package/dist/data-grid.js +0 -11
- package/dist/data-grid.js.map +0 -1
- package/dist/date-picker.js +0 -8
- package/dist/date-picker.js.map +0 -1
- package/dist/date-range-picker.js +0 -8
- package/dist/date-range-picker.js.map +0 -1
- package/dist/date.js +0 -6
- package/dist/date.js.map +0 -1
- package/dist/divider.js +0 -5
- package/dist/divider.js.map +0 -1
- package/dist/dropdown.js +0 -16
- package/dist/dropdown.js.map +0 -1
- package/dist/empty-state.js +0 -8
- package/dist/empty-state.js.map +0 -1
- package/dist/file-uploader.js +0 -5
- package/dist/file-uploader.js.map +0 -1
- package/dist/filter-bar.js +0 -8
- package/dist/filter-bar.js.map +0 -1
- package/dist/focus-trap.js +0 -5
- package/dist/focus-trap.js.map +0 -1
- package/dist/fonts/fonts.css +0 -2
- package/dist/form-layout.js +0 -8
- package/dist/form-layout.js.map +0 -1
- package/dist/header-with-views.js +0 -5
- package/dist/header-with-views.js.map +0 -1
- package/dist/header.js +0 -5
- package/dist/header.js.map +0 -1
- package/dist/image.js +0 -7
- package/dist/image.js.map +0 -1
- package/dist/index.js +0 -371
- package/dist/index.js.map +0 -1
- package/dist/info-icon.js +0 -5
- package/dist/info-icon.js.map +0 -1
- package/dist/input-field-password.js +0 -10
- package/dist/input-field-password.js.map +0 -1
- package/dist/input-field-phone-number.js +0 -5
- package/dist/input-field-phone-number.js.map +0 -1
- package/dist/input-field.js +0 -10
- package/dist/input-field.js.map +0 -1
- package/dist/inspector.js +0 -6
- package/dist/inspector.js.map +0 -1
- package/dist/internal.js +0 -43
- package/dist/internal.js.map +0 -1
- package/dist/layout.js +0 -6
- package/dist/layout.js.map +0 -1
- package/dist/link.js +0 -6
- package/dist/link.js.map +0 -1
- package/dist/loading-indicator.js +0 -6
- package/dist/loading-indicator.js.map +0 -1
- package/dist/menu.js +0 -6
- package/dist/menu.js.map +0 -1
- package/dist/modal-fullscreen.js +0 -6
- package/dist/modal-fullscreen.js.map +0 -1
- package/dist/modal.js +0 -14
- package/dist/modal.js.map +0 -1
- package/dist/pagination.js +0 -5
- package/dist/pagination.js.map +0 -1
- package/dist/payment-method.js +0 -7
- package/dist/payment-method.js.map +0 -1
- package/dist/popover.js +0 -6
- package/dist/popover.js.map +0 -1
- package/dist/popper-container.js +0 -9
- package/dist/popper-container.js.map +0 -1
- package/dist/promo-banner.js +0 -7
- package/dist/promo-banner.js.map +0 -1
- package/dist/radio-group.js +0 -9
- package/dist/radio-group.js.map +0 -1
- package/dist/rich-text-editor.js +0 -5
- package/dist/rich-text-editor.js.map +0 -1
- package/dist/search-bar.js +0 -9
- package/dist/search-bar.js.map +0 -1
- package/dist/secondary-nav.js +0 -5
- package/dist/secondary-nav.js.map +0 -1
- package/dist/segmented-control.js +0 -7
- package/dist/segmented-control.js.map +0 -1
- package/dist/selection-card.js +0 -7
- package/dist/selection-card.js.map +0 -1
- package/dist/sidepanel.js +0 -7
- package/dist/sidepanel.js.map +0 -1
- package/dist/status.js +0 -6
- package/dist/status.js.map +0 -1
- package/dist/stepper.js +0 -8
- package/dist/stepper.js.map +0 -1
- package/dist/structured-list.js +0 -6
- package/dist/structured-list.js.map +0 -1
- package/dist/styles/bento-dark.css +0 -2055
- package/dist/styles/bento-light.css +0 -2054
- package/dist/styles/bento.css +0 -2054
- package/dist/styles/legacy.css +0 -2209
- package/dist/styles/styleguide.css +0 -2109
- package/dist/styles/utility.css +0 -987
- package/dist/summary-grid.js +0 -12
- package/dist/summary-grid.js.map +0 -1
- package/dist/tabs.js +0 -6
- package/dist/tabs.js.map +0 -1
- package/dist/tag.js +0 -6
- package/dist/tag.js.map +0 -1
- package/dist/textarea.js +0 -5
- package/dist/textarea.js.map +0 -1
- package/dist/timeline.js +0 -10
- package/dist/timeline.js.map +0 -1
- package/dist/toast.js +0 -5
- package/dist/toast.js.map +0 -1
- package/dist/toggle.js +0 -7
- package/dist/toggle.js.map +0 -1
- package/dist/tutorial.js +0 -5
- package/dist/tutorial.js.map +0 -1
- package/dist/typography.js +0 -8
- package/dist/typography.js.map +0 -1
- package/dist/use-form-v4.js +0 -8300
- package/dist/use-form-v4.js.map +0 -1
- package/dist/web-types.json +0 -15172
|
@@ -1,2782 +0,0 @@
|
|
|
1
|
-
import { ref as E, onMounted as Te, nextTick as se, watch as te, onUnmounted as ut, reactive as Ie, toRefs as De, computed as w, watchEffect as mn, onBeforeUpdate as pn, defineComponent as ae, toRef as be, useSlots as xe, provide as ft, inject as Ae } from "vue";
|
|
2
|
-
import { C as wn } from "./checkmark-circle-fill.DZBl7CeY.js";
|
|
3
|
-
import { W as Sn } from "./warning-filled.Cd0kVWwa.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { n as q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { C as gt } from "./cross.CJ5EEL2c.js";
|
|
7
|
-
import { N as Ye } from "./checkbox-input.Dr1GS2BZ.js";
|
|
8
|
-
import { d as En } from "./popper-container.DUNt7nKd.js";
|
|
9
|
-
import { E as re, B as Ln } from "./tooltip.B8nCejpo.js";
|
|
10
|
-
import { B as yn } from "./action-bar.CHVePTM6.js";
|
|
11
|
-
import { B as Rn } from "./pagination.BoWzbJVF.js";
|
|
12
|
-
import { B as Fe } from "./loading-indicator.z8COalOc.js";
|
|
13
|
-
import { B as me, p as _t } from "./typography.J1v_SPG3.js";
|
|
14
|
-
import { u as Me } from "./use-has-slot.C9lQZ6nz.js";
|
|
15
|
-
import { u as bn } from "./aria-label.CaUURpnB.js";
|
|
16
|
-
import { g as An } from "./get-slot-text.BQS5Olxm.js";
|
|
17
|
-
import { u as ge } from "./i18n.BQkEbtPM.js";
|
|
18
|
-
import { B as Re } from "./filter-bar.BYHzhAr8.js";
|
|
19
|
-
import { B as On } from "./empty-state.IvvHHQ35.js";
|
|
20
|
-
import { E as Nn } from "./tabs.keys.Bc2pSKRw.js";
|
|
21
|
-
import { D as Tn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
|
-
import { o as Be } from "./resize.Bqks3WUm.js";
|
|
23
|
-
import "./index.Cl4_42j5.js";
|
|
24
|
-
import { b as In } from "./focus-trap.DKT1Fe6X.js";
|
|
25
|
-
import { u as Dn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
26
|
-
import { g as Oe } from "./generate-uid.NJ8tVoha.js";
|
|
27
|
-
import { B as vt } from "./button.BuD-IsW5.js";
|
|
28
|
-
import { B as Ct, O as xn, D as Fn } from "./menu.DDXB-L8u.js";
|
|
29
|
-
import { E as Mn } from "./link.D0P79Toh.js";
|
|
30
|
-
import { C as Bn } from "./copy.TvI9Au3G.js";
|
|
31
|
-
import { B as ht } from "./checkbox.CTeT6JEP.js";
|
|
32
|
-
import { C as $n, a as zn } from "./chevron-up.CSVyoaTy.js";
|
|
33
|
-
import { B as $e } from "./toggle-button.ChDbeBZ8.js";
|
|
34
|
-
import { e as Pn, d as Un } from "./button-actions.V0te_IrY.js";
|
|
35
|
-
import { B as kn } from "./info-icon.G9FAlO4C.js";
|
|
36
|
-
import { a as Xe, B as Wn } from "./popover.K53VtitI.js";
|
|
37
|
-
import { A as Gn } from "./dialog-page.uGh0kYDL.js";
|
|
38
|
-
import { H as Hn, S as Vn } from "./show.e4LEpZKG.js";
|
|
39
|
-
import { l as Ke } from "./events.CMzGybJJ.js";
|
|
40
|
-
import { B as mt } from "./toggle.Q52IIKfi.js";
|
|
41
|
-
import { B as Zn } from "./search-bar.I2f0f4fU.js";
|
|
42
|
-
import { u as jn } from "./dropdown.DYN8Okpo.js";
|
|
43
|
-
import { S as qn } from "./search.DLtglc02.js";
|
|
44
|
-
import { B as Yn } from "./directive.Cbdox5VL.js";
|
|
45
|
-
import "../assets/data-grid.css";
|
|
46
|
-
const Je = (s) => {
|
|
47
|
-
if (!s)
|
|
48
|
-
return 0;
|
|
49
|
-
const t = window.getComputedStyle(s);
|
|
50
|
-
let n = s.offsetHeight;
|
|
51
|
-
const e = window.getComputedStyle(s, "::after");
|
|
52
|
-
if (e.content !== "none" && e.position === "absolute") {
|
|
53
|
-
const l = parseFloat(e.height), a = parseFloat(e.bottom);
|
|
54
|
-
!isNaN(l) && !isNaN(a) && a < 0 && a + l <= 0 && (n += l);
|
|
55
|
-
}
|
|
56
|
-
const o = parseFloat(t.top);
|
|
57
|
-
return !isNaN(o) && o < 0 && (n += o), n;
|
|
58
|
-
}, Qe = (s, t, n = E(!1), e = null) => {
|
|
59
|
-
const o = E(0);
|
|
60
|
-
let l = null, a = null;
|
|
61
|
-
const g = () => {
|
|
62
|
-
const v = t.value ? Je(s.value) : 0, f = n.value && e ? Je(e.value) : 0;
|
|
63
|
-
o.value = v + f;
|
|
64
|
-
};
|
|
65
|
-
return Te(() => {
|
|
66
|
-
se(() => {
|
|
67
|
-
const v = te(
|
|
68
|
-
s,
|
|
69
|
-
() => {
|
|
70
|
-
s != null && s.value && (se(() => v()), l = Be(s.value, g), a = new MutationObserver(g), a.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
71
|
-
},
|
|
72
|
-
{ immediate: !0 }
|
|
73
|
-
);
|
|
74
|
-
te(
|
|
75
|
-
[t, n],
|
|
76
|
-
() => {
|
|
77
|
-
g();
|
|
78
|
-
},
|
|
79
|
-
{ immediate: !0 }
|
|
80
|
-
);
|
|
81
|
-
});
|
|
82
|
-
}), ut(() => {
|
|
83
|
-
l == null || l.disconnect(), a == null || a.disconnect();
|
|
84
|
-
}), o;
|
|
85
|
-
};
|
|
86
|
-
var Ne = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Ne || {}), ce = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(ce || {}), fe = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(fe || {}), N = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(N || {}), he = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(he || {}), V = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(V || {});
|
|
87
|
-
const Xn = (s, t) => {
|
|
88
|
-
const n = E(null), e = E(!1), o = E(void 0), l = s.value.reduce((S, i) => (S[i.field] = null, S), {}), a = Ie(l), g = De(a);
|
|
89
|
-
let v = 0, f = "";
|
|
90
|
-
const L = w(
|
|
91
|
-
() => Object.fromEntries(s.value.map(({ field: S, width: i, minWidth: _ }) => [S, { width: i, minWidth: _ }]))
|
|
92
|
-
);
|
|
93
|
-
mn(() => o.value = L.value);
|
|
94
|
-
let c = null, A = null;
|
|
95
|
-
const m = (S) => {
|
|
96
|
-
const i = S.clientX - v, _ = f, C = o.value[_].width + i;
|
|
97
|
-
o.value[_].width = C > L.value[_].minWidth ? C : L.value[_].minWidth, t(V.COLUMN_RESIZING, o.value), v = S.clientX;
|
|
98
|
-
}, d = () => {
|
|
99
|
-
e.value = !1, c == null || c(), A == null || A(), f && t(V.COLUMN_RESIZE, {
|
|
100
|
-
field: f,
|
|
101
|
-
width: o.value[f].width
|
|
102
|
-
}), c = null, A = null, f = "", v = null;
|
|
103
|
-
}, h = (S, i, _) => {
|
|
104
|
-
if (_.preventDefault(), S) {
|
|
105
|
-
if (e.value = !0, _.buttons !== 1) {
|
|
106
|
-
d();
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
f = i, v = _.clientX, c = Ke(window, "mousemove", m), A = Ke(window, "mouseup", d);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
return te(
|
|
113
|
-
() => e.value,
|
|
114
|
-
(S, i) => {
|
|
115
|
-
!S && i && (t(V.COLUMN_HOVER, n.value), n.value = null);
|
|
116
|
-
}
|
|
117
|
-
), {
|
|
118
|
-
resizeData: o,
|
|
119
|
-
allColumnRefs: g,
|
|
120
|
-
startResize: h,
|
|
121
|
-
isResizing: e,
|
|
122
|
-
columnHoverEventToEmitAfterResizing: n
|
|
123
|
-
};
|
|
124
|
-
}, Kn = 100, et = 50, ee = "b-actions-column", Jn = 32, Qn = 56, es = 56, ts = 80, ns = 36, ss = 1, pt = 16, os = 20, ls = (s, t, n) => {
|
|
125
|
-
const e = {}, o = [], l = (g) => {
|
|
126
|
-
const v = e[g];
|
|
127
|
-
v && v.frozen !== !0 && (e[g].frozen = !0, o.push(g));
|
|
128
|
-
};
|
|
129
|
-
function a() {
|
|
130
|
-
if (o.length === n.length)
|
|
131
|
-
return;
|
|
132
|
-
const g = { min: {} };
|
|
133
|
-
let v = s, f = t, L = 0;
|
|
134
|
-
o.forEach((c) => {
|
|
135
|
-
v -= e[c].computedWidth, f -= e[c].flex;
|
|
136
|
-
});
|
|
137
|
-
for (let c = 0, A = n.length; c < A; c += 1) {
|
|
138
|
-
const m = n[c];
|
|
139
|
-
if (e[m.field] && e[m.field].frozen === !0)
|
|
140
|
-
continue;
|
|
141
|
-
let h = v / f * m.flex;
|
|
142
|
-
h < m.minWidth && (L += m.minWidth - h, h = m.minWidth, g.min[m.field] = !0), e[m.field] = {
|
|
143
|
-
frozen: !1,
|
|
144
|
-
computedWidth: h,
|
|
145
|
-
flex: m.flex
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
L > 0 ? Object.keys(g.min).forEach((c) => {
|
|
149
|
-
l(c);
|
|
150
|
-
}) : n.forEach(({ field: c }) => {
|
|
151
|
-
l(c);
|
|
152
|
-
}), a();
|
|
153
|
-
}
|
|
154
|
-
return a(), e;
|
|
155
|
-
}, tt = (s, t) => {
|
|
156
|
-
let n = ss;
|
|
157
|
-
return t && (n += pt * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
158
|
-
}, as = (s) => {
|
|
159
|
-
var t, n, e, o, l;
|
|
160
|
-
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? ts : es : ns : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? Qn : Jn;
|
|
161
|
-
}, is = (s, t, n, e, o, l) => {
|
|
162
|
-
const a = E(s.value), g = E(t), v = E(n), f = E(e), L = E(o), c = E(!1), A = E(0);
|
|
163
|
-
te(
|
|
164
|
-
() => s.value,
|
|
165
|
-
(u, R) => {
|
|
166
|
-
var G, Z;
|
|
167
|
-
const F = (u == null ? void 0 : u.map(({ field: H }) => H).toString()) === (R == null ? void 0 : R.map(({ field: H }) => H).toString());
|
|
168
|
-
if (!((G = l == null ? void 0 : l.allowColumnDragAndDrop) != null && G.value) || !F) {
|
|
169
|
-
a.value = s.value;
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
a.value = ((Z = a.value) == null ? void 0 : Z.length) === 0 ? s.value : s.value.sort((H, p) => {
|
|
173
|
-
const $ = a.value.findIndex((D) => D.field === H.field), x = a.value.findIndex((D) => D.field === p.field);
|
|
174
|
-
return $ === -1 ? 1 : x === -1 ? -1 : $ - x;
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
const m = E();
|
|
179
|
-
let d = null;
|
|
180
|
-
const h = w(() => {
|
|
181
|
-
var $, x, D;
|
|
182
|
-
const u = [];
|
|
183
|
-
let R = 0, F = 0;
|
|
184
|
-
const G = {};
|
|
185
|
-
let Z = a.value.filter((z) => z.visible !== !1);
|
|
186
|
-
const H = a.value.filter((z) => z.visible === !1);
|
|
187
|
-
if (($ = l == null ? void 0 : l.hasSelectableColumn) != null && $.value || (x = l == null ? void 0 : l.hasNestedContent) != null && x.value || (D = l == null ? void 0 : l.hasNestedRows) != null && D.value) {
|
|
188
|
-
const z = as(l);
|
|
189
|
-
Z = [
|
|
190
|
-
{
|
|
191
|
-
field: ee,
|
|
192
|
-
label: "",
|
|
193
|
-
minWidth: z,
|
|
194
|
-
width: z,
|
|
195
|
-
frozen: !0,
|
|
196
|
-
padding: { left: !1, right: !1 }
|
|
197
|
-
},
|
|
198
|
-
...Z
|
|
199
|
-
];
|
|
200
|
-
}
|
|
201
|
-
Z.forEach((z) => {
|
|
202
|
-
const M = { ...z };
|
|
203
|
-
let K;
|
|
204
|
-
M.flex && M.flex > 0 ? (R += M.flex, K = 0, u.push(M)) : K = Math.max(
|
|
205
|
-
(M == null ? void 0 : M.width) ?? Kn,
|
|
206
|
-
(M == null ? void 0 : M.minWidth) ?? et
|
|
207
|
-
), F += K, M.width = K, M.minWidth = (M == null ? void 0 : M.minWidth) ?? et, G[M.field] = M;
|
|
208
|
-
});
|
|
209
|
-
const p = Math.max(m.value - F, 0);
|
|
210
|
-
if (R > 0 && m.value > 0) {
|
|
211
|
-
const z = ls(p, R, u);
|
|
212
|
-
Object.keys(z).forEach((M) => {
|
|
213
|
-
G[M].width = z[M].computedWidth;
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
return H.forEach((z) => {
|
|
217
|
-
const M = { ...z };
|
|
218
|
-
G[M.field] = M;
|
|
219
|
-
}), Object.values(G);
|
|
220
|
-
}), S = E(void 0), i = (u) => {
|
|
221
|
-
S.value = { ...S.value, ...u };
|
|
222
|
-
}, _ = async () => {
|
|
223
|
-
a.value.some((u) => u == null ? void 0 : u.autoWidth) && (c.value = !0, await se(), a == null || a.value.filter((u) => u == null ? void 0 : u.autoWidth).forEach(({ field: u, minWidth: R }) => {
|
|
224
|
-
var H, p, $, x;
|
|
225
|
-
const F = tt(
|
|
226
|
-
(H = f.value) == null ? void 0 : H[u],
|
|
227
|
-
(p = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : p.value
|
|
228
|
-
), G = (x = ($ = L.value) == null ? void 0 : $[u]) == null ? void 0 : x.reduce(
|
|
229
|
-
(D, z) => Math.max(D, tt(z)),
|
|
230
|
-
0
|
|
231
|
-
), Z = Math.max(F, G ?? 0);
|
|
232
|
-
(R === void 0 || Z > R) && i({
|
|
233
|
-
[u]: {
|
|
234
|
-
width: Z
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
}), c.value = !1);
|
|
238
|
-
};
|
|
239
|
-
te([() => a.value, () => g.value], async () => {
|
|
240
|
-
a.value.some((u) => u == null ? void 0 : u.autoWidth) && await _();
|
|
241
|
-
});
|
|
242
|
-
const C = w(
|
|
243
|
-
() => h.value.map((u) => {
|
|
244
|
-
var R, F;
|
|
245
|
-
return {
|
|
246
|
-
...u,
|
|
247
|
-
// Override column width with resized ones
|
|
248
|
-
width: ((F = (R = S.value) == null ? void 0 : R[u.field]) == null ? void 0 : F.width) ?? u.width
|
|
249
|
-
};
|
|
250
|
-
})
|
|
251
|
-
), b = w(
|
|
252
|
-
() => {
|
|
253
|
-
var u;
|
|
254
|
-
return ((u = C.value) == null ? void 0 : u.filter(({ visible: R }) => R !== !1).reduce((R, F) => F.width + R, 0)) + A.value;
|
|
255
|
-
}
|
|
256
|
-
), O = w(
|
|
257
|
-
() => m.value <= b.value
|
|
258
|
-
), I = w(() => ({
|
|
259
|
-
width: m.value > b.value ? "100%" : "fit-content"
|
|
260
|
-
}));
|
|
261
|
-
return Te(() => {
|
|
262
|
-
var R;
|
|
263
|
-
const u = l != null && l.isDataGridTemplate ? os : 0;
|
|
264
|
-
se(() => {
|
|
265
|
-
v.value && (m.value = v.value.getBoundingClientRect().width - u);
|
|
266
|
-
const F = te(
|
|
267
|
-
v,
|
|
268
|
-
() => {
|
|
269
|
-
v.value && (se(() => F()), d = Be(v.value, ({ width: G }) => {
|
|
270
|
-
m.value = G - u;
|
|
271
|
-
}));
|
|
272
|
-
},
|
|
273
|
-
{ immediate: !0 }
|
|
274
|
-
);
|
|
275
|
-
}), (R = document == null ? void 0 : document.fonts) != null && R.ready ? document.fonts.ready.then(() => {
|
|
276
|
-
_();
|
|
277
|
-
}) : _();
|
|
278
|
-
}), ut(() => {
|
|
279
|
-
d == null || d.disconnect();
|
|
280
|
-
}), pn(() => {
|
|
281
|
-
var u;
|
|
282
|
-
L.value && ((u = Object.keys(L.value)) == null ? void 0 : u.length) > 0 && Object.keys(L.value).forEach((F) => {
|
|
283
|
-
L.value[F] = [];
|
|
284
|
-
});
|
|
285
|
-
}), {
|
|
286
|
-
columnDefs: C,
|
|
287
|
-
gridRowWidthStyle: I,
|
|
288
|
-
onColumnWidthOverride: i,
|
|
289
|
-
isMeasuringColumnWidths: c,
|
|
290
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
291
|
-
columns: a,
|
|
292
|
-
totalWidthOfAllColumns: b,
|
|
293
|
-
rowActionsMaxWidth: A
|
|
294
|
-
};
|
|
295
|
-
}, rs = (s, t, n, e, o) => {
|
|
296
|
-
const l = E(s.value ?? []), a = Ie({
|
|
297
|
-
allItemsSelected: !1,
|
|
298
|
-
isIndeterminate: !1
|
|
299
|
-
}), g = w(
|
|
300
|
-
() => n.value.flatMap((d) => {
|
|
301
|
-
var h;
|
|
302
|
-
return [d, ((h = d == null ? void 0 : d.children) == null ? void 0 : h.length) > 0 ? d == null ? void 0 : d.children : []];
|
|
303
|
-
}).flat()
|
|
304
|
-
), v = () => {
|
|
305
|
-
t(N.SELECT, l.value), t(N.UPDATE_SELECTION, l.value);
|
|
306
|
-
}, f = (d) => {
|
|
307
|
-
var S, i, _, C, b;
|
|
308
|
-
if (l.value = d, ((S = n.value) == null ? void 0 : S.length) > 0 && ((i = g.value) == null ? void 0 : i.filter((O) => !o(O)).every((O) => l.value.includes(e(O))))) {
|
|
309
|
-
a.allItemsSelected = !0;
|
|
310
|
-
const O = ((_ = n.value) == null ? void 0 : _.length) > 0 && n.value.every((I) => l.value.includes(e(I)));
|
|
311
|
-
a.isIndeterminate = !O;
|
|
312
|
-
} else
|
|
313
|
-
a.allItemsSelected = !1, a.isIndeterminate = ((C = l.value) == null ? void 0 : C.length) > 0 && ((b = n.value) == null ? void 0 : b.length) > 0 && n.value.some(
|
|
314
|
-
(O) => {
|
|
315
|
-
var I;
|
|
316
|
-
return l.value.includes(e(O)) || ((I = O == null ? void 0 : O.children) == null ? void 0 : I.some((u) => l.value.includes(e(u))));
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
}, L = (d) => {
|
|
320
|
-
se(() => {
|
|
321
|
-
var h, S, i;
|
|
322
|
-
if (a.allItemsSelected = d, d) {
|
|
323
|
-
l.value = (S = (h = g.value) == null ? void 0 : h.filter(
|
|
324
|
-
(C) => !o(C) && ((C == null ? void 0 : C.children) === void 0 || C.children.every((b) => !o(b)))
|
|
325
|
-
)) == null ? void 0 : S.map((C) => e(C));
|
|
326
|
-
const _ = ((i = n.value) == null ? void 0 : i.length) > 0 && n.value.every((C) => l.value.includes(e(C)));
|
|
327
|
-
a.isIndeterminate = l.value.length > 0 && !_;
|
|
328
|
-
} else
|
|
329
|
-
l.value = [], a.isIndeterminate = !1;
|
|
330
|
-
v();
|
|
331
|
-
});
|
|
332
|
-
}, c = (d, h) => {
|
|
333
|
-
se(() => {
|
|
334
|
-
var S;
|
|
335
|
-
f(((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) > 0 ? A(d, h) : d), v();
|
|
336
|
-
});
|
|
337
|
-
}, A = (d, h) => {
|
|
338
|
-
var _;
|
|
339
|
-
const S = e(h), i = (_ = h.children) == null ? void 0 : _.filter((C) => !o(C)).map((C) => e(C));
|
|
340
|
-
if (d.includes(S)) {
|
|
341
|
-
const C = d;
|
|
342
|
-
return i.forEach((b) => {
|
|
343
|
-
C.includes(b) || C.push(b);
|
|
344
|
-
}), C;
|
|
345
|
-
}
|
|
346
|
-
return d.filter((C) => !i.includes(C));
|
|
347
|
-
}, m = (d, h, S) => {
|
|
348
|
-
se(() => {
|
|
349
|
-
var _, C;
|
|
350
|
-
const i = e(h);
|
|
351
|
-
d.includes(e(S)) ? f(
|
|
352
|
-
!d.includes(i) && ((_ = h == null ? void 0 : h.children) != null && _.every((b) => d.includes(e(b)))) ? [...d, i] : d
|
|
353
|
-
) : f(
|
|
354
|
-
d.includes(i) && !((C = h == null ? void 0 : h.children) != null && C.every((b) => d.includes(e(b)))) ? d.filter((b) => b !== i) : d
|
|
355
|
-
), v();
|
|
356
|
-
});
|
|
357
|
-
};
|
|
358
|
-
return te(
|
|
359
|
-
() => s.value,
|
|
360
|
-
() => {
|
|
361
|
-
f(s.value ?? []);
|
|
362
|
-
},
|
|
363
|
-
{ immediate: !0 }
|
|
364
|
-
), te(
|
|
365
|
-
() => n.value,
|
|
366
|
-
() => {
|
|
367
|
-
const d = n.value.filter((h) => l.value.includes(e(h))).flatMap(
|
|
368
|
-
(h) => {
|
|
369
|
-
var S;
|
|
370
|
-
return ((S = h == null ? void 0 : h.children) == null ? void 0 : S.length) > 0 ? h.children.map((i) => e(i)).filter((i) => !l.value.includes(i)) : [];
|
|
371
|
-
}
|
|
372
|
-
);
|
|
373
|
-
(d == null ? void 0 : d.length) > 0 ? (f([...l.value, ...d]), v()) : f(l.value);
|
|
374
|
-
}
|
|
375
|
-
), { onAllRowSelect: L, onRowSelect: c, onNestedRowSelect: m, allItemsSelectedState: a, selectedItems: l };
|
|
376
|
-
}, ds = (s, t, n) => ({ isSorting: (a) => s.value.some((g) => g.field === a), getSortingDirection: (a) => {
|
|
377
|
-
var g;
|
|
378
|
-
return (g = s.value.find((v) => v.field === a)) == null ? void 0 : g.direction;
|
|
379
|
-
}, sortByColumnField: (a) => {
|
|
380
|
-
var f;
|
|
381
|
-
if (!t.value.some((L) => L.field === a && L.sortable))
|
|
382
|
-
return;
|
|
383
|
-
const v = [{
|
|
384
|
-
field: a,
|
|
385
|
-
direction: ((f = s.value.find((L) => L.field === a)) == null ? void 0 : f.direction) === fe.ASCENDING ? fe.DESCENDING : fe.ASCENDING
|
|
386
|
-
}];
|
|
387
|
-
n("sort", v);
|
|
388
|
-
} });
|
|
389
|
-
var J = ((s) => (s[s.ARROW_DOWN = re.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = re.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = re.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = re.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = re.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = re.PAGE_DOWN] = "PAGE_DOWN", s[s.END = re.END] = "END", s[s.HOME = re.HOME] = "HOME", s))(J || {});
|
|
390
|
-
const Ce = "b-row-actions-column", ze = (s) => {
|
|
391
|
-
const n = In(s).filter((e) => e.node !== s);
|
|
392
|
-
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
393
|
-
}, cs = (s, t, n, e, o, l) => {
|
|
394
|
-
const a = w(() => l.value || e.value ? !0 : n.value.some((_) => _.infoIconTooltip || _.sortable)), g = w(() => {
|
|
395
|
-
let _ = n.value.filter(({ visible: C }) => C !== !1);
|
|
396
|
-
return o.value && (_ = [
|
|
397
|
-
..._,
|
|
398
|
-
{ field: Ce, label: "" }
|
|
399
|
-
]), _;
|
|
400
|
-
}), v = w(() => g.value.length), f = w(() => {
|
|
401
|
-
if (!s.value)
|
|
402
|
-
return [];
|
|
403
|
-
const _ = Object.keys(s.value)[0];
|
|
404
|
-
if (!_ || !s.value[_])
|
|
405
|
-
return [];
|
|
406
|
-
const C = [];
|
|
407
|
-
if (a.value)
|
|
408
|
-
for (const O of g.value) {
|
|
409
|
-
const I = t.value[O.field];
|
|
410
|
-
C.push(I);
|
|
411
|
-
}
|
|
412
|
-
const b = s.value[_].length;
|
|
413
|
-
for (let O = 0; O < b; O++)
|
|
414
|
-
for (const I of g.value) {
|
|
415
|
-
const u = s.value[I.field];
|
|
416
|
-
u != null && u[O] && C.push(u[O]);
|
|
417
|
-
}
|
|
418
|
-
return C;
|
|
419
|
-
}), L = (_) => Math.floor(_ / v.value), c = (_, C, b) => {
|
|
420
|
-
const O = f.value.length - 1, I = v.value - 1, u = L(_), R = _ - v.value * u;
|
|
421
|
-
return {
|
|
422
|
-
[J.PAGE_UP]: R + (a.value ? v.value : 0),
|
|
423
|
-
[J.PAGE_DOWN]: O - I + R,
|
|
424
|
-
[J.END]: b ? O : v.value * u + I,
|
|
425
|
-
[J.HOME]: b ? a.value ? v.value : 0 : v.value * u
|
|
426
|
-
}[C];
|
|
427
|
-
}, A = (_, C) => {
|
|
428
|
-
const b = L(_), I = {
|
|
429
|
-
[J.ARROW_DOWN]: v.value,
|
|
430
|
-
[J.ARROW_UP]: b === 0 && !a.value ? 0 : -v.value,
|
|
431
|
-
[J.ARROW_LEFT]: -1,
|
|
432
|
-
[J.ARROW_RIGHT]: 1
|
|
433
|
-
}[C], u = _ + I;
|
|
434
|
-
return u < 0 || u >= f.value.length ? _ : u;
|
|
435
|
-
}, m = (_) => [
|
|
436
|
-
J.PAGE_UP,
|
|
437
|
-
J.PAGE_DOWN,
|
|
438
|
-
J.END,
|
|
439
|
-
J.HOME
|
|
440
|
-
].includes(_), d = (_, C, b) => {
|
|
441
|
-
const O = f.value.indexOf(_);
|
|
442
|
-
return m(C) ? c(O, C, b) : A(O, C);
|
|
443
|
-
}, h = (_, C, b) => {
|
|
444
|
-
if (!f.value.includes(_))
|
|
445
|
-
return;
|
|
446
|
-
const O = d(_, C, b);
|
|
447
|
-
f.value[O].focus();
|
|
448
|
-
}, S = (_) => _ in J;
|
|
449
|
-
return {
|
|
450
|
-
isNavigationKeyCode: S,
|
|
451
|
-
focusOnNextGridcell: h,
|
|
452
|
-
navigationInput: (_) => {
|
|
453
|
-
const { ctrlKey: C, key: b, target: O } = _, I = b;
|
|
454
|
-
let u = O;
|
|
455
|
-
u.getAttribute("role") !== "menuitem" && (f.value.includes(u) || (u = O.closest('[role="gridcell"], [role="columnheader"]')), f.value.includes(u) && S(I) && h(u, I, C));
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
}, us = 90, fs = (s, t, n, e, o) => {
|
|
459
|
-
const l = E(s), a = E(t), g = E(n), v = E(e), f = w(() => l.value !== "none"), L = w(() => l.value === "automatic"), c = () => {
|
|
460
|
-
o(N.UPDATE_SHOW_MORE);
|
|
461
|
-
};
|
|
462
|
-
return te(
|
|
463
|
-
() => a.value,
|
|
464
|
-
() => {
|
|
465
|
-
L.value && g.value.offsetHeight / a.value * 100 > us && !v.value && c();
|
|
466
|
-
}
|
|
467
|
-
), { isLazyLoad: f, isInfiniteScroll: L, verticalScrollPosition: a, emitLazyLoadEvent: c };
|
|
468
|
-
}, gs = (s, t, n) => {
|
|
469
|
-
const e = E(s), o = E(t), l = Ie({
|
|
470
|
-
dragging: null,
|
|
471
|
-
dragToLeft: null,
|
|
472
|
-
target: null
|
|
473
|
-
}), a = (m, d = 0) => {
|
|
474
|
-
const h = e.value.findIndex((_) => _.field === m.field), S = h + d;
|
|
475
|
-
if (S < 0 || S > e.value.length - 1)
|
|
476
|
-
return;
|
|
477
|
-
const i = [...e.value];
|
|
478
|
-
i.splice(S, 0, i.splice(h, 1)[0]), n(N.COLUMNS, i), n(N.UPDATE_COLUMNS, i);
|
|
479
|
-
}, g = (m, d) => {
|
|
480
|
-
l.dragging = m, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
|
|
481
|
-
}, v = (m, d) => {
|
|
482
|
-
l.target = m;
|
|
483
|
-
const h = d.currentTarget.getBoundingClientRect(), S = h.left + h.width / 2, i = d.clientX ?? 0;
|
|
484
|
-
l.dragToLeft = i <= S;
|
|
485
|
-
}, f = (m) => {
|
|
486
|
-
var d, h;
|
|
487
|
-
if (((d = l.dragging) == null ? void 0 : d.field) !== m.field) {
|
|
488
|
-
const S = e.value.findIndex((I) => {
|
|
489
|
-
var u;
|
|
490
|
-
return I.field === ((u = l.dragging) == null ? void 0 : u.field);
|
|
491
|
-
}), i = e.value.findIndex((I) => I.field === m.field), _ = l.dragToLeft ? i : i + 1, C = _ > S ? _ - 1 : _;
|
|
492
|
-
let b = [...e.value];
|
|
493
|
-
b.splice(
|
|
494
|
-
C === -1 ? 0 : C,
|
|
495
|
-
0,
|
|
496
|
-
b.splice(S, 1)[0]
|
|
497
|
-
);
|
|
498
|
-
const O = e.value.findIndex((I) => !(I != null && I.frozen));
|
|
499
|
-
((h = l.dragging) == null ? void 0 : h.frozen) !== m.frozen && _ !== O && (b = b.map(
|
|
500
|
-
(I) => {
|
|
501
|
-
var u;
|
|
502
|
-
return ((u = l.dragging) == null ? void 0 : u.field) === I.field ? { ...I, frozen: !!(m != null && m.frozen) } : I;
|
|
503
|
-
}
|
|
504
|
-
)), n(N.COLUMNS, b), n(N.UPDATE_COLUMNS, b);
|
|
505
|
-
}
|
|
506
|
-
l.dragging = null, l.target = null;
|
|
507
|
-
}, L = () => {
|
|
508
|
-
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
509
|
-
}, c = w(() => o.value ? {
|
|
510
|
-
[V.COLUMN_DRAG_START]: (m, d) => g(m, d),
|
|
511
|
-
[V.COLUMN_DRAG_ENTER]: (m, d) => v(m, d),
|
|
512
|
-
[V.COLUMN_DROP]: (m) => f(m),
|
|
513
|
-
[V.COLUMN_DRAG_END]: () => L()
|
|
514
|
-
} : {}), A = w(() => (m) => o.value ? {
|
|
515
|
-
dragenter: (d) => {
|
|
516
|
-
d.preventDefault(), v(m, d);
|
|
517
|
-
},
|
|
518
|
-
drop: () => {
|
|
519
|
-
f(m);
|
|
520
|
-
},
|
|
521
|
-
dragover: (d) => {
|
|
522
|
-
d.preventDefault();
|
|
523
|
-
}
|
|
524
|
-
} : {});
|
|
525
|
-
return {
|
|
526
|
-
// Values
|
|
527
|
-
draggingColumns: l,
|
|
528
|
-
// Methods
|
|
529
|
-
draggingEventsForColumns: c,
|
|
530
|
-
draggingEventsForRowCell: A,
|
|
531
|
-
onMoveColumnByOffset: a
|
|
532
|
-
};
|
|
533
|
-
}, _s = (s, t) => {
|
|
534
|
-
const n = E(s), e = w(
|
|
535
|
-
() => [...n.value].sort((c, A) => c.frozen === A.frozen ? 0 : c.frozen ? -1 : 1)
|
|
536
|
-
), o = w(
|
|
537
|
-
() => e.value.filter((c) => c.frozen && c.visible !== !1)
|
|
538
|
-
), l = w(
|
|
539
|
-
() => e.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
540
|
-
), a = w(
|
|
541
|
-
() => [
|
|
542
|
-
{ columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
|
|
543
|
-
{ columnSet: l.value, id: "unfrozen" }
|
|
544
|
-
].filter(({ columnSet: c }) => c.length)
|
|
545
|
-
), g = w(
|
|
546
|
-
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== ee).length === 1
|
|
547
|
-
), v = (c) => t(N.UPDATE_CONDENSED, c), f = (c) => {
|
|
548
|
-
t(N.COLUMNS, c), t(N.UPDATE_COLUMNS, c);
|
|
549
|
-
};
|
|
550
|
-
return {
|
|
551
|
-
// Values
|
|
552
|
-
columnSets: a,
|
|
553
|
-
isOnlyOneVisibleColumn: g,
|
|
554
|
-
sortedColumns: e,
|
|
555
|
-
// Methods
|
|
556
|
-
onConfigSettingsUpdate: v,
|
|
557
|
-
onConfigSettingsColumnsUpdate: f,
|
|
558
|
-
onConfigSettingsColumnUpdate: (c) => {
|
|
559
|
-
const A = e.value.map(
|
|
560
|
-
(m) => (m == null ? void 0 : m.field) === c.field ? c : m
|
|
561
|
-
);
|
|
562
|
-
f(A);
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
}, vs = (s, t, n, e, o, l, a) => {
|
|
566
|
-
const g = E(0), v = E(!1), f = E(!1);
|
|
567
|
-
te([() => g.value, () => l.value], ([d]) => {
|
|
568
|
-
s.value.scrollLeft = d, t.value.scrollLeft = d, v.value = !!d, f.value = t.value.scrollWidth - t.value.offsetWidth > d;
|
|
569
|
-
}), Te(async () => {
|
|
570
|
-
var d, h;
|
|
571
|
-
await se(), ((d = t.value) == null ? void 0 : d.offsetWidth) < ((h = t.value) == null ? void 0 : h.scrollWidth) && (f.value = !0);
|
|
572
|
-
});
|
|
573
|
-
const L = (d) => {
|
|
574
|
-
if (g.value = d.target.scrollLeft, n.value = s.value.scrollHeight - d.target.scrollTop, e != null && e.value) {
|
|
575
|
-
const h = d.target.scrollLeft;
|
|
576
|
-
e.value.scrollLeft !== h && (e.value.scrollLeft = h);
|
|
577
|
-
}
|
|
578
|
-
}, c = (d) => {
|
|
579
|
-
d.key !== "Tab" && d.key !== "ArrowRight" && d.key !== "ArrowLeft" || (d.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
580
|
-
s.value && (s.value.style.overflowX = "auto");
|
|
581
|
-
}));
|
|
582
|
-
}, A = (d) => {
|
|
583
|
-
const h = d.target.scrollLeft;
|
|
584
|
-
s.value.scrollLeft !== h && (s.value.scrollLeft = h);
|
|
585
|
-
}, m = w(() => {
|
|
586
|
-
var d, h, S, i;
|
|
587
|
-
return (d = a == null ? void 0 : a.pagination) != null && d.value && ((h = a == null ? void 0 : a.stickyPagination) != null && h.value || a != null && a.isDataGridTemplate) && !((S = a == null ? void 0 : a.isLazyLoad) != null && S.value) ? { bottom: `${(((i = o.value) == null ? void 0 : i.clientHeight) ?? 0) + 1}px` } : {};
|
|
588
|
-
});
|
|
589
|
-
return {
|
|
590
|
-
// Values
|
|
591
|
-
scrollLeftPosition: g,
|
|
592
|
-
hasLeftOverflow: v,
|
|
593
|
-
hasRightOverflow: f,
|
|
594
|
-
horizontalScrollbarConditionalStyles: m,
|
|
595
|
-
// Methods
|
|
596
|
-
updateScrollPosition: L,
|
|
597
|
-
updateScrollPositionOnFrozenColumnsNavigation: c,
|
|
598
|
-
syncVirtualScrollerWithBody: A
|
|
599
|
-
};
|
|
600
|
-
}, Cs = (s, t, n, e) => {
|
|
601
|
-
const o = E(null), l = w(() => {
|
|
602
|
-
var h, S, i, _;
|
|
603
|
-
if (!o.value || o.value.field === ee)
|
|
604
|
-
return {
|
|
605
|
-
hoveredOverColumnField: "",
|
|
606
|
-
isSeparatorOffset: !1,
|
|
607
|
-
noBorderLeft: !1,
|
|
608
|
-
noBorderRight: !1
|
|
609
|
-
};
|
|
610
|
-
const a = (S = (h = s.value.find((C) => C.isFrozenColumns)) == null ? void 0 : h.columnSet) == null ? void 0 : S.filter((C) => C.field !== ee), g = s.value.find((C) => !(C != null && C.isFrozenColumns)), v = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, f = !o.value.frozen && ((i = g == null ? void 0 : g.columnSet) == null ? void 0 : i[0].field) === o.value.field, L = (t.value || n.value) && v, c = (t.value || n.value) && !a && f, A = a && f, m = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, d = n.value && e.value && !o.value.frozen && ((_ = g == null ? void 0 : g.columnSet) == null ? void 0 : _[g.columnSet.length - 1].field) === o.value.field;
|
|
611
|
-
return {
|
|
612
|
-
hoveredOverColumnField: o.value.field,
|
|
613
|
-
isSeparatorOffset: d,
|
|
614
|
-
noBorderLeft: !!L || !!c || !!A,
|
|
615
|
-
noBorderRight: !!m || !!d
|
|
616
|
-
};
|
|
617
|
-
});
|
|
618
|
-
return {
|
|
619
|
-
hoveredOverColumn: o,
|
|
620
|
-
hoveredOverColumnState: l
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
let nt = 0;
|
|
624
|
-
const hs = {
|
|
625
|
-
beforeCreate() {
|
|
626
|
-
this.uuid = nt.toString(), nt += 1;
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
var ms = function() {
|
|
630
|
-
var t = this, n = t._self._c;
|
|
631
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
632
|
-
}, ps = [], ws = /* @__PURE__ */ q(
|
|
633
|
-
hs,
|
|
634
|
-
ms,
|
|
635
|
-
ps,
|
|
636
|
-
!1,
|
|
637
|
-
null,
|
|
638
|
-
null
|
|
639
|
-
);
|
|
640
|
-
const Ss = ws.exports;
|
|
641
|
-
let st = 0;
|
|
642
|
-
const Es = {
|
|
643
|
-
beforeCreate() {
|
|
644
|
-
this.uuid = st.toString(), st += 1;
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
var Ls = function() {
|
|
648
|
-
var t = this, n = t._self._c;
|
|
649
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", 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" } })]);
|
|
650
|
-
}, ys = [], Rs = /* @__PURE__ */ q(
|
|
651
|
-
Es,
|
|
652
|
-
Ls,
|
|
653
|
-
ys,
|
|
654
|
-
!1,
|
|
655
|
-
null,
|
|
656
|
-
null
|
|
657
|
-
);
|
|
658
|
-
const bs = Rs.exports;
|
|
659
|
-
let ot = 0;
|
|
660
|
-
const As = {
|
|
661
|
-
beforeCreate() {
|
|
662
|
-
this.uuid = ot.toString(), ot += 1;
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
var Os = function() {
|
|
666
|
-
var t = this, n = t._self._c;
|
|
667
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
668
|
-
}, Ns = [], Ts = /* @__PURE__ */ q(
|
|
669
|
-
As,
|
|
670
|
-
Os,
|
|
671
|
-
Ns,
|
|
672
|
-
!1,
|
|
673
|
-
null,
|
|
674
|
-
null
|
|
675
|
-
);
|
|
676
|
-
const wt = Ts.exports;
|
|
677
|
-
let lt = 0;
|
|
678
|
-
const Is = {
|
|
679
|
-
beforeCreate() {
|
|
680
|
-
this.uuid = lt.toString(), lt += 1;
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
var Ds = function() {
|
|
684
|
-
var t = this, n = t._self._c;
|
|
685
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
686
|
-
}, xs = [], Fs = /* @__PURE__ */ q(
|
|
687
|
-
Is,
|
|
688
|
-
Ds,
|
|
689
|
-
xs,
|
|
690
|
-
!1,
|
|
691
|
-
null,
|
|
692
|
-
null
|
|
693
|
-
);
|
|
694
|
-
const Ms = Fs.exports;
|
|
695
|
-
let at = 0;
|
|
696
|
-
const Bs = {
|
|
697
|
-
beforeCreate() {
|
|
698
|
-
this.uuid = at.toString(), at += 1;
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
var $s = function() {
|
|
702
|
-
var t = this, n = t._self._c;
|
|
703
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
704
|
-
}, zs = [], Ps = /* @__PURE__ */ q(
|
|
705
|
-
Bs,
|
|
706
|
-
$s,
|
|
707
|
-
zs,
|
|
708
|
-
!1,
|
|
709
|
-
null,
|
|
710
|
-
null
|
|
711
|
-
);
|
|
712
|
-
const Us = Ps.exports;
|
|
713
|
-
let it = 0;
|
|
714
|
-
const ks = {
|
|
715
|
-
beforeCreate() {
|
|
716
|
-
this.uuid = it.toString(), it += 1;
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
var Ws = function() {
|
|
720
|
-
var t = this, n = t._self._c;
|
|
721
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
722
|
-
}, Gs = [], Hs = /* @__PURE__ */ q(
|
|
723
|
-
ks,
|
|
724
|
-
Ws,
|
|
725
|
-
Gs,
|
|
726
|
-
!1,
|
|
727
|
-
null,
|
|
728
|
-
null
|
|
729
|
-
);
|
|
730
|
-
const Vs = Hs.exports, Zs = {
|
|
731
|
-
"en-US": {
|
|
732
|
-
columnActions: "{name} column actions",
|
|
733
|
-
freezeColumn: "Freeze column",
|
|
734
|
-
hideColumn: "Hide column",
|
|
735
|
-
moveColumnLeft: "Move column left",
|
|
736
|
-
moveColumnRight: "Move column right",
|
|
737
|
-
rowActionsColumn: "Row actions column",
|
|
738
|
-
selectAll: "Select all",
|
|
739
|
-
selectPage: "Select this page",
|
|
740
|
-
selectionMenu: "Selection menu",
|
|
741
|
-
showColumn: "Show column",
|
|
742
|
-
sortColumn: "Sort {name} column",
|
|
743
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
744
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
745
|
-
unfreezeColumn: "Unfreeze column"
|
|
746
|
-
},
|
|
747
|
-
"ja-JP": {
|
|
748
|
-
freezeColumn: "列を固定",
|
|
749
|
-
hideColumn: "列を非表示",
|
|
750
|
-
moveColumnLeft: "列を左へ移動",
|
|
751
|
-
moveColumnRight: "列を右へ移動",
|
|
752
|
-
selectAll: "すべて選択",
|
|
753
|
-
unfreezeColumn: "列の固定を解除"
|
|
754
|
-
},
|
|
755
|
-
"pt-BR": {
|
|
756
|
-
freezeColumn: "Congelar coluna",
|
|
757
|
-
hideColumn: "Ocultar coluna",
|
|
758
|
-
moveColumnLeft: "Mover coluna para a esquerda",
|
|
759
|
-
moveColumnRight: "Mover coluna para a direita",
|
|
760
|
-
selectAll: "Selecionar tudo",
|
|
761
|
-
unfreezeColumn: "Descongelar coluna"
|
|
762
|
-
}
|
|
763
|
-
}, js = {
|
|
764
|
-
i18n: { messages: Zs },
|
|
765
|
-
name: "data-grid-columns"
|
|
766
|
-
}, qs = /* @__PURE__ */ ae({
|
|
767
|
-
...js,
|
|
768
|
-
props: {
|
|
769
|
-
/**
|
|
770
|
-
* Column definitions using 'key' to relate to data object.
|
|
771
|
-
*/
|
|
772
|
-
columns: {
|
|
773
|
-
type: Array,
|
|
774
|
-
required: !0
|
|
775
|
-
},
|
|
776
|
-
/**
|
|
777
|
-
* Columns being dragged, contains dragging column and a target column
|
|
778
|
-
*/
|
|
779
|
-
draggingColumns: {
|
|
780
|
-
type: Object,
|
|
781
|
-
default: void 0
|
|
782
|
-
},
|
|
783
|
-
/**
|
|
784
|
-
* Toggle the columns draggable events.
|
|
785
|
-
*/
|
|
786
|
-
hasDraggableColumns: {
|
|
787
|
-
type: Boolean,
|
|
788
|
-
default: !0
|
|
789
|
-
},
|
|
790
|
-
/**
|
|
791
|
-
* If resize is enabled
|
|
792
|
-
*/
|
|
793
|
-
hasResizableColumns: {
|
|
794
|
-
type: Boolean,
|
|
795
|
-
default: !0
|
|
796
|
-
},
|
|
797
|
-
/**
|
|
798
|
-
* Signifies if the column panel is enabled.
|
|
799
|
-
*/
|
|
800
|
-
hasColumnPanel: {
|
|
801
|
-
type: Boolean,
|
|
802
|
-
default: !1
|
|
803
|
-
},
|
|
804
|
-
/**
|
|
805
|
-
* If set to true, aligns the first column panel to the right of its button.
|
|
806
|
-
*/
|
|
807
|
-
hasFirstColumnPanelRightAligned: {
|
|
808
|
-
type: Boolean,
|
|
809
|
-
default: !1
|
|
810
|
-
},
|
|
811
|
-
/**
|
|
812
|
-
* If the data grid has overflow on the left side
|
|
813
|
-
*/
|
|
814
|
-
hasLeftOverflow: {
|
|
815
|
-
type: Boolean,
|
|
816
|
-
default: !1
|
|
817
|
-
},
|
|
818
|
-
/**
|
|
819
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
820
|
-
*/
|
|
821
|
-
hoveredOverColumnState: {
|
|
822
|
-
type: Object,
|
|
823
|
-
required: !0
|
|
824
|
-
},
|
|
825
|
-
/**
|
|
826
|
-
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
827
|
-
*/
|
|
828
|
-
isMeasuringColumnWidths: {
|
|
829
|
-
type: Boolean,
|
|
830
|
-
default: !1
|
|
831
|
-
},
|
|
832
|
-
/**
|
|
833
|
-
* Used to disable hiding the last visible column.
|
|
834
|
-
*/
|
|
835
|
-
isOnlyOneVisibleColumn: {
|
|
836
|
-
type: Boolean,
|
|
837
|
-
default: !1
|
|
838
|
-
},
|
|
839
|
-
/**
|
|
840
|
-
* If these columns are frozen (pinned) columns
|
|
841
|
-
*/
|
|
842
|
-
isFrozenColumns: {
|
|
843
|
-
type: Boolean,
|
|
844
|
-
default: !1
|
|
845
|
-
},
|
|
846
|
-
/**
|
|
847
|
-
* Show frozen columns separator
|
|
848
|
-
*/
|
|
849
|
-
showFrozenColumnsSeparator: {
|
|
850
|
-
type: Boolean,
|
|
851
|
-
default: !1
|
|
852
|
-
},
|
|
853
|
-
/**
|
|
854
|
-
* The column all items selected state
|
|
855
|
-
*/
|
|
856
|
-
allItemsSelectedState: {
|
|
857
|
-
type: Object,
|
|
858
|
-
default: void 0
|
|
859
|
-
},
|
|
860
|
-
/**
|
|
861
|
-
* Determines if the user has enabled row selection
|
|
862
|
-
*/
|
|
863
|
-
selectable: {
|
|
864
|
-
type: Boolean,
|
|
865
|
-
default: !1
|
|
866
|
-
},
|
|
867
|
-
/**
|
|
868
|
-
* Adds an extra option when selecting all, to select items in other pages too
|
|
869
|
-
*/
|
|
870
|
-
selectableAcrossPages: {
|
|
871
|
-
type: Boolean,
|
|
872
|
-
default: !1
|
|
873
|
-
},
|
|
874
|
-
/**
|
|
875
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
876
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
877
|
-
*/
|
|
878
|
-
sortBy: {
|
|
879
|
-
type: Array,
|
|
880
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
881
|
-
default: () => []
|
|
882
|
-
},
|
|
883
|
-
/**
|
|
884
|
-
* Truncates all data grid column headers
|
|
885
|
-
*/
|
|
886
|
-
truncateColumnHeaders: {
|
|
887
|
-
type: Boolean,
|
|
888
|
-
default: !1
|
|
889
|
-
},
|
|
890
|
-
/**
|
|
891
|
-
* The maximum width of the row actions in all rows
|
|
892
|
-
*/
|
|
893
|
-
rowActionsMaximumWidth: {
|
|
894
|
-
type: Number,
|
|
895
|
-
default: 0
|
|
896
|
-
}
|
|
897
|
-
},
|
|
898
|
-
emits: ["sort", "column-hover"],
|
|
899
|
-
setup(s, { expose: t, emit: n }) {
|
|
900
|
-
const e = s, o = 100, { t: l } = ge(), { columns: a, sortBy: g } = De(e), v = E({}), f = E({}), L = E(), c = E(), A = (r) => n(V.SELECT_ALL_ROWS, r), m = (r) => r.field === ee, d = w(() => [
|
|
901
|
-
{
|
|
902
|
-
text: l("selectPage"),
|
|
903
|
-
handler: () => A(!0)
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
text: l("selectAll"),
|
|
907
|
-
handler: () => n(V.SELECT_ALL_ACROSS_PAGES)
|
|
908
|
-
}
|
|
909
|
-
]), { startResize: h, isResizing: S, columnHoverEventToEmitAfterResizing: i } = Xn(a, n), { isSorting: _, getSortingDirection: C, sortByColumnField: b } = ds(g, a, n), O = (r) => {
|
|
910
|
-
var ne;
|
|
911
|
-
if (!r.sortable)
|
|
912
|
-
return null;
|
|
913
|
-
const P = (ne = e.sortBy.find(({ field: ie }) => ie === r.field)) == null ? void 0 : ne.direction;
|
|
914
|
-
return P ? {
|
|
915
|
-
[fe.ASCENDING]: he.ASCENDING,
|
|
916
|
-
[fe.DESCENDING]: he.DESCENDING
|
|
917
|
-
}[P] : he.NONE;
|
|
918
|
-
}, I = w(() => (r) => e.hasDraggableColumns ? {
|
|
919
|
-
dragstart: (P) => {
|
|
920
|
-
n(V.COLUMN_DRAG_START, r, P);
|
|
921
|
-
},
|
|
922
|
-
dragover: (P) => {
|
|
923
|
-
P.preventDefault();
|
|
924
|
-
},
|
|
925
|
-
dragenter: (P) => {
|
|
926
|
-
P.preventDefault(), n(V.COLUMN_DRAG_ENTER, r, P);
|
|
927
|
-
},
|
|
928
|
-
drop: () => {
|
|
929
|
-
n(V.COLUMN_DROP, r);
|
|
930
|
-
},
|
|
931
|
-
dragend: () => {
|
|
932
|
-
n(V.COLUMN_DRAG_END);
|
|
933
|
-
}
|
|
934
|
-
} : {}), u = w(() => (r) => [
|
|
935
|
-
{
|
|
936
|
-
text: l("moveColumnLeft"),
|
|
937
|
-
handler: () => n(V.COLUMN_MOVE, r, -1),
|
|
938
|
-
icon: Gn,
|
|
939
|
-
disabled: e.columns[0].field === r.field
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
text: l("moveColumnRight"),
|
|
943
|
-
handler: () => n(V.COLUMN_MOVE, r, 1),
|
|
944
|
-
icon: bs,
|
|
945
|
-
disabled: e.columns[e.columns.length - 1].field === r.field
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
text: r != null && r.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
949
|
-
handler: () => n(V.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
|
|
950
|
-
icon: wt
|
|
951
|
-
},
|
|
952
|
-
{
|
|
953
|
-
text: (r == null ? void 0 : r.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
954
|
-
handler: () => {
|
|
955
|
-
n(V.COLUMN_UPDATE, {
|
|
956
|
-
...r,
|
|
957
|
-
visible: (r == null ? void 0 : r.visible) === !1
|
|
958
|
-
});
|
|
959
|
-
},
|
|
960
|
-
icon: (r == null ? void 0 : r.visible) !== !1 ? Hn : Vn,
|
|
961
|
-
disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
962
|
-
}
|
|
963
|
-
]), R = (r) => {
|
|
964
|
-
L.value = r.field, c.value && clearTimeout(c.value);
|
|
965
|
-
}, F = () => {
|
|
966
|
-
const r = setTimeout(() => {
|
|
967
|
-
L.value = "";
|
|
968
|
-
}, o);
|
|
969
|
-
c.value = r;
|
|
970
|
-
}, G = (r) => {
|
|
971
|
-
let P = {
|
|
972
|
-
mouseenter: () => {
|
|
973
|
-
R(r), S.value ? i.value = r : n("column-hover", r);
|
|
974
|
-
},
|
|
975
|
-
mouseleave: () => {
|
|
976
|
-
F(), S.value ? i.value = null : n("column-hover", null);
|
|
977
|
-
},
|
|
978
|
-
focus: () => {
|
|
979
|
-
R(r), m(r) && ze(v.value[r.field]);
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
return m(r) || (P = {
|
|
983
|
-
...P,
|
|
984
|
-
...I.value(r)
|
|
985
|
-
}), P;
|
|
986
|
-
}, Z = (r) => r.infoIconTooltip || r.sortable || e.hasColumnPanel, H = (r, P) => {
|
|
987
|
-
var oe;
|
|
988
|
-
((oe = v.value) == null ? void 0 : oe[P]) === void 0 && (v.value = { ...v.value, [P]: null }), r !== null && (v.value[P] = r);
|
|
989
|
-
}, p = w(() => {
|
|
990
|
-
var P;
|
|
991
|
-
const r = {
|
|
992
|
-
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
993
|
-
};
|
|
994
|
-
return (P = a.value[0]) != null && P.frozen ? {
|
|
995
|
-
...r,
|
|
996
|
-
"b-data-grid-columns--frozen": !0,
|
|
997
|
-
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
998
|
-
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
999
|
-
} : {
|
|
1000
|
-
...r,
|
|
1001
|
-
"b-data-grid-columns--unfrozen": !0
|
|
1002
|
-
};
|
|
1003
|
-
}), $ = (r, P) => r && P === 0 ? Xe.BOTTOM_START : Xe.BOTTOM_END, x = (r, P) => {
|
|
1004
|
-
var oe, ne, ie, y, B, k, Y, Q, le, U;
|
|
1005
|
-
return {
|
|
1006
|
-
"b-data-grid-columns__column--column-hovered": r.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1007
|
-
"b-data-grid-columns__column--column-hovered-no-border-left": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1008
|
-
"b-data-grid-columns__column--column-hovered-no-border-right": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1009
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && P === a.value.length - 1,
|
|
1010
|
-
"b-data-grid-columns__column--sortable": r.sortable,
|
|
1011
|
-
"b-data-grid-columns__column--padding-left-unset": ((oe = r == null ? void 0 : r.padding) == null ? void 0 : oe.left) === !1,
|
|
1012
|
-
"b-data-grid-columns__column--padding-right-unset": ((ne = r == null ? void 0 : r.padding) == null ? void 0 : ne.right) === !1,
|
|
1013
|
-
"b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
|
|
1014
|
-
"b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
|
|
1015
|
-
"b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((y = (ie = e.draggingColumns) == null ? void 0 : ie.dragging) == null ? void 0 : y.field),
|
|
1016
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((k = (B = e.draggingColumns) == null ? void 0 : B.target) == null ? void 0 : k.field) && ((Y = e.draggingColumns) == null ? void 0 : Y.dragToLeft),
|
|
1017
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((le = (Q = e.draggingColumns) == null ? void 0 : Q.target) == null ? void 0 : le.field) && !((U = e.draggingColumns) != null && U.dragToLeft),
|
|
1018
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || e.hasColumnPanel && L.value === r.field || e.selectableAcrossPages
|
|
1019
|
-
};
|
|
1020
|
-
}, D = (r) => ({
|
|
1021
|
-
"b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
|
|
1022
|
-
}), z = (r) => ({
|
|
1023
|
-
"b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
|
|
1024
|
-
}), M = (r) => ({
|
|
1025
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1026
|
-
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === r.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1027
|
-
}), K = w(() => ({
|
|
1028
|
-
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1029
|
-
}));
|
|
1030
|
-
return t({
|
|
1031
|
-
columnHeaderRefs: v
|
|
1032
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: g, columnHeaderRefs: v, contextMenuRef: f, hoveredColumnField: L, closingTimeOutId: c, onAllRowSelect: A, isActionsColumn: m, selectAllMenu: d, startResize: h, isResizing: S, columnHoverEventToEmitAfterResizing: i, isSorting: _, getSortingDirection: C, sortByColumnField: b, getSortingColumnDirection: O, draggingEventsForColumn: I, contextualMenuData: u, showContextualMenu: R, hideContextualMenu: F, dataGridColumnEvents: G, hasColumnActions: Z, registerColumnsRefs: H, conditionalColumnsClasses: p, computeMenuPosition: $, conditionalColumnClasses: x, conditionalColumnHeaderAndActionsClasses: D, conditionalColumnActionsClasses: z, conditionalColumnSeparatorClasses: M, conditionalColumnHeaderClasses: K, BentoCheckbox: ht, BentoDatagridSortDirection: fe, BentoTypography: me, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: Ce, BentoInfoIcon: kn, DatagridColumnsEvent: V, BentoMenu: Ct, BentoToggleButton: $e, ArrowUpAndDownSortIcon: Ss, SortAscendingIcon: Ms, SortDescendingIcon: Us, TriangleDown: Vs };
|
|
1033
|
-
}
|
|
1034
|
-
});
|
|
1035
|
-
var Ys = function() {
|
|
1036
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1037
|
-
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(o, l) {
|
|
1038
|
-
return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1039
|
-
return [n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu") } })];
|
|
1040
|
-
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
|
|
1041
|
-
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
|
|
1042
|
-
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
|
|
1043
|
-
return e.sortByColumnField(o.field);
|
|
1044
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1045
|
-
return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
|
|
1046
|
-
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { "disable-arrow-down-opening-menu": "", data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
|
|
1047
|
-
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1048
|
-
}, close: function(a) {
|
|
1049
|
-
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1050
|
-
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(a) {
|
|
1051
|
-
return e.startResize(t.hasResizableColumns, o.field, a);
|
|
1052
|
-
}, click: function(a) {
|
|
1053
|
-
a.stopPropagation();
|
|
1054
|
-
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1055
|
-
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: "0" } })] : t._e()], 2);
|
|
1056
|
-
}, Xs = [], Ks = /* @__PURE__ */ q(
|
|
1057
|
-
qs,
|
|
1058
|
-
Ys,
|
|
1059
|
-
Xs,
|
|
1060
|
-
!1,
|
|
1061
|
-
null,
|
|
1062
|
-
"027bd6de"
|
|
1063
|
-
);
|
|
1064
|
-
const Js = Ks.exports;
|
|
1065
|
-
var de = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(de || {});
|
|
1066
|
-
let rt = 0;
|
|
1067
|
-
const Qs = {
|
|
1068
|
-
beforeCreate() {
|
|
1069
|
-
this.uuid = rt.toString(), rt += 1;
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
var eo = function() {
|
|
1073
|
-
var t = this, n = t._self._c;
|
|
1074
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1075
|
-
}, to = [], no = /* @__PURE__ */ q(
|
|
1076
|
-
Qs,
|
|
1077
|
-
eo,
|
|
1078
|
-
to,
|
|
1079
|
-
!1,
|
|
1080
|
-
null,
|
|
1081
|
-
null
|
|
1082
|
-
);
|
|
1083
|
-
const so = no.exports, oo = {
|
|
1084
|
-
"en-US": {
|
|
1085
|
-
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1086
|
-
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1087
|
-
}
|
|
1088
|
-
}, lo = ae({
|
|
1089
|
-
i18n: { messages: oo },
|
|
1090
|
-
name: "bento-data-grid",
|
|
1091
|
-
components: {
|
|
1092
|
-
BentoFreezeIcon: wt,
|
|
1093
|
-
BentoToggle: mt
|
|
1094
|
-
},
|
|
1095
|
-
props: {
|
|
1096
|
-
/**
|
|
1097
|
-
* Is column visibitlity toggle disabled
|
|
1098
|
-
*/
|
|
1099
|
-
isColumnVisibilityToggleDisabled: {
|
|
1100
|
-
type: Boolean,
|
|
1101
|
-
required: !0
|
|
1102
|
-
},
|
|
1103
|
-
/**
|
|
1104
|
-
* Column definition
|
|
1105
|
-
*/
|
|
1106
|
-
column: {
|
|
1107
|
-
type: Object,
|
|
1108
|
-
required: !0
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
emits: ["visible-column", "updated-column"],
|
|
1112
|
-
setup(s, { emit: t }) {
|
|
1113
|
-
const { t: n } = ge(), e = E(!1), o = w(() => {
|
|
1114
|
-
var c;
|
|
1115
|
-
return (c = s.column) == null ? void 0 : c.frozen;
|
|
1116
|
-
}), l = w(() => {
|
|
1117
|
-
var c;
|
|
1118
|
-
return ((c = s.column) == null ? void 0 : c.visible) !== !1;
|
|
1119
|
-
}), a = () => {
|
|
1120
|
-
t("visible-column", { ...s.column, visible: !l.value });
|
|
1121
|
-
}, g = () => {
|
|
1122
|
-
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1123
|
-
}, v = () => {
|
|
1124
|
-
o.value || (e.value = !0);
|
|
1125
|
-
}, f = () => {
|
|
1126
|
-
o.value || (e.value = !1);
|
|
1127
|
-
}, L = w(() => ({
|
|
1128
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1129
|
-
}));
|
|
1130
|
-
return {
|
|
1131
|
-
// Values
|
|
1132
|
-
isFreezeIconOptionShown: e,
|
|
1133
|
-
isColumnFrozen: o,
|
|
1134
|
-
freezeIconConditionalClasses: L,
|
|
1135
|
-
isColumnVisible: l,
|
|
1136
|
-
// Methods
|
|
1137
|
-
toggleColumnVisibility: a,
|
|
1138
|
-
showFreezeIcon: v,
|
|
1139
|
-
hideFreezeIcon: f,
|
|
1140
|
-
toggleColumnFreeze: g,
|
|
1141
|
-
// Translations
|
|
1142
|
-
t: n
|
|
1143
|
-
};
|
|
1144
|
-
}
|
|
1145
|
-
});
|
|
1146
|
-
var ao = function() {
|
|
1147
|
-
var t = this, n = t._self._c;
|
|
1148
|
-
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: t.isColumnFrozen || t.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1149
|
-
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1150
|
-
} } })], 1);
|
|
1151
|
-
}, io = [], ro = /* @__PURE__ */ q(
|
|
1152
|
-
lo,
|
|
1153
|
-
ao,
|
|
1154
|
-
io,
|
|
1155
|
-
!1,
|
|
1156
|
-
null,
|
|
1157
|
-
"eae7733f"
|
|
1158
|
-
);
|
|
1159
|
-
const co = ro.exports, uo = {
|
|
1160
|
-
"en-US": {
|
|
1161
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1162
|
-
closeSearch: "Close search",
|
|
1163
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1164
|
-
columns: "Columns",
|
|
1165
|
-
condensed: "Condensed",
|
|
1166
|
-
condensedToggle: "Condensed toggle",
|
|
1167
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1168
|
-
displayOptions: "Display options",
|
|
1169
|
-
noColumnsMatch: "No columns match this search",
|
|
1170
|
-
search: "Search",
|
|
1171
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1172
|
-
size: "Size",
|
|
1173
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
|
|
1174
|
-
},
|
|
1175
|
-
"ja-JP": {
|
|
1176
|
-
condensed: "凝縮",
|
|
1177
|
-
search: "検索",
|
|
1178
|
-
size: "サイズ"
|
|
1179
|
-
},
|
|
1180
|
-
"pt-BR": {
|
|
1181
|
-
condensed: "Condensado",
|
|
1182
|
-
search: "Buscar",
|
|
1183
|
-
size: "Tamanho"
|
|
1184
|
-
}
|
|
1185
|
-
}, fo = ae({
|
|
1186
|
-
i18n: { messages: uo },
|
|
1187
|
-
name: "bento-data-grid",
|
|
1188
|
-
components: {
|
|
1189
|
-
BentoButton: vt,
|
|
1190
|
-
BentoCrossIcon: gt,
|
|
1191
|
-
BentoPopover: Wn,
|
|
1192
|
-
BentoSettingsIcon: so,
|
|
1193
|
-
BentoToggleButton: $e,
|
|
1194
|
-
BentoDataGridConfigSettingsConfigRow: co,
|
|
1195
|
-
BentoSearchBar: Zn,
|
|
1196
|
-
BentoSearchIcon: qn,
|
|
1197
|
-
BentoToggle: mt,
|
|
1198
|
-
BentoTypography: me
|
|
1199
|
-
},
|
|
1200
|
-
directives: { BentoClickOutsideDirective: Yn },
|
|
1201
|
-
props: {
|
|
1202
|
-
/**
|
|
1203
|
-
* Column definitions
|
|
1204
|
-
*/
|
|
1205
|
-
columns: {
|
|
1206
|
-
type: Array,
|
|
1207
|
-
required: !0
|
|
1208
|
-
},
|
|
1209
|
-
/**
|
|
1210
|
-
* Sets the row cells to the condensed padding state.
|
|
1211
|
-
*/
|
|
1212
|
-
condensed: {
|
|
1213
|
-
type: Boolean,
|
|
1214
|
-
default: !1
|
|
1215
|
-
}
|
|
1216
|
-
},
|
|
1217
|
-
emits: [de.CONFIG_SETTINGS, de.UPDATE_COLUMNS],
|
|
1218
|
-
setup(s, { emit: t }) {
|
|
1219
|
-
const { t: n } = ge(), e = E(null), o = Oe("data-grid-config-settings-popover"), l = E(null), a = E(!1), g = E(!0), v = E(null), f = E(""), L = be(s, "columns"), c = E(!1), A = jn(f, L), m = () => {
|
|
1220
|
-
f.value = "";
|
|
1221
|
-
}, d = w(
|
|
1222
|
-
() => !s.columns.some((u) => u.visible === !1 && !u.mandatory)
|
|
1223
|
-
), h = () => {
|
|
1224
|
-
m(), c.value = !c.value, c.value ? se(() => {
|
|
1225
|
-
var u;
|
|
1226
|
-
return (u = l.value.$refs.bentoInputField) == null ? void 0 : u.focusInput();
|
|
1227
|
-
}) : se(() => {
|
|
1228
|
-
var u, R;
|
|
1229
|
-
return (R = (u = v == null ? void 0 : v.value) == null ? void 0 : u.$el) == null ? void 0 : R.focus();
|
|
1230
|
-
}), g.value = d.value;
|
|
1231
|
-
}, S = (u) => u.mandatory ?? !1, i = (u) => {
|
|
1232
|
-
const R = s.columns.map((F) => ({
|
|
1233
|
-
...F,
|
|
1234
|
-
visible: u.field === F.field ? u.visible : F.visible
|
|
1235
|
-
}));
|
|
1236
|
-
t(de.UPDATE_COLUMNS, R);
|
|
1237
|
-
}, _ = (u) => {
|
|
1238
|
-
u ? t(
|
|
1239
|
-
de.UPDATE_COLUMNS,
|
|
1240
|
-
s.columns.map((R) => ({ ...R, visible: !0 }))
|
|
1241
|
-
) : t(
|
|
1242
|
-
de.UPDATE_COLUMNS,
|
|
1243
|
-
s.columns.map((R) => ({ ...R, visible: (R == null ? void 0 : R.mandatory) === !0 }))
|
|
1244
|
-
);
|
|
1245
|
-
}, C = (u) => {
|
|
1246
|
-
const R = s.columns.map((F) => ({
|
|
1247
|
-
...F,
|
|
1248
|
-
frozen: u.field === F.field ? !!(u != null && u.frozen) : !!(F != null && F.frozen)
|
|
1249
|
-
}));
|
|
1250
|
-
t(de.UPDATE_COLUMNS, R);
|
|
1251
|
-
}, b = (u) => {
|
|
1252
|
-
a.value = u, g.value = d.value;
|
|
1253
|
-
};
|
|
1254
|
-
return {
|
|
1255
|
-
// Values
|
|
1256
|
-
configSettingsButtonRef: e,
|
|
1257
|
-
popoverId: o,
|
|
1258
|
-
isConfigSettingsPanelOpen: a,
|
|
1259
|
-
allColumnsVisbilityToggleState: g,
|
|
1260
|
-
filteredColumnVisibilityColumns: A,
|
|
1261
|
-
searchTerm: f,
|
|
1262
|
-
isColumnVisibilityFilterShown: c,
|
|
1263
|
-
searchBarRef: l,
|
|
1264
|
-
searchButtonRef: v,
|
|
1265
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: ee,
|
|
1266
|
-
// Methods
|
|
1267
|
-
setConfigSettingsPanelVisibility: b,
|
|
1268
|
-
emitCondensedToggle: (u) => t(de.CONFIG_SETTINGS, u),
|
|
1269
|
-
toggleAllColumnVisibility: _,
|
|
1270
|
-
clearAction: m,
|
|
1271
|
-
toggleColumnFilter: h,
|
|
1272
|
-
emitVisibleColumns: i,
|
|
1273
|
-
emitFrozenColumns: C,
|
|
1274
|
-
onClickOutside: () => b(!1),
|
|
1275
|
-
isColumnVisibilityToggleDisabled: S,
|
|
1276
|
-
// Translations
|
|
1277
|
-
t: n
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
});
|
|
1281
|
-
var go = function() {
|
|
1282
|
-
var t = this, n = t._self._c;
|
|
1283
|
-
return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
|
|
1284
|
-
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
1285
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1286
|
-
return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1287
|
-
}, proxy: !0 }]) })], 1)]), t.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: t.popoverId, open: t.isConfigSettingsPanelOpen, "aria-label": t.t("configSettingsPanel"), "target-element": t.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [t._v(" " + t._s(t.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(e) {
|
|
1288
|
-
return t.setConfigSettingsPanelVisibility(!1);
|
|
1289
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1290
|
-
return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
|
|
1291
|
-
}, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("condensedToggle"), value: t.condensed }, on: { input: t.emitCondensedToggle } }, [t._v(" " + t._s(t.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("columns")) + " ")]), t.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1292
|
-
return [n("bento-cross-icon")];
|
|
1293
|
-
}, proxy: !0 }], null, !1, 2651303519) }, [t._v(" " + t._s(t.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1294
|
-
return [n("bento-search-icon")];
|
|
1295
|
-
}, proxy: !0 }], null, !1, 2341044271) }, [t._v(t._s(t.t("search")))])], 1), t.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: t.searchTerm, "input-field-aria-label": t.t("columnVisibilitySearchFilter").toString() }, on: { input: function(e) {
|
|
1296
|
-
t.searchTerm = e;
|
|
1297
|
-
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1298
|
-
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1299
|
-
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1300
|
-
}, _o = [], vo = /* @__PURE__ */ q(
|
|
1301
|
-
fo,
|
|
1302
|
-
go,
|
|
1303
|
-
_o,
|
|
1304
|
-
!1,
|
|
1305
|
-
null,
|
|
1306
|
-
"e7f0a261"
|
|
1307
|
-
);
|
|
1308
|
-
const Co = vo.exports, St = {
|
|
1309
|
-
"en-US": {
|
|
1310
|
-
gettingYourData: "Getting your data",
|
|
1311
|
-
loading: "Loading",
|
|
1312
|
-
selectRow: "Select row",
|
|
1313
|
-
showMore: "Show more",
|
|
1314
|
-
sortAscending: "{field} sort ascending",
|
|
1315
|
-
sortDescending: "{field} sort descending",
|
|
1316
|
-
sortInactive: "{field} sort inactive"
|
|
1317
|
-
},
|
|
1318
|
-
"ja-JP": {
|
|
1319
|
-
loading: "読み込み中",
|
|
1320
|
-
showMore: "表示内容を増やす"
|
|
1321
|
-
},
|
|
1322
|
-
"pt-BR": {
|
|
1323
|
-
loading: "Carregando",
|
|
1324
|
-
showMore: "Mostrar mais"
|
|
1325
|
-
}
|
|
1326
|
-
}, ho = {
|
|
1327
|
-
i18n: { messages: St }
|
|
1328
|
-
}, mo = /* @__PURE__ */ ae({
|
|
1329
|
-
...ho,
|
|
1330
|
-
__name: "data-grid-lazy-load",
|
|
1331
|
-
props: {
|
|
1332
|
-
loading: { type: Boolean },
|
|
1333
|
-
isInfiniteScroll: { type: Boolean }
|
|
1334
|
-
},
|
|
1335
|
-
setup(s) {
|
|
1336
|
-
const { t } = ge();
|
|
1337
|
-
return { __sfc: !0, t, BentoLoadingButton: Un, BentoLoadingButtonState: Pn, BentoLoadingIndicator: Fe, BentoDatagridEvent: N };
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
|
-
var po = function() {
|
|
1341
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1342
|
-
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1343
|
-
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1344
|
-
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1345
|
-
}, wo = [], So = /* @__PURE__ */ q(
|
|
1346
|
-
mo,
|
|
1347
|
-
po,
|
|
1348
|
-
wo,
|
|
1349
|
-
!1,
|
|
1350
|
-
null,
|
|
1351
|
-
"fd9b8204"
|
|
1352
|
-
);
|
|
1353
|
-
const Eo = So.exports;
|
|
1354
|
-
let dt = 0;
|
|
1355
|
-
const Lo = {
|
|
1356
|
-
beforeCreate() {
|
|
1357
|
-
this.uuid = dt.toString(), dt += 1;
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
var yo = function() {
|
|
1361
|
-
var t = this, n = t._self._c;
|
|
1362
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
|
|
1363
|
-
}, Ro = [], bo = /* @__PURE__ */ q(
|
|
1364
|
-
Lo,
|
|
1365
|
-
yo,
|
|
1366
|
-
Ro,
|
|
1367
|
-
!1,
|
|
1368
|
-
null,
|
|
1369
|
-
null
|
|
1370
|
-
);
|
|
1371
|
-
const Ao = bo.exports, Oo = {
|
|
1372
|
-
"en-US": {
|
|
1373
|
-
copy: "Copy",
|
|
1374
|
-
edit: "Edit",
|
|
1375
|
-
more: "More",
|
|
1376
|
-
open: "Open"
|
|
1377
|
-
},
|
|
1378
|
-
"ja-JP": {
|
|
1379
|
-
copy: "コピー",
|
|
1380
|
-
edit: "編集",
|
|
1381
|
-
more: "表示を増やす",
|
|
1382
|
-
open: "を開く"
|
|
1383
|
-
},
|
|
1384
|
-
"pt-BR": {
|
|
1385
|
-
copy: "Copiar",
|
|
1386
|
-
edit: "Editar",
|
|
1387
|
-
more: "Mais",
|
|
1388
|
-
open: "Abrir"
|
|
1389
|
-
}
|
|
1390
|
-
}, No = {
|
|
1391
|
-
i18n: { messages: Oo },
|
|
1392
|
-
name: "data-grid-cell-actions"
|
|
1393
|
-
}, To = /* @__PURE__ */ ae({
|
|
1394
|
-
...No,
|
|
1395
|
-
props: {
|
|
1396
|
-
/**
|
|
1397
|
-
* Column definitions using 'key' to relate to data object.
|
|
1398
|
-
*/
|
|
1399
|
-
cellActions: {
|
|
1400
|
-
type: [Array, Function],
|
|
1401
|
-
required: !0,
|
|
1402
|
-
validator: (s) => (s == null ? void 0 : s.length) <= 2
|
|
1403
|
-
},
|
|
1404
|
-
/**
|
|
1405
|
-
* The column field key.
|
|
1406
|
-
*/
|
|
1407
|
-
columnKey: {
|
|
1408
|
-
type: String,
|
|
1409
|
-
default: void 0
|
|
1410
|
-
},
|
|
1411
|
-
/**
|
|
1412
|
-
* Disables any opening of the cell actions menus using the down arrow key.
|
|
1413
|
-
*/
|
|
1414
|
-
disableArrowDownOpeningMenu: {
|
|
1415
|
-
type: Boolean,
|
|
1416
|
-
default: !1
|
|
1417
|
-
},
|
|
1418
|
-
/**
|
|
1419
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1420
|
-
*/
|
|
1421
|
-
hasRightOverflow: {
|
|
1422
|
-
type: Boolean,
|
|
1423
|
-
default: !1
|
|
1424
|
-
},
|
|
1425
|
-
/**
|
|
1426
|
-
* Set if set to true will teleport the action menu component
|
|
1427
|
-
*/
|
|
1428
|
-
teleportMenu: {
|
|
1429
|
-
type: Boolean,
|
|
1430
|
-
default: !1
|
|
1431
|
-
},
|
|
1432
|
-
/**
|
|
1433
|
-
* The row data item object.
|
|
1434
|
-
*/
|
|
1435
|
-
rowDataItem: {
|
|
1436
|
-
type: Object,
|
|
1437
|
-
required: !0
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1441
|
-
setup(s, { emit: t }) {
|
|
1442
|
-
const n = s, { t: e } = ge(), o = w(() => n.columnKey === void 0), l = w(() => ({
|
|
1443
|
-
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": o.value && n.hasRightOverflow
|
|
1444
|
-
})), a = w(() => ({
|
|
1445
|
-
"b-data-grid-cell-actions__actions--with-row-actions": o.value
|
|
1446
|
-
})), g = w(() => !o.value || o.value && n.hasRightOverflow);
|
|
1447
|
-
function v(i) {
|
|
1448
|
-
return typeof i == "function";
|
|
1449
|
-
}
|
|
1450
|
-
const f = w(() => {
|
|
1451
|
-
var _;
|
|
1452
|
-
const i = v(n.cellActions) ? (_ = n.cellActions) == null ? void 0 : _.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1453
|
-
return (i == null ? void 0 : i.length) > 2 && _t(
|
|
1454
|
-
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1455
|
-
), i == null ? void 0 : i.slice(0, 2);
|
|
1456
|
-
}), L = w(() => (i, _) => {
|
|
1457
|
-
if (!(!_ && i.isShort || _ && !i.isShort))
|
|
1458
|
-
switch (i.variant) {
|
|
1459
|
-
case "copy":
|
|
1460
|
-
return e("copy");
|
|
1461
|
-
case "edit":
|
|
1462
|
-
return e("edit");
|
|
1463
|
-
case "open":
|
|
1464
|
-
return e("open");
|
|
1465
|
-
case "more":
|
|
1466
|
-
return e("more");
|
|
1467
|
-
default:
|
|
1468
|
-
return i.title;
|
|
1469
|
-
}
|
|
1470
|
-
}), c = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
|
|
1471
|
-
click: (_) => {
|
|
1472
|
-
_.stopPropagation(), i.event(n.rowDataItem, n.columnKey);
|
|
1473
|
-
}
|
|
1474
|
-
} : {}, A = (i) => ({
|
|
1475
|
-
...i,
|
|
1476
|
-
handler: () => {
|
|
1477
|
-
i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
|
|
1478
|
-
}
|
|
1479
|
-
}), m = (i) => i.map((_) => {
|
|
1480
|
-
const C = _;
|
|
1481
|
-
return C != null && C.items && (C.items = m(C.items)), { ...A(C) };
|
|
1482
|
-
});
|
|
1483
|
-
return { __sfc: !0, t: e, props: n, emit: t, isRowActions: o, conditionalCellActionsBackgroundGradientClasses: l, conditionalCellActionsClasses: a, showGradientElement: g, isBentoColumnCellActionsByCellValueDataFn: v, computedCellActions: f, getButtonTitle: L, generateButtonEvents: c, generateMenuEvents: A, transformMenuEvents: m, getCopyText: (i) => {
|
|
1484
|
-
var _, C;
|
|
1485
|
-
return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (C = (_ = n.rowDataItem) == null ? void 0 : _[n.columnKey]) == null ? void 0 : C.toString() : "";
|
|
1486
|
-
}, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: vt, BentoMenu: Ct, Copy: Bn, Edit1Icon: Ao, ExternalLinkIcon: Mn, OptionsVerticalIcon: xn };
|
|
1487
|
-
}
|
|
1488
|
-
});
|
|
1489
|
-
var Io = function() {
|
|
1490
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1491
|
-
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
|
|
1492
|
-
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
1493
|
-
condensed: !0,
|
|
1494
|
-
variant: "secondary",
|
|
1495
|
-
disabled: o.disabled
|
|
1496
|
-
}, "disable-arrow-down-opening-menu": t.disableArrowDownOpeningMenu, teleport: t.teleportMenu }, on: { open: function(a) {
|
|
1497
|
-
return e.emit("menu-open");
|
|
1498
|
-
}, close: function(a) {
|
|
1499
|
-
return e.emit("menu-close");
|
|
1500
|
-
}, "menu-item-click": function(a) {
|
|
1501
|
-
return e.emit("menu-item-click");
|
|
1502
|
-
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
|
|
1503
|
-
return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
|
|
1504
|
-
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1505
|
-
return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
|
|
1506
|
-
}, proxy: !0 }, e.shouldShowMenuIconRight(o) ? { key: "iconRight", fn: function() {
|
|
1507
|
-
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1508
|
-
}, proxy: !0 } : null], null, !0) }) : o.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(o), "button-text": e.getButtonTitle(o), button: {
|
|
1509
|
-
condensed: !0,
|
|
1510
|
-
variant: "secondary"
|
|
1511
|
-
} } }) : n(e.BentoButton, t._g({ attrs: { condensed: "", variant: "secondary", critical: o.critical, disabled: o.disabled, link: o.link }, scopedSlots: t._u([o.iconLeft || o.variant === "edit" ? { key: "iconLeft", fn: function() {
|
|
1512
|
-
return [(o == null ? void 0 : o.variant) === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1513
|
-
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1514
|
-
return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
|
|
1515
|
-
}, proxy: !0 }, o.iconRight || o.variant === "open" ? { key: "iconRight", fn: function() {
|
|
1516
|
-
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1517
|
-
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1518
|
-
}), 0)])]);
|
|
1519
|
-
}, Do = [], xo = /* @__PURE__ */ q(
|
|
1520
|
-
To,
|
|
1521
|
-
Io,
|
|
1522
|
-
Do,
|
|
1523
|
-
!1,
|
|
1524
|
-
null,
|
|
1525
|
-
"b6109751"
|
|
1526
|
-
);
|
|
1527
|
-
const Et = xo.exports, Lt = Symbol("data-grid slashed zero key");
|
|
1528
|
-
var j = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(j || {});
|
|
1529
|
-
const Fo = {
|
|
1530
|
-
"en-US": {
|
|
1531
|
-
collapseNestedContent: "Collapse nested content",
|
|
1532
|
-
expandNestedContent: "Expand nested content",
|
|
1533
|
-
selectRow: "Select row"
|
|
1534
|
-
}
|
|
1535
|
-
}, Mo = {
|
|
1536
|
-
i18n: { messages: Fo },
|
|
1537
|
-
name: "data-grid-cell"
|
|
1538
|
-
}, Bo = /* @__PURE__ */ ae({
|
|
1539
|
-
...Mo,
|
|
1540
|
-
props: {
|
|
1541
|
-
draggingEventsForRowCell: {
|
|
1542
|
-
type: Function,
|
|
1543
|
-
required: !0
|
|
1544
|
-
},
|
|
1545
|
-
/**
|
|
1546
|
-
* The columns sets including
|
|
1547
|
-
*/
|
|
1548
|
-
columnSets: {
|
|
1549
|
-
type: Array,
|
|
1550
|
-
required: !0
|
|
1551
|
-
},
|
|
1552
|
-
/**
|
|
1553
|
-
* The columns set we are iterating over
|
|
1554
|
-
*/
|
|
1555
|
-
column: {
|
|
1556
|
-
type: Object,
|
|
1557
|
-
required: !0
|
|
1558
|
-
},
|
|
1559
|
-
colIndex: {
|
|
1560
|
-
type: Number,
|
|
1561
|
-
required: !0
|
|
1562
|
-
},
|
|
1563
|
-
columnSetIndex: {
|
|
1564
|
-
type: Number,
|
|
1565
|
-
required: !0
|
|
1566
|
-
},
|
|
1567
|
-
/**
|
|
1568
|
-
* Sets the row cells to the condensed padding state.
|
|
1569
|
-
*/
|
|
1570
|
-
condensed: {
|
|
1571
|
-
type: Boolean,
|
|
1572
|
-
default: !1
|
|
1573
|
-
},
|
|
1574
|
-
/**
|
|
1575
|
-
* Columns being dragged, contains dragging column and a target column
|
|
1576
|
-
*/
|
|
1577
|
-
draggingColumns: {
|
|
1578
|
-
type: Object,
|
|
1579
|
-
default: void 0
|
|
1580
|
-
},
|
|
1581
|
-
/**
|
|
1582
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1583
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
1584
|
-
*/
|
|
1585
|
-
getDataItemId: {
|
|
1586
|
-
type: Function,
|
|
1587
|
-
default: (s) => s.id
|
|
1588
|
-
},
|
|
1589
|
-
/**
|
|
1590
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1591
|
-
*/
|
|
1592
|
-
hoveredOverColumnState: {
|
|
1593
|
-
type: Object,
|
|
1594
|
-
required: !0
|
|
1595
|
-
},
|
|
1596
|
-
/**
|
|
1597
|
-
* A customisable method to determine if a row is not selectable.
|
|
1598
|
-
* The default is that every row is selectable.
|
|
1599
|
-
*/
|
|
1600
|
-
isDataItemDisabled: {
|
|
1601
|
-
type: Function,
|
|
1602
|
-
default: () => !1
|
|
1603
|
-
},
|
|
1604
|
-
isMeasuringColumnWidths: {
|
|
1605
|
-
type: Boolean,
|
|
1606
|
-
default: !1
|
|
1607
|
-
},
|
|
1608
|
-
/**
|
|
1609
|
-
* Determines if the nested content is visible.
|
|
1610
|
-
*/
|
|
1611
|
-
isNestedContentExpanded: {
|
|
1612
|
-
type: Boolean,
|
|
1613
|
-
default: !1
|
|
1614
|
-
},
|
|
1615
|
-
/**
|
|
1616
|
-
* Determines if the nest content slot is enabled for this data row.
|
|
1617
|
-
*/
|
|
1618
|
-
nestedContent: {
|
|
1619
|
-
type: Boolean,
|
|
1620
|
-
default: !1
|
|
1621
|
-
},
|
|
1622
|
-
/**
|
|
1623
|
-
* The IDs of the rows this cell controls to show / hide them.
|
|
1624
|
-
*/
|
|
1625
|
-
nestedRowsElementIds: {
|
|
1626
|
-
type: Array,
|
|
1627
|
-
default: () => []
|
|
1628
|
-
},
|
|
1629
|
-
/**
|
|
1630
|
-
* The row data object
|
|
1631
|
-
*/
|
|
1632
|
-
rowData: {
|
|
1633
|
-
type: Object,
|
|
1634
|
-
required: !0
|
|
1635
|
-
},
|
|
1636
|
-
rowIndex: {
|
|
1637
|
-
type: Number,
|
|
1638
|
-
required: !0
|
|
1639
|
-
},
|
|
1640
|
-
/**
|
|
1641
|
-
* The row selection checkbox indeterminate state.
|
|
1642
|
-
*/
|
|
1643
|
-
selectionIsIndeterminate: {
|
|
1644
|
-
type: Boolean,
|
|
1645
|
-
default: !1
|
|
1646
|
-
},
|
|
1647
|
-
/**
|
|
1648
|
-
* Determines if the row selection is enabled.
|
|
1649
|
-
*/
|
|
1650
|
-
selectable: {
|
|
1651
|
-
type: Boolean,
|
|
1652
|
-
default: !1
|
|
1653
|
-
},
|
|
1654
|
-
selectedItems: {
|
|
1655
|
-
type: Array,
|
|
1656
|
-
required: !0
|
|
1657
|
-
}
|
|
1658
|
-
},
|
|
1659
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1660
|
-
setup(s, { expose: t, emit: n }) {
|
|
1661
|
-
const e = s, o = xe(), l = Me(o), { t: a } = ge(), g = E(null), v = E(null), f = E(!1), L = E([]), c = w(() => {
|
|
1662
|
-
var p;
|
|
1663
|
-
return !!((p = e.rowData) != null && p[e.column.field]);
|
|
1664
|
-
}), A = w(
|
|
1665
|
-
() => {
|
|
1666
|
-
var p;
|
|
1667
|
-
return e.column.field === ee && ((p = e.nestedRowsElementIds) == null ? void 0 : p.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1668
|
-
}
|
|
1669
|
-
), m = w(
|
|
1670
|
-
() => e.column.field === ee && !e.selectable && !e.nestedContent
|
|
1671
|
-
), d = (p, $) => (p == null ? void 0 : p.overflow) === Ne.ELLIPSIS ? `${$}` : void 0, h = (p) => p ?? "-", S = (p) => e.columnSets.slice(0, p).reduce(($, { columnSet: x }) => $ + x.length, 0), i = (p, $) => p + S($), _ = (p, $, x) => S() * p + i($, x), C = (p) => {
|
|
1672
|
-
var $;
|
|
1673
|
-
(p === null || !g.value.contains(p) && !(($ = L.value) != null && $.map((x) => x.value).some((x) => x === p || (x == null ? void 0 : x.contains(p))))) && (f.value = !1);
|
|
1674
|
-
}, b = () => {
|
|
1675
|
-
f.value = !1;
|
|
1676
|
-
}, O = E(!1), I = (p) => {
|
|
1677
|
-
const $ = {
|
|
1678
|
-
...e.draggingEventsForRowCell(p),
|
|
1679
|
-
// Focus on the first interactive child in the grid cell if one exists
|
|
1680
|
-
focus: () => {
|
|
1681
|
-
ze(g.value) && (O.value = !0);
|
|
1682
|
-
},
|
|
1683
|
-
focusout: () => {
|
|
1684
|
-
O.value = !1;
|
|
1685
|
-
}
|
|
1686
|
-
}, x = { ...$ };
|
|
1687
|
-
return p.frozen && (x.keyup = (D) => n("on-frozen-columns-key-press", D), x.keydown = (D) => n("on-frozen-columns-key-press", D)), p.cellActions && (x.mouseenter = () => {
|
|
1688
|
-
f.value = !0;
|
|
1689
|
-
}, x.mouseleave = (D) => {
|
|
1690
|
-
f.value = !1, C(D == null ? void 0 : D.relatedTarget);
|
|
1691
|
-
}, x.mouseleave = (D) => {
|
|
1692
|
-
C(D == null ? void 0 : D.relatedTarget);
|
|
1693
|
-
}, x.focus = (D) => {
|
|
1694
|
-
$.focus(D), f.value = !0;
|
|
1695
|
-
}, x.focusout = (D) => {
|
|
1696
|
-
$.focusout(D), C(D == null ? void 0 : D.relatedTarget);
|
|
1697
|
-
}), x;
|
|
1698
|
-
}, u = () => {
|
|
1699
|
-
n("nested-content-toggled");
|
|
1700
|
-
};
|
|
1701
|
-
te(
|
|
1702
|
-
() => f.value,
|
|
1703
|
-
() => {
|
|
1704
|
-
f.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1705
|
-
}
|
|
1706
|
-
);
|
|
1707
|
-
const R = (p) => {
|
|
1708
|
-
L.value.push(p);
|
|
1709
|
-
}, F = (p) => {
|
|
1710
|
-
g.value.contains(p == null ? void 0 : p.relatedTarget) || (f.value = !1);
|
|
1711
|
-
};
|
|
1712
|
-
ft(Fn, {
|
|
1713
|
-
registerMenuContainerElement: R,
|
|
1714
|
-
menuMouseLeave: F
|
|
1715
|
-
});
|
|
1716
|
-
const G = Ae(Lt, E(!1)), Z = (p) => {
|
|
1717
|
-
var $, x, D, z, M, K, r;
|
|
1718
|
-
return {
|
|
1719
|
-
[`b-data-grid-cell--${j.COLUMN_HOVERED}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1720
|
-
[`b-data-grid-cell--${j.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1721
|
-
[`b-data-grid-cell--${j.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1722
|
-
[`b-data-grid-cell--${j.PADDING_LEFT_UNSET}`]: (($ = p == null ? void 0 : p.padding) == null ? void 0 : $.left) === !1,
|
|
1723
|
-
[`b-data-grid-cell--${j.PADDING_RIGHT_UNSET}`]: ((x = p == null ? void 0 : p.padding) == null ? void 0 : x.right) === !1,
|
|
1724
|
-
[`b-data-grid-cell--${j.NUMERIC}`]: p == null ? void 0 : p.numeric,
|
|
1725
|
-
[`b-data-grid-cell--${j.CONDENSED}`]: e.condensed,
|
|
1726
|
-
[`b-data-grid-cell--${j.OVERFLOW_ELLIPSIS}`]: (p == null ? void 0 : p.overflow) === Ne.ELLIPSIS,
|
|
1727
|
-
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING}`]: ((D = e.draggingColumns.dragging) == null ? void 0 : D.field) === p.field,
|
|
1728
|
-
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((z = e.draggingColumns.target) == null ? void 0 : z.field) === p.field && ((M = e.draggingColumns) == null ? void 0 : M.dragToLeft),
|
|
1729
|
-
[`b-data-grid-cell--${j.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((K = e.draggingColumns.target) == null ? void 0 : K.field) === p.field && !((r = e.draggingColumns) != null && r.dragToLeft),
|
|
1730
|
-
[`b-data-grid-cell--${j.FROZEN}`]: p == null ? void 0 : p.frozen,
|
|
1731
|
-
[`b-data-grid-cell--${j.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1732
|
-
[`b-data-grid-cell--${j.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && p.field === ee,
|
|
1733
|
-
[`b-data-grid-cell--${j.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && p.field === ee,
|
|
1734
|
-
[`b-data-grid-cell--${j.ACTION_COL_SELECTION_ENABLED}`]: p.field === ee && e.selectable,
|
|
1735
|
-
[`b-data-grid-cell--${j.SLASHED_ZERO}`]: G.value
|
|
1736
|
-
};
|
|
1737
|
-
}, H = w(() => ({
|
|
1738
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": O.value
|
|
1739
|
-
}));
|
|
1740
|
-
return t({
|
|
1741
|
-
gridcellRef: g
|
|
1742
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: g, cellActionsRef: v, shouldShowCellActions: f, childrenMenuContainerElements: L, hasRowData: c, controlledNestedRowElementIds: A, ariaHidden: m, conditionalTitleAttribute: d, getRowData: h, sumColumnAmountsInColumnSets: S, getColIndex: i, getCellIndex: _, isLeavingCellFocus: C, onMenuClose: b, hasInteractiveElFocusedInside: O, getGridcellEvents: I, toggleNestedContent: u, registerMenuContainerElement: R, menuMouseLeave: F, hasSlashedZero: G, conditionalRowCellClasses: Z, computedCellContentClasses: H, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: ee, BentoCheckbox: ht, BentoTypography: me, BentoToggleButton: $e, DataGridCellActions: Et, ChevronDownIcon: zn, ChevronUpIcon: $n };
|
|
1743
|
-
}
|
|
1744
|
-
});
|
|
1745
|
-
var $o = function() {
|
|
1746
|
-
var o;
|
|
1747
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1748
|
-
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
1749
|
-
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
1750
|
-
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData), tabindex: "0" }, on: { "update:model-value": function(l) {
|
|
1751
|
-
return t.$emit("select-row", l);
|
|
1752
|
-
} } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1753
|
-
return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
|
|
1754
|
-
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1755
|
-
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
1756
|
-
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1757
|
-
}, zo = [], Po = /* @__PURE__ */ q(
|
|
1758
|
-
Bo,
|
|
1759
|
-
$o,
|
|
1760
|
-
zo,
|
|
1761
|
-
!1,
|
|
1762
|
-
null,
|
|
1763
|
-
"cbcb1afe"
|
|
1764
|
-
);
|
|
1765
|
-
const Uo = Po.exports, ko = {
|
|
1766
|
-
name: "data-grid-row"
|
|
1767
|
-
}, Wo = /* @__PURE__ */ ae({
|
|
1768
|
-
...ko,
|
|
1769
|
-
props: {
|
|
1770
|
-
/**
|
|
1771
|
-
* Row actions property that generates which button to show in row actions area
|
|
1772
|
-
*/
|
|
1773
|
-
rowActions: {
|
|
1774
|
-
type: [Function, Array],
|
|
1775
|
-
default: void 0
|
|
1776
|
-
},
|
|
1777
|
-
/**
|
|
1778
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
1779
|
-
*/
|
|
1780
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
1781
|
-
/**
|
|
1782
|
-
* The columns sets including
|
|
1783
|
-
*/
|
|
1784
|
-
columnSets: {
|
|
1785
|
-
type: Array,
|
|
1786
|
-
required: !0
|
|
1787
|
-
},
|
|
1788
|
-
/**
|
|
1789
|
-
* Sets the row cells to the condensed padding state.
|
|
1790
|
-
*/
|
|
1791
|
-
condensed: {
|
|
1792
|
-
type: Boolean,
|
|
1793
|
-
default: !1
|
|
1794
|
-
},
|
|
1795
|
-
/**
|
|
1796
|
-
* Columns being dragged, contains dragging column and a target column
|
|
1797
|
-
*/
|
|
1798
|
-
draggingColumns: {
|
|
1799
|
-
type: Object,
|
|
1800
|
-
default: void 0
|
|
1801
|
-
},
|
|
1802
|
-
/**
|
|
1803
|
-
* Dragging event handlers for each row cell
|
|
1804
|
-
*/
|
|
1805
|
-
draggingEventsForRowCell: {
|
|
1806
|
-
type: Function,
|
|
1807
|
-
required: !0
|
|
1808
|
-
},
|
|
1809
|
-
/**
|
|
1810
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1811
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
1812
|
-
*/
|
|
1813
|
-
getDataItemId: {
|
|
1814
|
-
type: Function,
|
|
1815
|
-
default: (s) => s.id
|
|
1816
|
-
},
|
|
1817
|
-
/**
|
|
1818
|
-
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
1819
|
-
*/
|
|
1820
|
-
hasLeftOverflow: {
|
|
1821
|
-
type: Boolean,
|
|
1822
|
-
default: !1
|
|
1823
|
-
},
|
|
1824
|
-
/**
|
|
1825
|
-
* Enables the nested content slot functionality.
|
|
1826
|
-
*/
|
|
1827
|
-
hasNestedContent: {
|
|
1828
|
-
type: Boolean,
|
|
1829
|
-
default: !1
|
|
1830
|
-
},
|
|
1831
|
-
/**
|
|
1832
|
-
* Enables the nested content slot functionality.
|
|
1833
|
-
*/
|
|
1834
|
-
hasNestedRows: {
|
|
1835
|
-
type: Boolean,
|
|
1836
|
-
default: !1
|
|
1837
|
-
},
|
|
1838
|
-
/**
|
|
1839
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1840
|
-
*/
|
|
1841
|
-
hasRightOverflow: {
|
|
1842
|
-
type: Boolean,
|
|
1843
|
-
default: !1
|
|
1844
|
-
},
|
|
1845
|
-
/**
|
|
1846
|
-
* Highlighted row IDs.
|
|
1847
|
-
*/
|
|
1848
|
-
highlightedRows: {
|
|
1849
|
-
type: Array,
|
|
1850
|
-
default: () => []
|
|
1851
|
-
},
|
|
1852
|
-
/**
|
|
1853
|
-
* The row index of a currently hovered row.
|
|
1854
|
-
*/
|
|
1855
|
-
hoveredRowIndex: {
|
|
1856
|
-
type: Number,
|
|
1857
|
-
default: -1
|
|
1858
|
-
},
|
|
1859
|
-
/**
|
|
1860
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1861
|
-
*/
|
|
1862
|
-
hoveredOverColumnState: {
|
|
1863
|
-
type: Object,
|
|
1864
|
-
required: !0
|
|
1865
|
-
},
|
|
1866
|
-
/**
|
|
1867
|
-
* A customisable method to determine if a row is not selectable.
|
|
1868
|
-
* The default is that every row is selectable.
|
|
1869
|
-
*/
|
|
1870
|
-
isDataItemDisabled: {
|
|
1871
|
-
type: Function,
|
|
1872
|
-
default: () => !1
|
|
1873
|
-
},
|
|
1874
|
-
/**
|
|
1875
|
-
* If the row is the last child in it's parent container.
|
|
1876
|
-
*/
|
|
1877
|
-
isRowLastChild: {
|
|
1878
|
-
type: Boolean,
|
|
1879
|
-
default: !1
|
|
1880
|
-
},
|
|
1881
|
-
/**
|
|
1882
|
-
* If columns are being measured for the autoWidth functionality.
|
|
1883
|
-
*/
|
|
1884
|
-
isMeasuringColumnWidths: {
|
|
1885
|
-
type: Boolean,
|
|
1886
|
-
default: !1
|
|
1887
|
-
},
|
|
1888
|
-
/**
|
|
1889
|
-
* Determines if this row is nested inside another row.
|
|
1890
|
-
*/
|
|
1891
|
-
isNestedRow: {
|
|
1892
|
-
type: Boolean,
|
|
1893
|
-
default: !1
|
|
1894
|
-
},
|
|
1895
|
-
/**
|
|
1896
|
-
* The maximum width of the row actions in all rows
|
|
1897
|
-
*/
|
|
1898
|
-
rowActionsMaximumWidth: {
|
|
1899
|
-
type: Number,
|
|
1900
|
-
default: 0
|
|
1901
|
-
},
|
|
1902
|
-
/**
|
|
1903
|
-
* The row data object
|
|
1904
|
-
*/
|
|
1905
|
-
rowData: {
|
|
1906
|
-
type: Object,
|
|
1907
|
-
required: !0
|
|
1908
|
-
},
|
|
1909
|
-
/**
|
|
1910
|
-
* The row index.
|
|
1911
|
-
*/
|
|
1912
|
-
rowIndex: {
|
|
1913
|
-
type: Number,
|
|
1914
|
-
required: !0
|
|
1915
|
-
},
|
|
1916
|
-
/**
|
|
1917
|
-
* The row ID to be using for the ID attribute.
|
|
1918
|
-
*/
|
|
1919
|
-
rowId: {
|
|
1920
|
-
type: Number,
|
|
1921
|
-
default: void 0
|
|
1922
|
-
},
|
|
1923
|
-
/**
|
|
1924
|
-
* The number of rows that this row is within.
|
|
1925
|
-
*/
|
|
1926
|
-
rowSetSize: {
|
|
1927
|
-
type: Number,
|
|
1928
|
-
default: 0
|
|
1929
|
-
},
|
|
1930
|
-
/**
|
|
1931
|
-
* Determines whether to render frozen seperator on the row.
|
|
1932
|
-
*/
|
|
1933
|
-
showFrozenColumnsSeparator: {
|
|
1934
|
-
type: Boolean,
|
|
1935
|
-
default: !1
|
|
1936
|
-
},
|
|
1937
|
-
/**
|
|
1938
|
-
* Determines if the row selection is enabled.
|
|
1939
|
-
*/
|
|
1940
|
-
selectable: {
|
|
1941
|
-
type: Boolean,
|
|
1942
|
-
default: !1
|
|
1943
|
-
},
|
|
1944
|
-
/**
|
|
1945
|
-
* The array of IDs for the selected rows.
|
|
1946
|
-
*/
|
|
1947
|
-
selectedItems: {
|
|
1948
|
-
type: Array,
|
|
1949
|
-
required: !0
|
|
1950
|
-
},
|
|
1951
|
-
/**
|
|
1952
|
-
* Enables / Disables the nested-content slot
|
|
1953
|
-
*/
|
|
1954
|
-
shouldShowNestedContent: {
|
|
1955
|
-
type: Function,
|
|
1956
|
-
default: (s) => !0
|
|
1957
|
-
},
|
|
1958
|
-
/**
|
|
1959
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
1960
|
-
*/
|
|
1961
|
-
shouldShowNestedRows: {
|
|
1962
|
-
type: Function,
|
|
1963
|
-
default: (s) => !0
|
|
1964
|
-
}
|
|
1965
|
-
},
|
|
1966
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
1967
|
-
setup(s, { expose: t, emit: n }) {
|
|
1968
|
-
const e = s, o = xe(), l = Me(o), a = E({}), g = E(!1), v = E(), f = E(), L = Oe("nested-content-slot"), c = E(!1), A = w(() => e.shouldShowNestedRows(e.rowData)), m = w(
|
|
1969
|
-
() => {
|
|
1970
|
-
var y, B;
|
|
1971
|
-
return !e.isNestedRow && e.hasNestedRows && A.value && ((B = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : B.length) > 0;
|
|
1972
|
-
}
|
|
1973
|
-
), d = w(
|
|
1974
|
-
() => {
|
|
1975
|
-
var y, B;
|
|
1976
|
-
return !e.isNestedRow && e.hasNestedRows && A.value && (((y = e.rowData) == null ? void 0 : y.children) === void 0 || ((B = e == null ? void 0 : e.rowData) == null ? void 0 : B.children.length) === 0);
|
|
1977
|
-
}
|
|
1978
|
-
), h = w(
|
|
1979
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && A.value && !e.isNestedRow
|
|
1980
|
-
), S = w(() => {
|
|
1981
|
-
if (e.hasNestedContent || e.hasNestedRows) {
|
|
1982
|
-
const y = g.value.toString();
|
|
1983
|
-
return {
|
|
1984
|
-
"aria-expanded": h.value ? y : void 0,
|
|
1985
|
-
"aria-level": e.isNestedRow ? "2" : "1",
|
|
1986
|
-
"aria-posinset": e.rowIndex + 1,
|
|
1987
|
-
"aria-setsize": e.rowSetSize
|
|
1988
|
-
};
|
|
1989
|
-
}
|
|
1990
|
-
return { "aria-rowindex": e.rowIndex + 1 };
|
|
1991
|
-
}), i = w(() => {
|
|
1992
|
-
if (d.value)
|
|
1993
|
-
return {
|
|
1994
|
-
"aria-busy": "true",
|
|
1995
|
-
"aria-live": "polite"
|
|
1996
|
-
};
|
|
1997
|
-
if (!(m.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
1998
|
-
return {
|
|
1999
|
-
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2000
|
-
"aria-posinset": "1",
|
|
2001
|
-
"aria-setsize": "1",
|
|
2002
|
-
id: L,
|
|
2003
|
-
role: "row",
|
|
2004
|
-
tabindex: "-1"
|
|
2005
|
-
};
|
|
2006
|
-
}), _ = w(() => {
|
|
2007
|
-
var y, B;
|
|
2008
|
-
return m.value ? (B = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : B.reduce((k, Y, Q) => (k[Q] = Oe("nested-row"), k), {}) : [];
|
|
2009
|
-
}), C = w(() => {
|
|
2010
|
-
var y;
|
|
2011
|
-
if (g.value) {
|
|
2012
|
-
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2013
|
-
return [L];
|
|
2014
|
-
if (m.value && ((y = Object.keys(_.value)) == null ? void 0 : y.length) > 0) {
|
|
2015
|
-
const B = Object.values(_.value);
|
|
2016
|
-
if ((B == null ? void 0 : B.length) > 0)
|
|
2017
|
-
return B;
|
|
2018
|
-
}
|
|
2019
|
-
return [];
|
|
2020
|
-
}
|
|
2021
|
-
}), b = w(() => {
|
|
2022
|
-
var B, k;
|
|
2023
|
-
const y = (k = (B = e.rowData) == null ? void 0 : B.children) == null ? void 0 : k.map((Y) => e.getDataItemId(Y));
|
|
2024
|
-
if ((y == null ? void 0 : y.length) > 0) {
|
|
2025
|
-
const Y = y.every((le) => {
|
|
2026
|
-
var U;
|
|
2027
|
-
return (U = e == null ? void 0 : e.selectedItems) == null ? void 0 : U.includes(le);
|
|
2028
|
-
}), Q = y.some((le) => {
|
|
2029
|
-
var U;
|
|
2030
|
-
return (U = e == null ? void 0 : e.selectedItems) == null ? void 0 : U.includes(le);
|
|
2031
|
-
});
|
|
2032
|
-
return !Y && Q;
|
|
2033
|
-
}
|
|
2034
|
-
return !1;
|
|
2035
|
-
}), O = (y, B) => {
|
|
2036
|
-
const k = y;
|
|
2037
|
-
y !== null && (k != null && k.gridcellRef) && (a.value[B] = k.gridcellRef);
|
|
2038
|
-
}, I = (y) => _.value[y], u = (y) => {
|
|
2039
|
-
if (!e.selectable)
|
|
2040
|
-
return null;
|
|
2041
|
-
const B = e.getDataItemId(y);
|
|
2042
|
-
return e.selectedItems.includes(B).toString();
|
|
2043
|
-
}, R = (y) => {
|
|
2044
|
-
var Y;
|
|
2045
|
-
let B = !1;
|
|
2046
|
-
const k = ["button", "input", "a"];
|
|
2047
|
-
for (let Q = 0; Q < k.length; Q++)
|
|
2048
|
-
if ((Y = y == null ? void 0 : y.target) != null && Y.closest(k[Q])) {
|
|
2049
|
-
B = !0;
|
|
2050
|
-
break;
|
|
2051
|
-
}
|
|
2052
|
-
!B && e.allowRowClicks && n("row-click", e.rowData, y);
|
|
2053
|
-
}, F = (y) => {
|
|
2054
|
-
n("select-row", y, e.rowData);
|
|
2055
|
-
}, G = (y, B) => {
|
|
2056
|
-
n("select-nested-row", B, e.rowData, y);
|
|
2057
|
-
}, Z = () => {
|
|
2058
|
-
c.value = !0;
|
|
2059
|
-
}, H = () => {
|
|
2060
|
-
c.value = !1;
|
|
2061
|
-
}, p = () => {
|
|
2062
|
-
ze(f.value);
|
|
2063
|
-
}, $ = () => e.columnSets.reduce((y, { columnSet: B }) => y + B.length, 0), x = () => $() * e.rowIndex + $(), { updateContentHeight: D, contentHeight: z } = Dn(v, g), M = w(() => {
|
|
2064
|
-
var y;
|
|
2065
|
-
if (e.hasNestedContent || e.hasNestedRows)
|
|
2066
|
-
return {
|
|
2067
|
-
paddingLeft: `${m.value || d.value ? 0 : a.value[ee].clientWidth + pt}px`,
|
|
2068
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) && z.value && !((y = z == null ? void 0 : z.value) != null && y.includes("null")) ? z.value : 0
|
|
2069
|
-
};
|
|
2070
|
-
});
|
|
2071
|
-
te(
|
|
2072
|
-
() => v.value,
|
|
2073
|
-
() => {
|
|
2074
|
-
let y = null;
|
|
2075
|
-
!y && v.value && (y = Be(v.value, () => {
|
|
2076
|
-
v.value && D();
|
|
2077
|
-
}));
|
|
2078
|
-
}
|
|
2079
|
-
);
|
|
2080
|
-
const K = () => {
|
|
2081
|
-
g.value = !g.value, D(), n("nested-content-toggled", e.rowData);
|
|
2082
|
-
};
|
|
2083
|
-
te(
|
|
2084
|
-
() => {
|
|
2085
|
-
var y;
|
|
2086
|
-
return (y = e.rowData) == null ? void 0 : y.children;
|
|
2087
|
-
},
|
|
2088
|
-
(y, B) => {
|
|
2089
|
-
var k, Y;
|
|
2090
|
-
((Y = (k = e == null ? void 0 : e.rowData) == null ? void 0 : k.children) == null ? void 0 : Y.length) > 0 && B === void 0 && !g.value && D();
|
|
2091
|
-
}
|
|
2092
|
-
);
|
|
2093
|
-
const r = (y, B) => ({
|
|
2094
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(y),
|
|
2095
|
-
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2096
|
-
"b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(y)) || e.selectedItems.includes(e.getDataItemId(y)),
|
|
2097
|
-
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === B,
|
|
2098
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !g.value,
|
|
2099
|
-
"b-data-grid-row-container__row--nested-row": e.isNestedRow
|
|
2100
|
-
}), P = (y) => ({
|
|
2101
|
-
"b-data-grid-row-container__row-cell-set--frozen": y,
|
|
2102
|
-
[`b-data-grid-row-container__row-cell-set--${ce.OVERFLOW_SHADOW_LEFT}`]: y && e.hasLeftOverflow,
|
|
2103
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": y && e.showFrozenColumnsSeparator,
|
|
2104
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !y,
|
|
2105
|
-
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2106
|
-
}), oe = w(() => ({
|
|
2107
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2108
|
-
"b-data-grid-row-container__row-nested-slot": !m.value && e.shouldShowNestedContent(e.rowData)
|
|
2109
|
-
})), ne = w(() => ({
|
|
2110
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": c.value
|
|
2111
|
-
})), ie = w(() => ({
|
|
2112
|
-
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2113
|
-
}));
|
|
2114
|
-
return t({
|
|
2115
|
-
gridcellRefs: a,
|
|
2116
|
-
rowActionsRef: f
|
|
2117
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: g, nestedContentRef: v, rowActionsRef: f, nestedContentSlotId: L, isRowActionMenuOpen: c, shouldShowNestedRowsBooleanResult: A, shouldShowRenderNestedRows: m, isLoadingNestedRows: d, shouldShowNestedContentToggle: h, ariaRowAttributes: S, nestedContentContainerDivAriaAttributes: i, nestedRowIds: _, allNestedRowIds: C, hasUnSelectedNestedRows: b, registerRowCellRef: O, getRowId: I, getRowAriaSelectedValue: u, onRowClick: R, onRowSelect: F, onNestedRowSelect: G, onRowActionMenuOpen: Z, onRowActionMenuClose: H, onRowActionsCellFocus: p, sumColumnAmountsInColumnSets: $, getRowActionsCellIndex: x, updateContentHeight: D, contentHeight: z, nestedContentStyles: M, nestedContentToggled: K, conditionalRowClasses: r, conditionalRowSetClasses: P, conditionalNestedRowClasses: oe, conditionalRowActionsContainerClasses: ne, computedRowActionsStyles: ie, DataGridCell: Uo, DataGridCellActions: Et, BentoLoadingIndicator: Fe, DataGridRow: yt };
|
|
2118
|
-
}
|
|
2119
|
-
});
|
|
2120
|
-
var Go = function() {
|
|
2121
|
-
var o;
|
|
2122
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2123
|
-
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, v) {
|
|
2124
|
-
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(g), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(f, L) {
|
|
2125
|
-
return n(e.DataGridCell, { key: `cell-${f.field}`, ref: (c) => e.registerRowCellRef(c, f.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: f, "column-set-index": v, "col-index": L, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(c) {
|
|
2126
|
-
return e.emit("cell-hovered", c);
|
|
2127
|
-
}, "on-frozen-columns-key-press": function(c) {
|
|
2128
|
-
return e.emit("on-frozen-columns-key-press", c);
|
|
2129
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(c, A) {
|
|
2130
|
-
return { key: A, fn: function(m) {
|
|
2131
|
-
return [t._t(A, null, null, m)];
|
|
2132
|
-
} };
|
|
2133
|
-
})], null, !0) });
|
|
2134
|
-
}), 1) : t._e(), !g && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
|
|
2135
|
-
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(l, a) {
|
|
2136
|
-
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(g) {
|
|
2137
|
-
return e.emit("cell-hovered", g);
|
|
2138
|
-
}, "row-click": function(g) {
|
|
2139
|
-
return e.emit("row-click", ...g);
|
|
2140
|
-
}, "on-frozen-columns-key-press": function(g) {
|
|
2141
|
-
return e.emit("on-frozen-columns-key-press", g);
|
|
2142
|
-
}, "select-row": function(g) {
|
|
2143
|
-
return e.onNestedRowSelect(l, g);
|
|
2144
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(g, v) {
|
|
2145
|
-
return { key: v, fn: function(f) {
|
|
2146
|
-
return [t._t(v, null, null, f)];
|
|
2147
|
-
} };
|
|
2148
|
-
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2149
|
-
}) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()], 2)]) : t._e()]) : t._e()], 1);
|
|
2150
|
-
}, Ho = [], Vo = /* @__PURE__ */ q(
|
|
2151
|
-
Wo,
|
|
2152
|
-
Go,
|
|
2153
|
-
Ho,
|
|
2154
|
-
!1,
|
|
2155
|
-
null,
|
|
2156
|
-
"9ebc1423"
|
|
2157
|
-
);
|
|
2158
|
-
const yt = Vo.exports;
|
|
2159
|
-
let ct = 0;
|
|
2160
|
-
const Zo = {
|
|
2161
|
-
beforeCreate() {
|
|
2162
|
-
this.uuid = ct.toString(), ct += 1;
|
|
2163
|
-
}
|
|
2164
|
-
};
|
|
2165
|
-
var jo = function() {
|
|
2166
|
-
var t = this, n = t._self._c;
|
|
2167
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 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 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2168
|
-
}, qo = [], Yo = /* @__PURE__ */ q(
|
|
2169
|
-
Zo,
|
|
2170
|
-
jo,
|
|
2171
|
-
qo,
|
|
2172
|
-
!1,
|
|
2173
|
-
null,
|
|
2174
|
-
null
|
|
2175
|
-
);
|
|
2176
|
-
const Xo = Yo.exports, Ko = {}, Jo = /* @__PURE__ */ ae({
|
|
2177
|
-
...Ko,
|
|
2178
|
-
__name: "data-grid-static-icon",
|
|
2179
|
-
props: {
|
|
2180
|
-
colored: { type: Boolean, default: !1 },
|
|
2181
|
-
tooltipText: null,
|
|
2182
|
-
variant: { default: "no-value" }
|
|
2183
|
-
},
|
|
2184
|
-
setup(s) {
|
|
2185
|
-
const t = s, n = w(() => {
|
|
2186
|
-
switch (t.variant) {
|
|
2187
|
-
case "checkmark":
|
|
2188
|
-
return wn;
|
|
2189
|
-
case "warning":
|
|
2190
|
-
return Sn;
|
|
2191
|
-
case "error":
|
|
2192
|
-
return Xo;
|
|
2193
|
-
case "cross":
|
|
2194
|
-
return gt;
|
|
2195
|
-
case "no-value":
|
|
2196
|
-
return Ye;
|
|
2197
|
-
default:
|
|
2198
|
-
return Ye;
|
|
2199
|
-
}
|
|
2200
|
-
}), e = w(() => ({
|
|
2201
|
-
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2202
|
-
})), o = w(() => `b-data-grid-static-icon__${t.variant}`), l = w(() => En.AUTO);
|
|
2203
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Ln };
|
|
2204
|
-
}
|
|
2205
|
-
});
|
|
2206
|
-
var Qo = function() {
|
|
2207
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2208
|
-
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2209
|
-
}, el = [], tl = /* @__PURE__ */ q(
|
|
2210
|
-
Jo,
|
|
2211
|
-
Qo,
|
|
2212
|
-
el,
|
|
2213
|
-
!1,
|
|
2214
|
-
null,
|
|
2215
|
-
"f8532817"
|
|
2216
|
-
);
|
|
2217
|
-
const Jl = tl.exports, nl = () => {
|
|
2218
|
-
const s = window.getSelection().getRangeAt(0).cloneContents(), t = s.querySelectorAll('[role="row"]');
|
|
2219
|
-
let n = "<table>";
|
|
2220
|
-
const e = (o) => {
|
|
2221
|
-
o.forEach((l) => {
|
|
2222
|
-
const a = l.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", g = l.textContent.trim();
|
|
2223
|
-
g && (n += `<${a}>${g}</${a}>`);
|
|
2224
|
-
});
|
|
2225
|
-
};
|
|
2226
|
-
if (!t.length) {
|
|
2227
|
-
const o = s.querySelectorAll(
|
|
2228
|
-
'[role="gridcell"] .b-typography, [role="columnheader"] .b-typography'
|
|
2229
|
-
);
|
|
2230
|
-
if (o.length)
|
|
2231
|
-
n += "<tr>", e(o), n += "</tr>";
|
|
2232
|
-
else {
|
|
2233
|
-
navigator.clipboard.writeText(s.textContent);
|
|
2234
|
-
return;
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
t.forEach((o) => {
|
|
2238
|
-
const l = o.querySelectorAll('[role="gridcell"] .b-typography, [role="columnheader"] .b-typography');
|
|
2239
|
-
n += "<tr>", l.length ? e(l) : n += "<td>" + o.textContent.trim() + "</td>", n += "</tr>";
|
|
2240
|
-
}), n += "</table>", navigator.clipboard.write([
|
|
2241
|
-
new ClipboardItem({
|
|
2242
|
-
"text/html": new Blob([n], { type: "text/html" }),
|
|
2243
|
-
"text/plain": new Blob([n], { type: "text/plain" })
|
|
2244
|
-
})
|
|
2245
|
-
]);
|
|
2246
|
-
}, sl = {
|
|
2247
|
-
i18n: { messages: St },
|
|
2248
|
-
name: "bento-data-grid"
|
|
2249
|
-
}, ol = /* @__PURE__ */ ae({
|
|
2250
|
-
...sl,
|
|
2251
|
-
props: {
|
|
2252
|
-
/**
|
|
2253
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2254
|
-
*/
|
|
2255
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2256
|
-
/**
|
|
2257
|
-
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
2258
|
-
*/
|
|
2259
|
-
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
2260
|
-
/**
|
|
2261
|
-
* List of actions that will be rendered in the action bar when user selects items.
|
|
2262
|
-
*
|
|
2263
|
-
* Each object in the list should have a `title`, an `event` and,
|
|
2264
|
-
* optionally, an `icon`.
|
|
2265
|
-
*
|
|
2266
|
-
* The component will display 4 actions and the hide the rest inside a menu.
|
|
2267
|
-
*
|
|
2268
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
2269
|
-
*/
|
|
2270
|
-
bulkActions: {
|
|
2271
|
-
type: Array,
|
|
2272
|
-
default: null
|
|
2273
|
-
},
|
|
2274
|
-
/**
|
|
2275
|
-
* Sets the row cells to the condensed padding state.
|
|
2276
|
-
*/
|
|
2277
|
-
condensed: {
|
|
2278
|
-
type: Boolean,
|
|
2279
|
-
default: !1
|
|
2280
|
-
},
|
|
2281
|
-
/**
|
|
2282
|
-
* Column definitions using 'key' to relate to data object.
|
|
2283
|
-
*/
|
|
2284
|
-
columns: {
|
|
2285
|
-
type: Array,
|
|
2286
|
-
required: !0
|
|
2287
|
-
},
|
|
2288
|
-
/**
|
|
2289
|
-
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2290
|
-
*/
|
|
2291
|
-
columnPanel: { type: Boolean, default: !1 },
|
|
2292
|
-
/**
|
|
2293
|
-
* An array of data objects to display.
|
|
2294
|
-
*/
|
|
2295
|
-
data: {
|
|
2296
|
-
type: Array,
|
|
2297
|
-
required: !0
|
|
2298
|
-
},
|
|
2299
|
-
/**
|
|
2300
|
-
* Empty state props that will be passed down to inner empty-state component
|
|
2301
|
-
*/
|
|
2302
|
-
emptyState: {
|
|
2303
|
-
type: Object,
|
|
2304
|
-
default: void 0
|
|
2305
|
-
},
|
|
2306
|
-
/**
|
|
2307
|
-
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2308
|
-
* {@see BentoFilterBarModel}
|
|
2309
|
-
*/
|
|
2310
|
-
filters: {
|
|
2311
|
-
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2312
|
-
type: Array,
|
|
2313
|
-
default: void 0
|
|
2314
|
-
},
|
|
2315
|
-
/**
|
|
2316
|
-
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
2317
|
-
* container sizes:
|
|
2318
|
-
* - Large (>=700px): Always multi-line
|
|
2319
|
-
* - Medium (>=430px & <700px)
|
|
2320
|
-
* - Small (<430px)
|
|
2321
|
-
*
|
|
2322
|
-
* @default
|
|
2323
|
-
* {
|
|
2324
|
-
* medium: 'multi-line',
|
|
2325
|
-
* small: 'one-line'
|
|
2326
|
-
* }
|
|
2327
|
-
*/
|
|
2328
|
-
filtersContainerSizeLayout: {
|
|
2329
|
-
type: Object,
|
|
2330
|
-
default: void 0
|
|
2331
|
-
},
|
|
2332
|
-
/**
|
|
2333
|
-
* An array of the values for each filter set in `value`.
|
|
2334
|
-
* {@see BentoFilterValues}
|
|
2335
|
-
*/
|
|
2336
|
-
filterValues: {
|
|
2337
|
-
type: Re.props.filterValues.type,
|
|
2338
|
-
default: () => []
|
|
2339
|
-
},
|
|
2340
|
-
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
2341
|
-
// It was not done now because it's a breaking change for the types.
|
|
2342
|
-
/**
|
|
2343
|
-
* Filter's search bar properties with which the placeholder, hint and other
|
|
2344
|
-
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
2345
|
-
*/
|
|
2346
|
-
filterSearchConfig: {
|
|
2347
|
-
type: Object,
|
|
2348
|
-
default: void 0
|
|
2349
|
-
},
|
|
2350
|
-
/**
|
|
2351
|
-
* Filter bar search term useful to filter all the data by text
|
|
2352
|
-
*/
|
|
2353
|
-
filterSearchTerm: {
|
|
2354
|
-
type: Re.props.searchTerm.type,
|
|
2355
|
-
default: void 0
|
|
2356
|
-
},
|
|
2357
|
-
/**
|
|
2358
|
-
* Allows the grid to be rendered inside a confined space.
|
|
2359
|
-
*/
|
|
2360
|
-
fitContent: { type: Boolean, default: !1 },
|
|
2361
|
-
/**
|
|
2362
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2363
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2364
|
-
*/
|
|
2365
|
-
getDataItemId: {
|
|
2366
|
-
type: Function,
|
|
2367
|
-
default: (s) => s.id
|
|
2368
|
-
},
|
|
2369
|
-
/**
|
|
2370
|
-
* Row actions propery that generates which button to show in row actions area
|
|
2371
|
-
*/
|
|
2372
|
-
rowActions: {
|
|
2373
|
-
type: [Function, Array],
|
|
2374
|
-
default: void 0
|
|
2375
|
-
},
|
|
2376
|
-
/**
|
|
2377
|
-
* If resize is enabled
|
|
2378
|
-
*/
|
|
2379
|
-
hasResizableColumns: {
|
|
2380
|
-
type: Boolean,
|
|
2381
|
-
default: !0
|
|
2382
|
-
},
|
|
2383
|
-
/**
|
|
2384
|
-
* Enables the nested content slot functionality.
|
|
2385
|
-
*/
|
|
2386
|
-
hasNestedContent: {
|
|
2387
|
-
type: Boolean,
|
|
2388
|
-
default: !1
|
|
2389
|
-
},
|
|
2390
|
-
/**
|
|
2391
|
-
* Enables the nested content slot functionality.
|
|
2392
|
-
*/
|
|
2393
|
-
hasNestedRows: {
|
|
2394
|
-
type: Boolean,
|
|
2395
|
-
default: !1
|
|
2396
|
-
},
|
|
2397
|
-
/**
|
|
2398
|
-
* Highlighted items
|
|
2399
|
-
*/
|
|
2400
|
-
highlightedRows: {
|
|
2401
|
-
type: Array,
|
|
2402
|
-
default: () => []
|
|
2403
|
-
},
|
|
2404
|
-
/**
|
|
2405
|
-
* A customisable method to determine if a row is not selectable.
|
|
2406
|
-
* The default is that every row is selectable.
|
|
2407
|
-
*/
|
|
2408
|
-
isDataItemDisabled: {
|
|
2409
|
-
type: Function,
|
|
2410
|
-
default: () => !1
|
|
2411
|
-
},
|
|
2412
|
-
/**
|
|
2413
|
-
* The type of `Lazy Load`.
|
|
2414
|
-
* Type "automatic" will enable infinite scrolling
|
|
2415
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
2416
|
-
* @values automatic, button, none
|
|
2417
|
-
*/
|
|
2418
|
-
lazyLoadType: {
|
|
2419
|
-
type: String,
|
|
2420
|
-
default: "none",
|
|
2421
|
-
validator: (s) => ["automatic", "button", "none"].includes(s)
|
|
2422
|
-
},
|
|
2423
|
-
/**
|
|
2424
|
-
* If the loading indicator should be shown.
|
|
2425
|
-
*/
|
|
2426
|
-
loading: {
|
|
2427
|
-
type: Boolean,
|
|
2428
|
-
default: !1
|
|
2429
|
-
},
|
|
2430
|
-
/**
|
|
2431
|
-
* Enables / Disables the table's surrounding border.
|
|
2432
|
-
*/
|
|
2433
|
-
outline: {
|
|
2434
|
-
type: Boolean,
|
|
2435
|
-
default: !1
|
|
2436
|
-
},
|
|
2437
|
-
/**
|
|
2438
|
-
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2439
|
-
*/
|
|
2440
|
-
noSpacingTop: {
|
|
2441
|
-
type: Boolean,
|
|
2442
|
-
default: !1
|
|
2443
|
-
},
|
|
2444
|
-
/**
|
|
2445
|
-
* Pagination props that will be passed down to inner pagination component
|
|
2446
|
-
*/
|
|
2447
|
-
pagination: {
|
|
2448
|
-
type: Object,
|
|
2449
|
-
default: void 0
|
|
2450
|
-
},
|
|
2451
|
-
/**
|
|
2452
|
-
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
2453
|
-
*/
|
|
2454
|
-
selectableAcrossPages: {
|
|
2455
|
-
type: Boolean,
|
|
2456
|
-
default: !1
|
|
2457
|
-
},
|
|
2458
|
-
/**
|
|
2459
|
-
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
2460
|
-
*/
|
|
2461
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
2462
|
-
/**
|
|
2463
|
-
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2464
|
-
*/
|
|
2465
|
-
stickyHorizontalScrollbar: {
|
|
2466
|
-
type: Boolean,
|
|
2467
|
-
default: !1
|
|
2468
|
-
},
|
|
2469
|
-
/**
|
|
2470
|
-
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
2471
|
-
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
2472
|
-
*/
|
|
2473
|
-
stickyPagination: {
|
|
2474
|
-
type: Boolean,
|
|
2475
|
-
default: !1
|
|
2476
|
-
},
|
|
2477
|
-
/**
|
|
2478
|
-
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
2479
|
-
* Defaults to true.
|
|
2480
|
-
*/
|
|
2481
|
-
stickyFilters: {
|
|
2482
|
-
type: Boolean,
|
|
2483
|
-
default: !0
|
|
2484
|
-
},
|
|
2485
|
-
/**
|
|
2486
|
-
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
2487
|
-
*/
|
|
2488
|
-
selectable: {
|
|
2489
|
-
type: Boolean,
|
|
2490
|
-
default: !1
|
|
2491
|
-
},
|
|
2492
|
-
/**
|
|
2493
|
-
* Selected items
|
|
2494
|
-
*/
|
|
2495
|
-
selection: {
|
|
2496
|
-
type: Array,
|
|
2497
|
-
default: () => []
|
|
2498
|
-
},
|
|
2499
|
-
/**
|
|
2500
|
-
* Enables / Disables the nested-content slot
|
|
2501
|
-
*/
|
|
2502
|
-
shouldShowNestedContent: {
|
|
2503
|
-
type: Function,
|
|
2504
|
-
default: (s) => !0
|
|
2505
|
-
},
|
|
2506
|
-
/**
|
|
2507
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2508
|
-
*/
|
|
2509
|
-
shouldShowNestedRows: {
|
|
2510
|
-
type: Function,
|
|
2511
|
-
default: (s) => !0
|
|
2512
|
-
},
|
|
2513
|
-
/**
|
|
2514
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
2515
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
2516
|
-
*/
|
|
2517
|
-
sortBy: {
|
|
2518
|
-
type: Array,
|
|
2519
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
2520
|
-
default: () => []
|
|
2521
|
-
},
|
|
2522
|
-
/**
|
|
2523
|
-
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
2524
|
-
*/
|
|
2525
|
-
tabTitle: {
|
|
2526
|
-
type: String,
|
|
2527
|
-
default: null
|
|
2528
|
-
},
|
|
2529
|
-
/**
|
|
2530
|
-
* Truncates all data grid column headers
|
|
2531
|
-
*/
|
|
2532
|
-
truncateColumnHeaders: {
|
|
2533
|
-
type: Boolean,
|
|
2534
|
-
default: !1
|
|
2535
|
-
}
|
|
2536
|
-
},
|
|
2537
|
-
emits: [
|
|
2538
|
-
N.COLUMNS,
|
|
2539
|
-
N.COLUMN_RESIZE,
|
|
2540
|
-
N.ITEMS_PAGE,
|
|
2541
|
-
N.FILTER_SEARCH_INPUT,
|
|
2542
|
-
N.FILTER_SEARCH_CLEAR,
|
|
2543
|
-
N.NAVIGATE,
|
|
2544
|
-
N.NESTED_CONTENT_TOGGLED,
|
|
2545
|
-
N.UPDATE_COLUMNS,
|
|
2546
|
-
N.UPDATE_CONDENSED,
|
|
2547
|
-
N.UPDATE_FILTER_VALUES,
|
|
2548
|
-
N.UPDATE_FILTERS,
|
|
2549
|
-
N.UPDATE_FILTER_SEARCH_TERM,
|
|
2550
|
-
N.UPDATE_SHOW_MORE,
|
|
2551
|
-
N.UPDATE_PAGINATION,
|
|
2552
|
-
N.UPDATE_SELECTION,
|
|
2553
|
-
N.UPDATE_SORT_BY,
|
|
2554
|
-
N.ROW_CLICK,
|
|
2555
|
-
N.SELECT,
|
|
2556
|
-
N.SELECT_ALL_ACROSS_PAGES,
|
|
2557
|
-
N.SORT
|
|
2558
|
-
],
|
|
2559
|
-
setup(s, { expose: t, emit: n }) {
|
|
2560
|
-
const e = s, o = xe(), l = Me(o), a = E(null), g = E(), v = E({}), f = E(null), L = E(null), c = E(), A = E(null), m = E(null), d = E(null), {
|
|
2561
|
-
allowColumnDragAndDrop: h,
|
|
2562
|
-
columns: S,
|
|
2563
|
-
columnPanel: i,
|
|
2564
|
-
data: _,
|
|
2565
|
-
lazyLoadType: C,
|
|
2566
|
-
loading: b,
|
|
2567
|
-
hasNestedContent: O,
|
|
2568
|
-
hasNestedRows: I,
|
|
2569
|
-
selectable: u,
|
|
2570
|
-
selection: R,
|
|
2571
|
-
selectableAcrossPages: F,
|
|
2572
|
-
stickyPagination: G,
|
|
2573
|
-
outline: Z,
|
|
2574
|
-
pagination: H
|
|
2575
|
-
} = De(e), p = E(-1), { t: $ } = ge(), x = w(() => ne.value.filter((T) => T.frozen).length), D = Ae(
|
|
2576
|
-
Tn,
|
|
2577
|
-
() => ({
|
|
2578
|
-
additionalContentSlotRef: E(null),
|
|
2579
|
-
isDataGridTemplate: !1,
|
|
2580
|
-
stickyAditionalContent: E(!1),
|
|
2581
|
-
stickyTabs: E(!1),
|
|
2582
|
-
tabsRef: E(null)
|
|
2583
|
-
})
|
|
2584
|
-
), { additionalContentSlotRef: z, isDataGridTemplate: M, stickyTabs: K, tabsRef: r, stickyAdditionalContent: P } = D(), oe = w(() => e.fitContent || M ? 0 : null), {
|
|
2585
|
-
columnDefs: ne,
|
|
2586
|
-
onColumnWidthOverride: ie,
|
|
2587
|
-
gridRowWidthStyle: y,
|
|
2588
|
-
isMeasuringColumnWidths: B,
|
|
2589
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: k,
|
|
2590
|
-
columns: Y,
|
|
2591
|
-
totalWidthOfAllColumns: Q,
|
|
2592
|
-
rowActionsMaxWidth: le
|
|
2593
|
-
} = is(S, _, a, v, f, {
|
|
2594
|
-
hasColumnPanel: i,
|
|
2595
|
-
hasSelectableColumn: u,
|
|
2596
|
-
hasSelectableAcrossPages: F,
|
|
2597
|
-
hasNestedContent: O,
|
|
2598
|
-
hasNestedRows: I,
|
|
2599
|
-
allowColumnDragAndDrop: h,
|
|
2600
|
-
isDataGridTemplate: M
|
|
2601
|
-
}), U = (T, ...W) => {
|
|
2602
|
-
(T === N.COLUMNS || T === N.UPDATE_COLUMNS) && ([Y.value] = W), n(T, ...W);
|
|
2603
|
-
}, pe = Qe(
|
|
2604
|
-
r,
|
|
2605
|
-
K,
|
|
2606
|
-
P,
|
|
2607
|
-
z
|
|
2608
|
-
), Rt = w(
|
|
2609
|
-
() => e.stickyFilters ? `${pe.value}px` : null
|
|
2610
|
-
), Pe = Qe(L, be(e, "stickyFilters")), bt = w(
|
|
2611
|
-
() => `${Pe.value + pe.value}px`
|
|
2612
|
-
), {
|
|
2613
|
-
sortedColumns: we,
|
|
2614
|
-
columnSets: Se,
|
|
2615
|
-
isOnlyOneVisibleColumn: At,
|
|
2616
|
-
onConfigSettingsUpdate: Ot,
|
|
2617
|
-
onConfigSettingsColumnsUpdate: Nt,
|
|
2618
|
-
onConfigSettingsColumnUpdate: Tt
|
|
2619
|
-
} = _s(ne, U), { hoveredOverColumn: It, hoveredOverColumnState: Dt } = Cs(
|
|
2620
|
-
Se,
|
|
2621
|
-
u,
|
|
2622
|
-
Z,
|
|
2623
|
-
k
|
|
2624
|
-
), { draggingColumns: xt, draggingEventsForColumns: Ft, draggingEventsForRowCell: Mt, onMoveColumnByOffset: Bt } = gs(we, h, U), { onAllRowSelect: $t, onRowSelect: zt, onNestedRowSelect: Pt, selectedItems: Ue, allItemsSelectedState: Ut } = rs(
|
|
2625
|
-
R,
|
|
2626
|
-
U,
|
|
2627
|
-
_,
|
|
2628
|
-
e.getDataItemId,
|
|
2629
|
-
e.isDataItemDisabled
|
|
2630
|
-
), { navigationInput: kt } = cs(
|
|
2631
|
-
f,
|
|
2632
|
-
v,
|
|
2633
|
-
we,
|
|
2634
|
-
u,
|
|
2635
|
-
w(() => e.rowActions !== void 0),
|
|
2636
|
-
i
|
|
2637
|
-
), { isLazyLoad: Ee, isInfiniteScroll: Wt, verticalScrollPosition: ke, emitLazyLoadEvent: Gt } = fs(
|
|
2638
|
-
C,
|
|
2639
|
-
m,
|
|
2640
|
-
a,
|
|
2641
|
-
b,
|
|
2642
|
-
U
|
|
2643
|
-
), {
|
|
2644
|
-
updateScrollPosition: Ht,
|
|
2645
|
-
updateScrollPositionOnFrozenColumnsNavigation: Vt,
|
|
2646
|
-
syncVirtualScrollerWithBody: Zt,
|
|
2647
|
-
hasLeftOverflow: Le,
|
|
2648
|
-
hasRightOverflow: We,
|
|
2649
|
-
horizontalScrollbarConditionalStyles: jt
|
|
2650
|
-
} = vs(
|
|
2651
|
-
a,
|
|
2652
|
-
g,
|
|
2653
|
-
ke,
|
|
2654
|
-
d,
|
|
2655
|
-
A,
|
|
2656
|
-
Q,
|
|
2657
|
-
{
|
|
2658
|
-
isLazyLoad: Ee,
|
|
2659
|
-
pagination: H,
|
|
2660
|
-
stickyPagination: G,
|
|
2661
|
-
isDataGridTemplate: M
|
|
2662
|
-
}
|
|
2663
|
-
), Ge = () => {
|
|
2664
|
-
c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
|
|
2665
|
-
}, qt = w(() => {
|
|
2666
|
-
var T, W;
|
|
2667
|
-
return {
|
|
2668
|
-
...e.emptyState,
|
|
2669
|
-
variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((W = e.emptyState) == null ? void 0 : W.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
2670
|
-
};
|
|
2671
|
-
}), Yt = w(() => ({
|
|
2672
|
-
[`b-data-grid--${ce.OUTLINE}`]: e.outline,
|
|
2673
|
-
[`b-data-grid--${ce.SCROLL}`]: e.fitContent || Ee.value,
|
|
2674
|
-
[`b-data-grid--${ce.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
2675
|
-
[`b-data-grid--${ce.OVERFLOW_SHADOW_LEFT}`]: Le.value && !x.value,
|
|
2676
|
-
[`b-data-grid--${ce.OVERFLOW_SHADOW_RIGHT}`]: We.value && e.rowActions === void 0,
|
|
2677
|
-
[`b-data-grid--${ce.NO_SPACING_TOP}`]: e.noSpacingTop
|
|
2678
|
-
})), Xt = w(() => ({
|
|
2679
|
-
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
2680
|
-
})), Kt = w(() => Se.value.findIndex((T) => T.columnSet.length)), Jt = w(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && x.value === 1) || Le.value), Qt = w(() => ({
|
|
2681
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters || M
|
|
2682
|
-
})), en = w(() => {
|
|
2683
|
-
var T, W, X, ue, _e, ve;
|
|
2684
|
-
return {
|
|
2685
|
-
"b-data-grid__pagination--padding-left-unset": ((X = (W = (T = e.columns) == null ? void 0 : T[0]) == null ? void 0 : W.padding) == null ? void 0 : X.left) === !1,
|
|
2686
|
-
"b-data-grid__pagination--padding-right-unset": ((ve = (_e = (ue = e.columns) == null ? void 0 : ue[e.columns.length - 1]) == null ? void 0 : _e.padding) == null ? void 0 : ve.right) === !1,
|
|
2687
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination || M
|
|
2688
|
-
};
|
|
2689
|
-
}), tn = (T) => {
|
|
2690
|
-
const W = T;
|
|
2691
|
-
T !== null && (W != null && W.columnHeaderRefs) && Object.entries(W == null ? void 0 : W.columnHeaderRefs).forEach(([X, ue]) => {
|
|
2692
|
-
v.value[X] = ue;
|
|
2693
|
-
});
|
|
2694
|
-
}, nn = (T, W) => {
|
|
2695
|
-
var ue, _e, ve, je;
|
|
2696
|
-
const X = T;
|
|
2697
|
-
if (T !== null && X != null && X.gridcellRefs) {
|
|
2698
|
-
const Cn = e.rowActions !== void 0 && (X == null ? void 0 : X.rowActionsRef);
|
|
2699
|
-
Object.entries(X == null ? void 0 : X.gridcellRefs).map(([ye, hn]) => {
|
|
2700
|
-
var qe;
|
|
2701
|
-
((qe = f.value) == null ? void 0 : qe[ye]) === void 0 && (f.value = { ...f.value, [ye]: [] }), f.value[ye][W] = hn;
|
|
2702
|
-
}), Cn && (((ue = f.value) == null ? void 0 : ue[Ce]) === void 0 && (f.value = { ...f.value, [Ce]: [] }), f.value[Ce][W] = (_e = X.rowActionsRef) == null ? void 0 : _e[0], le.value = Math.max(
|
|
2703
|
-
le.value,
|
|
2704
|
-
((je = (ve = X.rowActionsRef) == null ? void 0 : ve[0]) == null ? void 0 : je.offsetWidth) ?? 0
|
|
2705
|
-
));
|
|
2706
|
-
}
|
|
2707
|
-
}, sn = (T, W) => {
|
|
2708
|
-
e.allowRowClicks && U(N.ROW_CLICK, T, W);
|
|
2709
|
-
}, on = (T) => {
|
|
2710
|
-
p.value = T;
|
|
2711
|
-
}, ln = w(() => !!e.selectableAcrossPages && !!e.pagination), an = w(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), rn = bn({
|
|
2712
|
-
label: o != null && o.header ? An(o)("header") : null,
|
|
2713
|
-
defaultFallback: "data grid"
|
|
2714
|
-
}), He = w(() => {
|
|
2715
|
-
var T;
|
|
2716
|
-
return ((T = Ue.value) == null ? void 0 : T.length) ?? 0;
|
|
2717
|
-
}), dn = w(() => e.bulkActions && He.value > 0), cn = (T) => U(N.COLUMN_RESIZE, T), un = (T) => {
|
|
2718
|
-
U(N.UPDATE_SORT_BY, T), U(N.SORT, T);
|
|
2719
|
-
}, fn = (T, W) => {
|
|
2720
|
-
U(N.NAVIGATE, T), U(N.UPDATE_PAGINATION, {
|
|
2721
|
-
...e.pagination,
|
|
2722
|
-
size: W,
|
|
2723
|
-
page: T
|
|
2724
|
-
});
|
|
2725
|
-
}, gn = (T) => {
|
|
2726
|
-
U(N.ITEMS_PAGE, T);
|
|
2727
|
-
}, _n = () => {
|
|
2728
|
-
U(N.FILTER_SEARCH_CLEAR);
|
|
2729
|
-
}, vn = (T) => {
|
|
2730
|
-
U(N.UPDATE_FILTER_SEARCH_TERM, T), U(N.FILTER_SEARCH_INPUT, T);
|
|
2731
|
-
}, Ve = w(() => S.value.some((T) => T.mandatory));
|
|
2732
|
-
Ve.value || _t(
|
|
2733
|
-
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2734
|
-
);
|
|
2735
|
-
const Ze = Ae(Nn, () => null);
|
|
2736
|
-
return Ze(e.tabTitle), ft(Lt, be(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: Ge }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: g, columnHeaderRefs: v, gridcellRefs: f, filtersRef: L, filterBarRef: c, paginationContainerRef: A, verticalScrollPositionRef: m, virtualHorizontalScrollbarRef: d, allowColumnDragAndDrop: h, columns: S, columnPanel: i, data: _, lazyLoadType: C, loading: b, hasNestedContent: O, hasNestedRows: I, selectable: u, selection: R, selectableAcrossPages: F, stickyPagination: G, outline: Z, pagination: H, hoveredRowIndex: p, t: $, frozenColumnsLength: x, registerDatagridInDataGridTemplate: D, additionalContentSlotRef: z, isDataGridTemplate: M, stickyTabs: K, tabsRef: r, stickyAdditionalContent: P, computedColumnsTabIndex: oe, columnDefs: ne, onColumnWidthOverride: ie, gridRowWidthStyle: y, isMeasuringColumnWidths: B, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: k, localColumnsState: Y, totalWidthOfAllColumns: Q, rowActionsMaxWidth: le, definedEmitsFunction: n, emit: U, stickyFiltersHeight: pe, computedStickyFiltersTopPosition: Rt, columnHeadersHeight: Pe, computedColumnHeadersTopPosition: bt, sortedColumns: we, columnSets: Se, isOnlyOneVisibleColumn: At, onConfigSettingsUpdate: Ot, onConfigSettingsColumnsUpdate: Nt, onConfigSettingsColumnUpdate: Tt, hoveredOverColumn: It, hoveredOverColumnState: Dt, draggingColumns: xt, draggingEventsForColumns: Ft, draggingEventsForRowCell: Mt, onMoveColumnByOffset: Bt, onAllRowSelect: $t, onRowSelect: zt, onNestedRowSelect: Pt, selectedItems: Ue, allItemsSelectedState: Ut, navigationInput: kt, isLazyLoad: Ee, isInfiniteScroll: Wt, verticalScrollPosition: ke, emitLazyLoadEvent: Gt, updateScrollPosition: Ht, updateScrollPositionOnFrozenColumnsNavigation: Vt, syncVirtualScrollerWithBody: Zt, hasLeftOverflow: Le, hasRightOverflow: We, horizontalScrollbarConditionalStyles: jt, onEmptyStateClearResetButtonClick: Ge, limitedEmptyStateProps: qt, conditionalGridClasses: Yt, conditionalGridBodyClasses: Xt, computedColumnPanelAlignment: Kt, showFrozenColumnsSeparator: Jt, conditionalFilterClasses: Qt, conditionalPaginationClasses: en, registerColumnHeaderRefs: tn, registerRowCellRefs: nn, onRowClick: sn, onCellHover: on, selectableAcrossPagesComputed: ln, ariaGridRole: an, ariaGridHeaderText: rn, itemsSelectedCounter: He, showActionBar: dn, onColumnResized: cn, onSort: un, onPaginationNavigate: fn, onItemsPerPageChange: gn, onSearchTermCleared: _n, onSearchTermInput: vn, hasMandatoryColumn: Ve, setTitle: Ze, BentoActionBar: yn, BentoPagination: Rn, BentoLoadingIndicator: Fe, BentoTypography: me, BentoDataGridConfigSettings: Co, DataGridColumns: Js, DataGridLazyLoad: Eo, DataGridRow: yt, handleClipboard: nl, BentoDatagridEvent: N, BentoFilterBar: Re, BentoEmptyState: On };
|
|
2737
|
-
}
|
|
2738
|
-
});
|
|
2739
|
-
var ll = function() {
|
|
2740
|
-
var o;
|
|
2741
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2742
|
-
return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole }, on: { copy: e.handleClipboard } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: g }, v) {
|
|
2743
|
-
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (f) => e.registerColumnHeaderRefs(f), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": g, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": v === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(f) {
|
|
2744
|
-
e.hoveredOverColumn = f;
|
|
2745
|
-
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(f) {
|
|
2746
|
-
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
2747
|
-
}, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f, L) {
|
|
2748
|
-
return { key: L, fn: function(c) {
|
|
2749
|
-
return [t._t(L, null, null, c)];
|
|
2750
|
-
} };
|
|
2751
|
-
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
2752
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(l, a) {
|
|
2753
|
-
var g, v;
|
|
2754
|
-
return n(e.DataGridRow, { key: a, ref: (f) => e.registerRowCellRefs(f, a), refInFor: !0, style: e.gridRowWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": a + 1 === ((g = e.data) == null ? void 0 : g.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (v = e.data) == null ? void 0 : v.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(f) {
|
|
2755
|
-
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, f);
|
|
2756
|
-
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f, L) {
|
|
2757
|
-
return { key: L, fn: function(c) {
|
|
2758
|
-
return [t._t(L, null, null, c)];
|
|
2759
|
-
} };
|
|
2760
|
-
})], null, !0) });
|
|
2761
|
-
}), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", style: e.horizontalScrollbarConditionalStyles, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { ref: "paginationContainerRef", staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
|
|
2762
|
-
return e.onAllRowSelect(!1);
|
|
2763
|
-
} } }) : t._e()], 1);
|
|
2764
|
-
}, al = [], il = /* @__PURE__ */ q(
|
|
2765
|
-
ol,
|
|
2766
|
-
ll,
|
|
2767
|
-
al,
|
|
2768
|
-
!1,
|
|
2769
|
-
null,
|
|
2770
|
-
"eea84d8f"
|
|
2771
|
-
);
|
|
2772
|
-
const Ql = il.exports;
|
|
2773
|
-
export {
|
|
2774
|
-
Ne as B,
|
|
2775
|
-
Jl as a,
|
|
2776
|
-
ce as b,
|
|
2777
|
-
fe as c,
|
|
2778
|
-
Ql as d,
|
|
2779
|
-
N as e,
|
|
2780
|
-
he as f
|
|
2781
|
-
};
|
|
2782
|
-
//# sourceMappingURL=data-grid.vFEU_kt8.js.map
|