@adyen/bento-vue3 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 +10 -6
- package/dist/@types/components.d.ts +0 -201
- package/dist/@types/index.d.ts +0 -17796
- 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-vue_export-helper.CHgC5LLL.js +0 -10
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +0 -1
- package/dist/chunks/accordion-item.CihL7JaZ.js +0 -142
- package/dist/chunks/accordion-item.CihL7JaZ.js.map +0 -1
- package/dist/chunks/action-bar.DHFGXPzd.js +0 -203
- package/dist/chunks/action-bar.DHFGXPzd.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.CjegN2iG.js +0 -169
- package/dist/chunks/alert.CjegN2iG.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.B0-9jC6H.js +0 -94
- package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
- package/dist/chunks/base-button.DdNFlbgH.js +0 -115
- package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
- package/dist/chunks/base-modal.BXdrZf3U.js +0 -504
- package/dist/chunks/base-modal.BXdrZf3U.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.CA6UQCNZ.js +0 -37
- package/dist/chunks/bin.CA6UQCNZ.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.DfnPv97A.js +0 -174
- package/dist/chunks/button-actions-with-menu.DfnPv97A.js.map +0 -1
- package/dist/chunks/button-actions.WnxN4KnV.js +0 -264
- package/dist/chunks/button-actions.WnxN4KnV.js.map +0 -1
- package/dist/chunks/button.CVZJTZv0.js +0 -120
- package/dist/chunks/button.CVZJTZv0.js.map +0 -1
- package/dist/chunks/calendar.BzN254pQ.js +0 -1288
- package/dist/chunks/calendar.BzN254pQ.js.map +0 -1
- package/dist/chunks/card.PFtc1o__.js +0 -213
- package/dist/chunks/card.PFtc1o__.js.map +0 -1
- package/dist/chunks/checkbox-group.Dsiyb1cX.js +0 -192
- package/dist/chunks/checkbox-group.Dsiyb1cX.js.map +0 -1
- package/dist/chunks/checkbox-input.DVayucaL.js +0 -168
- package/dist/chunks/checkbox-input.DVayucaL.js.map +0 -1
- package/dist/chunks/checkbox.DeNqOQ8F.js +0 -253
- package/dist/chunks/checkbox.DeNqOQ8F.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +0 -44
- package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +0 -1
- package/dist/chunks/checkmark-small.D7l69yBf.js +0 -29
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +0 -1
- package/dist/chunks/chevron-left.BF63HtOH.js +0 -52
- package/dist/chunks/chevron-left.BF63HtOH.js.map +0 -1
- package/dist/chunks/chevron-up.-0oLlHmh.js +0 -52
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +0 -1
- package/dist/chunks/chip.BVCzNGaI.js +0 -71
- package/dist/chunks/chip.BVCzNGaI.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.91V1hyL-.js +0 -334
- package/dist/chunks/code-snippet.91V1hyL-.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.DzFmJYYp.js +0 -98
- package/dist/chunks/controls-group.DzFmJYYp.js.map +0 -1
- package/dist/chunks/copy.BNFlTYMb.js +0 -156
- package/dist/chunks/copy.BNFlTYMb.js.map +0 -1
- package/dist/chunks/country.BhAcCmRx.js +0 -99
- package/dist/chunks/country.BhAcCmRx.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.mY6ihJcA.js +0 -29
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +0 -1
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js +0 -44
- package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +0 -1
- package/dist/chunks/cross-small.CFrBIeYK.js +0 -29
- package/dist/chunks/cross-small.CFrBIeYK.js.map +0 -1
- package/dist/chunks/cross.CbLEjiVy.js +0 -29
- package/dist/chunks/cross.CbLEjiVy.js.map +0 -1
- package/dist/chunks/currency.DagWnTry.js +0 -109
- package/dist/chunks/currency.DagWnTry.js.map +0 -1
- package/dist/chunks/dashboard-section.BTJ8h5Kd.js +0 -165
- package/dist/chunks/dashboard-section.BTJ8h5Kd.js.map +0 -1
- package/dist/chunks/dashed-underline.BpSS0BTl.js +0 -98
- package/dist/chunks/dashed-underline.BpSS0BTl.js.map +0 -1
- package/dist/chunks/data-grid-template.CnrbFvb3.js +0 -111
- package/dist/chunks/data-grid-template.CnrbFvb3.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.PAFw8voO.js +0 -3646
- package/dist/chunks/data-grid.PAFw8voO.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.CSn6F3aG.js +0 -315
- package/dist/chunks/date-picker.CSn6F3aG.js.map +0 -1
- package/dist/chunks/date-range-picker.ByQ_yM6z.js +0 -1170
- package/dist/chunks/date-range-picker.ByQ_yM6z.js.map +0 -1
- package/dist/chunks/date.CKXySBQv.js +0 -995
- package/dist/chunks/date.CKXySBQv.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.C72BX6So.js +0 -175
- package/dist/chunks/dialog-page.C72BX6So.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.qUOSAbU6.js +0 -33
- package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
- package/dist/chunks/dot.BW-xtyjC.js +0 -29
- package/dist/chunks/dot.BW-xtyjC.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +0 -419
- package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +0 -1
- package/dist/chunks/dropdown-tag.D_oUoZBc.js +0 -202
- package/dist/chunks/dropdown-tag.D_oUoZBc.js.map +0 -1
- package/dist/chunks/dropdown.B8LbzSzW.js +0 -936
- package/dist/chunks/dropdown.B8LbzSzW.js.map +0 -1
- package/dist/chunks/empty-state.BGWjUH6G.js +0 -185
- package/dist/chunks/empty-state.BGWjUH6G.js.map +0 -1
- package/dist/chunks/error-message.BzDQxHUy.js +0 -158
- package/dist/chunks/error-message.BzDQxHUy.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.FNmSWp_P.js +0 -52
- package/dist/chunks/events.FNmSWp_P.js.map +0 -1
- package/dist/chunks/expand.DusW7F7p.js +0 -33
- package/dist/chunks/expand.DusW7F7p.js.map +0 -1
- package/dist/chunks/file-uploader.HMZfzgaO.js +0 -2280
- package/dist/chunks/file-uploader.HMZfzgaO.js.map +0 -1
- package/dist/chunks/filter-bar.CKxLJDQE.js +0 -2976
- package/dist/chunks/filter-bar.CKxLJDQE.js.map +0 -1
- package/dist/chunks/fixed-scroller.BjxA_R63.js +0 -147
- package/dist/chunks/fixed-scroller.BjxA_R63.js.map +0 -1
- package/dist/chunks/focus-trap.BdrEB4Ld.js +0 -500
- package/dist/chunks/focus-trap.BdrEB4Ld.js.map +0 -1
- package/dist/chunks/footer-actions.DqKdjjjh.js +0 -110
- package/dist/chunks/footer-actions.DqKdjjjh.js.map +0 -1
- package/dist/chunks/form-layout-title.CsmjzAje.js +0 -206
- package/dist/chunks/form-layout-title.CsmjzAje.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.DQlZEsId.js +0 -12
- package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
- package/dist/chunks/grid-layout.BTLE3rac.js +0 -114
- package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
- package/dist/chunks/header-with-views.BVcLQi-H.js +0 -2354
- package/dist/chunks/header-with-views.BVcLQi-H.js.map +0 -1
- package/dist/chunks/header.CYPznLHg.js +0 -253
- package/dist/chunks/header.CYPznLHg.js.map +0 -1
- package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
- package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +0 -47
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.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.CVpo3mlK.js +0 -528
- package/dist/chunks/index.CVpo3mlK.js.map +0 -1
- package/dist/chunks/index.CWuzEfiV.js +0 -6
- package/dist/chunks/index.CWuzEfiV.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.BUtJRYXy.js +0 -97
- package/dist/chunks/info-icon-with-popover.BUtJRYXy.js.map +0 -1
- package/dist/chunks/info-icon.MO6y9Dyv.js +0 -45
- package/dist/chunks/info-icon.MO6y9Dyv.js.map +0 -1
- package/dist/chunks/info.HK3R7Drc.js +0 -44
- package/dist/chunks/info.HK3R7Drc.js.map +0 -1
- package/dist/chunks/input-field-password.c6WXpF9U.js +0 -366
- package/dist/chunks/input-field-password.c6WXpF9U.js.map +0 -1
- package/dist/chunks/input-field-phone-number.DQxF-6wT.js +0 -3106
- package/dist/chunks/input-field-phone-number.DQxF-6wT.js.map +0 -1
- package/dist/chunks/input-field.BDEEGU2t.js +0 -298
- package/dist/chunks/input-field.BDEEGU2t.js.map +0 -1
- package/dist/chunks/inspector.types.BQnVv5HX.js +0 -187
- package/dist/chunks/inspector.types.BQnVv5HX.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.CqgGzfZQ.js +0 -66
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
- package/dist/chunks/layout-row.CRRLYA03.js +0 -100
- package/dist/chunks/layout-row.CRRLYA03.js.map +0 -1
- package/dist/chunks/link.CTH1xj0i.js +0 -116
- package/dist/chunks/link.CTH1xj0i.js.map +0 -1
- package/dist/chunks/listbox-option-tag.CTipR05e.js +0 -55
- package/dist/chunks/listbox-option-tag.CTipR05e.js.map +0 -1
- package/dist/chunks/loading-indicator.DEepb9Wl.js +0 -44
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
- package/dist/chunks/menu.HVsIOPzt.js +0 -768
- package/dist/chunks/menu.HVsIOPzt.js.map +0 -1
- package/dist/chunks/modal-fullscreen.CN1dCmU-.js +0 -270
- package/dist/chunks/modal-fullscreen.CN1dCmU-.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.vue_vue_type_script_setup_true_lang._xN4vNxW.js +0 -501
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.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.Cv-jL5MP.js +0 -461
- package/dist/chunks/pagination.Cv-jL5MP.js.map +0 -1
- package/dist/chunks/payment-method.eazefwm6.js +0 -125
- package/dist/chunks/payment-method.eazefwm6.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.sXC1vaC4.js +0 -350
- package/dist/chunks/popover.sXC1vaC4.js.map +0 -1
- package/dist/chunks/popper-container.CWgM0skS.js +0 -1396
- package/dist/chunks/popper-container.CWgM0skS.js.map +0 -1
- package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
- package/dist/chunks/promo-banner.CoB1tBCC.js +0 -126
- package/dist/chunks/promo-banner.CoB1tBCC.js.map +0 -1
- package/dist/chunks/radio-group.BzLVfoL0.js +0 -321
- package/dist/chunks/radio-group.BzLVfoL0.js.map +0 -1
- package/dist/chunks/radio-input.DKfQGxtp.js +0 -96
- package/dist/chunks/radio-input.DKfQGxtp.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.C20ROVDS.js +0 -29
- package/dist/chunks/refresh.C20ROVDS.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.C5RIGjDX.js +0 -6221
- package/dist/chunks/rich-text-editor.C5RIGjDX.js.map +0 -1
- package/dist/chunks/search-bar.C8bAeztI.js +0 -114
- package/dist/chunks/search-bar.C8bAeztI.js.map +0 -1
- package/dist/chunks/search.CW_aTqip.js +0 -44
- package/dist/chunks/search.CW_aTqip.js.map +0 -1
- package/dist/chunks/secondary-nav.BZF_9ztn.js +0 -137
- package/dist/chunks/secondary-nav.BZF_9ztn.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/segmented-control.u3a7Mssn.js +0 -144
- package/dist/chunks/segmented-control.u3a7Mssn.js.map +0 -1
- package/dist/chunks/selection-card-group.CSFQ-f8m.js +0 -474
- package/dist/chunks/selection-card-group.CSFQ-f8m.js.map +0 -1
- package/dist/chunks/show.ByWWaogc.js +0 -64
- package/dist/chunks/show.ByWWaogc.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/sidepanel.kwEMG5ee.js +0 -254
- package/dist/chunks/sidepanel.kwEMG5ee.js.map +0 -1
- package/dist/chunks/status.types.Bdv2zuuh.js +0 -44
- package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
- package/dist/chunks/step.7l-t-eN9.js +0 -264
- package/dist/chunks/step.7l-t-eN9.js.map +0 -1
- package/dist/chunks/structured-list-item.DLJp-ApS.js +0 -108
- package/dist/chunks/structured-list-item.DLJp-ApS.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.DkyTeEAn.js +0 -466
- package/dist/chunks/summary-grid.types.DkyTeEAn.js.map +0 -1
- package/dist/chunks/tabs.Bn4YIjoy.js +0 -266
- package/dist/chunks/tabs.Bn4YIjoy.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.Me7nYLMe.js +0 -51
- package/dist/chunks/tag.Me7nYLMe.js.map +0 -1
- package/dist/chunks/teleport.CfGWjxe2.js +0 -129
- package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
- package/dist/chunks/textarea.BbSzCJ-3.js +0 -278
- package/dist/chunks/textarea.BbSzCJ-3.js.map +0 -1
- package/dist/chunks/timeline-item._h_dMFfm.js +0 -567
- package/dist/chunks/timeline-item._h_dMFfm.js.map +0 -1
- package/dist/chunks/toast.Ae5ZoWHb.js +0 -221
- package/dist/chunks/toast.Ae5ZoWHb.js.map +0 -1
- package/dist/chunks/toggle-button.Dv1t15yj.js +0 -80
- package/dist/chunks/toggle-button.Dv1t15yj.js.map +0 -1
- package/dist/chunks/toggle.hoD_i2Ey.js +0 -161
- package/dist/chunks/toggle.hoD_i2Ey.js.map +0 -1
- package/dist/chunks/tooltip.CGMSPub2.js +0 -205
- package/dist/chunks/tooltip.CGMSPub2.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.vue_vue_type_script_setup_true_lang.CysjLLSS.js +0 -423
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js.map +0 -1
- package/dist/chunks/typography.DN5eC5ch.js +0 -83
- package/dist/chunks/typography.DN5eC5ch.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.D3LA1FCd.js +0 -50
- package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js +0 -1475
- package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.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.4kZgVg_l.js +0 -30
- package/dist/chunks/use-country-items.4kZgVg_l.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.O02rzsob.js +0 -16
- package/dist/chunks/use-default-slot-validator.O02rzsob.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.B7eQSabc.js +0 -15
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +0 -1
- package/dist/chunks/warning-filled.DmHh0nYG.js +0 -29
- package/dist/chunks/warning-filled.DmHh0nYG.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 -370
- 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 -10
- 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 -49
|
@@ -1,3646 +0,0 @@
|
|
|
1
|
-
import { ref as A, onMounted as at, nextTick as _e, watch as ye, onUnmounted as Kt, reactive as rt, toRefs as dt, computed as b, watchEffect as qn, onBeforeUpdate as Kn, createElementBlock as R, openBlock as f, mergeProps as te, createCommentVNode as B, createElementVNode as O, toDisplayString as J, defineComponent as Oe, normalizeClass as ce, Fragment as he, renderList as Le, unref as o, toHandlers as Xe, createVNode as Y, createBlock as H, withCtx as Z, renderSlot as Re, withModifiers as Yn, normalizeStyle as ke, resolveComponent as Ee, withDirectives as ut, createTextVNode as me, vShow as Xn, toRef as nt, resolveDirective as Jn, Transition as Yt, createSlots as Pe, resolveDynamicComponent as Ge, useSlots as ct, provide as Xt, inject as lt, normalizeProps as Qn, guardReactiveProps as el } from "vue";
|
|
2
|
-
import { C as tl } from "./checkmark-circle-fill.jicbqe7k.js";
|
|
3
|
-
import { W as nl } from "./warning-filled.DmHh0nYG.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { _ as de } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { C as Jt } from "./cross.CbLEjiVy.js";
|
|
7
|
-
import { N as At } from "./checkbox-input.DVayucaL.js";
|
|
8
|
-
import { l as Ot } from "./events.FNmSWp_P.js";
|
|
9
|
-
import { E as $e, B as ll } from "./tooltip.CGMSPub2.js";
|
|
10
|
-
import { c as ol } from "./popper-container.types.BCZMbVFD.js";
|
|
11
|
-
import { B as sl } from "./action-bar.DHFGXPzd.js";
|
|
12
|
-
import { B as il } from "./pagination.Cv-jL5MP.js";
|
|
13
|
-
import { B as ft } from "./loading-indicator.DEepb9Wl.js";
|
|
14
|
-
import { B as Je, p as Qt } from "./typography.DN5eC5ch.js";
|
|
15
|
-
import { u as gt } from "./use-has-slot.B7eQSabc.js";
|
|
16
|
-
import { u as al } from "./aria-label.CaUURpnB.js";
|
|
17
|
-
import { g as rl } from "./get-slot-text.DQlZEsId.js";
|
|
18
|
-
import { u as Ue } from "./i18n.B6g5VX0q.js";
|
|
19
|
-
import { B as tt } from "./filter-bar.CKxLJDQE.js";
|
|
20
|
-
import { B as dl } from "./empty-state.BGWjUH6G.js";
|
|
21
|
-
import { E as ul } from "./tabs.keys.Bc2pSKRw.js";
|
|
22
|
-
import { D as cl } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
23
|
-
import { o as vt } from "./resize.Bqks3WUm.js";
|
|
24
|
-
import { b as fl } from "./focus-trap.BdrEB4Ld.js";
|
|
25
|
-
import { a as Nt, B as gl } from "./popover.sXC1vaC4.js";
|
|
26
|
-
import { B as en } from "./button.CVZJTZv0.js";
|
|
27
|
-
import { B as tn } from "./toggle.hoD_i2Ey.js";
|
|
28
|
-
import { B as vl } from "./search-bar.C8bAeztI.js";
|
|
29
|
-
import { u as ml } from "./dropdown.B8LbzSzW.js";
|
|
30
|
-
import { B as hl } from "./directive.Cbdox5VL.js";
|
|
31
|
-
import { g as ot } from "./generate-uid.NJ8tVoha.js";
|
|
32
|
-
import { S as Cl } from "./search.CW_aTqip.js";
|
|
33
|
-
import { B as mt } from "./toggle-button.Dv1t15yj.js";
|
|
34
|
-
import { B as nn } from "./checkbox.DeNqOQ8F.js";
|
|
35
|
-
import { B as wl } from "./info-icon.MO6y9Dyv.js";
|
|
36
|
-
import { B as st, O as _l, D as yl } from "./menu.HVsIOPzt.js";
|
|
37
|
-
import { A as bl } from "./dialog-page.C72BX6So.js";
|
|
38
|
-
import { H as Sl, S as El } from "./show.ByWWaogc.js";
|
|
39
|
-
import { u as Ll } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
40
|
-
import { E as Tt } from "./link.CTH1xj0i.js";
|
|
41
|
-
import { C as pl } from "./copy.BNFlTYMb.js";
|
|
42
|
-
import { C as Rl, a as Al } from "./chevron-up.-0oLlHmh.js";
|
|
43
|
-
import { d as It, e as $t } from "./button-actions.WnxN4KnV.js";
|
|
44
|
-
import "../assets/data-grid.css";
|
|
45
|
-
const Dt = (e) => {
|
|
46
|
-
if (!e)
|
|
47
|
-
return 0;
|
|
48
|
-
const i = window.getComputedStyle(e);
|
|
49
|
-
let c = e.offsetHeight;
|
|
50
|
-
const n = window.getComputedStyle(e, "::after");
|
|
51
|
-
if (n.content !== "none" && n.position === "absolute") {
|
|
52
|
-
const t = parseFloat(n.height), l = parseFloat(n.bottom);
|
|
53
|
-
!isNaN(t) && !isNaN(l) && l < 0 && l + t <= 0 && (c += t);
|
|
54
|
-
}
|
|
55
|
-
const d = parseFloat(i.top);
|
|
56
|
-
return !isNaN(d) && d < 0 && (c += d), c;
|
|
57
|
-
}, kt = (e, i, c = A(!1), n = null) => {
|
|
58
|
-
const d = A(0);
|
|
59
|
-
let t = null, l = null;
|
|
60
|
-
const _ = () => {
|
|
61
|
-
const h = i.value ? Dt(e.value) : 0, C = c.value && n ? Dt(n.value) : 0;
|
|
62
|
-
d.value = h + C;
|
|
63
|
-
};
|
|
64
|
-
return at(() => {
|
|
65
|
-
_e(() => {
|
|
66
|
-
const h = ye(
|
|
67
|
-
e,
|
|
68
|
-
() => {
|
|
69
|
-
e != null && e.value && (_e(() => h()), t = vt(e.value, _), l = new MutationObserver(_), l.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
70
|
-
},
|
|
71
|
-
{ immediate: !0 }
|
|
72
|
-
);
|
|
73
|
-
ye(
|
|
74
|
-
[i, c],
|
|
75
|
-
() => {
|
|
76
|
-
_();
|
|
77
|
-
},
|
|
78
|
-
{ immediate: !0 }
|
|
79
|
-
);
|
|
80
|
-
});
|
|
81
|
-
}), Kt(() => {
|
|
82
|
-
t == null || t.disconnect(), l == null || l.disconnect();
|
|
83
|
-
}), d;
|
|
84
|
-
};
|
|
85
|
-
var it = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(it || {}), Me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e))(Me || {}), Fe = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(Fe || {}), k = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(k || {}), Ye = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(Ye || {}), oe = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(oe || {});
|
|
86
|
-
const Ol = (e, i) => {
|
|
87
|
-
const c = A(null), n = A(!1), d = A(void 0), t = e.value.reduce((L, S) => (L[S.field] = null, L), {}), l = rt(t), _ = dt(l);
|
|
88
|
-
let h = 0, C = "";
|
|
89
|
-
const N = b(
|
|
90
|
-
() => Object.fromEntries(e.value.map(({ field: L, width: S, minWidth: s }) => [L, { width: S, minWidth: s }]))
|
|
91
|
-
);
|
|
92
|
-
qn(() => d.value = N.value);
|
|
93
|
-
let v = null, P = null;
|
|
94
|
-
const E = (L) => {
|
|
95
|
-
const S = L.clientX - h, s = C, m = d.value[s].width + S;
|
|
96
|
-
d.value[s].width = m > N.value[s].minWidth ? m : N.value[s].minWidth, i(oe.COLUMN_RESIZING, d.value), h = L.clientX;
|
|
97
|
-
}, a = () => {
|
|
98
|
-
n.value = !1, v == null || v(), P == null || P(), C && i(oe.COLUMN_RESIZE, {
|
|
99
|
-
field: C,
|
|
100
|
-
width: d.value[C].width
|
|
101
|
-
}), v = null, P = null, C = "", h = null;
|
|
102
|
-
}, w = (L, S, s) => {
|
|
103
|
-
if (s.preventDefault(), L) {
|
|
104
|
-
if (n.value = !0, s.buttons !== 1) {
|
|
105
|
-
a();
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
C = S, h = s.clientX, v = Ot(window, "mousemove", E), P = Ot(window, "mouseup", a);
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
return ye(
|
|
112
|
-
() => n.value,
|
|
113
|
-
(L, S) => {
|
|
114
|
-
!L && S && (i(oe.COLUMN_HOVER, c.value), c.value = null);
|
|
115
|
-
}
|
|
116
|
-
), {
|
|
117
|
-
resizeData: d,
|
|
118
|
-
allColumnRefs: _,
|
|
119
|
-
startResize: w,
|
|
120
|
-
isResizing: n,
|
|
121
|
-
columnHoverEventToEmitAfterResizing: c
|
|
122
|
-
};
|
|
123
|
-
}, Nl = 100, Mt = 50, we = "b-actions-column", Tl = 32, Il = 56, $l = 56, Dl = 80, kl = 36, Ml = 1, ln = 16, Fl = 20, zl = (e, i, c) => {
|
|
124
|
-
const n = {}, d = [], t = (_) => {
|
|
125
|
-
const h = n[_];
|
|
126
|
-
h && h.frozen !== !0 && (n[_].frozen = !0, d.push(_));
|
|
127
|
-
};
|
|
128
|
-
function l() {
|
|
129
|
-
if (d.length === c.length)
|
|
130
|
-
return;
|
|
131
|
-
const _ = { min: {} };
|
|
132
|
-
let h = e, C = i, N = 0;
|
|
133
|
-
d.forEach((v) => {
|
|
134
|
-
h -= n[v].computedWidth, C -= n[v].flex;
|
|
135
|
-
});
|
|
136
|
-
for (let v = 0, P = c.length; v < P; v += 1) {
|
|
137
|
-
const E = c[v];
|
|
138
|
-
if (n[E.field] && n[E.field].frozen === !0)
|
|
139
|
-
continue;
|
|
140
|
-
let w = h / C * E.flex;
|
|
141
|
-
w < E.minWidth && (N += E.minWidth - w, w = E.minWidth, _.min[E.field] = !0), n[E.field] = {
|
|
142
|
-
frozen: !1,
|
|
143
|
-
computedWidth: w,
|
|
144
|
-
flex: E.flex
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
N > 0 ? Object.keys(_.min).forEach((v) => {
|
|
148
|
-
t(v);
|
|
149
|
-
}) : c.forEach(({ field: v }) => {
|
|
150
|
-
t(v);
|
|
151
|
-
}), l();
|
|
152
|
-
}
|
|
153
|
-
return l(), n;
|
|
154
|
-
}, Ft = (e, i) => {
|
|
155
|
-
let c = Ml;
|
|
156
|
-
return i && (c += ln * 2), e != null && e.offsetWidth ? e.offsetWidth + c : 0;
|
|
157
|
-
}, Ul = (e) => {
|
|
158
|
-
var i, c, n, d, t;
|
|
159
|
-
return (i = e == null ? void 0 : e.hasNestedContent) != null && i.value || (c = e == null ? void 0 : e.hasNestedRows) != null && c.value ? (n = e == null ? void 0 : e.hasSelectableColumn) != null && n.value ? (d = e == null ? void 0 : e.hasSelectableAcrossPages) != null && d.value ? Dl : $l : kl : (t = e == null ? void 0 : e.hasSelectableAcrossPages) != null && t.value ? Il : Tl;
|
|
160
|
-
}, Pl = (e, i, c, n, d, t) => {
|
|
161
|
-
const l = A(e.value), _ = A(i), h = A(c), C = A(n), N = A(d), v = A(!1), P = A(0);
|
|
162
|
-
ye(
|
|
163
|
-
() => e.value,
|
|
164
|
-
(g, F) => {
|
|
165
|
-
var se, ue;
|
|
166
|
-
const j = (g == null ? void 0 : g.map(({ field: ne }) => ne).toString()) === (F == null ? void 0 : F.map(({ field: ne }) => ne).toString());
|
|
167
|
-
if (!((se = t == null ? void 0 : t.allowColumnDragAndDrop) != null && se.value) || !j) {
|
|
168
|
-
l.value = e.value;
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
l.value = ((ue = l.value) == null ? void 0 : ue.length) === 0 ? e.value : e.value.sort((ne, fe) => {
|
|
172
|
-
const y = l.value.findIndex((W) => W.field === ne.field), V = l.value.findIndex((W) => W.field === fe.field);
|
|
173
|
-
return y === -1 ? 1 : V === -1 ? -1 : y - V;
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
);
|
|
177
|
-
const E = A();
|
|
178
|
-
let a = null;
|
|
179
|
-
const w = b(() => {
|
|
180
|
-
var y, V, W;
|
|
181
|
-
const g = [];
|
|
182
|
-
let F = 0, j = 0;
|
|
183
|
-
const se = {};
|
|
184
|
-
let ue = l.value.filter(($) => $.visible !== !1);
|
|
185
|
-
const ne = l.value.filter(($) => $.visible === !1);
|
|
186
|
-
if ((y = t == null ? void 0 : t.hasSelectableColumn) != null && y.value || (V = t == null ? void 0 : t.hasNestedContent) != null && V.value || (W = t == null ? void 0 : t.hasNestedRows) != null && W.value) {
|
|
187
|
-
const $ = Ul(t);
|
|
188
|
-
ue = [
|
|
189
|
-
{
|
|
190
|
-
field: we,
|
|
191
|
-
label: "",
|
|
192
|
-
minWidth: $,
|
|
193
|
-
width: $,
|
|
194
|
-
frozen: !0,
|
|
195
|
-
padding: { left: !1, right: !1 }
|
|
196
|
-
},
|
|
197
|
-
...ue
|
|
198
|
-
];
|
|
199
|
-
}
|
|
200
|
-
ue.forEach(($) => {
|
|
201
|
-
const G = { ...$ };
|
|
202
|
-
let Ce;
|
|
203
|
-
G.flex && G.flex > 0 ? (F += G.flex, Ce = 0, g.push(G)) : Ce = Math.max(
|
|
204
|
-
(G == null ? void 0 : G.width) ?? Nl,
|
|
205
|
-
(G == null ? void 0 : G.minWidth) ?? Mt
|
|
206
|
-
), j += Ce, G.width = Ce, G.minWidth = (G == null ? void 0 : G.minWidth) ?? Mt, se[G.field] = G;
|
|
207
|
-
});
|
|
208
|
-
const fe = Math.max(E.value - j, 0);
|
|
209
|
-
if (F > 0 && E.value > 0) {
|
|
210
|
-
const $ = zl(fe, F, g);
|
|
211
|
-
Object.keys($).forEach((G) => {
|
|
212
|
-
se[G].width = $[G].computedWidth;
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
return ne.forEach(($) => {
|
|
216
|
-
const G = { ...$ };
|
|
217
|
-
se[G.field] = G;
|
|
218
|
-
}), Object.values(se);
|
|
219
|
-
}), L = A(void 0), S = (g) => {
|
|
220
|
-
L.value = { ...L.value, ...g };
|
|
221
|
-
}, s = async () => {
|
|
222
|
-
l.value.some((g) => g == null ? void 0 : g.autoWidth) && (v.value = !0, await _e(), await _e(), l == null || l.value.filter((g) => g == null ? void 0 : g.autoWidth).forEach(({ field: g, minWidth: F }) => {
|
|
223
|
-
var ne, fe, y, V;
|
|
224
|
-
const j = Ft(
|
|
225
|
-
(ne = C.value) == null ? void 0 : ne[g],
|
|
226
|
-
(fe = t == null ? void 0 : t.hasColumnPanel) == null ? void 0 : fe.value
|
|
227
|
-
), se = (V = (y = N.value) == null ? void 0 : y[g]) == null ? void 0 : V.reduce(
|
|
228
|
-
(W, $) => Math.max(W, Ft($)),
|
|
229
|
-
0
|
|
230
|
-
), ue = Math.max(j, se ?? 0);
|
|
231
|
-
(F === void 0 || ue > F) && S({
|
|
232
|
-
[g]: {
|
|
233
|
-
width: ue
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
}), v.value = !1);
|
|
237
|
-
};
|
|
238
|
-
ye([() => l.value, () => _.value], async () => {
|
|
239
|
-
l.value.some((g) => g == null ? void 0 : g.autoWidth) && await s();
|
|
240
|
-
});
|
|
241
|
-
const m = b(
|
|
242
|
-
() => w.value.map((g) => {
|
|
243
|
-
var F, j;
|
|
244
|
-
return {
|
|
245
|
-
...g,
|
|
246
|
-
// Override column width with resized ones
|
|
247
|
-
width: ((j = (F = L.value) == null ? void 0 : F[g.field]) == null ? void 0 : j.width) ?? g.width
|
|
248
|
-
};
|
|
249
|
-
})
|
|
250
|
-
), r = b(
|
|
251
|
-
() => {
|
|
252
|
-
var g;
|
|
253
|
-
return ((g = m.value) == null ? void 0 : g.filter(({ visible: F }) => F !== !1).reduce((F, j) => j.width + F, 0)) + P.value;
|
|
254
|
-
}
|
|
255
|
-
), z = b(
|
|
256
|
-
() => E.value <= r.value
|
|
257
|
-
), U = b(() => ({
|
|
258
|
-
width: E.value > r.value ? "100%" : "fit-content"
|
|
259
|
-
}));
|
|
260
|
-
return at(() => {
|
|
261
|
-
var F;
|
|
262
|
-
const g = t != null && t.isDataGridTemplate ? Fl : 0;
|
|
263
|
-
_e(() => {
|
|
264
|
-
h.value && (E.value = h.value.getBoundingClientRect().width - g);
|
|
265
|
-
const j = ye(
|
|
266
|
-
h,
|
|
267
|
-
() => {
|
|
268
|
-
h.value && (_e(() => j()), a = vt(h.value, ({ width: se }) => {
|
|
269
|
-
E.value = se - g;
|
|
270
|
-
}));
|
|
271
|
-
},
|
|
272
|
-
{ immediate: !0 }
|
|
273
|
-
);
|
|
274
|
-
}), (F = document == null ? void 0 : document.fonts) != null && F.ready ? document.fonts.ready.then(() => {
|
|
275
|
-
s();
|
|
276
|
-
}) : s();
|
|
277
|
-
}), Kt(() => {
|
|
278
|
-
a == null || a.disconnect();
|
|
279
|
-
}), Kn(() => {
|
|
280
|
-
var g;
|
|
281
|
-
N.value && ((g = Object.keys(N.value)) == null ? void 0 : g.length) > 0 && Object.keys(N.value).forEach((j) => {
|
|
282
|
-
N.value[j] = [];
|
|
283
|
-
});
|
|
284
|
-
}), {
|
|
285
|
-
columnDefs: m,
|
|
286
|
-
gridRowWidthStyle: U,
|
|
287
|
-
onColumnWidthOverride: S,
|
|
288
|
-
isMeasuringColumnWidths: v,
|
|
289
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: z,
|
|
290
|
-
columns: l,
|
|
291
|
-
totalWidthOfAllColumns: r,
|
|
292
|
-
rowActionsMaxWidth: P
|
|
293
|
-
};
|
|
294
|
-
}, Bl = (e, i, c, n, d) => {
|
|
295
|
-
const t = A(e.value ?? []), l = rt({
|
|
296
|
-
allItemsSelected: !1,
|
|
297
|
-
isIndeterminate: !1
|
|
298
|
-
}), _ = b(
|
|
299
|
-
() => c.value.flatMap((a) => {
|
|
300
|
-
var w;
|
|
301
|
-
return [a, ((w = a == null ? void 0 : a.children) == null ? void 0 : w.length) > 0 ? a == null ? void 0 : a.children : []];
|
|
302
|
-
}).flat()
|
|
303
|
-
), h = () => {
|
|
304
|
-
i(k.SELECT, t.value), i(k.UPDATE_SELECTION, t.value);
|
|
305
|
-
}, C = (a) => {
|
|
306
|
-
var L, S, s, m, r;
|
|
307
|
-
if (t.value = a, ((L = c.value) == null ? void 0 : L.length) > 0 && ((S = _.value) == null ? void 0 : S.filter((z) => !d(z)).every((z) => t.value.includes(n(z))))) {
|
|
308
|
-
l.allItemsSelected = !0;
|
|
309
|
-
const z = ((s = c.value) == null ? void 0 : s.length) > 0 && c.value.every((U) => t.value.includes(n(U)));
|
|
310
|
-
l.isIndeterminate = !z;
|
|
311
|
-
} else
|
|
312
|
-
l.allItemsSelected = !1, l.isIndeterminate = ((m = t.value) == null ? void 0 : m.length) > 0 && ((r = c.value) == null ? void 0 : r.length) > 0 && c.value.some(
|
|
313
|
-
(z) => {
|
|
314
|
-
var U;
|
|
315
|
-
return t.value.includes(n(z)) || ((U = z == null ? void 0 : z.children) == null ? void 0 : U.some((g) => t.value.includes(n(g))));
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
}, N = (a) => {
|
|
319
|
-
_e(() => {
|
|
320
|
-
var w, L, S;
|
|
321
|
-
if (l.allItemsSelected = a, a) {
|
|
322
|
-
t.value = (L = (w = _.value) == null ? void 0 : w.filter(
|
|
323
|
-
(m) => !d(m) && ((m == null ? void 0 : m.children) === void 0 || m.children.every((r) => !d(r)))
|
|
324
|
-
)) == null ? void 0 : L.map((m) => n(m));
|
|
325
|
-
const s = ((S = c.value) == null ? void 0 : S.length) > 0 && c.value.every((m) => t.value.includes(n(m)));
|
|
326
|
-
l.isIndeterminate = t.value.length > 0 && !s;
|
|
327
|
-
} else
|
|
328
|
-
t.value = [], l.isIndeterminate = !1;
|
|
329
|
-
h();
|
|
330
|
-
});
|
|
331
|
-
}, v = (a, w) => {
|
|
332
|
-
_e(() => {
|
|
333
|
-
var L;
|
|
334
|
-
C(((L = w == null ? void 0 : w.children) == null ? void 0 : L.length) > 0 ? P(a, w) : a), h();
|
|
335
|
-
});
|
|
336
|
-
}, P = (a, w) => {
|
|
337
|
-
var s;
|
|
338
|
-
const L = n(w), S = (s = w.children) == null ? void 0 : s.filter((m) => !d(m)).map((m) => n(m));
|
|
339
|
-
if (a.includes(L)) {
|
|
340
|
-
const m = a;
|
|
341
|
-
return S.forEach((r) => {
|
|
342
|
-
m.includes(r) || m.push(r);
|
|
343
|
-
}), m;
|
|
344
|
-
}
|
|
345
|
-
return a.filter((m) => !S.includes(m));
|
|
346
|
-
}, E = (a, w, L) => {
|
|
347
|
-
_e(() => {
|
|
348
|
-
var s, m;
|
|
349
|
-
const S = n(w);
|
|
350
|
-
a.includes(n(L)) ? C(
|
|
351
|
-
!a.includes(S) && ((s = w == null ? void 0 : w.children) != null && s.every((r) => a.includes(n(r)))) ? [...a, S] : a
|
|
352
|
-
) : C(
|
|
353
|
-
a.includes(S) && !((m = w == null ? void 0 : w.children) != null && m.every((r) => a.includes(n(r)))) ? a.filter((r) => r !== S) : a
|
|
354
|
-
), h();
|
|
355
|
-
});
|
|
356
|
-
};
|
|
357
|
-
return ye(
|
|
358
|
-
() => e.value,
|
|
359
|
-
() => {
|
|
360
|
-
C(e.value ?? []);
|
|
361
|
-
},
|
|
362
|
-
{ immediate: !0 }
|
|
363
|
-
), ye(
|
|
364
|
-
() => c.value,
|
|
365
|
-
() => {
|
|
366
|
-
const a = c.value.filter((w) => t.value.includes(n(w))).flatMap(
|
|
367
|
-
(w) => {
|
|
368
|
-
var L;
|
|
369
|
-
return ((L = w == null ? void 0 : w.children) == null ? void 0 : L.length) > 0 ? w.children.map((S) => n(S)).filter((S) => !t.value.includes(S)) : [];
|
|
370
|
-
}
|
|
371
|
-
);
|
|
372
|
-
(a == null ? void 0 : a.length) > 0 ? (C([...t.value, ...a]), h()) : C(t.value);
|
|
373
|
-
}
|
|
374
|
-
), { onAllRowSelect: N, onRowSelect: v, onNestedRowSelect: E, allItemsSelectedState: l, selectedItems: t };
|
|
375
|
-
}, Wl = (e, i, c) => ({ isSorting: (l) => e.value.some((_) => _.field === l), getSortingDirection: (l) => {
|
|
376
|
-
var _;
|
|
377
|
-
return (_ = e.value.find((h) => h.field === l)) == null ? void 0 : _.direction;
|
|
378
|
-
}, sortByColumnField: (l) => {
|
|
379
|
-
var C;
|
|
380
|
-
if (!i.value.some((N) => N.field === l && N.sortable))
|
|
381
|
-
return;
|
|
382
|
-
const h = [{
|
|
383
|
-
field: l,
|
|
384
|
-
direction: ((C = e.value.find((N) => N.field === l)) == null ? void 0 : C.direction) === Fe.ASCENDING ? Fe.DESCENDING : Fe.ASCENDING
|
|
385
|
-
}];
|
|
386
|
-
c("sort", h);
|
|
387
|
-
} });
|
|
388
|
-
var ve = ((e) => (e[e.ARROW_DOWN = $e.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = $e.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = $e.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = $e.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = $e.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = $e.PAGE_DOWN] = "PAGE_DOWN", e[e.END = $e.END] = "END", e[e.HOME = $e.HOME] = "HOME", e))(ve || {});
|
|
389
|
-
const He = "b-row-actions-column", ht = (e) => {
|
|
390
|
-
const c = fl(e).filter((n) => n.node !== e);
|
|
391
|
-
return (c == null ? void 0 : c.length) > 0 ? (c[0].node.focus(), !0) : !1;
|
|
392
|
-
}, Gl = (e, i, c, n, d, t) => {
|
|
393
|
-
const l = b(() => t.value || n.value ? !0 : c.value.some((s) => s.infoIconTooltip || s.sortable)), _ = b(() => {
|
|
394
|
-
let s = c.value.filter(({ visible: m }) => m !== !1);
|
|
395
|
-
return d.value && (s = [
|
|
396
|
-
...s,
|
|
397
|
-
{ field: He, label: "" }
|
|
398
|
-
]), s;
|
|
399
|
-
}), h = b(() => _.value.length), C = b(() => {
|
|
400
|
-
if (!e.value)
|
|
401
|
-
return [];
|
|
402
|
-
const s = Object.keys(e.value)[0];
|
|
403
|
-
if (!s || !e.value[s])
|
|
404
|
-
return [];
|
|
405
|
-
const m = [];
|
|
406
|
-
if (l.value)
|
|
407
|
-
for (const z of _.value) {
|
|
408
|
-
const U = i.value[z.field];
|
|
409
|
-
m.push(U);
|
|
410
|
-
}
|
|
411
|
-
const r = e.value[s].length;
|
|
412
|
-
for (let z = 0; z < r; z++)
|
|
413
|
-
for (const U of _.value) {
|
|
414
|
-
const g = e.value[U.field];
|
|
415
|
-
g != null && g[z] && m.push(g[z]);
|
|
416
|
-
}
|
|
417
|
-
return m;
|
|
418
|
-
}), N = (s) => Math.floor(s / h.value), v = (s, m, r) => {
|
|
419
|
-
const z = C.value.length - 1, U = h.value - 1, g = N(s), F = s - h.value * g;
|
|
420
|
-
return {
|
|
421
|
-
[ve.PAGE_UP]: F + (l.value ? h.value : 0),
|
|
422
|
-
[ve.PAGE_DOWN]: z - U + F,
|
|
423
|
-
[ve.END]: r ? z : h.value * g + U,
|
|
424
|
-
[ve.HOME]: r ? l.value ? h.value : 0 : h.value * g
|
|
425
|
-
}[m];
|
|
426
|
-
}, P = (s, m) => {
|
|
427
|
-
const r = N(s), U = {
|
|
428
|
-
[ve.ARROW_DOWN]: h.value,
|
|
429
|
-
[ve.ARROW_UP]: r === 0 && !l.value ? 0 : -h.value,
|
|
430
|
-
[ve.ARROW_LEFT]: -1,
|
|
431
|
-
[ve.ARROW_RIGHT]: 1
|
|
432
|
-
}[m], g = s + U;
|
|
433
|
-
return g < 0 || g >= C.value.length ? s : g;
|
|
434
|
-
}, E = (s) => [
|
|
435
|
-
ve.PAGE_UP,
|
|
436
|
-
ve.PAGE_DOWN,
|
|
437
|
-
ve.END,
|
|
438
|
-
ve.HOME
|
|
439
|
-
].includes(s), a = (s, m, r) => {
|
|
440
|
-
const z = C.value.indexOf(s);
|
|
441
|
-
return E(m) ? v(z, m, r) : P(z, m);
|
|
442
|
-
}, w = (s, m, r) => {
|
|
443
|
-
if (!C.value.includes(s))
|
|
444
|
-
return;
|
|
445
|
-
const z = a(s, m, r);
|
|
446
|
-
C.value[z].focus();
|
|
447
|
-
}, L = (s) => s in ve;
|
|
448
|
-
return {
|
|
449
|
-
isNavigationKeyCode: L,
|
|
450
|
-
focusOnNextGridcell: w,
|
|
451
|
-
navigationInput: (s) => {
|
|
452
|
-
const { ctrlKey: m, key: r, target: z } = s, U = r;
|
|
453
|
-
let g = z;
|
|
454
|
-
g.getAttribute("role") !== "menuitem" && (C.value.includes(g) || (g = z.closest('[role="gridcell"], [role="columnheader"]')), C.value.includes(g) && L(U) && w(g, U, m));
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
}, Hl = 90, Vl = (e, i, c, n, d) => {
|
|
458
|
-
const t = A(e), l = A(i), _ = A(c), h = A(n), C = b(() => t.value !== "none"), N = b(() => t.value === "automatic"), v = () => {
|
|
459
|
-
d(k.UPDATE_SHOW_MORE);
|
|
460
|
-
};
|
|
461
|
-
return ye(
|
|
462
|
-
() => l.value,
|
|
463
|
-
() => {
|
|
464
|
-
N.value && _.value.offsetHeight / l.value * 100 > Hl && !h.value && v();
|
|
465
|
-
}
|
|
466
|
-
), { isLazyLoad: C, isInfiniteScroll: N, verticalScrollPosition: l, emitLazyLoadEvent: v };
|
|
467
|
-
}, xl = (e, i, c) => {
|
|
468
|
-
const n = A(e), d = A(i), t = rt({
|
|
469
|
-
dragging: null,
|
|
470
|
-
dragToLeft: null,
|
|
471
|
-
target: null
|
|
472
|
-
}), l = (E, a = 0) => {
|
|
473
|
-
const w = n.value.findIndex((s) => s.field === E.field), L = w + a;
|
|
474
|
-
if (L < 0 || L > n.value.length - 1)
|
|
475
|
-
return;
|
|
476
|
-
const S = [...n.value];
|
|
477
|
-
S.splice(L, 0, S.splice(w, 1)[0]), c(k.COLUMNS, S), c(k.UPDATE_COLUMNS, S);
|
|
478
|
-
}, _ = (E, a) => {
|
|
479
|
-
t.dragging = E, a.dataTransfer.setData("text", ""), a.dataTransfer.dropEffect = "move";
|
|
480
|
-
}, h = (E, a) => {
|
|
481
|
-
t.target = E;
|
|
482
|
-
const w = a.currentTarget.getBoundingClientRect(), L = w.left + w.width / 2, S = a.clientX ?? 0;
|
|
483
|
-
t.dragToLeft = S <= L;
|
|
484
|
-
}, C = (E) => {
|
|
485
|
-
var a, w;
|
|
486
|
-
if (((a = t.dragging) == null ? void 0 : a.field) !== E.field) {
|
|
487
|
-
const L = n.value.findIndex((U) => {
|
|
488
|
-
var g;
|
|
489
|
-
return U.field === ((g = t.dragging) == null ? void 0 : g.field);
|
|
490
|
-
}), S = n.value.findIndex((U) => U.field === E.field), s = t.dragToLeft ? S : S + 1, m = s > L ? s - 1 : s;
|
|
491
|
-
let r = [...n.value];
|
|
492
|
-
r.splice(
|
|
493
|
-
m === -1 ? 0 : m,
|
|
494
|
-
0,
|
|
495
|
-
r.splice(L, 1)[0]
|
|
496
|
-
);
|
|
497
|
-
const z = n.value.findIndex((U) => !(U != null && U.frozen));
|
|
498
|
-
((w = t.dragging) == null ? void 0 : w.frozen) !== E.frozen && s !== z && (r = r.map(
|
|
499
|
-
(U) => {
|
|
500
|
-
var g;
|
|
501
|
-
return ((g = t.dragging) == null ? void 0 : g.field) === U.field ? { ...U, frozen: !!(E != null && E.frozen) } : U;
|
|
502
|
-
}
|
|
503
|
-
)), c(k.COLUMNS, r), c(k.UPDATE_COLUMNS, r);
|
|
504
|
-
}
|
|
505
|
-
t.dragging = null, t.target = null;
|
|
506
|
-
}, N = () => {
|
|
507
|
-
t.dragging = null, t.dragToLeft = null, t.target = null;
|
|
508
|
-
}, v = b(() => d.value ? {
|
|
509
|
-
[oe.COLUMN_DRAG_START]: (E, a) => _(E, a),
|
|
510
|
-
[oe.COLUMN_DRAG_ENTER]: (E, a) => h(E, a),
|
|
511
|
-
[oe.COLUMN_DROP]: (E) => C(E),
|
|
512
|
-
[oe.COLUMN_DRAG_END]: () => N()
|
|
513
|
-
} : {}), P = b(() => (E) => d.value ? {
|
|
514
|
-
dragenter: (a) => {
|
|
515
|
-
a.preventDefault(), h(E, a);
|
|
516
|
-
},
|
|
517
|
-
drop: () => {
|
|
518
|
-
C(E);
|
|
519
|
-
},
|
|
520
|
-
dragover: (a) => {
|
|
521
|
-
a.preventDefault();
|
|
522
|
-
}
|
|
523
|
-
} : {});
|
|
524
|
-
return {
|
|
525
|
-
// Values
|
|
526
|
-
draggingColumns: t,
|
|
527
|
-
// Methods
|
|
528
|
-
draggingEventsForColumns: v,
|
|
529
|
-
draggingEventsForRowCell: P,
|
|
530
|
-
onMoveColumnByOffset: l
|
|
531
|
-
};
|
|
532
|
-
}, Zl = (e, i) => {
|
|
533
|
-
const c = A(e), n = b(
|
|
534
|
-
() => [...c.value].sort((v, P) => v.frozen === P.frozen ? 0 : v.frozen ? -1 : 1)
|
|
535
|
-
), d = b(
|
|
536
|
-
() => n.value.filter((v) => v.frozen && v.visible !== !1)
|
|
537
|
-
), t = b(
|
|
538
|
-
() => n.value.filter((v) => !v.frozen && v.visible !== !1)
|
|
539
|
-
), l = b(
|
|
540
|
-
() => [
|
|
541
|
-
{ columnSet: d.value, id: "frozen", isFrozenColumns: !0 },
|
|
542
|
-
{ columnSet: t.value, id: "unfrozen" }
|
|
543
|
-
].filter(({ columnSet: v }) => v.length)
|
|
544
|
-
), _ = b(
|
|
545
|
-
() => c.value.filter((v) => (v == null ? void 0 : v.visible) !== !1 && (v == null ? void 0 : v.field) !== we).length === 1
|
|
546
|
-
), h = (v) => i(k.UPDATE_CONDENSED, v), C = (v) => {
|
|
547
|
-
i(k.COLUMNS, v), i(k.UPDATE_COLUMNS, v);
|
|
548
|
-
};
|
|
549
|
-
return {
|
|
550
|
-
// Values
|
|
551
|
-
columnSets: l,
|
|
552
|
-
isOnlyOneVisibleColumn: _,
|
|
553
|
-
sortedColumns: n,
|
|
554
|
-
// Methods
|
|
555
|
-
onConfigSettingsUpdate: h,
|
|
556
|
-
onConfigSettingsColumnsUpdate: C,
|
|
557
|
-
onConfigSettingsColumnUpdate: (v) => {
|
|
558
|
-
const P = n.value.map(
|
|
559
|
-
(E) => (E == null ? void 0 : E.field) === v.field ? v : E
|
|
560
|
-
);
|
|
561
|
-
C(P);
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
|
-
}, jl = (e, i, c, n, d, t, l) => {
|
|
565
|
-
const _ = A(0), h = A(!1), C = A(!1);
|
|
566
|
-
ye([() => _.value, () => t.value], ([a]) => {
|
|
567
|
-
e.value.scrollLeft = a, i.value.scrollLeft = a, h.value = !!a, C.value = i.value.scrollWidth - i.value.offsetWidth > a;
|
|
568
|
-
}), at(async () => {
|
|
569
|
-
var a, w;
|
|
570
|
-
await _e(), await _e(), ((a = i.value) == null ? void 0 : a.offsetWidth) < ((w = i.value) == null ? void 0 : w.scrollWidth) && (C.value = !0);
|
|
571
|
-
});
|
|
572
|
-
const N = (a) => {
|
|
573
|
-
if (_.value = a.target.scrollLeft, c.value = e.value.scrollHeight - a.target.scrollTop, n != null && n.value) {
|
|
574
|
-
const w = a.target.scrollLeft;
|
|
575
|
-
n.value.scrollLeft !== w && (n.value.scrollLeft = w);
|
|
576
|
-
}
|
|
577
|
-
}, v = (a) => {
|
|
578
|
-
a.key !== "Tab" && a.key !== "ArrowRight" && a.key !== "ArrowLeft" || (a.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
579
|
-
e.value && (e.value.style.overflowX = "auto");
|
|
580
|
-
}));
|
|
581
|
-
}, P = (a) => {
|
|
582
|
-
const w = a.target.scrollLeft;
|
|
583
|
-
e.value.scrollLeft !== w && (e.value.scrollLeft = w);
|
|
584
|
-
}, E = b(() => {
|
|
585
|
-
var a, w, L, S;
|
|
586
|
-
return (a = l == null ? void 0 : l.pagination) != null && a.value && ((w = l == null ? void 0 : l.stickyPagination) != null && w.value || l != null && l.isDataGridTemplate) && !((L = l == null ? void 0 : l.isLazyLoad) != null && L.value) ? { bottom: `${(((S = d.value) == null ? void 0 : S.clientHeight) ?? 0) + 1}px` } : {};
|
|
587
|
-
});
|
|
588
|
-
return {
|
|
589
|
-
// Values
|
|
590
|
-
scrollLeftPosition: _,
|
|
591
|
-
hasLeftOverflow: h,
|
|
592
|
-
hasRightOverflow: C,
|
|
593
|
-
horizontalScrollbarConditionalStyles: E,
|
|
594
|
-
// Methods
|
|
595
|
-
updateScrollPosition: N,
|
|
596
|
-
updateScrollPositionOnFrozenColumnsNavigation: v,
|
|
597
|
-
syncVirtualScrollerWithBody: P
|
|
598
|
-
};
|
|
599
|
-
}, ql = (e, i, c, n) => {
|
|
600
|
-
const d = A(null), t = b(() => {
|
|
601
|
-
var w, L, S, s;
|
|
602
|
-
if (!d.value || d.value.field === we)
|
|
603
|
-
return {
|
|
604
|
-
hoveredOverColumnField: "",
|
|
605
|
-
isSeparatorOffset: !1,
|
|
606
|
-
noBorderLeft: !1,
|
|
607
|
-
noBorderRight: !1
|
|
608
|
-
};
|
|
609
|
-
const l = (L = (w = e.value.find((m) => m.isFrozenColumns)) == null ? void 0 : w.columnSet) == null ? void 0 : L.filter((m) => m.field !== we), _ = e.value.find((m) => !(m != null && m.isFrozenColumns)), h = d.value.frozen && (l == null ? void 0 : l[0].field) === d.value.field, C = !d.value.frozen && ((S = _ == null ? void 0 : _.columnSet) == null ? void 0 : S[0].field) === d.value.field, N = (i.value || c.value) && h, v = (i.value || c.value) && !l && C, P = l && C, E = (l == null ? void 0 : l.length) > 0 && d.value.frozen && (l == null ? void 0 : l[l.length - 1].field) === d.value.field, a = c.value && n.value && !d.value.frozen && ((s = _ == null ? void 0 : _.columnSet) == null ? void 0 : s[_.columnSet.length - 1].field) === d.value.field;
|
|
610
|
-
return {
|
|
611
|
-
hoveredOverColumnField: d.value.field,
|
|
612
|
-
isSeparatorOffset: a,
|
|
613
|
-
noBorderLeft: !!N || !!v || !!P,
|
|
614
|
-
noBorderRight: !!E || !!a
|
|
615
|
-
};
|
|
616
|
-
});
|
|
617
|
-
return {
|
|
618
|
-
hoveredOverColumn: d,
|
|
619
|
-
hoveredOverColumnState: t
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
let zt = 0;
|
|
623
|
-
const Kl = {
|
|
624
|
-
beforeCreate() {
|
|
625
|
-
this.uuid = zt.toString(), zt += 1;
|
|
626
|
-
}
|
|
627
|
-
}, Yl = { key: 0 }, Xl = ["clip-path"], Jl = ["id"];
|
|
628
|
-
function Ql(e, i, c, n, d, t) {
|
|
629
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
630
|
-
class: "ui-assets-icons-16",
|
|
631
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
632
|
-
width: "16",
|
|
633
|
-
height: "16",
|
|
634
|
-
fill: "none"
|
|
635
|
-
}), [
|
|
636
|
-
e.$attrs["svg-title"] ? (f(), R("title", Yl, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
637
|
-
O("g", {
|
|
638
|
-
fill: "#00112C",
|
|
639
|
-
"clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
640
|
-
}, i[0] || (i[0] = [
|
|
641
|
-
O("path", { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" }, null, -1),
|
|
642
|
-
O("path", { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" }, null, -1)
|
|
643
|
-
]), 8, Xl),
|
|
644
|
-
O("defs", null, [
|
|
645
|
-
O("clipPath", {
|
|
646
|
-
id: "uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid
|
|
647
|
-
}, i[1] || (i[1] = [
|
|
648
|
-
O("rect", {
|
|
649
|
-
width: "16",
|
|
650
|
-
height: "16",
|
|
651
|
-
fill: "#fff"
|
|
652
|
-
}, null, -1)
|
|
653
|
-
]), 8, Jl)
|
|
654
|
-
])
|
|
655
|
-
], 16);
|
|
656
|
-
}
|
|
657
|
-
const eo = /* @__PURE__ */ de(Kl, [["render", Ql]]);
|
|
658
|
-
let Ut = 0;
|
|
659
|
-
const to = {
|
|
660
|
-
beforeCreate() {
|
|
661
|
-
this.uuid = Ut.toString(), Ut += 1;
|
|
662
|
-
}
|
|
663
|
-
}, no = { key: 0 };
|
|
664
|
-
function lo(e, i, c, n, d, t) {
|
|
665
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
666
|
-
class: "ui-assets-icons-16",
|
|
667
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
668
|
-
width: "16",
|
|
669
|
-
height: "16",
|
|
670
|
-
fill: "none"
|
|
671
|
-
}), [
|
|
672
|
-
e.$attrs["svg-title"] ? (f(), R("title", no, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
673
|
-
i[0] || (i[0] = O("path", {
|
|
674
|
-
fill: "#00112C",
|
|
675
|
-
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"
|
|
676
|
-
}, null, -1))
|
|
677
|
-
], 16);
|
|
678
|
-
}
|
|
679
|
-
const oo = /* @__PURE__ */ de(to, [["render", lo]]);
|
|
680
|
-
let Pt = 0;
|
|
681
|
-
const so = {
|
|
682
|
-
beforeCreate() {
|
|
683
|
-
this.uuid = Pt.toString(), Pt += 1;
|
|
684
|
-
}
|
|
685
|
-
}, io = { key: 0 }, ao = ["clip-path"], ro = ["id"];
|
|
686
|
-
function uo(e, i, c, n, d, t) {
|
|
687
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
688
|
-
class: "ui-assets-icons-16",
|
|
689
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
690
|
-
width: "16",
|
|
691
|
-
height: "16",
|
|
692
|
-
fill: "none"
|
|
693
|
-
}), [
|
|
694
|
-
e.$attrs["svg-title"] ? (f(), R("title", io, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
695
|
-
O("g", {
|
|
696
|
-
"clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
|
|
697
|
-
}, i[0] || (i[0] = [
|
|
698
|
-
O("path", {
|
|
699
|
-
fill: "#00112C",
|
|
700
|
-
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"
|
|
701
|
-
}, null, -1)
|
|
702
|
-
]), 8, ao),
|
|
703
|
-
O("defs", null, [
|
|
704
|
-
O("clipPath", {
|
|
705
|
-
id: "uia-ui-assets/icons-16-freeze__a" + e.uuid
|
|
706
|
-
}, i[1] || (i[1] = [
|
|
707
|
-
O("rect", {
|
|
708
|
-
width: "16",
|
|
709
|
-
height: "16",
|
|
710
|
-
fill: "#fff",
|
|
711
|
-
transform: "matrix(1 0 0 -1 0 16)"
|
|
712
|
-
}, null, -1)
|
|
713
|
-
]), 8, ro)
|
|
714
|
-
])
|
|
715
|
-
], 16);
|
|
716
|
-
}
|
|
717
|
-
const on = /* @__PURE__ */ de(so, [["render", uo]]);
|
|
718
|
-
let Bt = 0;
|
|
719
|
-
const co = {
|
|
720
|
-
beforeCreate() {
|
|
721
|
-
this.uuid = Bt.toString(), Bt += 1;
|
|
722
|
-
}
|
|
723
|
-
}, fo = { key: 0 }, go = ["clip-path"], vo = ["id"];
|
|
724
|
-
function mo(e, i, c, n, d, t) {
|
|
725
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
726
|
-
class: "ui-assets-icons-16",
|
|
727
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
728
|
-
width: "16",
|
|
729
|
-
height: "16",
|
|
730
|
-
fill: "none"
|
|
731
|
-
}), [
|
|
732
|
-
e.$attrs["svg-title"] ? (f(), R("title", fo, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
733
|
-
O("g", {
|
|
734
|
-
fill: "#00112C",
|
|
735
|
-
"clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
|
|
736
|
-
}, i[0] || (i[0] = [
|
|
737
|
-
O("path", { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" }, null, -1),
|
|
738
|
-
O("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
739
|
-
O("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1),
|
|
740
|
-
O("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1)
|
|
741
|
-
]), 8, go),
|
|
742
|
-
O("defs", null, [
|
|
743
|
-
O("clipPath", {
|
|
744
|
-
id: "uia-ui-assets/icons-16-sort_ascending__a" + e.uuid
|
|
745
|
-
}, i[1] || (i[1] = [
|
|
746
|
-
O("rect", {
|
|
747
|
-
width: "16",
|
|
748
|
-
height: "16",
|
|
749
|
-
fill: "#fff"
|
|
750
|
-
}, null, -1)
|
|
751
|
-
]), 8, vo)
|
|
752
|
-
])
|
|
753
|
-
], 16);
|
|
754
|
-
}
|
|
755
|
-
const ho = /* @__PURE__ */ de(co, [["render", mo]]);
|
|
756
|
-
let Wt = 0;
|
|
757
|
-
const Co = {
|
|
758
|
-
beforeCreate() {
|
|
759
|
-
this.uuid = Wt.toString(), Wt += 1;
|
|
760
|
-
}
|
|
761
|
-
}, wo = { key: 0 }, _o = ["clip-path"], yo = ["id"];
|
|
762
|
-
function bo(e, i, c, n, d, t) {
|
|
763
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
764
|
-
class: "ui-assets-icons-16",
|
|
765
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
766
|
-
width: "16",
|
|
767
|
-
height: "16",
|
|
768
|
-
fill: "none"
|
|
769
|
-
}), [
|
|
770
|
-
e.$attrs["svg-title"] ? (f(), R("title", wo, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
771
|
-
O("g", {
|
|
772
|
-
fill: "#00112C",
|
|
773
|
-
"clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
|
|
774
|
-
}, i[0] || (i[0] = [
|
|
775
|
-
O("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1),
|
|
776
|
-
O("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1),
|
|
777
|
-
O("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1),
|
|
778
|
-
O("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1)
|
|
779
|
-
]), 8, _o),
|
|
780
|
-
O("defs", null, [
|
|
781
|
-
O("clipPath", {
|
|
782
|
-
id: "uia-ui-assets/icons-16-sort_descending__a" + e.uuid
|
|
783
|
-
}, i[1] || (i[1] = [
|
|
784
|
-
O("rect", {
|
|
785
|
-
width: "16",
|
|
786
|
-
height: "16",
|
|
787
|
-
fill: "#fff"
|
|
788
|
-
}, null, -1)
|
|
789
|
-
]), 8, yo)
|
|
790
|
-
])
|
|
791
|
-
], 16);
|
|
792
|
-
}
|
|
793
|
-
const So = /* @__PURE__ */ de(Co, [["render", bo]]);
|
|
794
|
-
let Gt = 0;
|
|
795
|
-
const Eo = {
|
|
796
|
-
beforeCreate() {
|
|
797
|
-
this.uuid = Gt.toString(), Gt += 1;
|
|
798
|
-
}
|
|
799
|
-
}, Lo = { key: 0 };
|
|
800
|
-
function po(e, i, c, n, d, t) {
|
|
801
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
802
|
-
class: "ui-assets-icons-16",
|
|
803
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
804
|
-
width: "16",
|
|
805
|
-
height: "16",
|
|
806
|
-
fill: "none"
|
|
807
|
-
}), [
|
|
808
|
-
e.$attrs["svg-title"] ? (f(), R("title", Lo, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
809
|
-
i[0] || (i[0] = O("path", {
|
|
810
|
-
fill: "#00112C",
|
|
811
|
-
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
812
|
-
}, null, -1))
|
|
813
|
-
], 16);
|
|
814
|
-
}
|
|
815
|
-
const Ro = /* @__PURE__ */ de(Eo, [["render", po]]), sn = {
|
|
816
|
-
"en-US": {
|
|
817
|
-
columnActions: "{name} column actions",
|
|
818
|
-
freezeColumn: "Freeze column",
|
|
819
|
-
hideColumn: "Hide column",
|
|
820
|
-
moveColumnLeft: "Move column left",
|
|
821
|
-
moveColumnRight: "Move column right",
|
|
822
|
-
rowActionsColumn: "Row actions column",
|
|
823
|
-
selectAll: "Select all",
|
|
824
|
-
selectPage: "Select this page",
|
|
825
|
-
selectionMenu: "Selection menu",
|
|
826
|
-
showColumn: "Show column",
|
|
827
|
-
sortColumn: "Sort {name} column",
|
|
828
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
829
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
830
|
-
unfreezeColumn: "Unfreeze column"
|
|
831
|
-
},
|
|
832
|
-
"ja-JP": {
|
|
833
|
-
freezeColumn: "列を固定",
|
|
834
|
-
hideColumn: "列を非表示",
|
|
835
|
-
moveColumnLeft: "列を左へ移動",
|
|
836
|
-
moveColumnRight: "列を右へ移動",
|
|
837
|
-
selectAll: "すべて選択",
|
|
838
|
-
unfreezeColumn: "列の固定を解除"
|
|
839
|
-
},
|
|
840
|
-
"pt-BR": {
|
|
841
|
-
freezeColumn: "Congelar coluna",
|
|
842
|
-
hideColumn: "Ocultar coluna",
|
|
843
|
-
moveColumnLeft: "Mover coluna para a esquerda",
|
|
844
|
-
moveColumnRight: "Mover coluna para a direita",
|
|
845
|
-
selectAll: "Selecionar tudo",
|
|
846
|
-
unfreezeColumn: "Descongelar coluna"
|
|
847
|
-
}
|
|
848
|
-
}, Ao = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Oo = {
|
|
849
|
-
key: 0,
|
|
850
|
-
class: "b-data-grid-columns__select-column"
|
|
851
|
-
}, No = ["aria-label"], To = { class: "b-data-grid-columns__label" }, Io = {
|
|
852
|
-
key: 0,
|
|
853
|
-
class: "b-data-grid-columns__column-info-icon"
|
|
854
|
-
}, $o = {
|
|
855
|
-
key: 1,
|
|
856
|
-
class: "b-data-grid-columns__column-sort"
|
|
857
|
-
}, Do = ["data-testid", "onMousedown"], ko = {
|
|
858
|
-
key: 0,
|
|
859
|
-
class: "b-data-grid-columns__column-separator"
|
|
860
|
-
}, Mo = ["aria-label", "aria-colindex"], Fo = {
|
|
861
|
-
i18n: { messages: sn },
|
|
862
|
-
name: "data-grid-columns"
|
|
863
|
-
}, zo = /* @__PURE__ */ Oe({
|
|
864
|
-
...Fo,
|
|
865
|
-
props: {
|
|
866
|
-
/**
|
|
867
|
-
* Column definitions using 'key' to relate to data object.
|
|
868
|
-
*/
|
|
869
|
-
columns: {
|
|
870
|
-
type: Array,
|
|
871
|
-
required: !0
|
|
872
|
-
},
|
|
873
|
-
/**
|
|
874
|
-
* Columns being dragged, contains dragging column and a target column
|
|
875
|
-
*/
|
|
876
|
-
draggingColumns: {
|
|
877
|
-
type: Object,
|
|
878
|
-
default: void 0
|
|
879
|
-
},
|
|
880
|
-
/**
|
|
881
|
-
* Toggle the columns draggable events.
|
|
882
|
-
*/
|
|
883
|
-
hasDraggableColumns: {
|
|
884
|
-
type: Boolean,
|
|
885
|
-
default: !0
|
|
886
|
-
},
|
|
887
|
-
/**
|
|
888
|
-
* If resize is enabled
|
|
889
|
-
*/
|
|
890
|
-
hasResizableColumns: {
|
|
891
|
-
type: Boolean,
|
|
892
|
-
default: !0
|
|
893
|
-
},
|
|
894
|
-
/**
|
|
895
|
-
* Signifies if the column panel is enabled.
|
|
896
|
-
*/
|
|
897
|
-
hasColumnPanel: {
|
|
898
|
-
type: Boolean,
|
|
899
|
-
default: !1
|
|
900
|
-
},
|
|
901
|
-
/**
|
|
902
|
-
* If set to true, aligns the first column panel to the right of its button.
|
|
903
|
-
*/
|
|
904
|
-
hasFirstColumnPanelRightAligned: {
|
|
905
|
-
type: Boolean,
|
|
906
|
-
default: !1
|
|
907
|
-
},
|
|
908
|
-
/**
|
|
909
|
-
* If the data grid has overflow on the left side
|
|
910
|
-
*/
|
|
911
|
-
hasLeftOverflow: {
|
|
912
|
-
type: Boolean,
|
|
913
|
-
default: !1
|
|
914
|
-
},
|
|
915
|
-
/**
|
|
916
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
917
|
-
*/
|
|
918
|
-
hoveredOverColumnState: {
|
|
919
|
-
type: Object,
|
|
920
|
-
required: !0
|
|
921
|
-
},
|
|
922
|
-
/**
|
|
923
|
-
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
924
|
-
*/
|
|
925
|
-
isMeasuringColumnWidths: {
|
|
926
|
-
type: Boolean,
|
|
927
|
-
default: !1
|
|
928
|
-
},
|
|
929
|
-
/**
|
|
930
|
-
* Used to disable hiding the last visible column.
|
|
931
|
-
*/
|
|
932
|
-
isOnlyOneVisibleColumn: {
|
|
933
|
-
type: Boolean,
|
|
934
|
-
default: !1
|
|
935
|
-
},
|
|
936
|
-
/**
|
|
937
|
-
* If these columns are frozen (pinned) columns
|
|
938
|
-
*/
|
|
939
|
-
isFrozenColumns: {
|
|
940
|
-
type: Boolean,
|
|
941
|
-
default: !1
|
|
942
|
-
},
|
|
943
|
-
/**
|
|
944
|
-
* Show frozen columns separator
|
|
945
|
-
*/
|
|
946
|
-
showFrozenColumnsSeparator: {
|
|
947
|
-
type: Boolean,
|
|
948
|
-
default: !1
|
|
949
|
-
},
|
|
950
|
-
/**
|
|
951
|
-
* The column all items selected state
|
|
952
|
-
*/
|
|
953
|
-
allItemsSelectedState: {
|
|
954
|
-
type: Object,
|
|
955
|
-
default: void 0
|
|
956
|
-
},
|
|
957
|
-
/**
|
|
958
|
-
* Determines if the user has enabled row selection
|
|
959
|
-
*/
|
|
960
|
-
selectable: {
|
|
961
|
-
type: Boolean,
|
|
962
|
-
default: !1
|
|
963
|
-
},
|
|
964
|
-
/**
|
|
965
|
-
* Adds an extra option when selecting all, to select items in other pages too
|
|
966
|
-
*/
|
|
967
|
-
selectableAcrossPages: {
|
|
968
|
-
type: Boolean,
|
|
969
|
-
default: !1
|
|
970
|
-
},
|
|
971
|
-
/**
|
|
972
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
973
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
974
|
-
*/
|
|
975
|
-
sortBy: {
|
|
976
|
-
type: Array,
|
|
977
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
978
|
-
default: () => []
|
|
979
|
-
},
|
|
980
|
-
/**
|
|
981
|
-
* Truncates all data grid column headers
|
|
982
|
-
*/
|
|
983
|
-
truncateColumnHeaders: {
|
|
984
|
-
type: Boolean,
|
|
985
|
-
default: !1
|
|
986
|
-
},
|
|
987
|
-
/**
|
|
988
|
-
* The maximum width of the row actions in all rows
|
|
989
|
-
*/
|
|
990
|
-
rowActionsMaximumWidth: {
|
|
991
|
-
type: Number,
|
|
992
|
-
default: 0
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
emits: ["sort", "column-hover"],
|
|
996
|
-
setup(e, { expose: i, emit: c }) {
|
|
997
|
-
const n = e, d = c, t = 100, { t: l } = Ue({ messages: sn }), { columns: _, sortBy: h } = dt(n), C = A({}), N = A({}), v = A(), P = A(), E = (u) => d(oe.SELECT_ALL_ROWS, u), a = (u) => u.field === we, w = b(() => [
|
|
998
|
-
{
|
|
999
|
-
text: l("selectPage"),
|
|
1000
|
-
handler: () => E(!0)
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
text: l("selectAll"),
|
|
1004
|
-
handler: () => d(oe.SELECT_ALL_ACROSS_PAGES)
|
|
1005
|
-
}
|
|
1006
|
-
]), { startResize: L, isResizing: S, columnHoverEventToEmitAfterResizing: s } = Ol(_, d), { isSorting: m, getSortingDirection: r, sortByColumnField: z } = Wl(h, _, d), U = (u) => {
|
|
1007
|
-
var ge;
|
|
1008
|
-
if (!u.sortable)
|
|
1009
|
-
return null;
|
|
1010
|
-
const x = (ge = n.sortBy.find(({ field: ae }) => ae === u.field)) == null ? void 0 : ge.direction;
|
|
1011
|
-
return x ? {
|
|
1012
|
-
[Fe.ASCENDING]: Ye.ASCENDING,
|
|
1013
|
-
[Fe.DESCENDING]: Ye.DESCENDING
|
|
1014
|
-
}[x] : Ye.NONE;
|
|
1015
|
-
}, g = b(() => (u) => n.hasDraggableColumns ? {
|
|
1016
|
-
dragstart: (x) => {
|
|
1017
|
-
d(oe.COLUMN_DRAG_START, u, x);
|
|
1018
|
-
},
|
|
1019
|
-
dragover: (x) => {
|
|
1020
|
-
x.preventDefault();
|
|
1021
|
-
},
|
|
1022
|
-
dragenter: (x) => {
|
|
1023
|
-
x.preventDefault(), d(oe.COLUMN_DRAG_ENTER, u, x);
|
|
1024
|
-
},
|
|
1025
|
-
drop: () => {
|
|
1026
|
-
d(oe.COLUMN_DROP, u);
|
|
1027
|
-
},
|
|
1028
|
-
dragend: () => {
|
|
1029
|
-
d(oe.COLUMN_DRAG_END);
|
|
1030
|
-
}
|
|
1031
|
-
} : {}), F = b(() => (u) => [
|
|
1032
|
-
{
|
|
1033
|
-
text: l("moveColumnLeft"),
|
|
1034
|
-
handler: () => d(oe.COLUMN_MOVE, u, -1),
|
|
1035
|
-
icon: bl,
|
|
1036
|
-
disabled: n.columns[0].field === u.field
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
text: l("moveColumnRight"),
|
|
1040
|
-
handler: () => d(oe.COLUMN_MOVE, u, 1),
|
|
1041
|
-
icon: oo,
|
|
1042
|
-
disabled: n.columns[n.columns.length - 1].field === u.field
|
|
1043
|
-
},
|
|
1044
|
-
{
|
|
1045
|
-
text: u != null && u.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1046
|
-
handler: () => d(oe.COLUMN_UPDATE, { ...u, frozen: !(u != null && u.frozen) }),
|
|
1047
|
-
icon: on
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
text: (u == null ? void 0 : u.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1051
|
-
handler: () => {
|
|
1052
|
-
d(oe.COLUMN_UPDATE, {
|
|
1053
|
-
...u,
|
|
1054
|
-
visible: (u == null ? void 0 : u.visible) === !1
|
|
1055
|
-
});
|
|
1056
|
-
},
|
|
1057
|
-
icon: (u == null ? void 0 : u.visible) !== !1 ? Sl : El,
|
|
1058
|
-
disabled: (u == null ? void 0 : u.mandatory) || (u == null ? void 0 : u.visible) !== !1 && n.isOnlyOneVisibleColumn
|
|
1059
|
-
}
|
|
1060
|
-
]), j = (u) => {
|
|
1061
|
-
v.value = u.field, P.value && clearTimeout(P.value);
|
|
1062
|
-
}, se = () => {
|
|
1063
|
-
const u = setTimeout(() => {
|
|
1064
|
-
v.value = "";
|
|
1065
|
-
}, t);
|
|
1066
|
-
P.value = u;
|
|
1067
|
-
}, ue = (u) => {
|
|
1068
|
-
let x = {
|
|
1069
|
-
mouseenter: () => {
|
|
1070
|
-
j(u), S.value ? s.value = u : d("column-hover", u);
|
|
1071
|
-
},
|
|
1072
|
-
mouseleave: () => {
|
|
1073
|
-
se(), S.value ? s.value = null : d("column-hover", null);
|
|
1074
|
-
},
|
|
1075
|
-
focus: () => {
|
|
1076
|
-
j(u), a(u) && ht(C.value[u.field]);
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
return a(u) || (x = {
|
|
1080
|
-
...x,
|
|
1081
|
-
...g.value(u)
|
|
1082
|
-
}), x;
|
|
1083
|
-
}, ne = (u) => u.infoIconTooltip || u.sortable || n.hasColumnPanel, fe = (u, x) => {
|
|
1084
|
-
var I;
|
|
1085
|
-
((I = C.value) == null ? void 0 : I[x]) === void 0 && (C.value = { ...C.value, [x]: null }), u !== null && (C.value[x] = u);
|
|
1086
|
-
}, y = b(() => {
|
|
1087
|
-
var x;
|
|
1088
|
-
const u = {
|
|
1089
|
-
"b-data-grid-columns--is-measuring": n.isMeasuringColumnWidths
|
|
1090
|
-
};
|
|
1091
|
-
return (x = _.value[0]) != null && x.frozen ? {
|
|
1092
|
-
...u,
|
|
1093
|
-
"b-data-grid-columns--frozen": !0,
|
|
1094
|
-
"b-data-grid-columns--frozen-separator": n.showFrozenColumnsSeparator,
|
|
1095
|
-
"b-data-grid-columns--overflow-shadow-left": n.hasLeftOverflow
|
|
1096
|
-
} : {
|
|
1097
|
-
...u,
|
|
1098
|
-
"b-data-grid-columns--unfrozen": !0
|
|
1099
|
-
};
|
|
1100
|
-
}), V = (u, x) => u && x === 0 ? Nt.BOTTOM_START : Nt.BOTTOM_END, W = (u, x) => {
|
|
1101
|
-
var I, ge, ae, p, D, X, Q, ee, le, K;
|
|
1102
|
-
return {
|
|
1103
|
-
"b-data-grid-columns__column--column-hovered": u.field === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
1104
|
-
"b-data-grid-columns__column--column-hovered-no-border-left": u.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
1105
|
-
"b-data-grid-columns__column--column-hovered-no-border-right": u.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
1106
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": n.isFrozenColumns && x === _.value.length - 1,
|
|
1107
|
-
"b-data-grid-columns__column--sortable": u.sortable,
|
|
1108
|
-
"b-data-grid-columns__column--padding-left-unset": ((I = u == null ? void 0 : u.padding) == null ? void 0 : I.left) === !1,
|
|
1109
|
-
"b-data-grid-columns__column--padding-right-unset": ((ge = u == null ? void 0 : u.padding) == null ? void 0 : ge.right) === !1,
|
|
1110
|
-
"b-data-grid-columns__column--numeric": u == null ? void 0 : u.numeric,
|
|
1111
|
-
"b-data-grid-columns__column--frozen": u == null ? void 0 : u.frozen,
|
|
1112
|
-
"b-data-grid-columns__column--is-re-ordering": (u == null ? void 0 : u.field) === ((p = (ae = n.draggingColumns) == null ? void 0 : ae.dragging) == null ? void 0 : p.field),
|
|
1113
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (u == null ? void 0 : u.field) === ((X = (D = n.draggingColumns) == null ? void 0 : D.target) == null ? void 0 : X.field) && ((Q = n.draggingColumns) == null ? void 0 : Q.dragToLeft),
|
|
1114
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (u == null ? void 0 : u.field) === ((le = (ee = n.draggingColumns) == null ? void 0 : ee.target) == null ? void 0 : le.field) && !((K = n.draggingColumns) != null && K.dragToLeft),
|
|
1115
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": u.sortable || u.infoIconTooltip || n.hasColumnPanel && v.value === u.field || n.selectableAcrossPages
|
|
1116
|
-
};
|
|
1117
|
-
}, $ = (u) => ({
|
|
1118
|
-
"b-data-grid-columns__column-header-and-actions--numeric": u == null ? void 0 : u.numeric
|
|
1119
|
-
}), G = (u) => ({
|
|
1120
|
-
"b-data-grid-columns__column-actions--numeric": u == null ? void 0 : u.numeric
|
|
1121
|
-
}), Ce = (u) => ({
|
|
1122
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns,
|
|
1123
|
-
"b-data-grid-columns__column-separator-container--is-offset": n.hoveredOverColumnState.hoveredOverColumnField === u.field && n.hoveredOverColumnState.isSeparatorOffset
|
|
1124
|
-
}), Ne = b(() => ({
|
|
1125
|
-
"b-data-grid-columns__column-header--truncated": n.truncateColumnHeaders
|
|
1126
|
-
}));
|
|
1127
|
-
return i({
|
|
1128
|
-
columnHeaderRefs: C
|
|
1129
|
-
}), (u, x) => (f(), R("div", {
|
|
1130
|
-
class: ce(["b-data-grid-columns", y.value]),
|
|
1131
|
-
"data-testid": "data-grid-columns"
|
|
1132
|
-
}, [
|
|
1133
|
-
(f(!0), R(he, null, Le(o(_), (I, ge) => (f(), R("div", te({
|
|
1134
|
-
key: I.field,
|
|
1135
|
-
ref_for: !0,
|
|
1136
|
-
ref: (ae) => fe(ae, I.field),
|
|
1137
|
-
"aria-colindex": ge + 1,
|
|
1138
|
-
"aria-label": I.label,
|
|
1139
|
-
"aria-sort": U(I),
|
|
1140
|
-
class: [W(I, ge), "b-data-grid-columns__column"],
|
|
1141
|
-
"data-testid": `${I.field}-column-header`,
|
|
1142
|
-
draggable: e.hasDraggableColumns && !o(S) && !a(I),
|
|
1143
|
-
role: "columnheader",
|
|
1144
|
-
tabindex: I.sortable || e.hasColumnPanel || I.infoIconTooltip ? "0" : "-1",
|
|
1145
|
-
style: { width: I.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${I.width}px` }
|
|
1146
|
-
}, Xe(ue(I), !0)), [
|
|
1147
|
-
a(I) && e.selectable ? (f(), R("div", Oo, [
|
|
1148
|
-
Y(o(nn), {
|
|
1149
|
-
"aria-label": o(l)("selectAll"),
|
|
1150
|
-
"model-value": e.allItemsSelectedState.allItemsSelected,
|
|
1151
|
-
"data-testid": "checkbox-select-all",
|
|
1152
|
-
indeterminate: e.allItemsSelectedState.isIndeterminate,
|
|
1153
|
-
value: "data-grid-select-all",
|
|
1154
|
-
"onUpdate:modelValue": E
|
|
1155
|
-
}, null, 8, ["aria-label", "model-value", "indeterminate"]),
|
|
1156
|
-
e.selectableAcrossPages ? (f(), H(o(st), {
|
|
1157
|
-
key: 0,
|
|
1158
|
-
class: "b-data-grid-columns__select-column-menu",
|
|
1159
|
-
data: w.value,
|
|
1160
|
-
"disable-arrow-down-opening-menu": "",
|
|
1161
|
-
"menu-position": "bottom-start",
|
|
1162
|
-
"menu-fixed-positioning": "",
|
|
1163
|
-
button: { variant: "tertiary", condensed: !0 }
|
|
1164
|
-
}, {
|
|
1165
|
-
iconLeft: Z(() => [
|
|
1166
|
-
Y(o(Ro), {
|
|
1167
|
-
"svg-title": o(l)("selectionMenu")
|
|
1168
|
-
}, null, 8, ["svg-title"])
|
|
1169
|
-
]),
|
|
1170
|
-
_: 1
|
|
1171
|
-
}, 8, ["data"])) : B("", !0)
|
|
1172
|
-
])) : (f(), R(he, { key: 1 }, [
|
|
1173
|
-
O("div", {
|
|
1174
|
-
"aria-label": o(l)("columnActions", { name: I.label }),
|
|
1175
|
-
"aria-live": "polite",
|
|
1176
|
-
role: "region",
|
|
1177
|
-
class: ce(["b-data-grid-columns__column-header-and-actions", $(I)])
|
|
1178
|
-
}, [
|
|
1179
|
-
Y(o(Je), {
|
|
1180
|
-
el: "div",
|
|
1181
|
-
strongest: "",
|
|
1182
|
-
class: ce(["b-data-grid-columns__column-header", Ne.value])
|
|
1183
|
-
}, {
|
|
1184
|
-
default: Z(() => [
|
|
1185
|
-
Re(u.$slots, `head-${I.field}`, { column: I }, () => [
|
|
1186
|
-
O("span", To, J(I.label), 1)
|
|
1187
|
-
], !0)
|
|
1188
|
-
]),
|
|
1189
|
-
_: 2
|
|
1190
|
-
}, 1032, ["class"]),
|
|
1191
|
-
ne(I) ? (f(), R("div", {
|
|
1192
|
-
key: 0,
|
|
1193
|
-
class: ce(["b-data-grid-columns__column-actions", G(I)])
|
|
1194
|
-
}, [
|
|
1195
|
-
I.infoIconTooltip ? (f(), R("div", Io, [
|
|
1196
|
-
Y(o(wl), {
|
|
1197
|
-
"tooltip-text": I.infoIconTooltip
|
|
1198
|
-
}, null, 8, ["tooltip-text"])
|
|
1199
|
-
])) : B("", !0),
|
|
1200
|
-
I.sortable ? (f(), R("div", $o, [
|
|
1201
|
-
Y(o(mt), {
|
|
1202
|
-
condensed: "",
|
|
1203
|
-
toggled: o(m)(I.field),
|
|
1204
|
-
variant: "tertiary",
|
|
1205
|
-
onClick: (ae) => o(z)(I.field)
|
|
1206
|
-
}, {
|
|
1207
|
-
iconLeft: Z(() => [
|
|
1208
|
-
o(r)(I.field) ? o(r)(I.field) === o(Fe).ASCENDING ? (f(), H(o(ho), {
|
|
1209
|
-
key: 1,
|
|
1210
|
-
"svg-title": o(l)("sortColumnInDescendingOrder", { name: I.label })
|
|
1211
|
-
}, null, 8, ["svg-title"])) : o(r)(I.field) === o(Fe).DESCENDING ? (f(), H(o(So), {
|
|
1212
|
-
key: 2,
|
|
1213
|
-
"svg-title": o(l)("sortColumnInAscendingOrder", { name: I.label })
|
|
1214
|
-
}, null, 8, ["svg-title"])) : B("", !0) : (f(), H(o(eo), {
|
|
1215
|
-
key: 0,
|
|
1216
|
-
"svg-title": o(l)("sortColumn", { name: I.label })
|
|
1217
|
-
}, null, 8, ["svg-title"]))
|
|
1218
|
-
]),
|
|
1219
|
-
_: 2
|
|
1220
|
-
}, 1032, ["toggled", "onClick"])
|
|
1221
|
-
])) : B("", !0),
|
|
1222
|
-
e.hasColumnPanel && v.value === I.field ? (f(), H(o(st), {
|
|
1223
|
-
key: 2,
|
|
1224
|
-
ref_for: !0,
|
|
1225
|
-
ref: (ae) => N.value[I.field] = ae,
|
|
1226
|
-
class: "b-data-grid-columns__menu",
|
|
1227
|
-
"disable-arrow-down-opening-menu": "",
|
|
1228
|
-
data: F.value(I),
|
|
1229
|
-
"menu-position": V(e.hasFirstColumnPanelRightAligned, ge),
|
|
1230
|
-
"menu-fixed-positioning": !0,
|
|
1231
|
-
button: { variant: "tertiary", condensed: !0 },
|
|
1232
|
-
onOpen: x[0] || (x[0] = (ae) => u.$emit(o(oe).COLUMN_MENU_OPEN)),
|
|
1233
|
-
onClose: x[1] || (x[1] = (ae) => u.$emit(o(oe).COLUMN_MENU_CLOSE))
|
|
1234
|
-
}, null, 8, ["data", "menu-position"])) : B("", !0)
|
|
1235
|
-
], 2)) : B("", !0)
|
|
1236
|
-
], 10, No),
|
|
1237
|
-
O("div", {
|
|
1238
|
-
"data-testid": `data-grid-column-${I.field}`,
|
|
1239
|
-
class: ce(["b-data-grid-columns__column-separator-container", Ce(I)]),
|
|
1240
|
-
role: "presentation",
|
|
1241
|
-
onMousedown: (ae) => o(L)(e.hasResizableColumns, I.field, ae),
|
|
1242
|
-
onClick: x[2] || (x[2] = Yn(() => {
|
|
1243
|
-
}, ["stop"]))
|
|
1244
|
-
}, [
|
|
1245
|
-
!e.isFrozenColumns || e.isFrozenColumns && ge !== o(_).length - 1 ? (f(), R("div", ko)) : B("", !0)
|
|
1246
|
-
], 42, Do)
|
|
1247
|
-
], 64))
|
|
1248
|
-
], 16, Ao))), 128)),
|
|
1249
|
-
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (f(), R(he, { key: 0 }, [
|
|
1250
|
-
x[3] || (x[3] = O("div", {
|
|
1251
|
-
role: "presentation",
|
|
1252
|
-
class: "b-data-grid-columns__row-actions-filler"
|
|
1253
|
-
}, null, -1)),
|
|
1254
|
-
O("div", {
|
|
1255
|
-
ref: (I) => fe(I, o(He)),
|
|
1256
|
-
"aria-label": o(l)("rowActionsColumn"),
|
|
1257
|
-
"aria-colindex": o(_).length + 1,
|
|
1258
|
-
class: "b-data-grid-columns__column",
|
|
1259
|
-
role: "columnheader",
|
|
1260
|
-
tabindex: "0",
|
|
1261
|
-
style: ke({ minWidth: `${e.rowActionsMaximumWidth}px` })
|
|
1262
|
-
}, null, 12, Mo)
|
|
1263
|
-
], 64)) : B("", !0)
|
|
1264
|
-
], 2));
|
|
1265
|
-
}
|
|
1266
|
-
}), Uo = /* @__PURE__ */ de(zo, [["__scopeId", "data-v-8f3b3034"]]);
|
|
1267
|
-
var De = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(De || {});
|
|
1268
|
-
let Ht = 0;
|
|
1269
|
-
const Po = {
|
|
1270
|
-
beforeCreate() {
|
|
1271
|
-
this.uuid = Ht.toString(), Ht += 1;
|
|
1272
|
-
}
|
|
1273
|
-
}, Bo = { key: 0 }, Wo = ["clip-path"], Go = ["id"];
|
|
1274
|
-
function Ho(e, i, c, n, d, t) {
|
|
1275
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
1276
|
-
class: "ui-assets-icons-16",
|
|
1277
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1278
|
-
width: "16",
|
|
1279
|
-
height: "16",
|
|
1280
|
-
fill: "none"
|
|
1281
|
-
}), [
|
|
1282
|
-
e.$attrs["svg-title"] ? (f(), R("title", Bo, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
1283
|
-
O("g", {
|
|
1284
|
-
fill: "#00112C",
|
|
1285
|
-
"clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
|
|
1286
|
-
}, i[0] || (i[0] = [
|
|
1287
|
-
O("path", { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" }, null, -1),
|
|
1288
|
-
O("path", { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" }, null, -1)
|
|
1289
|
-
]), 8, Wo),
|
|
1290
|
-
O("defs", null, [
|
|
1291
|
-
O("clipPath", {
|
|
1292
|
-
id: "uia-ui-assets/icons-16-settings__a" + e.uuid
|
|
1293
|
-
}, i[1] || (i[1] = [
|
|
1294
|
-
O("rect", {
|
|
1295
|
-
width: "16",
|
|
1296
|
-
height: "16",
|
|
1297
|
-
fill: "#fff"
|
|
1298
|
-
}, null, -1)
|
|
1299
|
-
]), 8, Go)
|
|
1300
|
-
])
|
|
1301
|
-
], 16);
|
|
1302
|
-
}
|
|
1303
|
-
const Vo = /* @__PURE__ */ de(Po, [["render", Ho]]), Vt = {
|
|
1304
|
-
"en-US": {
|
|
1305
|
-
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1306
|
-
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1307
|
-
}
|
|
1308
|
-
}, xo = Oe({
|
|
1309
|
-
i18n: { messages: Vt },
|
|
1310
|
-
name: "bento-data-grid",
|
|
1311
|
-
components: {
|
|
1312
|
-
BentoFreezeIcon: on,
|
|
1313
|
-
BentoToggle: tn
|
|
1314
|
-
},
|
|
1315
|
-
props: {
|
|
1316
|
-
/**
|
|
1317
|
-
* Is column visibitlity toggle disabled
|
|
1318
|
-
*/
|
|
1319
|
-
isColumnVisibilityToggleDisabled: {
|
|
1320
|
-
type: Boolean,
|
|
1321
|
-
required: !0
|
|
1322
|
-
},
|
|
1323
|
-
/**
|
|
1324
|
-
* Column definition
|
|
1325
|
-
*/
|
|
1326
|
-
column: {
|
|
1327
|
-
type: Object,
|
|
1328
|
-
required: !0
|
|
1329
|
-
}
|
|
1330
|
-
},
|
|
1331
|
-
emits: ["visible-column", "updated-column"],
|
|
1332
|
-
setup(e, { emit: i }) {
|
|
1333
|
-
const { t: c } = Ue({ messages: Vt }), n = A(!1), d = b(() => {
|
|
1334
|
-
var v;
|
|
1335
|
-
return (v = e.column) == null ? void 0 : v.frozen;
|
|
1336
|
-
}), t = b(() => {
|
|
1337
|
-
var v;
|
|
1338
|
-
return ((v = e.column) == null ? void 0 : v.visible) !== !1;
|
|
1339
|
-
}), l = () => {
|
|
1340
|
-
i("visible-column", { ...e.column, visible: !t.value });
|
|
1341
|
-
}, _ = () => {
|
|
1342
|
-
i("updated-column", { ...e.column, frozen: !d.value });
|
|
1343
|
-
}, h = () => {
|
|
1344
|
-
d.value || (n.value = !0);
|
|
1345
|
-
}, C = () => {
|
|
1346
|
-
d.value || (n.value = !1);
|
|
1347
|
-
}, N = b(() => ({
|
|
1348
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen": d.value
|
|
1349
|
-
}));
|
|
1350
|
-
return {
|
|
1351
|
-
// Values
|
|
1352
|
-
isFreezeIconOptionShown: n,
|
|
1353
|
-
isColumnFrozen: d,
|
|
1354
|
-
freezeIconConditionalClasses: N,
|
|
1355
|
-
isColumnVisible: t,
|
|
1356
|
-
// Methods
|
|
1357
|
-
toggleColumnVisibility: l,
|
|
1358
|
-
showFreezeIcon: h,
|
|
1359
|
-
hideFreezeIcon: C,
|
|
1360
|
-
toggleColumnFreeze: _,
|
|
1361
|
-
// Translations
|
|
1362
|
-
t: c
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
});
|
|
1366
|
-
function Zo(e, i, c, n, d, t) {
|
|
1367
|
-
const l = Ee("bento-toggle"), _ = Ee("bento-freeze-icon");
|
|
1368
|
-
return f(), R("div", {
|
|
1369
|
-
class: "b-data-grid-config-settings-column-row",
|
|
1370
|
-
onMouseover: i[0] || (i[0] = (...h) => e.showFreezeIcon && e.showFreezeIcon(...h)),
|
|
1371
|
-
onMouseleave: i[1] || (i[1] = (...h) => e.hideFreezeIcon && e.hideFreezeIcon(...h))
|
|
1372
|
-
}, [
|
|
1373
|
-
Y(l, {
|
|
1374
|
-
"aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
|
|
1375
|
-
disabled: e.isColumnVisibilityToggleDisabled,
|
|
1376
|
-
"label-position": "after",
|
|
1377
|
-
value: e.isColumnVisible,
|
|
1378
|
-
onInput: e.toggleColumnVisibility
|
|
1379
|
-
}, {
|
|
1380
|
-
default: Z(() => [
|
|
1381
|
-
me(J(e.column.label), 1)
|
|
1382
|
-
]),
|
|
1383
|
-
_: 1
|
|
1384
|
-
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1385
|
-
ut(Y(_, {
|
|
1386
|
-
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1387
|
-
class: ce(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1388
|
-
onClick: e.toggleColumnFreeze
|
|
1389
|
-
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1390
|
-
[Xn, e.isColumnFrozen || e.isFreezeIconOptionShown]
|
|
1391
|
-
])
|
|
1392
|
-
], 32);
|
|
1393
|
-
}
|
|
1394
|
-
const jo = /* @__PURE__ */ de(xo, [["render", Zo], ["__scopeId", "data-v-bb87a729"]]), xt = {
|
|
1395
|
-
"en-US": {
|
|
1396
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1397
|
-
closeSearch: "Close search",
|
|
1398
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1399
|
-
columns: "Columns",
|
|
1400
|
-
condensed: "Condensed",
|
|
1401
|
-
condensedToggle: "Condensed toggle",
|
|
1402
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1403
|
-
displayOptions: "Display options",
|
|
1404
|
-
noColumnsMatch: "No columns match this search",
|
|
1405
|
-
search: "Search",
|
|
1406
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1407
|
-
size: "Size",
|
|
1408
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
|
|
1409
|
-
},
|
|
1410
|
-
"ja-JP": {
|
|
1411
|
-
condensed: "凝縮",
|
|
1412
|
-
search: "検索",
|
|
1413
|
-
size: "サイズ"
|
|
1414
|
-
},
|
|
1415
|
-
"pt-BR": {
|
|
1416
|
-
condensed: "Condensado",
|
|
1417
|
-
search: "Buscar",
|
|
1418
|
-
size: "Tamanho"
|
|
1419
|
-
}
|
|
1420
|
-
}, qo = Oe({
|
|
1421
|
-
i18n: { messages: xt },
|
|
1422
|
-
name: "bento-data-grid",
|
|
1423
|
-
components: {
|
|
1424
|
-
BentoButton: en,
|
|
1425
|
-
BentoCrossIcon: Jt,
|
|
1426
|
-
BentoPopover: gl,
|
|
1427
|
-
BentoSettingsIcon: Vo,
|
|
1428
|
-
BentoToggleButton: mt,
|
|
1429
|
-
BentoDataGridConfigSettingsConfigRow: jo,
|
|
1430
|
-
BentoSearchBar: vl,
|
|
1431
|
-
BentoSearchIcon: Cl,
|
|
1432
|
-
BentoToggle: tn,
|
|
1433
|
-
BentoTypography: Je
|
|
1434
|
-
},
|
|
1435
|
-
directives: { BentoClickOutsideDirective: hl },
|
|
1436
|
-
props: {
|
|
1437
|
-
/**
|
|
1438
|
-
* Column definitions
|
|
1439
|
-
*/
|
|
1440
|
-
columns: {
|
|
1441
|
-
type: Array,
|
|
1442
|
-
required: !0
|
|
1443
|
-
},
|
|
1444
|
-
/**
|
|
1445
|
-
* Sets the row cells to the condensed padding state.
|
|
1446
|
-
*/
|
|
1447
|
-
condensed: {
|
|
1448
|
-
type: Boolean,
|
|
1449
|
-
default: !1
|
|
1450
|
-
}
|
|
1451
|
-
},
|
|
1452
|
-
emits: [De.CONFIG_SETTINGS, De.UPDATE_COLUMNS],
|
|
1453
|
-
setup(e, { emit: i }) {
|
|
1454
|
-
const { t: c } = Ue({ messages: xt }), n = A(null), d = ot("data-grid-config-settings-popover"), t = A(null), l = A(!1), _ = A(!0), h = A(null), C = A(""), N = nt(e, "columns"), v = A(!1), P = ml(C, N), E = () => {
|
|
1455
|
-
C.value = "";
|
|
1456
|
-
}, a = b(
|
|
1457
|
-
() => !e.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1458
|
-
), w = () => {
|
|
1459
|
-
E(), v.value = !v.value, v.value ? _e(() => {
|
|
1460
|
-
var g;
|
|
1461
|
-
return (g = t.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1462
|
-
}) : _e(() => {
|
|
1463
|
-
var g, F;
|
|
1464
|
-
return (F = (g = h == null ? void 0 : h.value) == null ? void 0 : g.$el) == null ? void 0 : F.focus();
|
|
1465
|
-
}), _.value = a.value;
|
|
1466
|
-
}, L = (g) => g.mandatory ?? !1, S = (g) => {
|
|
1467
|
-
const F = e.columns.map((j) => ({
|
|
1468
|
-
...j,
|
|
1469
|
-
visible: g.field === j.field ? g.visible : j.visible
|
|
1470
|
-
}));
|
|
1471
|
-
i(De.UPDATE_COLUMNS, F);
|
|
1472
|
-
}, s = (g) => {
|
|
1473
|
-
g ? i(
|
|
1474
|
-
De.UPDATE_COLUMNS,
|
|
1475
|
-
e.columns.map((F) => ({ ...F, visible: !0 }))
|
|
1476
|
-
) : i(
|
|
1477
|
-
De.UPDATE_COLUMNS,
|
|
1478
|
-
e.columns.map((F) => ({ ...F, visible: (F == null ? void 0 : F.mandatory) === !0 }))
|
|
1479
|
-
);
|
|
1480
|
-
}, m = (g) => {
|
|
1481
|
-
const F = e.columns.map((j) => ({
|
|
1482
|
-
...j,
|
|
1483
|
-
frozen: g.field === j.field ? !!(g != null && g.frozen) : !!(j != null && j.frozen)
|
|
1484
|
-
}));
|
|
1485
|
-
i(De.UPDATE_COLUMNS, F);
|
|
1486
|
-
}, r = (g) => {
|
|
1487
|
-
l.value = g, _.value = a.value;
|
|
1488
|
-
};
|
|
1489
|
-
return {
|
|
1490
|
-
// Values
|
|
1491
|
-
configSettingsButtonRef: n,
|
|
1492
|
-
popoverId: d,
|
|
1493
|
-
isConfigSettingsPanelOpen: l,
|
|
1494
|
-
allColumnsVisbilityToggleState: _,
|
|
1495
|
-
filteredColumnVisibilityColumns: P,
|
|
1496
|
-
searchTerm: C,
|
|
1497
|
-
isColumnVisibilityFilterShown: v,
|
|
1498
|
-
searchBarRef: t,
|
|
1499
|
-
searchButtonRef: h,
|
|
1500
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: we,
|
|
1501
|
-
// Methods
|
|
1502
|
-
setConfigSettingsPanelVisibility: r,
|
|
1503
|
-
emitCondensedToggle: (g) => i(De.CONFIG_SETTINGS, g),
|
|
1504
|
-
toggleAllColumnVisibility: s,
|
|
1505
|
-
clearAction: E,
|
|
1506
|
-
toggleColumnFilter: w,
|
|
1507
|
-
emitVisibleColumns: S,
|
|
1508
|
-
emitFrozenColumns: m,
|
|
1509
|
-
onClickOutside: () => r(!1),
|
|
1510
|
-
isColumnVisibilityToggleDisabled: L,
|
|
1511
|
-
// Translations
|
|
1512
|
-
t: c
|
|
1513
|
-
};
|
|
1514
|
-
}
|
|
1515
|
-
}), Ko = { class: "b-data-grid-config-settings" }, Yo = { class: "b-data-grid-config-settings__button-and-separator" }, Xo = {
|
|
1516
|
-
ref: "configSettingsButtonRef",
|
|
1517
|
-
class: "b-data-grid-config-settings__button-container"
|
|
1518
|
-
}, Jo = { class: "b-data-grid-config-settings__panel-header" }, Qo = { class: "b-data-grid-config-settings__condensed-view-settings" }, es = { class: "b-data-grid-config-settings__column-visibility-settings" }, ts = { class: "b-data-grid-config-settings__column-visibility-header" }, ns = {
|
|
1519
|
-
key: 0,
|
|
1520
|
-
class: "b-data-grid-config-settings__column-visibility-search"
|
|
1521
|
-
}, ls = {
|
|
1522
|
-
key: 1,
|
|
1523
|
-
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1524
|
-
}, os = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1525
|
-
function ss(e, i, c, n, d, t) {
|
|
1526
|
-
const l = Ee("bento-settings-icon"), _ = Ee("bento-toggle-button"), h = Ee("bento-typography"), C = Ee("bento-cross-icon"), N = Ee("bento-button"), v = Ee("bento-toggle"), P = Ee("bento-search-icon"), E = Ee("bento-search-bar"), a = Ee("bento-data-grid-config-settings-config-row"), w = Ee("bento-popover"), L = Jn("bento-click-outside-directive");
|
|
1527
|
-
return ut((f(), R("div", Ko, [
|
|
1528
|
-
O("div", Yo, [
|
|
1529
|
-
O("div", Xo, [
|
|
1530
|
-
Y(_, {
|
|
1531
|
-
"aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
|
|
1532
|
-
variant: "tertiary",
|
|
1533
|
-
condensed: "",
|
|
1534
|
-
toggled: e.isConfigSettingsPanelOpen,
|
|
1535
|
-
onClick: i[0] || (i[0] = (S) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1536
|
-
}, {
|
|
1537
|
-
iconLeft: Z(() => [
|
|
1538
|
-
Y(l, {
|
|
1539
|
-
"svg-title": e.t("toggleConfigSettingsPanelVisibility")
|
|
1540
|
-
}, null, 8, ["svg-title"])
|
|
1541
|
-
]),
|
|
1542
|
-
_: 1
|
|
1543
|
-
}, 8, ["aria-controls", "toggled"])
|
|
1544
|
-
], 512)
|
|
1545
|
-
]),
|
|
1546
|
-
e.configSettingsButtonRef ? (f(), H(w, {
|
|
1547
|
-
key: 0,
|
|
1548
|
-
id: e.popoverId,
|
|
1549
|
-
open: e.isConfigSettingsPanelOpen,
|
|
1550
|
-
class: "b-data-grid-config-settings__panel",
|
|
1551
|
-
"aria-label": e.t("configSettingsPanel"),
|
|
1552
|
-
"target-element": e.configSettingsButtonRef,
|
|
1553
|
-
position: "bottom-end"
|
|
1554
|
-
}, {
|
|
1555
|
-
default: Z(() => [
|
|
1556
|
-
O("div", Jo, [
|
|
1557
|
-
Y(h, {
|
|
1558
|
-
el: "span",
|
|
1559
|
-
strongest: ""
|
|
1560
|
-
}, {
|
|
1561
|
-
default: Z(() => [
|
|
1562
|
-
me(J(e.t("displayOptions")), 1)
|
|
1563
|
-
]),
|
|
1564
|
-
_: 1
|
|
1565
|
-
}),
|
|
1566
|
-
Y(N, {
|
|
1567
|
-
variant: "tertiary",
|
|
1568
|
-
onClick: i[1] || (i[1] = (S) => e.setConfigSettingsPanelVisibility(!1))
|
|
1569
|
-
}, {
|
|
1570
|
-
iconLeft: Z(() => [
|
|
1571
|
-
Y(C, {
|
|
1572
|
-
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1573
|
-
}, null, 8, ["svg-title"])
|
|
1574
|
-
]),
|
|
1575
|
-
_: 1
|
|
1576
|
-
})
|
|
1577
|
-
]),
|
|
1578
|
-
O("div", Qo, [
|
|
1579
|
-
Y(h, {
|
|
1580
|
-
class: "b-data-grid-config-settings__condensed-view-title",
|
|
1581
|
-
el: "span",
|
|
1582
|
-
stronger: ""
|
|
1583
|
-
}, {
|
|
1584
|
-
default: Z(() => [
|
|
1585
|
-
me(J(e.t("size")), 1)
|
|
1586
|
-
]),
|
|
1587
|
-
_: 1
|
|
1588
|
-
}),
|
|
1589
|
-
Y(v, {
|
|
1590
|
-
"label-position": "after",
|
|
1591
|
-
"aria-label": e.t("condensedToggle"),
|
|
1592
|
-
value: e.condensed,
|
|
1593
|
-
onInput: e.emitCondensedToggle
|
|
1594
|
-
}, {
|
|
1595
|
-
default: Z(() => [
|
|
1596
|
-
me(J(e.t("condensed")), 1)
|
|
1597
|
-
]),
|
|
1598
|
-
_: 1
|
|
1599
|
-
}, 8, ["aria-label", "value", "onInput"])
|
|
1600
|
-
]),
|
|
1601
|
-
O("div", es, [
|
|
1602
|
-
O("div", ts, [
|
|
1603
|
-
Y(h, {
|
|
1604
|
-
class: "b-data-grid-config-settings__column-visibility-title",
|
|
1605
|
-
el: "span",
|
|
1606
|
-
stronger: ""
|
|
1607
|
-
}, {
|
|
1608
|
-
default: Z(() => [
|
|
1609
|
-
me(J(e.t("columns")), 1)
|
|
1610
|
-
]),
|
|
1611
|
-
_: 1
|
|
1612
|
-
}),
|
|
1613
|
-
e.isColumnVisibilityFilterShown ? (f(), H(N, {
|
|
1614
|
-
key: 1,
|
|
1615
|
-
variant: "tertiary",
|
|
1616
|
-
onClick: e.toggleColumnFilter
|
|
1617
|
-
}, {
|
|
1618
|
-
iconLeft: Z(() => [
|
|
1619
|
-
Y(C)
|
|
1620
|
-
]),
|
|
1621
|
-
default: Z(() => [
|
|
1622
|
-
me(" " + J(e.t("closeSearch")), 1)
|
|
1623
|
-
]),
|
|
1624
|
-
_: 1
|
|
1625
|
-
}, 8, ["onClick"])) : (f(), H(N, {
|
|
1626
|
-
key: 0,
|
|
1627
|
-
ref: "searchButtonRef",
|
|
1628
|
-
variant: "tertiary",
|
|
1629
|
-
onClick: e.toggleColumnFilter
|
|
1630
|
-
}, {
|
|
1631
|
-
iconLeft: Z(() => [
|
|
1632
|
-
Y(P)
|
|
1633
|
-
]),
|
|
1634
|
-
default: Z(() => [
|
|
1635
|
-
me(J(e.t("search")), 1)
|
|
1636
|
-
]),
|
|
1637
|
-
_: 1
|
|
1638
|
-
}, 8, ["onClick"]))
|
|
1639
|
-
]),
|
|
1640
|
-
e.isColumnVisibilityFilterShown ? (f(), R("div", ns, [
|
|
1641
|
-
Y(E, {
|
|
1642
|
-
ref: "searchBarRef",
|
|
1643
|
-
value: e.searchTerm,
|
|
1644
|
-
"input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
|
|
1645
|
-
onInput: i[2] || (i[2] = (S) => e.searchTerm = S),
|
|
1646
|
-
onClear: e.clearAction,
|
|
1647
|
-
onEscapePressed: e.toggleColumnFilter
|
|
1648
|
-
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1649
|
-
])) : (f(), R("div", ls, [
|
|
1650
|
-
Y(v, {
|
|
1651
|
-
"label-position": "after",
|
|
1652
|
-
value: e.allColumnsVisbilityToggleState,
|
|
1653
|
-
onInput: e.toggleAllColumnVisibility
|
|
1654
|
-
}, {
|
|
1655
|
-
default: Z(() => [
|
|
1656
|
-
me(J(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1657
|
-
]),
|
|
1658
|
-
_: 1
|
|
1659
|
-
}, 8, ["value", "onInput"])
|
|
1660
|
-
])),
|
|
1661
|
-
O("div", os, [
|
|
1662
|
-
(f(!0), R(he, null, Le(e.filteredColumnVisibilityColumns, (S) => (f(), R("div", {
|
|
1663
|
-
key: S.field
|
|
1664
|
-
}, [
|
|
1665
|
-
S.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (f(), H(a, {
|
|
1666
|
-
key: 0,
|
|
1667
|
-
column: S,
|
|
1668
|
-
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(S),
|
|
1669
|
-
onVisibleColumn: e.emitVisibleColumns,
|
|
1670
|
-
onUpdatedColumn: e.emitFrozenColumns
|
|
1671
|
-
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : B("", !0)
|
|
1672
|
-
]))), 128)),
|
|
1673
|
-
e.filteredColumnVisibilityColumns.length === 0 ? (f(), H(h, {
|
|
1674
|
-
key: 0,
|
|
1675
|
-
el: "span",
|
|
1676
|
-
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1677
|
-
}, {
|
|
1678
|
-
default: Z(() => [
|
|
1679
|
-
me(J(e.t("noColumnsMatch")), 1)
|
|
1680
|
-
]),
|
|
1681
|
-
_: 1
|
|
1682
|
-
})) : B("", !0)
|
|
1683
|
-
])
|
|
1684
|
-
])
|
|
1685
|
-
]),
|
|
1686
|
-
_: 1
|
|
1687
|
-
}, 8, ["id", "open", "aria-label", "target-element"])) : B("", !0)
|
|
1688
|
-
])), [
|
|
1689
|
-
[L, e.onClickOutside]
|
|
1690
|
-
]);
|
|
1691
|
-
}
|
|
1692
|
-
const is = /* @__PURE__ */ de(qo, [["render", ss], ["__scopeId", "data-v-f5950a53"]]), Qe = {
|
|
1693
|
-
"en-US": {
|
|
1694
|
-
gettingYourData: "Getting your data",
|
|
1695
|
-
loading: "Loading",
|
|
1696
|
-
selectRow: "Select row",
|
|
1697
|
-
showMore: "Show more",
|
|
1698
|
-
sortAscending: "{field} sort ascending",
|
|
1699
|
-
sortDescending: "{field} sort descending",
|
|
1700
|
-
sortInactive: "{field} sort inactive"
|
|
1701
|
-
},
|
|
1702
|
-
"ja-JP": {
|
|
1703
|
-
loading: "読み込み中",
|
|
1704
|
-
showMore: "表示内容を増やす"
|
|
1705
|
-
},
|
|
1706
|
-
"pt-BR": {
|
|
1707
|
-
loading: "Carregando",
|
|
1708
|
-
showMore: "Mostrar mais"
|
|
1709
|
-
}
|
|
1710
|
-
}, as = { class: "b-data-grid-lazy-load" }, rs = {
|
|
1711
|
-
i18n: { messages: Qe }
|
|
1712
|
-
}, ds = /* @__PURE__ */ Oe({
|
|
1713
|
-
...rs,
|
|
1714
|
-
__name: "data-grid-lazy-load",
|
|
1715
|
-
props: {
|
|
1716
|
-
loading: { type: Boolean },
|
|
1717
|
-
isInfiniteScroll: { type: Boolean }
|
|
1718
|
-
},
|
|
1719
|
-
setup(e) {
|
|
1720
|
-
const { t: i } = Ue({ messages: Qe });
|
|
1721
|
-
return (c, n) => (f(), R("div", as, [
|
|
1722
|
-
c.loading && c.isInfiniteScroll ? (f(), H(o(ft), { key: 0 })) : B("", !0),
|
|
1723
|
-
c.loading && !c.isInfiniteScroll ? (f(), H(o(It), {
|
|
1724
|
-
key: 1,
|
|
1725
|
-
variant: "secondary",
|
|
1726
|
-
state: o($t).LOADING
|
|
1727
|
-
}, {
|
|
1728
|
-
default: Z(() => [
|
|
1729
|
-
me(J(o(i)("loading")), 1)
|
|
1730
|
-
]),
|
|
1731
|
-
_: 1
|
|
1732
|
-
}, 8, ["state"])) : B("", !0),
|
|
1733
|
-
!c.loading && !c.isInfiniteScroll ? (f(), H(o(It), {
|
|
1734
|
-
key: 2,
|
|
1735
|
-
state: o($t).START,
|
|
1736
|
-
variant: "secondary",
|
|
1737
|
-
onClick: n[0] || (n[0] = (d) => c.$emit(o(k).UPDATE_SHOW_MORE))
|
|
1738
|
-
}, {
|
|
1739
|
-
default: Z(() => [
|
|
1740
|
-
me(J(o(i)("showMore")), 1)
|
|
1741
|
-
]),
|
|
1742
|
-
_: 1
|
|
1743
|
-
}, 8, ["state"])) : B("", !0)
|
|
1744
|
-
]));
|
|
1745
|
-
}
|
|
1746
|
-
}), us = /* @__PURE__ */ de(ds, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1747
|
-
let Zt = 0;
|
|
1748
|
-
const cs = {
|
|
1749
|
-
beforeCreate() {
|
|
1750
|
-
this.uuid = Zt.toString(), Zt += 1;
|
|
1751
|
-
}
|
|
1752
|
-
}, fs = { key: 0 };
|
|
1753
|
-
function gs(e, i, c, n, d, t) {
|
|
1754
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
1755
|
-
class: "ui-assets-icons-16",
|
|
1756
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1757
|
-
width: "16",
|
|
1758
|
-
height: "16",
|
|
1759
|
-
fill: "none"
|
|
1760
|
-
}), [
|
|
1761
|
-
e.$attrs["svg-title"] ? (f(), R("title", fs, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
1762
|
-
i[0] || (i[0] = O("path", {
|
|
1763
|
-
fill: "#00112C",
|
|
1764
|
-
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"
|
|
1765
|
-
}, null, -1))
|
|
1766
|
-
], 16);
|
|
1767
|
-
}
|
|
1768
|
-
const vs = /* @__PURE__ */ de(cs, [["render", gs]]), an = {
|
|
1769
|
-
"en-US": {
|
|
1770
|
-
copy: "Copy",
|
|
1771
|
-
edit: "Edit",
|
|
1772
|
-
more: "More",
|
|
1773
|
-
open: "Open"
|
|
1774
|
-
},
|
|
1775
|
-
"ja-JP": {
|
|
1776
|
-
copy: "コピー",
|
|
1777
|
-
edit: "編集",
|
|
1778
|
-
more: "表示を増やす",
|
|
1779
|
-
open: "を開く"
|
|
1780
|
-
},
|
|
1781
|
-
"pt-BR": {
|
|
1782
|
-
copy: "Copiar",
|
|
1783
|
-
edit: "Editar",
|
|
1784
|
-
more: "Mais",
|
|
1785
|
-
open: "Abrir"
|
|
1786
|
-
}
|
|
1787
|
-
}, ms = { class: "b-data-grid-cell-actions" }, hs = {
|
|
1788
|
-
i18n: { messages: an },
|
|
1789
|
-
name: "data-grid-cell-actions"
|
|
1790
|
-
}, Cs = /* @__PURE__ */ Oe({
|
|
1791
|
-
...hs,
|
|
1792
|
-
props: {
|
|
1793
|
-
/**
|
|
1794
|
-
* Column definitions using 'key' to relate to data object.
|
|
1795
|
-
*/
|
|
1796
|
-
cellActions: {
|
|
1797
|
-
type: [Array, Function],
|
|
1798
|
-
required: !0,
|
|
1799
|
-
validator: (e) => (e == null ? void 0 : e.length) <= 2
|
|
1800
|
-
},
|
|
1801
|
-
/**
|
|
1802
|
-
* The column field key.
|
|
1803
|
-
*/
|
|
1804
|
-
columnKey: {
|
|
1805
|
-
type: String,
|
|
1806
|
-
default: void 0
|
|
1807
|
-
},
|
|
1808
|
-
/**
|
|
1809
|
-
* Disables any opening of the cell actions menus using the down arrow key.
|
|
1810
|
-
*/
|
|
1811
|
-
disableArrowDownOpeningMenu: {
|
|
1812
|
-
type: Boolean,
|
|
1813
|
-
default: !1
|
|
1814
|
-
},
|
|
1815
|
-
/**
|
|
1816
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1817
|
-
*/
|
|
1818
|
-
hasRightOverflow: {
|
|
1819
|
-
type: Boolean,
|
|
1820
|
-
default: !1
|
|
1821
|
-
},
|
|
1822
|
-
/**
|
|
1823
|
-
* Set if set to true will teleport the action menu component
|
|
1824
|
-
*/
|
|
1825
|
-
teleportMenu: {
|
|
1826
|
-
type: Boolean,
|
|
1827
|
-
default: !1
|
|
1828
|
-
},
|
|
1829
|
-
/**
|
|
1830
|
-
* The row data item object.
|
|
1831
|
-
*/
|
|
1832
|
-
rowDataItem: {
|
|
1833
|
-
type: Object,
|
|
1834
|
-
required: !0
|
|
1835
|
-
}
|
|
1836
|
-
},
|
|
1837
|
-
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1838
|
-
setup(e, { emit: i }) {
|
|
1839
|
-
const { t: c } = Ue({ messages: an }), n = e, d = i, t = b(() => n.columnKey === void 0), l = b(() => ({
|
|
1840
|
-
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": t.value && n.hasRightOverflow
|
|
1841
|
-
})), _ = b(() => ({
|
|
1842
|
-
"b-data-grid-cell-actions__actions--with-row-actions": t.value
|
|
1843
|
-
})), h = b(() => !t.value || t.value && n.hasRightOverflow);
|
|
1844
|
-
function C(s) {
|
|
1845
|
-
return typeof s == "function";
|
|
1846
|
-
}
|
|
1847
|
-
const N = b(() => {
|
|
1848
|
-
var m;
|
|
1849
|
-
const s = C(n.cellActions) ? (m = n.cellActions) == null ? void 0 : m.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1850
|
-
return (s == null ? void 0 : s.length) > 2 && Qt(
|
|
1851
|
-
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1852
|
-
), s == null ? void 0 : s.slice(0, 2);
|
|
1853
|
-
}), v = b(() => (s, m) => {
|
|
1854
|
-
if (!(!m && s.isShort || m && !s.isShort))
|
|
1855
|
-
switch (s.variant) {
|
|
1856
|
-
case "copy":
|
|
1857
|
-
return c("copy");
|
|
1858
|
-
case "edit":
|
|
1859
|
-
return c("edit");
|
|
1860
|
-
case "open":
|
|
1861
|
-
return c("open");
|
|
1862
|
-
case "more":
|
|
1863
|
-
return c("more");
|
|
1864
|
-
default:
|
|
1865
|
-
return s.title;
|
|
1866
|
-
}
|
|
1867
|
-
}), P = (s) => (s == null ? void 0 : s.event) !== void 0 ? {
|
|
1868
|
-
click: (m) => {
|
|
1869
|
-
m.stopPropagation(), s.event(n.rowDataItem, n.columnKey);
|
|
1870
|
-
}
|
|
1871
|
-
} : {}, E = (s) => ({
|
|
1872
|
-
...s,
|
|
1873
|
-
handler: () => {
|
|
1874
|
-
s != null && s.handler && typeof s.handler == "function" && (s == null || s.handler()), s != null && s.event && typeof s.event == "function" && (s == null || s.event(n.rowDataItem, n.columnKey));
|
|
1875
|
-
}
|
|
1876
|
-
}), a = (s) => s.map((m) => {
|
|
1877
|
-
const r = m;
|
|
1878
|
-
return r != null && r.items && (r.items = a(r.items)), { ...E(r) };
|
|
1879
|
-
}), w = (s) => {
|
|
1880
|
-
var m, r;
|
|
1881
|
-
return (s == null ? void 0 : s.getCopyData) !== void 0 ? s.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (r = (m = n.rowDataItem) == null ? void 0 : m[n.columnKey]) == null ? void 0 : r.toString() : "";
|
|
1882
|
-
}, L = (s) => s.iconRight || ((s == null ? void 0 : s.variant) === "more" || (s == null ? void 0 : s.variant) === "open") && !s.isShort, S = (s) => s.iconLeft || (s == null ? void 0 : s.variant) === "more";
|
|
1883
|
-
return (s, m) => (f(), H(Yt, {
|
|
1884
|
-
name: "b-data-grid-cell-actions__animation",
|
|
1885
|
-
appear: ""
|
|
1886
|
-
}, {
|
|
1887
|
-
default: Z(() => [
|
|
1888
|
-
O("div", ms, [
|
|
1889
|
-
h.value ? (f(), R("div", {
|
|
1890
|
-
key: 0,
|
|
1891
|
-
class: ce(["b-data-grid-cell-actions__background-gradient", l.value])
|
|
1892
|
-
}, null, 2)) : B("", !0),
|
|
1893
|
-
O("div", {
|
|
1894
|
-
class: ce(["b-data-grid-cell-actions__actions", _.value]),
|
|
1895
|
-
role: "group"
|
|
1896
|
-
}, [
|
|
1897
|
-
(f(!0), R(he, null, Le(N.value, (r, z) => (f(), R("div", {
|
|
1898
|
-
key: z,
|
|
1899
|
-
class: "b-data-grid-cell-actions__action"
|
|
1900
|
-
}, [
|
|
1901
|
-
r.menuData ? (f(), H(o(st), {
|
|
1902
|
-
key: 0,
|
|
1903
|
-
data: a(r.menuData),
|
|
1904
|
-
button: {
|
|
1905
|
-
condensed: !0,
|
|
1906
|
-
variant: "secondary",
|
|
1907
|
-
disabled: r.disabled
|
|
1908
|
-
},
|
|
1909
|
-
"disable-arrow-down-opening-menu": e.disableArrowDownOpeningMenu,
|
|
1910
|
-
teleport: e.teleportMenu,
|
|
1911
|
-
onOpen: m[0] || (m[0] = (U) => d("menu-open")),
|
|
1912
|
-
onClose: m[1] || (m[1] = (U) => d("menu-close")),
|
|
1913
|
-
onMenuItemClick: m[2] || (m[2] = (U) => d("menu-item-click"))
|
|
1914
|
-
}, Pe({ _: 2 }, [
|
|
1915
|
-
S(r) ? {
|
|
1916
|
-
name: "iconLeft",
|
|
1917
|
-
fn: Z(() => [
|
|
1918
|
-
(r == null ? void 0 : r.variant) === "more" ? (f(), H(o(_l), {
|
|
1919
|
-
key: 0,
|
|
1920
|
-
"svg-title": v.value(r, !0)
|
|
1921
|
-
}, null, 8, ["svg-title"])) : (f(), H(Ge(r.iconLeft), {
|
|
1922
|
-
key: 1,
|
|
1923
|
-
"svg-title": v.value(r, !0)
|
|
1924
|
-
}, null, 8, ["svg-title"]))
|
|
1925
|
-
]),
|
|
1926
|
-
key: "0"
|
|
1927
|
-
} : void 0,
|
|
1928
|
-
r != null && r.isShort ? void 0 : {
|
|
1929
|
-
name: "default",
|
|
1930
|
-
fn: Z(() => [
|
|
1931
|
-
me(J(v.value(r)), 1)
|
|
1932
|
-
]),
|
|
1933
|
-
key: "1"
|
|
1934
|
-
},
|
|
1935
|
-
L(r) ? {
|
|
1936
|
-
name: "iconRight",
|
|
1937
|
-
fn: Z(() => [
|
|
1938
|
-
(r == null ? void 0 : r.variant) === "open" ? (f(), H(o(Tt), {
|
|
1939
|
-
key: 0,
|
|
1940
|
-
"svg-title": v.value(r, !0)
|
|
1941
|
-
}, null, 8, ["svg-title"])) : (f(), H(Ge(r.iconRight), {
|
|
1942
|
-
key: 1,
|
|
1943
|
-
"svg-title": r.title
|
|
1944
|
-
}, null, 8, ["svg-title"]))
|
|
1945
|
-
]),
|
|
1946
|
-
key: "2"
|
|
1947
|
-
} : void 0
|
|
1948
|
-
]), 1032, ["data", "button", "disable-arrow-down-opening-menu", "teleport"])) : r.variant === "copy" ? (f(), H(o(pl), {
|
|
1949
|
-
key: 1,
|
|
1950
|
-
text: w(r),
|
|
1951
|
-
"button-text": v.value(r),
|
|
1952
|
-
button: {
|
|
1953
|
-
condensed: !0,
|
|
1954
|
-
variant: "secondary"
|
|
1955
|
-
}
|
|
1956
|
-
}, null, 8, ["text", "button-text"])) : (f(), H(o(en), te({
|
|
1957
|
-
key: 2,
|
|
1958
|
-
condensed: "",
|
|
1959
|
-
variant: "secondary",
|
|
1960
|
-
critical: r.critical,
|
|
1961
|
-
disabled: r.disabled,
|
|
1962
|
-
link: r.link
|
|
1963
|
-
}, Xe(P(r))), Pe({ _: 2 }, [
|
|
1964
|
-
r.iconLeft || r.variant === "edit" ? {
|
|
1965
|
-
name: "iconLeft",
|
|
1966
|
-
fn: Z(() => [
|
|
1967
|
-
(r == null ? void 0 : r.variant) === "edit" ? (f(), H(o(vs), {
|
|
1968
|
-
key: 0,
|
|
1969
|
-
"svg-title": v.value(r, !0)
|
|
1970
|
-
}, null, 8, ["svg-title"])) : (f(), H(Ge(r.iconLeft), {
|
|
1971
|
-
key: 1,
|
|
1972
|
-
"svg-title": r.title
|
|
1973
|
-
}, null, 8, ["svg-title"]))
|
|
1974
|
-
]),
|
|
1975
|
-
key: "0"
|
|
1976
|
-
} : void 0,
|
|
1977
|
-
r != null && r.isShort ? void 0 : {
|
|
1978
|
-
name: "default",
|
|
1979
|
-
fn: Z(() => [
|
|
1980
|
-
me(J(v.value(r)), 1)
|
|
1981
|
-
]),
|
|
1982
|
-
key: "1"
|
|
1983
|
-
},
|
|
1984
|
-
r.iconRight || r.variant === "open" ? {
|
|
1985
|
-
name: "iconRight",
|
|
1986
|
-
fn: Z(() => [
|
|
1987
|
-
(r == null ? void 0 : r.variant) === "open" ? (f(), H(o(Tt), {
|
|
1988
|
-
key: 0,
|
|
1989
|
-
"svg-title": v.value(r, !0)
|
|
1990
|
-
}, null, 8, ["svg-title"])) : (f(), H(Ge(r.iconRight), {
|
|
1991
|
-
key: 1,
|
|
1992
|
-
"svg-title": r.title
|
|
1993
|
-
}, null, 8, ["svg-title"]))
|
|
1994
|
-
]),
|
|
1995
|
-
key: "2"
|
|
1996
|
-
} : void 0
|
|
1997
|
-
]), 1040, ["critical", "disabled", "link"]))
|
|
1998
|
-
]))), 128))
|
|
1999
|
-
], 2)
|
|
2000
|
-
])
|
|
2001
|
-
]),
|
|
2002
|
-
_: 1
|
|
2003
|
-
}));
|
|
2004
|
-
}
|
|
2005
|
-
}), rn = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-8951677e"]]), dn = Symbol("data-grid slashed zero key");
|
|
2006
|
-
var re = /* @__PURE__ */ ((e) => (e.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", e.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", e.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e.SLASHED_ZERO = "slashed-zero", e))(re || {});
|
|
2007
|
-
const un = {
|
|
2008
|
-
"en-US": {
|
|
2009
|
-
collapseNestedContent: "Collapse nested content",
|
|
2010
|
-
expandNestedContent: "Expand nested content",
|
|
2011
|
-
selectRow: "Select row"
|
|
2012
|
-
}
|
|
2013
|
-
}, ws = ["aria-hidden", "data-testid", "data-cellindex", "tabindex", "aria-colindex"], _s = ["title"], ys = {
|
|
2014
|
-
key: 0,
|
|
2015
|
-
class: "b-data-grid-cell__cell-actions"
|
|
2016
|
-
}, bs = {
|
|
2017
|
-
i18n: { messages: un },
|
|
2018
|
-
name: "data-grid-cell"
|
|
2019
|
-
}, Ss = /* @__PURE__ */ Oe({
|
|
2020
|
-
...bs,
|
|
2021
|
-
props: {
|
|
2022
|
-
draggingEventsForRowCell: {
|
|
2023
|
-
type: Function,
|
|
2024
|
-
required: !0
|
|
2025
|
-
},
|
|
2026
|
-
/**
|
|
2027
|
-
* The columns sets including
|
|
2028
|
-
*/
|
|
2029
|
-
columnSets: {
|
|
2030
|
-
type: Array,
|
|
2031
|
-
required: !0
|
|
2032
|
-
},
|
|
2033
|
-
/**
|
|
2034
|
-
* The columns set we are iterating over
|
|
2035
|
-
*/
|
|
2036
|
-
column: {
|
|
2037
|
-
type: Object,
|
|
2038
|
-
required: !0
|
|
2039
|
-
},
|
|
2040
|
-
colIndex: {
|
|
2041
|
-
type: Number,
|
|
2042
|
-
required: !0
|
|
2043
|
-
},
|
|
2044
|
-
columnSetIndex: {
|
|
2045
|
-
type: Number,
|
|
2046
|
-
required: !0
|
|
2047
|
-
},
|
|
2048
|
-
/**
|
|
2049
|
-
* Sets the row cells to the condensed padding state.
|
|
2050
|
-
*/
|
|
2051
|
-
condensed: {
|
|
2052
|
-
type: Boolean,
|
|
2053
|
-
default: !1
|
|
2054
|
-
},
|
|
2055
|
-
/**
|
|
2056
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2057
|
-
*/
|
|
2058
|
-
draggingColumns: {
|
|
2059
|
-
type: Object,
|
|
2060
|
-
default: void 0
|
|
2061
|
-
},
|
|
2062
|
-
/**
|
|
2063
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2064
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2065
|
-
*/
|
|
2066
|
-
getDataItemId: {
|
|
2067
|
-
type: Function,
|
|
2068
|
-
default: (e) => e.id
|
|
2069
|
-
},
|
|
2070
|
-
/**
|
|
2071
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2072
|
-
*/
|
|
2073
|
-
hoveredOverColumnState: {
|
|
2074
|
-
type: Object,
|
|
2075
|
-
required: !0
|
|
2076
|
-
},
|
|
2077
|
-
/**
|
|
2078
|
-
* A customisable method to determine if a row is not selectable.
|
|
2079
|
-
* The default is that every row is selectable.
|
|
2080
|
-
*/
|
|
2081
|
-
isDataItemDisabled: {
|
|
2082
|
-
type: Function,
|
|
2083
|
-
default: () => !1
|
|
2084
|
-
},
|
|
2085
|
-
isMeasuringColumnWidths: {
|
|
2086
|
-
type: Boolean,
|
|
2087
|
-
default: !1
|
|
2088
|
-
},
|
|
2089
|
-
/**
|
|
2090
|
-
* Determines if the nested content is visible.
|
|
2091
|
-
*/
|
|
2092
|
-
isNestedContentExpanded: {
|
|
2093
|
-
type: Boolean,
|
|
2094
|
-
default: !1
|
|
2095
|
-
},
|
|
2096
|
-
/**
|
|
2097
|
-
* Determines if the nest content slot is enabled for this data row.
|
|
2098
|
-
*/
|
|
2099
|
-
nestedContent: {
|
|
2100
|
-
type: Boolean,
|
|
2101
|
-
default: !1
|
|
2102
|
-
},
|
|
2103
|
-
/**
|
|
2104
|
-
* The IDs of the rows this cell controls to show / hide them.
|
|
2105
|
-
*/
|
|
2106
|
-
nestedRowsElementIds: {
|
|
2107
|
-
type: Array,
|
|
2108
|
-
default: () => []
|
|
2109
|
-
},
|
|
2110
|
-
/**
|
|
2111
|
-
* The row data object
|
|
2112
|
-
*/
|
|
2113
|
-
rowData: {
|
|
2114
|
-
type: Object,
|
|
2115
|
-
required: !0
|
|
2116
|
-
},
|
|
2117
|
-
rowIndex: {
|
|
2118
|
-
type: Number,
|
|
2119
|
-
required: !0
|
|
2120
|
-
},
|
|
2121
|
-
/**
|
|
2122
|
-
* The row selection checkbox indeterminate state.
|
|
2123
|
-
*/
|
|
2124
|
-
selectionIsIndeterminate: {
|
|
2125
|
-
type: Boolean,
|
|
2126
|
-
default: !1
|
|
2127
|
-
},
|
|
2128
|
-
/**
|
|
2129
|
-
* Determines if the row selection is enabled.
|
|
2130
|
-
*/
|
|
2131
|
-
selectable: {
|
|
2132
|
-
type: Boolean,
|
|
2133
|
-
default: !1
|
|
2134
|
-
},
|
|
2135
|
-
selectedItems: {
|
|
2136
|
-
type: Array,
|
|
2137
|
-
required: !0
|
|
2138
|
-
}
|
|
2139
|
-
},
|
|
2140
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
2141
|
-
setup(e, { expose: i, emit: c }) {
|
|
2142
|
-
const n = ct(), d = gt(n), { t } = Ue({ messages: un }), l = e, _ = c, h = A(null), C = A(null), N = A(!1), v = A([]), P = b(() => {
|
|
2143
|
-
var y;
|
|
2144
|
-
return !!((y = l.rowData) != null && y[l.column.field]);
|
|
2145
|
-
}), E = b(
|
|
2146
|
-
() => {
|
|
2147
|
-
var y;
|
|
2148
|
-
return l.column.field === we && ((y = l.nestedRowsElementIds) == null ? void 0 : y.length) > 0 ? l.nestedRowsElementIds.join(" ") : void 0;
|
|
2149
|
-
}
|
|
2150
|
-
), a = b(
|
|
2151
|
-
() => l.column.field === we && !l.selectable && !l.nestedContent
|
|
2152
|
-
), w = (y, V) => (y == null ? void 0 : y.overflow) === it.ELLIPSIS ? `${V}` : void 0, L = (y) => y ?? "-", S = (y) => l.columnSets.slice(0, y).reduce((V, { columnSet: W }) => V + W.length, 0), s = (y, V) => y + S(V), m = (y, V, W) => S() * y + s(V, W), r = (y) => {
|
|
2153
|
-
var V;
|
|
2154
|
-
(y === null || !h.value.contains(y) && !((V = v.value) != null && V.map((W) => W.value).some((W) => W === y || (W == null ? void 0 : W.contains(y))))) && (N.value = !1);
|
|
2155
|
-
}, z = () => {
|
|
2156
|
-
N.value = !1;
|
|
2157
|
-
}, U = A(!1), g = (y) => {
|
|
2158
|
-
const V = {
|
|
2159
|
-
...l.draggingEventsForRowCell(y),
|
|
2160
|
-
// Focus on the first interactive child in the grid cell if one exists
|
|
2161
|
-
focus: () => {
|
|
2162
|
-
ht(h.value) && (U.value = !0);
|
|
2163
|
-
},
|
|
2164
|
-
focusout: () => {
|
|
2165
|
-
U.value = !1;
|
|
2166
|
-
}
|
|
2167
|
-
}, W = { ...V };
|
|
2168
|
-
return y.frozen && (W.keyup = ($) => _("on-frozen-columns-key-press", $), W.keydown = ($) => _("on-frozen-columns-key-press", $)), y.cellActions && (W.mouseenter = () => {
|
|
2169
|
-
N.value = !0;
|
|
2170
|
-
}, W.mouseleave = ($) => {
|
|
2171
|
-
N.value = !1, r($ == null ? void 0 : $.relatedTarget);
|
|
2172
|
-
}, W.mouseleave = ($) => {
|
|
2173
|
-
r($ == null ? void 0 : $.relatedTarget);
|
|
2174
|
-
}, W.focus = ($) => {
|
|
2175
|
-
V.focus($), N.value = !0;
|
|
2176
|
-
}, W.focusout = ($) => {
|
|
2177
|
-
V.focusout($), r($ == null ? void 0 : $.relatedTarget);
|
|
2178
|
-
}), W;
|
|
2179
|
-
}, F = () => {
|
|
2180
|
-
_("nested-content-toggled");
|
|
2181
|
-
};
|
|
2182
|
-
ye(
|
|
2183
|
-
() => N.value,
|
|
2184
|
-
() => {
|
|
2185
|
-
N.value === !0 ? _("cell-hovered", l.rowIndex) : _("cell-hovered", -1);
|
|
2186
|
-
}
|
|
2187
|
-
), Xt(yl, {
|
|
2188
|
-
registerMenuContainerElement: (y) => {
|
|
2189
|
-
v.value.push(y);
|
|
2190
|
-
},
|
|
2191
|
-
menuMouseLeave: (y) => {
|
|
2192
|
-
h.value.contains(y == null ? void 0 : y.relatedTarget) || (N.value = !1);
|
|
2193
|
-
}
|
|
2194
|
-
});
|
|
2195
|
-
const ue = lt(dn, A(!1)), ne = (y) => {
|
|
2196
|
-
var V, W, $, G, Ce, Ne, u;
|
|
2197
|
-
return {
|
|
2198
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED}`]: (y == null ? void 0 : y.field) === l.hoveredOverColumnState.hoveredOverColumnField,
|
|
2199
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (y == null ? void 0 : y.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderLeft,
|
|
2200
|
-
[`b-data-grid-cell--${re.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (y == null ? void 0 : y.field) === l.hoveredOverColumnState.hoveredOverColumnField && l.hoveredOverColumnState.noBorderRight,
|
|
2201
|
-
[`b-data-grid-cell--${re.PADDING_LEFT_UNSET}`]: ((V = y == null ? void 0 : y.padding) == null ? void 0 : V.left) === !1,
|
|
2202
|
-
[`b-data-grid-cell--${re.PADDING_RIGHT_UNSET}`]: ((W = y == null ? void 0 : y.padding) == null ? void 0 : W.right) === !1,
|
|
2203
|
-
[`b-data-grid-cell--${re.NUMERIC}`]: y == null ? void 0 : y.numeric,
|
|
2204
|
-
[`b-data-grid-cell--${re.CONDENSED}`]: l.condensed,
|
|
2205
|
-
[`b-data-grid-cell--${re.OVERFLOW_ELLIPSIS}`]: (y == null ? void 0 : y.overflow) === it.ELLIPSIS,
|
|
2206
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING}`]: (($ = l.draggingColumns.dragging) == null ? void 0 : $.field) === y.field,
|
|
2207
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((G = l.draggingColumns.target) == null ? void 0 : G.field) === y.field && ((Ce = l.draggingColumns) == null ? void 0 : Ce.dragToLeft),
|
|
2208
|
-
[`b-data-grid-cell--${re.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Ne = l.draggingColumns.target) == null ? void 0 : Ne.field) === y.field && !((u = l.draggingColumns) != null && u.dragToLeft),
|
|
2209
|
-
[`b-data-grid-cell--${re.FROZEN}`]: y == null ? void 0 : y.frozen,
|
|
2210
|
-
[`b-data-grid-cell--${re.NESTED_CONTENT_ENABLED}`]: l.nestedContent,
|
|
2211
|
-
[`b-data-grid-cell--${re.ACTION_COL_NESTED_CONTENT_ENABLED}`]: l.nestedContent && !l.selectable && y.field === we,
|
|
2212
|
-
[`b-data-grid-cell--${re.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: l.nestedContent && l.selectable && y.field === we,
|
|
2213
|
-
[`b-data-grid-cell--${re.ACTION_COL_SELECTION_ENABLED}`]: y.field === we && l.selectable,
|
|
2214
|
-
[`b-data-grid-cell--${re.SLASHED_ZERO}`]: ue.value
|
|
2215
|
-
};
|
|
2216
|
-
}, fe = b(() => ({
|
|
2217
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": U.value
|
|
2218
|
-
}));
|
|
2219
|
-
return i({
|
|
2220
|
-
gridcellRef: h
|
|
2221
|
-
}), (y, V) => {
|
|
2222
|
-
var W;
|
|
2223
|
-
return f(), R("div", te({
|
|
2224
|
-
key: `cell-${e.column.field}`,
|
|
2225
|
-
ref_key: "gridcellRef",
|
|
2226
|
-
ref: h,
|
|
2227
|
-
"aria-hidden": a.value,
|
|
2228
|
-
"data-testid": `cell-${e.column.field}`,
|
|
2229
|
-
"data-cellindex": m(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2230
|
-
class: ["b-data-grid-cell", ne(e.column)],
|
|
2231
|
-
role: "gridcell",
|
|
2232
|
-
tabindex: m(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1",
|
|
2233
|
-
"aria-colindex": s(e.colIndex, e.columnSetIndex) + 1,
|
|
2234
|
-
style: {
|
|
2235
|
-
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2236
|
-
}
|
|
2237
|
-
}, Xe(g(e.column), !0)), [
|
|
2238
|
-
e.column.field === o(we) ? (f(), R(he, { key: 0 }, [
|
|
2239
|
-
e.selectable ? (f(), H(o(nn), {
|
|
2240
|
-
key: 0,
|
|
2241
|
-
class: "b-data-grid-cell__select-cell",
|
|
2242
|
-
"aria-label": o(t)("selectRow"),
|
|
2243
|
-
disabled: e.isDataItemDisabled(e.rowData),
|
|
2244
|
-
indeterminate: e.selectionIsIndeterminate,
|
|
2245
|
-
"model-value": e.selectedItems,
|
|
2246
|
-
value: e.getDataItemId(e.rowData),
|
|
2247
|
-
tabindex: "0",
|
|
2248
|
-
"onUpdate:modelValue": V[0] || (V[0] = ($) => y.$emit("select-row", $))
|
|
2249
|
-
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value"])) : B("", !0),
|
|
2250
|
-
e.nestedContent ? (f(), H(o(mt), {
|
|
2251
|
-
key: 1,
|
|
2252
|
-
ref: "menuButtonRef",
|
|
2253
|
-
"aria-haspopup": "true",
|
|
2254
|
-
"aria-controls": E.value,
|
|
2255
|
-
condensed: "",
|
|
2256
|
-
variant: "tertiary",
|
|
2257
|
-
toggled: e.isNestedContentExpanded,
|
|
2258
|
-
onClick: F
|
|
2259
|
-
}, {
|
|
2260
|
-
iconLeft: Z(() => [
|
|
2261
|
-
e.isNestedContentExpanded ? (f(), H(o(Rl), {
|
|
2262
|
-
key: 0,
|
|
2263
|
-
class: "b-accordion-item__icon",
|
|
2264
|
-
"svg-title": o(t)("collapseNestedContent")
|
|
2265
|
-
}, null, 8, ["svg-title"])) : (f(), H(o(Al), {
|
|
2266
|
-
key: 1,
|
|
2267
|
-
class: "b-accordion-item__icon",
|
|
2268
|
-
"svg-title": o(t)("expandNestedContent")
|
|
2269
|
-
}, null, 8, ["svg-title"]))
|
|
2270
|
-
]),
|
|
2271
|
-
_: 1
|
|
2272
|
-
}, 8, ["aria-controls", "toggled"])) : B("", !0)
|
|
2273
|
-
], 64)) : (f(), R(he, { key: 1 }, [
|
|
2274
|
-
Y(o(Je), {
|
|
2275
|
-
el: "div",
|
|
2276
|
-
class: ce(["b-data-grid-cell__cell-content", fe.value]),
|
|
2277
|
-
"data-testid": "cell-content"
|
|
2278
|
-
}, {
|
|
2279
|
-
default: Z(() => [
|
|
2280
|
-
Re(y.$slots, `item-${e.column.field}`, {
|
|
2281
|
-
item: e.rowData,
|
|
2282
|
-
rowIndex: e.rowIndex
|
|
2283
|
-
}, () => [
|
|
2284
|
-
O("span", {
|
|
2285
|
-
title: w(e.column, e.rowData[e.column.field])
|
|
2286
|
-
}, J(L(e.rowData[e.column.field])), 9, _s)
|
|
2287
|
-
], !0)
|
|
2288
|
-
]),
|
|
2289
|
-
_: 3
|
|
2290
|
-
}, 8, ["class"]),
|
|
2291
|
-
((W = e.column.cellActions) == null ? void 0 : W.length) > 0 ? (f(), R("div", ys, [
|
|
2292
|
-
N.value && (P.value || o(d)(`item-${e.column.field}`)) ? (f(), H(rn, {
|
|
2293
|
-
key: 0,
|
|
2294
|
-
ref_key: "cellActionsRef",
|
|
2295
|
-
ref: C,
|
|
2296
|
-
"cell-actions": e.column.cellActions,
|
|
2297
|
-
"column-key": e.column.field,
|
|
2298
|
-
"row-data-item": e.rowData,
|
|
2299
|
-
"teleport-menu": "",
|
|
2300
|
-
onMenuItemClick: z
|
|
2301
|
-
}, null, 8, ["cell-actions", "column-key", "row-data-item"])) : B("", !0)
|
|
2302
|
-
])) : B("", !0)
|
|
2303
|
-
], 64))
|
|
2304
|
-
], 16, ws);
|
|
2305
|
-
};
|
|
2306
|
-
}
|
|
2307
|
-
}), Es = /* @__PURE__ */ de(Ss, [["__scopeId", "data-v-e33cea76"]]), Ls = { class: "b-data-grid-row-container" }, ps = ["id", "aria-selected"], Rs = ["data-testid"], As = ["aria-colindex", "data-cellindex"], Os = {
|
|
2308
|
-
key: 0,
|
|
2309
|
-
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2310
|
-
}, Ns = { key: 2 }, Ts = {
|
|
2311
|
-
name: "data-grid-row"
|
|
2312
|
-
}, Is = /* @__PURE__ */ Oe({
|
|
2313
|
-
...Ts,
|
|
2314
|
-
props: {
|
|
2315
|
-
/**
|
|
2316
|
-
* Row actions property that generates which button to show in row actions area
|
|
2317
|
-
*/
|
|
2318
|
-
rowActions: {
|
|
2319
|
-
type: [Function, Array],
|
|
2320
|
-
default: void 0
|
|
2321
|
-
},
|
|
2322
|
-
/**
|
|
2323
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2324
|
-
*/
|
|
2325
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2326
|
-
/**
|
|
2327
|
-
* The columns sets including
|
|
2328
|
-
*/
|
|
2329
|
-
columnSets: {
|
|
2330
|
-
type: Array,
|
|
2331
|
-
required: !0
|
|
2332
|
-
},
|
|
2333
|
-
/**
|
|
2334
|
-
* Sets the row cells to the condensed padding state.
|
|
2335
|
-
*/
|
|
2336
|
-
condensed: {
|
|
2337
|
-
type: Boolean,
|
|
2338
|
-
default: !1
|
|
2339
|
-
},
|
|
2340
|
-
/**
|
|
2341
|
-
* Columns being dragged, contains dragging column and a target column
|
|
2342
|
-
*/
|
|
2343
|
-
draggingColumns: {
|
|
2344
|
-
type: Object,
|
|
2345
|
-
default: void 0
|
|
2346
|
-
},
|
|
2347
|
-
/**
|
|
2348
|
-
* Dragging event handlers for each row cell
|
|
2349
|
-
*/
|
|
2350
|
-
draggingEventsForRowCell: {
|
|
2351
|
-
type: Function,
|
|
2352
|
-
required: !0
|
|
2353
|
-
},
|
|
2354
|
-
/**
|
|
2355
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2356
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2357
|
-
*/
|
|
2358
|
-
getDataItemId: {
|
|
2359
|
-
type: Function,
|
|
2360
|
-
default: (e) => e.id
|
|
2361
|
-
},
|
|
2362
|
-
/**
|
|
2363
|
-
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
2364
|
-
*/
|
|
2365
|
-
hasLeftOverflow: {
|
|
2366
|
-
type: Boolean,
|
|
2367
|
-
default: !1
|
|
2368
|
-
},
|
|
2369
|
-
/**
|
|
2370
|
-
* Enables the nested content slot functionality.
|
|
2371
|
-
*/
|
|
2372
|
-
hasNestedContent: {
|
|
2373
|
-
type: Boolean,
|
|
2374
|
-
default: !1
|
|
2375
|
-
},
|
|
2376
|
-
/**
|
|
2377
|
-
* Enables the nested content slot functionality.
|
|
2378
|
-
*/
|
|
2379
|
-
hasNestedRows: {
|
|
2380
|
-
type: Boolean,
|
|
2381
|
-
default: !1
|
|
2382
|
-
},
|
|
2383
|
-
/**
|
|
2384
|
-
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2385
|
-
*/
|
|
2386
|
-
hasRightOverflow: {
|
|
2387
|
-
type: Boolean,
|
|
2388
|
-
default: !1
|
|
2389
|
-
},
|
|
2390
|
-
/**
|
|
2391
|
-
* Highlighted row IDs.
|
|
2392
|
-
*/
|
|
2393
|
-
highlightedRows: {
|
|
2394
|
-
type: Array,
|
|
2395
|
-
default: () => []
|
|
2396
|
-
},
|
|
2397
|
-
/**
|
|
2398
|
-
* The row index of a currently hovered row.
|
|
2399
|
-
*/
|
|
2400
|
-
hoveredRowIndex: {
|
|
2401
|
-
type: Number,
|
|
2402
|
-
default: -1
|
|
2403
|
-
},
|
|
2404
|
-
/**
|
|
2405
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2406
|
-
*/
|
|
2407
|
-
hoveredOverColumnState: {
|
|
2408
|
-
type: Object,
|
|
2409
|
-
required: !0
|
|
2410
|
-
},
|
|
2411
|
-
/**
|
|
2412
|
-
* A customisable method to determine if a row is not selectable.
|
|
2413
|
-
* The default is that every row is selectable.
|
|
2414
|
-
*/
|
|
2415
|
-
isDataItemDisabled: {
|
|
2416
|
-
type: Function,
|
|
2417
|
-
default: () => !1
|
|
2418
|
-
},
|
|
2419
|
-
/**
|
|
2420
|
-
* If the row is the last child in it's parent container.
|
|
2421
|
-
*/
|
|
2422
|
-
isRowLastChild: {
|
|
2423
|
-
type: Boolean,
|
|
2424
|
-
default: !1
|
|
2425
|
-
},
|
|
2426
|
-
/**
|
|
2427
|
-
* If columns are being measured for the autoWidth functionality.
|
|
2428
|
-
*/
|
|
2429
|
-
isMeasuringColumnWidths: {
|
|
2430
|
-
type: Boolean,
|
|
2431
|
-
default: !1
|
|
2432
|
-
},
|
|
2433
|
-
/**
|
|
2434
|
-
* Determines if this row is nested inside another row.
|
|
2435
|
-
*/
|
|
2436
|
-
isNestedRow: {
|
|
2437
|
-
type: Boolean,
|
|
2438
|
-
default: !1
|
|
2439
|
-
},
|
|
2440
|
-
/**
|
|
2441
|
-
* The maximum width of the row actions in all rows
|
|
2442
|
-
*/
|
|
2443
|
-
rowActionsMaximumWidth: {
|
|
2444
|
-
type: Number,
|
|
2445
|
-
default: 0
|
|
2446
|
-
},
|
|
2447
|
-
/**
|
|
2448
|
-
* The row data object
|
|
2449
|
-
*/
|
|
2450
|
-
rowData: {
|
|
2451
|
-
type: Object,
|
|
2452
|
-
required: !0
|
|
2453
|
-
},
|
|
2454
|
-
/**
|
|
2455
|
-
* The row index.
|
|
2456
|
-
*/
|
|
2457
|
-
rowIndex: {
|
|
2458
|
-
type: Number,
|
|
2459
|
-
required: !0
|
|
2460
|
-
},
|
|
2461
|
-
/**
|
|
2462
|
-
* The row ID to be using for the ID attribute.
|
|
2463
|
-
*/
|
|
2464
|
-
rowId: {
|
|
2465
|
-
type: Number,
|
|
2466
|
-
default: void 0
|
|
2467
|
-
},
|
|
2468
|
-
/**
|
|
2469
|
-
* The number of rows that this row is within.
|
|
2470
|
-
*/
|
|
2471
|
-
rowSetSize: {
|
|
2472
|
-
type: Number,
|
|
2473
|
-
default: 0
|
|
2474
|
-
},
|
|
2475
|
-
/**
|
|
2476
|
-
* Determines whether to render frozen seperator on the row.
|
|
2477
|
-
*/
|
|
2478
|
-
showFrozenColumnsSeparator: {
|
|
2479
|
-
type: Boolean,
|
|
2480
|
-
default: !1
|
|
2481
|
-
},
|
|
2482
|
-
/**
|
|
2483
|
-
* Determines if the row selection is enabled.
|
|
2484
|
-
*/
|
|
2485
|
-
selectable: {
|
|
2486
|
-
type: Boolean,
|
|
2487
|
-
default: !1
|
|
2488
|
-
},
|
|
2489
|
-
/**
|
|
2490
|
-
* The array of IDs for the selected rows.
|
|
2491
|
-
*/
|
|
2492
|
-
selectedItems: {
|
|
2493
|
-
type: Array,
|
|
2494
|
-
required: !0
|
|
2495
|
-
},
|
|
2496
|
-
/**
|
|
2497
|
-
* Enables / Disables the nested-content slot
|
|
2498
|
-
*/
|
|
2499
|
-
shouldShowNestedContent: {
|
|
2500
|
-
type: Function,
|
|
2501
|
-
default: (e) => !0
|
|
2502
|
-
},
|
|
2503
|
-
/**
|
|
2504
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2505
|
-
*/
|
|
2506
|
-
shouldShowNestedRows: {
|
|
2507
|
-
type: Function,
|
|
2508
|
-
default: (e) => !0
|
|
2509
|
-
}
|
|
2510
|
-
},
|
|
2511
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2512
|
-
setup(e, { expose: i, emit: c }) {
|
|
2513
|
-
const n = ct(), d = gt(n), t = e, l = c, _ = A({}), h = A(!1), C = A(), N = A(), v = ot("nested-content-slot"), P = A(!1), E = b(() => t.shouldShowNestedRows(t.rowData)), a = b(
|
|
2514
|
-
() => {
|
|
2515
|
-
var p, D;
|
|
2516
|
-
return !t.isNestedRow && t.hasNestedRows && E.value && ((D = (p = t.rowData) == null ? void 0 : p.children) == null ? void 0 : D.length) > 0;
|
|
2517
|
-
}
|
|
2518
|
-
), w = b(
|
|
2519
|
-
() => {
|
|
2520
|
-
var p, D;
|
|
2521
|
-
return !t.isNestedRow && t.hasNestedRows && E.value && (((p = t.rowData) == null ? void 0 : p.children) === void 0 || ((D = t == null ? void 0 : t.rowData) == null ? void 0 : D.children.length) === 0);
|
|
2522
|
-
}
|
|
2523
|
-
), L = b(
|
|
2524
|
-
() => t.hasNestedContent && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && E.value && !t.isNestedRow
|
|
2525
|
-
), S = b(() => {
|
|
2526
|
-
if (t.hasNestedContent || t.hasNestedRows) {
|
|
2527
|
-
const p = h.value.toString();
|
|
2528
|
-
return {
|
|
2529
|
-
"aria-expanded": L.value ? p : void 0,
|
|
2530
|
-
"aria-level": t.isNestedRow ? "2" : "1",
|
|
2531
|
-
"aria-posinset": t.rowIndex + 1,
|
|
2532
|
-
"aria-setsize": t.rowSetSize
|
|
2533
|
-
};
|
|
2534
|
-
}
|
|
2535
|
-
return { "aria-rowindex": t.rowIndex + 1 };
|
|
2536
|
-
}), s = b(() => {
|
|
2537
|
-
if (w.value)
|
|
2538
|
-
return {
|
|
2539
|
-
"aria-busy": "true",
|
|
2540
|
-
"aria-live": "polite"
|
|
2541
|
-
};
|
|
2542
|
-
if (!(a.value || !t.hasNestedContent || !t.shouldShowNestedContent(t.rowData)))
|
|
2543
|
-
return {
|
|
2544
|
-
"aria-level": t.isNestedRow ? "3" : "2",
|
|
2545
|
-
"aria-posinset": "1",
|
|
2546
|
-
"aria-setsize": "1",
|
|
2547
|
-
id: v,
|
|
2548
|
-
role: "row",
|
|
2549
|
-
tabindex: "-1"
|
|
2550
|
-
};
|
|
2551
|
-
}), m = b(() => {
|
|
2552
|
-
var p, D;
|
|
2553
|
-
return a.value ? (D = (p = t.rowData) == null ? void 0 : p.children) == null ? void 0 : D.reduce((X, Q, ee) => (X[ee] = ot("nested-row"), X), {}) : [];
|
|
2554
|
-
}), r = b(() => {
|
|
2555
|
-
var p;
|
|
2556
|
-
if (h.value) {
|
|
2557
|
-
if (t.hasNestedContent && t.shouldShowNestedContent(t.rowData))
|
|
2558
|
-
return [v];
|
|
2559
|
-
if (a.value && ((p = Object.keys(m.value)) == null ? void 0 : p.length) > 0) {
|
|
2560
|
-
const D = Object.values(m.value);
|
|
2561
|
-
if ((D == null ? void 0 : D.length) > 0)
|
|
2562
|
-
return D;
|
|
2563
|
-
}
|
|
2564
|
-
return [];
|
|
2565
|
-
}
|
|
2566
|
-
}), z = b(() => {
|
|
2567
|
-
var D, X;
|
|
2568
|
-
const p = (X = (D = t.rowData) == null ? void 0 : D.children) == null ? void 0 : X.map((Q) => t.getDataItemId(Q));
|
|
2569
|
-
if ((p == null ? void 0 : p.length) > 0) {
|
|
2570
|
-
const Q = p.every((le) => {
|
|
2571
|
-
var K;
|
|
2572
|
-
return (K = t == null ? void 0 : t.selectedItems) == null ? void 0 : K.includes(le);
|
|
2573
|
-
}), ee = p.some((le) => {
|
|
2574
|
-
var K;
|
|
2575
|
-
return (K = t == null ? void 0 : t.selectedItems) == null ? void 0 : K.includes(le);
|
|
2576
|
-
});
|
|
2577
|
-
return !Q && ee;
|
|
2578
|
-
}
|
|
2579
|
-
return !1;
|
|
2580
|
-
}), U = (p, D) => {
|
|
2581
|
-
const X = p;
|
|
2582
|
-
p !== null && (X != null && X.gridcellRef) && (_.value[D] = X.gridcellRef);
|
|
2583
|
-
}, g = (p) => m.value[p], F = (p) => {
|
|
2584
|
-
if (!t.selectable)
|
|
2585
|
-
return null;
|
|
2586
|
-
const D = t.getDataItemId(p);
|
|
2587
|
-
return t.selectedItems.includes(D).toString();
|
|
2588
|
-
}, j = (p) => {
|
|
2589
|
-
var Q;
|
|
2590
|
-
let D = !1;
|
|
2591
|
-
const X = ["button", "input", "a"];
|
|
2592
|
-
for (let ee = 0; ee < X.length; ee++)
|
|
2593
|
-
if ((Q = p == null ? void 0 : p.target) != null && Q.closest(X[ee])) {
|
|
2594
|
-
D = !0;
|
|
2595
|
-
break;
|
|
2596
|
-
}
|
|
2597
|
-
!D && t.allowRowClicks && l("row-click", t.rowData, p);
|
|
2598
|
-
}, se = (p) => {
|
|
2599
|
-
l("select-row", p, t.rowData);
|
|
2600
|
-
}, ue = (p, D) => {
|
|
2601
|
-
l("select-nested-row", D, t.rowData, p);
|
|
2602
|
-
}, ne = () => {
|
|
2603
|
-
P.value = !0;
|
|
2604
|
-
}, fe = () => {
|
|
2605
|
-
P.value = !1;
|
|
2606
|
-
}, y = () => {
|
|
2607
|
-
ht(N.value);
|
|
2608
|
-
}, V = () => t.columnSets.reduce((p, { columnSet: D }) => p + D.length, 0), W = () => V() * t.rowIndex + V(), { updateContentHeight: $, contentHeight: G } = Ll(C, h), Ce = b(() => {
|
|
2609
|
-
var p;
|
|
2610
|
-
if (t.hasNestedContent || t.hasNestedRows)
|
|
2611
|
-
return {
|
|
2612
|
-
paddingLeft: `${a.value || w.value ? 0 : _.value[we].clientWidth + ln}px`,
|
|
2613
|
-
"max-height": (t.hasNestedContent || t.hasNestedRows) && G.value && !((p = G == null ? void 0 : G.value) != null && p.includes("null")) ? G.value : 0
|
|
2614
|
-
};
|
|
2615
|
-
});
|
|
2616
|
-
ye(
|
|
2617
|
-
() => C.value,
|
|
2618
|
-
() => {
|
|
2619
|
-
let p = null;
|
|
2620
|
-
!p && C.value && (p = vt(C.value, () => {
|
|
2621
|
-
C.value && $();
|
|
2622
|
-
}));
|
|
2623
|
-
}
|
|
2624
|
-
);
|
|
2625
|
-
const Ne = () => {
|
|
2626
|
-
h.value = !h.value, $(), l("nested-content-toggled", t.rowData);
|
|
2627
|
-
};
|
|
2628
|
-
ye(
|
|
2629
|
-
() => {
|
|
2630
|
-
var p;
|
|
2631
|
-
return (p = t.rowData) == null ? void 0 : p.children;
|
|
2632
|
-
},
|
|
2633
|
-
(p, D) => {
|
|
2634
|
-
var X, Q;
|
|
2635
|
-
((Q = (X = t == null ? void 0 : t.rowData) == null ? void 0 : X.children) == null ? void 0 : Q.length) > 0 && D === void 0 && !h.value && $();
|
|
2636
|
-
}
|
|
2637
|
-
);
|
|
2638
|
-
const u = (p, D) => ({
|
|
2639
|
-
"b-data-grid-row-container__row--disabled": t.isDataItemDisabled(p),
|
|
2640
|
-
"b-data-grid-row-container__row--row-clicks-enabled": t.allowRowClicks,
|
|
2641
|
-
"b-data-grid-row-container__row--highlighted": t.highlightedRows.includes(t.getDataItemId(p)) || t.selectedItems.includes(t.getDataItemId(p)),
|
|
2642
|
-
"b-data-grid-row-container__row--hovered": t.hoveredRowIndex === D,
|
|
2643
|
-
"b-data-grid-row-container__row--is-last-child": t.isRowLastChild && !h.value,
|
|
2644
|
-
"b-data-grid-row-container__row--nested-row": t.isNestedRow
|
|
2645
|
-
}), x = (p) => ({
|
|
2646
|
-
"b-data-grid-row-container__row-cell-set--frozen": p,
|
|
2647
|
-
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: p && t.hasLeftOverflow,
|
|
2648
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": p && t.showFrozenColumnsSeparator,
|
|
2649
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !p,
|
|
2650
|
-
"b-data-grid-row-container__row-cell-set--is-measuring": t.isMeasuringColumnWidths
|
|
2651
|
-
}), I = b(() => ({
|
|
2652
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child": t.isRowLastChild,
|
|
2653
|
-
"b-data-grid-row-container__row-nested-slot": !a.value && t.shouldShowNestedContent(t.rowData)
|
|
2654
|
-
})), ge = b(() => ({
|
|
2655
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": P.value
|
|
2656
|
-
})), ae = b(() => ({
|
|
2657
|
-
minWidth: `${t.rowActionsMaximumWidth}px`
|
|
2658
|
-
}));
|
|
2659
|
-
return i({
|
|
2660
|
-
gridcellRefs: _,
|
|
2661
|
-
rowActionsRef: N
|
|
2662
|
-
}), (p, D) => {
|
|
2663
|
-
var X;
|
|
2664
|
-
return f(), R("div", Ls, [
|
|
2665
|
-
(f(), R("div", te(S.value, {
|
|
2666
|
-
id: (X = e.rowId) == null ? void 0 : X.toString(),
|
|
2667
|
-
key: e.rowIndex,
|
|
2668
|
-
class: ["b-data-grid-row-container__row", u(e.rowData, e.rowIndex)],
|
|
2669
|
-
role: "row",
|
|
2670
|
-
"aria-selected": F(e.rowData),
|
|
2671
|
-
onClick: j
|
|
2672
|
-
}), [
|
|
2673
|
-
(f(!0), R(he, null, Le(e.columnSets, ({ columnSet: Q, id: ee, isFrozenColumns: le }, K) => (f(), R(he, null, [
|
|
2674
|
-
Q != null && Q.length ? (f(), R("div", {
|
|
2675
|
-
key: `data-grid-rows-${ee}`,
|
|
2676
|
-
class: ce(["b-data-grid-row-container__cells", x(le)]),
|
|
2677
|
-
"data-testid": `data-grid-${ee}-rows`
|
|
2678
|
-
}, [
|
|
2679
|
-
(f(!0), R(he, null, Le(Q, (Te, et) => (f(), H(o(Es), {
|
|
2680
|
-
key: `cell-${Te.field}`,
|
|
2681
|
-
ref_for: !0,
|
|
2682
|
-
ref: (Ie) => U(Ie, Te.field),
|
|
2683
|
-
class: "b-data-grid-row-container__cell",
|
|
2684
|
-
column: Te,
|
|
2685
|
-
"column-set-index": K,
|
|
2686
|
-
"col-index": et,
|
|
2687
|
-
"column-sets": e.columnSets,
|
|
2688
|
-
condensed: e.condensed,
|
|
2689
|
-
"dragging-columns": e.draggingColumns,
|
|
2690
|
-
"dragging-events-for-row-cell": e.draggingEventsForRowCell,
|
|
2691
|
-
"get-data-item-id": e.getDataItemId,
|
|
2692
|
-
"hovered-over-column-state": e.hoveredOverColumnState,
|
|
2693
|
-
"is-data-item-disabled": e.isDataItemDisabled,
|
|
2694
|
-
"is-measuring-column-widths": e.isMeasuringColumnWidths,
|
|
2695
|
-
"is-nested-content-expanded": h.value,
|
|
2696
|
-
"nested-content": L.value,
|
|
2697
|
-
"nested-rows-element-ids": r.value,
|
|
2698
|
-
"row-data": e.rowData,
|
|
2699
|
-
"row-index": e.rowIndex,
|
|
2700
|
-
"selection-is-indeterminate": z.value,
|
|
2701
|
-
selectable: e.selectable,
|
|
2702
|
-
"selected-items": e.selectedItems,
|
|
2703
|
-
onCellHovered: D[0] || (D[0] = (Ie) => l("cell-hovered", Ie)),
|
|
2704
|
-
onOnFrozenColumnsKeyPress: D[1] || (D[1] = (Ie) => l("on-frozen-columns-key-press", Ie)),
|
|
2705
|
-
onSelectRow: se,
|
|
2706
|
-
onNestedContentToggled: Ne
|
|
2707
|
-
}, Pe({ _: 2 }, [
|
|
2708
|
-
Le(o(n), (Ie, Ve) => ({
|
|
2709
|
-
name: Ve,
|
|
2710
|
-
fn: Z((xe) => [
|
|
2711
|
-
Re(p.$slots, Ve, te({ ref_for: !0 }, xe), void 0, !0)
|
|
2712
|
-
])
|
|
2713
|
-
}))
|
|
2714
|
-
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
|
|
2715
|
-
], 10, Rs)) : B("", !0),
|
|
2716
|
-
!le && e.rowActions ? (f(), R("div", {
|
|
2717
|
-
key: `data-grid-row-actions-${ee}`,
|
|
2718
|
-
ref_for: !0,
|
|
2719
|
-
ref_key: "rowActionsRef",
|
|
2720
|
-
ref: N,
|
|
2721
|
-
"aria-colindex": V().toString(),
|
|
2722
|
-
class: ce(["b-data-grid-row-container__row-actions-container", ge.value]),
|
|
2723
|
-
style: ke(ae.value),
|
|
2724
|
-
"data-cellindex": W(),
|
|
2725
|
-
tabindex: "-1",
|
|
2726
|
-
role: "gridcell",
|
|
2727
|
-
onFocus: y
|
|
2728
|
-
}, [
|
|
2729
|
-
Y(o(rn), {
|
|
2730
|
-
class: "b-data-grid-row-container__row-actions",
|
|
2731
|
-
"disable-arrow-down-opening-menu": "",
|
|
2732
|
-
"cell-actions": e.rowActions,
|
|
2733
|
-
"has-right-overflow": e.hasRightOverflow,
|
|
2734
|
-
"row-data-item": e.rowData,
|
|
2735
|
-
onMenuOpen: ne,
|
|
2736
|
-
onMenuClose: fe
|
|
2737
|
-
}, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
|
|
2738
|
-
], 46, As)) : B("", !0)
|
|
2739
|
-
], 64))), 256))
|
|
2740
|
-
], 16, ps)),
|
|
2741
|
-
e.hasNestedContent && o(d)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && E.value ? (f(), H(Yt, {
|
|
2742
|
-
key: `${e.rowIndex}-nest-content`,
|
|
2743
|
-
name: "b-data-grid-row-container__animation--nested-content"
|
|
2744
|
-
}, {
|
|
2745
|
-
default: Z(() => [
|
|
2746
|
-
h.value ? (f(), R("div", te({ key: 0 }, s.value, {
|
|
2747
|
-
class: I.value,
|
|
2748
|
-
"data-testid": "nested-content-container",
|
|
2749
|
-
style: Ce.value
|
|
2750
|
-
}), [
|
|
2751
|
-
O("div", {
|
|
2752
|
-
ref_key: "nestedContentRef",
|
|
2753
|
-
ref: C
|
|
2754
|
-
}, [
|
|
2755
|
-
w.value ? (f(), R("div", Os, [
|
|
2756
|
-
Y(o(ft))
|
|
2757
|
-
])) : a.value ? (f(!0), R(he, { key: 1 }, Le(e.rowData.children, (Q, ee) => (f(), H(cn, te({ ref_for: !0 }, t, {
|
|
2758
|
-
id: g(ee),
|
|
2759
|
-
key: `child-${ee}`,
|
|
2760
|
-
"row-data": Q,
|
|
2761
|
-
"row-index": ee,
|
|
2762
|
-
"row-set-size": e.rowData.children.length,
|
|
2763
|
-
"is-nested-row": "",
|
|
2764
|
-
onCellHovered: D[2] || (D[2] = (le) => l("cell-hovered", le)),
|
|
2765
|
-
onRowClick: D[3] || (D[3] = (le) => l("row-click", ...le)),
|
|
2766
|
-
onOnFrozenColumnsKeyPress: D[4] || (D[4] = (le) => l("on-frozen-columns-key-press", le)),
|
|
2767
|
-
onSelectRow: (le) => ue(Q, le)
|
|
2768
|
-
}), Pe({ _: 2 }, [
|
|
2769
|
-
Le(o(n), (le, K) => ({
|
|
2770
|
-
name: K,
|
|
2771
|
-
fn: Z((Te) => [
|
|
2772
|
-
Re(p.$slots, K, te({ ref_for: !0 }, Te), void 0, !0)
|
|
2773
|
-
])
|
|
2774
|
-
}))
|
|
2775
|
-
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128)) : o(d)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (f(), R("div", Ns, [
|
|
2776
|
-
Re(p.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
2777
|
-
])) : B("", !0)
|
|
2778
|
-
], 512)
|
|
2779
|
-
], 16)) : B("", !0)
|
|
2780
|
-
]),
|
|
2781
|
-
_: 3
|
|
2782
|
-
})) : B("", !0)
|
|
2783
|
-
]);
|
|
2784
|
-
};
|
|
2785
|
-
}
|
|
2786
|
-
}), cn = /* @__PURE__ */ de(Is, [["__scopeId", "data-v-d2f50b05"]]);
|
|
2787
|
-
let jt = 0;
|
|
2788
|
-
const $s = {
|
|
2789
|
-
beforeCreate() {
|
|
2790
|
-
this.uuid = jt.toString(), jt += 1;
|
|
2791
|
-
}
|
|
2792
|
-
}, Ds = { key: 0 }, ks = ["clip-path"], Ms = ["id"];
|
|
2793
|
-
function Fs(e, i, c, n, d, t) {
|
|
2794
|
-
return f(), R("svg", te({ role: "img" }, e.$attrs, {
|
|
2795
|
-
class: "ui-assets-icons-16",
|
|
2796
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2797
|
-
width: "16",
|
|
2798
|
-
height: "16",
|
|
2799
|
-
fill: "none"
|
|
2800
|
-
}), [
|
|
2801
|
-
e.$attrs["svg-title"] ? (f(), R("title", Ds, J(e.$attrs["svg-title"]), 1)) : B("", !0),
|
|
2802
|
-
O("g", {
|
|
2803
|
-
"clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
2804
|
-
}, i[0] || (i[0] = [
|
|
2805
|
-
O("path", {
|
|
2806
|
-
fill: "#00112C",
|
|
2807
|
-
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"
|
|
2808
|
-
}, null, -1)
|
|
2809
|
-
]), 8, ks),
|
|
2810
|
-
O("defs", null, [
|
|
2811
|
-
O("clipPath", {
|
|
2812
|
-
id: "uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid
|
|
2813
|
-
}, i[1] || (i[1] = [
|
|
2814
|
-
O("rect", {
|
|
2815
|
-
width: "16",
|
|
2816
|
-
height: "16",
|
|
2817
|
-
fill: "#fff"
|
|
2818
|
-
}, null, -1)
|
|
2819
|
-
]), 8, Ms)
|
|
2820
|
-
])
|
|
2821
|
-
], 16);
|
|
2822
|
-
}
|
|
2823
|
-
const zs = /* @__PURE__ */ de($s, [["render", Fs]]), Us = ["aria-label"], Ps = {}, Bs = /* @__PURE__ */ Oe({
|
|
2824
|
-
...Ps,
|
|
2825
|
-
__name: "data-grid-static-icon",
|
|
2826
|
-
props: {
|
|
2827
|
-
colored: { type: Boolean, default: !1 },
|
|
2828
|
-
tooltipText: {},
|
|
2829
|
-
variant: { default: "no-value" }
|
|
2830
|
-
},
|
|
2831
|
-
setup(e) {
|
|
2832
|
-
const i = e, c = b(() => {
|
|
2833
|
-
switch (i.variant) {
|
|
2834
|
-
case "checkmark":
|
|
2835
|
-
return tl;
|
|
2836
|
-
case "warning":
|
|
2837
|
-
return nl;
|
|
2838
|
-
case "error":
|
|
2839
|
-
return zs;
|
|
2840
|
-
case "cross":
|
|
2841
|
-
return Jt;
|
|
2842
|
-
case "no-value":
|
|
2843
|
-
return At;
|
|
2844
|
-
default:
|
|
2845
|
-
return At;
|
|
2846
|
-
}
|
|
2847
|
-
}), n = b(() => ({
|
|
2848
|
-
"b-data-grid-static-icon--colored": i.colored && i.variant !== "no-value"
|
|
2849
|
-
})), d = b(() => `b-data-grid-static-icon__${i.variant}`), t = b(() => ol.AUTO);
|
|
2850
|
-
return (l, _) => ut((f(), R("div", {
|
|
2851
|
-
"aria-label": l.tooltipText,
|
|
2852
|
-
class: ce(["b-data-grid-static-icon", n.value]),
|
|
2853
|
-
tabindex: "0"
|
|
2854
|
-
}, [
|
|
2855
|
-
(f(), H(Ge(c.value), {
|
|
2856
|
-
class: ce(d.value),
|
|
2857
|
-
"svg-title": l.tooltipText
|
|
2858
|
-
}, null, 8, ["class", "svg-title"]))
|
|
2859
|
-
], 10, Us)), [
|
|
2860
|
-
[o(ll), l.tooltipText, t.value]
|
|
2861
|
-
]);
|
|
2862
|
-
}
|
|
2863
|
-
}), Wi = /* @__PURE__ */ de(Bs, [["__scopeId", "data-v-3ee55e9a"]]), qt = () => {
|
|
2864
|
-
const e = window.getSelection().getRangeAt(0).cloneContents(), i = e.querySelectorAll('[role="row"]');
|
|
2865
|
-
let c = "<table>";
|
|
2866
|
-
const n = (d) => {
|
|
2867
|
-
d.forEach((t) => {
|
|
2868
|
-
const l = t.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", _ = t.textContent.trim();
|
|
2869
|
-
_ && (c += `<${l}>${_}</${l}>`);
|
|
2870
|
-
});
|
|
2871
|
-
};
|
|
2872
|
-
if (!i.length) {
|
|
2873
|
-
const d = e.querySelectorAll(
|
|
2874
|
-
'[role="gridcell"] .b-typography, [role="columnheader"] .b-typography'
|
|
2875
|
-
);
|
|
2876
|
-
if (d.length)
|
|
2877
|
-
c += "<tr>", n(d), c += "</tr>";
|
|
2878
|
-
else {
|
|
2879
|
-
navigator.clipboard.writeText(e.textContent);
|
|
2880
|
-
return;
|
|
2881
|
-
}
|
|
2882
|
-
}
|
|
2883
|
-
i.forEach((d) => {
|
|
2884
|
-
const t = d.querySelectorAll('[role="gridcell"] .b-typography, [role="columnheader"] .b-typography');
|
|
2885
|
-
c += "<tr>", t.length ? n(t) : c += "<td>" + d.textContent.trim() + "</td>", c += "</tr>";
|
|
2886
|
-
}), c += "</table>", navigator.clipboard.write([
|
|
2887
|
-
new ClipboardItem({
|
|
2888
|
-
"text/html": new Blob([c], { type: "text/html" }),
|
|
2889
|
-
"text/plain": new Blob([c], { type: "text/plain" })
|
|
2890
|
-
})
|
|
2891
|
-
]);
|
|
2892
|
-
}, Ws = ["aria-rowcount", "aria-colcount", "aria-label", "role"], Gs = {
|
|
2893
|
-
key: 1,
|
|
2894
|
-
class: "b-data-grid__header"
|
|
2895
|
-
}, Hs = ["tabindex"], Vs = ["tabindex", "aria-busy"], xs = {
|
|
2896
|
-
key: 0,
|
|
2897
|
-
class: "b-data-grid__loading"
|
|
2898
|
-
}, Zs = {
|
|
2899
|
-
key: 1,
|
|
2900
|
-
class: "b-data-grid__empty-state"
|
|
2901
|
-
}, js = {
|
|
2902
|
-
key: 5,
|
|
2903
|
-
class: "b-data-grid__footer"
|
|
2904
|
-
}, qs = {
|
|
2905
|
-
i18n: { messages: Qe },
|
|
2906
|
-
name: "bento-data-grid"
|
|
2907
|
-
}, Ks = /* @__PURE__ */ Oe({
|
|
2908
|
-
...qs,
|
|
2909
|
-
props: {
|
|
2910
|
-
/**
|
|
2911
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2912
|
-
*/
|
|
2913
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
2914
|
-
/**
|
|
2915
|
-
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
2916
|
-
*/
|
|
2917
|
-
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
2918
|
-
/**
|
|
2919
|
-
* List of actions that will be rendered in the action bar when user selects items.
|
|
2920
|
-
*
|
|
2921
|
-
* Each object in the list should have a `title`, an `event` and,
|
|
2922
|
-
* optionally, an `icon`.
|
|
2923
|
-
*
|
|
2924
|
-
* The component will display 4 actions and the hide the rest inside a menu.
|
|
2925
|
-
*
|
|
2926
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
2927
|
-
*/
|
|
2928
|
-
bulkActions: {
|
|
2929
|
-
type: Array,
|
|
2930
|
-
default: null
|
|
2931
|
-
},
|
|
2932
|
-
/**
|
|
2933
|
-
* Sets the row cells to the condensed padding state.
|
|
2934
|
-
*/
|
|
2935
|
-
condensed: {
|
|
2936
|
-
type: Boolean,
|
|
2937
|
-
default: !1
|
|
2938
|
-
},
|
|
2939
|
-
/**
|
|
2940
|
-
* Column definitions using 'key' to relate to data object.
|
|
2941
|
-
*/
|
|
2942
|
-
columns: {
|
|
2943
|
-
type: Array,
|
|
2944
|
-
required: !0
|
|
2945
|
-
},
|
|
2946
|
-
/**
|
|
2947
|
-
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2948
|
-
*/
|
|
2949
|
-
columnPanel: { type: Boolean, default: !1 },
|
|
2950
|
-
/**
|
|
2951
|
-
* An array of data objects to display.
|
|
2952
|
-
*/
|
|
2953
|
-
data: {
|
|
2954
|
-
type: Array,
|
|
2955
|
-
required: !0
|
|
2956
|
-
},
|
|
2957
|
-
/**
|
|
2958
|
-
* Empty state props that will be passed down to inner empty-state component
|
|
2959
|
-
*/
|
|
2960
|
-
emptyState: {
|
|
2961
|
-
type: Object,
|
|
2962
|
-
default: void 0
|
|
2963
|
-
},
|
|
2964
|
-
/**
|
|
2965
|
-
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2966
|
-
* {@see BentoFilterBarModel}
|
|
2967
|
-
*/
|
|
2968
|
-
filters: {
|
|
2969
|
-
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2970
|
-
type: Array,
|
|
2971
|
-
default: void 0
|
|
2972
|
-
},
|
|
2973
|
-
/**
|
|
2974
|
-
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
2975
|
-
* container sizes:
|
|
2976
|
-
* - Large (>=700px): Always multi-line
|
|
2977
|
-
* - Medium (>=430px & <700px)
|
|
2978
|
-
* - Small (<430px)
|
|
2979
|
-
*
|
|
2980
|
-
* @default
|
|
2981
|
-
* {
|
|
2982
|
-
* medium: 'multi-line',
|
|
2983
|
-
* small: 'one-line'
|
|
2984
|
-
* }
|
|
2985
|
-
*/
|
|
2986
|
-
filtersContainerSizeLayout: {
|
|
2987
|
-
type: Object,
|
|
2988
|
-
default: void 0
|
|
2989
|
-
},
|
|
2990
|
-
/**
|
|
2991
|
-
* An array of the values for each filter set in `value`.
|
|
2992
|
-
* {@see BentoFilterValues}
|
|
2993
|
-
*/
|
|
2994
|
-
filterValues: {
|
|
2995
|
-
type: tt.props.filterValues.type,
|
|
2996
|
-
default: () => []
|
|
2997
|
-
},
|
|
2998
|
-
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
2999
|
-
// It was not done now because it's a breaking change for the types.
|
|
3000
|
-
/**
|
|
3001
|
-
* Filter's search bar properties with which the placeholder, hint and other
|
|
3002
|
-
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
3003
|
-
*/
|
|
3004
|
-
filterSearchConfig: {
|
|
3005
|
-
type: Object,
|
|
3006
|
-
default: void 0
|
|
3007
|
-
},
|
|
3008
|
-
/**
|
|
3009
|
-
* Filter bar search term useful to filter all the data by text
|
|
3010
|
-
*/
|
|
3011
|
-
filterSearchTerm: {
|
|
3012
|
-
type: tt.props.searchTerm.type,
|
|
3013
|
-
default: void 0
|
|
3014
|
-
},
|
|
3015
|
-
/**
|
|
3016
|
-
* Allows the grid to be rendered inside a confined space.
|
|
3017
|
-
*/
|
|
3018
|
-
fitContent: { type: Boolean, default: !1 },
|
|
3019
|
-
/**
|
|
3020
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
3021
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
3022
|
-
*/
|
|
3023
|
-
getDataItemId: {
|
|
3024
|
-
type: Function,
|
|
3025
|
-
default: (e) => e.id
|
|
3026
|
-
},
|
|
3027
|
-
/**
|
|
3028
|
-
* Row actions propery that generates which button to show in row actions area
|
|
3029
|
-
*/
|
|
3030
|
-
rowActions: {
|
|
3031
|
-
type: [Function, Array],
|
|
3032
|
-
default: void 0
|
|
3033
|
-
},
|
|
3034
|
-
/**
|
|
3035
|
-
* If resize is enabled
|
|
3036
|
-
*/
|
|
3037
|
-
hasResizableColumns: {
|
|
3038
|
-
type: Boolean,
|
|
3039
|
-
default: !0
|
|
3040
|
-
},
|
|
3041
|
-
/**
|
|
3042
|
-
* Enables the nested content slot functionality.
|
|
3043
|
-
*/
|
|
3044
|
-
hasNestedContent: {
|
|
3045
|
-
type: Boolean,
|
|
3046
|
-
default: !1
|
|
3047
|
-
},
|
|
3048
|
-
/**
|
|
3049
|
-
* Enables the nested content slot functionality.
|
|
3050
|
-
*/
|
|
3051
|
-
hasNestedRows: {
|
|
3052
|
-
type: Boolean,
|
|
3053
|
-
default: !1
|
|
3054
|
-
},
|
|
3055
|
-
/**
|
|
3056
|
-
* Highlighted items
|
|
3057
|
-
*/
|
|
3058
|
-
highlightedRows: {
|
|
3059
|
-
type: Array,
|
|
3060
|
-
default: () => []
|
|
3061
|
-
},
|
|
3062
|
-
/**
|
|
3063
|
-
* A customisable method to determine if a row is not selectable.
|
|
3064
|
-
* The default is that every row is selectable.
|
|
3065
|
-
*/
|
|
3066
|
-
isDataItemDisabled: {
|
|
3067
|
-
type: Function,
|
|
3068
|
-
default: () => !1
|
|
3069
|
-
},
|
|
3070
|
-
/**
|
|
3071
|
-
* The type of `Lazy Load`.
|
|
3072
|
-
* Type "automatic" will enable infinite scrolling
|
|
3073
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
3074
|
-
* @values automatic, button, none
|
|
3075
|
-
*/
|
|
3076
|
-
lazyLoadType: {
|
|
3077
|
-
type: String,
|
|
3078
|
-
default: "none",
|
|
3079
|
-
validator: (e) => ["automatic", "button", "none"].includes(e)
|
|
3080
|
-
},
|
|
3081
|
-
/**
|
|
3082
|
-
* If the loading indicator should be shown.
|
|
3083
|
-
*/
|
|
3084
|
-
loading: {
|
|
3085
|
-
type: Boolean,
|
|
3086
|
-
default: !1
|
|
3087
|
-
},
|
|
3088
|
-
/**
|
|
3089
|
-
* Enables / Disables the table's surrounding border.
|
|
3090
|
-
*/
|
|
3091
|
-
outline: {
|
|
3092
|
-
type: Boolean,
|
|
3093
|
-
default: !1
|
|
3094
|
-
},
|
|
3095
|
-
/**
|
|
3096
|
-
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
3097
|
-
*/
|
|
3098
|
-
noSpacingTop: {
|
|
3099
|
-
type: Boolean,
|
|
3100
|
-
default: !1
|
|
3101
|
-
},
|
|
3102
|
-
/**
|
|
3103
|
-
* Pagination props that will be passed down to inner pagination component
|
|
3104
|
-
*/
|
|
3105
|
-
pagination: {
|
|
3106
|
-
type: Object,
|
|
3107
|
-
default: void 0
|
|
3108
|
-
},
|
|
3109
|
-
/**
|
|
3110
|
-
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
3111
|
-
*/
|
|
3112
|
-
selectableAcrossPages: {
|
|
3113
|
-
type: Boolean,
|
|
3114
|
-
default: !1
|
|
3115
|
-
},
|
|
3116
|
-
/**
|
|
3117
|
-
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
3118
|
-
*/
|
|
3119
|
-
slashedZero: { type: Boolean, default: !1 },
|
|
3120
|
-
/**
|
|
3121
|
-
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
3122
|
-
*/
|
|
3123
|
-
stickyHorizontalScrollbar: {
|
|
3124
|
-
type: Boolean,
|
|
3125
|
-
default: !1
|
|
3126
|
-
},
|
|
3127
|
-
/**
|
|
3128
|
-
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
3129
|
-
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
3130
|
-
*/
|
|
3131
|
-
stickyPagination: {
|
|
3132
|
-
type: Boolean,
|
|
3133
|
-
default: !1
|
|
3134
|
-
},
|
|
3135
|
-
/**
|
|
3136
|
-
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
3137
|
-
* Defaults to true.
|
|
3138
|
-
*/
|
|
3139
|
-
stickyFilters: {
|
|
3140
|
-
type: Boolean,
|
|
3141
|
-
default: !0
|
|
3142
|
-
},
|
|
3143
|
-
/**
|
|
3144
|
-
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
3145
|
-
*/
|
|
3146
|
-
selectable: {
|
|
3147
|
-
type: Boolean,
|
|
3148
|
-
default: !1
|
|
3149
|
-
},
|
|
3150
|
-
/**
|
|
3151
|
-
* Selected items
|
|
3152
|
-
*/
|
|
3153
|
-
selection: {
|
|
3154
|
-
type: Array,
|
|
3155
|
-
default: () => []
|
|
3156
|
-
},
|
|
3157
|
-
/**
|
|
3158
|
-
* Enables / Disables the nested-content slot
|
|
3159
|
-
*/
|
|
3160
|
-
shouldShowNestedContent: {
|
|
3161
|
-
type: Function,
|
|
3162
|
-
default: (e) => !0
|
|
3163
|
-
},
|
|
3164
|
-
/**
|
|
3165
|
-
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
3166
|
-
*/
|
|
3167
|
-
shouldShowNestedRows: {
|
|
3168
|
-
type: Function,
|
|
3169
|
-
default: (e) => !0
|
|
3170
|
-
},
|
|
3171
|
-
/**
|
|
3172
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
3173
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
3174
|
-
*/
|
|
3175
|
-
sortBy: {
|
|
3176
|
-
type: Array,
|
|
3177
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
3178
|
-
default: () => []
|
|
3179
|
-
},
|
|
3180
|
-
/**
|
|
3181
|
-
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
3182
|
-
*/
|
|
3183
|
-
tabTitle: {
|
|
3184
|
-
type: String,
|
|
3185
|
-
default: null
|
|
3186
|
-
},
|
|
3187
|
-
/**
|
|
3188
|
-
* Truncates all data grid column headers
|
|
3189
|
-
*/
|
|
3190
|
-
truncateColumnHeaders: {
|
|
3191
|
-
type: Boolean,
|
|
3192
|
-
default: !1
|
|
3193
|
-
}
|
|
3194
|
-
},
|
|
3195
|
-
emits: [
|
|
3196
|
-
k.COLUMNS,
|
|
3197
|
-
k.COLUMN_RESIZE,
|
|
3198
|
-
k.ITEMS_PAGE,
|
|
3199
|
-
k.FILTER_SEARCH_INPUT,
|
|
3200
|
-
k.FILTER_SEARCH_CLEAR,
|
|
3201
|
-
k.NAVIGATE,
|
|
3202
|
-
k.NESTED_CONTENT_TOGGLED,
|
|
3203
|
-
k.UPDATE_COLUMNS,
|
|
3204
|
-
k.UPDATE_CONDENSED,
|
|
3205
|
-
k.UPDATE_FILTER_VALUES,
|
|
3206
|
-
k.UPDATE_FILTERS,
|
|
3207
|
-
k.UPDATE_FILTER_SEARCH_TERM,
|
|
3208
|
-
k.UPDATE_SHOW_MORE,
|
|
3209
|
-
k.UPDATE_PAGINATION,
|
|
3210
|
-
k.UPDATE_SELECTION,
|
|
3211
|
-
k.UPDATE_SORT_BY,
|
|
3212
|
-
k.ROW_CLICK,
|
|
3213
|
-
k.SELECT,
|
|
3214
|
-
k.SELECT_ALL_ACROSS_PAGES,
|
|
3215
|
-
k.SORT
|
|
3216
|
-
],
|
|
3217
|
-
setup(e, { expose: i, emit: c }) {
|
|
3218
|
-
const n = e, d = ct(), t = gt(d), l = A(null), _ = A(), h = A({}), C = A(null), N = A(null), v = A(), P = A(null), E = A(null), a = A(null), {
|
|
3219
|
-
allowColumnDragAndDrop: w,
|
|
3220
|
-
columns: L,
|
|
3221
|
-
columnPanel: S,
|
|
3222
|
-
data: s,
|
|
3223
|
-
lazyLoadType: m,
|
|
3224
|
-
loading: r,
|
|
3225
|
-
hasNestedContent: z,
|
|
3226
|
-
hasNestedRows: U,
|
|
3227
|
-
selectable: g,
|
|
3228
|
-
selection: F,
|
|
3229
|
-
selectableAcrossPages: j,
|
|
3230
|
-
stickyPagination: se,
|
|
3231
|
-
outline: ue,
|
|
3232
|
-
pagination: ne
|
|
3233
|
-
} = dt(n), fe = A(-1), { t: y } = Ue({ messages: Qe }), V = b(() => I.value.filter((T) => T.frozen).length), W = lt(
|
|
3234
|
-
cl,
|
|
3235
|
-
() => ({
|
|
3236
|
-
additionalContentSlotRef: A(null),
|
|
3237
|
-
isDataGridTemplate: !1,
|
|
3238
|
-
stickyAditionalContent: A(!1),
|
|
3239
|
-
stickyTabs: A(!1),
|
|
3240
|
-
tabsRef: A(null)
|
|
3241
|
-
})
|
|
3242
|
-
), { additionalContentSlotRef: $, isDataGridTemplate: G, stickyTabs: Ce, tabsRef: Ne, stickyAdditionalContent: u } = W(), x = b(() => n.fitContent || G ? 0 : null), {
|
|
3243
|
-
columnDefs: I,
|
|
3244
|
-
onColumnWidthOverride: ge,
|
|
3245
|
-
gridRowWidthStyle: ae,
|
|
3246
|
-
isMeasuringColumnWidths: p,
|
|
3247
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: D,
|
|
3248
|
-
columns: X,
|
|
3249
|
-
totalWidthOfAllColumns: Q,
|
|
3250
|
-
rowActionsMaxWidth: ee
|
|
3251
|
-
} = Pl(L, s, l, h, C, {
|
|
3252
|
-
hasColumnPanel: S,
|
|
3253
|
-
hasSelectableColumn: g,
|
|
3254
|
-
hasSelectableAcrossPages: j,
|
|
3255
|
-
hasNestedContent: z,
|
|
3256
|
-
hasNestedRows: U,
|
|
3257
|
-
allowColumnDragAndDrop: w,
|
|
3258
|
-
isDataGridTemplate: G
|
|
3259
|
-
}), le = c, K = (T, ...M) => {
|
|
3260
|
-
(T === k.COLUMNS || T === k.UPDATE_COLUMNS) && ([X.value] = M), le(T, ...M);
|
|
3261
|
-
}, Te = kt(
|
|
3262
|
-
Ne,
|
|
3263
|
-
Ce,
|
|
3264
|
-
u,
|
|
3265
|
-
$
|
|
3266
|
-
), et = b(
|
|
3267
|
-
() => n.stickyFilters ? `${Te.value}px` : null
|
|
3268
|
-
), Ie = kt(N, nt(n, "stickyFilters")), Ve = b(
|
|
3269
|
-
() => `${Ie.value + Te.value}px`
|
|
3270
|
-
), {
|
|
3271
|
-
sortedColumns: xe,
|
|
3272
|
-
columnSets: Ze,
|
|
3273
|
-
isOnlyOneVisibleColumn: fn,
|
|
3274
|
-
onConfigSettingsUpdate: gn,
|
|
3275
|
-
onConfigSettingsColumnsUpdate: vn,
|
|
3276
|
-
onConfigSettingsColumnUpdate: mn
|
|
3277
|
-
} = Zl(I, K), { hoveredOverColumn: hn, hoveredOverColumnState: Ct } = ql(
|
|
3278
|
-
Ze,
|
|
3279
|
-
g,
|
|
3280
|
-
ue,
|
|
3281
|
-
D
|
|
3282
|
-
), { draggingColumns: wt, draggingEventsForColumns: Cn, draggingEventsForRowCell: wn, onMoveColumnByOffset: _n } = xl(xe, w, K), { onAllRowSelect: _t, onRowSelect: yn, onNestedRowSelect: bn, selectedItems: yt, allItemsSelectedState: Sn } = Bl(
|
|
3283
|
-
F,
|
|
3284
|
-
K,
|
|
3285
|
-
s,
|
|
3286
|
-
n.getDataItemId,
|
|
3287
|
-
n.isDataItemDisabled
|
|
3288
|
-
), { navigationInput: je } = Gl(
|
|
3289
|
-
C,
|
|
3290
|
-
h,
|
|
3291
|
-
xe,
|
|
3292
|
-
g,
|
|
3293
|
-
b(() => n.rowActions !== void 0),
|
|
3294
|
-
S
|
|
3295
|
-
), { isLazyLoad: Be, isInfiniteScroll: En, verticalScrollPosition: Ln, emitLazyLoadEvent: pn } = Vl(
|
|
3296
|
-
m,
|
|
3297
|
-
E,
|
|
3298
|
-
l,
|
|
3299
|
-
r,
|
|
3300
|
-
K
|
|
3301
|
-
), {
|
|
3302
|
-
updateScrollPosition: qe,
|
|
3303
|
-
updateScrollPositionOnFrozenColumnsNavigation: Rn,
|
|
3304
|
-
syncVirtualScrollerWithBody: bt,
|
|
3305
|
-
hasLeftOverflow: Ke,
|
|
3306
|
-
hasRightOverflow: St,
|
|
3307
|
-
horizontalScrollbarConditionalStyles: An
|
|
3308
|
-
} = jl(
|
|
3309
|
-
l,
|
|
3310
|
-
_,
|
|
3311
|
-
Ln,
|
|
3312
|
-
a,
|
|
3313
|
-
P,
|
|
3314
|
-
Q,
|
|
3315
|
-
{
|
|
3316
|
-
isLazyLoad: Be,
|
|
3317
|
-
pagination: ne,
|
|
3318
|
-
stickyPagination: se,
|
|
3319
|
-
isDataGridTemplate: G
|
|
3320
|
-
}
|
|
3321
|
-
), On = () => {
|
|
3322
|
-
v.value.isClearAllVisible ? v.value.clearAllFilters() : v.value.isResetAllVisible && v.value.resetAllFilters();
|
|
3323
|
-
}, Nn = b(() => {
|
|
3324
|
-
var T, M;
|
|
3325
|
-
return {
|
|
3326
|
-
...n.emptyState,
|
|
3327
|
-
variant: ((T = n.emptyState) == null ? void 0 : T.variant) === "embedded" || ((M = n.emptyState) == null ? void 0 : M.variant) === "basic" ? n.emptyState.variant : "basic"
|
|
3328
|
-
};
|
|
3329
|
-
}), Tn = b(() => ({
|
|
3330
|
-
[`b-data-grid--${Me.OUTLINE}`]: n.outline,
|
|
3331
|
-
[`b-data-grid--${Me.SCROLL}`]: n.fitContent || Be.value,
|
|
3332
|
-
[`b-data-grid--${Me.STICKY_FILTERS}`]: n.filters && n.stickyFilters,
|
|
3333
|
-
[`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: Ke.value && !V.value,
|
|
3334
|
-
[`b-data-grid--${Me.OVERFLOW_SHADOW_RIGHT}`]: St.value && n.rowActions === void 0,
|
|
3335
|
-
[`b-data-grid--${Me.NO_SPACING_TOP}`]: n.noSpacingTop
|
|
3336
|
-
})), In = b(() => ({
|
|
3337
|
-
"b-data-grid__body--sticky-horizontal-scrollbar": n.stickyHorizontalScrollbar
|
|
3338
|
-
})), $n = b(() => Ze.value.findIndex((T) => T.columnSet.length)), Et = b(() => !((n.selectable || n.hasNestedContent || n.hasNestedRows) && V.value === 1) || Ke.value), Dn = b(() => ({
|
|
3339
|
-
"b-data-grid__filters--sticky": !!n.stickyFilters || G
|
|
3340
|
-
})), kn = b(() => {
|
|
3341
|
-
var T, M, ie, q, be, pe;
|
|
3342
|
-
return {
|
|
3343
|
-
"b-data-grid__pagination--padding-left-unset": ((ie = (M = (T = n.columns) == null ? void 0 : T[0]) == null ? void 0 : M.padding) == null ? void 0 : ie.left) === !1,
|
|
3344
|
-
"b-data-grid__pagination--padding-right-unset": ((pe = (be = (q = n.columns) == null ? void 0 : q[n.columns.length - 1]) == null ? void 0 : be.padding) == null ? void 0 : pe.right) === !1,
|
|
3345
|
-
"b-data-grid__pagination--sticky": !!n.stickyPagination || G
|
|
3346
|
-
};
|
|
3347
|
-
}), Mn = (T) => {
|
|
3348
|
-
const M = T;
|
|
3349
|
-
T !== null && (M != null && M.columnHeaderRefs) && Object.entries(M == null ? void 0 : M.columnHeaderRefs).forEach(([ie, q]) => {
|
|
3350
|
-
h.value[ie] = q;
|
|
3351
|
-
});
|
|
3352
|
-
}, Fn = (T, M) => {
|
|
3353
|
-
var q, be, pe, ze;
|
|
3354
|
-
const ie = T;
|
|
3355
|
-
if (T !== null && ie != null && ie.gridcellRefs) {
|
|
3356
|
-
const Se = n.rowActions !== void 0 && (ie == null ? void 0 : ie.rowActionsRef);
|
|
3357
|
-
Object.entries(ie == null ? void 0 : ie.gridcellRefs).map(([Ae, We]) => {
|
|
3358
|
-
var Rt;
|
|
3359
|
-
((Rt = C.value) == null ? void 0 : Rt[Ae]) === void 0 && (C.value = { ...C.value, [Ae]: [] }), C.value[Ae][M] = We;
|
|
3360
|
-
}), Se && (((q = C.value) == null ? void 0 : q[He]) === void 0 && (C.value = { ...C.value, [He]: [] }), C.value[He][M] = (be = ie.rowActionsRef) == null ? void 0 : be[0], ee.value = Math.max(
|
|
3361
|
-
ee.value,
|
|
3362
|
-
((ze = (pe = ie.rowActionsRef) == null ? void 0 : pe[0]) == null ? void 0 : ze.offsetWidth) ?? 0
|
|
3363
|
-
));
|
|
3364
|
-
}
|
|
3365
|
-
}, zn = (T, M) => {
|
|
3366
|
-
n.allowRowClicks && K(k.ROW_CLICK, T, M);
|
|
3367
|
-
}, Un = (T) => {
|
|
3368
|
-
fe.value = T;
|
|
3369
|
-
}, Pn = b(() => !!n.selectableAcrossPages && !!n.pagination), Bn = b(() => n.hasNestedContent || n.hasNestedRows ? "treegrid" : "grid"), Lt = al({
|
|
3370
|
-
label: d != null && d.header ? rl(d)("header") : null,
|
|
3371
|
-
defaultFallback: "data grid"
|
|
3372
|
-
}), pt = b(() => {
|
|
3373
|
-
var T;
|
|
3374
|
-
return ((T = yt.value) == null ? void 0 : T.length) ?? 0;
|
|
3375
|
-
}), Wn = b(() => n.bulkActions && pt.value > 0), Gn = (T) => K(k.COLUMN_RESIZE, T), Hn = (T) => {
|
|
3376
|
-
K(k.UPDATE_SORT_BY, T), K(k.SORT, T);
|
|
3377
|
-
}, Vn = (T, M) => {
|
|
3378
|
-
K(k.NAVIGATE, T), K(k.UPDATE_PAGINATION, {
|
|
3379
|
-
...n.pagination,
|
|
3380
|
-
size: M,
|
|
3381
|
-
page: T
|
|
3382
|
-
});
|
|
3383
|
-
}, xn = (T) => {
|
|
3384
|
-
K(k.ITEMS_PAGE, T);
|
|
3385
|
-
}, Zn = () => {
|
|
3386
|
-
K(k.FILTER_SEARCH_CLEAR);
|
|
3387
|
-
}, jn = (T) => {
|
|
3388
|
-
K(k.UPDATE_FILTER_SEARCH_TERM, T), K(k.FILTER_SEARCH_INPUT, T);
|
|
3389
|
-
};
|
|
3390
|
-
return b(() => L.value.some((T) => T.mandatory)).value || Qt(
|
|
3391
|
-
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3392
|
-
), lt(ul, () => null)(n.tabTitle), Xt(dn, nt(n, "slashedZero")), i({ onEmptyStateClearResetButtonClick: On }), (T, M) => {
|
|
3393
|
-
var ie;
|
|
3394
|
-
return f(), R("div", {
|
|
3395
|
-
class: ce(["b-data-grid", Tn.value]),
|
|
3396
|
-
"aria-rowcount": o(s).length,
|
|
3397
|
-
"aria-colcount": o(L).length,
|
|
3398
|
-
"aria-label": o(Lt),
|
|
3399
|
-
role: Bn.value,
|
|
3400
|
-
onCopy: M[11] || (M[11] = //@ts-ignore
|
|
3401
|
-
(...q) => o(qt) && o(qt)(...q))
|
|
3402
|
-
}, [
|
|
3403
|
-
e.filters ? (f(), R("div", {
|
|
3404
|
-
key: 0,
|
|
3405
|
-
ref_key: "filtersRef",
|
|
3406
|
-
ref: N,
|
|
3407
|
-
class: ce(["b-data-grid__filters", Dn.value]),
|
|
3408
|
-
style: ke({ top: et.value })
|
|
3409
|
-
}, [
|
|
3410
|
-
e.filters ? (f(), H(o(tt), {
|
|
3411
|
-
key: 0,
|
|
3412
|
-
ref_key: "filterBarRef",
|
|
3413
|
-
ref: v,
|
|
3414
|
-
config: e.filters,
|
|
3415
|
-
"container-size-layout": e.filtersContainerSizeLayout,
|
|
3416
|
-
"filter-values": e.filterValues,
|
|
3417
|
-
search: e.filterSearchConfig,
|
|
3418
|
-
"search-term": e.filterSearchTerm,
|
|
3419
|
-
onSearchInput: jn,
|
|
3420
|
-
onSearchClear: Zn,
|
|
3421
|
-
onInput: M[0] || (M[0] = (q) => T.$emit(o(k).UPDATE_FILTERS, q)),
|
|
3422
|
-
"onUpdate:filterValues": M[1] || (M[1] = (q) => T.$emit(o(k).UPDATE_FILTER_VALUES, q))
|
|
3423
|
-
}, null, 8, ["config", "container-size-layout", "filter-values", "search", "search-term"])) : B("", !0)
|
|
3424
|
-
], 6)) : B("", !0),
|
|
3425
|
-
T.$slots.header ? (f(), R("div", Gs, [
|
|
3426
|
-
Re(T.$slots, "header", {}, void 0, !0)
|
|
3427
|
-
])) : B("", !0),
|
|
3428
|
-
O("div", {
|
|
3429
|
-
class: "b-data-grid__column-headers",
|
|
3430
|
-
style: ke({ top: Ve.value })
|
|
3431
|
-
}, [
|
|
3432
|
-
o(S) ? (f(), H(o(is), {
|
|
3433
|
-
key: 0,
|
|
3434
|
-
class: "b-data-grid__config-settings",
|
|
3435
|
-
columns: o(X),
|
|
3436
|
-
condensed: e.condensed,
|
|
3437
|
-
onConfigSettings: o(gn),
|
|
3438
|
-
"onUpdate:columns": o(vn)
|
|
3439
|
-
}, null, 8, ["columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : B("", !0),
|
|
3440
|
-
O("div", {
|
|
3441
|
-
ref_key: "columnsRef",
|
|
3442
|
-
ref: _,
|
|
3443
|
-
role: "rowgroup",
|
|
3444
|
-
class: "b-data-grid__columns-row",
|
|
3445
|
-
tabindex: x.value,
|
|
3446
|
-
onScroll: M[4] || (M[4] = //@ts-ignore
|
|
3447
|
-
(...q) => o(qe) && o(qe)(...q)),
|
|
3448
|
-
onKeydown: M[5] || (M[5] = //@ts-ignore
|
|
3449
|
-
(...q) => o(je) && o(je)(...q))
|
|
3450
|
-
}, [
|
|
3451
|
-
O("div", {
|
|
3452
|
-
style: ke(o(ae)),
|
|
3453
|
-
class: "b-data-grid__columns",
|
|
3454
|
-
role: "row"
|
|
3455
|
-
}, [
|
|
3456
|
-
(f(!0), R(he, null, Le(o(Ze), ({ columnSet: q, id: be, isFrozenColumns: pe }, ze) => (f(), R(he, null, [
|
|
3457
|
-
q != null && q.length ? (f(), H(o(Uo), te({
|
|
3458
|
-
key: `data-grid-columns-${be}`,
|
|
3459
|
-
ref_for: !0,
|
|
3460
|
-
ref: (Se) => Mn(Se),
|
|
3461
|
-
columns: q,
|
|
3462
|
-
"has-resizable-columns": e.hasResizableColumns,
|
|
3463
|
-
"sort-by": e.sortBy,
|
|
3464
|
-
"all-items-selected-state": o(Sn),
|
|
3465
|
-
"is-frozen-columns": pe,
|
|
3466
|
-
"show-frozen-columns-separator": Et.value,
|
|
3467
|
-
"dragging-columns": o(wt),
|
|
3468
|
-
"has-draggable-columns": o(w),
|
|
3469
|
-
"has-column-panel": o(S),
|
|
3470
|
-
"has-left-overflow": o(Ke),
|
|
3471
|
-
"has-first-column-panel-right-aligned": ze === $n.value,
|
|
3472
|
-
"hovered-over-column-state": o(Ct),
|
|
3473
|
-
"is-measuring-column-widths": o(p),
|
|
3474
|
-
"is-only-one-visible-column": o(fn),
|
|
3475
|
-
selectable: o(g),
|
|
3476
|
-
"selectable-across-pages": Pn.value,
|
|
3477
|
-
"truncate-column-headers": e.truncateColumnHeaders,
|
|
3478
|
-
"row-actions-maximum-width": o(ee)
|
|
3479
|
-
}, Xe(o(Cn)), {
|
|
3480
|
-
onColumnHover: M[2] || (M[2] = (Se) => hn.value = Se),
|
|
3481
|
-
onColumnMove: o(_n),
|
|
3482
|
-
onColumnUpdate: o(mn),
|
|
3483
|
-
onColumnResize: Gn,
|
|
3484
|
-
onColumnResizing: o(ge),
|
|
3485
|
-
onSelectAllRows: o(_t),
|
|
3486
|
-
onSelectAllAcrossPages: M[3] || (M[3] = (Se) => K(o(k).SELECT_ALL_ACROSS_PAGES)),
|
|
3487
|
-
onSort: Hn
|
|
3488
|
-
}), Pe({ _: 2 }, [
|
|
3489
|
-
Le(o(d), (Se, Ae) => ({
|
|
3490
|
-
name: Ae,
|
|
3491
|
-
fn: Z((We) => [
|
|
3492
|
-
Re(T.$slots, Ae, te({ ref_for: !0 }, We), void 0, !0)
|
|
3493
|
-
])
|
|
3494
|
-
}))
|
|
3495
|
-
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows"])) : B("", !0)
|
|
3496
|
-
], 64))), 256))
|
|
3497
|
-
], 4)
|
|
3498
|
-
], 40, Hs)
|
|
3499
|
-
], 4),
|
|
3500
|
-
O("div", {
|
|
3501
|
-
ref_key: "body",
|
|
3502
|
-
ref: l,
|
|
3503
|
-
"data-testid": "data-grid-body",
|
|
3504
|
-
class: ce(["b-data-grid__body", In.value]),
|
|
3505
|
-
tabindex: o(r) ? "0" : "-1",
|
|
3506
|
-
"aria-busy": o(r),
|
|
3507
|
-
"aria-live": "polite",
|
|
3508
|
-
onScroll: M[8] || (M[8] = //@ts-ignore
|
|
3509
|
-
(...q) => o(qe) && o(qe)(...q))
|
|
3510
|
-
}, [
|
|
3511
|
-
o(r) && !o(Be) ? (f(), R("div", xs, [
|
|
3512
|
-
Y(o(ft), {
|
|
3513
|
-
class: "b-data-grid__loading-indicator",
|
|
3514
|
-
large: ""
|
|
3515
|
-
}),
|
|
3516
|
-
Y(o(Je), {
|
|
3517
|
-
el: "span",
|
|
3518
|
-
variant: "caption"
|
|
3519
|
-
}, {
|
|
3520
|
-
default: Z(() => [
|
|
3521
|
-
me(J(o(y)("gettingYourData")), 1)
|
|
3522
|
-
]),
|
|
3523
|
-
_: 1
|
|
3524
|
-
})
|
|
3525
|
-
])) : ((ie = o(s)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (f(), R("div", Zs, [
|
|
3526
|
-
Y(o(dl), Qn(el(Nn.value)), null, 16)
|
|
3527
|
-
])) : (f(), R("div", {
|
|
3528
|
-
key: 2,
|
|
3529
|
-
class: "b-data-grid__rows",
|
|
3530
|
-
role: "rowgroup",
|
|
3531
|
-
onKeydown: M[7] || (M[7] = //@ts-ignore
|
|
3532
|
-
(...q) => o(je) && o(je)(...q))
|
|
3533
|
-
}, [
|
|
3534
|
-
(f(!0), R(he, null, Le(o(s), (q, be) => {
|
|
3535
|
-
var pe, ze;
|
|
3536
|
-
return f(), H(o(cn), {
|
|
3537
|
-
key: be,
|
|
3538
|
-
ref_for: !0,
|
|
3539
|
-
ref: (Se) => Fn(Se, be),
|
|
3540
|
-
style: ke(o(ae)),
|
|
3541
|
-
"allow-row-clicks": e.allowRowClicks,
|
|
3542
|
-
"column-sets": o(Ze),
|
|
3543
|
-
condensed: e.condensed,
|
|
3544
|
-
"dragging-columns": o(wt),
|
|
3545
|
-
"dragging-events-for-row-cell": o(wn),
|
|
3546
|
-
"get-data-item-id": e.getDataItemId,
|
|
3547
|
-
"has-nested-content": o(z),
|
|
3548
|
-
"has-nested-rows": o(U),
|
|
3549
|
-
"has-left-overflow": o(Ke),
|
|
3550
|
-
"has-right-overflow": o(St),
|
|
3551
|
-
"highlighted-rows": e.highlightedRows,
|
|
3552
|
-
"hovered-row-index": fe.value,
|
|
3553
|
-
"hovered-over-column-state": o(Ct),
|
|
3554
|
-
"is-data-item-disabled": e.isDataItemDisabled,
|
|
3555
|
-
"is-row-last-child": be + 1 === ((pe = o(s)) == null ? void 0 : pe.length),
|
|
3556
|
-
"is-measuring-column-widths": o(p),
|
|
3557
|
-
"row-actions-maximum-width": o(ee),
|
|
3558
|
-
"row-actions": e.rowActions,
|
|
3559
|
-
"row-data": q,
|
|
3560
|
-
"row-index": be,
|
|
3561
|
-
"row-set-size": (ze = o(s)) == null ? void 0 : ze.length,
|
|
3562
|
-
"show-frozen-columns-separator": Et.value,
|
|
3563
|
-
"should-show-nested-content": e.shouldShowNestedContent,
|
|
3564
|
-
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
3565
|
-
selectable: o(g),
|
|
3566
|
-
"selected-items": o(yt),
|
|
3567
|
-
onCellHovered: Un,
|
|
3568
|
-
onNestedContentToggled: M[6] || (M[6] = (Se) => K(o(k).NESTED_CONTENT_TOGGLED, Se)),
|
|
3569
|
-
onRowClick: zn,
|
|
3570
|
-
onOnFrozenColumnsKeyPress: o(Rn),
|
|
3571
|
-
onSelectRow: o(yn),
|
|
3572
|
-
onSelectNestedRow: o(bn)
|
|
3573
|
-
}, Pe({ _: 2 }, [
|
|
3574
|
-
Le(o(d), (Se, Ae) => ({
|
|
3575
|
-
name: Ae,
|
|
3576
|
-
fn: Z((We) => [
|
|
3577
|
-
Re(T.$slots, Ae, te({ ref_for: !0 }, We), void 0, !0)
|
|
3578
|
-
])
|
|
3579
|
-
}))
|
|
3580
|
-
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
|
|
3581
|
-
}), 128))
|
|
3582
|
-
], 32))
|
|
3583
|
-
], 42, Vs),
|
|
3584
|
-
o(Be) ? (f(), H(o(us), {
|
|
3585
|
-
key: 2,
|
|
3586
|
-
loading: o(r),
|
|
3587
|
-
"is-infinite-scroll": o(En),
|
|
3588
|
-
"onUpdate:showMore": o(pn)
|
|
3589
|
-
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : B("", !0),
|
|
3590
|
-
e.stickyHorizontalScrollbar ? (f(), R("div", {
|
|
3591
|
-
key: 3,
|
|
3592
|
-
ref_key: "virtualHorizontalScrollbarRef",
|
|
3593
|
-
ref: a,
|
|
3594
|
-
class: "b-data-grid__horizontal-scrollbar",
|
|
3595
|
-
"aria-hidden": "true",
|
|
3596
|
-
"data-testid": "sticky-horizontal-scrollbar",
|
|
3597
|
-
style: ke(o(An)),
|
|
3598
|
-
onScroll: M[9] || (M[9] = //@ts-ignore
|
|
3599
|
-
(...q) => o(bt) && o(bt)(...q))
|
|
3600
|
-
}, [
|
|
3601
|
-
O("div", {
|
|
3602
|
-
style: ke({ width: `${o(Q)}px`, height: "15px" })
|
|
3603
|
-
}, null, 4)
|
|
3604
|
-
], 36)) : B("", !0),
|
|
3605
|
-
o(ne) && !o(Be) ? (f(), R("div", {
|
|
3606
|
-
key: 4,
|
|
3607
|
-
ref_key: "paginationContainerRef",
|
|
3608
|
-
ref: P,
|
|
3609
|
-
"data-testid": "pagination-container",
|
|
3610
|
-
class: ce(["b-data-grid__pagination", kn.value])
|
|
3611
|
-
}, [
|
|
3612
|
-
Y(o(il), te(o(ne), {
|
|
3613
|
-
"aria-label": `${o(Lt)} navigation`,
|
|
3614
|
-
onNavigate: Vn,
|
|
3615
|
-
onItemsPage: xn
|
|
3616
|
-
}), {
|
|
3617
|
-
default: Z(() => [
|
|
3618
|
-
o(t)("pagination-slot") ? Re(T.$slots, "pagination-slot", { key: 0 }, void 0, !0) : B("", !0)
|
|
3619
|
-
]),
|
|
3620
|
-
_: 3
|
|
3621
|
-
}, 16, ["aria-label"])
|
|
3622
|
-
], 2)) : B("", !0),
|
|
3623
|
-
T.$slots.footer ? (f(), R("div", js, [
|
|
3624
|
-
Re(T.$slots, "footer", {}, void 0, !0)
|
|
3625
|
-
])) : B("", !0),
|
|
3626
|
-
Wn.value ? (f(), H(o(sl), {
|
|
3627
|
-
key: 6,
|
|
3628
|
-
actions: e.bulkActions,
|
|
3629
|
-
"item-counter": pt.value,
|
|
3630
|
-
"extra-bottom-spacing": o(se),
|
|
3631
|
-
onClose: M[10] || (M[10] = (q) => o(_t)(!1))
|
|
3632
|
-
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) : B("", !0)
|
|
3633
|
-
], 42, Ws);
|
|
3634
|
-
};
|
|
3635
|
-
}
|
|
3636
|
-
}), Gi = /* @__PURE__ */ de(Ks, [["__scopeId", "data-v-1551c664"]]);
|
|
3637
|
-
export {
|
|
3638
|
-
it as B,
|
|
3639
|
-
Wi as a,
|
|
3640
|
-
Me as b,
|
|
3641
|
-
Fe as c,
|
|
3642
|
-
Gi as d,
|
|
3643
|
-
k as e,
|
|
3644
|
-
Ye as f
|
|
3645
|
-
};
|
|
3646
|
-
//# sourceMappingURL=data-grid.PAFw8voO.js.map
|