@govbr-ds/webcomponents 2.1.1 → 2.1.3
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 +0 -11
- package/cem/custom-elements.json +219 -11
- package/cem/webcomponents.html-custom-data.json +1 -1
- package/dist/cjs/br-avatar.cjs.entry.js +1 -1
- package/dist/cjs/br-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/br-button_2.cjs.entry.js +2 -2
- package/dist/cjs/br-card.cjs.entry.js +1 -1
- package/dist/cjs/br-carousel-page.cjs.entry.js +1 -1
- package/dist/cjs/br-carousel.cjs.entry.js +1 -1
- package/dist/cjs/br-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/br-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/br-collapse_2.cjs.entry.js +2 -2
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +3 -2
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/br-date-picker_3.cjs.entry.js +5 -4
- package/dist/cjs/br-datetime-picker.cjs.entry.js +2 -3
- package/dist/cjs/br-divider.cjs.entry.js +1 -1
- package/dist/cjs/br-dropdown_2.cjs.entry.js +263 -110
- package/dist/cjs/br-footer-category.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-legal.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-logo.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-social.cjs.entry.js +1 -1
- package/dist/cjs/br-footer.cjs.entry.js +1 -1
- package/dist/cjs/br-header-function.cjs.entry.js +1 -1
- package/dist/cjs/br-header-link.cjs.entry.js +1 -1
- package/dist/cjs/br-header-list.cjs.entry.js +1 -1
- package/dist/cjs/br-header-logo.cjs.entry.js +3 -2
- package/dist/cjs/br-header.cjs.entry.js +1 -1
- package/dist/cjs/br-icon.cjs.entry.js +2 -2
- package/dist/cjs/br-input.cjs.entry.js +1 -1
- package/dist/cjs/br-item.cjs.entry.js +26 -15
- package/dist/cjs/br-link.cjs.entry.js +3 -2
- package/dist/cjs/br-loading.cjs.entry.js +1 -1
- package/dist/cjs/br-magic-button.cjs.entry.js +3 -2
- package/dist/cjs/br-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-header.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-info.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-link.cjs.entry.js +3 -2
- package/dist/cjs/br-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-logo.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-social.cjs.entry.js +1 -1
- package/dist/cjs/br-menu.cjs.entry.js +7 -11
- package/dist/cjs/br-modal.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-body.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-header.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/br-notification.cjs.entry.js +1 -1
- package/dist/cjs/br-pagination.cjs.entry.js +1 -1
- package/dist/cjs/br-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/br-radio.cjs.entry.js +1 -1
- package/dist/cjs/br-scrim.cjs.entry.js +1 -1
- package/dist/cjs/br-select-input_3.cjs.entry.js +48 -14
- package/dist/cjs/br-sign-in.cjs.entry.js +3 -2
- package/dist/cjs/br-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/br-skiplink-item.cjs.entry.js +1 -1
- package/dist/cjs/br-slider.cjs.entry.js +2 -3
- package/dist/cjs/br-step_2.cjs.entry.js +2 -2
- package/dist/cjs/br-switch.cjs.entry.js +1 -1
- package/dist/cjs/br-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/br-tab.cjs.entry.js +1 -1
- package/dist/cjs/br-table-body.cjs.entry.js +1 -1
- package/dist/cjs/br-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/br-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/br-table-header.cjs.entry.js +1 -1
- package/dist/cjs/br-table-row.cjs.entry.js +1 -1
- package/dist/cjs/br-table.cjs.entry.js +1 -1
- package/dist/cjs/br-tag.cjs.entry.js +3 -4
- package/dist/cjs/br-textarea.cjs.entry.js +1 -1
- package/dist/cjs/br-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/br-upload.cjs.entry.js +3 -4
- package/dist/cjs/br-wizard-panel.cjs.entry.js +1 -1
- package/dist/cjs/br-wizard.cjs.entry.js +1 -1
- package/dist/cjs/index-CRdcutym.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +2 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +2 -1
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +1 -2
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +2 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +25 -14
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +2 -1
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +2 -1
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +2 -1
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +7 -11
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +2 -1
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +17 -5
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +28 -7
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +235 -109
- package/dist/collection/components/select/select.utils.js +34 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +2 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +1 -2
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +2 -3
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +2 -3
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/pages/scripts/component-controls.js +34 -4
- package/dist/collection/pages/scripts/menu.js +11 -2
- package/dist/collection/pages/scripts/pageLoader.js +20 -4
- package/dist/components/br-avatar.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-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-body.js +1 -1
- package/dist/components/br-table-cell.js +1 -1
- 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.js +1 -1
- package/dist/components/p-AmOh1cks.js +5 -0
- package/dist/components/p-B4ylcipx.js +5 -0
- package/dist/components/p-BCv4PCOx.js +5 -0
- package/dist/components/p-BLOyd_iF.js +5 -0
- package/dist/components/p-BODem6tr.js +5 -0
- package/dist/components/p-BeFK-82z.js +5 -0
- package/dist/components/p-BloE-KAN.js +5 -0
- package/dist/components/{p-DBP6K_aq.js → p-BoSc_kmY.js} +1 -1
- package/dist/components/p-BrH3r7eL.js +5 -0
- package/dist/components/{p-ttI0nvv_.js → p-BsZ0Ny88.js} +1 -1
- package/dist/components/{p-DoXNfcTT.js → p-ByHVf7zy.js} +1 -1
- package/dist/components/p-CdF-gmk1.js +5 -0
- package/dist/components/p-CfyjGPGI.js +5 -0
- package/dist/components/{p-D9SpD3Ay.js → p-CjF7pBVQ.js} +1 -1
- package/dist/components/p-ClqtllDH.js +5 -0
- package/dist/components/p-CqW2Yh34.js +5 -0
- package/dist/components/{p-C98-mHmV.js → p-DLE5ioJN.js} +1 -1
- package/dist/components/p-DRnCpVrL.js +5 -0
- package/dist/components/p-DVdlaP7z.js +5 -0
- package/dist/components/{p-41XwlWiS.js → p-DeeF6ok0.js} +1 -1
- package/dist/components/p-Dim2PnUm.js +5 -0
- package/dist/components/p-Dk8rfQjL.js +5 -0
- package/dist/components/{p-LmeJrLxH.js → p-DkmEpoef.js} +1 -1
- package/dist/components/p-DwfAYaEv.js +5 -0
- package/dist/components/p-P2Z_MmH6.js +5 -0
- package/dist/components/p-Xa0Mj4pP.js +5 -0
- package/dist/components/p-_vsQvdxD.js +5 -0
- package/dist/components/p-aNjo4Alx.js +5 -0
- package/dist/components/{p-DYnkGWii.js → p-rB-s1M3Q.js} +1 -1
- package/dist/esm/br-avatar.entry.js +1 -1
- package/dist/esm/br-breadcrumb.entry.js +1 -1
- package/dist/esm/br-button_2.entry.js +2 -2
- package/dist/esm/br-card.entry.js +1 -1
- package/dist/esm/br-carousel-page.entry.js +1 -1
- package/dist/esm/br-carousel.entry.js +1 -1
- package/dist/esm/br-checkbox-group.entry.js +1 -1
- package/dist/esm/br-checkbox.entry.js +1 -1
- package/dist/esm/br-collapse_2.entry.js +2 -2
- package/dist/esm/br-cookiebar-cookie.entry.js +1 -1
- package/dist/esm/br-cookiebar-group.entry.js +1 -1
- package/dist/esm/br-cookiebar-header.entry.js +1 -1
- package/dist/esm/br-cookiebar-link.entry.js +3 -2
- package/dist/esm/br-cookiebar-note-group.entry.js +1 -1
- package/dist/esm/br-cookiebar-note.entry.js +1 -1
- package/dist/esm/br-cookiebar.entry.js +1 -1
- package/dist/esm/br-date-picker_3.entry.js +5 -4
- package/dist/esm/br-datetime-picker.entry.js +2 -3
- package/dist/esm/br-divider.entry.js +1 -1
- package/dist/esm/br-dropdown_2.entry.js +263 -110
- package/dist/esm/br-footer-category.entry.js +1 -1
- package/dist/esm/br-footer-item.entry.js +1 -1
- package/dist/esm/br-footer-legal.entry.js +1 -1
- package/dist/esm/br-footer-logo.entry.js +1 -1
- package/dist/esm/br-footer-social.entry.js +1 -1
- package/dist/esm/br-footer.entry.js +1 -1
- package/dist/esm/br-header-function.entry.js +1 -1
- package/dist/esm/br-header-link.entry.js +1 -1
- package/dist/esm/br-header-list.entry.js +1 -1
- package/dist/esm/br-header-logo.entry.js +3 -2
- package/dist/esm/br-header.entry.js +1 -1
- package/dist/esm/br-icon.entry.js +2 -2
- package/dist/esm/br-input.entry.js +1 -1
- package/dist/esm/br-item.entry.js +26 -15
- package/dist/esm/br-link.entry.js +3 -2
- package/dist/esm/br-loading.entry.js +1 -1
- package/dist/esm/br-magic-button.entry.js +3 -2
- package/dist/esm/br-menu-group.entry.js +1 -1
- package/dist/esm/br-menu-header.entry.js +1 -1
- package/dist/esm/br-menu-info.entry.js +1 -1
- package/dist/esm/br-menu-item.entry.js +1 -1
- package/dist/esm/br-menu-link.entry.js +3 -2
- package/dist/esm/br-menu-list.entry.js +1 -1
- package/dist/esm/br-menu-logo.entry.js +1 -1
- package/dist/esm/br-menu-social.entry.js +1 -1
- package/dist/esm/br-menu.entry.js +7 -11
- package/dist/esm/br-modal.entry.js +1 -1
- package/dist/esm/br-notification-body.entry.js +1 -1
- package/dist/esm/br-notification-header.entry.js +1 -1
- package/dist/esm/br-notification-item.entry.js +1 -1
- package/dist/esm/br-notification.entry.js +1 -1
- package/dist/esm/br-pagination.entry.js +1 -1
- package/dist/esm/br-radio-group.entry.js +2 -2
- package/dist/esm/br-radio.entry.js +1 -1
- package/dist/esm/br-scrim.entry.js +1 -1
- package/dist/esm/br-select-input_3.entry.js +48 -14
- package/dist/esm/br-sign-in.entry.js +3 -2
- package/dist/esm/br-skip-link.entry.js +1 -1
- package/dist/esm/br-skiplink-item.entry.js +1 -1
- package/dist/esm/br-slider.entry.js +2 -3
- package/dist/esm/br-step_2.entry.js +2 -2
- package/dist/esm/br-switch.entry.js +1 -1
- package/dist/esm/br-tab-item.entry.js +1 -1
- package/dist/esm/br-tab.entry.js +1 -1
- package/dist/esm/br-table-body.entry.js +1 -1
- package/dist/esm/br-table-cell.entry.js +1 -1
- package/dist/esm/br-table-header-cell.entry.js +1 -1
- package/dist/esm/br-table-header.entry.js +1 -1
- package/dist/esm/br-table-row.entry.js +1 -1
- package/dist/esm/br-table.entry.js +1 -1
- package/dist/esm/br-tag.entry.js +3 -4
- package/dist/esm/br-textarea.entry.js +1 -1
- package/dist/esm/br-tooltip.entry.js +1 -1
- package/dist/esm/br-upload.entry.js +3 -4
- package/dist/esm/br-wizard-panel.entry.js +1 -1
- package/dist/esm/br-wizard.entry.js +1 -1
- package/dist/esm/index-C2RBydfd.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/hydrate/index.js +457 -259
- package/dist/hydrate/index.mjs +457 -259
- package/dist/types/components/item/item.d.ts +1 -0
- package/dist/types/components/menu/menu.d.ts +3 -3
- package/dist/types/components/radio-group/radio-group.d.ts +1 -1
- package/dist/types/components/select/select-list/select-list.d.ts +1 -0
- package/dist/types/components/select/select-option/select-option.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +14 -0
- package/dist/types/components/select/select.types.d.ts +2 -0
- package/dist/types/components/select/select.utils.d.ts +13 -0
- package/dist/types/components.d.ts +6 -6
- package/dist/webcomponents/p-00cc31f9.entry.js +5 -0
- package/dist/webcomponents/p-026475bd.entry.js +5 -0
- package/dist/webcomponents/p-0291ab28.entry.js +5 -0
- package/dist/webcomponents/p-03e5a7dc.entry.js +5 -0
- package/dist/webcomponents/{p-966ad32f.entry.js → p-060df8ee.entry.js} +1 -1
- package/dist/webcomponents/{p-f078f972.entry.js → p-09fce2a5.entry.js} +1 -1
- package/dist/webcomponents/p-1002bbff.entry.js +5 -0
- package/dist/webcomponents/{p-45356e9a.entry.js → p-1124de33.entry.js} +1 -1
- package/dist/webcomponents/p-12e97d80.entry.js +5 -0
- package/dist/webcomponents/p-1b19b191.entry.js +5 -0
- package/dist/webcomponents/p-2baf353b.entry.js +5 -0
- package/dist/webcomponents/{p-c846e784.entry.js → p-2eb9a42c.entry.js} +1 -1
- package/dist/webcomponents/{p-a382e115.entry.js → p-30c82805.entry.js} +1 -1
- package/dist/webcomponents/p-31bd1c74.entry.js +5 -0
- package/dist/webcomponents/{p-224daaac.entry.js → p-31db2313.entry.js} +1 -1
- package/dist/webcomponents/{p-d38d82cc.entry.js → p-33a3dc63.entry.js} +1 -1
- package/dist/webcomponents/{p-c211af17.entry.js → p-3889c51f.entry.js} +1 -1
- package/dist/webcomponents/{p-5ce7db4a.entry.js → p-3f2c179a.entry.js} +1 -1
- package/dist/webcomponents/{p-82200563.entry.js → p-470eb770.entry.js} +1 -1
- package/dist/webcomponents/p-4ae387ae.entry.js +5 -0
- package/dist/webcomponents/p-4e65df84.entry.js +5 -0
- package/dist/webcomponents/p-51a62876.entry.js +5 -0
- package/dist/webcomponents/p-5860b96b.entry.js +5 -0
- package/dist/webcomponents/p-5b9c01e9.entry.js +5 -0
- package/dist/webcomponents/{p-0caa4d12.entry.js → p-5df2f1dd.entry.js} +1 -1
- package/dist/webcomponents/p-5f3f7b3f.entry.js +5 -0
- package/dist/webcomponents/{p-1d6b0b6f.entry.js → p-5f9c28a7.entry.js} +1 -1
- package/dist/webcomponents/p-62511921.entry.js +5 -0
- package/dist/webcomponents/p-63b52947.entry.js +5 -0
- package/dist/webcomponents/p-67a8e0b7.entry.js +5 -0
- package/dist/webcomponents/p-7b2a5fec.entry.js +5 -0
- package/dist/webcomponents/p-7f95e2f5.entry.js +5 -0
- package/dist/webcomponents/p-8128833c.entry.js +5 -0
- package/dist/webcomponents/p-8200ccb1.entry.js +5 -0
- package/dist/webcomponents/{p-5b257a4b.entry.js → p-82b100fd.entry.js} +1 -1
- package/dist/webcomponents/p-8806df15.entry.js +5 -0
- package/dist/webcomponents/p-881eb81a.entry.js +5 -0
- package/dist/webcomponents/{p-0d4f718d.entry.js → p-8bd3d541.entry.js} +1 -1
- package/dist/webcomponents/p-90648343.entry.js +5 -0
- package/dist/webcomponents/p-9100a5f7.entry.js +5 -0
- package/dist/webcomponents/p-91313d77.entry.js +5 -0
- package/dist/webcomponents/{p-0196804a.entry.js → p-946b2ac0.entry.js} +1 -1
- package/dist/webcomponents/{p-569134cf.entry.js → p-98e7ccb9.entry.js} +1 -1
- package/dist/webcomponents/{p-9679d230.entry.js → p-99f2bddb.entry.js} +1 -1
- package/dist/webcomponents/p-9adbdb0a.entry.js +5 -0
- package/dist/webcomponents/p-9c260049.entry.js +5 -0
- package/dist/webcomponents/p-9ed51017.entry.js +5 -0
- package/dist/webcomponents/p-a0b299dd.entry.js +5 -0
- package/dist/webcomponents/p-a2c5fad0.entry.js +5 -0
- package/dist/webcomponents/p-a3e044d7.entry.js +5 -0
- package/dist/webcomponents/p-a9f23aa7.entry.js +5 -0
- package/dist/webcomponents/p-a9f2fcbc.entry.js +5 -0
- package/dist/webcomponents/p-b6c68136.entry.js +5 -0
- package/dist/webcomponents/{p-52df61cb.entry.js → p-b6e9b8d1.entry.js} +1 -1
- package/dist/webcomponents/p-c333eac6.entry.js +5 -0
- package/dist/webcomponents/p-c3732fd6.entry.js +5 -0
- package/dist/webcomponents/p-c458ed0e.entry.js +5 -0
- package/dist/webcomponents/{p-60cc820c.entry.js → p-c91000ff.entry.js} +1 -1
- package/dist/webcomponents/p-c9c6ab2d.entry.js +5 -0
- package/dist/webcomponents/p-cd2550d6.entry.js +5 -0
- package/dist/webcomponents/p-cf42613f.entry.js +5 -0
- package/dist/webcomponents/{p-a9ff7c25.entry.js → p-d0b0b420.entry.js} +1 -1
- package/dist/webcomponents/p-d1b32ee8.entry.js +5 -0
- package/dist/webcomponents/{p-66b13fd9.entry.js → p-db65b083.entry.js} +1 -1
- package/dist/webcomponents/p-de7c101d.entry.js +5 -0
- package/dist/webcomponents/p-dfb77dd0.entry.js +5 -0
- package/dist/webcomponents/{p-d1e899cd.entry.js → p-e258da78.entry.js} +1 -1
- package/dist/webcomponents/p-e31ddd42.entry.js +5 -0
- package/dist/webcomponents/p-e8d82227.entry.js +5 -0
- package/dist/webcomponents/p-e988cf1d.entry.js +5 -0
- package/dist/webcomponents/p-ed9122a1.entry.js +5 -0
- package/dist/webcomponents/p-ee347d2e.entry.js +5 -0
- package/dist/webcomponents/{p-2abd2da0.entry.js → p-f1c01d52.entry.js} +1 -1
- package/dist/webcomponents/p-f5baf8be.entry.js +5 -0
- package/dist/webcomponents/{p-96dd663b.entry.js → p-fb593739.entry.js} +1 -1
- package/dist/webcomponents/p-fff9acd4.entry.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -7
- package/dist/components/p-0IYmyaTi.js +0 -5
- package/dist/components/p-B-sbd1_h.js +0 -5
- package/dist/components/p-BPJpHGOW.js +0 -5
- package/dist/components/p-BW0_ORNA.js +0 -5
- package/dist/components/p-Bm0ECvfB.js +0 -5
- package/dist/components/p-C3LQSQpc.js +0 -5
- package/dist/components/p-CDZFuUlU.js +0 -5
- package/dist/components/p-CRfi23Rd.js +0 -5
- package/dist/components/p-CUI5zWGf.js +0 -5
- package/dist/components/p-CxviDiCr.js +0 -5
- package/dist/components/p-D6zroLx5.js +0 -5
- package/dist/components/p-DCrVo-8T.js +0 -5
- package/dist/components/p-DWPmUV72.js +0 -5
- package/dist/components/p-D_CSvOY9.js +0 -5
- package/dist/components/p-DaeGwqw0.js +0 -5
- package/dist/components/p-Dkg2scYZ.js +0 -5
- package/dist/components/p-DvrdmqoQ.js +0 -5
- package/dist/components/p-TFWd_UBV.js +0 -5
- package/dist/components/p-aF8bGN3t.js +0 -5
- package/dist/components/p-cfPt-vKA.js +0 -5
- package/dist/components/p-nJOJGpyl.js +0 -5
- package/dist/webcomponents/p-0410186a.entry.js +0 -5
- package/dist/webcomponents/p-0415ef22.entry.js +0 -5
- package/dist/webcomponents/p-059c3d6c.entry.js +0 -5
- package/dist/webcomponents/p-0b8f39bc.entry.js +0 -5
- package/dist/webcomponents/p-0e84c9e8.entry.js +0 -5
- package/dist/webcomponents/p-147ac8d3.entry.js +0 -5
- package/dist/webcomponents/p-1b138f1c.entry.js +0 -5
- package/dist/webcomponents/p-1bca4499.entry.js +0 -5
- package/dist/webcomponents/p-1d8cb8fd.entry.js +0 -5
- package/dist/webcomponents/p-22443c08.entry.js +0 -5
- package/dist/webcomponents/p-28426d2a.entry.js +0 -5
- package/dist/webcomponents/p-2fdc51ae.entry.js +0 -5
- package/dist/webcomponents/p-30c428b6.entry.js +0 -5
- package/dist/webcomponents/p-36bbea4e.entry.js +0 -5
- package/dist/webcomponents/p-3907ebfa.entry.js +0 -5
- package/dist/webcomponents/p-39a16f9d.entry.js +0 -5
- package/dist/webcomponents/p-3ebbd2f5.entry.js +0 -5
- package/dist/webcomponents/p-3ef7eac8.entry.js +0 -5
- package/dist/webcomponents/p-46513db4.entry.js +0 -5
- package/dist/webcomponents/p-4fe12a72.entry.js +0 -5
- package/dist/webcomponents/p-5f373708.entry.js +0 -5
- package/dist/webcomponents/p-5fc7ba4c.entry.js +0 -5
- package/dist/webcomponents/p-66006312.entry.js +0 -5
- package/dist/webcomponents/p-6c5f6cb6.entry.js +0 -5
- package/dist/webcomponents/p-6f1c4425.entry.js +0 -5
- package/dist/webcomponents/p-750799b7.entry.js +0 -5
- package/dist/webcomponents/p-756ff2ad.entry.js +0 -5
- package/dist/webcomponents/p-765bfe27.entry.js +0 -5
- package/dist/webcomponents/p-7ab96c11.entry.js +0 -5
- package/dist/webcomponents/p-7c2ff8b4.entry.js +0 -5
- package/dist/webcomponents/p-7cf9f4e5.entry.js +0 -5
- package/dist/webcomponents/p-7e1856e4.entry.js +0 -5
- package/dist/webcomponents/p-7fb03a49.entry.js +0 -5
- package/dist/webcomponents/p-85f8063b.entry.js +0 -5
- package/dist/webcomponents/p-8b558233.entry.js +0 -5
- package/dist/webcomponents/p-8e6c2767.entry.js +0 -5
- package/dist/webcomponents/p-98843fa3.entry.js +0 -5
- package/dist/webcomponents/p-9a375eff.entry.js +0 -5
- package/dist/webcomponents/p-9b358cff.entry.js +0 -5
- package/dist/webcomponents/p-9f7558c7.entry.js +0 -5
- package/dist/webcomponents/p-bba9fc09.entry.js +0 -5
- package/dist/webcomponents/p-c0b0f531.entry.js +0 -5
- package/dist/webcomponents/p-c492d926.entry.js +0 -5
- package/dist/webcomponents/p-c4cfe599.entry.js +0 -5
- package/dist/webcomponents/p-cedb8eea.entry.js +0 -5
- package/dist/webcomponents/p-dba376cb.entry.js +0 -5
- package/dist/webcomponents/p-e0ce536a.entry.js +0 -5
- package/dist/webcomponents/p-e1331288.entry.js +0 -5
- package/dist/webcomponents/p-e360a463.entry.js +0 -5
- package/dist/webcomponents/p-e80a1eb0.entry.js +0 -5
- package/dist/webcomponents/p-f6318e94.entry.js +0 -5
- package/dist/webcomponents/p-fcd4ae48.entry.js +0 -5
|
@@ -12,7 +12,7 @@ import { i as isFormControlDisabled, g as getFormValidationState, s as safeSetFo
|
|
|
12
12
|
import { h as hasNamedLightDomSlot, a as hasAssignedSlotContent } from './slot-BIG-yees.js';
|
|
13
13
|
import './floating-ui.dom-DIK54tTj.js';
|
|
14
14
|
|
|
15
|
-
const dropdownCss = () => `*,*::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}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,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))}}@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))}}@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-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.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}.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)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[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)}:host{display:inline-block;position:relative}:host #trigger{display:inline-flex;align-items:center;cursor:pointer;outline:none}:host [part=trigger-arrow]{margin-left:var(--spacing-scale-half)}:host #trigger::slotted([slot=trigger]):focus:focus{outline:none}:host #trigger::slotted([slot=trigger]):focus.focus-visible,:host #trigger::slotted([slot=trigger]):focus:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host ::slotted([slot=target] *:focus):focus{outline:none}:host ::slotted([slot=target] *:focus).focus-visible,:host ::slotted([slot=target] *:focus):focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host #target{display:none;position:absolute;z-index:var(--z-index-layer-1);box-shadow:var(--surface-shadow-sm);border-radius:0}:host #target:focus:focus{outline:none}:host #target:focus.focus-visible,:host #target:focus:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host([arrow-position=left]) [part=trigger-arrow]{margin-left:0;margin-right:var(--spacing-scale-half)}:host([is-open]) #target{display:block;width:max-content}@media (max-width: 575px){:host([is-open]) #target{width:100vw !important;max-width:100vw !important}}`;
|
|
15
|
+
const dropdownCss = () => `*,*::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}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,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-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.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}.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)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[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)}:host{display:inline-block;position:relative}:host #trigger{display:inline-flex;align-items:center;cursor:pointer;outline:none}:host [part=trigger-arrow]{margin-left:var(--spacing-scale-half)}:host #trigger::slotted([slot=trigger]):focus:focus{outline:none}:host #trigger::slotted([slot=trigger]):focus.focus-visible,:host #trigger::slotted([slot=trigger]):focus:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host ::slotted([slot=target] *:focus):focus{outline:none}:host ::slotted([slot=target] *:focus).focus-visible,:host ::slotted([slot=target] *:focus):focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host #target{display:none;position:absolute;z-index:var(--z-index-layer-1);box-shadow:var(--surface-shadow-sm);border-radius:0}:host #target:focus:focus{outline:none}:host #target:focus.focus-visible,:host #target:focus:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host([arrow-position=left]) [part=trigger-arrow]{margin-left:0;margin-right:var(--spacing-scale-half)}:host([is-open]) #target{display:block;width:max-content}@media (max-width: 575px){:host([is-open]) #target{width:100vw !important;max-width:100vw !important}}`;
|
|
16
16
|
|
|
17
17
|
const Dropdown = class {
|
|
18
18
|
constructor(hostRef) {
|
|
@@ -575,7 +575,38 @@ const Dropdown = class {
|
|
|
575
575
|
};
|
|
576
576
|
Dropdown.style = dropdownCss();
|
|
577
577
|
|
|
578
|
-
const selectCss = () => `*,*::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}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,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))}}@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))}}@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-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.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}.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)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[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)}.br-select{--select-divider:1px solid var(--color-secondary-04);--select-shadow:var(--surface-shadow-md)}.br-select .br-input input{padding-right:29px;text-overflow:ellipsis}.br-select .br-input input::after{bottom:0;padding:0 5px;position:absolute;right:0}.br-select{max-width:400px;min-width:100px;position:relative}.br-select .br-list{background:var(--bg-color);box-shadow:var(--select-shadow);display:none;margin-top:-2px;max-height:404px;overflow:auto;position:absolute;resize:none;width:100%;z-index:1}.br-select .br-list::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}.br-select .br-list::-webkit-scrollbar-track{background:var(--gray-10)}.br-select .br-list::-webkit-scrollbar-thumb{background:var(--gray-30)}.br-select .br-list:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}.br-select .br-list:focus,.br-select .br-list:active{color:var(--color-secondary-09);outline:none}.br-select .br-list:hover::-webkit-scrollbar-thumb{background:var(--color-secondary-07)}.br-select .br-list[expanded]{display:block}.br-select .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--interactive-light-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)}.br-select .br-item .content{padding:0}.br-select .br-item .br-checkbox,.br-select .br-item .br-radio{--item-padding-x:var(--spacing-scale-2x);--item-padding-y:var(--spacing-scale-2x)}.br-select .br-item .br-checkbox input:hover:not(:disabled)+label::before,.br-select .br-item .br-radio input:hover:not(:disabled)+label::before{background-image:none}.br-select .br-item .br-checkbox input+label,.br-select .br-item .br-radio input+label{padding-left:calc(var(--checkbox-padding) + var(--checkbox-size) + var(--item-padding-x))}.br-select .br-item .br-radio input+label{color:var(--text-color);display:block;height:auto;min-height:0;padding:var(--item-padding)}.br-select .br-item .br-radio input+label::before,.br-select .br-item .br-radio input+label::after{content:none}.br-select .br-item:not(:last-child){border-bottom:var(--select-divider)}.br-select .br-item:not([disabled]){--focus-offset:calc(var(--spacing-scale-half) * -1)}.br-select .br-item:not([disabled]):focus{outline:none}.br-select .br-item:not([disabled]).focus-visible,.br-select .br-item:not([disabled]):focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-select .br-item:not([disabled]):not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-select .br-item.selected,.br-select .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)}.br-select .br-item.selected:focus,.br-select .br-item[selected]:focus{outline:none}.br-select .br-item.selected.focus-visible,.br-select .br-item.selected:focus-visible,.br-select .br-item[selected].focus-visible,.br-select .br-item[selected]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-select .br-item.selected:not(:disabled):hover,.br-select .br-item[selected]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-select .br-item.disabled{line-height:calc(var(--font-line-height-high)*2);padding-left:calc(var(--item-padding) + var(--spacing-scale-base))}.br-select.inverted .br-input,.br-select.inverted .br-input label,.br-select.dark-mode .br-input,.br-select.dark-mode .br-input label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}:host{display:inline-block}.br-select{min-width:100px;max-width:400px;position:relative}:host([multiple]) .br-select{min-width:200px}`;
|
|
578
|
+
function transitionSelection({ currentValues, multiple, value, selected, selectableValues = [], }) {
|
|
579
|
+
const current = [...new Set(currentValues)];
|
|
580
|
+
if (!multiple) {
|
|
581
|
+
const values = selected && value ? [value] : [];
|
|
582
|
+
return { values, changed: values.length !== current.length || values[0] !== current[0] };
|
|
583
|
+
}
|
|
584
|
+
if (!value && selectableValues.length > 0) {
|
|
585
|
+
const values = selected ? [...new Set(selectableValues)] : [];
|
|
586
|
+
return {
|
|
587
|
+
values,
|
|
588
|
+
changed: values.length !== current.length || values.some((item, index) => item !== current[index]),
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
const next = new Set(current);
|
|
592
|
+
if (selected)
|
|
593
|
+
next.add(value);
|
|
594
|
+
else
|
|
595
|
+
next.delete(value);
|
|
596
|
+
const values = [...next];
|
|
597
|
+
return { values, changed: values.length !== current.length || values.some((item, index) => item !== current[index]) };
|
|
598
|
+
}
|
|
599
|
+
function transitionAllSelection(currentValues, selected, selectableValues) {
|
|
600
|
+
return transitionSelection({
|
|
601
|
+
currentValues,
|
|
602
|
+
multiple: true,
|
|
603
|
+
value: '',
|
|
604
|
+
selected,
|
|
605
|
+
selectableValues,
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
const selectCss = () => `*,*::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}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,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-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.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}.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)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[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)}.br-select{--select-divider:1px solid var(--color-secondary-04);--select-shadow:var(--surface-shadow-md)}.br-select .br-input input{padding-right:29px;text-overflow:ellipsis}.br-select .br-input input::after{bottom:0;padding:0 5px;position:absolute;right:0}.br-select{max-width:400px;min-width:100px;position:relative}.br-select .br-list{background:var(--bg-color);box-shadow:var(--select-shadow);display:none;margin-top:-2px;max-height:404px;overflow:auto;position:absolute;resize:none;width:100%;z-index:1}.br-select .br-list::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}.br-select .br-list::-webkit-scrollbar-track{background:var(--gray-10)}.br-select .br-list::-webkit-scrollbar-thumb{background:var(--gray-30)}.br-select .br-list:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}.br-select .br-list:focus,.br-select .br-list:active{color:var(--color-secondary-09);outline:none}.br-select .br-list:hover::-webkit-scrollbar-thumb{background:var(--color-secondary-07)}.br-select .br-list[expanded]{display:block}.br-select .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--interactive-light-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)}.br-select .br-item .content{padding:0}.br-select .br-item .br-checkbox,.br-select .br-item .br-radio{--item-padding-x:var(--spacing-scale-2x);--item-padding-y:var(--spacing-scale-2x)}.br-select .br-item .br-checkbox input:hover:not(:disabled)+label::before,.br-select .br-item .br-radio input:hover:not(:disabled)+label::before{background-image:none}.br-select .br-item .br-checkbox input+label,.br-select .br-item .br-radio input+label{padding-left:calc(var(--checkbox-padding) + var(--checkbox-size) + var(--item-padding-x))}.br-select .br-item .br-radio input+label{color:var(--text-color);display:block;height:auto;min-height:0;padding:var(--item-padding)}.br-select .br-item .br-radio input+label::before,.br-select .br-item .br-radio input+label::after{content:none}.br-select .br-item:not(:last-child){border-bottom:var(--select-divider)}.br-select .br-item:not([disabled]){--focus-offset:calc(var(--spacing-scale-half) * -1)}.br-select .br-item:not([disabled]):focus{outline:none}.br-select .br-item:not([disabled]).focus-visible,.br-select .br-item:not([disabled]):focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-select .br-item:not([disabled]):not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-select .br-item.selected,.br-select .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)}.br-select .br-item.selected:focus,.br-select .br-item[selected]:focus{outline:none}.br-select .br-item.selected.focus-visible,.br-select .br-item.selected:focus-visible,.br-select .br-item[selected].focus-visible,.br-select .br-item[selected]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}.br-select .br-item.selected:not(:disabled):hover,.br-select .br-item[selected]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--color-rgb), var(--hover)), rgba(var(--color-rgb), var(--hover)))}.br-select .br-item.disabled{line-height:calc(var(--font-line-height-high)*2);padding-left:calc(var(--item-padding) + var(--spacing-scale-base))}.br-select.inverted .br-input,.br-select.inverted .br-input label,.br-select.dark-mode .br-input,.br-select.dark-mode .br-input label{--color:var(--color-dark);--focus-color:var(--focus-color-dark)}:host{display:inline-block}.br-select{min-width:100px;max-width:400px;position:relative}:host([multiple]) .br-select{min-width:200px}`;
|
|
579
610
|
|
|
580
611
|
let selectId = 0;
|
|
581
612
|
const Select = class {
|
|
@@ -745,6 +776,7 @@ const Select = class {
|
|
|
745
776
|
this.validatorMessage = null;
|
|
746
777
|
this.hasFeedbackSlot = false;
|
|
747
778
|
this.hasValidationLoadingSlot = false;
|
|
779
|
+
this.selectedValuesState = [];
|
|
748
780
|
this.customValidationMessage = '';
|
|
749
781
|
this.validationRunId = 0;
|
|
750
782
|
this.lastAnnouncedOpen = false;
|
|
@@ -752,6 +784,9 @@ const Select = class {
|
|
|
752
784
|
this.suppressValueChange = false;
|
|
753
785
|
this.hasImperativeOptions = false;
|
|
754
786
|
this.remoteSelectedOptions = new Map();
|
|
787
|
+
this.selectionInitialized = false;
|
|
788
|
+
this.selectedValues = [];
|
|
789
|
+
this.suppressFocusOpen = false;
|
|
755
790
|
/**
|
|
756
791
|
* Sincroniza as opções declaradas no slot com a lista interna renderizada.
|
|
757
792
|
*
|
|
@@ -762,10 +797,11 @@ const Select = class {
|
|
|
762
797
|
this.syncOptionsFromSlot = (updateDisplayValue = true) => {
|
|
763
798
|
if (this.hasImperativeOptions)
|
|
764
799
|
return;
|
|
765
|
-
const nodes = this.slotElement?.assignedNodes({ flatten: true }) ??
|
|
800
|
+
const nodes = this.slotElement?.assignedNodes({ flatten: true }) ?? Array.from(this.el.childNodes);
|
|
766
801
|
const options = nodes.map((n) => this.nodeToOption(n)).filter((o) => Boolean(o));
|
|
767
802
|
// Envia opções para o br-select-list
|
|
768
|
-
this.selectListElement
|
|
803
|
+
if (this.selectListElement)
|
|
804
|
+
this.selectListElement.options = this.getListOptions(options);
|
|
769
805
|
if (updateDisplayValue)
|
|
770
806
|
this.syncDisplayValue(options);
|
|
771
807
|
};
|
|
@@ -795,6 +831,10 @@ const Select = class {
|
|
|
795
831
|
this.setSelectionMode(this.effectiveMultiple);
|
|
796
832
|
const initialOptions = this.getHostOptions();
|
|
797
833
|
const propOptions = this.getOptionsProp();
|
|
834
|
+
const sourceOptions = initialOptions.length === 0 && propOptions.length > 0 ? propOptions : initialOptions;
|
|
835
|
+
this.setSelectedValues(this.valueFromPublicValue(this.value) ??
|
|
836
|
+
sourceOptions.filter((option) => option.selected).map((option) => option.value));
|
|
837
|
+
this.selectionInitialized = true;
|
|
798
838
|
if (initialOptions.length === 0 && propOptions.length > 0) {
|
|
799
839
|
this.pendingOptions = propOptions;
|
|
800
840
|
this.syncDisplayValue(propOptions);
|
|
@@ -816,7 +856,7 @@ const Select = class {
|
|
|
816
856
|
this.slotElement.addEventListener('slotchange', this.handleSlotChange);
|
|
817
857
|
}
|
|
818
858
|
if (this.pendingOptions && this.selectListElement) {
|
|
819
|
-
this.selectListElement.
|
|
859
|
+
this.selectListElement.options = this.getListOptions(this.pendingOptions);
|
|
820
860
|
this.pendingOptions = null;
|
|
821
861
|
}
|
|
822
862
|
this.isValueChangeReady = true;
|
|
@@ -825,6 +865,10 @@ const Select = class {
|
|
|
825
865
|
this.attachBlockingSurfaceListener();
|
|
826
866
|
this.updateValidity();
|
|
827
867
|
}
|
|
868
|
+
componentDidRender() {
|
|
869
|
+
this.syncNativeSelectSelection();
|
|
870
|
+
this.updateValidity();
|
|
871
|
+
}
|
|
828
872
|
disconnectedCallback() {
|
|
829
873
|
if (this.slotElement) {
|
|
830
874
|
this.slotElement.removeEventListener('slotchange', this.handleSlotChange);
|
|
@@ -841,6 +885,47 @@ const Select = class {
|
|
|
841
885
|
get effectiveOpen() {
|
|
842
886
|
return this.open ?? this.isOpen;
|
|
843
887
|
}
|
|
888
|
+
valueFromPublicValue(value) {
|
|
889
|
+
if (this.effectiveMultiple)
|
|
890
|
+
return Array.isArray(value) ? [...new Set(value.filter(Boolean))] : null;
|
|
891
|
+
return typeof value === 'string' && value ? [value] : null;
|
|
892
|
+
}
|
|
893
|
+
setSelectedValues(values) {
|
|
894
|
+
const next = [...new Set(values.filter(Boolean))];
|
|
895
|
+
if (!this.effectiveMultiple && next.length > 1)
|
|
896
|
+
next.splice(1);
|
|
897
|
+
if (this.selectedValues.length === next.length &&
|
|
898
|
+
this.selectedValues.every((value, index) => value === next[index]))
|
|
899
|
+
return;
|
|
900
|
+
this.selectedValues = next;
|
|
901
|
+
this.selectedValuesState = next;
|
|
902
|
+
}
|
|
903
|
+
get canonicalSelectedValues() {
|
|
904
|
+
return this.selectedValues;
|
|
905
|
+
}
|
|
906
|
+
applyCanonicalSelection(options, values = this.canonicalSelectedValues) {
|
|
907
|
+
if (!this.selectionInitialized)
|
|
908
|
+
return options.map((option) => ({ ...option }));
|
|
909
|
+
const selected = new Set(values);
|
|
910
|
+
return options.map((option) => ({ ...option, selected: selected.has(option.value) }));
|
|
911
|
+
}
|
|
912
|
+
getListOptions(options) {
|
|
913
|
+
const normalized = this.applyCanonicalSelection(options).filter((option) => option.value !== '__select_all__');
|
|
914
|
+
if (!this.effectiveMultiple)
|
|
915
|
+
return normalized;
|
|
916
|
+
const selectable = normalized.filter((option) => !this.isSelectAllLabel(this.getOptionLabel(option)));
|
|
917
|
+
const allSelected = selectable.length > 0 && selectable.every((option) => Boolean(option.selected));
|
|
918
|
+
const anySelected = selectable.some((option) => Boolean(option.selected));
|
|
919
|
+
return [
|
|
920
|
+
{
|
|
921
|
+
value: '__select_all__',
|
|
922
|
+
label: allSelected ? this.unselectAllLabel : this.selectAllLabel,
|
|
923
|
+
selected: allSelected,
|
|
924
|
+
indeterminate: anySelected && !allSelected,
|
|
925
|
+
},
|
|
926
|
+
...selectable,
|
|
927
|
+
];
|
|
928
|
+
}
|
|
844
929
|
isDisabled() {
|
|
845
930
|
return isFormControlDisabled(this.disabled, this.formDisabled);
|
|
846
931
|
}
|
|
@@ -913,6 +998,8 @@ const Select = class {
|
|
|
913
998
|
}
|
|
914
999
|
handleSelectInputFocus() {
|
|
915
1000
|
this.activeOptionIndex = -1;
|
|
1001
|
+
if (this.suppressFocusOpen)
|
|
1002
|
+
return;
|
|
916
1003
|
if (this.filterable && !this.effectiveOpen) {
|
|
917
1004
|
this.clearSearch();
|
|
918
1005
|
void this.show();
|
|
@@ -949,16 +1036,50 @@ const Select = class {
|
|
|
949
1036
|
this.toggleOpenFromPointer();
|
|
950
1037
|
}
|
|
951
1038
|
handleSelectOptionStateChange(event) {
|
|
952
|
-
this.syncSlottedOptionSelection(event.detail);
|
|
953
|
-
this.rememberRemoteSelections(this.getCurrentOptions());
|
|
954
|
-
this.syncDisplayValue();
|
|
955
|
-
this.syncActiveOptionIndex(event.detail);
|
|
956
1039
|
event.stopPropagation();
|
|
957
|
-
const detail =
|
|
1040
|
+
const detail = event.detail;
|
|
1041
|
+
// Use a lista interna para preservar rótulos e opções remotas enquanto as
|
|
1042
|
+
// props projetadas aguardam a próxima renderização.
|
|
1043
|
+
const listOptions = this.getSelectListController()?.options;
|
|
1044
|
+
const sourceOptions = Array.isArray(listOptions) && listOptions.length > 0
|
|
1045
|
+
? listOptions.map((option) => ({ ...option }))
|
|
1046
|
+
: this.getCurrentOptions();
|
|
1047
|
+
// No modo simples, o evento é a decisão final da interação. A lista
|
|
1048
|
+
// virtualizada e as opções projetadas podem ainda conter o snapshot da
|
|
1049
|
+
// interação anterior durante cliques consecutivos; derivar a coleção a
|
|
1050
|
+
// partir do valor do evento evita que esse snapshot reapareça no valor
|
|
1051
|
+
// público ou no formulário.
|
|
1052
|
+
const selectableValues = sourceOptions
|
|
1053
|
+
.filter((option) => !this.isSelectAllLabel(this.getOptionLabel(option)))
|
|
1054
|
+
.map((option) => option.value);
|
|
1055
|
+
const transition = this.isSelectAllLabel(detail.label ?? detail.value)
|
|
1056
|
+
? transitionAllSelection(this.selectedValues, Boolean(detail.selected), selectableValues)
|
|
1057
|
+
: transitionSelection({
|
|
1058
|
+
currentValues: this.selectedValues,
|
|
1059
|
+
multiple: this.effectiveMultiple,
|
|
1060
|
+
value: detail.value,
|
|
1061
|
+
selected: Boolean(detail.selected),
|
|
1062
|
+
});
|
|
1063
|
+
this.setSelectedValues(transition.values);
|
|
1064
|
+
const options = this.applyCanonicalSelection(sourceOptions, transition.values);
|
|
1065
|
+
if (this.selectListElement)
|
|
1066
|
+
this.selectListElement.options = this.getListOptions(options);
|
|
1067
|
+
this.reflectRenderedListSelection(transition.values, options);
|
|
1068
|
+
this.syncSlottedOptionSelection(transition.values);
|
|
1069
|
+
this.rememberRemoteSelections(options);
|
|
1070
|
+
this.syncDisplayValue(options);
|
|
1071
|
+
this.syncActiveOptionIndex(event.detail);
|
|
958
1072
|
this.emitStateChange(detail);
|
|
959
1073
|
this.updateValidity();
|
|
960
|
-
if (!
|
|
961
|
-
|
|
1074
|
+
if (!transition.changed)
|
|
1075
|
+
return;
|
|
1076
|
+
if (!this.effectiveMultiple) {
|
|
1077
|
+
this.suppressFocusOpen = true;
|
|
1078
|
+
void this.selectInputElement?.setFocus?.();
|
|
1079
|
+
void this.close().finally(() => {
|
|
1080
|
+
this.suppressFocusOpen = false;
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
962
1083
|
dispatchNativeFormEvent(this.el, 'input');
|
|
963
1084
|
dispatchNativeFormEvent(this.el, 'change');
|
|
964
1085
|
}
|
|
@@ -1175,7 +1296,7 @@ const Select = class {
|
|
|
1175
1296
|
this.suppressValueChange = true;
|
|
1176
1297
|
try {
|
|
1177
1298
|
if (this.selectListElement) {
|
|
1178
|
-
|
|
1299
|
+
this.selectListElement.options = this.getListOptions(nextOptions);
|
|
1179
1300
|
}
|
|
1180
1301
|
else {
|
|
1181
1302
|
this.pendingOptions = nextOptions;
|
|
@@ -1194,20 +1315,20 @@ const Select = class {
|
|
|
1194
1315
|
*/
|
|
1195
1316
|
async setOption(option) {
|
|
1196
1317
|
this.hasImperativeOptions = true;
|
|
1318
|
+
const currentOptions = this.getCurrentOptions();
|
|
1319
|
+
const index = currentOptions.findIndex((currentOption) => currentOption.value === option.value);
|
|
1320
|
+
const nextOptions = [...currentOptions];
|
|
1321
|
+
if (index === -1)
|
|
1322
|
+
nextOptions.push(option);
|
|
1323
|
+
else
|
|
1324
|
+
nextOptions[index] = option;
|
|
1197
1325
|
if (this.selectListElement) {
|
|
1198
|
-
|
|
1199
|
-
}
|
|
1200
|
-
else if (this.pendingOptions) {
|
|
1201
|
-
const index = this.pendingOptions.findIndex((currentOption) => currentOption.value === option.value);
|
|
1202
|
-
if (index !== -1)
|
|
1203
|
-
this.pendingOptions[index] = option;
|
|
1204
|
-
else
|
|
1205
|
-
this.pendingOptions.push(option);
|
|
1326
|
+
this.selectListElement.options = this.getListOptions(nextOptions);
|
|
1206
1327
|
}
|
|
1207
1328
|
else {
|
|
1208
|
-
this.pendingOptions =
|
|
1329
|
+
this.pendingOptions = nextOptions;
|
|
1209
1330
|
}
|
|
1210
|
-
this.syncDisplayValue();
|
|
1331
|
+
this.syncDisplayValue(nextOptions);
|
|
1211
1332
|
}
|
|
1212
1333
|
getHostOptions() {
|
|
1213
1334
|
return Array.from(this.el.childNodes)
|
|
@@ -1236,15 +1357,16 @@ const Select = class {
|
|
|
1236
1357
|
const rawLabel = el.getAttribute('label') ?? el.label ?? '';
|
|
1237
1358
|
let value = String(rawValue || '').trim();
|
|
1238
1359
|
let label = String(rawLabel || '').trim();
|
|
1360
|
+
const inner = this.extractInnerTextFromOption(el);
|
|
1361
|
+
const content = (el.innerHTML || '').trim();
|
|
1239
1362
|
const selected = el.hasAttribute('selected') || Boolean(el.selected);
|
|
1240
1363
|
if (!value) {
|
|
1241
|
-
const inner = this.extractInnerTextFromOption(el);
|
|
1242
1364
|
if (inner)
|
|
1243
1365
|
value = inner.trim();
|
|
1244
1366
|
}
|
|
1245
1367
|
if (!label)
|
|
1246
|
-
label = value;
|
|
1247
|
-
return { value: value || '', label: label || undefined, selected };
|
|
1368
|
+
label = inner?.trim() || value;
|
|
1369
|
+
return { value: value || '', label: label || undefined, selected, content: content || undefined };
|
|
1248
1370
|
}
|
|
1249
1371
|
extractInnerTextFromOption(el) {
|
|
1250
1372
|
const fromSlot = this.getAssignedSlotText(el);
|
|
@@ -1297,6 +1419,9 @@ const Select = class {
|
|
|
1297
1419
|
this.syncValue(resolvedOptions);
|
|
1298
1420
|
}
|
|
1299
1421
|
syncValue(options) {
|
|
1422
|
+
this.setSelectedValues(options
|
|
1423
|
+
.filter((option) => option.selected && !this.isSelectAllLabel(this.getOptionLabel(option)))
|
|
1424
|
+
.map((option) => option.value));
|
|
1300
1425
|
const nextValue = this.getSerializedValue(options);
|
|
1301
1426
|
this.syncFormState(options);
|
|
1302
1427
|
if (this.value === nextValue)
|
|
@@ -1336,15 +1461,18 @@ const Select = class {
|
|
|
1336
1461
|
}
|
|
1337
1462
|
applySelectedValue(value) {
|
|
1338
1463
|
const currentOptions = this.getCurrentOptions();
|
|
1464
|
+
const requestedValues = this.valueFromPublicValue(value) ?? [];
|
|
1465
|
+
this.setSelectedValues(requestedValues);
|
|
1339
1466
|
const options = currentOptions.map((option) => ({
|
|
1340
1467
|
...option,
|
|
1341
|
-
selected:
|
|
1468
|
+
selected: requestedValues.includes(option.value),
|
|
1342
1469
|
}));
|
|
1343
1470
|
this.isApplyingExternalValue = true;
|
|
1344
1471
|
if (this.selectListElement)
|
|
1345
|
-
|
|
1472
|
+
this.selectListElement.options = this.getListOptions(options);
|
|
1346
1473
|
else
|
|
1347
1474
|
this.pendingOptions = options;
|
|
1475
|
+
this.reflectRenderedListSelection(requestedValues, options);
|
|
1348
1476
|
this.value = value;
|
|
1349
1477
|
this.isApplyingExternalValue = false;
|
|
1350
1478
|
this.remoteSelectedOptions.clear();
|
|
@@ -1367,7 +1495,7 @@ const Select = class {
|
|
|
1367
1495
|
}
|
|
1368
1496
|
applyRemoteSelection(options) {
|
|
1369
1497
|
this.rememberRemoteSelections(this.getCurrentOptions());
|
|
1370
|
-
const selectedValues = new Set(
|
|
1498
|
+
const selectedValues = new Set(this.selectedValues);
|
|
1371
1499
|
const nextOptions = options.map((option) => ({
|
|
1372
1500
|
...option,
|
|
1373
1501
|
selected: selectedValues.has(option.value) || Boolean(option.selected),
|
|
@@ -1402,38 +1530,36 @@ const Select = class {
|
|
|
1402
1530
|
const selectedValues = selected.map((option) => option.value);
|
|
1403
1531
|
const formValue = this.effectiveMultiple ? JSON.stringify(selectedValues) : (selectedValues[0] ?? null);
|
|
1404
1532
|
safeSetFormValue(this.elementInternals, formValue);
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
const selectedSet = new Set(selectedValues);
|
|
1408
|
-
const optionNodes = Array.from(this.nativeSelect.options);
|
|
1409
|
-
selectedSet.forEach((value) => {
|
|
1410
|
-
if (optionNodes.some((option) => option.value === value))
|
|
1411
|
-
return;
|
|
1412
|
-
const option = document.createElement('option');
|
|
1413
|
-
option.value = value;
|
|
1414
|
-
this.nativeSelect?.append(option);
|
|
1415
|
-
});
|
|
1416
|
-
optionNodes.forEach((option) => {
|
|
1417
|
-
if (option.value !== '' && !selectedSet.has(option.value))
|
|
1418
|
-
option.remove();
|
|
1419
|
-
else
|
|
1420
|
-
option.selected = selectedSet.has(option.value);
|
|
1421
|
-
});
|
|
1422
|
-
this.nativeSelect.value = selectedValues[0] ?? '';
|
|
1423
|
-
}
|
|
1424
|
-
this.updateValidity();
|
|
1533
|
+
this.syncNativeSelectSelection(selectedValues);
|
|
1534
|
+
this.updateValidity(selectedValues.length);
|
|
1425
1535
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1536
|
+
syncNativeSelectSelection(values = this.getSelectedValues()) {
|
|
1537
|
+
const nativeSelect = this.getNativeSelect();
|
|
1538
|
+
if (!nativeSelect)
|
|
1539
|
+
return;
|
|
1540
|
+
const selectedValues = new Set(values);
|
|
1541
|
+
Array.from(nativeSelect.options).forEach((option) => {
|
|
1542
|
+
option.selected = option.value === '' ? selectedValues.size === 0 : selectedValues.has(option.value);
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
getSelectedValues() {
|
|
1546
|
+
return [...this.selectedValues];
|
|
1547
|
+
}
|
|
1548
|
+
updateValidity(selectedCount = this.getSelectedValues().length) {
|
|
1549
|
+
const nativeSelect = this.getNativeSelect();
|
|
1550
|
+
if (!nativeSelect)
|
|
1428
1551
|
return;
|
|
1429
|
-
const selectedCount = this.getFormOptions(this.getCurrentOptions()).filter((option) => option.selected).length;
|
|
1430
1552
|
const selectionMessage = this.effectiveMultiple && this.minSelections > 0 && selectedCount < this.minSelections
|
|
1431
1553
|
? `Selecione pelo menos ${this.minSelections} opções.`
|
|
1432
1554
|
: this.effectiveMultiple && this.maxSelections > 0 && selectedCount > this.maxSelections
|
|
1433
1555
|
? `Selecione no máximo ${this.maxSelections} opções.`
|
|
1434
1556
|
: '';
|
|
1435
|
-
|
|
1436
|
-
syncNativeFormValidity(this.elementInternals,
|
|
1557
|
+
nativeSelect.setCustomValidity(this.customValidationMessage || this.validatorMessage || selectionMessage);
|
|
1558
|
+
syncNativeFormValidity(this.elementInternals, nativeSelect);
|
|
1559
|
+
}
|
|
1560
|
+
getNativeSelect() {
|
|
1561
|
+
return (this.el.shadowRoot?.querySelector('select[part="hidden-select"]') ??
|
|
1562
|
+
this.nativeSelect);
|
|
1437
1563
|
}
|
|
1438
1564
|
resolveValidator() {
|
|
1439
1565
|
return resolveFormValidator(this.validator);
|
|
@@ -1544,6 +1670,17 @@ const Select = class {
|
|
|
1544
1670
|
const index = this.getCurrentActiveIndex();
|
|
1545
1671
|
const option = options[index];
|
|
1546
1672
|
const nextSelected = this.effectiveMultiple ? !option?.selected : true;
|
|
1673
|
+
if (this.effectiveMultiple && index === 0 && option && !this.isSelectAllLabel(this.getOptionLabel(option))) {
|
|
1674
|
+
this.handleSelectOptionStateChange(new CustomEvent('brSelectOptionStateChange', {
|
|
1675
|
+
detail: {
|
|
1676
|
+
value: '__select_all__',
|
|
1677
|
+
label: this.selectAllLabel,
|
|
1678
|
+
selected: true,
|
|
1679
|
+
disabled: false,
|
|
1680
|
+
},
|
|
1681
|
+
}));
|
|
1682
|
+
return;
|
|
1683
|
+
}
|
|
1547
1684
|
const didSelect = await this.getSelectListController()?.setOptionSelected?.(index, nextSelected);
|
|
1548
1685
|
if (didSelect) {
|
|
1549
1686
|
this.activeOptionIndex = index;
|
|
@@ -1564,55 +1701,19 @@ const Select = class {
|
|
|
1564
1701
|
* Essa sincronização mantém as props/atributos das opções declaradas pelo consumidor em
|
|
1565
1702
|
* conformidade com o estado calculado internamente, inclusive no caso do "selecionar todos".
|
|
1566
1703
|
*/
|
|
1567
|
-
syncSlottedOptionSelection(
|
|
1568
|
-
|
|
1569
|
-
return;
|
|
1570
|
-
const slottedOptions = this.slotElement
|
|
1571
|
-
.assignedElements({ flatten: true })
|
|
1572
|
-
.filter((el) => el.tagName.toLowerCase() === 'br-select-option');
|
|
1704
|
+
syncSlottedOptionSelection(values = this.selectedValues) {
|
|
1705
|
+
const slottedOptions = Array.from(this.el.children).filter((el) => el.tagName.toLowerCase() === 'br-select-option');
|
|
1573
1706
|
if (slottedOptions.length === 0)
|
|
1574
1707
|
return;
|
|
1575
|
-
const
|
|
1576
|
-
const isSelectAll = this.isSelectAllLabel(detailLabel);
|
|
1577
|
-
if (this.effectiveMultiple && isSelectAll) {
|
|
1578
|
-
slottedOptions.forEach((option) => {
|
|
1579
|
-
const optionLabel = (option.label ?? option.value).trim();
|
|
1580
|
-
const isSelectAllOption = this.isSelectAllLabel(optionLabel);
|
|
1581
|
-
if (isSelectAllOption) {
|
|
1582
|
-
option.indeterminate = false;
|
|
1583
|
-
option.selected = Boolean(detail.selected);
|
|
1584
|
-
this.normalizeSelectAllState(option);
|
|
1585
|
-
if (option.selected)
|
|
1586
|
-
option.setAttribute('selected', '');
|
|
1587
|
-
else
|
|
1588
|
-
option.removeAttribute('selected');
|
|
1589
|
-
return;
|
|
1590
|
-
}
|
|
1591
|
-
option.selected = Boolean(detail.selected);
|
|
1592
|
-
if (option.selected)
|
|
1593
|
-
option.setAttribute('selected', '');
|
|
1594
|
-
else
|
|
1595
|
-
option.removeAttribute('selected');
|
|
1596
|
-
});
|
|
1597
|
-
return;
|
|
1598
|
-
}
|
|
1708
|
+
const selectedValues = new Set(values);
|
|
1599
1709
|
slottedOptions.forEach((option) => {
|
|
1600
|
-
const
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1605
|
-
option.selected = nextSelected;
|
|
1606
|
-
if (nextSelected) {
|
|
1710
|
+
const resolved = this.optionElementToData(option).value;
|
|
1711
|
+
option.selected = selectedValues.has(resolved);
|
|
1712
|
+
option.indeterminate = false;
|
|
1713
|
+
if (option.selected)
|
|
1607
1714
|
option.setAttribute('selected', '');
|
|
1608
|
-
|
|
1609
|
-
else {
|
|
1610
|
-
option.removeAttribute('selected');
|
|
1611
|
-
}
|
|
1612
|
-
if (!this.effectiveMultiple && !isTarget) {
|
|
1613
|
-
option.selected = false;
|
|
1715
|
+
else
|
|
1614
1716
|
option.removeAttribute('selected');
|
|
1615
|
-
}
|
|
1616
1717
|
});
|
|
1617
1718
|
if (!this.effectiveMultiple)
|
|
1618
1719
|
return;
|
|
@@ -1635,6 +1736,26 @@ const Select = class {
|
|
|
1635
1736
|
option.removeAttribute('selected');
|
|
1636
1737
|
});
|
|
1637
1738
|
}
|
|
1739
|
+
reflectRenderedListSelection(values, sourceOptions) {
|
|
1740
|
+
const renderedOptions = this.selectListElement?.shadowRoot?.querySelectorAll('br-select-option');
|
|
1741
|
+
if (!renderedOptions)
|
|
1742
|
+
return;
|
|
1743
|
+
const selectedValues = new Set(values);
|
|
1744
|
+
const selectableOptions = (sourceOptions?.length
|
|
1745
|
+
? sourceOptions
|
|
1746
|
+
: Array.from(renderedOptions).map((option) => ({ label: option.label, value: option.value }))).filter((option) => !this.isSelectAllLabel(this.getOptionLabel(option)));
|
|
1747
|
+
const allSelected = selectableOptions.length > 0 && selectableOptions.every((option) => selectedValues.has(option.value));
|
|
1748
|
+
const anySelected = selectableOptions.some((option) => selectedValues.has(option.value));
|
|
1749
|
+
renderedOptions.forEach((option) => {
|
|
1750
|
+
if (this.isSelectAllLabel(option.label ?? option.value)) {
|
|
1751
|
+
option.indeterminate = anySelected && !allSelected;
|
|
1752
|
+
option.selected = allSelected;
|
|
1753
|
+
option.label = this.getSelectAllLabel(allSelected, option.indeterminate);
|
|
1754
|
+
return;
|
|
1755
|
+
}
|
|
1756
|
+
option.selected = selectedValues.has(option.value);
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1638
1759
|
isSelectAllLabel(label) {
|
|
1639
1760
|
return label === this.selectAllLabel || label === this.unselectAllLabel;
|
|
1640
1761
|
}
|
|
@@ -1715,6 +1836,7 @@ const Select = class {
|
|
|
1715
1836
|
* A precedência é: lista interna, opções pendentes, conteúdo do slot e, por último,
|
|
1716
1837
|
* os filhos atuais do host.
|
|
1717
1838
|
*/
|
|
1839
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: prioriza a precedência entre slot, lista e opções remotas.
|
|
1718
1840
|
getCurrentOptions() {
|
|
1719
1841
|
// As opções projetadas são a fonte canônica quando não há coleção
|
|
1720
1842
|
// imperativa: a lista virtualizada pode manter um snapshot enquanto o
|
|
@@ -1724,21 +1846,53 @@ const Select = class {
|
|
|
1724
1846
|
const slotOptions = nodes
|
|
1725
1847
|
.map((node) => this.nodeToOption(node))
|
|
1726
1848
|
.filter((option) => Boolean(option));
|
|
1727
|
-
if (slotOptions.length > 0)
|
|
1728
|
-
|
|
1849
|
+
if (slotOptions.length > 0) {
|
|
1850
|
+
const normalizedSlotOptions = this.applyCanonicalSelection(slotOptions);
|
|
1851
|
+
if (this.effectiveMultiple &&
|
|
1852
|
+
!normalizedSlotOptions.some((option) => this.isSelectAllLabel(this.getOptionLabel(option)))) {
|
|
1853
|
+
normalizedSlotOptions.unshift({
|
|
1854
|
+
value: '__select_all__',
|
|
1855
|
+
label: this.selectAllLabel,
|
|
1856
|
+
selected: false,
|
|
1857
|
+
indeterminate: false,
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
return normalizedSlotOptions;
|
|
1861
|
+
}
|
|
1729
1862
|
}
|
|
1730
1863
|
const listOptions = this.getSelectListController()?.options;
|
|
1731
1864
|
if (Array.isArray(listOptions) && listOptions.length > 0) {
|
|
1732
1865
|
const normalizedListOptions = listOptions.map((option) => ({ ...option }));
|
|
1733
1866
|
const hasRealOptions = normalizedListOptions.some((option) => !this.isSelectAllLabel(this.getOptionLabel(option)));
|
|
1734
1867
|
if (hasRealOptions) {
|
|
1735
|
-
|
|
1868
|
+
if (this.effectiveMultiple &&
|
|
1869
|
+
!normalizedListOptions.some((option) => this.isSelectAllLabel(this.getOptionLabel(option)))) {
|
|
1870
|
+
normalizedListOptions.unshift({
|
|
1871
|
+
value: '__select_all__',
|
|
1872
|
+
label: this.selectAllLabel,
|
|
1873
|
+
selected: false,
|
|
1874
|
+
indeterminate: false,
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
return this.applyCanonicalSelection(normalizedListOptions);
|
|
1736
1878
|
}
|
|
1737
1879
|
}
|
|
1738
1880
|
if (this.pendingOptions) {
|
|
1739
|
-
return this.pendingOptions
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1881
|
+
return this.applyCanonicalSelection(this.pendingOptions);
|
|
1882
|
+
}
|
|
1883
|
+
const hostOptions = this.applyCanonicalSelection(this.getHostOptions());
|
|
1884
|
+
if (this.effectiveMultiple && hostOptions.length > 0) {
|
|
1885
|
+
return [
|
|
1886
|
+
{
|
|
1887
|
+
value: '__select_all__',
|
|
1888
|
+
label: this.selectAllLabel,
|
|
1889
|
+
selected: false,
|
|
1890
|
+
indeterminate: false,
|
|
1891
|
+
},
|
|
1892
|
+
...hostOptions,
|
|
1893
|
+
];
|
|
1894
|
+
}
|
|
1895
|
+
return hostOptions;
|
|
1742
1896
|
}
|
|
1743
1897
|
normalizeSearchText(value) {
|
|
1744
1898
|
return value
|
|
@@ -1788,7 +1942,7 @@ const Select = class {
|
|
|
1788
1942
|
return (h("br-select-input", { part: "input", exportparts: "container:input-container, input:input-field, label:input-label, group:input-group, icon:input-icon, action:input-action, action-button:input-action-button", ref: (el) => (this.selectInputElement = el), "aria-activedescendant": this.getActiveDescendant(), "aria-controls": this.listboxId, "aria-disabled": String(this.isDisabled()), "aria-expanded": String(this.effectiveOpen), "aria-haspopup": "listbox", "aria-label": this.getAccessibleLabel(), "aria-required": String(this.required), borderless: this.borderless, "is-inline": this.effectiveInline, "is-open": this.effectiveOpen, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, disabled: this.isDisabled(), filterable: this.filterable, showSearchIcon: this.showSearchIcon, autocomplete: this.autocomplete, "input-width": this.inputWidth, role: "combobox", value: this.filterable && this.effectiveOpen ? this.searchTerm : this.getRenderedDisplayValue() }));
|
|
1789
1943
|
}
|
|
1790
1944
|
renderSelectList() {
|
|
1791
|
-
return (h("br-select-list", { part: "list", exportparts: "list, option, checkbox, select-all, empty-option, option-checkbox, option-radio", "active-option-index": this.activeOptionIndex, "aria-label": this.getAccessibleLabel(), "aria-multiselectable": this.effectiveMultiple ? 'true' : 'false', id: this.listboxId, "visible-items": this.visibleItems, "item-height": this.itemHeight, overscan: this.overscan, "search-term": this.filterable && this.searchMode === 'local' ? this.searchTerm : '', role: "listbox", "select-all-label": this.selectAllLabel, "unselect-all-label": this.unselectAllLabel, ref: (el) => {
|
|
1945
|
+
return (h("br-select-list", { part: "list", options: this.getCurrentOptions(), exportparts: "list, option, checkbox, select-all, empty-option, option-checkbox, option-radio", "active-option-index": this.activeOptionIndex, "aria-label": this.getAccessibleLabel(), "aria-multiselectable": this.effectiveMultiple ? 'true' : 'false', id: this.listboxId, "visible-items": this.visibleItems, "item-height": this.itemHeight, overscan: this.overscan, "search-term": this.filterable && this.searchMode === 'local' ? this.searchTerm : '', role: "listbox", "select-all-label": this.selectAllLabel, "unselect-all-label": this.unselectAllLabel, ref: (el) => {
|
|
1792
1946
|
this.selectListElement = el;
|
|
1793
1947
|
this.selectListElement.loading = this.loading;
|
|
1794
1948
|
this.setSelectionMode(this.effectiveMultiple);
|
|
@@ -1796,9 +1950,8 @@ const Select = class {
|
|
|
1796
1950
|
} }, h("slot", null), h("slot", { name: "loading", slot: "loading" })));
|
|
1797
1951
|
}
|
|
1798
1952
|
renderHiddenSelect() {
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
.filter((option) => option.selected);
|
|
1953
|
+
const options = this.getFormOptions(this.getCurrentOptions()).filter((option) => !this.isSelectAllLabel(this.getOptionLabel(option)));
|
|
1954
|
+
const hasSelection = options.some((option) => option.selected);
|
|
1802
1955
|
return (h("select", { ref: (el) => (this.nativeSelect = el), part: "hidden-select", name: this.name, autocomplete: this.autocomplete, multiple: this.effectiveMultiple, required: this.required, disabled: this.isDisabled(), tabIndex: -1, "aria-hidden": "true", style: {
|
|
1803
1956
|
position: 'absolute',
|
|
1804
1957
|
width: '1px',
|
|
@@ -1809,10 +1962,10 @@ const Select = class {
|
|
|
1809
1962
|
clip: 'rect(0, 0, 0, 0)',
|
|
1810
1963
|
whiteSpace: 'nowrap',
|
|
1811
1964
|
border: '0',
|
|
1812
|
-
}, onChange: (event) => event.preventDefault() }, h("option", { value: "", selected:
|
|
1965
|
+
}, onChange: (event) => event.preventDefault() }, h("option", { value: "", selected: !hasSelection }), options.map((option) => (h("option", { key: option.value, value: option.value, selected: option.selected, disabled: option.disabled })))));
|
|
1813
1966
|
}
|
|
1814
1967
|
render() {
|
|
1815
|
-
return (h(Host, { key: '
|
|
1968
|
+
return (h(Host, { key: '81db917bc8a39989db84e7e0c9f4aa1272d52af0', "aria-busy": this.isValidating || this.loading ? 'true' : null }, h("div", { key: '150cc02f7a66f90546741550586ba254b9b6728a', class: this.getCssClassMap(), part: "container" }, this.renderSelectInput(), this.renderSelectList(), h("div", { key: 'd3a981fd4da448b3e2355b78bab07fb7245624d8', part: "feedback", hidden: !this.hasFeedbackSlot && !this.validatorMessage }, h("slot", { key: '9f40bb218c36ab6b19579ceac0a849e40ec00ad4', name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }, this.validatorMessage)), h("div", { key: 'd33a5d0ebd54ebeda226e06de1a60b0f75e5b94c', part: "validation-loading", hidden: !this.hasValidationLoadingSlot || !this.isValidating }, h("slot", { key: '8b098ffce8ca2ed341f5a06252bf662574343717', name: "validation-loading" })), this.renderHiddenSelect())));
|
|
1816
1969
|
}
|
|
1817
1970
|
static get formAssociated() { return true; }
|
|
1818
1971
|
get el() { return getElement(this); }
|