@govbr-ds/webcomponents 2.4.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/README.md +2 -2
- package/cem/custom-elements.json +4438 -1034
- package/cem/webcomponents.html-custom-data.json +491 -160
- package/dist/cjs/br-avatar.cjs.entry.js +4 -4
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb.cjs.entry.js +11 -11
- package/dist/cjs/br-button_2.cjs.entry.js +6 -6
- package/dist/cjs/br-card.cjs.entry.js +4 -4
- package/dist/cjs/br-carousel-page.cjs.entry.js +3 -3
- package/dist/cjs/br-carousel.cjs.entry.js +5 -5
- package/dist/cjs/br-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/br-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/br-checkgroup.cjs.entry.js +2 -2
- package/dist/cjs/br-collapse_2.cjs.entry.js +10 -10
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +3 -3
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/br-cookiebar.cjs.entry.js +5 -5
- package/dist/cjs/br-crumb.cjs.entry.js +2 -2
- package/dist/cjs/br-date-picker_3.cjs.entry.js +165 -78
- package/dist/cjs/br-datetime-picker.cjs.entry.js +11 -28
- package/dist/cjs/br-divider.cjs.entry.js +4 -4
- package/dist/cjs/br-dropdown.cjs.entry.js +677 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +4 -4
- package/dist/cjs/br-footer-item.cjs.entry.js +3 -3
- package/dist/cjs/br-footer-legal.cjs.entry.js +3 -3
- package/dist/cjs/br-footer-logo.cjs.entry.js +3 -3
- package/dist/cjs/br-footer-social.cjs.entry.js +3 -3
- package/dist/cjs/br-footer.cjs.entry.js +5 -5
- package/dist/cjs/br-header-function.cjs.entry.js +3 -3
- package/dist/cjs/br-header-link.cjs.entry.js +3 -3
- package/dist/cjs/br-header-list.cjs.entry.js +4 -4
- package/dist/cjs/br-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/br-header.cjs.entry.js +6 -6
- package/dist/cjs/br-icon.cjs.entry.js +173 -159
- package/dist/cjs/br-input_2.cjs.entry.js +1427 -0
- package/dist/cjs/br-item.cjs.entry.js +4 -4
- package/dist/cjs/br-link.cjs.entry.js +9 -9
- package/dist/cjs/br-magic-button.cjs.entry.js +11 -12
- package/dist/cjs/br-menu-group.cjs.entry.js +3 -3
- package/dist/cjs/br-menu-header.cjs.entry.js +3 -3
- package/dist/cjs/br-menu-info.cjs.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/cjs/br-notification-header.cjs.entry.js +3 -3
- package/dist/cjs/br-notification-item.cjs.entry.js +3 -3
- package/dist/cjs/br-notification.cjs.entry.js +4 -4
- package/dist/cjs/br-pagination_2.cjs.entry.js +2578 -0
- package/dist/cjs/br-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/br-radio.cjs.entry.js +5 -5
- package/dist/cjs/br-scrim.cjs.entry.js +4 -4
- package/dist/cjs/br-select-input_3.cjs.entry.js +49 -103
- package/dist/cjs/br-sign-in.cjs.entry.js +4 -4
- package/dist/cjs/br-skip-link-item.cjs.entry.js +2 -2
- package/dist/cjs/br-skip-link.cjs.entry.js +3 -3
- package/dist/cjs/br-skiplink-item.cjs.entry.js +3 -3
- package/dist/cjs/br-slider.cjs.entry.js +4 -4
- package/dist/cjs/br-step_2.cjs.entry.js +7 -7
- package/dist/cjs/br-switch.cjs.entry.js +5 -5
- package/dist/cjs/br-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/br-tab.cjs.entry.js +8 -8
- 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 +5 -5
- package/dist/cjs/br-textarea.cjs.entry.js +4 -4
- package/dist/cjs/br-tooltip.cjs.entry.js +5 -29
- package/dist/cjs/br-upload.cjs.entry.js +5 -5
- package/dist/cjs/br-wizard-panel.cjs.entry.js +3 -3
- package/dist/cjs/br-wizard.cjs.entry.js +3 -3
- package/dist/cjs/{datetime-picker-constants-CCeI5iW7.js → datetime-picker-constants-CTf1kVJ1.js} +1 -0
- package/dist/cjs/helpers-DkkDubv1.js +28 -0
- package/dist/cjs/{icon.utils-DF6kMskA.js → icon.utils-CMs0ukvR.js} +1 -1
- package/dist/cjs/{iconify-icon-DfODV9bf.js → iconify-icon-LjavbM-D.js} +103 -57
- package/dist/cjs/{index-Bc30P_6z.js → index-BP8UIQro.js} +34 -34
- package/dist/cjs/{index-C-IpVFDH.js → index-Caoez3xb.js} +64 -16
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{isValid-CduHZTFc.js → isValid-DgJ-noPS.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{slot-DAllytTj.js → slot-CjaqqX7y.js} +1 -1
- 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/avatar/avatar.js +21 -21
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +4 -12
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +39 -34
- package/dist/collection/components/breadcrumb/crumb/crumb.js +2 -13
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +22 -22
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +20 -22
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +3 -13
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +25 -32
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +18 -24
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.js +19 -20
- package/dist/collection/components/checkgroup/checkgroup.js +2 -14
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +33 -29
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +4 -17
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +3 -15
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +3 -14
- 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 +3 -14
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +33 -28
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +62 -15
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +123 -74
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +5 -15
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +23 -27
- 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 +7 -17
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/divider/divider.js +15 -19
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +27 -28
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.js +4 -17
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.js +3 -16
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.js +2 -16
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.js +3 -16
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +4 -16
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +25 -29
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-function/header-function.js +10 -14
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-link/header-link.js +3 -16
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +4 -17
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +3 -16
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +33 -30
- 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 +38 -29
- 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 +216 -30
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +18 -22
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +25 -29
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +17 -21
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/loading/loading.js +17 -24
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +21 -29
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-group/menu-group.js +3 -16
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +3 -16
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.js +2 -15
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +3 -16
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +5 -17
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.js +2 -15
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.js +2 -15
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +3 -16
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +28 -35
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/message/message.js +22 -25
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +18 -21
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.js +3 -13
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.js +3 -14
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.js +3 -16
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +20 -29
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +19 -27
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio/radio.js +17 -20
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +20 -20
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +14 -17
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +48 -102
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +52 -15
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +13 -17
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +104 -110
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +12 -16
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +8 -4
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +5 -15
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/skip-link/skip-link.js +18 -24
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +18 -28
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step-item/step-item.js +5 -15
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/step/step.js +16 -25
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +16 -20
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +6 -16
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +24 -31
- 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 +11 -26
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +555 -91
- 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 +10 -26
- 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 +286 -95
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +311 -66
- 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 -625
- 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 +17 -26
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +14 -22
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +15 -45
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +36 -29
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +3 -13
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +22 -26
- package/dist/collection/pages/components/select/remote-options.js +87 -0
- 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/collection/shared/utils/slot.js +1 -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-B5_zbRAr.js +5 -0
- 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-ta-24T1Z.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-PV731d8s.js → p-CKS7ggLM.js} +1 -1
- package/dist/components/p-COSFBwu9.js +5 -0
- package/dist/components/{p-DsO4F0Cz.js → p-CVz_akHx.js} +1 -1
- package/dist/components/p-CWPrXYam.js +5 -0
- package/dist/components/p-C_DC6oQW.js +16 -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-jOb1hCPi.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-rMnkh3Cy.js → p-Dn36Mj2E.js} +1 -1
- package/dist/components/{p-D-3G3Ioq.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-CbgKdASU.js → p-JkJjzmGm.js} +1 -1
- 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-ydfWTgrA.js +5 -0
- package/dist/esm/br-avatar.entry.js +5 -5
- package/dist/esm/br-breadcrumb-item.entry.js +2 -2
- package/dist/esm/br-breadcrumb.entry.js +12 -12
- package/dist/esm/br-button_2.entry.js +7 -7
- package/dist/esm/br-card.entry.js +4 -4
- package/dist/esm/br-carousel-page.entry.js +3 -3
- package/dist/esm/br-carousel.entry.js +6 -6
- package/dist/esm/br-checkbox-group.entry.js +5 -5
- package/dist/esm/br-checkbox.entry.js +6 -6
- package/dist/esm/br-checkgroup.entry.js +2 -2
- package/dist/esm/br-collapse_2.entry.js +11 -11
- package/dist/esm/br-cookiebar-cookie.entry.js +3 -3
- package/dist/esm/br-cookiebar-group.entry.js +4 -4
- package/dist/esm/br-cookiebar-header.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/br-cookiebar.entry.js +6 -6
- package/dist/esm/br-crumb.entry.js +2 -2
- package/dist/esm/br-date-picker_3.entry.js +165 -78
- package/dist/esm/br-datetime-picker.entry.js +10 -27
- package/dist/esm/br-divider.entry.js +5 -5
- package/dist/esm/br-dropdown.entry.js +675 -0
- package/dist/esm/br-footer-category.entry.js +4 -4
- package/dist/esm/br-footer-item.entry.js +4 -4
- package/dist/esm/br-footer-legal.entry.js +3 -3
- package/dist/esm/br-footer-logo.entry.js +4 -4
- package/dist/esm/br-footer-social.entry.js +4 -4
- package/dist/esm/br-footer.entry.js +6 -6
- package/dist/esm/br-header-function.entry.js +4 -4
- package/dist/esm/br-header-link.entry.js +4 -4
- package/dist/esm/br-header-list.entry.js +4 -4
- package/dist/esm/br-header-logo.entry.js +4 -4
- package/dist/esm/br-header.entry.js +7 -7
- package/dist/esm/br-icon.entry.js +174 -160
- package/dist/esm/br-input_2.entry.js +1424 -0
- package/dist/esm/br-item.entry.js +5 -5
- package/dist/esm/br-link.entry.js +10 -10
- package/dist/esm/br-magic-button.entry.js +12 -13
- package/dist/esm/br-menu-group.entry.js +3 -3
- package/dist/esm/br-menu-header.entry.js +3 -3
- package/dist/esm/br-menu-info.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/esm/br-notification-header.entry.js +3 -3
- package/dist/esm/br-notification-item.entry.js +4 -4
- package/dist/esm/br-notification.entry.js +5 -5
- package/dist/esm/br-pagination_2.entry.js +2575 -0
- package/dist/esm/br-radio-group.entry.js +6 -6
- package/dist/esm/br-radio.entry.js +6 -6
- package/dist/esm/br-scrim.entry.js +5 -5
- package/dist/esm/br-select-input_3.entry.js +50 -104
- package/dist/esm/br-sign-in.entry.js +5 -5
- package/dist/esm/br-skip-link-item.entry.js +2 -2
- package/dist/esm/br-skip-link.entry.js +4 -4
- package/dist/esm/br-skiplink-item.entry.js +4 -4
- package/dist/esm/br-slider.entry.js +5 -5
- package/dist/esm/br-step_2.entry.js +8 -8
- package/dist/esm/br-switch.entry.js +6 -6
- package/dist/esm/br-tab-item.entry.js +4 -4
- package/dist/esm/br-tab.entry.js +9 -9
- 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 +6 -6
- package/dist/esm/br-textarea.entry.js +5 -5
- package/dist/esm/br-tooltip.entry.js +6 -30
- package/dist/esm/br-upload.entry.js +6 -6
- package/dist/esm/br-wizard-panel.entry.js +3 -3
- package/dist/esm/br-wizard.entry.js +4 -4
- package/dist/esm/{datetime-picker-constants-DDc4sADe.js → datetime-picker-constants-1l4_-FEJ.js} +1 -1
- package/dist/esm/helpers-BNW9pAhl.js +26 -0
- package/dist/esm/{icon.utils-zlORkiHQ.js → icon.utils-CXDYKUBz.js} +1 -1
- package/dist/esm/{iconify-icon-D3usVJE2.js → iconify-icon-C_DC6oQW.js} +103 -57
- package/dist/esm/{index-CytVKoHT.js → index-BQRBKuY0.js} +64 -17
- package/dist/esm/{index-ConyRdJe.js → index-CwL52661.js} +34 -35
- package/dist/esm/index.js +2 -2
- package/dist/esm/{isValid-Bee0Uvqc.js → isValid-wU7S6MI2.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{props-D07GjR4_.js → props-BbxNgEcJ.js} +1 -1
- package/dist/esm/{slot-BIG-yees.js → slot-Bt01zQ7-.js} +1 -1
- package/dist/esm/table.utils-CtVdlcgI.js +706 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/hydrate/index.js +6573 -3030
- package/dist/hydrate/index.mjs +6573 -3030
- package/dist/types/components/avatar/avatar.d.ts +20 -20
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +3 -11
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +30 -25
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +1 -12
- package/dist/types/components/button/button.d.ts +20 -20
- package/dist/types/components/card/card.d.ts +19 -21
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +2 -12
- package/dist/types/components/carousel/carousel.d.ts +22 -29
- package/dist/types/components/checkbox/checkbox.d.ts +16 -22
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +17 -18
- package/dist/types/components/checkgroup/checkgroup.d.ts +1 -13
- package/dist/types/components/collapse/collapse.d.ts +26 -22
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +2 -14
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar.d.ts +30 -25
- package/dist/types/components/datetime-picker/date-picker/date-picker-locale.d.ts +12 -4
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +57 -11
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +2 -12
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +22 -26
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +3 -13
- package/dist/types/components/divider/divider.d.ts +14 -18
- package/dist/types/components/dropdown/dropdown.d.ts +21 -20
- package/dist/types/components/footer/footer-category/footer-category.d.ts +2 -15
- package/dist/types/components/footer/footer-item/footer-item.d.ts +2 -15
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +1 -15
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +2 -15
- package/dist/types/components/footer/footer-social/footer-social.d.ts +4 -17
- package/dist/types/components/footer/footer.d.ts +23 -27
- package/dist/types/components/header/header-function/header-function.d.ts +9 -13
- package/dist/types/components/header/header-link/header-link.d.ts +2 -15
- package/dist/types/components/header/header-list/header-list.d.ts +2 -15
- package/dist/types/components/header/header-logo/header-logo.d.ts +2 -15
- package/dist/types/components/header/header.d.ts +29 -26
- package/dist/types/components/icon/icon.d.ts +27 -22
- package/dist/types/components/icon/icon.utils.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +46 -23
- package/dist/types/components/input/input.types.d.ts +18 -0
- package/dist/types/components/item/item.d.ts +17 -21
- package/dist/types/components/link/link.d.ts +18 -22
- package/dist/types/components/list/list.d.ts +16 -20
- package/dist/types/components/loading/loading.d.ts +16 -23
- package/dist/types/components/magic-button/magic-button.d.ts +17 -25
- package/dist/types/components/menu/menu-group/menu-group.d.ts +2 -15
- package/dist/types/components/menu/menu-header/menu-header.d.ts +2 -15
- package/dist/types/components/menu/menu-info/menu-info.d.ts +1 -14
- package/dist/types/components/menu/menu-item/menu-item.d.ts +2 -15
- package/dist/types/components/menu/menu-link/menu-link.d.ts +4 -16
- package/dist/types/components/menu/menu-list/menu-list.d.ts +2 -15
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +1 -14
- package/dist/types/components/menu/menu-social/menu-social.d.ts +4 -18
- package/dist/types/components/menu/menu.d.ts +25 -32
- package/dist/types/components/message/message.d.ts +21 -24
- package/dist/types/components/modal/modal.d.ts +18 -21
- package/dist/types/components/notification/notification-body/notification-body.d.ts +2 -12
- package/dist/types/components/notification/notification-header/notification-header.d.ts +2 -13
- package/dist/types/components/notification/notification-item/notification-item.d.ts +2 -15
- package/dist/types/components/notification/notification.d.ts +18 -27
- package/dist/types/components/pagination/pagination.d.ts +13 -21
- package/dist/types/components/radio/radio.d.ts +15 -18
- package/dist/types/components/radio-group/radio-group.d.ts +18 -18
- package/dist/types/components/scrim/scrim.d.ts +12 -15
- package/dist/types/components/select/select-input/select-input.d.ts +12 -14
- package/dist/types/components/select/select-list/select-list.d.ts +13 -12
- package/dist/types/components/select/select-option/select-option.d.ts +8 -11
- package/dist/types/components/select/select.d.ts +42 -94
- package/dist/types/components/sign-in/sign-in.d.ts +11 -15
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +7 -3
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +4 -14
- package/dist/types/components/skip-link/skip-link.d.ts +17 -23
- package/dist/types/components/slider/slider.d.ts +18 -28
- package/dist/types/components/step/step-item/step-item.d.ts +2 -12
- package/dist/types/components/step/step.d.ts +15 -24
- package/dist/types/components/switch/switch.d.ts +14 -18
- package/dist/types/components/tab/tab-item/tab-item.d.ts +6 -16
- package/dist/types/components/tab/tab.d.ts +20 -27
- 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 +10 -25
- package/dist/types/components/table/table-cell/table-cell.d.ts +177 -46
- 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 +9 -25
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +101 -62
- package/dist/types/components/table/table-row/table-row.d.ts +87 -38
- 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 -229
- 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/tag/tag.d.ts +15 -24
- package/dist/types/components/textarea/textarea.d.ts +13 -21
- package/dist/types/components/tooltip/tooltip.d.ts +12 -18
- package/dist/types/components/upload/upload.d.ts +20 -27
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +2 -12
- package/dist/types/components/wizard/wizard.d.ts +21 -25
- package/dist/types/components.d.ts +4646 -5087
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-6f1a4fbe.entry.js → p-07e80bf8.entry.js} +1 -1
- package/dist/webcomponents/p-10d81622.entry.js +5 -0
- package/dist/webcomponents/p-12d5f533.entry.js +5 -0
- package/dist/webcomponents/p-15699e8a.entry.js +5 -0
- package/dist/webcomponents/{p-7fda8b89.entry.js → p-15e2f5cc.entry.js} +1 -1
- package/dist/webcomponents/{p-198aa844.entry.js → p-16d27d5c.entry.js} +1 -1
- package/dist/webcomponents/p-18d3fab8.entry.js +5 -0
- package/dist/webcomponents/{p-DDc4sADe.js → p-1l4_-FEJ.js} +1 -1
- 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-42b60169.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-6a293be8.entry.js → p-407e7b69.entry.js} +1 -1
- package/dist/webcomponents/p-41b12e3c.entry.js +5 -0
- package/dist/webcomponents/p-47adc17f.entry.js +5 -0
- package/dist/webcomponents/{p-18cf093a.entry.js → p-48fc8e56.entry.js} +1 -1
- package/dist/webcomponents/p-4a44c8b8.entry.js +5 -0
- package/dist/webcomponents/{p-ac68355e.entry.js → p-4b0f3701.entry.js} +1 -1
- package/dist/webcomponents/p-4b66200c.entry.js +5 -0
- package/dist/webcomponents/{p-5a7c2031.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-20477061.entry.js → p-5693e0e7.entry.js} +1 -1
- package/dist/webcomponents/p-58247764.entry.js +5 -0
- package/dist/webcomponents/p-5d0f4851.entry.js +5 -0
- package/dist/webcomponents/p-60c949c8.entry.js +5 -0
- package/dist/webcomponents/p-61b84035.entry.js +5 -0
- package/dist/webcomponents/p-62a74e0a.entry.js +5 -0
- package/dist/webcomponents/p-6450913e.entry.js +5 -0
- package/dist/webcomponents/p-66c8b8d9.entry.js +5 -0
- package/dist/webcomponents/{p-b55425b7.entry.js → p-67281ef1.entry.js} +1 -1
- package/dist/webcomponents/{p-0fc112fc.entry.js → p-6e128c7a.entry.js} +1 -1
- package/dist/webcomponents/p-725e92ab.entry.js +5 -0
- package/dist/webcomponents/{p-09c79c1d.entry.js → p-74726f20.entry.js} +1 -1
- package/dist/webcomponents/p-75bd655b.entry.js +5 -0
- package/dist/webcomponents/p-7bf78e48.entry.js +5 -0
- package/dist/webcomponents/p-7cc28ecf.entry.js +5 -0
- package/dist/webcomponents/p-7ec01a99.entry.js +5 -0
- package/dist/webcomponents/{p-2c8595d3.entry.js → p-7f17dbca.entry.js} +1 -1
- package/dist/webcomponents/p-8120f3ce.entry.js +5 -0
- 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-C_DC6oQW.js +16 -0
- package/dist/webcomponents/{p-EbtQZm5s.js → p-CjVabz-h.js} +1 -1
- package/dist/webcomponents/{p-fOJu6uZR.js → p-CpE_G6IZ.js} +1 -1
- package/dist/webcomponents/{p-ConyRdJe.js → p-CwL52661.js} +2 -2
- package/dist/webcomponents/p-DnwERaeQ.js +5 -0
- 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-a264acf6.entry.js +5 -0
- package/dist/webcomponents/p-a5616523.entry.js +5 -0
- package/dist/webcomponents/p-ae3dfb9c.entry.js +5 -0
- 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-31a4694a.entry.js → p-d5405bbe.entry.js} +1 -1
- package/dist/webcomponents/{p-794b701b.entry.js → p-d6d3a552.entry.js} +1 -1
- package/dist/webcomponents/p-dab66328.entry.js +5 -0
- package/dist/webcomponents/{p-8116ee93.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-67774920.entry.js → p-e3680ff8.entry.js} +1 -1
- package/dist/webcomponents/p-e5b9652d.entry.js +5 -0
- package/dist/webcomponents/{p-fb76b1e0.entry.js → p-e7f02302.entry.js} +1 -1
- 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-f697abbd.entry.js +5 -0
- 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-dropdown_2.cjs.entry.js +0 -2299
- package/dist/cjs/br-input.cjs.entry.js +0 -715
- 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/collection/pages/components/select/remote.js +0 -33
- package/dist/collection/pages/components/select/virtualized.js +0 -13
- package/dist/components/p-5h-W9_JR.js +0 -5
- package/dist/components/p-848QkYoM.js +0 -5
- package/dist/components/p-BFHvuEnN.js +0 -5
- package/dist/components/p-BH6QYnAr.js +0 -5
- package/dist/components/p-BcW8O6h2.js +0 -5
- package/dist/components/p-BicHMcSS.js +0 -5
- package/dist/components/p-Bs7iRQTG.js +0 -5
- package/dist/components/p-Bvrw9yWR.js +0 -5
- package/dist/components/p-BzQFMh9j.js +0 -5
- package/dist/components/p-CBHd0-fF.js +0 -5
- package/dist/components/p-CCPHCJjw.js +0 -5
- package/dist/components/p-CXMwM9m4.js +0 -5
- package/dist/components/p-CeNELttN.js +0 -5
- package/dist/components/p-CjtmJTLO.js +0 -5
- package/dist/components/p-D3usVJE2.js +0 -16
- package/dist/components/p-DDu3JV_r.js +0 -5
- package/dist/components/p-DFWqyfUe.js +0 -5
- package/dist/components/p-DL6xuxGG.js +0 -5
- package/dist/components/p-DOX9Uwk1.js +0 -5
- package/dist/components/p-DUq7uT2-.js +0 -5
- package/dist/components/p-Devw08cc.js +0 -5
- package/dist/components/p-Di96UxvH.js +0 -5
- package/dist/components/p-DiLI514I.js +0 -5
- package/dist/components/p-Dp3MsSXu.js +0 -5
- package/dist/components/p-DuLHFTpa.js +0 -5
- package/dist/components/p-DusornQ0.js +0 -5
- package/dist/components/p-OQpiDEK9.js +0 -5
- package/dist/components/p-XW6Hp_Jk.js +0 -5
- package/dist/esm/br-dropdown_2.entry.js +0 -2296
- package/dist/esm/br-input.entry.js +0 -713
- 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-01801ac1.entry.js +0 -5
- package/dist/webcomponents/p-05b459f2.entry.js +0 -5
- package/dist/webcomponents/p-08ac6f09.entry.js +0 -5
- package/dist/webcomponents/p-09817344.entry.js +0 -5
- package/dist/webcomponents/p-13babfc4.entry.js +0 -5
- package/dist/webcomponents/p-15022ab7.entry.js +0 -5
- package/dist/webcomponents/p-172d42c2.entry.js +0 -5
- package/dist/webcomponents/p-1ba60d13.entry.js +0 -5
- package/dist/webcomponents/p-1bb96641.entry.js +0 -5
- package/dist/webcomponents/p-21feda62.entry.js +0 -5
- package/dist/webcomponents/p-23a5cfd7.entry.js +0 -5
- package/dist/webcomponents/p-32ea6342.entry.js +0 -5
- package/dist/webcomponents/p-3658adcf.entry.js +0 -5
- package/dist/webcomponents/p-37914e63.entry.js +0 -5
- package/dist/webcomponents/p-3b0dd0ff.entry.js +0 -5
- package/dist/webcomponents/p-42c9c6c5.entry.js +0 -5
- package/dist/webcomponents/p-473561f2.entry.js +0 -5
- package/dist/webcomponents/p-47c490ef.entry.js +0 -5
- package/dist/webcomponents/p-4b01c60f.entry.js +0 -5
- package/dist/webcomponents/p-5a5ed7d8.entry.js +0 -5
- package/dist/webcomponents/p-609cf652.entry.js +0 -5
- package/dist/webcomponents/p-614683d9.entry.js +0 -5
- package/dist/webcomponents/p-67605757.entry.js +0 -5
- package/dist/webcomponents/p-67d62559.entry.js +0 -5
- package/dist/webcomponents/p-695dbeb0.entry.js +0 -5
- package/dist/webcomponents/p-7352d459.entry.js +0 -5
- package/dist/webcomponents/p-745213f7.entry.js +0 -5
- package/dist/webcomponents/p-7ee564a1.entry.js +0 -5
- package/dist/webcomponents/p-821341dc.entry.js +0 -5
- package/dist/webcomponents/p-8aa6f07c.entry.js +0 -5
- package/dist/webcomponents/p-8ddf3ce3.entry.js +0 -5
- package/dist/webcomponents/p-95f3c44a.entry.js +0 -5
- package/dist/webcomponents/p-96dbb585.entry.js +0 -5
- package/dist/webcomponents/p-9815ab95.entry.js +0 -5
- package/dist/webcomponents/p-9e0324a7.entry.js +0 -5
- package/dist/webcomponents/p-CJipT0in.js +0 -5
- package/dist/webcomponents/p-CXMwM9m4.js +0 -5
- package/dist/webcomponents/p-D3usVJE2.js +0 -16
- package/dist/webcomponents/p-a038be16.entry.js +0 -5
- package/dist/webcomponents/p-a32d17cb.entry.js +0 -5
- package/dist/webcomponents/p-a46f068e.entry.js +0 -5
- package/dist/webcomponents/p-a89b684d.entry.js +0 -5
- package/dist/webcomponents/p-af888d13.entry.js +0 -5
- package/dist/webcomponents/p-b0124459.entry.js +0 -5
- package/dist/webcomponents/p-b063c12f.entry.js +0 -5
- package/dist/webcomponents/p-b07bfdc5.entry.js +0 -5
- package/dist/webcomponents/p-b5d25332.entry.js +0 -5
- package/dist/webcomponents/p-b609b464.entry.js +0 -5
- package/dist/webcomponents/p-b66ab52d.entry.js +0 -5
- package/dist/webcomponents/p-b8d4ace3.entry.js +0 -5
- package/dist/webcomponents/p-c717c745.entry.js +0 -5
- package/dist/webcomponents/p-ce3d689c.entry.js +0 -5
- package/dist/webcomponents/p-d08b6266.entry.js +0 -5
- package/dist/webcomponents/p-d6165aa0.entry.js +0 -5
- package/dist/webcomponents/p-dacb7e2c.entry.js +0 -5
- package/dist/webcomponents/p-db309a11.entry.js +0 -5
- package/dist/webcomponents/p-dc23cb2e.entry.js +0 -5
- package/dist/webcomponents/p-e241caf3.entry.js +0 -5
- package/dist/webcomponents/p-e661c024.entry.js +0 -5
- package/dist/webcomponents/p-e7107869.entry.js +0 -5
- package/dist/webcomponents/p-eb94199d.entry.js +0 -5
- package/dist/webcomponents/p-f8993ae4.entry.js +0 -5
- package/dist/webcomponents/p-f99d8c9c.entry.js +0 -5
- package/dist/webcomponents/p-fdcb54a3.entry.js +0 -5
- package/dist/webcomponents/p-fed02286.entry.js +0 -5
- /package/dist/collection/components/table/{table-types.js → table-footer/table-footer.types.js} +0 -0
- /package/dist/components/{p-5z6jgH1D.js → p-BNckUhK6.js} +0 -0
- /package/dist/webcomponents/{p-BIG-yees.js → p-Bt01zQ7-.js} +0 -0
- /package/dist/webcomponents/{p-zlORkiHQ.js → p-CXDYKUBz.js} +0 -0
|
@@ -11,13 +11,88 @@ let lzStringPromise;
|
|
|
11
11
|
const MAX_PLAYGROUND_DRAFT_SIZE = 512 * 1024;
|
|
12
12
|
const DEV_VIEWPORTS = [
|
|
13
13
|
{ id: 'desktop', label: 'Desktop (100%)', icon: 'fas fa-desktop', mode: 'web', width: null, height: null },
|
|
14
|
-
{ id: 'tablet', label: 'Tablet - 768px', icon: 'fas fa-tablet-alt', mode: '
|
|
14
|
+
{ id: 'tablet', label: 'Tablet - 768px', icon: 'fas fa-tablet-alt', mode: 'tablet', width: 768, height: 1024 },
|
|
15
15
|
{ id: 'ios', label: 'iPhone (iOS) - 390x844', icon: 'fab fa-apple', mode: 'ios', width: 390, height: 844 },
|
|
16
16
|
{ id: 'android', label: 'Android - 360x800', icon: 'fab fa-android', mode: 'android', width: 360, height: 800 },
|
|
17
17
|
];
|
|
18
18
|
const DEV_PREVIEW_MIN_WIDTH = 200;
|
|
19
19
|
const DEV_PREVIEW_MIN_HEIGHT = 180;
|
|
20
20
|
const DEV_PREVIEW_RESIZE_STEP = 16;
|
|
21
|
+
const VIEWPORT_DIMENSION_PATTERN = /^\d+(?:px)?$/i;
|
|
22
|
+
const VIEWPORT_ALIASES = { mobile: 'android', phone: 'android', iphone: 'ios', ipad: 'tablet' };
|
|
23
|
+
|
|
24
|
+
function resolveNamedViewport(name) {
|
|
25
|
+
if (typeof name !== 'string') return null;
|
|
26
|
+
const normalized = name.trim().toLowerCase();
|
|
27
|
+
const id = VIEWPORT_ALIASES[normalized] || normalized;
|
|
28
|
+
return DEV_VIEWPORTS.find((viewport) => viewport.id === id) || null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function readViewportDimension(value) {
|
|
32
|
+
if (typeof value === 'number') return Number.isFinite(value) && value > 0 ? value : null;
|
|
33
|
+
if (typeof value !== 'string' || !VIEWPORT_DIMENSION_PATTERN.test(value.trim())) return null;
|
|
34
|
+
const parsed = Number.parseInt(value, 10);
|
|
35
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : null;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function resolveViewportMode(value, width) {
|
|
39
|
+
if (['ios', 'android', 'tablet', 'web'].includes(value)) return value;
|
|
40
|
+
if (width && width <= 500) return 'android';
|
|
41
|
+
if (width && width <= 800) return 'tablet';
|
|
42
|
+
return 'web';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function getViewportDimensions(config, direct) {
|
|
46
|
+
const width = direct ? (config.viewportWidth ?? config.x ?? config.width) : (config.width ?? config.x ?? config.w);
|
|
47
|
+
const height = direct
|
|
48
|
+
? (config.viewportHeight ?? config.y ?? config.height)
|
|
49
|
+
: (config.height ?? config.y ?? config.h);
|
|
50
|
+
return { width: readViewportDimension(width), height: readViewportDimension(height) };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function getViewportIcon(config, mode) {
|
|
54
|
+
if (typeof config.icon === 'string') return config.icon;
|
|
55
|
+
const icons = {
|
|
56
|
+
ios: 'fab fa-apple',
|
|
57
|
+
android: 'fab fa-android',
|
|
58
|
+
tablet: 'fas fa-tablet-alt',
|
|
59
|
+
web: 'fas fa-ruler-combined',
|
|
60
|
+
};
|
|
61
|
+
return icons[mode] || icons.web;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function createCustomViewport(config, direct = false) {
|
|
65
|
+
const { width, height } = getViewportDimensions(config, direct);
|
|
66
|
+
if (!width && !height) return null;
|
|
67
|
+
const mode = resolveViewportMode(config.mode, width);
|
|
68
|
+
return {
|
|
69
|
+
id: typeof config.id === 'string' ? config.id : 'custom',
|
|
70
|
+
label: typeof config.label === 'string' ? config.label : `${width || 'auto'}x${height || 'auto'}`,
|
|
71
|
+
icon: getViewportIcon(config, mode),
|
|
72
|
+
mode,
|
|
73
|
+
width,
|
|
74
|
+
height,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function hasViewportDimensions(config) {
|
|
79
|
+
return ['width', 'height', 'x', 'y', 'w', 'h'].some((key) => config[key] != null);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function resolvePresetViewport(preset) {
|
|
83
|
+
if (!preset || typeof preset !== 'object') return null;
|
|
84
|
+
if (typeof preset.viewport === 'string') return resolveNamedViewport(preset.viewport);
|
|
85
|
+
if (preset.viewport && typeof preset.viewport === 'object') {
|
|
86
|
+
const config = preset.viewport;
|
|
87
|
+
if (typeof config.id === 'string' && !hasViewportDimensions(config)) {
|
|
88
|
+
const named = resolveNamedViewport(config.id);
|
|
89
|
+
if (named) return named;
|
|
90
|
+
}
|
|
91
|
+
const viewport = createCustomViewport(config);
|
|
92
|
+
if (viewport) return viewport;
|
|
93
|
+
}
|
|
94
|
+
return createCustomViewport(preset, true);
|
|
95
|
+
}
|
|
21
96
|
|
|
22
97
|
function createPreviewResizeHandle(axis) {
|
|
23
98
|
const isWidthHandle = axis === 'vertical';
|
|
@@ -42,6 +117,40 @@ function getPreviewResizeDelta(key, decreaseKey, increaseKey) {
|
|
|
42
117
|
return 0;
|
|
43
118
|
}
|
|
44
119
|
|
|
120
|
+
function handlePresetPickerKeydown(event, options, activeOptionId, setActiveOption, selectOption, closeOptions) {
|
|
121
|
+
const availableOptions = options.filter((option) => option.getAttribute('aria-disabled') !== 'true');
|
|
122
|
+
if (!availableOptions.length) return;
|
|
123
|
+
const activeIndex = availableOptions.findIndex((option) => option.id === activeOptionId);
|
|
124
|
+
switch (event.key) {
|
|
125
|
+
case 'ArrowDown':
|
|
126
|
+
case 'ArrowUp': {
|
|
127
|
+
event.preventDefault();
|
|
128
|
+
const delta = event.key === 'ArrowDown' ? 1 : -1;
|
|
129
|
+
const current = activeIndex < 0 ? (delta > 0 ? -1 : 0) : activeIndex;
|
|
130
|
+
const nextIndex = (current + delta + availableOptions.length) % availableOptions.length;
|
|
131
|
+
setActiveOption(availableOptions[nextIndex].dataset.presetId);
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
case 'Home':
|
|
135
|
+
case 'End':
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
setActiveOption(availableOptions[event.key === 'Home' ? 0 : availableOptions.length - 1].dataset.presetId);
|
|
138
|
+
break;
|
|
139
|
+
case 'Enter':
|
|
140
|
+
case ' ':
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
if (activeIndex >= 0) selectOption(availableOptions[activeIndex].dataset.presetId);
|
|
143
|
+
break;
|
|
144
|
+
case 'Escape':
|
|
145
|
+
event.preventDefault();
|
|
146
|
+
closeOptions(true);
|
|
147
|
+
break;
|
|
148
|
+
case 'Tab':
|
|
149
|
+
closeOptions();
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
45
154
|
function getPlaygroundDraftKey(path, file) {
|
|
46
155
|
return `wbc-playground-draft:${path}/${file}`;
|
|
47
156
|
}
|
|
@@ -127,7 +236,7 @@ function getBaseUrl() {
|
|
|
127
236
|
return baseUrl === '' ? '' : baseUrl;
|
|
128
237
|
}
|
|
129
238
|
|
|
130
|
-
function createExampleElement(path, file, text, presets = [], defaultPreset = '',
|
|
239
|
+
function createExampleElement(path, file, text, presets = [], defaultPreset = '', exampleConfig = {}) {
|
|
131
240
|
text = stripDevServerConnector(text);
|
|
132
241
|
const contentDiv = document.createElement('br-item');
|
|
133
242
|
contentDiv.classList.add('file', 'wbc-example');
|
|
@@ -379,12 +488,40 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
379
488
|
updateHistoryActions();
|
|
380
489
|
diffAction.button.disabled = true;
|
|
381
490
|
|
|
382
|
-
const presetSelect = document.createElement('
|
|
491
|
+
const presetSelect = document.createElement('select');
|
|
383
492
|
presetSelect.className = 'wbc-example-preset';
|
|
384
493
|
presetSelect.id = `${controlsScope}-preset`;
|
|
385
|
-
presetSelect.setAttribute('
|
|
386
|
-
presetSelect.
|
|
387
|
-
presetSelect.setAttribute('
|
|
494
|
+
presetSelect.setAttribute('aria-label', 'Preset');
|
|
495
|
+
presetSelect.hidden = true;
|
|
496
|
+
presetSelect.setAttribute('aria-hidden', 'true');
|
|
497
|
+
presetSelect.tabIndex = -1;
|
|
498
|
+
const presetPicker = document.createElement('div');
|
|
499
|
+
presetPicker.className = 'wbc-preset-picker';
|
|
500
|
+
const presetLabel = document.createElement('br-form-label');
|
|
501
|
+
presetLabel.className = 'wbc-example-preset-label';
|
|
502
|
+
presetLabel.setAttribute('label-text', 'Exemplos');
|
|
503
|
+
const presetTrigger = document.createElement('button');
|
|
504
|
+
presetTrigger.type = 'button';
|
|
505
|
+
presetTrigger.id = `${controlsScope}-preset-trigger`;
|
|
506
|
+
presetTrigger.className = 'wbc-preset-picker__trigger';
|
|
507
|
+
presetLabel.setAttribute('for', presetTrigger.id);
|
|
508
|
+
presetTrigger.setAttribute('aria-label', 'Exemplos');
|
|
509
|
+
presetTrigger.setAttribute('aria-haspopup', 'listbox');
|
|
510
|
+
presetTrigger.setAttribute('aria-expanded', 'false');
|
|
511
|
+
const presetTriggerLabel = document.createElement('span');
|
|
512
|
+
presetTriggerLabel.className = 'wbc-preset-picker__label';
|
|
513
|
+
const presetOptionsList = document.createElement('div');
|
|
514
|
+
presetOptionsList.className = 'wbc-preset-picker__options';
|
|
515
|
+
presetOptionsList.id = `${controlsScope}-preset-options`;
|
|
516
|
+
presetOptionsList.setAttribute('role', 'listbox');
|
|
517
|
+
presetOptionsList.setAttribute('aria-label', 'Opções de preset');
|
|
518
|
+
presetOptionsList.setAttribute('popover', 'manual');
|
|
519
|
+
presetOptionsList.tabIndex = -1;
|
|
520
|
+
presetTrigger.setAttribute('aria-controls', presetOptionsList.id);
|
|
521
|
+
const presetChevron = document.createElement('span');
|
|
522
|
+
presetChevron.className = 'wbc-preset-picker__chevron';
|
|
523
|
+
presetChevron.setAttribute('aria-hidden', 'true');
|
|
524
|
+
presetChevron.textContent = '▾';
|
|
388
525
|
const initialPreset =
|
|
389
526
|
presets.find(({ id, source }) => id === activeDraft?.presetId && Boolean(source)) ??
|
|
390
527
|
presets.find(({ id, source }) => id === defaultPreset && Boolean(source)) ??
|
|
@@ -397,16 +534,128 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
397
534
|
const pickSource = (...values) => values.find((value) => typeof value === 'string');
|
|
398
535
|
vanillaSources.css = pickSource(sharedState?.c, activeDraft?.css, getPresetCss(initialPreset));
|
|
399
536
|
vanillaSources.javascript = pickSource(sharedState?.j, activeDraft?.javascript, getPresetJavascript(initialPreset));
|
|
400
|
-
|
|
401
|
-
|
|
537
|
+
const presetTags = document.createElement('div');
|
|
538
|
+
presetTags.className = 'wbc-example-preset-tags';
|
|
539
|
+
presetTags.setAttribute('aria-label', 'Ambientes do preset');
|
|
540
|
+
const updatePresetTags = (tags = []) => {
|
|
541
|
+
presetTags.replaceChildren();
|
|
542
|
+
if (!Array.isArray(tags) || !tags.length) {
|
|
543
|
+
presetTags.hidden = true;
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
presetTags.hidden = false;
|
|
547
|
+
tags.forEach((tag) => {
|
|
548
|
+
const badge = document.createElement('br-tag');
|
|
549
|
+
badge.className = `wbc-preset-tag wbc-preset-tag--${tag}`;
|
|
550
|
+
badge.setAttribute('density', 'compact');
|
|
551
|
+
badge.textContent = tag.toUpperCase();
|
|
552
|
+
presetTags.appendChild(badge);
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
const presetOptionElements = new Map();
|
|
556
|
+
presetOptions.forEach(({ id, label, source, description, tags }) => {
|
|
557
|
+
const option = document.createElement('option');
|
|
402
558
|
option.value = id;
|
|
403
|
-
option.setAttribute('label', label);
|
|
404
559
|
option.textContent = label;
|
|
405
|
-
if (id === initialPresetId) option.
|
|
406
|
-
if (id && !source) option.
|
|
560
|
+
if (id === initialPresetId) option.selected = true;
|
|
561
|
+
if (id && !source) option.disabled = true;
|
|
407
562
|
presetSelect.appendChild(option);
|
|
563
|
+
|
|
564
|
+
const optionRow = document.createElement('div');
|
|
565
|
+
optionRow.className = 'wbc-preset-picker__option';
|
|
566
|
+
optionRow.setAttribute('role', 'option');
|
|
567
|
+
optionRow.setAttribute('aria-selected', String(id === initialPresetId));
|
|
568
|
+
optionRow.id = `${controlsScope}-preset-option-${id}`;
|
|
569
|
+
optionRow.dataset.presetId = id;
|
|
570
|
+
optionRow.title = description || '';
|
|
571
|
+
const optionLabel = document.createElement('span');
|
|
572
|
+
optionLabel.textContent = label;
|
|
573
|
+
optionRow.appendChild(optionLabel);
|
|
574
|
+
if (Array.isArray(tags) && tags.length) {
|
|
575
|
+
const optionTags = document.createElement('span');
|
|
576
|
+
optionTags.className = 'wbc-example-preset-tags';
|
|
577
|
+
optionTags.setAttribute('aria-label', `Ambientes: ${tags.map((tag) => tag.toUpperCase()).join(', ')}`);
|
|
578
|
+
tags.forEach((tag) => {
|
|
579
|
+
const badge = document.createElement('span');
|
|
580
|
+
badge.className = `wbc-preset-tag wbc-preset-tag--${tag}`;
|
|
581
|
+
badge.textContent = tag.toUpperCase();
|
|
582
|
+
optionTags.appendChild(badge);
|
|
583
|
+
});
|
|
584
|
+
optionRow.appendChild(optionTags);
|
|
585
|
+
}
|
|
586
|
+
if (option.disabled) optionRow.setAttribute('aria-disabled', 'true');
|
|
587
|
+
optionRow.addEventListener('pointermove', () => setActivePresetOption(id));
|
|
588
|
+
optionRow.addEventListener('click', () => selectPresetOption(id));
|
|
589
|
+
presetOptionElements.set(id, optionRow);
|
|
590
|
+
presetOptionsList.appendChild(optionRow);
|
|
408
591
|
});
|
|
409
592
|
presetSelect.value = initialPresetId;
|
|
593
|
+
const onPresetPickerOutsidePointer = (event) => {
|
|
594
|
+
if (!presetPicker.contains(event.target)) closePresetOptions();
|
|
595
|
+
};
|
|
596
|
+
const closePresetOptions = (restoreFocus = false) => {
|
|
597
|
+
presetPicker.classList.remove('is-open');
|
|
598
|
+
presetTrigger.setAttribute('aria-expanded', 'false');
|
|
599
|
+
if (presetOptionsList.matches(':popover-open')) presetOptionsList.hidePopover();
|
|
600
|
+
document.removeEventListener('pointerdown', onPresetPickerOutsidePointer);
|
|
601
|
+
if (restoreFocus) presetTrigger.focus();
|
|
602
|
+
};
|
|
603
|
+
const setActivePresetOption = (id) => {
|
|
604
|
+
const option = presetOptionElements.get(id);
|
|
605
|
+
if (!option || option.getAttribute('aria-disabled') === 'true') return;
|
|
606
|
+
presetOptionsList.setAttribute('aria-activedescendant', option.id);
|
|
607
|
+
for (const item of presetOptionElements.values()) item.classList.toggle('is-active', item === option);
|
|
608
|
+
};
|
|
609
|
+
const openPresetOptions = () => {
|
|
610
|
+
presetPicker.classList.add('is-open');
|
|
611
|
+
presetTrigger.setAttribute('aria-expanded', 'true');
|
|
612
|
+
const rect = presetTrigger.getBoundingClientRect();
|
|
613
|
+
const maxWidth = Math.min(360, window.innerWidth - 16);
|
|
614
|
+
const left = Math.min(Math.max(8, rect.left), window.innerWidth - maxWidth - 8);
|
|
615
|
+
const maxHeight = Math.min(288, window.innerHeight - 16);
|
|
616
|
+
const top =
|
|
617
|
+
rect.bottom + maxHeight + 8 > window.innerHeight ? Math.max(8, rect.top - maxHeight - 4) : rect.bottom + 4;
|
|
618
|
+
presetOptionsList.style.left = `${left}px`;
|
|
619
|
+
presetOptionsList.style.top = `${top}px`;
|
|
620
|
+
presetOptionsList.style.minWidth = `${Math.max(rect.width, 200)}px`;
|
|
621
|
+
presetOptionsList.style.maxWidth = `${maxWidth}px`;
|
|
622
|
+
if (!presetOptionsList.matches(':popover-open')) presetOptionsList.showPopover();
|
|
623
|
+
document.addEventListener('pointerdown', onPresetPickerOutsidePointer, { signal: exampleAbortController.signal });
|
|
624
|
+
setActivePresetOption(presetSelect.value);
|
|
625
|
+
presetOptionsList.focus();
|
|
626
|
+
};
|
|
627
|
+
const selectPresetOption = (id) => {
|
|
628
|
+
const option = presetOptions.find((preset) => preset.id === id);
|
|
629
|
+
if (!option?.source) return;
|
|
630
|
+
presetSelect.value = id;
|
|
631
|
+
presetSelect.dispatchEvent(new Event('change', { bubbles: true }));
|
|
632
|
+
closePresetOptions(true);
|
|
633
|
+
};
|
|
634
|
+
presetTrigger.addEventListener('click', () => {
|
|
635
|
+
if (presetPicker.classList.contains('is-open')) closePresetOptions();
|
|
636
|
+
else openPresetOptions();
|
|
637
|
+
});
|
|
638
|
+
presetTrigger.addEventListener('keydown', (event) => {
|
|
639
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
640
|
+
event.preventDefault();
|
|
641
|
+
openPresetOptions();
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
presetOptionsList.addEventListener('keydown', (event) => {
|
|
645
|
+
handlePresetPickerKeydown(
|
|
646
|
+
event,
|
|
647
|
+
[...presetOptionElements.values()],
|
|
648
|
+
presetOptionsList.getAttribute('aria-activedescendant'),
|
|
649
|
+
setActivePresetOption,
|
|
650
|
+
selectPresetOption,
|
|
651
|
+
closePresetOptions,
|
|
652
|
+
);
|
|
653
|
+
});
|
|
654
|
+
presetTriggerLabel.textContent = initialPreset?.label || '';
|
|
655
|
+
presetTrigger.append(presetTriggerLabel, presetTags, presetChevron);
|
|
656
|
+
presetPicker.append(presetTrigger, presetOptionsList);
|
|
657
|
+
presetLabel.appendChild(presetPicker);
|
|
658
|
+
updatePresetTags(initialPreset?.tags);
|
|
410
659
|
|
|
411
660
|
// Descrição do preset: linha de largura total entre o cabeçalho e o preview e, se houver,
|
|
412
661
|
// a explicação detalhada em <details>, recolhida a cada troca de preset. O parágrafo é uma
|
|
@@ -435,16 +684,23 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
435
684
|
updatePresetDescription(initialPreset);
|
|
436
685
|
|
|
437
686
|
let isApplyingPresetFromUrl = false;
|
|
438
|
-
let title;
|
|
439
687
|
const updateExampleLabel = (presetId = presetSelect.value) => {
|
|
440
688
|
const selectedPreset = presetId ? presetOptions.find(({ id }) => id === presetId) : null;
|
|
441
|
-
|
|
689
|
+
presetTriggerLabel.textContent = selectedPreset?.label || '';
|
|
690
|
+
presetTrigger.setAttribute('aria-label', `Exemplos: ${selectedPreset?.label || 'Selecionar exemplo'}`);
|
|
691
|
+
presetOptionElements.forEach((option, id) => {
|
|
692
|
+
option.setAttribute('aria-selected', String(id === presetId));
|
|
693
|
+
});
|
|
694
|
+
updatePresetTags(selectedPreset?.tags);
|
|
442
695
|
};
|
|
443
696
|
if (initialPreset?.source) comparisonBaseline = initialPreset.source;
|
|
444
697
|
presetSelect.addEventListener('change', () => {
|
|
445
698
|
const selectedPreset = presetOptions.find(({ id }) => id === presetSelect.value);
|
|
446
699
|
updateExampleLabel(selectedPreset?.id);
|
|
447
700
|
updatePresetDescription(selectedPreset);
|
|
701
|
+
const presetViewport = resolvePresetViewport(selectedPreset) || resolvePresetViewport(exampleConfig);
|
|
702
|
+
if (presetViewport) applyPresetViewport(presetViewport);
|
|
703
|
+
else applyPresetViewport(DEV_VIEWPORTS[0]);
|
|
448
704
|
if (selectedPreset?.source) {
|
|
449
705
|
controlsCssSource = '';
|
|
450
706
|
controlsApi?.reset?.();
|
|
@@ -477,7 +733,7 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
477
733
|
isApplyingPresetFromUrl = false;
|
|
478
734
|
};
|
|
479
735
|
const hasPresets = presets.length > 0;
|
|
480
|
-
|
|
736
|
+
presetLabel.hidden = !hasPresets;
|
|
481
737
|
|
|
482
738
|
// 1. Copy Action
|
|
483
739
|
const getCopyText = (target) => {
|
|
@@ -767,7 +1023,14 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
767
1023
|
previewFrame.style.removeProperty('margin');
|
|
768
1024
|
updatePreviewResizeA11y();
|
|
769
1025
|
};
|
|
770
|
-
|
|
1026
|
+
let viewportActions = [];
|
|
1027
|
+
const applyPresetViewport = (viewport) => {
|
|
1028
|
+
setViewport(viewport);
|
|
1029
|
+
viewportActions.forEach(({ viewport: item, action }) => {
|
|
1030
|
+
action.button.classList.toggle('wbc-viewport-action--active', item.id === viewport.id);
|
|
1031
|
+
});
|
|
1032
|
+
};
|
|
1033
|
+
viewportActions = DEV_VIEWPORTS.map((viewport) => {
|
|
771
1034
|
const action = createActionButton(viewport.icon, viewport.label, viewport.label, () => {
|
|
772
1035
|
setViewport(viewport);
|
|
773
1036
|
viewportActions.forEach(({ viewport: item, action: itemAction }) => {
|
|
@@ -779,6 +1042,8 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
779
1042
|
action.button.classList.toggle('wbc-viewport-action--active', viewport.id === activeViewport.id);
|
|
780
1043
|
return { viewport, action };
|
|
781
1044
|
});
|
|
1045
|
+
const initialPresetViewport = resolvePresetViewport(initialPreset) || resolvePresetViewport(exampleConfig);
|
|
1046
|
+
applyPresetViewport(initialPresetViewport || DEV_VIEWPORTS[0]);
|
|
782
1047
|
|
|
783
1048
|
let overflowShare;
|
|
784
1049
|
const handleShare = async () => {
|
|
@@ -881,15 +1146,15 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
881
1146
|
// --- EXAMPLE CARD HEADER ---
|
|
882
1147
|
const header = document.createElement('div');
|
|
883
1148
|
header.className = 'wbc-example-header';
|
|
884
|
-
|
|
885
|
-
title = document.createElement('h3');
|
|
886
1149
|
updateExampleLabel();
|
|
887
|
-
header.appendChild(title);
|
|
888
1150
|
|
|
889
1151
|
// Group actions: expanded toolbar vs compact dropdown
|
|
890
1152
|
const headerActions = document.createElement('div');
|
|
891
1153
|
headerActions.className = 'wbc-example-header-actions';
|
|
892
1154
|
|
|
1155
|
+
const toolbarActions = document.createElement('div');
|
|
1156
|
+
toolbarActions.className = 'wbc-example-toolbar-actions';
|
|
1157
|
+
|
|
893
1158
|
const expandedActions = document.createElement('div');
|
|
894
1159
|
expandedActions.className = 'wbc-example-header-actions-expanded';
|
|
895
1160
|
expandedActions.append(
|
|
@@ -1067,7 +1332,8 @@ function createExampleElement(path, file, text, presets = [], defaultPreset = ''
|
|
|
1067
1332
|
collapsedActions.className = 'wbc-example-header-actions-collapsed';
|
|
1068
1333
|
collapsedActions.append(overflowContainer);
|
|
1069
1334
|
|
|
1070
|
-
|
|
1335
|
+
toolbarActions.append(presetSelect, expandedActions, collapsedActions, fsAction.tooltip);
|
|
1336
|
+
headerActions.append(presetLabel, toolbarActions);
|
|
1071
1337
|
header.appendChild(headerActions);
|
|
1072
1338
|
|
|
1073
1339
|
const updateToolbarLayout = () => {
|
|
@@ -1983,7 +2249,7 @@ function createExamplesList(path, results, presets = [], exampleConfigs = [], in
|
|
|
1983
2249
|
text,
|
|
1984
2250
|
availablePresets.map(({ source, ...preset }) => ({ ...preset, source: source?.text ?? null })),
|
|
1985
2251
|
selectedPresetId,
|
|
1986
|
-
config
|
|
2252
|
+
config || {},
|
|
1987
2253
|
);
|
|
1988
2254
|
element.dataset.defaultPreset =
|
|
1989
2255
|
fallbackPreset?.id || availablePresets.find((preset) => getPresetSource(preset))?.id || '';
|
|
@@ -292,7 +292,9 @@ function renderExamplePreview(previewElement, source, edgeToEdge = false, javasc
|
|
|
292
292
|
['log', 'warn', 'error'].forEach((level) => {
|
|
293
293
|
originalConsole[level] = console[level];
|
|
294
294
|
console[level] = (...args) => {
|
|
295
|
-
sendRuntime(level === 'warn' ? 'warning' : level, args.map(formatRuntimeValue), {
|
|
295
|
+
sendRuntime(level === 'warn' ? 'warning' : level, args.map((arg) => formatRuntimeValue(arg)), {
|
|
296
|
+
source: 'console',
|
|
297
|
+
});
|
|
296
298
|
originalConsole[level]?.apply(console, args);
|
|
297
299
|
};
|
|
298
300
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/*=========================================================================================
|
|
6
6
|
= Credit: =
|
|
7
|
-
= https://github.com/shoelace-style/shoelace/blob/next/src/
|
|
7
|
+
= https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts =
|
|
8
8
|
=========================================================================================*/
|
|
9
9
|
/**
|
|
10
10
|
* Utilitários para manipulação e leitura de slots em Web Components.
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{p as t,t as a,H as r,h as e,d as i}from"./p-Jk_KQE5V.js";import{g as o}from"./p-BeJxz5TQ.js";import{r as n,b as s}from"./p-DiLI514I.js";import{h as l}from"./p-5z6jgH1D.js";import{d as c}from"./p-DOX9Uwk1.js";import{d}from"./p-Bvrw9yWR.js";import{d as g}from"./p-CjtmJTLO.js";import{d as v}from"./p-DFWqyfUe.js";const h=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.hasError=!1,this.density="medium",this.customId=o(),this.src="",this.alt="Foto de perfil do usuário",this.isIconic=!1,this.text="",this.disabled=!1,this.bgColor="#DBE8FB",this.status=!1,this.statusBgColor="rgb(22, 136, 33)",this.statusLabel="Status do usuário",this.statusSize="12px",this.statusPosition="top-right",this.handleImageError=()=>{this.hasError=!0,console.error("Erro ao carregar imagem do avatar: "+this.src)}}get effectiveStatusPosition(){return n(this.el,"statusPosition",this.statusPosition,["top-right","bottom-right","top-left","bottom-left"],"top-right")}handleDensityChange(t){this.density=s(this.el,t),"12px"===this.statusSize&&(this.statusSize={small:"12px",medium:"14px",large:"16px"}[this.density]),this.el.setAttribute("density",this.density)}handleBackgroundColorChange(){this.setCustomBackgroundColor()}componentWillLoad(){this.handleDensityChange(this.density),this.setCustomBackgroundColor()}async setFocus(){this.el.hasAttribute("tabindex")||this.el.setAttribute("tabindex","-1"),this.el.focus()}getCssClassMap(){const t=s(this.el,this.density);return{"br-avatar":!0,[t]:!0,error:this.hasError,disabled:this.disabled}}hasContent(t){return t?.trim().length>0}hasStatusSlot(){return l(this.el,"status")}getContentClasses(){return this.hasContent(this.text)&&!(this.iconic??this.isIconic)?"content text-pure-0":"content"}setCustomBackgroundColor(){this.hasContent(this.bgColor)&&this.el.style.setProperty("--avatar-text-background-color",this.bgColor)}getAriaLabel(){const t=this.el.getAttribute("aria-label");return this.hasContent(t??"")?t??"":this.hasContent(this.text)&&!(this.iconic??this.isIconic)?"Avatar de "+this.text:this.hasContent(this.src)&&!this.hasError?this.alt:"Avatar com ícone padrão de usuário"}renderTextAvatar(){return this.text[0].toUpperCase()}renderImageAvatar(){return e("img",{src:this.src,alt:this.alt,loading:"lazy",onError:this.handleImageError})}renderIconAvatar(){const t={small:"32",medium:"80",large:"128"}[s(this.el,this.density)];return e("br-icon",{iconName:"fa-solid:user",width:t,height:t,"aria-hidden":"true",class:"avatar-icon"})}renderAvatar(){return this.iconic??this.isIconic?this.renderIconAvatar():this.hasContent(this.text)?this.renderTextAvatar():this.hasContent(this.src)&&!this.hasError?this.renderImageAvatar():this.renderIconAvatar()}renderStatus(){if(!this.status&&!this.hasStatusSlot())return null;const t=s(this.el,this.density);return e("span",{class:`avatar-status ${this.effectiveStatusPosition} ${t}`,part:"status"},e("slot",{name:"status"},e("br-tag",{status:!0,size:this.statusSize,bgColor:this.statusBgColor,"prop:ariaLabel":this.statusLabel})))}render(){return e(i,{key:"fb320907e2ed0031913374f4c03e6f5f33eefec2"},e("span",{key:"187ae72f1c941ef6b267dc1b34d258c983c2d676",id:this.customId,class:this.getCssClassMap(),role:"img","aria-label":this.getAriaLabel(),part:"container"},e("span",{key:"4dfcc23000e6d22c2cfed227b22b50543158f2e4",class:"avatar-content-wrapper"},e("span",{key:"edb516847bea851d5c2c8adc45a68b4fa1793763",class:this.getContentClasses(),part:"content"},this.renderAvatar()),this.renderStatus())))}get el(){return this}static get watchers(){return{density:[{handleDensityChange:0}],bgColor:[{handleBackgroundColorChange:0}]}}static get style(){return"*,*::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-avatar{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small);--avatar-small:40px;--avatar-medium:100px;--avatar-large:160px;--avatar-icon-small:var(--icon-size-2x);--avatar-icon-medium:var(--icon-size-5x);--avatar-icon-large:var(--icon-size-8x);--avatar-text-small:var(--font-size-scale-up-03);--avatar-text-medium:var(--font-size-scale-up-07);--avatar-text-large:var(--font-size-scale-up-11);align-items:center;background-color:rgba(0,0,0,0);border:0;display:inline-flex;font-size:var(--avatar-text-size);font-weight:var(--font-weight-bold);justify-content:center;line-height:var(--avatar-size);vertical-align:middle}.br-avatar .content{align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .content img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}.br-avatar .content .fa,.br-avatar .content .fas{--icon-size:var(--avatar-icon-size);margin-top:.25em}.br-avatar.small,.br-avatar[small]{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small)}.br-avatar.medium,.br-avatar[medium]{--avatar-size:var(--avatar-medium);--avatar-icon-size:var(--avatar-icon-medium);--avatar-text-size:var(--avatar-text-medium)}.br-avatar.large,.br-avatar[large]{--avatar-size:var(--avatar-large);--avatar-icon-size:var(--avatar-icon-large);--avatar-text-size:var(--avatar-text-large)}.br-avatar[data-toggle=dropdown]:focus{outline:none}.br-avatar[data-toggle=dropdown].focus-visible,.br-avatar[data-toggle=dropdown]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-avatar .image{align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .image img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}.br-avatar .image .fa,.br-avatar .image .fas{--icon-size:var(--avatar-icon-size);margin-top:.25em}:host{display:inline-block}:host .br-avatar .content.text-pure-0{background-color:var(--avatar-text-background-color)}:host .br-avatar{overflow:visible;position:relative}:host .avatar-content-wrapper{display:inline-block;line-height:0;position:relative}:host .avatar-status{display:flex;line-height:0;position:absolute}:host .avatar-status br-tag{margin-right:0}:host .avatar-status.top-right{right:0;top:0;transform:translate(20%, -20%)}:host .avatar-status.small.top-right{right:0;top:2px}:host .avatar-status.medium.top-right{right:10px;top:10px}:host .avatar-status.large.top-right{right:25px;top:10px}:host .avatar-status.bottom-right{bottom:0;right:0;transform:translate(20%, 20%)}:host .avatar-status.top-left{left:0;top:0;transform:translate(-20%, -20%)}:host .avatar-status.bottom-left{bottom:0;left:0;transform:translate(-20%, 20%)}:host([density=small]) .avatar-icon{margin-top:.7em}:host([density=medium]) .avatar-icon{margin-top:.95em}:host([density=large]) .avatar-icon{margin-top:.65em}"}},[257,"br-avatar",{density:[1025],customId:[513,"custom-id"],src:[1],alt:[1],isIconic:[4,"is-iconic"],iconic:[4],text:[1],disabled:[4],bgColor:[513,"bg-color"],status:[516],statusBgColor:[513,"status-bg-color"],statusLabel:[513,"status-label"],statusSize:[1537,"status-size"],statusPosition:[513,"status-position"],hasError:[32],setFocus:[64]},void 0,{density:[{handleDensityChange:0}],bgColor:[{handleBackgroundColorChange:0}]}]),m=h,u=function(){"undefined"!=typeof customElements&&["br-avatar","br-button","br-icon","br-message","br-tag"].forEach((t=>{switch(t){case"br-avatar":customElements.get(a(t))||customElements.define(a(t),h);break;case"br-button":customElements.get(a(t))||c();break;case"br-icon":customElements.get(a(t))||d();break;case"br-message":customElements.get(a(t))||g();break;case"br-tag":customElements.get(a(t))||v()}}))};export{m as BrAvatar,u as defineCustomElement}
|
|
5
|
+
import{p as t,t as a,H as r,h as e,d as i}from"./p-DMj5iO7_.js";import{g as o}from"./p-BeJxz5TQ.js";import{r as n,b as s}from"./p-CJuHirYK.js";import{h as l}from"./p-BNckUhK6.js";import{d as c}from"./p-CWPrXYam.js";import{d}from"./p-Ca89D_0s.js";import{d as g}from"./p-YxddSP6q.js";import{d as v}from"./p-BfFbYAuJ.js";const h=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.hasError=!1,this.density="medium",this.customId=o(),this.src="",this.alt="Foto de perfil do usuário",this.isIconic=!1,this.text="",this.disabled=!1,this.bgColor="#DBE8FB",this.status=!1,this.statusBgColor="rgb(22, 136, 33)",this.statusLabel="Status do usuário",this.statusSize="12px",this.statusPosition="top-right",this.handleImageError=()=>{this.hasError=!0,console.error("Erro ao carregar imagem do avatar: "+this.src)}}get effectiveStatusPosition(){return n(this.el,"statusPosition",this.statusPosition,["top-right","bottom-right","top-left","bottom-left"],"top-right")}handleDensityChange(t){this.density=s(this.el,t),"12px"===this.statusSize&&(this.statusSize={small:"12px",medium:"14px",large:"16px"}[this.density]),this.el.setAttribute("density",this.density)}handleBackgroundColorChange(){this.setCustomBackgroundColor()}componentWillLoad(){this.handleDensityChange(this.density),this.setCustomBackgroundColor()}async setFocus(){this.el.hasAttribute("tabindex")||this.el.setAttribute("tabindex","-1"),this.el.focus()}getCssClassMap(){const t=s(this.el,this.density);return{"br-avatar":!0,[t]:!0,error:this.hasError,disabled:this.disabled}}hasContent(t){return t?.trim().length>0}hasStatusSlot(){return l(this.el,"status")}getContentClasses(){return this.hasContent(this.text)&&!(this.iconic??this.isIconic)?"content text-pure-0":"content"}setCustomBackgroundColor(){this.hasContent(this.bgColor)&&this.el.style.setProperty("--avatar-text-background-color",this.bgColor)}getAriaLabel(){const t=this.el.getAttribute("aria-label");return this.hasContent(t??"")?t??"":this.hasContent(this.text)&&!(this.iconic??this.isIconic)?"Avatar de "+this.text:this.hasContent(this.src)&&!this.hasError?this.alt:"Avatar com ícone padrão de usuário"}renderTextAvatar(){return this.text[0].toUpperCase()}renderImageAvatar(){return e("img",{src:this.src,alt:this.alt,loading:"lazy",onError:this.handleImageError})}renderIconAvatar(){const t={small:"32",medium:"80",large:"128"}[s(this.el,this.density)];return e("br-icon",{iconName:"fa-solid:user",width:t,height:t,"aria-hidden":"true",class:"avatar-icon"})}renderAvatar(){return this.iconic??this.isIconic?this.renderIconAvatar():this.hasContent(this.text)?this.renderTextAvatar():this.hasContent(this.src)&&!this.hasError?this.renderImageAvatar():this.renderIconAvatar()}renderStatus(){if(!this.status&&!this.hasStatusSlot())return null;const t=s(this.el,this.density);return e("span",{class:`avatar-status ${this.effectiveStatusPosition} ${t}`,part:"status"},e("slot",{name:"status"},e("br-tag",{status:!0,size:this.statusSize,bgColor:this.statusBgColor,"prop:ariaLabel":this.statusLabel})))}render(){return e(i,{key:"4b3ba157e374130f69c00745725ece7d3383c12b"},e("span",{key:"b0c1c76767c9232d437fb91244afe94fd9e01189",id:this.customId,class:this.getCssClassMap(),role:"img","aria-label":this.getAriaLabel(),part:"container"},e("span",{key:"862975bce37e5fc3dbf91a367704d672e71f3956",class:"avatar-content-wrapper"},e("span",{key:"7eb13a21ca0bd4eedc7c44619396d3e0a887a9e2",class:this.getContentClasses(),part:"content"},this.renderAvatar()),this.renderStatus())))}get el(){return this}static get watchers(){return{density:[{handleDensityChange:0}],bgColor:[{handleBackgroundColorChange:0}]}}static get style(){return"*,*::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}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.pt-half{padding-top:var(--spacing-scale-half) !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)}mark,.mark{background:var(--red-warm-vivid-10);color:var(--color)}*[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-avatar{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small);--avatar-small:40px;--avatar-medium:100px;--avatar-large:160px;--avatar-icon-small:var(--icon-size-2x);--avatar-icon-medium:var(--icon-size-5x);--avatar-icon-large:var(--icon-size-8x);--avatar-text-small:var(--font-size-scale-up-03);--avatar-text-medium:var(--font-size-scale-up-07);--avatar-text-large:var(--font-size-scale-up-11);align-items:center;background-color:rgba(0,0,0,0);border:0;display:inline-flex;font-size:var(--avatar-text-size);font-weight:var(--font-weight-bold);justify-content:center;line-height:var(--avatar-size);vertical-align:middle}.br-avatar .content{align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .content img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}.br-avatar .content .fa,.br-avatar .content .fas{--icon-size:var(--avatar-icon-size);margin-top:.25em}.br-avatar.small,.br-avatar[small]{--avatar-size:var(--avatar-small);--avatar-icon-size:var(--avatar-icon-small);--avatar-text-size:var(--avatar-text-small)}.br-avatar.medium,.br-avatar[medium]{--avatar-size:var(--avatar-medium);--avatar-icon-size:var(--avatar-icon-medium);--avatar-text-size:var(--avatar-text-medium)}.br-avatar.large,.br-avatar[large]{--avatar-size:var(--avatar-large);--avatar-icon-size:var(--avatar-icon-large);--avatar-text-size:var(--avatar-text-large)}.br-avatar[data-toggle=dropdown]:focus{outline:none}.br-avatar[data-toggle=dropdown].focus-visible,.br-avatar[data-toggle=dropdown]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-avatar .image{align-items:center;background-color:var(--blue-10);border-radius:50%;color:var(--blue-warm-20);display:inline-flex;font-size:var(--avatar-text-size);height:var(--avatar-size);justify-content:center;overflow:hidden;text-align:center;text-transform:uppercase;vertical-align:inherit;width:var(--avatar-size)}.br-avatar .image img{height:var(--avatar-size);vertical-align:inherit;width:var(--avatar-size)}.br-avatar .image .fa,.br-avatar .image .fas{--icon-size:var(--avatar-icon-size);margin-top:.25em}:host{display:inline-block}:host .br-avatar .content.text-pure-0{background-color:var(--avatar-text-background-color)}:host .br-avatar{overflow:visible;position:relative}:host .avatar-content-wrapper{display:inline-block;line-height:0;position:relative}:host .avatar-status{display:flex;line-height:0;position:absolute}:host .avatar-status br-tag{margin-right:0}:host .avatar-status.top-right{right:0;top:0;transform:translate(20%, -20%)}:host .avatar-status.small.top-right{right:0;top:2px}:host .avatar-status.medium.top-right{right:10px;top:10px}:host .avatar-status.large.top-right{right:25px;top:10px}:host .avatar-status.bottom-right{bottom:0;right:0;transform:translate(20%, 20%)}:host .avatar-status.top-left{left:0;top:0;transform:translate(-20%, -20%)}:host .avatar-status.bottom-left{bottom:0;left:0;transform:translate(-20%, 20%)}:host([density=small]) .avatar-icon{margin-top:.7em}:host([density=medium]) .avatar-icon{margin-top:.95em}:host([density=large]) .avatar-icon{margin-top:.65em}"}},[257,"br-avatar",{density:[1025],customId:[513,"custom-id"],src:[1],alt:[1],isIconic:[4,"is-iconic"],iconic:[4],text:[1],disabled:[4],bgColor:[513,"bg-color"],status:[516],statusBgColor:[513,"status-bg-color"],statusLabel:[513,"status-label"],statusSize:[1537,"status-size"],statusPosition:[513,"status-position"],hasError:[32],setFocus:[64]},void 0,{density:[{handleDensityChange:0}],bgColor:[{handleBackgroundColorChange:0}]}]),m=h,u=function(){"undefined"!=typeof customElements&&["br-avatar","br-button","br-icon","br-message","br-tag"].forEach((t=>{switch(t){case"br-avatar":customElements.get(a(t))||customElements.define(a(t),h);break;case"br-button":customElements.get(a(t))||c();break;case"br-icon":customElements.get(a(t))||d();break;case"br-message":customElements.get(a(t))||g();break;case"br-tag":customElements.get(a(t))||v()}}))};export{m as BrAvatar,u as defineCustomElement}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import{p as e,H as a,c as t,h as r,d as s,t as h}from"./p-
|
|
5
|
+
import{p as e,H as a,c as t,h as r,d as s,t as h}from"./p-DMj5iO7_.js";const n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.brCrumbPropsChange=t(this,"brCrumbPropsChange",7),this.label="",this.home=!1,this.active=!1}handlePropsChange(){this.brCrumbPropsChange.emit()}render(){return r(s,{key:"8177c9b8dcca6c295c84d650abf51e260a9c8f90",style:{display:"none"}},r("slot",{key:"14f94aef69d1cd4ead56010e0f854ce232cc7d6e"}))}static get watchers(){return{label:[{handlePropsChange:0}],href:[{handlePropsChange:0}],target:[{handlePropsChange:0}],home:[{handlePropsChange:0}],active:[{handlePropsChange:0}]}}},[257,"br-breadcrumb-item",{label:[513],href:[513],target:[513],home:[4],active:[4]},void 0,{label:[{handlePropsChange:0}],href:[{handlePropsChange:0}],target:[{handlePropsChange:0}],home:[{handlePropsChange:0}],active:[{handlePropsChange:0}]}]),o=n,c=function(){"undefined"!=typeof customElements&&["br-breadcrumb-item"].forEach((e=>{"br-breadcrumb-item"===e&&(customElements.get(h(e))||customElements.define(h(e),n))}))};export{o as BrBreadcrumbItem,c as defineCustomElement}
|