@govbr-ds/webcomponents 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cem/custom-elements.json +63 -63
- package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
- package/dist/cjs/br-avatar.cjs.entry.js +248 -0
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
- package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
- package/dist/cjs/br-button_2.cjs.entry.js +280 -0
- package/dist/cjs/br-card.cjs.entry.js +111 -0
- package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
- package/dist/cjs/br-carousel.cjs.entry.js +565 -0
- package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
- package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
- package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
- package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +54 -0
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
- package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
- package/dist/cjs/br-crumb.cjs.entry.js +51 -0
- package/dist/cjs/br-date-picker_3.cjs.entry.js +2446 -0
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1887 -0
- package/dist/cjs/br-divider.cjs.entry.js +225 -0
- package/dist/cjs/br-dropdown_2.cjs.entry.js +1856 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
- package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
- package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
- package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
- package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
- package/dist/cjs/br-footer.cjs.entry.js +92 -0
- package/dist/cjs/br-header-function.cjs.entry.js +142 -0
- package/dist/cjs/br-header-link.cjs.entry.js +60 -0
- package/dist/cjs/br-header-list.cjs.entry.js +279 -0
- package/dist/cjs/br-header-logo.cjs.entry.js +177 -0
- package/dist/cjs/br-header.cjs.entry.js +642 -0
- package/dist/cjs/br-icon.cjs.entry.js +485 -0
- package/dist/cjs/br-input.cjs.entry.js +599 -0
- package/dist/cjs/br-item.cjs.entry.js +356 -0
- package/dist/cjs/br-link.cjs.entry.js +132 -0
- package/dist/cjs/br-loading.cjs.entry.js +505 -0
- package/dist/cjs/br-magic-button.cjs.entry.js +92 -0
- package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
- package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
- package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
- package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
- package/dist/cjs/br-menu-link.cjs.entry.js +55 -0
- package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
- package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
- package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
- package/dist/cjs/br-menu.cjs.entry.js +993 -0
- package/dist/cjs/br-modal.cjs.entry.js +496 -0
- package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
- package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
- package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
- package/dist/cjs/br-notification.cjs.entry.js +334 -0
- package/dist/cjs/br-pagination.cjs.entry.js +884 -0
- package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/br-radio.cjs.entry.js +357 -0
- package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
- package/dist/cjs/br-select-input_3.cjs.entry.js +954 -0
- package/dist/cjs/br-sign-in.cjs.entry.js +125 -0
- package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
- package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
- package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
- package/dist/cjs/br-slider.cjs.entry.js +688 -0
- package/dist/cjs/br-step_2.cjs.entry.js +628 -0
- package/dist/cjs/br-switch.cjs.entry.js +245 -0
- package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
- package/dist/cjs/br-tab.cjs.entry.js +397 -0
- package/dist/cjs/br-table-body.cjs.entry.js +37 -0
- package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
- package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
- package/dist/cjs/br-table-header.cjs.entry.js +37 -0
- package/dist/cjs/br-table-row.cjs.entry.js +81 -0
- package/dist/cjs/br-table.cjs.entry.js +680 -0
- package/dist/cjs/br-tag.cjs.entry.js +494 -0
- package/dist/cjs/br-textarea.cjs.entry.js +306 -0
- package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
- package/dist/cjs/br-upload.cjs.entry.js +582 -0
- package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
- package/dist/cjs/br-wizard.cjs.entry.js +708 -0
- package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
- package/dist/cjs/clamp-Co_hWptd.js +25 -0
- package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
- package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
- package/dist/cjs/event-CmVdNHxl.js +56 -0
- package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
- package/dist/cjs/floating-ui-MBI1osio.js +136 -0
- package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
- package/dist/cjs/focus-DuywwJPR.js +30 -0
- package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
- package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
- package/dist/cjs/id-CjRFMzf6.js +20 -0
- package/dist/cjs/index-C92n55ch.js +678 -0
- package/dist/cjs/index-CRdcutym.js +3287 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/isNil-DO5zWc3l.js +19 -0
- package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
- package/dist/cjs/navigation-AbzwcRCU.js +25 -0
- package/dist/cjs/parts-D5K3ae2C.js +19 -0
- package/dist/cjs/props-CScmBvKd.js +24 -0
- package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
- package/dist/cjs/slot-DAllytTj.js +48 -0
- package/dist/cjs/swipe-BU8_XE9f.js +345 -0
- package/dist/cjs/table-constants-BOPSay0B.js +183 -0
- package/dist/cjs/validator-CTCajtT9.js +123 -0
- package/dist/cjs/webcomponents.cjs.js +50 -0
- package/dist/collection/assets/icon-search.svg +6 -0
- package/dist/collection/assets/logo-negative.svg +1 -0
- package/dist/collection/assets/logo-positive.svg +1 -0
- package/dist/collection/assets/wc.svg +1 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/avatar/avatar.css +1 -0
- package/dist/collection/components/avatar/avatar.js +589 -0
- package/dist/collection/components/avatar/avatar.types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
- package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
- package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +546 -0
- package/dist/collection/components/button/button.types.js +1 -0
- package/dist/collection/components/card/card.css +1 -0
- package/dist/collection/components/card/card.js +225 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
- package/dist/collection/components/carousel/carousel.css +1 -0
- package/dist/collection/components/carousel/carousel.js +1217 -0
- package/dist/collection/components/carousel/carousel.types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +1 -0
- package/dist/collection/components/checkbox/checkbox.js +823 -0
- package/dist/collection/components/checkbox/checkbox.types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
- package/dist/collection/components/checkgroup/checkgroup.js +166 -0
- package/dist/collection/components/collapse/collapse.css +1 -0
- package/dist/collection/components/collapse/collapse.js +642 -0
- package/dist/collection/components/collapse/collapse.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +200 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
- package/dist/collection/components/cookiebar/cookiebar.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
- package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +825 -0
- package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
- package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +1925 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
- package/dist/collection/components/divider/divider.css +1 -0
- package/dist/collection/components/divider/divider.js +537 -0
- package/dist/collection/components/divider/divider.types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +939 -0
- package/dist/collection/components/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/footer/footer.js +245 -0
- package/dist/collection/components/footer/footer.types.js +1 -0
- package/dist/collection/components/global.types.js +1 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -0
- package/dist/collection/components/header/header-function/header-function.js +311 -0
- package/dist/collection/components/header/header-link/header-link.css +1 -0
- package/dist/collection/components/header/header-link/header-link.js +189 -0
- package/dist/collection/components/header/header-list/header-list.css +1 -0
- package/dist/collection/components/header/header-list/header-list.js +452 -0
- package/dist/collection/components/header/header-logo/header-logo.css +1 -0
- package/dist/collection/components/header/header-logo/header-logo.js +420 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/header/header.js +1131 -0
- package/dist/collection/components/header/header.types.js +1 -0
- package/dist/collection/components/icon/default-icons-cache.js +233 -0
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +598 -0
- package/dist/collection/components/icon/icon.types.js +1 -0
- package/dist/collection/components/icon/icon.utils.js +33 -0
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +1642 -0
- package/dist/collection/components/input/input.types.js +1 -0
- package/dist/collection/components/item/item.css +1 -0
- package/dist/collection/components/item/item.js +906 -0
- package/dist/collection/components/item/item.types.js +1 -0
- package/dist/collection/components/link/link.css +1 -0
- package/dist/collection/components/link/link.js +698 -0
- package/dist/collection/components/list/list.css +1 -0
- package/dist/collection/components/list/list.js +728 -0
- package/dist/collection/components/loading/loading.css +1 -0
- package/dist/collection/components/loading/loading.js +1169 -0
- package/dist/collection/components/loading/loading.types.js +1 -0
- package/dist/collection/components/magic-button/magic-button.css +1 -0
- package/dist/collection/components/magic-button/magic-button.js +237 -0
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
- package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
- package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
- package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
- package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
- package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.js +259 -0
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
- package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
- package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
- package/dist/collection/components/menu/menu.css +1 -0
- package/dist/collection/components/menu/menu.js +1372 -0
- package/dist/collection/components/menu/menu.types.js +1 -0
- package/dist/collection/components/menu/menu.utils.js +279 -0
- package/dist/collection/components/message/message.css +1 -0
- package/dist/collection/components/message/message.js +508 -0
- package/dist/collection/components/modal/modal.css +1 -0
- package/dist/collection/components/modal/modal.js +842 -0
- package/dist/collection/components/modal/modal.types.js +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
- package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
- package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
- package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
- package/dist/collection/components/notification/notification.css +1 -0
- package/dist/collection/components/notification/notification.js +838 -0
- package/dist/collection/components/notification/notification.types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1 -0
- package/dist/collection/components/pagination/pagination.js +1470 -0
- package/dist/collection/components/pagination/pagination.types.js +1 -0
- package/dist/collection/components/radio/radio.css +1 -0
- package/dist/collection/components/radio/radio.js +847 -0
- package/dist/collection/components/radio/radio.types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +1 -0
- package/dist/collection/components/radio-group/radio-group.js +862 -0
- package/dist/collection/components/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/scrim/scrim.css +1 -0
- package/dist/collection/components/scrim/scrim.js +1825 -0
- package/dist/collection/components/scrim/scrim.types.js +1 -0
- package/dist/collection/components/scrim/scrim.utils.js +132 -0
- package/dist/collection/components/select/select-input/select-input.css +1 -0
- package/dist/collection/components/select/select-input/select-input.js +585 -0
- package/dist/collection/components/select/select-list/select-list.css +1 -0
- package/dist/collection/components/select/select-list/select-list.js +1147 -0
- package/dist/collection/components/select/select-option/select-option.css +1 -0
- package/dist/collection/components/select/select-option/select-option.js +543 -0
- package/dist/collection/components/select/select.constants.js +6 -0
- package/dist/collection/components/select/select.css +1 -0
- package/dist/collection/components/select/select.js +2575 -0
- package/dist/collection/components/select/select.types.js +1 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -0
- package/dist/collection/components/sign-in/sign-in.js +400 -0
- package/dist/collection/components/sign-in/sign-in.types.js +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
- package/dist/collection/components/skip-link/skip-link.css +1 -0
- package/dist/collection/components/skip-link/skip-link.js +699 -0
- package/dist/collection/components/skip-link/skip-link.types.js +1 -0
- package/dist/collection/components/slider/slider.css +1 -0
- package/dist/collection/components/slider/slider.js +1325 -0
- package/dist/collection/components/slider/slider.types.js +1 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -0
- package/dist/collection/components/step/step-item/step-item.js +604 -0
- package/dist/collection/components/step/step-item/step-item.types.js +1 -0
- package/dist/collection/components/step/step.css +1 -0
- package/dist/collection/components/step/step.js +896 -0
- package/dist/collection/components/step/step.types.js +1 -0
- package/dist/collection/components/switch/switch.css +1 -0
- package/dist/collection/components/switch/switch.js +715 -0
- package/dist/collection/components/switch/switch.types.js +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
- package/dist/collection/components/tab/tab.css +1 -0
- package/dist/collection/components/tab/tab.js +724 -0
- package/dist/collection/components/tab/tab.types.js +1 -0
- package/dist/collection/components/table/table-body/table-body.css +1 -0
- package/dist/collection/components/table/table-body/table-body.js +51 -0
- package/dist/collection/components/table/table-cell/table-cell.css +1 -0
- package/dist/collection/components/table/table-cell/table-cell.js +373 -0
- package/dist/collection/components/table/table-constants.js +171 -0
- package/dist/collection/components/table/table-header/table-header.css +1 -0
- package/dist/collection/components/table/table-header/table-header.js +51 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
- package/dist/collection/components/table/table-row/table-row.css +1 -0
- package/dist/collection/components/table/table-row/table-row.js +261 -0
- package/dist/collection/components/table/table-tokens.js +50 -0
- package/dist/collection/components/table/table-types.js +1 -0
- package/dist/collection/components/table/table-utils.js +44 -0
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +1030 -0
- package/dist/collection/components/tag/tag.css +1 -0
- package/dist/collection/components/tag/tag.js +1153 -0
- package/dist/collection/components/tag/tag.types.js +1 -0
- package/dist/collection/components/textarea/textarea.css +1 -0
- package/dist/collection/components/textarea/textarea.js +985 -0
- package/dist/collection/components/textarea/textarea.types.js +1 -0
- package/dist/collection/components/tooltip/tooltip.css +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1024 -0
- package/dist/collection/components/tooltip/tooltip.types.js +1 -0
- package/dist/collection/components/upload/upload.css +1 -0
- package/dist/collection/components/upload/upload.js +1315 -0
- package/dist/collection/components/upload/upload.types.js +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
- package/dist/collection/components/wizard/wizard.css +1 -0
- package/dist/collection/components/wizard/wizard.js +1228 -0
- package/dist/collection/index.js +14 -0
- package/dist/collection/pages/components/cookiebar/index.js +26 -0
- package/dist/collection/pages/components/link/index.js +29 -0
- package/dist/collection/pages/components/pagination/index.js +12 -0
- package/dist/collection/pages/components/slider/index.js +18 -0
- package/dist/collection/pages/scripts/code-editor.js +101 -0
- package/dist/collection/pages/scripts/component-controls.js +591 -0
- package/dist/collection/pages/scripts/dev-event-console.js +47 -0
- package/dist/collection/pages/scripts/menu.js +183 -0
- package/dist/collection/pages/scripts/pageLoader.js +1420 -0
- package/dist/collection/shared/utils/assetsPath.js +75 -0
- package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
- package/dist/collection/shared/utils/clamp.js +21 -0
- package/dist/collection/shared/utils/css-variables.js +12 -0
- package/dist/collection/shared/utils/cssVariables.js +37 -0
- package/dist/collection/shared/utils/date.js +405 -0
- package/dist/collection/shared/utils/debounce.js +39 -0
- package/dist/collection/shared/utils/event.js +55 -0
- package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
- package/dist/collection/shared/utils/floating-ui.js +131 -0
- package/dist/collection/shared/utils/focus.js +24 -0
- package/dist/collection/shared/utils/form.js +82 -0
- package/dist/collection/shared/utils/format-bytes.js +20 -0
- package/dist/collection/shared/utils/getNextElement.js +30 -0
- package/dist/collection/shared/utils/getRandom.js +27 -0
- package/dist/collection/shared/utils/helpers.js +31 -0
- package/dist/collection/shared/utils/id.js +16 -0
- package/dist/collection/shared/utils/index.js +60 -0
- package/dist/collection/shared/utils/interfaces.js +1 -0
- package/dist/collection/shared/utils/isClient.js +14 -0
- package/dist/collection/shared/utils/isDefined.js +19 -0
- package/dist/collection/shared/utils/isEmpty.js +30 -0
- package/dist/collection/shared/utils/isHTMLElement.js +16 -0
- package/dist/collection/shared/utils/isNil.js +15 -0
- package/dist/collection/shared/utils/isString.js +20 -0
- package/dist/collection/shared/utils/native-dialog.js +44 -0
- package/dist/collection/shared/utils/navigation.js +21 -0
- package/dist/collection/shared/utils/parts.js +15 -0
- package/dist/collection/shared/utils/prop-warning.js +7 -0
- package/dist/collection/shared/utils/props.js +37 -0
- package/dist/collection/shared/utils/raf-batcher.js +51 -0
- package/dist/collection/shared/utils/scrollLock.js +141 -0
- package/dist/collection/shared/utils/setRafTimeout.js +38 -0
- package/dist/collection/shared/utils/slot.js +113 -0
- package/dist/collection/shared/utils/ssr-date.js +33 -0
- package/dist/collection/shared/utils/stringToArray.js +29 -0
- package/dist/collection/shared/utils/swipe.js +342 -0
- package/dist/collection/shared/utils/transition.js +127 -0
- package/dist/collection/shared/utils/types.js +1 -0
- package/dist/collection/shared/utils/validator.js +51 -0
- package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
- package/dist/collection/value-accessors/index.js +6 -0
- package/dist/collection/value-accessors/vue-model-config.js +43 -0
- package/dist/components/br-avatar.d.ts +11 -0
- package/dist/components/br-avatar.js +5 -0
- package/dist/components/br-breadcrumb-item.d.ts +11 -0
- package/dist/components/br-breadcrumb-item.js +5 -0
- package/dist/components/br-breadcrumb.d.ts +11 -0
- package/dist/components/br-breadcrumb.js +5 -0
- package/dist/components/br-button.d.ts +11 -0
- package/dist/components/br-button.js +5 -0
- package/dist/components/br-card.d.ts +11 -0
- package/dist/components/br-card.js +5 -0
- package/dist/components/br-carousel-page.d.ts +11 -0
- package/dist/components/br-carousel-page.js +5 -0
- package/dist/components/br-carousel.d.ts +11 -0
- package/dist/components/br-carousel.js +5 -0
- package/dist/components/br-checkbox-group.d.ts +11 -0
- package/dist/components/br-checkbox-group.js +5 -0
- package/dist/components/br-checkbox.d.ts +11 -0
- package/dist/components/br-checkbox.js +5 -0
- package/dist/components/br-checkgroup.d.ts +11 -0
- package/dist/components/br-checkgroup.js +5 -0
- package/dist/components/br-collapse.d.ts +11 -0
- package/dist/components/br-collapse.js +5 -0
- package/dist/components/br-cookiebar-cookie.d.ts +11 -0
- package/dist/components/br-cookiebar-cookie.js +5 -0
- package/dist/components/br-cookiebar-group.d.ts +11 -0
- package/dist/components/br-cookiebar-group.js +5 -0
- package/dist/components/br-cookiebar-header.d.ts +11 -0
- package/dist/components/br-cookiebar-header.js +5 -0
- package/dist/components/br-cookiebar-link.d.ts +11 -0
- package/dist/components/br-cookiebar-link.js +5 -0
- package/dist/components/br-cookiebar-note-group.d.ts +11 -0
- package/dist/components/br-cookiebar-note-group.js +5 -0
- package/dist/components/br-cookiebar-note.d.ts +11 -0
- package/dist/components/br-cookiebar-note.js +5 -0
- package/dist/components/br-cookiebar.d.ts +11 -0
- package/dist/components/br-cookiebar.js +5 -0
- package/dist/components/br-crumb.d.ts +11 -0
- package/dist/components/br-crumb.js +5 -0
- package/dist/components/br-date-picker.d.ts +11 -0
- package/dist/components/br-date-picker.js +5 -0
- package/dist/components/br-datetime-input.d.ts +11 -0
- package/dist/components/br-datetime-input.js +5 -0
- package/dist/components/br-datetime-picker.d.ts +11 -0
- package/dist/components/br-datetime-picker.js +5 -0
- package/dist/components/br-divider.d.ts +11 -0
- package/dist/components/br-divider.js +5 -0
- package/dist/components/br-dropdown.d.ts +11 -0
- package/dist/components/br-dropdown.js +5 -0
- package/dist/components/br-footer-category.d.ts +11 -0
- package/dist/components/br-footer-category.js +5 -0
- package/dist/components/br-footer-item.d.ts +11 -0
- package/dist/components/br-footer-item.js +5 -0
- package/dist/components/br-footer-legal.d.ts +11 -0
- package/dist/components/br-footer-legal.js +5 -0
- package/dist/components/br-footer-logo.d.ts +11 -0
- package/dist/components/br-footer-logo.js +5 -0
- package/dist/components/br-footer-social.d.ts +11 -0
- package/dist/components/br-footer-social.js +5 -0
- package/dist/components/br-footer.d.ts +11 -0
- package/dist/components/br-footer.js +5 -0
- package/dist/components/br-header-function.d.ts +11 -0
- package/dist/components/br-header-function.js +5 -0
- package/dist/components/br-header-link.d.ts +11 -0
- package/dist/components/br-header-link.js +5 -0
- package/dist/components/br-header-list.d.ts +11 -0
- package/dist/components/br-header-list.js +5 -0
- package/dist/components/br-header-logo.d.ts +11 -0
- package/dist/components/br-header-logo.js +5 -0
- package/dist/components/br-header.d.ts +11 -0
- package/dist/components/br-header.js +5 -0
- package/dist/components/br-icon.d.ts +11 -0
- package/dist/components/br-icon.js +5 -0
- package/dist/components/br-input.d.ts +11 -0
- package/dist/components/br-input.js +5 -0
- package/dist/components/br-item.d.ts +11 -0
- package/dist/components/br-item.js +5 -0
- package/dist/components/br-link.d.ts +11 -0
- package/dist/components/br-link.js +5 -0
- package/dist/components/br-list.d.ts +11 -0
- package/dist/components/br-list.js +5 -0
- package/dist/components/br-loading.d.ts +11 -0
- package/dist/components/br-loading.js +5 -0
- package/dist/components/br-magic-button.d.ts +11 -0
- package/dist/components/br-magic-button.js +5 -0
- package/dist/components/br-menu-group.d.ts +11 -0
- package/dist/components/br-menu-group.js +5 -0
- package/dist/components/br-menu-header.d.ts +11 -0
- package/dist/components/br-menu-header.js +5 -0
- package/dist/components/br-menu-info.d.ts +11 -0
- package/dist/components/br-menu-info.js +5 -0
- package/dist/components/br-menu-item.d.ts +11 -0
- package/dist/components/br-menu-item.js +5 -0
- package/dist/components/br-menu-link.d.ts +11 -0
- package/dist/components/br-menu-link.js +5 -0
- package/dist/components/br-menu-list.d.ts +11 -0
- package/dist/components/br-menu-list.js +5 -0
- package/dist/components/br-menu-logo.d.ts +11 -0
- package/dist/components/br-menu-logo.js +5 -0
- package/dist/components/br-menu-social.d.ts +11 -0
- package/dist/components/br-menu-social.js +5 -0
- package/dist/components/br-menu.d.ts +11 -0
- package/dist/components/br-menu.js +5 -0
- package/dist/components/br-message.d.ts +11 -0
- package/dist/components/br-message.js +5 -0
- package/dist/components/br-modal.d.ts +11 -0
- package/dist/components/br-modal.js +5 -0
- package/dist/components/br-notification-body.d.ts +11 -0
- package/dist/components/br-notification-body.js +5 -0
- package/dist/components/br-notification-header.d.ts +11 -0
- package/dist/components/br-notification-header.js +5 -0
- package/dist/components/br-notification-item.d.ts +11 -0
- package/dist/components/br-notification-item.js +5 -0
- package/dist/components/br-notification.d.ts +11 -0
- package/dist/components/br-notification.js +5 -0
- package/dist/components/br-pagination.d.ts +11 -0
- package/dist/components/br-pagination.js +5 -0
- package/dist/components/br-radio-group.d.ts +11 -0
- package/dist/components/br-radio-group.js +5 -0
- package/dist/components/br-radio.d.ts +11 -0
- package/dist/components/br-radio.js +5 -0
- package/dist/components/br-scrim.d.ts +11 -0
- package/dist/components/br-scrim.js +5 -0
- package/dist/components/br-select-input.d.ts +11 -0
- package/dist/components/br-select-input.js +5 -0
- package/dist/components/br-select-list.d.ts +11 -0
- package/dist/components/br-select-list.js +5 -0
- package/dist/components/br-select-option.d.ts +11 -0
- package/dist/components/br-select-option.js +5 -0
- package/dist/components/br-select.d.ts +11 -0
- package/dist/components/br-select.js +5 -0
- package/dist/components/br-sign-in.d.ts +11 -0
- package/dist/components/br-sign-in.js +5 -0
- package/dist/components/br-skip-link-item.d.ts +11 -0
- package/dist/components/br-skip-link-item.js +5 -0
- package/dist/components/br-skip-link.d.ts +11 -0
- package/dist/components/br-skip-link.js +5 -0
- package/dist/components/br-skiplink-item.d.ts +11 -0
- package/dist/components/br-skiplink-item.js +5 -0
- package/dist/components/br-slider.d.ts +11 -0
- package/dist/components/br-slider.js +5 -0
- package/dist/components/br-step-item.d.ts +11 -0
- package/dist/components/br-step-item.js +5 -0
- package/dist/components/br-step.d.ts +11 -0
- package/dist/components/br-step.js +5 -0
- package/dist/components/br-switch.d.ts +11 -0
- package/dist/components/br-switch.js +5 -0
- package/dist/components/br-tab-item.d.ts +11 -0
- package/dist/components/br-tab-item.js +5 -0
- package/dist/components/br-tab.d.ts +11 -0
- package/dist/components/br-tab.js +5 -0
- package/dist/components/br-table-body.d.ts +11 -0
- package/dist/components/br-table-body.js +5 -0
- package/dist/components/br-table-cell.d.ts +11 -0
- package/dist/components/br-table-cell.js +5 -0
- package/dist/components/br-table-header-cell.d.ts +11 -0
- package/dist/components/br-table-header-cell.js +5 -0
- package/dist/components/br-table-header.d.ts +11 -0
- package/dist/components/br-table-header.js +5 -0
- package/dist/components/br-table-row.d.ts +11 -0
- package/dist/components/br-table-row.js +5 -0
- package/dist/components/br-table.d.ts +11 -0
- package/dist/components/br-table.js +5 -0
- package/dist/components/br-tag.d.ts +11 -0
- package/dist/components/br-tag.js +5 -0
- package/dist/components/br-textarea.d.ts +11 -0
- package/dist/components/br-textarea.js +5 -0
- package/dist/components/br-time-picker.d.ts +11 -0
- package/dist/components/br-time-picker.js +5 -0
- package/dist/components/br-tooltip.d.ts +11 -0
- package/dist/components/br-tooltip.js +5 -0
- package/dist/components/br-upload.d.ts +11 -0
- package/dist/components/br-upload.js +5 -0
- package/dist/components/br-wizard-panel.d.ts +11 -0
- package/dist/components/br-wizard-panel.js +5 -0
- package/dist/components/br-wizard.d.ts +11 -0
- package/dist/components/br-wizard.js +5 -0
- package/dist/components/index.d.ts +213 -0
- package/dist/components/index.js +5 -0
- package/dist/components/p-0IYmyaTi.js +5 -0
- package/dist/components/p-41XwlWiS.js +5 -0
- package/dist/components/p-5z6jgH1D.js +5 -0
- package/dist/components/p-6OdfnwnK.js +5 -0
- package/dist/components/p-9S9bgUT0.js +5 -0
- package/dist/components/p-B-qLmYZC.js +5 -0
- package/dist/components/p-B-sbd1_h.js +5 -0
- package/dist/components/p-B55qsau4.js +5 -0
- package/dist/components/p-BC7f6MK8.js +5 -0
- package/dist/components/p-BPJpHGOW.js +5 -0
- package/dist/components/p-BW0_ORNA.js +5 -0
- package/dist/components/p-BWXfdbQH.js +5 -0
- package/dist/components/p-Bb-nLtTG.js +5 -0
- package/dist/components/p-BkS6ujyf.js +5 -0
- package/dist/components/p-Bm0ECvfB.js +5 -0
- package/dist/components/p-C1yRmdso.js +5 -0
- package/dist/components/p-C3LQSQpc.js +5 -0
- package/dist/components/p-C98-mHmV.js +5 -0
- package/dist/components/p-CDZFuUlU.js +5 -0
- package/dist/components/p-CRfi23Rd.js +5 -0
- package/dist/components/p-CUI5zWGf.js +5 -0
- package/dist/components/p-CXMwM9m4.js +5 -0
- package/dist/components/p-CdDwqbBv.js +5 -0
- package/dist/components/p-CxviDiCr.js +5 -0
- package/dist/components/p-D3usVJE2.js +16 -0
- package/dist/components/p-D6zroLx5.js +5 -0
- package/dist/components/p-D9SpD3Ay.js +5 -0
- package/dist/components/p-DA5GS53D.js +5 -0
- package/dist/components/p-DBP6K_aq.js +5 -0
- package/dist/components/p-DBmwzG9E.js +5 -0
- package/dist/components/p-DCrVo-8T.js +5 -0
- package/dist/components/p-DIK54tTj.js +5 -0
- package/dist/components/p-DQRSHR-D.js +5 -0
- package/dist/components/p-DRVMm1Py.js +5 -0
- package/dist/components/p-DWPmUV72.js +5 -0
- package/dist/components/p-DYA74R1r.js +5 -0
- package/dist/components/p-DYnkGWii.js +5 -0
- package/dist/components/p-D_CSvOY9.js +5 -0
- package/dist/components/p-DaeGwqw0.js +5 -0
- package/dist/components/p-Dkg2scYZ.js +5 -0
- package/dist/components/p-Dmfk7eEe.js +5 -0
- package/dist/components/p-DoXNfcTT.js +5 -0
- package/dist/components/p-DvrdmqoQ.js +5 -0
- package/dist/components/p-DxZJrIyL.js +5 -0
- package/dist/components/p-LmeJrLxH.js +5 -0
- package/dist/components/p-TFWd_UBV.js +5 -0
- package/dist/components/p-aF8bGN3t.js +5 -0
- package/dist/components/p-bhULC15U.js +5 -0
- package/dist/components/p-cF3ia5e9.js +5 -0
- package/dist/components/p-cfPt-vKA.js +5 -0
- package/dist/components/p-gvnfuTjd.js +5 -0
- package/dist/components/p-nJOJGpyl.js +5 -0
- package/dist/components/p-ttI0nvv_.js +5 -0
- package/dist/esm/app-globals-DVjNHTTs.js +7 -0
- package/dist/esm/br-avatar.entry.js +246 -0
- package/dist/esm/br-breadcrumb-item.entry.js +43 -0
- package/dist/esm/br-breadcrumb.entry.js +441 -0
- package/dist/esm/br-button_2.entry.js +277 -0
- package/dist/esm/br-card.entry.js +109 -0
- package/dist/esm/br-carousel-page.entry.js +78 -0
- package/dist/esm/br-carousel.entry.js +563 -0
- package/dist/esm/br-checkbox-group.entry.js +116 -0
- package/dist/esm/br-checkbox.entry.js +286 -0
- package/dist/esm/br-checkgroup.entry.js +18 -0
- package/dist/esm/br-collapse_2.entry.js +680 -0
- package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
- package/dist/esm/br-cookiebar-group.entry.js +307 -0
- package/dist/esm/br-cookiebar-header.entry.js +37 -0
- package/dist/esm/br-cookiebar-link.entry.js +52 -0
- package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
- package/dist/esm/br-cookiebar-note.entry.js +23 -0
- package/dist/esm/br-cookiebar.entry.js +756 -0
- package/dist/esm/br-crumb.entry.js +49 -0
- package/dist/esm/br-date-picker_3.entry.js +2442 -0
- package/dist/esm/br-datetime-picker.entry.js +1885 -0
- package/dist/esm/br-divider.entry.js +223 -0
- package/dist/esm/br-dropdown_2.entry.js +1853 -0
- package/dist/esm/br-footer-category.entry.js +100 -0
- package/dist/esm/br-footer-item.entry.js +50 -0
- package/dist/esm/br-footer-legal.entry.js +39 -0
- package/dist/esm/br-footer-logo.entry.js +102 -0
- package/dist/esm/br-footer-social.entry.js +69 -0
- package/dist/esm/br-footer.entry.js +90 -0
- package/dist/esm/br-header-function.entry.js +140 -0
- package/dist/esm/br-header-link.entry.js +58 -0
- package/dist/esm/br-header-list.entry.js +277 -0
- package/dist/esm/br-header-logo.entry.js +175 -0
- package/dist/esm/br-header.entry.js +640 -0
- package/dist/esm/br-icon.entry.js +483 -0
- package/dist/esm/br-input.entry.js +597 -0
- package/dist/esm/br-item.entry.js +354 -0
- package/dist/esm/br-link.entry.js +130 -0
- package/dist/esm/br-loading.entry.js +503 -0
- package/dist/esm/br-magic-button.entry.js +90 -0
- package/dist/esm/br-menu-group.entry.js +21 -0
- package/dist/esm/br-menu-header.entry.js +45 -0
- package/dist/esm/br-menu-info.entry.js +36 -0
- package/dist/esm/br-menu-item.entry.js +77 -0
- package/dist/esm/br-menu-link.entry.js +53 -0
- package/dist/esm/br-menu-list.entry.js +147 -0
- package/dist/esm/br-menu-logo.entry.js +73 -0
- package/dist/esm/br-menu-social.entry.js +63 -0
- package/dist/esm/br-menu.entry.js +991 -0
- package/dist/esm/br-modal.entry.js +494 -0
- package/dist/esm/br-notification-body.entry.js +69 -0
- package/dist/esm/br-notification-header.entry.js +46 -0
- package/dist/esm/br-notification-item.entry.js +108 -0
- package/dist/esm/br-notification.entry.js +332 -0
- package/dist/esm/br-pagination.entry.js +882 -0
- package/dist/esm/br-radio-group.entry.js +426 -0
- package/dist/esm/br-radio.entry.js +355 -0
- package/dist/esm/br-scrim.entry.js +1334 -0
- package/dist/esm/br-select-input_3.entry.js +950 -0
- package/dist/esm/br-sign-in.entry.js +123 -0
- package/dist/esm/br-skip-link-item.entry.js +18 -0
- package/dist/esm/br-skip-link.entry.js +360 -0
- package/dist/esm/br-skiplink-item.entry.js +190 -0
- package/dist/esm/br-slider.entry.js +686 -0
- package/dist/esm/br-step_2.entry.js +625 -0
- package/dist/esm/br-switch.entry.js +243 -0
- package/dist/esm/br-tab-item.entry.js +183 -0
- package/dist/esm/br-tab.entry.js +395 -0
- package/dist/esm/br-table-body.entry.js +35 -0
- package/dist/esm/br-table-cell.entry.js +182 -0
- package/dist/esm/br-table-header-cell.entry.js +171 -0
- package/dist/esm/br-table-header.entry.js +35 -0
- package/dist/esm/br-table-row.entry.js +79 -0
- package/dist/esm/br-table.entry.js +678 -0
- package/dist/esm/br-tag.entry.js +492 -0
- package/dist/esm/br-textarea.entry.js +304 -0
- package/dist/esm/br-tooltip.entry.js +625 -0
- package/dist/esm/br-upload.entry.js +580 -0
- package/dist/esm/br-wizard-panel.entry.js +52 -0
- package/dist/esm/br-wizard.entry.js +706 -0
- package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
- package/dist/esm/clamp-gvnfuTjd.js +23 -0
- package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
- package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
- package/dist/esm/event-DFN_so7I.js +48 -0
- package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
- package/dist/esm/floating-ui-BavFwMnx.js +134 -0
- package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
- package/dist/esm/focus-DxZJrIyL.js +26 -0
- package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
- package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
- package/dist/esm/id-BkS6ujyf.js +18 -0
- package/dist/esm/index-Bo-2igoO.js +671 -0
- package/dist/esm/index-C2RBydfd.js +3258 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/isNil-B-qLmYZC.js +17 -0
- package/dist/esm/isValid-DIUZX1qS.js +3684 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/native-dialog-B55qsau4.js +46 -0
- package/dist/esm/navigation-bhULC15U.js +23 -0
- package/dist/esm/parts-Bb5vVlCC.js +17 -0
- package/dist/esm/props-DRVMm1Py.js +22 -0
- package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
- package/dist/esm/slot-BIG-yees.js +44 -0
- package/dist/esm/swipe-Dmfk7eEe.js +343 -0
- package/dist/esm/table-constants-CXMwM9m4.js +170 -0
- package/dist/esm/validator-D3tVP32U.js +113 -0
- package/dist/esm/webcomponents.js +46 -0
- package/dist/hydrate/index.d.ts +287 -0
- package/dist/hydrate/index.js +67323 -0
- package/dist/hydrate/index.mjs +67313 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +5 -0
- package/dist/loader/index.cjs.js +5 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +5 -0
- package/dist/loader/index.js +6 -0
- package/dist/webcomponents/index.esm.js +5 -0
- package/dist/webcomponents/p-0196804a.entry.js +5 -0
- package/dist/webcomponents/p-0410186a.entry.js +5 -0
- package/dist/webcomponents/p-0415ef22.entry.js +5 -0
- package/dist/webcomponents/p-059c3d6c.entry.js +5 -0
- package/dist/webcomponents/p-0b8f39bc.entry.js +5 -0
- package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
- package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
- package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
- package/dist/webcomponents/p-12286e73.entry.js +5 -0
- package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
- package/dist/webcomponents/p-1580beee.entry.js +5 -0
- package/dist/webcomponents/p-1b138f1c.entry.js +5 -0
- package/dist/webcomponents/p-1bca4499.entry.js +5 -0
- package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
- package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
- package/dist/webcomponents/p-22443c08.entry.js +5 -0
- package/dist/webcomponents/p-224daaac.entry.js +5 -0
- package/dist/webcomponents/p-28426d2a.entry.js +5 -0
- package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
- package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
- package/dist/webcomponents/p-30c428b6.entry.js +5 -0
- package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
- package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
- package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
- package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
- package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
- package/dist/webcomponents/p-45356e9a.entry.js +5 -0
- package/dist/webcomponents/p-46513db4.entry.js +5 -0
- package/dist/webcomponents/p-4fe12a72.entry.js +5 -0
- package/dist/webcomponents/p-52df61cb.entry.js +5 -0
- package/dist/webcomponents/p-569134cf.entry.js +5 -0
- package/dist/webcomponents/p-5b257a4b.entry.js +5 -0
- package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
- package/dist/webcomponents/p-5f373708.entry.js +5 -0
- package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
- package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
- package/dist/webcomponents/p-60cc820c.entry.js +5 -0
- package/dist/webcomponents/p-66006312.entry.js +5 -0
- package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
- package/dist/webcomponents/p-6OdfnwnK.js +5 -0
- package/dist/webcomponents/p-6c5f6cb6.entry.js +5 -0
- package/dist/webcomponents/p-6f1c4425.entry.js +5 -0
- package/dist/webcomponents/p-750799b7.entry.js +5 -0
- package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
- package/dist/webcomponents/p-765bfe27.entry.js +5 -0
- package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
- package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
- package/dist/webcomponents/p-7cf9f4e5.entry.js +5 -0
- package/dist/webcomponents/p-7e1856e4.entry.js +5 -0
- package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
- package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
- package/dist/webcomponents/p-82200563.entry.js +5 -0
- package/dist/webcomponents/p-85f8063b.entry.js +5 -0
- package/dist/webcomponents/p-8b558233.entry.js +5 -0
- package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
- package/dist/webcomponents/p-966ad32f.entry.js +5 -0
- package/dist/webcomponents/p-9679d230.entry.js +5 -0
- package/dist/webcomponents/p-96dd663b.entry.js +5 -0
- package/dist/webcomponents/p-98843fa3.entry.js +5 -0
- package/dist/webcomponents/p-9S9bgUT0.js +5 -0
- package/dist/webcomponents/p-9a375eff.entry.js +5 -0
- package/dist/webcomponents/p-9b358cff.entry.js +5 -0
- package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
- package/dist/webcomponents/p-B-qLmYZC.js +5 -0
- package/dist/webcomponents/p-B55qsau4.js +5 -0
- package/dist/webcomponents/p-BIG-yees.js +5 -0
- package/dist/webcomponents/p-BWXfdbQH.js +5 -0
- package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
- package/dist/webcomponents/p-Bfm58jO6.js +5 -0
- package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
- package/dist/webcomponents/p-BkS6ujyf.js +5 -0
- package/dist/webcomponents/p-C2RBydfd.js +6 -0
- package/dist/webcomponents/p-CO5cOQQU.js +5 -0
- package/dist/webcomponents/p-CXMwM9m4.js +5 -0
- package/dist/webcomponents/p-D3tVP32U.js +5 -0
- package/dist/webcomponents/p-D3usVJE2.js +16 -0
- package/dist/webcomponents/p-DBmwzG9E.js +5 -0
- package/dist/webcomponents/p-DFN_so7I.js +5 -0
- package/dist/webcomponents/p-DIK54tTj.js +5 -0
- package/dist/webcomponents/p-DRVMm1Py.js +5 -0
- package/dist/webcomponents/p-DVjNHTTs.js +5 -0
- package/dist/webcomponents/p-DYA74R1r.js +5 -0
- package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
- package/dist/webcomponents/p-DxZJrIyL.js +5 -0
- package/dist/webcomponents/p-a382e115.entry.js +5 -0
- package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
- package/dist/webcomponents/p-bba9fc09.entry.js +5 -0
- package/dist/webcomponents/p-bhULC15U.js +5 -0
- package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
- package/dist/webcomponents/p-c211af17.entry.js +5 -0
- package/dist/webcomponents/p-c492d926.entry.js +5 -0
- package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
- package/dist/webcomponents/p-c846e784.entry.js +5 -0
- package/dist/webcomponents/p-cF3ia5e9.js +5 -0
- package/dist/webcomponents/p-cedb8eea.entry.js +5 -0
- package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
- package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
- package/dist/webcomponents/p-dba376cb.entry.js +5 -0
- package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
- package/dist/webcomponents/p-e1331288.entry.js +5 -0
- package/dist/webcomponents/p-e360a463.entry.js +5 -0
- package/dist/webcomponents/p-e80a1eb0.entry.js +5 -0
- package/dist/webcomponents/p-f078f972.entry.js +5 -0
- package/dist/webcomponents/p-f6318e94.entry.js +5 -0
- package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
- package/dist/webcomponents/p-gvnfuTjd.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +5 -0
- package/package.json +1 -1
- package/cem/.gitkeep +0 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
var index = require('./index-CRdcutym.js');
|
|
8
|
+
var event = require('./event-CmVdNHxl.js');
|
|
9
|
+
var id = require('./id-CjRFMzf6.js');
|
|
10
|
+
var slot = require('./slot-DAllytTj.js');
|
|
11
|
+
|
|
12
|
+
const collapseCss = () => `*,*::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:block;width:100%}:host([color-mode=dark]){--collapse-color:var(--pure-0, #fff);--collapse-hover:rgb(var(--color-rgb), var(--hover));--collapse-border-color:var(--color-secondary-07, #555)}:host([divider]) .br-collapse{border-bottom:1px solid var(--border-color, var(--color-secondary-04, #e5e5e5))}:host .br-collapse{color:var(--collapse-color, var(--color, inherit));border-bottom:1px solid var(--collapse-border-color, var(--border-color, var(--color-secondary-04, #e5e5e5)))}:host .br-collapse .trigger{display:flex;justify-content:center;align-items:center}:host .br-collapse .trigger:not(:disabled):hover,:host .br-collapse .trigger:not(:disabled):focus-visible{background-image:linear-gradient(var(--collapse-hover, rgb(var(--color-rgb), var(--hover))), var(--collapse-hover, rgb(var(--color-rgb), var(--hover))))}:host .br-collapse .trigger-content{flex:1 1 auto !important}:host .br-collapse .content{transition:height .3s;overflow:hidden}:host .br-collapse br-icon{color:var(--interactive);pointer-events:none}:host details{width:100%}:host details summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;height:48px;outline:none}:host details summary::-webkit-details-marker{display:none}:host details summary:focus-visible{outline:var(--focus-width) var(--focus-style) var(--focus)}:host details.trigger-button summary{width:max-content;min-width:40px;border-radius:var(--surface-border-radius-sm, 4px)}:host details.trigger-text summary{width:max-content;padding-inline:0}:host details.direction-up .content{display:flex;flex-direction:column-reverse}:host details.direction-right,:host details.direction-left{display:flex;align-items:flex-start}:host details.direction-right summary,:host details.direction-left summary{flex:0 0 auto}:host details.direction-right .content,:host details.direction-left .content{flex:1 1 auto;min-width:0}:host details.direction-left{flex-direction:row-reverse}:host .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}`;
|
|
13
|
+
|
|
14
|
+
const Collapse = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
index.registerInstance(this, hostRef);
|
|
17
|
+
this.brDidOpen = index.createEvent(this, "brDidOpen", 7);
|
|
18
|
+
this.brCollapseOpen = index.createEvent(this, "brCollapseOpen", 6);
|
|
19
|
+
this.brDidClose = index.createEvent(this, "brDidClose", 7);
|
|
20
|
+
this.brCollapseClose = index.createEvent(this, "brCollapseClose", 6);
|
|
21
|
+
this.itemCount = 0;
|
|
22
|
+
this.suppressNextCustomEvent = false;
|
|
23
|
+
/**
|
|
24
|
+
* Identificador único do componente.
|
|
25
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
26
|
+
*
|
|
27
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
this.customId = id.generateUniqueId();
|
|
31
|
+
/**
|
|
32
|
+
* Controla se o collapse está aberto.
|
|
33
|
+
*/
|
|
34
|
+
this.open = false;
|
|
35
|
+
/**
|
|
36
|
+
* Indica se o componente possui um divisor (divider) inferior.
|
|
37
|
+
*/
|
|
38
|
+
this.divider = false;
|
|
39
|
+
/**
|
|
40
|
+
* Identifica o grupo de accordion; quando informado, mantém apenas um item aberto por vez entre os irmãos
|
|
41
|
+
* do mesmo pai imediato.
|
|
42
|
+
*/
|
|
43
|
+
this.accordionGroup = null;
|
|
44
|
+
/**
|
|
45
|
+
* Classe CSS do ícone exibido quando o conteúdo está oculto.
|
|
46
|
+
*/
|
|
47
|
+
this.iconToShow = 'fa6-solid:chevron-down';
|
|
48
|
+
/**
|
|
49
|
+
* Classe CSS do ícone exibido quando o conteúdo está visível.
|
|
50
|
+
*/
|
|
51
|
+
this.iconToHide = 'fa6-solid:chevron-up';
|
|
52
|
+
/**
|
|
53
|
+
* Define a posição do ícone no acionador: 'left' ou 'right'.
|
|
54
|
+
*/
|
|
55
|
+
this.iconPosition = 'right';
|
|
56
|
+
/**
|
|
57
|
+
* Controla se o identificador visual de expansão/retração será renderizado.
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
this.useIcons = true;
|
|
61
|
+
/**
|
|
62
|
+
* Direção em que o conteúdo é expandido e para a qual o ícone aponta.
|
|
63
|
+
* @default 'down'
|
|
64
|
+
*/
|
|
65
|
+
this.expansionDirection = 'down';
|
|
66
|
+
/** Tema visual do Collapse/Accordion.
|
|
67
|
+
* @default 'light'
|
|
68
|
+
*/
|
|
69
|
+
this.colorMode = 'light';
|
|
70
|
+
/** Forma visual do acionador sem alterar sua semântica nativa.
|
|
71
|
+
* @default 'surface'
|
|
72
|
+
*/
|
|
73
|
+
this.triggerVariant = 'surface';
|
|
74
|
+
/**
|
|
75
|
+
* Atualiza estado e emite eventos quando o <details> abre ou fecha.
|
|
76
|
+
*/
|
|
77
|
+
this.handleCollapse = (event$1) => {
|
|
78
|
+
const details = event$1.target;
|
|
79
|
+
const isOpen = details.open;
|
|
80
|
+
const suppressCustomEvent = this.suppressNextCustomEvent;
|
|
81
|
+
this.suppressNextCustomEvent = false;
|
|
82
|
+
this.open = isOpen;
|
|
83
|
+
if (!suppressCustomEvent && this.open) {
|
|
84
|
+
// Fecha outros do mesmo grupo de forma determinística antes de emitir evento
|
|
85
|
+
this.closeOthersInGroup();
|
|
86
|
+
this.emitOpen();
|
|
87
|
+
}
|
|
88
|
+
else if (!suppressCustomEvent) {
|
|
89
|
+
this.emitClose();
|
|
90
|
+
}
|
|
91
|
+
event.redispatchNativeEvent(this.el, event$1, 'toggle');
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Remove o listener do <details> ao desmontar o componente.
|
|
96
|
+
*/
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
const details = this.el.shadowRoot?.querySelector('details');
|
|
99
|
+
if (details !== null) {
|
|
100
|
+
details.removeEventListener('toggle', this.handleCollapse);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Ajusta o estado inicial do <details> para refletir o valor de open.
|
|
105
|
+
*/
|
|
106
|
+
componentWillLoad() {
|
|
107
|
+
this.syncDetailsWithOpen();
|
|
108
|
+
}
|
|
109
|
+
componentDidLoad() {
|
|
110
|
+
this.updateItemCount(this.el.shadowRoot?.querySelector('slot:not([name])'));
|
|
111
|
+
}
|
|
112
|
+
updateItemCount(slot) {
|
|
113
|
+
const count = slot?.assignedElements({ flatten: true }).filter((element) => element.tagName.toLowerCase() === 'br-item')
|
|
114
|
+
.length ?? 0;
|
|
115
|
+
if (count !== this.itemCount)
|
|
116
|
+
this.itemCount = count;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Abre o collapse programaticamente.
|
|
120
|
+
* @deprecated Atualize a propriedade `open`.
|
|
121
|
+
*/
|
|
122
|
+
async openCollapse() {
|
|
123
|
+
const changesNativeState = this.el.shadowRoot?.querySelector('details')?.open !== true;
|
|
124
|
+
this.open = true;
|
|
125
|
+
this.suppressNextCustomEvent = changesNativeState;
|
|
126
|
+
this.syncDetailsWithOpen();
|
|
127
|
+
// Fecha outros do mesmo grupo antes de emitir evento
|
|
128
|
+
this.closeOthersInGroup();
|
|
129
|
+
this.emitOpen();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Fecha o collapse programaticamente.
|
|
133
|
+
* @deprecated Atualize a propriedade `open`.
|
|
134
|
+
*/
|
|
135
|
+
async closeCollapse() {
|
|
136
|
+
const changesNativeState = this.el.shadowRoot?.querySelector('details')?.open === true;
|
|
137
|
+
this.open = false;
|
|
138
|
+
this.suppressNextCustomEvent = changesNativeState;
|
|
139
|
+
this.syncDetailsWithOpen();
|
|
140
|
+
this.emitClose();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Alterna o estado aberto.
|
|
144
|
+
* O elemento também redispara o evento nativo `toggle` no host; essa ocorrência é sintética (`isTrusted === false`).
|
|
145
|
+
*/
|
|
146
|
+
async toggle() {
|
|
147
|
+
if (this.open)
|
|
148
|
+
await this.closeCollapse();
|
|
149
|
+
else
|
|
150
|
+
await this.openCollapse();
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Mantém o estado do <details> alinhado com a prop open.
|
|
154
|
+
*/
|
|
155
|
+
syncDetailsWithOpen() {
|
|
156
|
+
const details = this.el.shadowRoot?.querySelector('details');
|
|
157
|
+
if (details !== null) {
|
|
158
|
+
details.open = this.open;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
emitOpen() {
|
|
162
|
+
const detail = { id: this.customId, accordionGroup: this.accordionGroup };
|
|
163
|
+
this.brDidOpen.emit(detail);
|
|
164
|
+
this.brCollapseOpen.emit(detail);
|
|
165
|
+
}
|
|
166
|
+
emitClose() {
|
|
167
|
+
const detail = { id: this.customId, accordionGroup: this.accordionGroup };
|
|
168
|
+
this.brDidClose.emit(detail);
|
|
169
|
+
this.brCollapseClose.emit(detail);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Fecha outros collapses abertos no mesmo accordion, buscando apenas no pai imediato.
|
|
173
|
+
*/
|
|
174
|
+
closeOthersInGroup() {
|
|
175
|
+
if (this.accordionGroup == null || this.accordionGroup === '')
|
|
176
|
+
return;
|
|
177
|
+
const parent = this.el.parentElement;
|
|
178
|
+
if (!parent)
|
|
179
|
+
return;
|
|
180
|
+
const others = Array.from(parent.querySelectorAll('br-collapse'));
|
|
181
|
+
others
|
|
182
|
+
.filter((collapse) => collapse !== this.el && collapse.accordionGroup === this.accordionGroup && collapse.open)
|
|
183
|
+
.forEach((c) => {
|
|
184
|
+
c.open = false;
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Seleciona o ícone conforme o estado atual.
|
|
189
|
+
*/
|
|
190
|
+
renderIcon() {
|
|
191
|
+
if (!this.useIcons)
|
|
192
|
+
return null;
|
|
193
|
+
return (index.h("br-icon", { iconName: this.open ? this.iconToHide : this.iconToShow, width: "16", height: "16", "aria-hidden": "true" }));
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Renderiza o <details> com acionador e conteúdo expansível.
|
|
197
|
+
*/
|
|
198
|
+
render() {
|
|
199
|
+
return (index.h(index.Host, { key: '0dbbabeaff8a9f0b4b3149da51e730c9c18b4961' }, index.h("details", { key: 'dfb43de3589f35d5ebb7a901e93658faf6825e30', class: `br-collapse direction-${this.expansionDirection} trigger-${this.triggerVariant}`, open: this.open, onToggle: this.handleCollapse, id: this.customId, part: "details" }, index.h("summary", { key: 'd7c1cc7bca44d6cc30bc15f507326b1d00f462df', class: "trigger", part: "trigger", "aria-controls": `content-${this.customId}` }, this.iconPosition === 'left' && this.renderIcon(), index.h("div", { key: '8d064ef748c9b4afe81637b442df0ddb29e1d402', class: "trigger-content", id: `label-${this.customId}` }, index.h("slot", { key: '014d443d1b3e010f1b36a85d97430e9322fdaefb', name: "trigger" })), this.iconPosition === 'right' && this.renderIcon()), index.h("div", { key: '64502ae705a2a4e88ea28bb80e240e938d2cba1c', class: "content", id: `content-${this.customId}`, part: "content", "aria-hidden": String(!this.open) }, this.open && this.itemCount > 0 && (index.h("div", { key: 'f4a8f0c7aa15c0b9e9cf32de25557f5170842d7f', class: "visually-hidden" }, this.itemCount, " ", this.itemCount === 1 ? 'item' : 'itens', " na lista")), index.h("slot", { key: 'b15a6c609416ce20ad54d9ffa8f81339a7f7d7a2', onSlotchange: (event) => this.updateItemCount(event.currentTarget) })))));
|
|
200
|
+
}
|
|
201
|
+
get el() { return index.getElement(this); }
|
|
202
|
+
};
|
|
203
|
+
Collapse.style = collapseCss();
|
|
204
|
+
|
|
205
|
+
const listCss = () => `*,*::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-list.horizontal{display:flex;flex-wrap:wrap}.br-list.horizontal>.header{flex-grow:1;width:100%}.br-list.horizontal>.header+.br-divider{border-top:1px solid var(--border-color);width:100%}.br-list.horizontal>.br-item+.br-divider,.br-list.horizontal>.group+.br-divider{border-width:0 1px 0 0;width:1px}.br-list.horizontal>.br-item,.br-list.horizontal>.group{flex:1;height:auto;min-height:56px;width:auto}.br-list.horizontal[data-toggle]>.br-item,.br-list.horizontal.toggle>.br-item{display:block}.br-list{background-color:var(--background)}.br-list .br-item{text-align:left;width:100%}.br-list .br-item .fa{text-align:center}.br-list .br-item>.content{align-items:var(--spacing-vertical-top);display:flex}.br-list .br-item>.content>.content{flex:1}.br-list .br-item .content:hover button.br-button{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}.br-list .br-item[data-toggle]{cursor:pointer}.br-list .br-item[data-toggle]~.br-list .br-item{padding:var(--spacing-scale-base) var(--spacing-scale-3x)}.br-list .br-list{overflow:hidden;transition:all 400ms ease-in-out}.br-list .header{align-items:var(--spacing-vertical-center);display:flex;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-bold);justify-content:space-between;padding:var(--spacing-scale-base) var(--spacing-scale-2x)}.br-divider,hr{--divider-size:var(--surface-width-sm);border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);display:block}.br-divider.content,hr.content{align-items:center;border:0;display:flex;justify-content:center}.br-divider.content::after,.br-divider.content::before,hr.content::after,hr.content::before{border-color:var(--border-color);border-style:solid;border-width:0;border-top-width:var(--divider-size);content:"";flex:1}.br-divider.content::after,hr.content::after{margin-left:var(--spacing-scale-base)}.br-divider.content::before,hr.content::before{margin-right:var(--spacing-scale-base)}.br-divider.vertical,hr.vertical{align-self:stretch;border-right-width:var(--divider-size);border-top-width:0}.br-divider.vertical.content,hr.vertical.content{flex-direction:column}.br-divider.vertical.content::after,.br-divider.vertical.content::before,hr.vertical.content::after,hr.vertical.content::before{border-right-width:var(--divider-size);border-top-width:0;margin:0}.br-divider.inverted,.br-divider.dark-mode,hr.inverted,hr.dark-mode{--border-color:var(--pure-0)}.br-divider.dashed,hr.dashed{border-style:dashed}.br-divider.sm,hr.sm{--divider-size:var(--surface-width-sm)}hr{--divider-padding:var(--spacing-scale-2x);margin:var(--divider-padding) 0}:host{display:block}:host .br-list.horizontal ::slotted(br-item){flex:1;height:auto;min-height:56px;width:auto}:host .br-list.divider:not(.horizontal) ::slotted(br-item:not(:last-of-type)){border-bottom:1px solid var(--border-color, var(--color-secondary-04, #e5e5e5))}:host .br-list.divider.horizontal ::slotted(br-item:not(:last-of-type)){border-right:1px solid var(--border-color, var(--color-secondary-04, #e5e5e5))}`;
|
|
206
|
+
|
|
207
|
+
const List = class {
|
|
208
|
+
constructor(hostRef) {
|
|
209
|
+
index.registerInstance(this, hostRef);
|
|
210
|
+
/**
|
|
211
|
+
* Define o texto do cabeçalho da lista.
|
|
212
|
+
* Quando definido, também é usado como `aria-label` do elemento `role="list"`,
|
|
213
|
+
* fornecendo um nome acessível que leitores de tela anunciam ao entrar na lista.
|
|
214
|
+
*/
|
|
215
|
+
this.header = null;
|
|
216
|
+
/**
|
|
217
|
+
* Indica se a lista será horizontal. Por padrão, a lista é vertical.
|
|
218
|
+
* @deprecated Use `orientation`.
|
|
219
|
+
*/
|
|
220
|
+
this.isHorizontal = false;
|
|
221
|
+
/**
|
|
222
|
+
* Identificador único do componente.
|
|
223
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
224
|
+
*
|
|
225
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
226
|
+
*
|
|
227
|
+
*/
|
|
228
|
+
this.customId = id.generateUniqueId();
|
|
229
|
+
/**
|
|
230
|
+
* Indica que o divider para o título da lista estará oculto.
|
|
231
|
+
*/
|
|
232
|
+
this.hideHeaderDivider = false;
|
|
233
|
+
/**
|
|
234
|
+
* Indica se a lista possui divisores (divider) entre os itens.
|
|
235
|
+
*/
|
|
236
|
+
this.divider = false;
|
|
237
|
+
/**
|
|
238
|
+
* Indica se a lista possui o comportamento de collapse.
|
|
239
|
+
*/
|
|
240
|
+
this.collapse = false;
|
|
241
|
+
/**
|
|
242
|
+
* Indica se a lista possui o comportamento de accordion.
|
|
243
|
+
* O valor da propriedade define o grupo, ou seja, o accordion é aplicado a todas as listas que possuem o mesmo valor para esta propriedade.
|
|
244
|
+
*/
|
|
245
|
+
this.accordion = null;
|
|
246
|
+
/** Semântica do host quando o conteúdo não representa itens de lista. */
|
|
247
|
+
this.listRole = 'list';
|
|
248
|
+
/**
|
|
249
|
+
* Modificador de densidade da lista.
|
|
250
|
+
*/
|
|
251
|
+
this.density = null;
|
|
252
|
+
this.observer = null;
|
|
253
|
+
this.slotElement = null;
|
|
254
|
+
this.observingNestedContent = false;
|
|
255
|
+
this.boundKeydown = null;
|
|
256
|
+
this.mutationFrame = null;
|
|
257
|
+
this.handleSlotChange = () => {
|
|
258
|
+
this.syncObserverMode();
|
|
259
|
+
this.scheduleListSync();
|
|
260
|
+
};
|
|
261
|
+
this.renderHeader = () => {
|
|
262
|
+
if (this.header?.length > 0 || this.hasSlotContent('header')) {
|
|
263
|
+
return (index.h("div", { class: !this.hasSlotContent('header') ? 'header' : null, slot: this.collapse || this.accordion ? 'trigger' : null }, index.h("slot", { name: "header" }, !this.hasSlotContent('header') ? index.h("div", { class: "title" }, this.header) : null)));
|
|
264
|
+
}
|
|
265
|
+
return null;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
async componentDidLoad() {
|
|
269
|
+
this.boundKeydown = this.handleKeydown.bind(this);
|
|
270
|
+
this.el.addEventListener('keydown', this.boundKeydown);
|
|
271
|
+
if (this.effectiveOrientation === 'horizontal') {
|
|
272
|
+
const slotItems = Array.from(this.el.querySelectorAll('br-item'));
|
|
273
|
+
slotItems.forEach((item) => {
|
|
274
|
+
const nextElement = item.nextElementSibling;
|
|
275
|
+
if (nextElement?.classList.contains('br-divider')) {
|
|
276
|
+
const divider = nextElement;
|
|
277
|
+
divider.style.borderWidth = '0 1px 0 0';
|
|
278
|
+
divider.style.width = '1px';
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
this.applyListItemRoles();
|
|
283
|
+
this.normalizeIntermediateWrappers();
|
|
284
|
+
await this.initRovingTabindex();
|
|
285
|
+
this.slotElement = this.el.shadowRoot?.querySelector('slot:not([name])') ?? null;
|
|
286
|
+
this.slotElement?.addEventListener('slotchange', this.handleSlotChange);
|
|
287
|
+
this.syncObserverMode();
|
|
288
|
+
}
|
|
289
|
+
disconnectedCallback() {
|
|
290
|
+
if (this.boundKeydown) {
|
|
291
|
+
this.el.removeEventListener('keydown', this.boundKeydown);
|
|
292
|
+
this.boundKeydown = null;
|
|
293
|
+
}
|
|
294
|
+
this.observer?.disconnect();
|
|
295
|
+
this.observer = null;
|
|
296
|
+
this.slotElement?.removeEventListener('slotchange', this.handleSlotChange);
|
|
297
|
+
this.slotElement = null;
|
|
298
|
+
if (this.mutationFrame !== null) {
|
|
299
|
+
cancelAnimationFrame(this.mutationFrame);
|
|
300
|
+
this.mutationFrame = null;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Retorna todos os `br-item` pertencentes diretamente a esta lista, ignorando
|
|
305
|
+
* itens de listas aninhadas. Usa `TreeWalker` com `FILTER_REJECT` em `br-list`
|
|
306
|
+
* filhas para evitar contaminar itens internos com `role="listitem"` desta lista pai.
|
|
307
|
+
*/
|
|
308
|
+
getOwnedItems() {
|
|
309
|
+
const items = [];
|
|
310
|
+
const walker = document.createTreeWalker(this.el, NodeFilter.SHOW_ELEMENT, {
|
|
311
|
+
acceptNode: (node) => {
|
|
312
|
+
const tag = node.tagName?.toLowerCase();
|
|
313
|
+
if (node !== this.el &&
|
|
314
|
+
(tag === 'br-list' || tag === 'ul' || tag === 'ol' || node.getAttribute?.('role') === 'list')) {
|
|
315
|
+
return NodeFilter.FILTER_REJECT;
|
|
316
|
+
}
|
|
317
|
+
if (tag === 'br-item' || tag === 'br-footer-item' || tag === 'br-skiplink-item') {
|
|
318
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
319
|
+
}
|
|
320
|
+
return NodeFilter.FILTER_SKIP;
|
|
321
|
+
},
|
|
322
|
+
});
|
|
323
|
+
let current = walker.nextNode();
|
|
324
|
+
while (current) {
|
|
325
|
+
items.push(current);
|
|
326
|
+
current = walker.nextNode();
|
|
327
|
+
}
|
|
328
|
+
return items;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Aplica `role="listitem"` em todos os itens pertencentes a esta lista quando `listRole === 'list'`.
|
|
332
|
+
* Chamado no `componentDidLoad` e pelo `MutationObserver` para itens adicionados dinamicamente.
|
|
333
|
+
*/
|
|
334
|
+
applyListItemRoles() {
|
|
335
|
+
if (this.listRole !== 'list')
|
|
336
|
+
return;
|
|
337
|
+
this.getOwnedItems().forEach((item) => {
|
|
338
|
+
item.setAttribute('role', 'listitem');
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Aplica `role="presentation"` em wrappers intermediários e elementos decorativos sem semântica
|
|
343
|
+
* entre o `br-list` e seus itens diretos (ex.: `<div>` de layout ou `<span>` divisores).
|
|
344
|
+
* Sem isso, a relação `list → listitem` exigida pelo WAI-ARIA é quebrada.
|
|
345
|
+
*/
|
|
346
|
+
normalizeIntermediateWrappers() {
|
|
347
|
+
for (const child of Array.from(this.el.children)) {
|
|
348
|
+
this.normalizeWrapperRecursive(child);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
normalizeWrapperRecursive(node) {
|
|
352
|
+
const tag = node.tagName?.toLowerCase();
|
|
353
|
+
if (tag === 'br-item' || tag === 'br-footer-item' || tag === 'br-skiplink-item') {
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
// Não interfere em listas aninhadas: elas têm sua própria semântica.
|
|
357
|
+
if (tag === 'br-list' || tag === 'ul' || tag === 'ol' || node.getAttribute('role') === 'list') {
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
// Slot de cabeçalho não deve ser tratado como wrapper de item.
|
|
361
|
+
if (node.getAttribute('slot') === 'header') {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
if (this.listRole === 'list' && !node.hasAttribute('role')) {
|
|
365
|
+
node.setAttribute('role', 'presentation');
|
|
366
|
+
}
|
|
367
|
+
for (const grandChild of Array.from(node.children)) {
|
|
368
|
+
this.normalizeWrapperRecursive(grandChild);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Observa mutações no light DOM para manter `role="listitem"` e o roving tabindex
|
|
373
|
+
* atualizados quando itens são adicionados dinamicamente após o `componentDidLoad`.
|
|
374
|
+
*/
|
|
375
|
+
mutationHasRelevantItems(mutations) {
|
|
376
|
+
const itemTags = ['br-item', 'br-footer-item', 'br-skiplink-item'];
|
|
377
|
+
for (const mutation of mutations) {
|
|
378
|
+
for (const node of [...Array.from(mutation.addedNodes), ...Array.from(mutation.removedNodes)]) {
|
|
379
|
+
if (node.nodeType !== Node.ELEMENT_NODE)
|
|
380
|
+
continue;
|
|
381
|
+
const el = node;
|
|
382
|
+
const tag = el.tagName?.toLowerCase();
|
|
383
|
+
if (itemTags.includes(tag) || itemTags.some((t) => el.querySelector?.(t))) {
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (mutation.type === 'attributes' && itemTags.includes(mutation.target.tagName?.toLowerCase())) {
|
|
388
|
+
return true;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
hasNestedSlottedContent() {
|
|
394
|
+
const itemTags = ['br-item', 'br-footer-item', 'br-skiplink-item'];
|
|
395
|
+
return (this.slotElement?.assignedElements({ flatten: true }) ?? []).some((element) => {
|
|
396
|
+
const tag = element.tagName.toLowerCase();
|
|
397
|
+
return !itemTags.includes(tag) && itemTags.some((itemTag) => element.querySelector(itemTag) !== null);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
scheduleListSync() {
|
|
401
|
+
if (this.mutationFrame !== null)
|
|
402
|
+
return;
|
|
403
|
+
this.mutationFrame = requestAnimationFrame(async () => {
|
|
404
|
+
this.mutationFrame = null;
|
|
405
|
+
this.applyListItemRoles();
|
|
406
|
+
this.normalizeIntermediateWrappers();
|
|
407
|
+
await this.initRovingTabindex();
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
syncObserverMode() {
|
|
411
|
+
const nested = this.hasNestedSlottedContent();
|
|
412
|
+
if (this.observer !== null && nested === this.observingNestedContent)
|
|
413
|
+
return;
|
|
414
|
+
this.observer?.disconnect();
|
|
415
|
+
this.observingNestedContent = nested;
|
|
416
|
+
this.observer = new MutationObserver((mutations) => {
|
|
417
|
+
if (!this.mutationHasRelevantItems(mutations))
|
|
418
|
+
return;
|
|
419
|
+
this.scheduleListSync();
|
|
420
|
+
});
|
|
421
|
+
this.observer.observe(this.el, {
|
|
422
|
+
childList: true,
|
|
423
|
+
subtree: nested,
|
|
424
|
+
attributes: true,
|
|
425
|
+
attributeFilter: ['disabled', 'hidden', 'href', 'is-interactive', 'interactive', 'is-button', 'button', 'style'],
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Implementa o padrão roving tabindex do WAI-ARIA APG.
|
|
430
|
+
* Apenas o primeiro item habilitado recebe `tabIndex=0`; todos os outros ficam com `tabIndex=-1`.
|
|
431
|
+
* Isso garante que a lista seja um único tab stop, com navegação interna via teclas de seta.
|
|
432
|
+
*/
|
|
433
|
+
async initRovingTabindex() {
|
|
434
|
+
const items = this.getNavigableItems();
|
|
435
|
+
await Promise.all(items.map((item, index) => item.setTabIndex(index === 0 ? 0 : -1)));
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Move o foco para o primeiro item navegável da lista.
|
|
439
|
+
* API pública para componentes que abrem a lista programaticamente
|
|
440
|
+
* (ex.: `br-dropdown`), evitando acesso direto ao `br-item`.
|
|
441
|
+
*/
|
|
442
|
+
async focusFirstItem() {
|
|
443
|
+
const items = this.getNavigableItems();
|
|
444
|
+
if (items.length > 0) {
|
|
445
|
+
await this.focusItem(items[0]);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Atualiza o roving tabindex após uma navegação, colocando tabIndex=0
|
|
450
|
+
* no item que recebeu foco e tabIndex=-1 em todos os outros.
|
|
451
|
+
*/
|
|
452
|
+
async updateRovingTabindex(focusedItem) {
|
|
453
|
+
const items = this.getNavigableItems();
|
|
454
|
+
await Promise.all(items.map((item) => item.setTabIndex(item === focusedItem ? 0 : -1)));
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Verifica se um item está visível no documento.
|
|
458
|
+
*/
|
|
459
|
+
isItemVisible(item) {
|
|
460
|
+
const style = window.getComputedStyle(item);
|
|
461
|
+
return style.display !== 'none' && style.visibility !== 'hidden';
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Indica se o item participa da navegação por teclado (roving tabindex).
|
|
465
|
+
* Itens puramente de exibição (sem isInteractive/isButton/href) não são
|
|
466
|
+
* widgets acionáveis e não devem virar tab stop nem ser alcançados por seta.
|
|
467
|
+
*/
|
|
468
|
+
isFocusableItem(item) {
|
|
469
|
+
return (item.hasAttribute('is-interactive') ||
|
|
470
|
+
item.hasAttribute('interactive') ||
|
|
471
|
+
item.hasAttribute('is-button') ||
|
|
472
|
+
item.hasAttribute('button') ||
|
|
473
|
+
item.hasAttribute('href'));
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Retorna os br-item navegáveis desta lista, ignorando itens desabilitados,
|
|
477
|
+
* não-interativos, ocultos e itens pertencentes a listas aninhadas.
|
|
478
|
+
*/
|
|
479
|
+
getNavigableItems() {
|
|
480
|
+
const items = [];
|
|
481
|
+
const walker = document.createTreeWalker(this.el, NodeFilter.SHOW_ELEMENT, {
|
|
482
|
+
acceptNode: (node) => {
|
|
483
|
+
const tag = node.tagName?.toLowerCase();
|
|
484
|
+
if (node !== this.el &&
|
|
485
|
+
(tag === 'br-list' || tag === 'ul' || tag === 'ol' || node.getAttribute?.('role') === 'list')) {
|
|
486
|
+
return NodeFilter.FILTER_REJECT;
|
|
487
|
+
}
|
|
488
|
+
if (tag === 'br-item' && !node.hasAttribute('disabled') && this.isFocusableItem(node)) {
|
|
489
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
490
|
+
}
|
|
491
|
+
return NodeFilter.FILTER_SKIP;
|
|
492
|
+
},
|
|
493
|
+
});
|
|
494
|
+
let current = walker.nextNode();
|
|
495
|
+
while (current) {
|
|
496
|
+
const item = current;
|
|
497
|
+
if (this.isItemVisible(item)) {
|
|
498
|
+
items.push(item);
|
|
499
|
+
}
|
|
500
|
+
current = walker.nextNode();
|
|
501
|
+
}
|
|
502
|
+
return items;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Resolve o elemento com foco atravessando múltiplos níveis de shadow DOM.
|
|
506
|
+
*/
|
|
507
|
+
getDeepActiveElement(root = document) {
|
|
508
|
+
let active = root.activeElement;
|
|
509
|
+
while (active?.shadowRoot?.activeElement) {
|
|
510
|
+
active = active.shadowRoot.activeElement;
|
|
511
|
+
}
|
|
512
|
+
return active;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Sobe a partir de `start` até achar um dos `items`, atravessando limites de shadow root
|
|
516
|
+
* (via `.host`) em cada nível. Necessário porque `Node.contains()` não atravessa o shadow
|
|
517
|
+
* boundary de um elemento diferente (ex.: o `<input>` nativo dentro do shadow root de um
|
|
518
|
+
* `br-checkbox`/`br-radio` aninhado no item) -- sem isso, o foco dentro desses controles
|
|
519
|
+
* nunca é atribuído ao item correto.
|
|
520
|
+
*/
|
|
521
|
+
findOwnerItem(start, items) {
|
|
522
|
+
let node = start;
|
|
523
|
+
while (node) {
|
|
524
|
+
if (node instanceof globalThis.Element && items.includes(node)) {
|
|
525
|
+
return node;
|
|
526
|
+
}
|
|
527
|
+
node = node instanceof ShadowRoot ? node.host : node.parentNode;
|
|
528
|
+
}
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
getCurrentIndex(items) {
|
|
532
|
+
const active = this.getDeepActiveElement();
|
|
533
|
+
const owner = this.findOwnerItem(active, items);
|
|
534
|
+
return owner ? items.indexOf(owner) : -1;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Indica se o teclado deve ser deixado para o próprio controle (input de texto, textarea,
|
|
538
|
+
* select), sem ser sequestrado pela navegação por setas/Home/End/Enter/Espaço da lista.
|
|
539
|
+
* Esses controles têm edição de texto/cursor próprios que a lista não deve sobrepor.
|
|
540
|
+
*
|
|
541
|
+
* Checkbox e radio ficam DE FORA deste bypass -- checkbox não tem comportamento nativo de
|
|
542
|
+
* seta algum (precisa que a lista trate as setas pra navegar entre itens, ver `findOwnerItem`),
|
|
543
|
+
* e radio já trata suas próprias setas via `defaultPrevented` (seu próprio `@Listen('keydown')`
|
|
544
|
+
* chama `preventDefault()`, o que o early-return de `handleKeydown` já respeita).
|
|
545
|
+
*/
|
|
546
|
+
isFormControlTarget(target) {
|
|
547
|
+
const el = target;
|
|
548
|
+
const tag = el?.tagName?.toLowerCase();
|
|
549
|
+
if (!tag)
|
|
550
|
+
return false;
|
|
551
|
+
if (tag === 'textarea' || tag === 'select')
|
|
552
|
+
return true;
|
|
553
|
+
if (tag === 'input') {
|
|
554
|
+
const type = (el.type || 'text').toLowerCase();
|
|
555
|
+
return !['button', 'submit', 'reset', 'image', 'checkbox', 'radio'].includes(type);
|
|
556
|
+
}
|
|
557
|
+
return ['br-input', 'br-textarea', 'br-select'].includes(tag);
|
|
558
|
+
}
|
|
559
|
+
async focusItem(item) {
|
|
560
|
+
await this.updateRovingTabindex(item);
|
|
561
|
+
if ('setFocus' in item) {
|
|
562
|
+
await item.setFocus();
|
|
563
|
+
}
|
|
564
|
+
item.scrollIntoView({
|
|
565
|
+
behavior: 'smooth',
|
|
566
|
+
block: 'nearest',
|
|
567
|
+
inline: 'nearest',
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Trata a navegação por teclado dentro da lista, implementando o padrão
|
|
572
|
+
* composite widget do WAI-ARIA APG.
|
|
573
|
+
*
|
|
574
|
+
* - ArrowDown / ArrowRight (horizontal): próximo item (circular)
|
|
575
|
+
* - ArrowUp / ArrowLeft (horizontal): item anterior (circular)
|
|
576
|
+
* - Home / End: primeiro / último item
|
|
577
|
+
* - Enter / Space: ativa o item com foco via `activate()`
|
|
578
|
+
*
|
|
579
|
+
* Usa `composedPath()` para identificar a lista dona do evento,
|
|
580
|
+
* garantindo que listas aninhadas não processem eventos umas das outras.
|
|
581
|
+
* Chama `stopPropagation()` em todas as teclas tratadas para evitar
|
|
582
|
+
* conflito com componentes pai.
|
|
583
|
+
*
|
|
584
|
+
* Sai cedo (sem interceptar nada) quando: (a) o evento já foi tratado por um
|
|
585
|
+
* handler mais interno que chamou `preventDefault()` -- ex.: `br-dropdown` tratando
|
|
586
|
+
* Enter/Setas nos próprios itens, ou `br-radio` tratando Setas dentro do seu grupo --
|
|
587
|
+
* evitando double-handling; ou (b) o alvo é um controle de formulário que deve manter
|
|
588
|
+
* seu próprio comportamento de teclado (ver `isFormControlTarget`).
|
|
589
|
+
*/
|
|
590
|
+
handleKeydown(event) {
|
|
591
|
+
const path = event.composedPath();
|
|
592
|
+
const closestList = path.find((el) => el.tagName?.toLowerCase() === 'br-list');
|
|
593
|
+
if (closestList !== this.el)
|
|
594
|
+
return;
|
|
595
|
+
if (event.defaultPrevented)
|
|
596
|
+
return;
|
|
597
|
+
if (this.isFormControlTarget(event.target))
|
|
598
|
+
return;
|
|
599
|
+
const items = this.getNavigableItems();
|
|
600
|
+
if (!items.length)
|
|
601
|
+
return;
|
|
602
|
+
let currentIndex = this.getCurrentIndex(items);
|
|
603
|
+
if (currentIndex === -1)
|
|
604
|
+
currentIndex = 0;
|
|
605
|
+
const nextKey = this.isHorizontal ? 'ArrowRight' : 'ArrowDown';
|
|
606
|
+
const prevKey = this.isHorizontal ? 'ArrowLeft' : 'ArrowUp';
|
|
607
|
+
let target = null;
|
|
608
|
+
switch (event.key) {
|
|
609
|
+
case nextKey:
|
|
610
|
+
event.preventDefault();
|
|
611
|
+
event.stopPropagation();
|
|
612
|
+
target = items[(currentIndex + 1) % items.length];
|
|
613
|
+
break;
|
|
614
|
+
case prevKey:
|
|
615
|
+
event.preventDefault();
|
|
616
|
+
event.stopPropagation();
|
|
617
|
+
target = items[(currentIndex - 1 + items.length) % items.length];
|
|
618
|
+
break;
|
|
619
|
+
case 'Home':
|
|
620
|
+
event.preventDefault();
|
|
621
|
+
event.stopPropagation();
|
|
622
|
+
target = items[0];
|
|
623
|
+
break;
|
|
624
|
+
case 'End':
|
|
625
|
+
event.preventDefault();
|
|
626
|
+
event.stopPropagation();
|
|
627
|
+
target = items[items.length - 1];
|
|
628
|
+
break;
|
|
629
|
+
case 'Enter':
|
|
630
|
+
case ' ': {
|
|
631
|
+
event.preventDefault();
|
|
632
|
+
event.stopPropagation();
|
|
633
|
+
const currentItem = items[currentIndex];
|
|
634
|
+
if (currentItem && 'activate' in currentItem) {
|
|
635
|
+
currentItem.activate();
|
|
636
|
+
}
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
default:
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
if (target) {
|
|
643
|
+
void this.focusItem(target);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
getCssClassMap() {
|
|
647
|
+
return {
|
|
648
|
+
'br-list': true,
|
|
649
|
+
horizontal: this.effectiveOrientation === 'horizontal',
|
|
650
|
+
divider: this.divider,
|
|
651
|
+
small: this.density === 'small',
|
|
652
|
+
large: this.density === 'large',
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
get effectiveOrientation() {
|
|
656
|
+
return this.orientation ?? (this.isHorizontal ? 'horizontal' : 'vertical');
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Verifica se o slot possui conteúdo.
|
|
660
|
+
* @param slotName Nome do slot a ser verificado.
|
|
661
|
+
* @returns true se o slot possui conteúdo, false caso contrário.
|
|
662
|
+
*/
|
|
663
|
+
hasSlotContent(slotName) {
|
|
664
|
+
return slot.hasNamedLightDomSlot(this.el, slotName);
|
|
665
|
+
}
|
|
666
|
+
renderDivider() {
|
|
667
|
+
if ((this.header || this.hasSlotContent('header')) && !this.hideHeaderDivider) {
|
|
668
|
+
return index.h("div", { class: "br-divider" });
|
|
669
|
+
}
|
|
670
|
+
return null;
|
|
671
|
+
}
|
|
672
|
+
renderListBody() {
|
|
673
|
+
return [this.renderHeader(), this.renderDivider(), index.h("slot", null)];
|
|
674
|
+
}
|
|
675
|
+
render() {
|
|
676
|
+
return (index.h(index.Host, { key: '76fc25996edd37644798a525574f4c2d86c04373', role: this.listRole, "aria-label": this.header || null }, index.h("div", { key: 'be7604b1166c62b28dc12ecddae73b2b38ce3a17', class: this.getCssClassMap(), id: this.customId, part: "container" }, this.accordion || this.collapse ? (index.h("br-collapse", { "accordion-group": this.accordion || null, divider: this.divider }, this.renderListBody())) : (this.renderListBody()))));
|
|
677
|
+
}
|
|
678
|
+
get el() { return index.getElement(this); }
|
|
679
|
+
};
|
|
680
|
+
List.style = listCss();
|
|
681
|
+
|
|
682
|
+
exports.br_collapse = Collapse;
|
|
683
|
+
exports.br_list = List;
|