@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
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Construído por SERPRO
|
|
3
|
-
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Valores semânticos para largura de coluna.
|
|
7
|
-
*
|
|
8
|
-
* Representam intenções de layout, abstraindo valores CSS concretos.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* - FILL: ocupa o espaço disponível (1fr)
|
|
12
|
-
* - CONTENT: ajusta ao conteúdo (max-content)
|
|
13
|
-
*/
|
|
14
|
-
const COLUMN_WIDTH_SEMANTICS = {
|
|
15
|
-
FILL: 'fill',
|
|
16
|
-
CONTENT: 'content',
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Mapeia larguras semânticas para valores CSS reais.
|
|
20
|
-
*/
|
|
21
|
-
const COLUMN_WIDTH_MAP = {
|
|
22
|
-
[COLUMN_WIDTH_SEMANTICS.FILL]: '1fr',
|
|
23
|
-
[COLUMN_WIDTH_SEMANTICS.CONTENT]: 'max-content',
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Densidades disponíveis para controle de espaçamento da tabela.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* - SMALL: compacto
|
|
30
|
-
* - MEDIUM: padrão
|
|
31
|
-
* - LARGE: espaçado
|
|
32
|
-
*/
|
|
33
|
-
const TABLE_DENSITY = {
|
|
34
|
-
SMALL: 'small',
|
|
35
|
-
MEDIUM: 'medium',
|
|
36
|
-
LARGE: 'large',
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Mapeia densidades para valores CSS de espaçamento.
|
|
40
|
-
*/
|
|
41
|
-
const TABLE_DENSITY_MAP = {
|
|
42
|
-
[TABLE_DENSITY.SMALL]: '8px',
|
|
43
|
-
[TABLE_DENSITY.MEDIUM]: '16px',
|
|
44
|
-
[TABLE_DENSITY.LARGE]: '24px',
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Opções de alinhamento do conteúdo nas células.
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* - START
|
|
51
|
-
* - CENTER
|
|
52
|
-
* - END
|
|
53
|
-
*/
|
|
54
|
-
const TABLE_ALIGNMENT = {
|
|
55
|
-
START: 'start',
|
|
56
|
-
CENTER: 'center',
|
|
57
|
-
END: 'end',
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Mapeia alinhamentos para valores CSS de posicionamento.
|
|
61
|
-
*/
|
|
62
|
-
const TABLE_ALIGNMENT_MAP = {
|
|
63
|
-
[TABLE_ALIGNMENT.START]: 'flex-start',
|
|
64
|
-
[TABLE_ALIGNMENT.CENTER]: 'center',
|
|
65
|
-
[TABLE_ALIGNMENT.END]: 'flex-end',
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* Estilos visuais disponíveis para divisores.
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* - SOLID
|
|
72
|
-
* - DASHED
|
|
73
|
-
*/
|
|
74
|
-
const TABLE_DIVIDER_STYLE = {
|
|
75
|
-
SOLID: 'solid',
|
|
76
|
-
DASHED: 'dashed',
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Mapeia estilos de divisor para valores CSS reais.
|
|
80
|
-
*/
|
|
81
|
-
const TABLE_DIVIDER_STYLE_MAP = {
|
|
82
|
-
[TABLE_DIVIDER_STYLE.SOLID]: 'solid',
|
|
83
|
-
[TABLE_DIVIDER_STYLE.DASHED]: 'dashed',
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Opções de comportamento de overflow para células.
|
|
87
|
-
*
|
|
88
|
-
* @remarks
|
|
89
|
-
* - HIDDEN: oculta o conteúdo que ultrapassa os limites da célula
|
|
90
|
-
* - VISIBLE: permite que o conteúdo ultrapasse os limites da célula
|
|
91
|
-
*/
|
|
92
|
-
const TABLE_CELL_OVERFLOW = {
|
|
93
|
-
HIDDEN: 'hidden',
|
|
94
|
-
VISIBLE: 'visible',
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Opções de comportamento de overflow para texto dentro das células.
|
|
98
|
-
*
|
|
99
|
-
* @remarks
|
|
100
|
-
* - ELLIPSIS: exibe reticências (...) quando o texto ultrapassa os limites da célula
|
|
101
|
-
* - CLIP: corta o texto que ultrapassa os limites da célula
|
|
102
|
-
*/
|
|
103
|
-
const TABLE_CELL_TEXT_OVERFLOW = {
|
|
104
|
-
ELLIPSIS: 'ellipsis',
|
|
105
|
-
CLIP: 'clip',
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Opções de controle de quebra de linha para células.
|
|
109
|
-
*
|
|
110
|
-
* @remarks
|
|
111
|
-
* - NOWRAP: impede que o texto quebre em múltiplas linhas
|
|
112
|
-
* - NORMAL: permite que o texto quebre normalmente
|
|
113
|
-
*/
|
|
114
|
-
const TABLE_CELL_WHITE_SPACE = {
|
|
115
|
-
NOWRAP: 'nowrap',
|
|
116
|
-
NORMAL: 'normal',
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Opções de controle de truncagem para células.
|
|
120
|
-
*
|
|
121
|
-
* @remarks
|
|
122
|
-
* - TRUNCATE: exibe reticências (...) quando o texto ultrapassa os limites da célula
|
|
123
|
-
* - WRAP: permite que o texto quebre em múltiplas linhas
|
|
124
|
-
*/
|
|
125
|
-
const TABLE_OVERFLOW = {
|
|
126
|
-
TRUNCATE: 'truncate',
|
|
127
|
-
WRAP: 'wrap',
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Estados semânticos disponíveis para o tooltip das células.
|
|
131
|
-
*
|
|
132
|
-
* @remarks
|
|
133
|
-
* - INFO
|
|
134
|
-
* - WARNING
|
|
135
|
-
* - DANGER
|
|
136
|
-
* - SUCCESS
|
|
137
|
-
*/
|
|
138
|
-
const TABLE_TOOLTIP_STATE = {
|
|
139
|
-
INFO: 'info',
|
|
140
|
-
DANGER: 'danger'};
|
|
141
|
-
/**
|
|
142
|
-
* Modos de resolução do tooltip nas células.
|
|
143
|
-
*
|
|
144
|
-
* @remarks
|
|
145
|
-
* - INHERIT: continua a resolução hierárquica
|
|
146
|
-
* - ENABLED: habilita o tooltip explicitamente
|
|
147
|
-
* - DISABLED: desabilita o tooltip explicitamente
|
|
148
|
-
*/
|
|
149
|
-
const TABLE_TOOLTIP_MODE = {
|
|
150
|
-
INHERIT: 'inherit',
|
|
151
|
-
ENABLED: 'enabled',
|
|
152
|
-
DISABLED: 'disabled',
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* Mapeia opções de controle de truncagem para configurações CSS correspondentes.
|
|
156
|
-
*/
|
|
157
|
-
const TABLE_OVERFLOW_MAP = {
|
|
158
|
-
[TABLE_OVERFLOW.TRUNCATE]: {
|
|
159
|
-
overflow: TABLE_CELL_OVERFLOW.HIDDEN,
|
|
160
|
-
textOverflow: TABLE_CELL_TEXT_OVERFLOW.ELLIPSIS,
|
|
161
|
-
whiteSpace: TABLE_CELL_WHITE_SPACE.NOWRAP,
|
|
162
|
-
},
|
|
163
|
-
[TABLE_OVERFLOW.WRAP]: {
|
|
164
|
-
overflow: TABLE_CELL_OVERFLOW.VISIBLE,
|
|
165
|
-
textOverflow: TABLE_CELL_TEXT_OVERFLOW.CLIP,
|
|
166
|
-
whiteSpace: TABLE_CELL_WHITE_SPACE.NORMAL,
|
|
167
|
-
},
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export { COLUMN_WIDTH_MAP as C, TABLE_TOOLTIP_MODE as T, TABLE_TOOLTIP_STATE as a, TABLE_OVERFLOW as b, COLUMN_WIDTH_SEMANTICS as c, TABLE_ALIGNMENT_MAP as d, TABLE_ALIGNMENT as e, TABLE_OVERFLOW_MAP as f, TABLE_DENSITY_MAP as g, TABLE_DENSITY as h, TABLE_DIVIDER_STYLE_MAP as i, TABLE_DIVIDER_STYLE as j };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tokens CSS utilizados pela tabela.
|
|
3
|
-
* Centralizam variáveis customizadas para controle de layout e estilo.
|
|
4
|
-
*/
|
|
5
|
-
export declare const TABLE_TOKENS: {
|
|
6
|
-
/**
|
|
7
|
-
* Define o template de colunas aplicado ao grid.
|
|
8
|
-
*/
|
|
9
|
-
readonly COLUMN_WIDTHS: "--br-table-column-widths";
|
|
10
|
-
/**
|
|
11
|
-
* Controla o espaçamento interno das células.
|
|
12
|
-
*/
|
|
13
|
-
readonly DENSITY: "--br-table-density";
|
|
14
|
-
/**
|
|
15
|
-
* Define o alinhamento horizontal do conteúdo das células.
|
|
16
|
-
*/
|
|
17
|
-
readonly HORIZONTAL_ALIGNMENT: "--br-table-horizontal-alignment";
|
|
18
|
-
/**
|
|
19
|
-
* Define o alinhamento vertical do conteúdo das células.
|
|
20
|
-
*/
|
|
21
|
-
readonly VERTICAL_ALIGNMENT: "--br-table-vertical-alignment";
|
|
22
|
-
/**
|
|
23
|
-
* Define o estilo visual das linhas divisórias.
|
|
24
|
-
*/
|
|
25
|
-
readonly DIVIDER_STYLE: "--br-table-divider-style";
|
|
26
|
-
/**
|
|
27
|
-
* Controla a visibilidade/intensidade do divisor entre colunas.
|
|
28
|
-
*/
|
|
29
|
-
readonly COLUMN_DIVIDER_FACTOR: "--br-table-column-divider-factor";
|
|
30
|
-
/**
|
|
31
|
-
* Controla a visibilidade/intensidade do divisor entre linhas.
|
|
32
|
-
*/
|
|
33
|
-
readonly ROW_DIVIDER_FACTOR: "--br-table-row-divider-factor";
|
|
34
|
-
/**
|
|
35
|
-
* Controla o comportamento de overflow do conteúdo das células.
|
|
36
|
-
*/
|
|
37
|
-
readonly CELL_OVERFLOW: "--br-table-cell-overflow";
|
|
38
|
-
/**
|
|
39
|
-
* Controla o comportamento de overflow de texto dentro das células.
|
|
40
|
-
*/
|
|
41
|
-
readonly CELL_TEXT_OVERFLOW: "--br-table-cell-text-overflow";
|
|
42
|
-
/**
|
|
43
|
-
* Controla o comportamento de quebra de linha dentro das células.
|
|
44
|
-
*/
|
|
45
|
-
readonly CELL_WHITE_SPACE: "--br-table-cell-white-space";
|
|
46
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { COLUMN_WIDTH_SEMANTICS, TABLE_ALIGNMENT, TABLE_CELL_OVERFLOW, TABLE_CELL_TEXT_OVERFLOW, TABLE_CELL_WHITE_SPACE, TABLE_DENSITY, TABLE_DIVIDER_STYLE, TABLE_OVERFLOW, TABLE_TOOLTIP_MODE, TABLE_TOOLTIP_STATE } from './table-constants';
|
|
2
|
-
/**
|
|
3
|
-
* Extrai os valores de um objeto como união de tipos.
|
|
4
|
-
*
|
|
5
|
-
* @template T Objeto base.
|
|
6
|
-
*/
|
|
7
|
-
type ValueOf<T> = T[keyof T];
|
|
8
|
-
/**
|
|
9
|
-
* Representa um valor numérico com unidade fixa em pixels.
|
|
10
|
-
*
|
|
11
|
-
* @example 100px
|
|
12
|
-
*/
|
|
13
|
-
type CSSFixed = `${number}px`;
|
|
14
|
-
/**
|
|
15
|
-
* Representa um valor numérico com unidade fr (fração de grid).
|
|
16
|
-
*
|
|
17
|
-
* @example 1fr
|
|
18
|
-
*/
|
|
19
|
-
type CSSFraction = `${number}fr`;
|
|
20
|
-
/**
|
|
21
|
-
* Define as larguras de coluna suportadas pela tabela.
|
|
22
|
-
*
|
|
23
|
-
* @remarks Valores possíveis:
|
|
24
|
-
* - fill
|
|
25
|
-
* - content
|
|
26
|
-
* - ${number}px
|
|
27
|
-
* - ${number}fr
|
|
28
|
-
*/
|
|
29
|
-
export type ColumnWidth = ValueOf<typeof COLUMN_WIDTH_SEMANTICS> | CSSFixed | CSSFraction;
|
|
30
|
-
/**
|
|
31
|
-
* Define as densidades suportadas pela tabela.
|
|
32
|
-
*
|
|
33
|
-
* @remarks Valores possíveis:
|
|
34
|
-
* - small
|
|
35
|
-
* - medium
|
|
36
|
-
* - large
|
|
37
|
-
*/
|
|
38
|
-
export type TableDensity = ValueOf<typeof TABLE_DENSITY>;
|
|
39
|
-
/**
|
|
40
|
-
* Define os alinhamentos suportados para o conteúdo das células.
|
|
41
|
-
*
|
|
42
|
-
* @remarks Valores possíveis:
|
|
43
|
-
* - start
|
|
44
|
-
* - center
|
|
45
|
-
* - end
|
|
46
|
-
*/
|
|
47
|
-
export type TableAlignment = ValueOf<typeof TABLE_ALIGNMENT>;
|
|
48
|
-
/**
|
|
49
|
-
* Define os estilos de divisor suportados.
|
|
50
|
-
*
|
|
51
|
-
* @remarks Valores possíveis:
|
|
52
|
-
* - solid
|
|
53
|
-
* - dashed
|
|
54
|
-
*/
|
|
55
|
-
export type TableDividerStyle = ValueOf<typeof TABLE_DIVIDER_STYLE>;
|
|
56
|
-
/**
|
|
57
|
-
* Define as opções de overflow para células da tabela.
|
|
58
|
-
*
|
|
59
|
-
* @remarks Valores possíveis:
|
|
60
|
-
* - hidden
|
|
61
|
-
* - visible
|
|
62
|
-
*/
|
|
63
|
-
export type TableCellOverflow = ValueOf<typeof TABLE_CELL_OVERFLOW>;
|
|
64
|
-
/**
|
|
65
|
-
* Define as opções de overflow de texto para células da tabela.
|
|
66
|
-
*
|
|
67
|
-
* @remarks Valores possíveis:
|
|
68
|
-
* - ellipsis
|
|
69
|
-
* - clip
|
|
70
|
-
*/
|
|
71
|
-
export type TableCellTextOverflow = ValueOf<typeof TABLE_CELL_TEXT_OVERFLOW>;
|
|
72
|
-
/**
|
|
73
|
-
* Define as opções de controle de quebra de linha para células da tabela.
|
|
74
|
-
*
|
|
75
|
-
* @remarks Valores possíveis:
|
|
76
|
-
* - nowrap
|
|
77
|
-
* - normal
|
|
78
|
-
*/
|
|
79
|
-
export type TableCellWhiteSpace = ValueOf<typeof TABLE_CELL_WHITE_SPACE>;
|
|
80
|
-
/**
|
|
81
|
-
* Define as opções de controle de overflow para a tabela como um todo.
|
|
82
|
-
*
|
|
83
|
-
* @remarks Valores possíveis:
|
|
84
|
-
* - hidden
|
|
85
|
-
* - visible
|
|
86
|
-
*/
|
|
87
|
-
export type TableOverflow = ValueOf<typeof TABLE_OVERFLOW>;
|
|
88
|
-
/**
|
|
89
|
-
* Define os estados semânticos suportados para o tooltip das células.
|
|
90
|
-
*
|
|
91
|
-
* @remarks Valores possíveis:
|
|
92
|
-
* - info
|
|
93
|
-
* - warning
|
|
94
|
-
* - danger
|
|
95
|
-
* - success
|
|
96
|
-
*/
|
|
97
|
-
export type TableTooltipState = ValueOf<typeof TABLE_TOOLTIP_STATE>;
|
|
98
|
-
/**
|
|
99
|
-
* Define os modos de resolução do tooltip nas células.
|
|
100
|
-
*
|
|
101
|
-
* @remarks Valores possíveis:
|
|
102
|
-
* - inherit
|
|
103
|
-
* - enabled
|
|
104
|
-
* - disabled
|
|
105
|
-
*/
|
|
106
|
-
export type TableTooltipMode = ValueOf<typeof TABLE_TOOLTIP_MODE>;
|
|
107
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mapa de valores semânticos para seus equivalentes CSS.
|
|
3
|
-
*/
|
|
4
|
-
type SemanticMap = Record<string, string>;
|
|
5
|
-
/**
|
|
6
|
-
* Função de validação para valores dinâmicos de token.
|
|
7
|
-
*
|
|
8
|
-
* @param value Valor a ser validado.
|
|
9
|
-
* @returns Indica se o valor é considerado válido.
|
|
10
|
-
*/
|
|
11
|
-
type Validator = (value: string) => boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Resolve um valor de token aplicando validação e fallback.
|
|
14
|
-
*
|
|
15
|
-
* @param raw Valor bruto informado.
|
|
16
|
-
* @param options Configurações de resolução.
|
|
17
|
-
* @param options.fallback Valor padrão utilizado quando `raw` é inválido.
|
|
18
|
-
* @param options.semanticMap Mapa opcional de valores semânticos.
|
|
19
|
-
* @param options.validators Lista opcional de validadores.
|
|
20
|
-
*
|
|
21
|
-
* @returns Valor final resolvido.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Ordem de resolução:
|
|
25
|
-
* 1. Retorna fallback se `raw` for vazio ou indefinido.
|
|
26
|
-
* 2. Retorna o valor do mapa semântico, se aplicável.
|
|
27
|
-
* 3. Retorna `raw` se passar por algum validador.
|
|
28
|
-
* 4. Caso contrário, retorna o fallback.
|
|
29
|
-
*/
|
|
30
|
-
export declare function resolveTokenValue(raw: string | undefined, options: {
|
|
31
|
-
fallback: string;
|
|
32
|
-
semanticMap?: SemanticMap;
|
|
33
|
-
validators?: Validator[];
|
|
34
|
-
}): string;
|
|
35
|
-
/**
|
|
36
|
-
* Valida valores positivos em pixels.
|
|
37
|
-
*
|
|
38
|
-
* @example 16px
|
|
39
|
-
*/
|
|
40
|
-
export declare const positivePxValidator: Validator;
|
|
41
|
-
/**
|
|
42
|
-
* Valida valores positivos em frações de grid.
|
|
43
|
-
*
|
|
44
|
-
* @example 1fr
|
|
45
|
-
*/
|
|
46
|
-
export declare const positiveFrValidator: Validator;
|
|
47
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Construído por SERPRO
|
|
3
|
-
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as e,h as a,H as i,g as r}from"./p-ConyRdJe.js";import{r as o}from"./p-6Da1SZ3J.js";import{g as s,s as n,i as l,e as h,r as d}from"./p-BkWWrDEr.js";import{g as c}from"./p-BeJxz5TQ.js";import{a as g,r as v,b as m}from"./p-EbtQZm5s.js";import{b as u,a as b}from"./p-Bt01zQ7-.js";import"./p-BlGV-x0w.js";const p=class{constructor(a){t(this,a),this.valueChange=e(this,"valueChange",7),this.brTextareaValidationChange=e(this,"brTextareaValidationChange",7),a.$hostElement$["s-ei"]?this.elementInternals=a.$hostElement$["s-ei"]:(this.elementInternals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.elementInternals),this.formDisabled=!1,this.hasDefaultSlot=!1,this.hasFeedbackSlot=!1,this.hasValidationLoadingSlot=!1,this.isValidating=!1,this.validatorMessage=null,this.value="",this.customId=c(),this.disabled=!1,this.required=!1,this.readonly=!1,this.minlength=0,this.maxlength=0,this.showCounter=!1,this.density="medium",this.isInline=!1,this.autoGrow=!1,this.initialValue="",this.manualValidationMessage="",this.validationRunId=0,this.setNativeTextarea=t=>{this.nativeTextarea!==t&&(this.autoGrowResizeObserver?.disconnect(),this.autoGrowResizeObserver=void 0,this.autoGrowObservedWidth=void 0,this.nativeTextarea=t,this.syncAutoGrowObservation())},this.handleInput=t=>{this.value=t.target.value,this.syncAutoGrowHeight(),this.valueChange.emit(this.value),o(this.el,t,"input")},this.handleChange=t=>{o(this.el,t,"change"),this.validate()}}formDisabledCallback(t){this.formDisabled=t,this.updateValidity()}formResetCallback(){this.validationRunId++,this.validatorMessage=null,this.isValidating=!1,this.manualValidationMessage="",this.value=this.initialValue,this.nativeTextarea&&(this.nativeTextarea.value=this.initialValue,this.nativeTextarea.setCustomValidity(""),this.syncAutoGrowHeight()),this.syncFormState(this.initialValue)}formStateRestoreCallback(t){const e="string"==typeof t?t:"";this.value=e,this.nativeTextarea&&(this.nativeTextarea.value=e,this.syncAutoGrowHeight()),this.syncFormState(e)}get currentLength(){return this.value?.length??0}valueChanged(){this.validationRunId++,this.validatorMessage=null,this.syncFormState(this.value??""),this.updateValidity()}autoGrowChanged(){this.syncAutoGrowObservation(),this.syncAutoGrowHeight()}componentWillLoad(){this.initialValue=this.value??"",this.checkSlotContent(),this.hasValidationLoadingSlot=null!==this.el.querySelector('[slot="validation-loading"]'),this.syncFormState(this.value??"")}componentDidLoad(){this.updateValidity(),this.syncAutoGrowObservation(),this.syncAutoGrowHeight(),this.el.hasAttribute("autofocus")&&this.nativeTextarea?.focus()}componentDidRender(){this.syncAutoGrowHeight()}disconnectedCallback(){this.autoGrowResizeObserver?.disconnect(),this.autoGrowResizeObserver=void 0}async checkValidity(){return this.elementInternals?.checkValidity?.()??!0}async reportValidity(){return this.elementInternals?.reportValidity?.()??!0}async setCustomValidity(t){this.manualValidationMessage=t,this.updateValidity()}async validate(){const t=this.resolveValidator();if(!t||this.isDisabled())return this.checkValidity();const e=++this.validationRunId;this.isValidating=!0,this.validatorMessage=null,this.updateValidity(),this.brTextareaValidationChange.emit({validating:!0,valid:null,message:null});let a=null;try{a=await t(this.value??"")||null}catch{a="Não foi possível validar o campo."}if(e!==this.validationRunId)return!1;this.validatorMessage=a,this.isValidating=!1,this.updateValidity();const i=null===a&&await this.checkValidity();return this.brTextareaValidationChange.emit({validating:!1,valid:i,message:a}),i}async getValidationState(){return s(this.elementInternals)}async select(){this.nativeTextarea?.select()}async setRangeText(t,e,a,i){if(this.nativeTextarea){if(void 0===e||void 0===a)return this.nativeTextarea.setRangeText(t),void this.syncProgrammaticValue();this.nativeTextarea.setRangeText(t,e,a,i),this.syncProgrammaticValue()}}async setSelectionRange(t,e,a){this.nativeTextarea?.setSelectionRange(t,e,a)}async setValue(t){this.value=t}syncProgrammaticValue(){this.nativeTextarea&&this.value!==this.nativeTextarea.value&&(this.value=this.nativeTextarea.value,this.syncFormState(this.value),this.updateValidity(),this.syncAutoGrowHeight())}syncAutoGrowObservation(){this.autoGrowResizeObserver?.disconnect(),this.autoGrowResizeObserver=void 0,this.autoGrowObservedWidth=void 0,this.autoGrow&&this.nativeTextarea&&"undefined"!=typeof ResizeObserver&&(this.autoGrowResizeObserver=new ResizeObserver((([t])=>{const e=t?.contentRect.width;void 0!==e&&e!==this.autoGrowObservedWidth&&(this.autoGrowObservedWidth=e,this.syncAutoGrowHeight())})),this.autoGrowResizeObserver.observe(this.nativeTextarea))}syncAutoGrowHeight(){this.nativeTextarea&&(this.autoGrow?(this.nativeTextarea.style.height="auto",this.nativeTextarea.style.height=`${this.nativeTextarea.scrollHeight+(this.nativeTextarea.offsetHeight-this.nativeTextarea.clientHeight)}px`):this.nativeTextarea.style.removeProperty("height"))}syncFormState(t=this.value??""){n(this.elementInternals,t)}isDisabled(){return l(this.disabled,this.formDisabled)}updateValidity(){this.nativeTextarea&&this.nativeTextarea.setCustomValidity(this.manualValidationMessage||this.validatorMessage||""),h(this.elementInternals,this.nativeTextarea)}resolveValidator(){return d(this.validator)}checkSlotContent(){this.hasDefaultSlot=u(this.el),this.hasFeedbackSlot=null!==this.el.querySelector('[slot="feedback"]')}getDescribedBy(){return[this.showCounter?`${this.customId}-limitMax`:null,`${this.customId}-slotInfo`,this.hasFeedbackSlot||this.validatorMessage?`${this.customId}-feedback`:null].filter(Boolean).join(" ")}renderFeedback(){return a("div",{id:`${this.customId}-feedback`,part:"feedback",hidden:!this.hasFeedbackSlot&&!this.validatorMessage},a("slot",{name:"feedback",onSlotchange:t=>this.hasFeedbackSlot=b(t.currentTarget)}),!this.hasFeedbackSlot&&this.validatorMessage?a("br-message",{state:"danger",message:this.validatorMessage}):null)}renderValidationLoading(){return this.isValidating?this.hasValidationLoadingSlot?a("slot",{name:"validation-loading"}):a("br-loading",{size:"small",label:"Validando"}):null}getAccessibilityLabel(){const t=this.el.getAttribute("aria-label");return t&&""!==t.trim()?t:this.ariaLabel&&""!==this.ariaLabel.trim()?this.ariaLabel:this.placeholder&&""!==this.placeholder.trim()?this.placeholder:"Campo de texto"}getCssClassMap(){const t=g(this.el,this.density),e=this.effectiveState,a=this.effectiveResize;return{"br-textarea":!0,"auto-grow":this.autoGrow,"resize-none":"none"===a||this.autoGrow&&"horizontal"!==a,"resize-horizontal":"horizontal"===a,"resize-vertical":!this.autoGrow&&"vertical"===a,"resize-both":!this.autoGrow&&"both"===a,small:"small"===t,medium:"medium"===t,large:"large"===t,success:"success"===e,danger:"danger"===e,warning:"warning"===e}}get effectiveState(){return v(this.el,void 0!==this.feedbackState?"feedbackState":"state",this.feedbackState??this.state,["danger","success","warning"],void 0,{allowUndefined:!0})}get effectiveMinLength(){return m(this.el,"minlength",this.minlength,0,Number.MAX_SAFE_INTEGER,0)}get effectiveMaxLength(){return m(this.el,"maxlength",this.maxlength,0,Number.MAX_SAFE_INTEGER,0)}get effectiveRows(){return m(this.el,"rows",this.rows,1,Number.MAX_SAFE_INTEGER,void 0,{allowUndefined:!0})}get effectiveCols(){return m(this.el,"cols",this.cols,1,Number.MAX_SAFE_INTEGER,void 0,{allowUndefined:!0})}get effectiveResize(){return v(this.el,"resize",this.resize,["none","vertical","horizontal","both"],void 0,{allowUndefined:!0})}get effectiveWrap(){return v(this.el,"wrap",this.wrap,["soft","hard"],void 0,{allowUndefined:!0})}render(){const t=this.effectiveMaxLength-this.currentLength,e=this.currentLength>0,r=!!this.label;return a(i,{key:"90b44bc0d3f646a162ff47a23edeee58553e9a95"},a("div",{key:"737b4e60054d523e4004062c1ef72b87ec3da7e3",class:this.getCssClassMap(),part:"container"},this.inline??this.isInline?a("div",{class:"row"},a("div",{class:"col-auto pt-half"},a("label",{part:"label",htmlFor:this.customId},this.label)),a("div",{class:"col"},a("textarea",{part:"textarea",ref:this.setNativeTextarea,id:this.customId,name:this.name,value:this.value,placeholder:this.placeholder,disabled:this.isDisabled(),required:this.required,readOnly:this.readonly,onInput:this.handleInput,onChange:this.handleChange,rows:this.effectiveRows,cols:this.effectiveCols,wrap:this.effectiveWrap,maxLength:this.effectiveMaxLength>0?this.effectiveMaxLength:void 0,minLength:this.effectiveMinLength>0?this.effectiveMinLength:void 0,"aria-describedby":this.getDescribedBy(),"aria-busy":this.isValidating?"true":null,...r?{}:{"aria-label":this.getAccessibilityLabel()}}),this.renderFeedback(),this.renderValidationLoading(),a("div",{class:"mt-1 text-base",part:"counter"},this.showCounter&&a("div",null,e?a("span",{class:"restantes","aria-live":"polite",role:"status",id:`${this.customId}-limitMax`,part:"counter-text"},"Restam ",a("strong",null,t)," caracteres"):a("span",{class:"limit","aria-live":"polite",id:`${this.customId}-limitMax`,part:"counter-text"},"Limite máximo de ",a("strong",null,this.effectiveMaxLength)," caracteres")),this.hasDefaultSlot&&a("div",{id:`${this.customId}-slotInfo`,"aria-live":"polite",part:"helper"},a("slot",null))))):a("div",null,r?a("label",{part:"label",htmlFor:this.customId},this.label):null,a("textarea",{part:"textarea",ref:this.setNativeTextarea,id:this.customId,name:this.name,value:this.value,placeholder:this.placeholder,disabled:this.isDisabled(),required:this.required,readOnly:this.readonly,onInput:this.handleInput,onChange:this.handleChange,rows:this.effectiveRows,cols:this.effectiveCols,wrap:this.effectiveWrap,maxLength:this.effectiveMaxLength>0?this.effectiveMaxLength:void 0,minLength:this.effectiveMinLength>0?this.effectiveMinLength:void 0,"aria-describedby":this.getDescribedBy(),"aria-busy":this.isValidating?"true":null,...r?{}:{"aria-label":this.getAccessibilityLabel()}}),this.renderFeedback(),this.renderValidationLoading(),this.showCounter?a("div",{part:"counter"},e?a("span",{class:"restantes","aria-live":"polite",role:"status",id:`${this.customId}-limitMax`,part:"counter-text"},"Restam ",a("strong",null,t)," caracteres"):a("span",{class:"limit","aria-live":"polite",id:`${this.customId}-limitMax`,part:"counter-text"},"Limite máximo de ",a("strong",null,this.effectiveMaxLength)," caracteres")):null,this.hasDefaultSlot?a("div",{id:`${this.customId}-slotInfo`,"aria-live":"polite",part:"helper"},a("slot",null)):null)))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}get el(){return r(this)}static get watchers(){return{value:[{valueChanged:0}],autoGrow:[{autoGrowChanged:0}]}}};p.style="*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.br-textarea{--textarea-padding:var(--textarea-medium);--textarea-small:var(--spacing-scale-base);--textarea-medium:var(--spacing-scale-baseh);--textarea-large:var(--spacing-scale-2x);color:var(--color)}.br-textarea label{display:inline-block;margin-bottom:var(--spacing-scale-half)}.br-textarea textarea{background:var(--background-light);border:1px solid var(--border-color-alternative);border-radius:6px;color:var(--color);display:block;font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);padding:var(--textarea-padding);width:100%}.br-textarea.small textarea{--textarea-padding:var(--textarea-small)}.br-textarea.medium textarea{--textarea-padding:var(--textarea-medium)}.br-textarea.large textarea{--textarea-padding:var(--textarea-large)}.br-textarea.success textarea{border-color:var(--success);border-width:2px}.br-textarea.danger textarea{border-color:var(--danger);border-width:2px}.br-textarea.warning textarea{border-color:var(--warning);border-width:2px}.br-textarea.info textarea{border-color:var(--info);border-width:2px}.br-textarea textarea:focus,.br-textarea textarea:focus-visible,.br-textarea textarea.focus-visible{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}.br-textarea textarea:hover:not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-textarea.inverted,.br-textarea.inverted label,.br-textarea.dark-mode,.br-textarea.dark-mode label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}.br-textarea.inverted textarea,.br-textarea.dark-mode textarea{color:var(--color-light)}:host{display:block;margin-bottom:var(--spacing-scale-base);vertical-align:top;box-sizing:border-box;max-width:100%;font-family:Rawline,Raleway,sans-serif;width:100%}.br-textarea.auto-grow textarea{box-sizing:border-box;overflow-y:hidden}.br-textarea.resize-none textarea{resize:none}.br-textarea.resize-horizontal textarea{resize:horizontal}.br-textarea.resize-vertical textarea{resize:vertical}.br-textarea.resize-both textarea{resize:both}.br-textarea textarea[rows]{height:auto;min-height:unset}.br-textarea textarea[cols]{width:auto}";export{p as br_textarea}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Construído por SERPRO
|
|
3
|
-
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
-
*/
|
|
5
|
-
import{r as t,c as a,h as r,H as i,g as e}from"./p-ConyRdJe.js";import{g as o}from"./p-BeJxz5TQ.js";import{f as n}from"./p-CDtFCbKp.js";import{r as s,b as l}from"./p-EbtQZm5s.js";import{U as d}from"./p-BJZC_NuV.js";import"./p-BlGV-x0w.js";const c=["horizontal","vertical"],h=["linear","nonlinear"],p=class{constructor(r){t(this,r),this.brWizardStepChange=a(this,"brWizardStepChange",7),this.brWizardBeforeStepChange=a(this,"brWizardBeforeStepChange",7),this.brWizardComplete=a(this,"brWizardComplete",7),this.brWizardCancel=a(this,"brWizardCancel",7),this.brWizardNavigationBlocked=a(this,"brWizardNavigationBlocked",7),this.ariaLiveMessage="",this.collapsed=!1,this.currentStep=1,this.isMobile=!1,this.panels=[],this.step=1,this.initialStep=1,this.orientation="horizontal",this.progressionType="nonlinear",this.customId=o(),this.stepRef=null,this.isSyncingWithStep=!1,this.progressBarSwipe=null,this.progressBarRef=null,this.formRef=null,this.ariaLiveTimeout=null,this.ARIA_LIVE_CLEANUP_DELAY=5e3,this.handleResize=()=>{const t=this.isMobile;this.isMobile=window.innerWidth<=992,this.isMobile&&!t?(this.collapsed=!0,this.setupSwipeListeners()):!this.isMobile&&t&&(this.cleanupSwipeListeners(),this.collapsed=!1)},this.handleFormTouchStart=()=>{this.collapseSteps()},this.handleNext=async()=>{this.currentStep===this.panels.length?this.brWizardBeforeStepChange.emit(this.currentStep).defaultPrevented||this.brWizardComplete.emit():await this.nextStep()},this.handlePrevious=async()=>{await this.previousStep()},this.handleCancel=()=>{this.brWizardCancel.emit()}}get effectiveOrientation(){return s(this.el,"orientation",this.orientation,c,"horizontal")}get effectiveProgressionType(){return s(this.el,"progressionType",this.progressionType,h,"nonlinear")}get effectiveInitialIndex(){return l(this.el,"initialIndex",this.initialIndex,0,Number.MAX_SAFE_INTEGER,0,{allowUndefined:!0})}get effectiveInitialStep(){return l(this.el,"initialStep",this.initialStep,1,Number.MAX_SAFE_INTEGER,1)}handleProgressionTypeChange(){this.updatePanels()}async handleInitialStepChange(){this.setInitialStep(),await this.syncWithBrStep(),this.updatePanels()}async handleInitialIndexChange(){this.setInitialStep(),await this.syncWithBrStep(),this.updatePanels()}async handleCurrentIndexChange(t){void 0!==t&&t+1!==this.currentStep&&await this.navigateToStep(t+1,!0)}async handleStepChangeProp(t){void 0!==t&&t!==this.currentStep&&await this.navigateToStep(t,!0)}async handleCurrentStepChange(t,a){t!==a&&(this.step=t,this.el.setAttribute("step",String(t)),void 0!==this.currentIndex&&this.currentIndex!==t-1&&(this.currentIndex=t-1),await this.syncWithBrStep(),this.updatePanels(),this.announceStepChange(t,a),this.setFocusOnActivePanel())}disconnectedCallback(){this.cleanupMobileDetection(),this.cleanupSwipeListeners(),this.clearAriaLiveTimeout()}componentWillLoad(){const t=Array.from(this.el.children).filter((t=>"br-wizard-panel"===t.tagName.toLowerCase()&&n(t,"br-wizard")===this.el));this.setPanels(t),this.setInitialStep()}async componentDidLoad(){const t=this.el.shadowRoot?.querySelector("slot");if(null!=t){const a=t.assignedElements().filter((t=>"br-wizard-panel"===t.tagName.toLowerCase()));this.setPanels(a)}await this.syncWithBrStep(),this.updatePanels(),this.setupMobileDetection(),this.isMobile&&(this.collapsed=!0)}async handleSlotChange(t){this.discoverPanelsFromSlot(t.target),await this.syncWithBrStep(),this.updatePanels()}async handleStepChange(t){if(this.isSyncingWithStep)return;const a=t.detail.activeStep+1;await this.navigateToStep(a)||(t.stopPropagation(),await this.syncWithBrStep())}async nextStep(){return await this.navigateToStep(this.currentStep+1)}async next(){return await this.nextStep()}async previousStep(){return await this.navigateToStep(this.currentStep-1)}async previous(){return await this.previousStep()}async goToStep(t){return await this.navigateToStep(t)}async reset(){await this.navigateToStep(1,!0)}async getCurrentStep(){return this.panels[this.currentStep-1]||null}async getAllSteps(){return[...this.panels]}async getStepByIndex(t){return this.panels[t-1]||null}async getCurrentStepIndex(){return this.currentStep}async getTotalSteps(){return this.panels.length}async navigateToStep(t,a=!1){return!(t<1||t>this.panels.length)&&(t===this.currentStep||("linear"===this.effectiveProgressionType&&t>this.currentStep+1?(this.announceToScreenReader(`Não é possível pular etapas. Complete a etapa ${this.currentStep+1} antes de avançar.`),this.brWizardNavigationBlocked.emit("linear-progression"),!1):!a&&t>this.currentStep&&this.brWizardBeforeStepChange.emit(t).defaultPrevented?(this.announceToScreenReader("Não é possível avançar. Verifique os campos obrigatórios da etapa atual."),this.brWizardNavigationBlocked.emit("validation-failed"),!1):(this.currentStep=t,this.brWizardStepChange.emit(this.currentStep),!0)))}async syncWithBrStep(){if(null!==this.stepRef&&"function"==typeof this.stepRef.GetActiveStep){this.isSyncingWithStep=!0;try{const t=this.currentStep-1,a=await this.stepRef.GetActiveStep();if(a!==t){const r=t-a;if(r>0)for(let t=0;t<r;t++)await this.stepRef.ProceedToNextStep();else for(let t=0;t<Math.abs(r);t++)await this.stepRef.BackToPreviousStep()}}finally{this.isSyncingWithStep=!1}}}discoverPanelsFromSlot(t){const a=t.assignedElements().filter((t=>"br-wizard-panel"===t.tagName.toLowerCase()));this.setPanels(a)}setPanels(t){this.panels.length===t.length&&this.panels.every(((a,r)=>a===t[r]))||(this.panels=t)}async updatePanels(){for(let t=0;t<this.panels.length;t++){const a=this.panels[t],r=t+1,i=r===this.currentStep;await a.setIndex(r),await a.setActive(i)}}setInitialStep(){this.currentStep=Math.max(1,Math.min(void 0===this.effectiveInitialIndex?this.effectiveInitialStep:this.effectiveInitialIndex+1,this.panels.length)),this.step=this.currentStep,this.el.setAttribute("step",String(this.currentStep)),void 0!==this.currentIndex&&(this.currentIndex=this.currentStep-1)}announceToScreenReader(t){this.ariaLiveMessage="",requestAnimationFrame((()=>{this.ariaLiveMessage=t,this.clearAriaLiveTimeout(),this.ariaLiveTimeout=window.setTimeout((()=>{this.ariaLiveMessage=""}),this.ARIA_LIVE_CLEANUP_DELAY)}))}announceStepChange(t,a){let r="";t>a?r="Avançando para":t<a&&(r="Retornando para"),this.announceToScreenReader(`${r}, etapa ${t} de ${this.panels.length}`)}clearAriaLiveTimeout(){null!==this.ariaLiveTimeout&&(clearTimeout(this.ariaLiveTimeout),this.ariaLiveTimeout=null)}setFocusOnActivePanel(){requestAnimationFrame((()=>{const t=this.panels[this.currentStep-1];void 0!==t&&t.focusFirst?.()}))}setupMobileDetection(){"undefined"!=typeof window&&(this.isMobile=window.innerWidth<=992,window.addEventListener("resize",this.handleResize),this.isMobile&&("vertical"===this.effectiveOrientation&&(this.collapsed=!0),this.setupSwipeListeners()))}cleanupMobileDetection(){"undefined"!=typeof window&&window.removeEventListener("resize",this.handleResize)}setupSwipeListeners(){this.isMobile&&requestAnimationFrame((()=>{this.progressBarRef=this.el.shadowRoot?.querySelector(".wizard-progress")||null,this.formRef=this.el.shadowRoot?.querySelector(".wizard-form")||null,null!==this.progressBarRef&&(this.progressBarSwipe=new d(this.progressBarRef,{direction:"horizontal"===this.effectiveOrientation?"vertical":"horizontal"}),"horizontal"===this.effectiveOrientation?(this.progressBarSwipe.on("SWIPE_DOWN",(()=>this.expandSteps())),this.progressBarSwipe.on("SWIPE_UP",(()=>this.collapseSteps()))):(this.progressBarSwipe.on("SWIPE_RIGHT",(()=>this.expandSteps())),this.progressBarSwipe.on("SWIPE_LEFT",(()=>this.collapseSteps())))),null!==this.formRef&&this.formRef.addEventListener("touchstart",this.handleFormTouchStart,{passive:!0})}))}cleanupSwipeListeners(){null!==this.progressBarSwipe&&(this.progressBarSwipe.off("SWIPE_DOWN",this.expandSteps),this.progressBarSwipe.off("SWIPE_UP",this.collapseSteps),this.progressBarSwipe.off("SWIPE_RIGHT",this.expandSteps),this.progressBarSwipe.off("SWIPE_LEFT",this.collapseSteps),this.progressBarSwipe.destroy(),this.progressBarSwipe=null),null!==this.formRef&&this.formRef.removeEventListener("touchstart",this.handleFormTouchStart)}collapseSteps(){this.isMobile&&(this.collapsed=!0)}expandSteps(){this.isMobile&&(this.collapsed=!1)}getHostClassMap(){return{"br-wizard":!0}}renderProgress(){return 0===this.panels.length?null:r("div",{class:"wizard-progress",part:"progress"},r("br-step",{ref:t=>this.stepRef=t,"initial-step":String(this.currentStep-1),layout:this.effectiveOrientation,"label-position":"bottom","progression-type":this.effectiveProgressionType,mode:"step"},this.panels.map(((t,a)=>{const i=t.getAttribute("label")||"";return r("br-step-item",{key:t.id||t.getAttribute("custom-id")||`wizard-panel-${a}`,label:i})}))))}renderPanelContent(){return r("div",{class:"wizard-panel-content",part:"content"},r("slot",null))}renderPanelButtons(){const t=1===this.currentStep,a=this.currentStep===this.panels.length,i=this.isMobile?"block":void 0;return r("div",{class:"wizard-panel-btn",part:"buttons"},r("br-button",{class:"wizard-btn-canc",type:"button",shape:i,emphasis:"tertiary","prop:ariaLabel":"Cancelar",onClick:this.handleCancel},r("slot",{name:"cancel-button"},"Cancelar")),r("br-button",{class:a?"wizard-btn":"wizard-btn-next",emphasis:"primary",type:"button",shape:i,"prop:ariaLabel":a?"Concluir":"Avançar",onClick:this.handleNext},r("slot",{name:"next-button"},a?"Concluir":"Avançar")),!t&&r("br-button",{class:"wizard-btn-prev",emphasis:"secondary",type:"button",shape:i,"prop:ariaLabel":"Voltar",onClick:this.handlePrevious},r("slot",{name:"previous-button"},"Voltar")))}renderAriaLiveRegion(){return r("div",{class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},this.ariaLiveMessage)}render(){const t=this.getHostClassMap(),a="vertical"===this.effectiveOrientation?{vertical:""}:{},e=this.collapsed?{collapsed:""}:{},o=this.panels.length,n=this.panels[this.currentStep-1],s=n?.getAttribute("label")||`Etapa ${this.currentStep}`;return r(i,{key:"a090b287ec6777f4806bbb2dac4678a09fcacf38",class:t,...a,...e,step:String(this.currentStep)},this.renderAriaLiveRegion(),this.renderProgress(),r("div",{key:"43d563124c273126e882b94b168331d6671722e5",class:"wizard-form",role:"region","aria-label":`Wizard: ${s}`,part:"form"},r("div",{key:"630e2ada606380ec4c7d81158543faf079458996",class:"wizard-panel",active:"",role:"group","aria-label":`${s}, etapa ${this.currentStep} de ${o}`,part:"panel"},this.renderPanelContent(),this.renderPanelButtons())))}get el(){return e(this)}static get watchers(){return{progressionType:[{handleProgressionTypeChange:0}],initialStep:[{handleInitialStepChange:0}],initialIndex:[{handleInitialIndexChange:0}],currentIndex:[{handleCurrentIndexChange:0}],step:[{handleStepChangeProp:0}],currentStep:[{handleCurrentStepChange:0}]}}};p.style='*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}small{font-size:80%}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}.col-lg-3{flex-basis:25%;max-width:25%}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}fieldset[disabled]{opacity:1}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}:host{--wizard-min-height:300px;--wizard-max-height:800px;display:flex;flex-direction:column;height:100%;margin-bottom:var(--spacing-scale-4x);max-height:var(--wizard-max-height);max-width:none;min-height:var(--wizard-min-height)}:host .wizard-progress{background-color:var(--background-alternative);display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));grid-template-rows:none;min-height:164px;overflow-x:auto;overflow-y:hidden;padding-top:var(--spacing-scale-7x);width:100%}@media (max-width: 991px){:host .wizard-progress{max-height:100px;min-height:100px;overflow-y:hidden;padding-top:var(--spacing-scale-3x);position:relative;transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host .wizard-progress::after{background-color:rgba(0,0,0,0);bottom:2px;color:var(--interactive);content:"";display:block;font-family:"Font Awesome 5 Free",sans-serif;font-size:var(--switch-icon-size);font-weight:var(--font-weight-black);height:1em;left:50%;margin-left:-0.5em;position:absolute;top:unset;transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear;width:auto}}@media (max-width: 991px){:host[collapsed] .wizard-progress{max-height:64px;min-height:64px;overflow-y:hidden;padding-bottom:var(--spacing-scale-3x);padding-top:var(--spacing-scale-3x)}:host[collapsed] .wizard-progress::after{margin-top:var(--spacing-scale-4xh)}:host[collapsed] .wizard-progress-btn{padding-bottom:var(--spacing-scale-base)}:host[collapsed] .wizard-progress-btn .info{display:none}:host[collapsed] .wizard-form{height:auto}:host[collapsed] .wizard-panel-content{overflow-x:hidden;overflow-y:auto}}:host[vertical]{flex-direction:row}:host[vertical] .wizard-progress{flex:1;float:none;grid-template-columns:1fr;height:auto;max-width:260px;overflow-x:hidden;padding-top:0;position:relative;text-align:right}:host[vertical] .wizard-progress-btn{height:100%;line-height:100%;max-height:100%;padding-bottom:0;padding-right:70px;padding-top:0;text-align:right}:host[vertical] .wizard-progress-btn::before{left:calc(100% - 32px);line-height:26px;margin-top:calc(var(--spacing-scale-2x)*-1);position:absolute;text-align:center;top:50%}:host[vertical] .wizard-progress-btn::after{height:calc(100% - 34px);left:calc(100% - 33px);position:absolute;top:calc(-50% + 18px);width:1px}:host[vertical] .wizard-progress-btn[active]::after{width:1px}:host[vertical][scroll] .wizard-progress{overflow-y:auto}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar-track{background:var(--gray-10)}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar-thumb{background:var(--gray-30)}:host[vertical][scroll] .wizard-progress:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host[vertical][scroll] .wizard-progress .wizard-progress-btn{min-height:100px}:host[vertical] .wizard-form{float:none;height:auto;width:calc(100% - 260px)}:host[vertical] .wizard-form .wizard-panel .wizard-panel-content{border-top:0}@media (max-width: 991px){:host[vertical] .wizard-progress{max-height:100%;max-width:110px}:host[vertical] .wizard-progress::after{height:1em;left:unset;margin-top:-0.5em;right:2px;top:50%;transform:rotate(-90deg);width:1em}:host[vertical] .wizard-progress-btn{line-height:18px;padding-right:var(--spacing-scale-7x)}:host[vertical] .wizard-progress-btn .info{line-height:1.6em;margin-top:-0.5em;position:absolute;right:54px}:host[vertical] .wizard-form{height:auto;max-width:calc(100% - 110px);min-width:calc(100% - 110px);transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host[vertical] .wizard-panel{height:100%;max-height:100%}:host[vertical][collapsed] .wizard-progress{max-width:60px;padding-bottom:0;padding-top:0}:host[vertical][collapsed] .wizard-progress-btn{padding-right:0}:host[vertical][collapsed] .wizard-progress-btn .info{display:none}:host[vertical][collapsed] .wizard-form{max-width:calc(100% - 60px);min-width:calc(100% - 60px)}}:host .wizard-form{display:flex;flex:1;height:auto;overflow:hidden;position:relative}:host .wizard-panel{display:none;flex-direction:column;flex-wrap:nowrap;height:auto;left:0;margin-bottom:0;opacity:0;position:static;top:0;visibility:hidden;width:100%}:host .wizard-panel[active]{display:flex;height:auto;left:0 !important;opacity:1;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:linear;visibility:visible}@keyframes slide-left{0%{opacity:0;transform:translateX(1%)}100%{opacity:1;transform:translateX(0)}}:host .wizard-panel-content{border-top:1px solid var(--border-color);flex-grow:1;height:auto;max-height:none;overflow-x:auto;overflow-y:auto;padding:var(--spacing-scale-base) var(--spacing-scale-2x)}:host .wizard-panel-content::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host .wizard-panel-content::-webkit-scrollbar-track{background:var(--gray-10)}:host .wizard-panel-content::-webkit-scrollbar-thumb{background:var(--gray-30)}:host .wizard-panel-content:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host .wizard-panel-content:focus,:host .wizard-panel-content:focus-visible,:host .wizard-panel-content.focus-visible{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}:host .wizard-panel-content>:last-child{margin-bottom:0}:host .wizard-panel-btn{align-self:flex-end;background-color:var(--background-alternative);border-top:1px solid var(--border-color);height:fit-content;margin-top:1px;padding:var(--spacing-scale-2x) 1.5%;width:100%}:host .wizard-btn-next,:host .wizard-btn,:host .wizard-btn-prev{float:right;margin-left:var(--spacing-scale-2x)}:host .wizard-btn-canc{float:left}@media (max-width: 991px){:host .wizard-form{height:auto}:host .wizard-panel{border-top:0;display:none;flex-wrap:nowrap;margin-bottom:0;max-height:none}:host .wizard-panel-content{height:auto;max-height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--spacing-scale-half) var(--spacing-scale-base);transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host .wizard-panel-btn{align-items:flex-end;background-color:var(--background-alternative);display:flex;flex-wrap:wrap;height:fit-content;justify-content:center;padding:0 !important;position:static;width:100%}:host .wizard-btn-canc,:host .wizard-btn-next,:host .wizard-btn-prev,:host .wizard-btn{float:none;margin:var(--spacing-scale-base) 5%;width:90%}:host .wizard-btn-next,:host .wizard-btn{order:1}}:host.inverted,:host.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host.inverted .br-button.primary,:host.inverted .br-button[primary],:host.dark-mode .br-button.primary,:host.dark-mode .br-button[primary]{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--background-dark-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);background-color:var(--interactive-dark);color:var(--background-dark)}:host.inverted .br-button.secondary,:host.inverted .br-button[secondary],:host.dark-mode .br-button.secondary,:host.dark-mode .br-button[secondary]{background-color:var(--background-dark)}:host.inverted .wizard-progress,:host.dark-mode .wizard-progress{background-color:rgba(0,0,0,0)}:host.inverted .wizard-progress-btn[active],:host.dark-mode .wizard-progress-btn[active]{color:var(--color)}:host.inverted .wizard-progress-btn[active]::before,:host.dark-mode .wizard-progress-btn[active]::before{--interactive-rgb:var(--active-rgb);background-color:var(--color);color:var(--active)}:host.inverted .wizard-panel .wizard-panel-btn,:host.dark-mode .wizard-panel .wizard-panel-btn{background-color:rgba(0,0,0,0)}:host br-step-item[active]{--step-label-font-weight:var(--font-weight-semi-bold);--step-label-color:var(--active)}:host br-step-item::part(label){display:block;line-height:1em;text-align:center}:host .wizard-progress{place-content:center center;height:auto;padding-top:0;transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-progress{transition:none}}@media (max-width: 991px){:host .wizard-progress br-step-item::part(label){font-size:var(--font-size-scale-down-02, 9.716px)}:host .wizard-progress::after{cursor:pointer}}:host .wizard-progress::after,:host .wizard-progress-btn,:host .wizard-form{transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-progress::after,:host .wizard-progress-btn,:host .wizard-form{transition:none}}:host .wizard-progress-btn::before{transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-progress-btn::before{transition:background-color var(--duration-very-fast, 100ms) var(--animation-ease-in-out, ease-in-out),border-color var(--duration-very-fast, 100ms) var(--animation-ease-in-out, ease-in-out),color var(--duration-very-fast, 100ms) var(--animation-ease-in-out, ease-in-out),transform var(--duration-very-fast, 100ms) var(--animation-ease-in-out, ease-in-out)}}:host .wizard-progress-btn::after{transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-progress-btn::after{transition:background-color var(--duration-very-fast, 100ms) var(--animation-ease-in-out, ease-in-out)}}:host .wizard-panel[active]{transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-panel[active]{transition:none}}:host .wizard-panel[active]{animation:none}@media (prefers-reduced-motion: no-preference){:host .wizard-panel[active]{animation:wizard-panel-open var(--duration-fast, 300ms) var(--animation-ease-out, ease-out) both}}:host .wizard-panel-content{transition:none}@media (prefers-reduced-motion: no-preference){:host .wizard-panel-content{transition:none}}@keyframes wizard-panel-open{from{opacity:0}to{opacity:1}}:host([collapsed]) br-step-item::part(label){display:none}@media (max-width: 991px){:host([collapsed]) br-step-item::part(label){display:none}:host([collapsed]) .wizard-progress{max-height:64px;min-height:64px;overflow-y:hidden;padding-bottom:var(--spacing-scale-3x);padding-top:var(--spacing-scale-3x)}:host([collapsed]) .wizard-progress::after{margin-top:var(--spacing-scale-4xh)}}:host([vertical]){flex-direction:row}:host([vertical]) .wizard-progress{flex:1;float:none;grid-template-columns:1fr;height:auto;max-width:260px;overflow-x:hidden;padding-top:0;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}@media (max-width: 991px){:host([vertical]) .wizard-progress{max-height:100%;max-width:110px}:host([vertical]) .wizard-progress::after{height:1em;left:unset;margin-top:-0.5em;right:2px;top:50%;transform:rotate(-90deg);width:1em}:host([vertical]) .wizard-form{max-width:calc(100% - 110px);min-width:calc(100% - 110px)}:host([vertical])[collapsed] .wizard-progress{max-width:60px;padding-bottom:0;padding-top:0}}:host(.dark-mode){--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host(.dark-mode) .br-button.primary,:host(.dark-mode) .br-button[primary]{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--background-dark-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);background-color:var(--interactive-dark);color:var(--background-dark)}:host(.dark-mode) .br-button.secondary,:host(.dark-mode) .br-button[secondary]{background-color:var(--background-dark)}';export{p as br_wizard}
|