@govbr-ds/webcomponents 2.5.0 → 2.6.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/cem/custom-elements.json +4228 -996
- package/cem/webcomponents.html-custom-data.json +354 -48
- package/dist/cjs/br-avatar.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/br-breadcrumb.cjs.entry.js +11 -11
- package/dist/cjs/br-button_2.cjs.entry.js +5 -5
- package/dist/cjs/br-card.cjs.entry.js +2 -2
- package/dist/cjs/br-carousel-page.cjs.entry.js +2 -2
- package/dist/cjs/br-carousel.cjs.entry.js +5 -5
- package/dist/cjs/br-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/br-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/br-checkgroup.cjs.entry.js +1 -1
- package/dist/cjs/br-collapse_2.cjs.entry.js +8 -8
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +3 -3
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +3 -3
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar.cjs.entry.js +5 -5
- package/dist/cjs/br-crumb.cjs.entry.js +1 -1
- package/dist/cjs/br-date-picker_3.cjs.entry.js +14 -14
- package/dist/cjs/br-datetime-picker.cjs.entry.js +6 -23
- package/dist/cjs/br-divider.cjs.entry.js +2 -2
- package/dist/cjs/br-dropdown.cjs.entry.js +677 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-item.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-legal.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-social.cjs.entry.js +3 -3
- package/dist/cjs/br-footer.cjs.entry.js +2 -2
- package/dist/cjs/br-header-function.cjs.entry.js +2 -2
- package/dist/cjs/br-header-link.cjs.entry.js +2 -2
- package/dist/cjs/br-header-list.cjs.entry.js +4 -4
- package/dist/cjs/br-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-header.cjs.entry.js +6 -6
- package/dist/cjs/br-icon.cjs.entry.js +172 -158
- package/dist/cjs/br-input_2.cjs.entry.js +1427 -0
- package/dist/cjs/br-item.cjs.entry.js +2 -2
- package/dist/cjs/br-link.cjs.entry.js +2 -2
- package/dist/cjs/br-magic-button.cjs.entry.js +11 -12
- package/dist/cjs/br-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-header.cjs.entry.js +3 -3
- package/dist/cjs/br-menu-info.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/br-menu-link.cjs.entry.js +3 -3
- package/dist/cjs/br-menu-list.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-logo.cjs.entry.js +2 -2
- package/dist/cjs/br-menu-social.cjs.entry.js +2 -2
- package/dist/cjs/br-menu.cjs.entry.js +5 -5
- package/dist/cjs/br-modal.cjs.entry.js +2 -2
- package/dist/cjs/br-notification-body.cjs.entry.js +2 -2
- package/dist/cjs/br-notification-header.cjs.entry.js +2 -2
- package/dist/cjs/br-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/br-notification.cjs.entry.js +2 -2
- package/dist/cjs/{br-dropdown_2.cjs.entry.js → br-pagination_2.cjs.entry.js} +812 -557
- package/dist/cjs/br-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/br-radio.cjs.entry.js +2 -2
- package/dist/cjs/br-scrim.cjs.entry.js +2 -2
- package/dist/cjs/br-select-input_3.cjs.entry.js +16 -93
- package/dist/cjs/br-sign-in.cjs.entry.js +3 -3
- package/dist/cjs/br-skip-link-item.cjs.entry.js +1 -1
- package/dist/cjs/br-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/br-skiplink-item.cjs.entry.js +2 -2
- package/dist/cjs/br-slider.cjs.entry.js +3 -3
- package/dist/cjs/br-step_2.cjs.entry.js +3 -3
- package/dist/cjs/br-switch.cjs.entry.js +2 -2
- package/dist/cjs/br-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/br-tab.cjs.entry.js +7 -7
- package/dist/cjs/br-table-action_6.cjs.entry.js +1500 -0
- package/dist/cjs/br-table-body.cjs.entry.js +4 -16
- package/dist/cjs/br-table-header.cjs.entry.js +4 -16
- package/dist/cjs/br-table.cjs.entry.js +2616 -433
- package/dist/cjs/br-tag.cjs.entry.js +4 -4
- package/dist/cjs/br-textarea.cjs.entry.js +3 -3
- package/dist/cjs/br-tooltip.cjs.entry.js +5 -29
- package/dist/cjs/br-upload.cjs.entry.js +4 -4
- package/dist/cjs/br-wizard-panel.cjs.entry.js +3 -3
- package/dist/cjs/br-wizard.cjs.entry.js +3 -3
- package/dist/cjs/helpers-DkkDubv1.js +28 -0
- package/dist/cjs/{icon.utils-DF6kMskA.js → icon.utils-CMs0ukvR.js} +1 -1
- package/dist/cjs/{index-Bc30P_6z.js → index-BP8UIQro.js} +34 -34
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/table.utils-De-9_NgJ.js +749 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +9 -9
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +3 -3
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +9 -9
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +2 -2
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +1 -1
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +3 -3
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +4 -4
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +3 -3
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +6 -6
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +3 -3
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +6 -8
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +2 -2
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +2 -2
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +4 -4
- package/dist/collection/components/icon/default-icons-cache.js +159 -146
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +17 -13
- package/dist/collection/components/icon/icon.utils.js +1 -1
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +120 -2
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +11 -12
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +1 -1
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +3 -3
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +4 -4
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +6 -84
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +8 -7
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +22 -6
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +4 -4
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +2 -2
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +4 -4
- package/dist/collection/components/table/table-action/table-action.css +1 -0
- package/dist/collection/components/table/table-action/table-action.js +349 -0
- package/dist/collection/components/table/table-bar/table-bar.css +1 -0
- package/dist/collection/components/table/table-bar/table-bar.js +652 -0
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-body/table-body.js +12 -17
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +556 -83
- package/dist/collection/components/table/table-footer/table-footer.css +1 -0
- package/dist/collection/components/table/table-footer/table-footer.js +233 -0
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header/table-header.js +11 -17
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +287 -86
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +312 -57
- package/dist/collection/components/table/table.actions-tooltip.js +33 -0
- package/dist/collection/components/table/{table-constants.js → table.constants.js} +54 -77
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.data.js +461 -0
- package/dist/collection/components/table/table.expansion.elements.js +70 -0
- package/dist/collection/components/table/table.expansion.js +179 -0
- package/dist/collection/components/table/table.grouping.js +97 -0
- package/dist/collection/components/table/table.header-height.js +47 -0
- package/dist/collection/components/table/table.js +2499 -618
- package/dist/collection/components/table/table.keyboard.js +340 -0
- package/dist/collection/components/table/table.scroll-shadows.js +36 -0
- package/dist/collection/components/table/table.selection.elements.js +63 -0
- package/dist/collection/components/table/table.selection.js +239 -0
- package/dist/collection/components/table/table.tokens.js +28 -0
- package/dist/collection/components/table/table.types.js +1 -0
- package/dist/collection/components/table/table.utils.js +75 -0
- package/dist/collection/components/table/table.virtual-list.js +342 -0
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -27
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +2 -2
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +1 -1
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/pages/scripts/code-editor.js +28 -3
- package/dist/collection/pages/scripts/pageLoader.js +286 -20
- package/dist/collection/pages/scripts/pageloader-preview.js +3 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-action.d.ts +11 -0
- package/dist/components/br-table-action.js +5 -0
- package/dist/components/br-table-bar.d.ts +11 -0
- package/dist/components/br-table-bar.js +5 -0
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-footer.d.ts +11 -0
- package/dist/components/br-table-footer.js +5 -0
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-082jxuTj.js +5 -0
- package/dist/components/p-381n6AwK.js +5 -0
- package/dist/components/{p-CyXVsiz9.js → p-B5_zbRAr.js} +1 -1
- package/dist/components/p-BE1gDPwC.js +5 -0
- package/dist/components/p-BV-c2pxt.js +5 -0
- package/dist/components/p-BfFbYAuJ.js +5 -0
- package/dist/components/{p-DcMjwTqu.js → p-Bi2E_w9Q.js} +1 -1
- package/dist/components/p-Bk8YcMql.js +5 -0
- package/dist/components/p-C3ISxUGw.js +5 -0
- package/dist/components/p-C3J0TVQO.js +5 -0
- package/dist/components/p-C6m13lCc.js +5 -0
- package/dist/components/{p-DBmwzG9E.js → p-CCWJ-H33.js} +1 -1
- package/dist/components/p-CJuHirYK.js +5 -0
- package/dist/components/{p-SWQlgYWR.js → p-CKS7ggLM.js} +1 -1
- package/dist/components/p-COSFBwu9.js +5 -0
- package/dist/components/p-CWPrXYam.js +5 -0
- package/dist/components/p-Ca89D_0s.js +5 -0
- package/dist/components/p-CbN58CFi.js +5 -0
- package/dist/components/p-CjjxTkKb.js +5 -0
- package/dist/components/p-Ck9t4WSb.js +5 -0
- package/dist/components/p-CvfVwD6_.js +5 -0
- package/dist/components/p-D-1sfjhG.js +5 -0
- package/dist/components/p-D-p4vLlP.js +5 -0
- package/dist/components/p-D6DArHGH.js +5 -0
- package/dist/components/p-DD3BItoS.js +5 -0
- package/dist/components/{p-448Z5r2f.js → p-DEIKwFIf.js} +1 -1
- package/dist/components/p-DHHAIESt.js +5 -0
- package/dist/components/{p-Jk_KQE5V.js → p-DMj5iO7_.js} +1 -1
- package/dist/components/p-DUI-S07G.js +5 -0
- package/dist/components/p-D_K9JH6J.js +5 -0
- package/dist/components/p-DiQp2Lap.js +5 -0
- package/dist/components/{p-DJKZ8ktB.js → p-Dvbqhybt.js} +1 -1
- package/dist/components/p-Dy7MSvt-.js +5 -0
- package/dist/components/p-DywTXNHQ.js +5 -0
- package/dist/components/p-Ft_P7Roz.js +5 -0
- package/dist/components/p-KuiFoKDl.js +5 -0
- package/dist/components/p-MiiczSWA.js +5 -0
- package/dist/components/p-Um3K2SHu.js +5 -0
- package/dist/components/p-YxddSP6q.js +5 -0
- package/dist/components/p-Zk91ebVT.js +5 -0
- package/dist/components/p-jv2oG0vH.js +5 -0
- package/dist/components/p-nrG_Gd0c.js +5 -0
- package/dist/components/p-syLEZrcg.js +5 -0
- package/dist/components/{p-jvKQA6x7.js → p-ydfWTgrA.js} +1 -1
- package/dist/esm/br-avatar.entry.js +3 -3
- package/dist/esm/br-breadcrumb-item.entry.js +1 -1
- package/dist/esm/br-breadcrumb.entry.js +12 -12
- package/dist/esm/br-button_2.entry.js +6 -6
- package/dist/esm/br-card.entry.js +2 -2
- package/dist/esm/br-carousel-page.entry.js +2 -2
- package/dist/esm/br-carousel.entry.js +6 -6
- package/dist/esm/br-checkbox-group.entry.js +3 -3
- package/dist/esm/br-checkbox.entry.js +3 -3
- package/dist/esm/br-checkgroup.entry.js +1 -1
- package/dist/esm/br-collapse_2.entry.js +9 -9
- package/dist/esm/br-cookiebar-cookie.entry.js +2 -2
- package/dist/esm/br-cookiebar-group.entry.js +4 -4
- package/dist/esm/br-cookiebar-header.entry.js +2 -2
- package/dist/esm/br-cookiebar-link.entry.js +4 -4
- package/dist/esm/br-cookiebar-note-group.entry.js +3 -3
- package/dist/esm/br-cookiebar-note.entry.js +2 -2
- package/dist/esm/br-cookiebar.entry.js +6 -6
- package/dist/esm/br-crumb.entry.js +1 -1
- package/dist/esm/br-date-picker_3.entry.js +14 -14
- package/dist/esm/br-datetime-picker.entry.js +5 -22
- package/dist/esm/br-divider.entry.js +3 -3
- package/dist/esm/br-dropdown.entry.js +675 -0
- package/dist/esm/br-footer-category.entry.js +2 -2
- package/dist/esm/br-footer-item.entry.js +3 -3
- package/dist/esm/br-footer-legal.entry.js +2 -2
- package/dist/esm/br-footer-logo.entry.js +3 -3
- package/dist/esm/br-footer-social.entry.js +4 -4
- package/dist/esm/br-footer.entry.js +3 -3
- package/dist/esm/br-header-function.entry.js +3 -3
- package/dist/esm/br-header-link.entry.js +3 -3
- package/dist/esm/br-header-list.entry.js +4 -4
- package/dist/esm/br-header-logo.entry.js +3 -3
- package/dist/esm/br-header.entry.js +7 -7
- package/dist/esm/br-icon.entry.js +173 -159
- package/dist/esm/br-input_2.entry.js +1424 -0
- package/dist/esm/br-item.entry.js +3 -3
- package/dist/esm/br-link.entry.js +3 -3
- package/dist/esm/br-magic-button.entry.js +12 -13
- package/dist/esm/br-menu-group.entry.js +2 -2
- package/dist/esm/br-menu-header.entry.js +3 -3
- package/dist/esm/br-menu-info.entry.js +2 -2
- package/dist/esm/br-menu-item.entry.js +4 -4
- package/dist/esm/br-menu-link.entry.js +4 -4
- package/dist/esm/br-menu-list.entry.js +2 -2
- package/dist/esm/br-menu-logo.entry.js +2 -2
- package/dist/esm/br-menu-social.entry.js +3 -3
- package/dist/esm/br-menu.entry.js +6 -6
- package/dist/esm/br-modal.entry.js +3 -3
- package/dist/esm/br-notification-body.entry.js +2 -2
- package/dist/esm/br-notification-header.entry.js +2 -2
- package/dist/esm/br-notification-item.entry.js +3 -3
- package/dist/esm/br-notification.entry.js +3 -3
- package/dist/esm/{br-dropdown_2.entry.js → br-pagination_2.entry.js} +813 -558
- package/dist/esm/br-radio-group.entry.js +3 -3
- package/dist/esm/br-radio.entry.js +3 -3
- package/dist/esm/br-scrim.entry.js +3 -3
- package/dist/esm/br-select-input_3.entry.js +17 -94
- package/dist/esm/br-sign-in.entry.js +4 -4
- package/dist/esm/br-skip-link-item.entry.js +1 -1
- package/dist/esm/br-skip-link.entry.js +3 -3
- package/dist/esm/br-skiplink-item.entry.js +3 -3
- package/dist/esm/br-slider.entry.js +4 -4
- package/dist/esm/br-step_2.entry.js +4 -4
- package/dist/esm/br-switch.entry.js +3 -3
- package/dist/esm/br-tab-item.entry.js +4 -4
- package/dist/esm/br-tab.entry.js +8 -8
- package/dist/esm/br-table-action_6.entry.js +1493 -0
- package/dist/esm/br-table-body.entry.js +4 -16
- package/dist/esm/br-table-header.entry.js +4 -16
- package/dist/esm/br-table.entry.js +2591 -408
- package/dist/esm/br-tag.entry.js +5 -5
- package/dist/esm/br-textarea.entry.js +4 -4
- package/dist/esm/br-tooltip.entry.js +6 -30
- package/dist/esm/br-upload.entry.js +5 -5
- package/dist/esm/br-wizard-panel.entry.js +3 -3
- package/dist/esm/br-wizard.entry.js +4 -4
- package/dist/esm/helpers-BNW9pAhl.js +26 -0
- package/dist/esm/{icon.utils-zlORkiHQ.js → icon.utils-CXDYKUBz.js} +1 -1
- package/dist/esm/{index-ConyRdJe.js → index-CwL52661.js} +34 -35
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{props-D07GjR4_.js → props-BbxNgEcJ.js} +1 -1
- package/dist/esm/table.utils-CtVdlcgI.js +706 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/hydrate/index.js +5269 -1302
- package/dist/hydrate/index.mjs +5269 -1302
- package/dist/types/components/collapse/collapse.d.ts +2 -2
- package/dist/types/components/footer/footer-social/footer-social.d.ts +2 -3
- package/dist/types/components/icon/icon.d.ts +6 -6
- package/dist/types/components/icon/icon.utils.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +7 -1
- package/dist/types/components/input/input.types.d.ts +18 -0
- package/dist/types/components/magic-button/magic-button.d.ts +7 -8
- package/dist/types/components/menu/menu-social/menu-social.d.ts +2 -3
- package/dist/types/components/select/select-input/select-input.d.ts +1 -4
- package/dist/types/components/select/select-option/select-option.d.ts +3 -1
- package/dist/types/components/slider/slider.d.ts +4 -4
- package/dist/types/components/tab/tab-item/tab-item.d.ts +2 -2
- package/dist/types/components/tab/tab.d.ts +1 -1
- package/dist/types/components/table/table-action/table-action.d.ts +107 -0
- package/dist/types/components/table/table-bar/table-bar.d.ts +193 -0
- package/dist/types/components/table/table-body/table-body.d.ts +11 -16
- package/dist/types/components/table/table-cell/table-cell.d.ts +178 -38
- package/dist/types/components/table/table-footer/table-footer.d.ts +40 -0
- package/dist/types/components/table/table-footer/table-footer.types.d.ts +12 -0
- package/dist/types/components/table/table-header/table-header.d.ts +10 -16
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +102 -53
- package/dist/types/components/table/table-row/table-row.d.ts +88 -29
- package/dist/types/components/table/table.actions-tooltip.d.ts +11 -0
- package/dist/types/components/table/{table-constants.d.ts → table.constants.d.ts} +50 -77
- package/dist/types/components/table/table.d.ts +601 -222
- package/dist/types/components/table/table.data.d.ts +78 -0
- package/dist/types/components/table/table.expansion.d.ts +65 -0
- package/dist/types/components/table/table.expansion.elements.d.ts +30 -0
- package/dist/types/components/table/table.grouping.d.ts +25 -0
- package/dist/types/components/table/table.header-height.d.ts +17 -0
- package/dist/types/components/table/table.keyboard.d.ts +53 -0
- package/dist/types/components/table/table.scroll-shadows.d.ts +11 -0
- package/dist/types/components/table/table.selection.d.ts +84 -0
- package/dist/types/components/table/table.selection.elements.d.ts +42 -0
- package/dist/types/components/table/table.tokens.d.ts +24 -0
- package/dist/types/components/table/table.types.d.ts +199 -0
- package/dist/types/components/table/table.utils.d.ts +52 -0
- package/dist/types/components/table/table.virtual-list.d.ts +96 -0
- package/dist/types/components.d.ts +1401 -279
- package/dist/webcomponents/{p-85c8d060.entry.js → p-07e80bf8.entry.js} +1 -1
- package/dist/webcomponents/p-10d81622.entry.js +5 -0
- package/dist/webcomponents/{p-a9f16a65.entry.js → p-12d5f533.entry.js} +1 -1
- package/dist/webcomponents/p-15699e8a.entry.js +5 -0
- package/dist/webcomponents/{p-bbcde1ea.entry.js → p-15e2f5cc.entry.js} +1 -1
- package/dist/webcomponents/{p-5528b466.entry.js → p-16d27d5c.entry.js} +1 -1
- package/dist/webcomponents/p-18d3fab8.entry.js +5 -0
- package/dist/webcomponents/p-23c916d9.entry.js +5 -0
- package/dist/webcomponents/p-2aee69fd.entry.js +5 -0
- package/dist/webcomponents/p-2d3db296.entry.js +5 -0
- package/dist/webcomponents/p-2ed6afdd.entry.js +5 -0
- package/dist/webcomponents/{p-bbf47e78.entry.js → p-30c865e6.entry.js} +1 -1
- package/dist/webcomponents/p-32afb78c.entry.js +5 -0
- package/dist/webcomponents/p-33d24cbd.entry.js +5 -0
- package/dist/webcomponents/p-35d63edd.entry.js +5 -0
- package/dist/webcomponents/p-3b1ff55e.entry.js +5 -0
- package/dist/webcomponents/p-3c7246cf.entry.js +5 -0
- package/dist/webcomponents/{p-11d4edc5.entry.js → p-407e7b69.entry.js} +1 -1
- package/dist/webcomponents/{p-53550e8c.entry.js → p-41b12e3c.entry.js} +1 -1
- package/dist/webcomponents/p-47adc17f.entry.js +5 -0
- package/dist/webcomponents/{p-21e10074.entry.js → p-48fc8e56.entry.js} +1 -1
- package/dist/webcomponents/p-4a44c8b8.entry.js +5 -0
- package/dist/webcomponents/{p-6d58ab4f.entry.js → p-4b0f3701.entry.js} +1 -1
- package/dist/webcomponents/{p-84dfbfdd.entry.js → p-4b66200c.entry.js} +1 -1
- package/dist/webcomponents/{p-324afbce.entry.js → p-4c0a1c05.entry.js} +1 -1
- package/dist/webcomponents/p-4c72d706.entry.js +5 -0
- package/dist/webcomponents/p-505173e0.entry.js +5 -0
- package/dist/webcomponents/p-50caea68.entry.js +5 -0
- package/dist/webcomponents/p-5419fd2c.entry.js +5 -0
- package/dist/webcomponents/{p-ed3fa8ec.entry.js → p-5693e0e7.entry.js} +1 -1
- package/dist/webcomponents/p-58247764.entry.js +5 -0
- package/dist/webcomponents/{p-3926cc91.entry.js → p-5d0f4851.entry.js} +1 -1
- package/dist/webcomponents/{p-39a7826d.entry.js → p-60c949c8.entry.js} +1 -1
- package/dist/webcomponents/p-61b84035.entry.js +5 -0
- package/dist/webcomponents/{p-e121429a.entry.js → p-62a74e0a.entry.js} +1 -1
- package/dist/webcomponents/p-6450913e.entry.js +5 -0
- package/dist/webcomponents/p-66c8b8d9.entry.js +5 -0
- package/dist/webcomponents/{p-c6f2f17b.entry.js → p-67281ef1.entry.js} +1 -1
- package/dist/webcomponents/{p-087ed5e7.entry.js → p-6e128c7a.entry.js} +1 -1
- package/dist/webcomponents/p-725e92ab.entry.js +5 -0
- package/dist/webcomponents/{p-19b4b1b7.entry.js → p-74726f20.entry.js} +1 -1
- package/dist/webcomponents/{p-975ea5c7.entry.js → p-75bd655b.entry.js} +1 -1
- package/dist/webcomponents/p-7bf78e48.entry.js +5 -0
- package/dist/webcomponents/p-7cc28ecf.entry.js +5 -0
- package/dist/webcomponents/{p-913d6f28.entry.js → p-7ec01a99.entry.js} +1 -1
- package/dist/webcomponents/{p-d205f3fd.entry.js → p-7f17dbca.entry.js} +1 -1
- package/dist/webcomponents/{p-152482f9.entry.js → p-8120f3ce.entry.js} +1 -1
- package/dist/webcomponents/p-8ded7870.entry.js +5 -0
- package/dist/webcomponents/p-9ab989d1.entry.js +5 -0
- package/dist/webcomponents/p-9be642ff.entry.js +5 -0
- package/dist/webcomponents/p-9d41995a.entry.js +5 -0
- package/dist/webcomponents/{p-EbtQZm5s.js → p-CjVabz-h.js} +1 -1
- package/dist/webcomponents/{p-ConyRdJe.js → p-CwL52661.js} +2 -2
- package/dist/webcomponents/p-Zk91ebVT.js +5 -0
- package/dist/webcomponents/p-_BMaB_68.js +5 -0
- package/dist/webcomponents/p-a150b61d.entry.js +5 -0
- package/dist/webcomponents/{p-55e0822d.entry.js → p-a264acf6.entry.js} +1 -1
- package/dist/webcomponents/p-a5616523.entry.js +5 -0
- package/dist/webcomponents/{p-eb5806c7.entry.js → p-ae3dfb9c.entry.js} +1 -1
- package/dist/webcomponents/p-b1aeb805.entry.js +5 -0
- package/dist/webcomponents/p-b8eea3ef.entry.js +5 -0
- package/dist/webcomponents/p-c6952f8d.entry.js +5 -0
- package/dist/webcomponents/p-c743e5c5.entry.js +5 -0
- package/dist/webcomponents/p-d0c659c3.entry.js +5 -0
- package/dist/webcomponents/p-d3dec923.entry.js +5 -0
- package/dist/webcomponents/{p-12dd22af.entry.js → p-d5405bbe.entry.js} +1 -1
- package/dist/webcomponents/{p-c29268b5.entry.js → p-d6d3a552.entry.js} +1 -1
- package/dist/webcomponents/p-dab66328.entry.js +5 -0
- package/dist/webcomponents/{p-cb1e08b1.entry.js → p-db02533d.entry.js} +1 -1
- package/dist/webcomponents/p-dda22999.entry.js +5 -0
- package/dist/webcomponents/p-e2a46f44.entry.js +5 -0
- package/dist/webcomponents/{p-e0ccf189.entry.js → p-e3680ff8.entry.js} +1 -1
- package/dist/webcomponents/p-e5b9652d.entry.js +5 -0
- package/dist/webcomponents/p-e7f02302.entry.js +5 -0
- package/dist/webcomponents/p-f0720e23.entry.js +5 -0
- package/dist/webcomponents/p-f244009d.entry.js +5 -0
- package/dist/webcomponents/p-f32c40ee.entry.js +5 -0
- package/dist/webcomponents/{p-e4b968b5.entry.js → p-f697abbd.entry.js} +1 -1
- package/dist/webcomponents/p-f7ed35ef.entry.js +5 -0
- package/dist/webcomponents/p-f8576e0a.entry.js +5 -0
- package/dist/webcomponents/p-fcc62731.entry.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/br-input.cjs.entry.js +0 -763
- package/dist/cjs/br-loading.cjs.entry.js +0 -567
- package/dist/cjs/br-pagination.cjs.entry.js +0 -916
- package/dist/cjs/br-table-cell.cjs.entry.js +0 -201
- package/dist/cjs/br-table-header-cell.cjs.entry.js +0 -189
- package/dist/cjs/br-table-row.cjs.entry.js +0 -95
- package/dist/cjs/table-constants-BOPSay0B.js +0 -183
- package/dist/collection/components/table/table-tokens.js +0 -50
- package/dist/collection/components/table/table-utils.js +0 -44
- package/dist/components/p-AhfgJCUp.js +0 -5
- package/dist/components/p-AoNL6BaW.js +0 -5
- package/dist/components/p-B468MCYC.js +0 -5
- package/dist/components/p-B985Ov_x.js +0 -5
- package/dist/components/p-BOWQIHQA.js +0 -5
- package/dist/components/p-BPQrgCRr.js +0 -5
- package/dist/components/p-BwQT0fOJ.js +0 -5
- package/dist/components/p-CAgbUwsx.js +0 -5
- package/dist/components/p-CFXey8i8.js +0 -5
- package/dist/components/p-CW8xwk6J.js +0 -5
- package/dist/components/p-CXMwM9m4.js +0 -5
- package/dist/components/p-CYZVdKeO.js +0 -5
- package/dist/components/p-CeWbZN7V.js +0 -5
- package/dist/components/p-DDe0tQEO.js +0 -5
- package/dist/components/p-DRsZ9GNg.js +0 -5
- package/dist/components/p-DU54cqCf.js +0 -5
- package/dist/components/p-DVJlmlEX.js +0 -5
- package/dist/components/p-Dd1qCWAK.js +0 -5
- package/dist/components/p-DiLI514I.js +0 -5
- package/dist/components/p-DoWy_P8b.js +0 -5
- package/dist/components/p-HbhTnepI.js +0 -5
- package/dist/components/p-Or3FLzbz.js +0 -5
- package/dist/components/p-Zb9nyfTY.js +0 -5
- package/dist/components/p-pQb-3jFY.js +0 -5
- package/dist/components/p-qX6sHxOk.js +0 -5
- package/dist/esm/br-input.entry.js +0 -761
- package/dist/esm/br-loading.entry.js +0 -565
- package/dist/esm/br-pagination.entry.js +0 -914
- package/dist/esm/br-table-cell.entry.js +0 -199
- package/dist/esm/br-table-header-cell.entry.js +0 -187
- package/dist/esm/br-table-row.entry.js +0 -93
- package/dist/esm/table-constants-CXMwM9m4.js +0 -170
- package/dist/types/components/table/table-tokens.d.ts +0 -46
- package/dist/types/components/table/table-types.d.ts +0 -107
- package/dist/types/components/table/table-utils.d.ts +0 -47
- package/dist/webcomponents/p-031a2256.entry.js +0 -5
- package/dist/webcomponents/p-0602e5b1.entry.js +0 -5
- package/dist/webcomponents/p-079d5f69.entry.js +0 -5
- package/dist/webcomponents/p-0d5a9ebf.entry.js +0 -5
- package/dist/webcomponents/p-105b4d06.entry.js +0 -5
- package/dist/webcomponents/p-14aedf0d.entry.js +0 -5
- package/dist/webcomponents/p-1cd1126e.entry.js +0 -5
- package/dist/webcomponents/p-2271ea84.entry.js +0 -5
- package/dist/webcomponents/p-271b1ede.entry.js +0 -5
- package/dist/webcomponents/p-28f732fc.entry.js +0 -5
- package/dist/webcomponents/p-2971d38a.entry.js +0 -5
- package/dist/webcomponents/p-2ac48875.entry.js +0 -5
- package/dist/webcomponents/p-2b1a919c.entry.js +0 -5
- package/dist/webcomponents/p-2da57966.entry.js +0 -5
- package/dist/webcomponents/p-2e81b0b3.entry.js +0 -5
- package/dist/webcomponents/p-2eececed.entry.js +0 -5
- package/dist/webcomponents/p-2f904c4a.entry.js +0 -5
- package/dist/webcomponents/p-32414f1c.entry.js +0 -5
- package/dist/webcomponents/p-32ea6342.entry.js +0 -5
- package/dist/webcomponents/p-330ec8ab.entry.js +0 -5
- package/dist/webcomponents/p-374f83b1.entry.js +0 -5
- package/dist/webcomponents/p-3bcc2c58.entry.js +0 -5
- package/dist/webcomponents/p-3c7ce0e4.entry.js +0 -5
- package/dist/webcomponents/p-467842ca.entry.js +0 -5
- package/dist/webcomponents/p-53e71a8a.entry.js +0 -5
- package/dist/webcomponents/p-58bacbe1.entry.js +0 -5
- package/dist/webcomponents/p-5a5ed7d8.entry.js +0 -5
- package/dist/webcomponents/p-621f0fa8.entry.js +0 -5
- package/dist/webcomponents/p-6514a75d.entry.js +0 -5
- package/dist/webcomponents/p-678b43a6.entry.js +0 -5
- package/dist/webcomponents/p-6b6be415.entry.js +0 -5
- package/dist/webcomponents/p-6ff9b26e.entry.js +0 -5
- package/dist/webcomponents/p-992167bc.entry.js +0 -5
- package/dist/webcomponents/p-CXMwM9m4.js +0 -5
- package/dist/webcomponents/p-a21872bf.entry.js +0 -5
- package/dist/webcomponents/p-b8d4ace3.entry.js +0 -5
- package/dist/webcomponents/p-bf35e506.entry.js +0 -5
- package/dist/webcomponents/p-c09af3cd.entry.js +0 -5
- package/dist/webcomponents/p-c3e61c39.entry.js +0 -5
- package/dist/webcomponents/p-c6b2545a.entry.js +0 -5
- package/dist/webcomponents/p-cae39e13.entry.js +0 -5
- package/dist/webcomponents/p-cb690a87.entry.js +0 -5
- package/dist/webcomponents/p-d0be7243.entry.js +0 -5
- package/dist/webcomponents/p-d191c6e3.entry.js +0 -5
- package/dist/webcomponents/p-d3bd2c40.entry.js +0 -5
- package/dist/webcomponents/p-dbeea64e.entry.js +0 -5
- package/dist/webcomponents/p-df475129.entry.js +0 -5
- package/dist/webcomponents/p-e661c024.entry.js +0 -5
- package/dist/webcomponents/p-e6c6f305.entry.js +0 -5
- package/dist/webcomponents/p-e8291be2.entry.js +0 -5
- package/dist/webcomponents/p-f9084f16.entry.js +0 -5
- package/dist/webcomponents/p-fad3aa61.entry.js +0 -5
- /package/dist/collection/components/table/{table-types.js → table-footer/table-footer.types.js} +0 -0
- /package/dist/webcomponents/{p-zlORkiHQ.js → p-CXDYKUBz.js} +0 -0
|
@@ -2,32 +2,78 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { Fragment, Host, h, } from "@stencil/core";
|
|
6
|
+
import { TableActionsTooltip } from "../table.actions-tooltip";
|
|
7
|
+
import { TABLE_DENSITY, TABLE_TOOLTIP_MODE, TABLE_TOOLTIP_STATE } from "../table.constants";
|
|
8
|
+
import { TableCellKeyboard } from "../table.keyboard";
|
|
9
|
+
import { requestAnimationFramePromise, resolveTableDensityFromElement } from "../table.utils";
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* ## Design System
|
|
11
12
|
*
|
|
12
|
-
*
|
|
13
|
+
* Para a documentação completa de design, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
15
|
+
* Representa uma célula de dados, com suporte a alinhamento, overflow,
|
|
16
|
+
* tooltip e agrupamento automático de ações excedentes. Compõe `br-table-row`
|
|
17
|
+
* dentro do corpo de `br-table`, que coordena posição, interação e herança.
|
|
18
|
+
* Use `rowSpan` dentro de um grupo contíguo de linhas e `rowHeader` para seu
|
|
19
|
+
* rótulo compartilhado; evite uso avulso fora da composição da tabela.
|
|
20
|
+
*
|
|
21
|
+
* @slot default - Conteúdo ou ações da célula.
|
|
22
|
+
* @part cell - Superfície visual da célula.
|
|
23
|
+
* @part content - Contêiner responsável pelo alinhamento.
|
|
24
|
+
* @fires brAlignmentChange - Quando um alinhamento específico muda.
|
|
25
|
+
* @fires brOverflowChange - Quando a estratégia de overflow muda.
|
|
16
26
|
*/
|
|
17
27
|
export class TableCell {
|
|
18
28
|
constructor() {
|
|
19
29
|
/**
|
|
20
|
-
*
|
|
30
|
+
* Quantidade de colunas ocupadas. Inteiro entre 1 e 1000; valores inválidos usam 1.
|
|
31
|
+
* @default 1
|
|
21
32
|
*/
|
|
22
|
-
this.
|
|
33
|
+
this.colSpan = 1;
|
|
34
|
+
/**
|
|
35
|
+
* Quantidade de linhas ocupadas no cabeçalho ou grupo. Limitada às linhas
|
|
36
|
+
* disponíveis; aceita inteiros de 1 a 1000 e valores inválidos usam 1.
|
|
37
|
+
* @default 1
|
|
38
|
+
*/
|
|
39
|
+
this.rowSpan = 1;
|
|
23
40
|
/**
|
|
24
|
-
*
|
|
41
|
+
* Identifica um cabeçalho de linha, inclusive rótulos compartilhados por um grupo.
|
|
42
|
+
* @default false
|
|
25
43
|
*/
|
|
44
|
+
this.rowHeader = false;
|
|
45
|
+
/**
|
|
46
|
+
* Texto completo do tooltip do botão de ações agrupadas desta célula.
|
|
47
|
+
* A propriedade `moreActionsLabel` de `br-table` prevalece quando
|
|
48
|
+
* informada. Valores vazios ou compostos apenas por espaços usam "Mais ações".
|
|
49
|
+
* Não altera o nome acessível do botão nem os rótulos das ações.
|
|
50
|
+
* Aceita texto simples por atributo ou propriedade, sem reflexão.
|
|
51
|
+
*
|
|
52
|
+
* @default 'Mais ações'
|
|
53
|
+
*/
|
|
54
|
+
this.moreActionsLabel = 'Mais ações';
|
|
55
|
+
this.isTooltipVisible = false;
|
|
26
56
|
this.tooltipContent = '';
|
|
57
|
+
this.hasTableActionContent = false;
|
|
58
|
+
this.hasOnlyTableActionContent = false;
|
|
59
|
+
this.tableActions = [];
|
|
60
|
+
this.inheritedCellActionsLimit = 4;
|
|
61
|
+
this.effectiveActionDensity = TABLE_DENSITY.MEDIUM;
|
|
27
62
|
this.tooltipRef = null;
|
|
63
|
+
this.actionsTooltip = new TableActionsTooltip();
|
|
28
64
|
this.truncateContentRef = null;
|
|
29
65
|
this.contentSlotRef = null;
|
|
66
|
+
this.tableInheritedPropsObserver = null;
|
|
67
|
+
this.densityObserver = null;
|
|
68
|
+
/**
|
|
69
|
+
* Exibe o tooltip somente quando o conteúdo está truncado.
|
|
70
|
+
*/
|
|
30
71
|
this.handleMouseEnter = async () => {
|
|
72
|
+
// Quando as ações foram agrupadas, o dropdown possui seu próprio tooltip.
|
|
73
|
+
// Evita criar um segundo tooltip ancorado no contêiner da célula.
|
|
74
|
+
if (this.shouldCollapseTableActions()) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
31
77
|
if (this.resolveTooltipMode() !== TABLE_TOOLTIP_MODE.ENABLED) {
|
|
32
78
|
return;
|
|
33
79
|
}
|
|
@@ -35,55 +81,245 @@ export class TableCell {
|
|
|
35
81
|
if (truncateContent === null) {
|
|
36
82
|
return;
|
|
37
83
|
}
|
|
84
|
+
const hasOverflow = truncateContent.scrollWidth > truncateContent.clientWidth;
|
|
85
|
+
if (!hasOverflow) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
38
88
|
this.tooltipContent = this.getFullCellContent();
|
|
39
89
|
if (this.tooltipContent.length === 0) {
|
|
40
90
|
return;
|
|
41
91
|
}
|
|
42
92
|
this.isTooltipVisible = true;
|
|
43
93
|
await requestAnimationFramePromise();
|
|
44
|
-
|
|
94
|
+
// Entre o pointerenter e o próximo frame a lista virtual pode desmontar a
|
|
95
|
+
// linha. Nunca registra um trigger que já saiu do documento.
|
|
96
|
+
if (!this.el.isConnected || !truncateContent.isConnected) {
|
|
97
|
+
await this.closeContentTooltip();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (this.tooltipRef?.isConnected) {
|
|
45
101
|
await this.tooltipRef.setTriggerElement(truncateContent);
|
|
46
102
|
await this.tooltipRef.showTooltip();
|
|
47
103
|
}
|
|
48
104
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Fecha o tooltip e limpa o estado local. É reutilizado tanto no
|
|
107
|
+
* pointerleave quanto na desconexão causada pela lista virtual.
|
|
108
|
+
*/
|
|
109
|
+
this.closeContentTooltip = async () => {
|
|
110
|
+
const tooltip = this.tooltipRef;
|
|
111
|
+
if (tooltip !== null) {
|
|
112
|
+
try {
|
|
113
|
+
await tooltip.hideTooltip();
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
// O tooltip pode estar sendo desconectado no mesmo ciclo da linha.
|
|
117
|
+
}
|
|
52
118
|
}
|
|
119
|
+
this.tooltipRef = null;
|
|
53
120
|
this.isTooltipVisible = false;
|
|
54
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Oculta o tooltip ao encerrar a interação com a célula.
|
|
124
|
+
*/
|
|
125
|
+
this.handleMouseLeave = async () => {
|
|
126
|
+
await this.closeContentTooltip();
|
|
127
|
+
};
|
|
128
|
+
this.syncActionDensity = () => {
|
|
129
|
+
const nextDensity = this.actionDensity ?? resolveTableDensityFromElement(this.el);
|
|
130
|
+
if (this.effectiveActionDensity !== nextDensity)
|
|
131
|
+
this.effectiveActionDensity = nextDensity;
|
|
132
|
+
};
|
|
55
133
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Retorna a altura renderizada da superfície visual desta célula, em pixels.
|
|
136
|
+
*
|
|
137
|
+
* @returns Altura da superfície da célula; zero se ela ainda não estiver renderizada.
|
|
138
|
+
*/
|
|
139
|
+
async getMeasuredHeight() {
|
|
140
|
+
const surface = this.el.shadowRoot?.querySelector('.br-table-cell');
|
|
141
|
+
return surface?.getBoundingClientRect().height ?? 0;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Ressincroniza a herança sempre que a célula entra na árvore.
|
|
145
|
+
* Isso é necessário porque a lista virtual conecta e desconecta a mesma
|
|
146
|
+
* instância diversas vezes durante o scroll.
|
|
147
|
+
*/
|
|
148
|
+
connectedCallback() {
|
|
149
|
+
this.keyboard?.connect();
|
|
150
|
+
this.syncInheritedTableProps();
|
|
151
|
+
this.observeTableInheritedProps();
|
|
152
|
+
this.syncActionDensity();
|
|
153
|
+
this.observeDensitySources();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Inicializa ações, conteúdo e propriedades herdáveis após a montagem.
|
|
157
|
+
*/
|
|
158
|
+
componentDidLoad() {
|
|
159
|
+
const surface = this.el.shadowRoot?.querySelector('[part="cell"]');
|
|
160
|
+
if (surface !== undefined && surface !== null) {
|
|
161
|
+
this.keyboard = new TableCellKeyboard(this.el, surface);
|
|
162
|
+
this.keyboard.connect();
|
|
163
|
+
}
|
|
164
|
+
this.syncInheritedTableProps();
|
|
165
|
+
this.updateHasTableActionContent();
|
|
166
|
+
void requestAnimationFramePromise().then(() => this.syncTableActions());
|
|
167
|
+
this.notifyAlignmentChange();
|
|
168
|
+
this.notifyOverflowChange();
|
|
169
|
+
this.syncActionDensity();
|
|
170
|
+
}
|
|
171
|
+
disconnectedCallback() {
|
|
172
|
+
this.keyboard?.disconnect();
|
|
173
|
+
this.tableInheritedPropsObserver?.disconnect();
|
|
174
|
+
this.tableInheritedPropsObserver = null;
|
|
175
|
+
this.densityObserver?.disconnect();
|
|
176
|
+
this.densityObserver = null;
|
|
177
|
+
// A virtualização pode remover a linha sem que pointerleave seja emitido.
|
|
178
|
+
// Fecha explicitamente qualquer tooltip ancorado nesta célula antes que o
|
|
179
|
+
// trigger deixe de existir no DOM.
|
|
180
|
+
void this.closeContentTooltip();
|
|
181
|
+
void this.actionsTooltip.hide();
|
|
64
182
|
}
|
|
65
183
|
/**
|
|
66
|
-
*
|
|
184
|
+
* Solicita o recálculo dos alinhamentos quando uma prop muda.
|
|
67
185
|
*/
|
|
68
186
|
handleAlignmentChange() {
|
|
69
|
-
this.validateProps();
|
|
70
187
|
this.notifyAlignmentChange();
|
|
71
188
|
}
|
|
72
189
|
/**
|
|
73
|
-
*
|
|
190
|
+
* Solicita o recálculo do overflow quando a prop muda.
|
|
74
191
|
*/
|
|
75
192
|
handleOverflowChange() {
|
|
76
|
-
this.validateProps();
|
|
77
193
|
this.notifyOverflowChange();
|
|
78
194
|
}
|
|
195
|
+
handleActionDensityChange() {
|
|
196
|
+
this.syncActionDensity();
|
|
197
|
+
}
|
|
79
198
|
/**
|
|
80
|
-
*
|
|
199
|
+
* Identifica se o slot contém ações e se elas são o único conteúdo.
|
|
81
200
|
*/
|
|
82
|
-
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
|
|
201
|
+
updateHasTableActionContent() {
|
|
202
|
+
if (this.contentSlotRef === null) {
|
|
203
|
+
this.hasTableActionContent = false;
|
|
204
|
+
this.hasOnlyTableActionContent = false;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const assignedElements = this.contentSlotRef.assignedElements({ flatten: true });
|
|
208
|
+
this.hasTableActionContent = assignedElements.some((element) => {
|
|
209
|
+
if (element.tagName.toLowerCase() === 'br-table-action') {
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
return element.querySelector('br-table-action') !== null;
|
|
213
|
+
});
|
|
214
|
+
this.hasOnlyTableActionContent =
|
|
215
|
+
assignedElements.length > 0 &&
|
|
216
|
+
assignedElements.every((element) => element.tagName.toLowerCase() === 'br-table-action');
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Normaliza as ações atribuídas ao slot para uso no menu excedente.
|
|
220
|
+
*/
|
|
221
|
+
syncTableActions() {
|
|
222
|
+
if (this.contentSlotRef === null) {
|
|
223
|
+
this.tableActions = [];
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
const assignedElements = this.contentSlotRef.assignedElements({ flatten: true });
|
|
227
|
+
this.tableActions = assignedElements
|
|
228
|
+
.filter((element) => element.tagName.toLowerCase() === 'br-table-action')
|
|
229
|
+
.map((actionElement, index) => ({
|
|
230
|
+
actionElement,
|
|
231
|
+
label: this.getActionLabel(actionElement, index),
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Obtém um rótulo utilizável, com fallback baseado na posição.
|
|
236
|
+
*/
|
|
237
|
+
getActionLabel(actionElement, index) {
|
|
238
|
+
const label = actionElement.getAttribute('label')?.trim() || actionElement.getAttribute('aria-label')?.trim();
|
|
239
|
+
if (label !== undefined && label.length > 0) {
|
|
240
|
+
return label;
|
|
241
|
+
}
|
|
242
|
+
return `Ação ${index + 1}`;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Resolve e sanitiza o limite local ou herdado de ações.
|
|
246
|
+
*/
|
|
247
|
+
getNormalizedActionsLimit() {
|
|
248
|
+
if (this.cellActionsLimit !== undefined && Number.isFinite(this.cellActionsLimit)) {
|
|
249
|
+
return Math.max(1, Math.floor(this.cellActionsLimit));
|
|
250
|
+
}
|
|
251
|
+
return this.inheritedCellActionsLimit;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Resolve o limite herdado da tabela quando a célula não possui override local.
|
|
255
|
+
*/
|
|
256
|
+
syncInheritedCellActionsLimit() {
|
|
257
|
+
const tableElement = this.el.closest('br-table');
|
|
258
|
+
const rawValue = tableElement?.getAttribute('cell-actions-limit');
|
|
259
|
+
const parsedValue = rawValue === null || rawValue === undefined ? Number.NaN : Number(rawValue);
|
|
260
|
+
this.inheritedCellActionsLimit = Number.isFinite(parsedValue) ? Math.max(1, Math.floor(parsedValue)) : 4;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Sincroniza as propriedades herdadas da tabela.
|
|
264
|
+
*/
|
|
265
|
+
syncInheritedTableProps() {
|
|
266
|
+
this.syncInheritedCellActionsLimit();
|
|
267
|
+
this.inheritedMoreActionsLabel = this.el.closest('br-table')?.getAttribute('more-actions-label') ?? undefined;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Observa mudanças em runtime nas propriedades herdadas da tabela.
|
|
271
|
+
*/
|
|
272
|
+
observeTableInheritedProps() {
|
|
273
|
+
const tableElement = this.el.closest('br-table');
|
|
274
|
+
if (tableElement === null)
|
|
275
|
+
return;
|
|
276
|
+
this.tableInheritedPropsObserver?.disconnect();
|
|
277
|
+
this.tableInheritedPropsObserver = new MutationObserver((mutations) => {
|
|
278
|
+
if (mutations.some((mutation) => mutation.attributeName === 'cell-actions-limit')) {
|
|
279
|
+
this.syncInheritedCellActionsLimit();
|
|
280
|
+
}
|
|
281
|
+
if (mutations.some((mutation) => mutation.attributeName === 'more-actions-label')) {
|
|
282
|
+
this.inheritedMoreActionsLabel = tableElement.getAttribute('more-actions-label') ?? undefined;
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
this.tableInheritedPropsObserver.observe(tableElement, {
|
|
286
|
+
attributes: true,
|
|
287
|
+
attributeFilter: ['cell-actions-limit', 'more-actions-label'],
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Informa se as ações precisam ser agrupadas em um menu.
|
|
292
|
+
*/
|
|
293
|
+
shouldCollapseTableActions() {
|
|
294
|
+
if (!this.hasOnlyTableActionContent) {
|
|
295
|
+
return false;
|
|
296
|
+
}
|
|
297
|
+
return this.tableActions.length > this.getNormalizedActionsLimit();
|
|
86
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Cria o detalhe de uma ação selecionada no menu excedente.
|
|
301
|
+
*/
|
|
302
|
+
getCollapsedActionDetail(label) {
|
|
303
|
+
return {
|
|
304
|
+
type: 'row',
|
|
305
|
+
label,
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Publica o clique de uma ação agrupada.
|
|
310
|
+
*/
|
|
311
|
+
handleCollapsedActionClick(event, label) {
|
|
312
|
+
event.preventDefault();
|
|
313
|
+
event.stopPropagation();
|
|
314
|
+
this.el.dispatchEvent(new CustomEvent('brTableActionClick', {
|
|
315
|
+
bubbles: true,
|
|
316
|
+
composed: true,
|
|
317
|
+
detail: this.getCollapsedActionDetail(label),
|
|
318
|
+
}));
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Extrai o texto completo atribuído ao slot.
|
|
322
|
+
*/
|
|
87
323
|
getFullCellContent() {
|
|
88
324
|
if (this.contentSlotRef === null) {
|
|
89
325
|
return '';
|
|
@@ -94,29 +330,34 @@ export class TableCell {
|
|
|
94
330
|
.filter((text) => text.length > 0)
|
|
95
331
|
.join(' ');
|
|
96
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* Localiza o cabeçalho correspondente ao índice desta célula.
|
|
335
|
+
*/
|
|
97
336
|
getColumnHeader() {
|
|
98
|
-
const table =
|
|
337
|
+
const table = this.el.closest('br-table');
|
|
99
338
|
if (table === null) {
|
|
100
339
|
return null;
|
|
101
340
|
}
|
|
102
|
-
const row =
|
|
341
|
+
const row = this.el.closest('br-table-row');
|
|
103
342
|
if (row === null) {
|
|
104
343
|
return null;
|
|
105
344
|
}
|
|
106
|
-
const cells = Array.from(row.querySelectorAll('br-table-cell'))
|
|
345
|
+
const cells = Array.from(row.querySelectorAll('br-table-cell'));
|
|
107
346
|
const columnIndex = cells.indexOf(this.el);
|
|
108
347
|
if (columnIndex === -1) {
|
|
109
348
|
return null;
|
|
110
349
|
}
|
|
111
|
-
const headers = Array.from(table.querySelectorAll('br-table-header-cell'))
|
|
350
|
+
const headers = Array.from(table.querySelectorAll('br-table-header-cell'));
|
|
112
351
|
return headers[columnIndex] ?? null;
|
|
113
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* Resolve o estado do tooltip seguindo a hierarquia da tabela.
|
|
355
|
+
*/
|
|
114
356
|
resolveTooltipState() {
|
|
115
357
|
const cellValue = this.el.getAttribute('tooltip-state');
|
|
116
|
-
if (cellValue !== null)
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
const row = findComposedOwner(this.el, 'br-table-row');
|
|
358
|
+
if (cellValue !== null)
|
|
359
|
+
return cellValue;
|
|
360
|
+
const row = this.el.closest('br-table-row');
|
|
120
361
|
const rowValue = row?.getAttribute('tooltip-state');
|
|
121
362
|
if (rowValue !== null)
|
|
122
363
|
return rowValue;
|
|
@@ -124,17 +365,19 @@ export class TableCell {
|
|
|
124
365
|
const columnValue = columnHeader?.getAttribute('tooltip-state');
|
|
125
366
|
if (columnValue !== null)
|
|
126
367
|
return columnValue;
|
|
127
|
-
const table =
|
|
368
|
+
const table = this.el.closest('br-table');
|
|
128
369
|
const tableValue = table?.getAttribute('tooltip-state');
|
|
129
370
|
if (tableValue !== null)
|
|
130
371
|
return tableValue;
|
|
131
372
|
return TABLE_TOOLTIP_STATE.INFO;
|
|
132
373
|
}
|
|
374
|
+
/**
|
|
375
|
+
* Resolve o modo do tooltip seguindo a hierarquia da tabela.
|
|
376
|
+
*/
|
|
133
377
|
resolveTooltipMode() {
|
|
134
378
|
const cellValue = this.el.getAttribute('tooltip-mode');
|
|
135
|
-
if (cellValue !== null && cellValue !== TABLE_TOOLTIP_MODE.INHERIT)
|
|
136
|
-
return
|
|
137
|
-
}
|
|
379
|
+
if (cellValue !== null && cellValue !== TABLE_TOOLTIP_MODE.INHERIT)
|
|
380
|
+
return cellValue;
|
|
138
381
|
const row = this.el.closest('br-table-row');
|
|
139
382
|
const rowValue = row?.getAttribute('tooltip-mode');
|
|
140
383
|
if (rowValue !== null && rowValue !== TABLE_TOOLTIP_MODE.INHERIT)
|
|
@@ -150,34 +393,53 @@ export class TableCell {
|
|
|
150
393
|
return TABLE_TOOLTIP_MODE.DISABLED;
|
|
151
394
|
}
|
|
152
395
|
/**
|
|
153
|
-
*
|
|
396
|
+
* Publica a solicitação de recálculo dos alinhamentos.
|
|
154
397
|
*/
|
|
155
398
|
notifyAlignmentChange() {
|
|
156
399
|
this.brAlignmentChange.emit();
|
|
157
400
|
}
|
|
158
401
|
/**
|
|
159
|
-
*
|
|
402
|
+
* Publica a solicitação de recálculo do overflow.
|
|
160
403
|
*/
|
|
161
404
|
notifyOverflowChange() {
|
|
162
405
|
this.brOverflowChange.emit();
|
|
163
406
|
}
|
|
407
|
+
observeDensitySources() {
|
|
408
|
+
this.densityObserver?.disconnect();
|
|
409
|
+
this.densityObserver = null;
|
|
410
|
+
if (this.el.closest('br-table') !== null)
|
|
411
|
+
return;
|
|
412
|
+
this.densityObserver = new MutationObserver(this.syncActionDensity);
|
|
413
|
+
const densitySources = [
|
|
414
|
+
this.el,
|
|
415
|
+
this.el.closest('br-table-row'),
|
|
416
|
+
this.el.closest('br-table'),
|
|
417
|
+
];
|
|
418
|
+
densitySources
|
|
419
|
+
.filter((element) => element !== null)
|
|
420
|
+
.forEach((element) => {
|
|
421
|
+
this.densityObserver?.observe(element, { attributes: true, attributeFilter: ['style', 'class', 'density'] });
|
|
422
|
+
});
|
|
423
|
+
}
|
|
164
424
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* @returns Um objeto representando as classes CSS a serem aplicadas ao elemento da célula da tabela.
|
|
425
|
+
* Renderiza o menu que contém as ações excedentes.
|
|
168
426
|
*/
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
};
|
|
427
|
+
renderActionsDropdown(actions) {
|
|
428
|
+
const tooltipLabel = (this.inheritedMoreActionsLabel ?? this.moreActionsLabel)?.trim() || 'Mais ações';
|
|
429
|
+
return (h(Fragment, null, h("br-dropdown", { placement: "bottom-end", targetZIndex: "var(--z-index-layer-3)", "prop:ariaLabel": "Mais a\u00E7\u00F5es da linha", ref: (element) => (this.actionsTooltip.dropdown = element), onBrDropdownOpenChange: this.actionsTooltip.hide }, h("br-button", { slot: "trigger", shape: "circle", density: this.effectiveActionDensity, emphasis: "tertiary", "prop:ariaLabel": "Abrir menu de a\u00E7\u00F5es", ref: (element) => (this.actionsTooltip.trigger = element), onPointerEnter: this.actionsTooltip.show, onPointerLeave: this.actionsTooltip.hide, onFocus: this.actionsTooltip.show, onBlur: this.actionsTooltip.hide, onClick: this.actionsTooltip.hide }, h("br-icon", { "attr:iconName": "fa-solid:ellipsis-v" })), h("br-list", { class: "cell-actions-dropdown-list", slot: "target", "list-title": "A\u00E7\u00F5es", divider: true }, actions.map((action) => (h("br-item", { isButton: true, type: "button", density: "small", "data-no-selection": true, onBrDidClick: (event) => this.handleCollapsedActionClick(event, action.label) }, action.label))))), h("br-tooltip", { ref: (element) => (this.actionsTooltip.tooltip = element), hideDelay: 3000 }, h("span", { slot: "content" }, tooltipLabel))));
|
|
173
430
|
}
|
|
174
431
|
/**
|
|
175
|
-
* Renderiza o
|
|
176
|
-
*
|
|
177
|
-
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da célula da tabela.
|
|
432
|
+
* Renderiza o conteúdo, as ações e o tooltip opcional.
|
|
178
433
|
*/
|
|
179
434
|
render() {
|
|
180
|
-
|
|
435
|
+
const shouldCollapseActions = this.shouldCollapseTableActions();
|
|
436
|
+
return (h(Host, { key: '28336fcb0e7e3da9af094ab3f97dadd7c89afd7c', role: this.rowHeader ? 'rowheader' : 'gridcell' }, h("div", { key: '32378da7a8514dc43361557145d0ecda004789b0', class: "br-table-cell", role: "presentation", part: "cell" }, h("div", { key: '1a7181e51fb78331493af7514316159a65892092', class: "br-table-cell-content", role: "presentation", part: "content" }, h("div", { key: '1360b591b744208041d3ac41ec18a4cf7e33b8bc', class: {
|
|
437
|
+
'br-table-cell-truncate': true,
|
|
438
|
+
'has-table-actions': this.hasTableActionContent,
|
|
439
|
+
}, role: "presentation", ref: (el) => (this.truncateContentRef = el), onPointerEnter: this.handleMouseEnter, onPointerLeave: this.handleMouseLeave }, h("div", { key: '251a8d135461a8dcf774aa1943e7a9b01a9e6eb4', class: { 'cell-actions-slot-container': true, 'is-hidden': shouldCollapseActions } }, h("slot", { key: '5e2f00565491bf212659c060d6dacb1176c96004', ref: (el) => (this.contentSlotRef = el), onSlotchange: () => {
|
|
440
|
+
this.updateHasTableActionContent();
|
|
441
|
+
this.syncTableActions();
|
|
442
|
+
} })), shouldCollapseActions && this.renderActionsDropdown(this.tableActions)), this.isTooltipVisible && (h("br-tooltip", { key: '4081ef125267a1a8ac2ce501238bf17189c7ec8e', ref: (el) => (this.tooltipRef = el), position: "top", state: this.resolveTooltipState() === TABLE_TOOLTIP_STATE.DANGER ? 'danger' : this.resolveTooltipState() }, h("span", { key: 'c0f506b336ce0c20e3a493f0d96425baf63666c5', slot: "content" }, this.tooltipContent)))))));
|
|
181
443
|
}
|
|
182
444
|
static get is() { return "br-table-cell"; }
|
|
183
445
|
static get encapsulation() { return "shadow"; }
|
|
@@ -193,6 +455,75 @@ export class TableCell {
|
|
|
193
455
|
}
|
|
194
456
|
static get properties() {
|
|
195
457
|
return {
|
|
458
|
+
"colSpan": {
|
|
459
|
+
"type": "number",
|
|
460
|
+
"mutable": false,
|
|
461
|
+
"complexType": {
|
|
462
|
+
"original": "number",
|
|
463
|
+
"resolved": "number",
|
|
464
|
+
"references": {}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": false,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [{
|
|
470
|
+
"name": "default",
|
|
471
|
+
"text": "1"
|
|
472
|
+
}],
|
|
473
|
+
"text": "Quantidade de colunas ocupadas. Inteiro entre 1 e 1000; valores inv\u00E1lidos usam 1."
|
|
474
|
+
},
|
|
475
|
+
"getter": false,
|
|
476
|
+
"setter": false,
|
|
477
|
+
"reflect": true,
|
|
478
|
+
"attribute": "col-span",
|
|
479
|
+
"defaultValue": "1"
|
|
480
|
+
},
|
|
481
|
+
"rowSpan": {
|
|
482
|
+
"type": "number",
|
|
483
|
+
"mutable": false,
|
|
484
|
+
"complexType": {
|
|
485
|
+
"original": "number",
|
|
486
|
+
"resolved": "number",
|
|
487
|
+
"references": {}
|
|
488
|
+
},
|
|
489
|
+
"required": false,
|
|
490
|
+
"optional": false,
|
|
491
|
+
"docs": {
|
|
492
|
+
"tags": [{
|
|
493
|
+
"name": "default",
|
|
494
|
+
"text": "1"
|
|
495
|
+
}],
|
|
496
|
+
"text": "Quantidade de linhas ocupadas no cabe\u00E7alho ou grupo. Limitada \u00E0s linhas\ndispon\u00EDveis; aceita inteiros de 1 a 1000 e valores inv\u00E1lidos usam 1."
|
|
497
|
+
},
|
|
498
|
+
"getter": false,
|
|
499
|
+
"setter": false,
|
|
500
|
+
"reflect": true,
|
|
501
|
+
"attribute": "row-span",
|
|
502
|
+
"defaultValue": "1"
|
|
503
|
+
},
|
|
504
|
+
"rowHeader": {
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"mutable": false,
|
|
507
|
+
"complexType": {
|
|
508
|
+
"original": "boolean",
|
|
509
|
+
"resolved": "boolean",
|
|
510
|
+
"references": {}
|
|
511
|
+
},
|
|
512
|
+
"required": false,
|
|
513
|
+
"optional": false,
|
|
514
|
+
"docs": {
|
|
515
|
+
"tags": [{
|
|
516
|
+
"name": "default",
|
|
517
|
+
"text": "false"
|
|
518
|
+
}],
|
|
519
|
+
"text": "Identifica um cabe\u00E7alho de linha, inclusive r\u00F3tulos compartilhados por um grupo."
|
|
520
|
+
},
|
|
521
|
+
"getter": false,
|
|
522
|
+
"setter": false,
|
|
523
|
+
"reflect": true,
|
|
524
|
+
"attribute": "row-header",
|
|
525
|
+
"defaultValue": "false"
|
|
526
|
+
},
|
|
196
527
|
"horizontalAlignment": {
|
|
197
528
|
"type": "string",
|
|
198
529
|
"mutable": false,
|
|
@@ -202,8 +533,8 @@ export class TableCell {
|
|
|
202
533
|
"references": {
|
|
203
534
|
"TableAlignment": {
|
|
204
535
|
"location": "import",
|
|
205
|
-
"path": "../table
|
|
206
|
-
"id": "src/components/table/table
|
|
536
|
+
"path": "../table.types",
|
|
537
|
+
"id": "src/components/table/table.types.ts::TableAlignment",
|
|
207
538
|
"referenceLocation": "TableAlignment"
|
|
208
539
|
}
|
|
209
540
|
}
|
|
@@ -211,8 +542,11 @@ export class TableCell {
|
|
|
211
542
|
"required": false,
|
|
212
543
|
"optional": true,
|
|
213
544
|
"docs": {
|
|
214
|
-
"tags": [
|
|
215
|
-
|
|
545
|
+
"tags": [{
|
|
546
|
+
"name": "default",
|
|
547
|
+
"text": "undefined"
|
|
548
|
+
}],
|
|
549
|
+
"text": "Alinhamento horizontal espec\u00EDfico da c\u00E9lula. Quando omitido, herda da\nlinha, coluna ou tabela, nessa ordem."
|
|
216
550
|
},
|
|
217
551
|
"getter": false,
|
|
218
552
|
"setter": false,
|
|
@@ -228,8 +562,8 @@ export class TableCell {
|
|
|
228
562
|
"references": {
|
|
229
563
|
"TableAlignment": {
|
|
230
564
|
"location": "import",
|
|
231
|
-
"path": "../table
|
|
232
|
-
"id": "src/components/table/table
|
|
565
|
+
"path": "../table.types",
|
|
566
|
+
"id": "src/components/table/table.types.ts::TableAlignment",
|
|
233
567
|
"referenceLocation": "TableAlignment"
|
|
234
568
|
}
|
|
235
569
|
}
|
|
@@ -237,8 +571,11 @@ export class TableCell {
|
|
|
237
571
|
"required": false,
|
|
238
572
|
"optional": true,
|
|
239
573
|
"docs": {
|
|
240
|
-
"tags": [
|
|
241
|
-
|
|
574
|
+
"tags": [{
|
|
575
|
+
"name": "default",
|
|
576
|
+
"text": "undefined"
|
|
577
|
+
}],
|
|
578
|
+
"text": "Alinhamento vertical espec\u00EDfico da c\u00E9lula. Quando omitido, herda da\nlinha, coluna ou tabela, nessa ordem."
|
|
242
579
|
},
|
|
243
580
|
"getter": false,
|
|
244
581
|
"setter": false,
|
|
@@ -254,8 +591,8 @@ export class TableCell {
|
|
|
254
591
|
"references": {
|
|
255
592
|
"TableOverflow": {
|
|
256
593
|
"location": "import",
|
|
257
|
-
"path": "../table
|
|
258
|
-
"id": "src/components/table/table
|
|
594
|
+
"path": "../table.types",
|
|
595
|
+
"id": "src/components/table/table.types.ts::TableOverflow",
|
|
259
596
|
"referenceLocation": "TableOverflow"
|
|
260
597
|
}
|
|
261
598
|
}
|
|
@@ -263,14 +600,84 @@ export class TableCell {
|
|
|
263
600
|
"required": false,
|
|
264
601
|
"optional": true,
|
|
265
602
|
"docs": {
|
|
266
|
-
"tags": [
|
|
267
|
-
|
|
603
|
+
"tags": [{
|
|
604
|
+
"name": "default",
|
|
605
|
+
"text": "undefined"
|
|
606
|
+
}],
|
|
607
|
+
"text": "Estrat\u00E9gia de overflow espec\u00EDfica da c\u00E9lula. Quando omitida, herda da\nlinha, coluna ou tabela, nessa ordem."
|
|
268
608
|
},
|
|
269
609
|
"getter": false,
|
|
270
610
|
"setter": false,
|
|
271
611
|
"reflect": true,
|
|
272
612
|
"attribute": "overflow"
|
|
273
613
|
},
|
|
614
|
+
"cellActionsLimit": {
|
|
615
|
+
"type": "number",
|
|
616
|
+
"mutable": false,
|
|
617
|
+
"complexType": {
|
|
618
|
+
"original": "number",
|
|
619
|
+
"resolved": "number",
|
|
620
|
+
"references": {}
|
|
621
|
+
},
|
|
622
|
+
"required": false,
|
|
623
|
+
"optional": true,
|
|
624
|
+
"docs": {
|
|
625
|
+
"tags": [{
|
|
626
|
+
"name": "default",
|
|
627
|
+
"text": "null"
|
|
628
|
+
}],
|
|
629
|
+
"text": "Limite local de a\u00E7\u00F5es exibidas diretamente."
|
|
630
|
+
},
|
|
631
|
+
"getter": false,
|
|
632
|
+
"setter": false,
|
|
633
|
+
"reflect": true,
|
|
634
|
+
"attribute": "cell-actions-limit"
|
|
635
|
+
},
|
|
636
|
+
"moreActionsLabel": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"mutable": false,
|
|
639
|
+
"complexType": {
|
|
640
|
+
"original": "string",
|
|
641
|
+
"resolved": "string",
|
|
642
|
+
"references": {}
|
|
643
|
+
},
|
|
644
|
+
"required": false,
|
|
645
|
+
"optional": false,
|
|
646
|
+
"docs": {
|
|
647
|
+
"tags": [{
|
|
648
|
+
"name": "default",
|
|
649
|
+
"text": "'Mais a\u00E7\u00F5es'"
|
|
650
|
+
}],
|
|
651
|
+
"text": "Texto completo do tooltip do bot\u00E3o de a\u00E7\u00F5es agrupadas desta c\u00E9lula.\nA propriedade `moreActionsLabel` de `br-table` prevalece quando\ninformada. Valores vazios ou compostos apenas por espa\u00E7os usam \"Mais a\u00E7\u00F5es\".\nN\u00E3o altera o nome acess\u00EDvel do bot\u00E3o nem os r\u00F3tulos das a\u00E7\u00F5es.\nAceita texto simples por atributo ou propriedade, sem reflex\u00E3o."
|
|
652
|
+
},
|
|
653
|
+
"getter": false,
|
|
654
|
+
"setter": false,
|
|
655
|
+
"reflect": false,
|
|
656
|
+
"attribute": "more-actions-label",
|
|
657
|
+
"defaultValue": "'Mais a\u00E7\u00F5es'"
|
|
658
|
+
},
|
|
659
|
+
"sortValue": {
|
|
660
|
+
"type": "any",
|
|
661
|
+
"mutable": false,
|
|
662
|
+
"complexType": {
|
|
663
|
+
"original": "string | number",
|
|
664
|
+
"resolved": "number | string",
|
|
665
|
+
"references": {}
|
|
666
|
+
},
|
|
667
|
+
"required": false,
|
|
668
|
+
"optional": true,
|
|
669
|
+
"docs": {
|
|
670
|
+
"tags": [{
|
|
671
|
+
"name": "default",
|
|
672
|
+
"text": "null"
|
|
673
|
+
}],
|
|
674
|
+
"text": "Valor utilizado pela ordena\u00E7\u00E3o da coluna. Quando omitido, a tabela usa o\ntexto renderizado da c\u00E9lula."
|
|
675
|
+
},
|
|
676
|
+
"getter": false,
|
|
677
|
+
"setter": false,
|
|
678
|
+
"reflect": true,
|
|
679
|
+
"attribute": "sort-value"
|
|
680
|
+
},
|
|
274
681
|
"tooltipState": {
|
|
275
682
|
"type": "string",
|
|
276
683
|
"mutable": false,
|
|
@@ -280,8 +687,8 @@ export class TableCell {
|
|
|
280
687
|
"references": {
|
|
281
688
|
"TableTooltipState": {
|
|
282
689
|
"location": "import",
|
|
283
|
-
"path": "../table
|
|
284
|
-
"id": "src/components/table/table
|
|
690
|
+
"path": "../table.types",
|
|
691
|
+
"id": "src/components/table/table.types.ts::TableTooltipState",
|
|
285
692
|
"referenceLocation": "TableTooltipState"
|
|
286
693
|
}
|
|
287
694
|
}
|
|
@@ -289,8 +696,11 @@ export class TableCell {
|
|
|
289
696
|
"required": false,
|
|
290
697
|
"optional": true,
|
|
291
698
|
"docs": {
|
|
292
|
-
"tags": [
|
|
293
|
-
|
|
699
|
+
"tags": [{
|
|
700
|
+
"name": "default",
|
|
701
|
+
"text": "undefined"
|
|
702
|
+
}],
|
|
703
|
+
"text": "Estado visual do tooltip da c\u00E9lula. Quando omitido, herda da linha,\ncoluna ou tabela, nessa ordem."
|
|
294
704
|
},
|
|
295
705
|
"getter": false,
|
|
296
706
|
"setter": false,
|
|
@@ -306,8 +716,8 @@ export class TableCell {
|
|
|
306
716
|
"references": {
|
|
307
717
|
"TableTooltipMode": {
|
|
308
718
|
"location": "import",
|
|
309
|
-
"path": "../table
|
|
310
|
-
"id": "src/components/table/table
|
|
719
|
+
"path": "../table.types",
|
|
720
|
+
"id": "src/components/table/table.types.ts::TableTooltipMode",
|
|
311
721
|
"referenceLocation": "TableTooltipMode"
|
|
312
722
|
}
|
|
313
723
|
}
|
|
@@ -315,20 +725,55 @@ export class TableCell {
|
|
|
315
725
|
"required": false,
|
|
316
726
|
"optional": true,
|
|
317
727
|
"docs": {
|
|
318
|
-
"tags": [
|
|
319
|
-
|
|
728
|
+
"tags": [{
|
|
729
|
+
"name": "default",
|
|
730
|
+
"text": "undefined"
|
|
731
|
+
}],
|
|
732
|
+
"text": "Modo de exibi\u00E7\u00E3o do tooltip da c\u00E9lula. Quando omitido, herda da linha,\ncoluna ou tabela, nessa ordem. No modo `enabled`, exibe o conte\u00FAdo\nsomente quando estiver truncado na largura dispon\u00EDvel."
|
|
320
733
|
},
|
|
321
734
|
"getter": false,
|
|
322
735
|
"setter": false,
|
|
323
736
|
"reflect": true,
|
|
324
737
|
"attribute": "tooltip-mode"
|
|
738
|
+
},
|
|
739
|
+
"actionDensity": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"mutable": false,
|
|
742
|
+
"complexType": {
|
|
743
|
+
"original": "TableDensity",
|
|
744
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
745
|
+
"references": {
|
|
746
|
+
"TableDensity": {
|
|
747
|
+
"location": "import",
|
|
748
|
+
"path": "../table.types",
|
|
749
|
+
"id": "src/components/table/table.types.ts::TableDensity",
|
|
750
|
+
"referenceLocation": "TableDensity"
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"required": false,
|
|
755
|
+
"optional": true,
|
|
756
|
+
"docs": {
|
|
757
|
+
"tags": [],
|
|
758
|
+
"text": "Densidade visual aplicada ao trigger de a\u00E7\u00F5es agrupadas."
|
|
759
|
+
},
|
|
760
|
+
"getter": false,
|
|
761
|
+
"setter": false,
|
|
762
|
+
"reflect": true,
|
|
763
|
+
"attribute": "action-density"
|
|
325
764
|
}
|
|
326
765
|
};
|
|
327
766
|
}
|
|
328
767
|
static get states() {
|
|
329
768
|
return {
|
|
330
769
|
"isTooltipVisible": {},
|
|
331
|
-
"tooltipContent": {}
|
|
770
|
+
"tooltipContent": {},
|
|
771
|
+
"hasTableActionContent": {},
|
|
772
|
+
"hasOnlyTableActionContent": {},
|
|
773
|
+
"tableActions": {},
|
|
774
|
+
"inheritedCellActionsLimit": {},
|
|
775
|
+
"inheritedMoreActionsLabel": {},
|
|
776
|
+
"effectiveActionDensity": {}
|
|
332
777
|
};
|
|
333
778
|
}
|
|
334
779
|
static get events() {
|
|
@@ -340,7 +785,7 @@ export class TableCell {
|
|
|
340
785
|
"composed": true,
|
|
341
786
|
"docs": {
|
|
342
787
|
"tags": [],
|
|
343
|
-
"text": "
|
|
788
|
+
"text": "Emitido quando um alinhamento espec\u00EDfico da c\u00E9lula muda."
|
|
344
789
|
},
|
|
345
790
|
"complexType": {
|
|
346
791
|
"original": "void",
|
|
@@ -355,7 +800,7 @@ export class TableCell {
|
|
|
355
800
|
"composed": true,
|
|
356
801
|
"docs": {
|
|
357
802
|
"tags": [],
|
|
358
|
-
"text": "
|
|
803
|
+
"text": "Emitido quando a estrat\u00E9gia de overflow da c\u00E9lula muda."
|
|
359
804
|
},
|
|
360
805
|
"complexType": {
|
|
361
806
|
"original": "void",
|
|
@@ -364,6 +809,34 @@ export class TableCell {
|
|
|
364
809
|
}
|
|
365
810
|
}];
|
|
366
811
|
}
|
|
812
|
+
static get methods() {
|
|
813
|
+
return {
|
|
814
|
+
"getMeasuredHeight": {
|
|
815
|
+
"complexType": {
|
|
816
|
+
"signature": "() => Promise<number>",
|
|
817
|
+
"parameters": [],
|
|
818
|
+
"references": {
|
|
819
|
+
"Promise": {
|
|
820
|
+
"location": "global",
|
|
821
|
+
"id": "global::Promise"
|
|
822
|
+
},
|
|
823
|
+
"HTMLElement": {
|
|
824
|
+
"location": "global",
|
|
825
|
+
"id": "global::HTMLElement"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"return": "Promise<number>"
|
|
829
|
+
},
|
|
830
|
+
"docs": {
|
|
831
|
+
"text": "Retorna a altura renderizada da superf\u00EDcie visual desta c\u00E9lula, em pixels.",
|
|
832
|
+
"tags": [{
|
|
833
|
+
"name": "returns",
|
|
834
|
+
"text": "Altura da superf\u00EDcie da c\u00E9lula; zero se ela ainda n\u00E3o estiver renderizada."
|
|
835
|
+
}]
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
}
|
|
367
840
|
static get elementRef() { return "el"; }
|
|
368
841
|
static get watchers() {
|
|
369
842
|
return [{
|
|
@@ -375,9 +848,9 @@ export class TableCell {
|
|
|
375
848
|
}, {
|
|
376
849
|
"propName": "overflow",
|
|
377
850
|
"methodName": "handleOverflowChange"
|
|
851
|
+
}, {
|
|
852
|
+
"propName": "actionDensity",
|
|
853
|
+
"methodName": "handleActionDensityChange"
|
|
378
854
|
}];
|
|
379
855
|
}
|
|
380
856
|
}
|
|
381
|
-
const requestAnimationFramePromise = () => new Promise((resolve) => {
|
|
382
|
-
requestAnimationFrame(() => resolve());
|
|
383
|
-
});
|