@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,563 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-C2RBydfd.js';
|
|
6
|
+
import { i as isEventTargetInside } from './event-DFN_so7I.js';
|
|
7
|
+
import { g as generateUniqueId } from './id-BkS6ujyf.js';
|
|
8
|
+
import { U as UniversalSwipe } from './swipe-Dmfk7eEe.js';
|
|
9
|
+
|
|
10
|
+
const carouselCss = () => `*,*::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-carousel{--carousel-button-margin:var(--spacing-scale-default);--carousel-buton-icon-size:var(--–icon-size-base);--carousel-step-height:40px;--carousel-step-progress-min-height:32px;--carousel-full-size:100%;--carousel-min-height:400px;--carousel-button-fix-height:52px;--carousel-button-fix-width:100px;--carousel-step-progress-background:transparent;display:flex;height:var(--carousel-full-size);min-height:var(--carousel-min-height);position:relative;width:var(--carousel-full-size)}.br-carousel .carousel-stage{display:block;flex-wrap:nowrap;height:var(--carousel-step-height);overflow:hidden;position:relative;width:var(--carousel-full-width);z-index:0}.br-carousel .carousel-stage .carousel-page{align-items:center;display:flex;flex-wrap:wrap;height:var(--carousel-full-size);justify-content:center;left:var(--carousel-full-size);margin-bottom:var(--spacing-scale-4x);opacity:0;overflow:hidden;position:absolute;top:0;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out;visibility:hidden;width:var(--carousel-full-size)}.br-carousel .carousel-stage .carousel-page[active]{height:var(--carousel-full-size);left:0 !important;opacity:1;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out;visibility:visible}.br-carousel .carousel-stage .carousel-page .carousel-content{align-items:center;display:flex;flex-wrap:wrap;height:var(--carousel-full-size);justify-content:center;width:var(--carousel-full-size)}.br-carousel .carousel-step{bottom:8px;height:var(--carousel-step-height);position:absolute;width:var(--carousel-full-size)}.br-carousel .carousel-step .br-step[data-type=simple] .step-progress,.br-carousel .carousel-step .br-step[data-type=text] .step-progress{background:var(--carousel-step-progress-background);min-height:var(--carousel-step-progress-min-height)}.br-carousel .carousel-step .br-step[data-type=simple] .step-progress .step-progress-btn,.br-carousel .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn{top:0}.br-carousel .carousel-step .br-step[data-type=simple] .step-progress .step-progress-btn:hover:not([disabled])::before,.br-carousel .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn:hover:not([disabled])::before{background-image:none}.br-carousel .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn{cursor:default;margin:0}.br-carousel .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn.focus-visible::before{outline-color:rgba(0,0,0,0) !important}.br-carousel .carousel-button{align-items:center;display:flex;height:var(--carousel-full-size);left:unset;position:absolute;right:0;width:fit-content;z-index:1}.br-carousel .carousel-button:first-child{left:0;right:unset}.br-carousel .carousel-button .carousel-btn-next,.br-carousel .carousel-button .carousel-btn-prev{margin:var(--carousel-button-margin);padding:0}.br-carousel[data-stage=in] .carousel-button{height:var(--carousel-full-size)}.br-carousel[data-stage=in] .carousel-button .carousel-btn-next,.br-carousel[data-stage=in] .carousel-button .carousel-btn-prev{border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}.br-carousel[data-stage=in] .carousel-stage{height:var(--carousel-full-size);left:0;width:var(--carousel-full-size)}.br-carousel[data-stage=out] .carousel-button,.br-carousel .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}.br-carousel[data-stage=out] .carousel-stage,.br-carousel .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}.br-carousel[data-stage=hibh] .carousel-button{height:var(--carousel-full-size)}.br-carousel[data-stage=hibh] .carousel-stage{height:var(--carousel-full-size);left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}.br-carousel[data-stage=hibw] .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}.br-carousel[data-stage=hibw] .carousel-button .carousel-btn-next,.br-carousel[data-stage=hibw] .carousel-button .carousel-btn-prev{border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}.br-carousel[data-stage=hibw] .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}@media (max-width: 991px){.br-carousel{max-width:var(--carousel-full-size);width:var(--carousel-full-size)}.br-carousel .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}.br-carousel .carousel-button .carousel-btn-next,.br-carousel .carousel-button .carousel-btn-prev{border-radius:0;display:none;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}.br-carousel[data-mobile-nav] .carousel-button .carousel-btn-next,.br-carousel[data-mobile-nav] .carousel-button .carousel-btn-prev{display:flex}.br-carousel .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}.br-carousel .carousel-step .br-step[data-type=simple] .step-progress,.br-carousel .carousel-step .br-step[data-type=text] .step-progress{padding-top:0 !important}}.br-carousel.inverted,.br-carousel.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.br-carousel.inverted .br-step,.br-carousel.dark-mode .br-step{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=success],.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=success]{color:var(--success-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=success] .step-info,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=success] .step-info{color:var(--success-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=success] .step-alert::after,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=success] .step-alert::after{content:var(--step-alert-success-icon)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=info],.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=info]{color:var(--info-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=info] .step-info,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=info] .step-info{color:var(--info-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=info] .step-alert::after,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=info] .step-alert::after{content:var(--step-alert-info-icon)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=warning] .step-alert::after,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=warning] .step-alert::after{content:var(--step-alert-warning-icon)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=danger],.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=danger]{color:var(--danger-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=danger] .step-info,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=danger] .step-info{color:var(--danger-alternative)}.br-carousel.inverted .br-step .step-progress-btn[data-alert=danger] .step-alert::after,.br-carousel.dark-mode .br-step .step-progress-btn[data-alert=danger] .step-alert::after{content:var(--step-alert-danger-icon)}.br-carousel.inverted .br-step .step-progress-btn.active,.br-carousel.inverted .br-step .step-progress-btn[active],.br-carousel.dark-mode .br-step .step-progress-btn.active,.br-carousel.dark-mode .br-step .step-progress-btn[active]{color:var(--color-dark)}.br-carousel.inverted .br-step .step-progress-btn.active::before,.br-carousel.inverted .br-step .step-progress-btn[active]::before,.br-carousel.dark-mode .br-step .step-progress-btn.active::before,.br-carousel.dark-mode .br-step .step-progress-btn[active]::before{background-color:var(--background-light);border-color:var(--background-light);color:var(--active)}.br-carousel.inverted .br-step .step-progress-btn.active .step-icon,.br-carousel.inverted .br-step .step-progress-btn[active] .step-icon,.br-carousel.dark-mode .br-step .step-progress-btn.active .step-icon,.br-carousel.dark-mode .br-step .step-progress-btn[active] .step-icon{color:var(--active)}.br-carousel.inverted .br-step[data-type=void] .step-progress-btn.active .step-alert,.br-carousel.inverted .br-step[data-type=void] .step-progress-btn[active] .step-alert,.br-carousel.dark-mode .br-step[data-type=void] .step-progress-btn.active .step-alert,.br-carousel.dark-mode .br-step[data-type=void] .step-progress-btn[active] .step-alert{border-color:var(--color-dark)}.br-carousel.inverted .br-step[data-type=text] .step-progress-btn::before,.br-carousel.dark-mode .br-step[data-type=text] .step-progress-btn::before{background-color:rgba(0,0,0,0);color:var(--color)}.br-carousel .carousel-page[active]:focus,.br-carousel .carousel-page[active]:focus-visible,.br-carousel .carousel-page[active]:focus-within{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host{display:block;min-width:0;min-height:var(--carousel-min-height, 400px);--carousel-button-margin:var(--spacing-scale-default);--carousel-buton-icon-size:var(--–icon-size-base);--carousel-step-height:40px;--carousel-step-progress-min-height:32px;--carousel-full-size:100%;--carousel-min-height:400px;--carousel-button-fix-height:52px;--carousel-button-fix-width:100px;--carousel-step-progress-background:transparent;display:flex;height:var(--carousel-full-size);min-height:var(--carousel-min-height);position:relative;width:var(--carousel-full-size)}:host .carousel-stage{display:block;flex-wrap:nowrap;height:var(--carousel-step-height);overflow:hidden;position:relative;width:var(--carousel-full-width);z-index:0}:host .carousel-stage .carousel-page{align-items:center;display:flex;flex-wrap:wrap;height:var(--carousel-full-size);justify-content:center;left:var(--carousel-full-size);margin-bottom:var(--spacing-scale-4x);opacity:0;overflow:hidden;position:absolute;top:0;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out;visibility:hidden;width:var(--carousel-full-size)}:host .carousel-stage .carousel-page[active]{height:var(--carousel-full-size);left:0 !important;opacity:1;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:ease-in-out;visibility:visible}:host .carousel-stage .carousel-page .carousel-content{align-items:center;display:flex;flex-wrap:wrap;height:var(--carousel-full-size);justify-content:center;width:var(--carousel-full-size)}:host .carousel-step{bottom:8px;height:var(--carousel-step-height);position:absolute;width:var(--carousel-full-size)}:host .carousel-step .br-step[data-type=simple] .step-progress,:host .carousel-step .br-step[data-type=text] .step-progress{background:var(--carousel-step-progress-background);min-height:var(--carousel-step-progress-min-height)}:host .carousel-step .br-step[data-type=simple] .step-progress .step-progress-btn,:host .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn{top:0}:host .carousel-step .br-step[data-type=simple] .step-progress .step-progress-btn:hover:not([disabled])::before,:host .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn:hover:not([disabled])::before{background-image:none}:host .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn{cursor:default;margin:0}:host .carousel-step .br-step[data-type=text] .step-progress .step-progress-btn.focus-visible::before{outline-color:rgba(0,0,0,0) !important}:host .carousel-button{align-items:center;display:flex;height:var(--carousel-full-size);left:unset;position:absolute;right:0;width:fit-content;z-index:1}:host .carousel-button:first-child{left:0;right:unset}:host .carousel-button .carousel-btn-next,:host .carousel-button .carousel-btn-prev{margin:var(--carousel-button-margin);padding:0}:host[data-stage=in] .carousel-button{height:var(--carousel-full-size)}:host[data-stage=in] .carousel-button .carousel-btn-next,:host[data-stage=in] .carousel-button .carousel-btn-prev{border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host[data-stage=in] .carousel-stage{height:var(--carousel-full-size);left:0;width:var(--carousel-full-size)}:host[data-stage=out] .carousel-button,:host .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host[data-stage=out] .carousel-stage,:host .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}:host[data-stage=hibh] .carousel-button{height:var(--carousel-full-size)}:host[data-stage=hibh] .carousel-stage{height:var(--carousel-full-size);left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}:host[data-stage=hibw] .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host[data-stage=hibw] .carousel-button .carousel-btn-next,:host[data-stage=hibw] .carousel-button .carousel-btn-prev{border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host[data-stage=hibw] .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}@media (max-width: 991px){:host{max-width:var(--carousel-full-size);width:var(--carousel-full-size)}:host .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host .carousel-button .carousel-btn-next,:host .carousel-button .carousel-btn-prev{border-radius:0;display:none;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host[data-mobile-nav] .carousel-button .carousel-btn-next,:host[data-mobile-nav] .carousel-button .carousel-btn-prev{display:flex}:host .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}:host .carousel-step .br-step[data-type=simple] .step-progress,:host .carousel-step .br-step[data-type=text] .step-progress{padding-top:0 !important}}:host.inverted,:host.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host.inverted .br-step,:host.dark-mode .br-step{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host.inverted .br-step .step-progress-btn[data-alert=success],:host.dark-mode .br-step .step-progress-btn[data-alert=success]{color:var(--success-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=success] .step-info,:host.dark-mode .br-step .step-progress-btn[data-alert=success] .step-info{color:var(--success-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=success] .step-alert::after,:host.dark-mode .br-step .step-progress-btn[data-alert=success] .step-alert::after{content:var(--step-alert-success-icon)}:host.inverted .br-step .step-progress-btn[data-alert=info],:host.dark-mode .br-step .step-progress-btn[data-alert=info]{color:var(--info-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=info] .step-info,:host.dark-mode .br-step .step-progress-btn[data-alert=info] .step-info{color:var(--info-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=info] .step-alert::after,:host.dark-mode .br-step .step-progress-btn[data-alert=info] .step-alert::after{content:var(--step-alert-info-icon)}:host.inverted .br-step .step-progress-btn[data-alert=warning] .step-alert::after,:host.dark-mode .br-step .step-progress-btn[data-alert=warning] .step-alert::after{content:var(--step-alert-warning-icon)}:host.inverted .br-step .step-progress-btn[data-alert=danger],:host.dark-mode .br-step .step-progress-btn[data-alert=danger]{color:var(--danger-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=danger] .step-info,:host.dark-mode .br-step .step-progress-btn[data-alert=danger] .step-info{color:var(--danger-alternative)}:host.inverted .br-step .step-progress-btn[data-alert=danger] .step-alert::after,:host.dark-mode .br-step .step-progress-btn[data-alert=danger] .step-alert::after{content:var(--step-alert-danger-icon)}:host.inverted .br-step .step-progress-btn.active,:host.inverted .br-step .step-progress-btn[active],:host.dark-mode .br-step .step-progress-btn.active,:host.dark-mode .br-step .step-progress-btn[active]{color:var(--color-dark)}:host.inverted .br-step .step-progress-btn.active::before,:host.inverted .br-step .step-progress-btn[active]::before,:host.dark-mode .br-step .step-progress-btn.active::before,:host.dark-mode .br-step .step-progress-btn[active]::before{background-color:var(--background-light);border-color:var(--background-light);color:var(--active)}:host.inverted .br-step .step-progress-btn.active .step-icon,:host.inverted .br-step .step-progress-btn[active] .step-icon,:host.dark-mode .br-step .step-progress-btn.active .step-icon,:host.dark-mode .br-step .step-progress-btn[active] .step-icon{color:var(--active)}:host.inverted .br-step[data-type=void] .step-progress-btn.active .step-alert,:host.inverted .br-step[data-type=void] .step-progress-btn[active] .step-alert,:host.dark-mode .br-step[data-type=void] .step-progress-btn.active .step-alert,:host.dark-mode .br-step[data-type=void] .step-progress-btn[active] .step-alert{border-color:var(--color-dark)}:host.inverted .br-step[data-type=text] .step-progress-btn::before,:host.dark-mode .br-step[data-type=text] .step-progress-btn::before{background-color:rgba(0,0,0,0);color:var(--color)}:host .carousel-page[active]:focus,:host .carousel-page[active]:focus-visible,:host .carousel-page[active]:focus-within{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host .br-carousel .carousel-button[part=nav-prev]{left:0;right:unset}:host .br-carousel[data-stage=in] .carousel-button{height:var(--carousel-full-size)}:host .br-carousel[data-stage=in] .carousel-button br-button.carousel-btn-next::part(button),:host .br-carousel[data-stage=in] .carousel-button br-button.carousel-btn-prev::part(button){border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host .br-carousel[data-stage=in] .carousel-stage{height:var(--carousel-full-size);left:0;width:var(--carousel-full-size)}:host .br-carousel[data-stage=out] .carousel-button,:host .br-carousel .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host .br-carousel .carousel-stage{box-sizing:border-box;min-width:0;max-width:100%}:host .br-carousel{container-type:inline-size;min-width:0}:host .br-carousel .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}:host .br-carousel[data-stage=hibh] .carousel-button{height:var(--carousel-full-size)}:host .br-carousel[data-stage=hibh] .carousel-stage{height:var(--carousel-full-size);left:50px;width:calc(var(--carousel-full-size) - var(--carousel-button-fix-width))}:host .br-carousel[data-stage=hibw] .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host .br-carousel[data-stage=hibw] .carousel-button br-button.carousel-btn-next::part(button),:host .br-carousel[data-stage=hibw] .carousel-button br-button.carousel-btn-prev::part(button){border-radius:0;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host .br-carousel[data-stage=hibw] .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}@container (max-width: 991px){:host .br-carousel .carousel-button{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height))}:host .br-carousel .carousel-button br-button.carousel-btn-next,:host .br-carousel .carousel-button br-button.carousel-btn-prev{border-radius:0;display:none;height:var(--carousel-full-size);margin:0;padding:0 var(--spacing-scale-default)}:host .br-carousel[data-mobile-nav] .carousel-button br-button.carousel-btn-next,:host .br-carousel[data-mobile-nav] .carousel-button br-button.carousel-btn-prev{display:flex}:host .br-carousel .carousel-stage{height:calc(var(--carousel-full-size) - var(--carousel-button-fix-height));left:0;width:var(--carousel-full-size)}}::slotted(br-carousel-page){align-items:center;display:flex;flex-wrap:wrap;height:100%;justify-content:center;left:100%;margin-bottom:var(--spacing-scale-4x);opacity:0;overflow:hidden;position:absolute;top:0;transition:all var(--duration-moderate, 0.5s) ease-in-out 0s;visibility:hidden;width:100%;min-width:0}::slotted(br-carousel-page[active]){height:100%;left:0 !important;opacity:1;visibility:visible}.carousel-page-text{align-items:center;display:flex;font-size:var(--font-size-scale-base);justify-content:center;padding:var(--spacing-scale-2x) 0;width:100%}.br-carousel.dark-mode .carousel-page-text,.br-carousel.inverted .carousel-page-text{color:var(--color-dark)}.carousel-stage{overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.carousel-play-button{left:50%;opacity:0;pointer-events:none;position:absolute;top:calc(50% - var(--carousel-button-fix-height)/2);transform:translate(-50%, -50%);transition:opacity .2s ease-in-out;z-index:2}.br-carousel:hover .carousel-play-button,.carousel-play-button:focus-within{opacity:1;pointer-events:auto}.br-carousel[data-stage=in] .carousel-play-button,.br-carousel[data-stage=hibh] .carousel-play-button{top:50%}@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}`;
|
|
11
|
+
|
|
12
|
+
const Carousel = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.brDidPageChange = createEvent(this, "brDidPageChange", 7);
|
|
16
|
+
this.brCarouselPageChange = createEvent(this, "brCarouselPageChange", 7);
|
|
17
|
+
this.brDidAutoPlayStart = createEvent(this, "brDidAutoPlayStart", 7);
|
|
18
|
+
this.brCarouselAutoplayStart = createEvent(this, "brCarouselAutoplayStart", 7);
|
|
19
|
+
this.brDidAutoPlayPause = createEvent(this, "brDidAutoPlayPause", 7);
|
|
20
|
+
this.brCarouselAutoplayPause = createEvent(this, "brCarouselAutoplayPause", 7);
|
|
21
|
+
this.activePage = 0;
|
|
22
|
+
this.isPlaying = false;
|
|
23
|
+
/**
|
|
24
|
+
* `true` somente enquanto o timer de autoPlay está ativamente disparando.
|
|
25
|
+
* Difere de `isPlaying`: ao pausar por hover/foco, `isPlaying` permanece `true`
|
|
26
|
+
* mas `isRotating` torna-se `false`, liberando o `aria-live` para anunciar
|
|
27
|
+
* mudanças manuais de slide ao leitor de tela.
|
|
28
|
+
*/
|
|
29
|
+
this.isRotating = false;
|
|
30
|
+
/** Lista de slides. Declarada como @State para que a reatribuição via slotchange acione re-render automaticamente. */
|
|
31
|
+
this.pages = [];
|
|
32
|
+
/**
|
|
33
|
+
* Identificador único do componente.
|
|
34
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
35
|
+
*
|
|
36
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
this.customId = generateUniqueId();
|
|
40
|
+
/**
|
|
41
|
+
* Posição dos botões de navegação (prev/next) em relação ao palco.
|
|
42
|
+
* - `outside`: botões ficam nas laterais externas ao palco.
|
|
43
|
+
* - `inside`: botões ficam sobrepostos dentro do palco, ocupando toda a altura.
|
|
44
|
+
*/
|
|
45
|
+
this.navPosition = 'outside';
|
|
46
|
+
/**
|
|
47
|
+
* Define o tipo de indicador de páginas renderizado.
|
|
48
|
+
* - `simple`: dots usando `br-step` em modo controller.
|
|
49
|
+
* - `textual`: texto "X/N" com `aria-live`.
|
|
50
|
+
* - `none`: sem indicador.
|
|
51
|
+
*/
|
|
52
|
+
this.indicatorType = 'simple';
|
|
53
|
+
/**
|
|
54
|
+
* Posição do indicador de páginas em relação ao palco.
|
|
55
|
+
* Ignorada quando `indicatorType="none"`.
|
|
56
|
+
* - `outside`: indicador fica abaixo do palco.
|
|
57
|
+
* - `inside`: indicador fica sobreposto ao conteúdo.
|
|
58
|
+
*/
|
|
59
|
+
this.indicatorPosition = 'outside';
|
|
60
|
+
/**
|
|
61
|
+
* Habilita a navegação circular entre os slides.
|
|
62
|
+
* Quando true, os botões "Anterior" e "Próximo" permanecem sempre habilitados: avançar a partir do último slide retorna ao primeiro, e retroceder a partir do primeiro leva ao último.
|
|
63
|
+
* Se autoPlay estiver ativado, o comportamento circular será aplicado automaticamente, independentemente deste valor.
|
|
64
|
+
* @deprecated Use `circular`.
|
|
65
|
+
*/
|
|
66
|
+
this.isCircular = false;
|
|
67
|
+
/**
|
|
68
|
+
* Habilita reprodução automática.
|
|
69
|
+
* Pausa em hover e foco (W3C). Ativa o loop circular automaticamente.
|
|
70
|
+
* Não recomendado em dispositivos móveis.
|
|
71
|
+
* @deprecated Use `autoplay`.
|
|
72
|
+
*/
|
|
73
|
+
this.autoPlay = false;
|
|
74
|
+
/**
|
|
75
|
+
* Intervalo em milissegundos entre cada avanço automático.
|
|
76
|
+
* Só tem efeito quando `autoPlay=true`.
|
|
77
|
+
*/
|
|
78
|
+
this.interval = 5000;
|
|
79
|
+
/**
|
|
80
|
+
* Direção de navegação automática do carrossel.
|
|
81
|
+
* - `left`: retrocede (vai para o slide anterior).
|
|
82
|
+
* - `right`: avança (vai para o próximo slide).
|
|
83
|
+
* Só tem efeito quando `autoPlay=true`.
|
|
84
|
+
*/
|
|
85
|
+
this.direction = 'right';
|
|
86
|
+
/**
|
|
87
|
+
* Exibe botões de navegação em dispositivos móveis.
|
|
88
|
+
* Por padrão os botões são ocultados no breakpoint `sm`.
|
|
89
|
+
*/
|
|
90
|
+
this.mobileNav = false;
|
|
91
|
+
/**
|
|
92
|
+
* Ajuste aplicado a imagens filhas diretas de `br-carousel-page`.
|
|
93
|
+
*/
|
|
94
|
+
this.imageFit = 'cover';
|
|
95
|
+
this.stepRef = null;
|
|
96
|
+
this.autoPlayTimer = null;
|
|
97
|
+
this.isPausedByFocus = false;
|
|
98
|
+
/** Rastreia se o cursor está sobre o carrossel (para evitar retomar ao sair do foco enquanto hover ativo). */
|
|
99
|
+
this.isHovering = false;
|
|
100
|
+
/** Quando true, o usuário iniciou explicitamente via botão — hover e foco não pausam a rotação. */
|
|
101
|
+
this.isUserExplicitlyPlaying = false;
|
|
102
|
+
this.stageRef = null;
|
|
103
|
+
this.carouselSwipe = null;
|
|
104
|
+
this.slotEl = null;
|
|
105
|
+
this.MOBILE_MQ = '(max-width: 576px)';
|
|
106
|
+
this.mobileMediaQuery = null;
|
|
107
|
+
/**
|
|
108
|
+
* Reatualiza a lista de slides e reinicializa os atributos quando o conteúdo
|
|
109
|
+
* do slot muda (slides adicionados ou removidos dinamicamente).
|
|
110
|
+
*/
|
|
111
|
+
this.onSlotChange = () => {
|
|
112
|
+
this.pages = this.slideElements;
|
|
113
|
+
if (this.activePage >= this.pages.length) {
|
|
114
|
+
this.activePage = Math.max(0, this.pages.length - 1);
|
|
115
|
+
}
|
|
116
|
+
this.initPages();
|
|
117
|
+
};
|
|
118
|
+
this.onBreakpointChange = (e) => {
|
|
119
|
+
if (e.matches) {
|
|
120
|
+
this.setupSwipeListeners();
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
this.cleanupSwipeListeners();
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/** Handlers de eventos do DOM — mouse, foco e interação do usuário. */
|
|
127
|
+
this.onMouseEnter = () => {
|
|
128
|
+
this.isHovering = true;
|
|
129
|
+
// W3C: se o usuário iniciou explicitamente via botão, hover não pausa
|
|
130
|
+
if (this.isUserExplicitlyPlaying)
|
|
131
|
+
return;
|
|
132
|
+
if (this.isPlaying && !this.isPausedByFocus) {
|
|
133
|
+
this.isRotating = false;
|
|
134
|
+
this.clearTimer();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
this.onMouseLeave = () => {
|
|
138
|
+
this.isHovering = false;
|
|
139
|
+
// W3C: se o usuário iniciou explicitamente via botão, hover não retoma (já está rodando)
|
|
140
|
+
if (this.isUserExplicitlyPlaying)
|
|
141
|
+
return;
|
|
142
|
+
if (this.effectiveAutoplay && this.isPlaying && !this.isPausedByFocus) {
|
|
143
|
+
this.isRotating = true;
|
|
144
|
+
this.scheduleInterval();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
this.onFocusIn = () => {
|
|
148
|
+
// W3C: se o usuário iniciou explicitamente via botão, foco não pausa
|
|
149
|
+
if (this.isUserExplicitlyPlaying)
|
|
150
|
+
return;
|
|
151
|
+
if (this.isPlaying) {
|
|
152
|
+
this.isPausedByFocus = true;
|
|
153
|
+
this.isRotating = false;
|
|
154
|
+
this.clearTimer();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
this.onFocusOut = (e) => {
|
|
158
|
+
if (this.el.contains(e.relatedTarget))
|
|
159
|
+
return;
|
|
160
|
+
if (this.isUserExplicitlyPlaying)
|
|
161
|
+
return;
|
|
162
|
+
if (!this.effectiveAutoplay || !this.isPausedByFocus)
|
|
163
|
+
return;
|
|
164
|
+
this.isPausedByFocus = false;
|
|
165
|
+
// W3C: não retoma se o cursor ainda está sobre o carrossel
|
|
166
|
+
if (this.isHovering)
|
|
167
|
+
return;
|
|
168
|
+
this.isRotating = true;
|
|
169
|
+
this.scheduleInterval();
|
|
170
|
+
};
|
|
171
|
+
/** Swipe — configuração e limpeza de gestos touch/pointer em mobile. */
|
|
172
|
+
this.onSwipeLeft = () => {
|
|
173
|
+
this.nextPage();
|
|
174
|
+
};
|
|
175
|
+
this.onSwipeRight = () => {
|
|
176
|
+
this.previousPage();
|
|
177
|
+
};
|
|
178
|
+
this.onStepChange = (e) => {
|
|
179
|
+
if (e.detail.activeStep !== this.activePage) {
|
|
180
|
+
this.goTo(e.detail.activeStep);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
this.onPrevClick = () => {
|
|
184
|
+
this.previousPage();
|
|
185
|
+
};
|
|
186
|
+
this.onNextClick = () => {
|
|
187
|
+
this.nextPage();
|
|
188
|
+
};
|
|
189
|
+
this.onPlayToggle = () => {
|
|
190
|
+
this.isPlaying ? this.pause() : this.play();
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
onActivePageChange(newVal, oldVal) {
|
|
194
|
+
this.syncStepIndicator(newVal, oldVal);
|
|
195
|
+
}
|
|
196
|
+
disconnectedCallback() {
|
|
197
|
+
this.clearTimer();
|
|
198
|
+
this.cleanupSwipeListeners();
|
|
199
|
+
this.slotEl?.removeEventListener('slotchange', this.onSlotChange);
|
|
200
|
+
this.slotEl = null;
|
|
201
|
+
this.mobileMediaQuery?.removeEventListener('change', this.onBreakpointChange);
|
|
202
|
+
this.mobileMediaQuery = null;
|
|
203
|
+
}
|
|
204
|
+
componentWillLoad() {
|
|
205
|
+
this.pages = this.slideElements;
|
|
206
|
+
const initialActive = this.pages.findIndex((p) => p.hasAttribute('active'));
|
|
207
|
+
if (initialActive >= 0) {
|
|
208
|
+
this.activePage = initialActive;
|
|
209
|
+
}
|
|
210
|
+
if (this.effectiveAutoplay) {
|
|
211
|
+
this.initAutoPlay();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
componentDidLoad() {
|
|
215
|
+
this.initPages();
|
|
216
|
+
this.slotEl = this.el.shadowRoot.querySelector('slot');
|
|
217
|
+
this.slotEl?.addEventListener('slotchange', this.onSlotChange);
|
|
218
|
+
this.mobileMediaQuery = window.matchMedia(this.MOBILE_MQ);
|
|
219
|
+
this.mobileMediaQuery.addEventListener('change', this.onBreakpointChange);
|
|
220
|
+
if (this.mobileMediaQuery.matches) {
|
|
221
|
+
this.setupSwipeListeners();
|
|
222
|
+
}
|
|
223
|
+
if (this.effectiveAutoplay && this.isPlaying) {
|
|
224
|
+
this.scheduleInterval();
|
|
225
|
+
this.brDidAutoPlayStart.emit();
|
|
226
|
+
this.brCarouselAutoplayStart.emit();
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Navegação por teclado para o modo tablist (`indicatorType="simple"`).
|
|
231
|
+
*
|
|
232
|
+
* O W3C APG Carousel Pattern especifica que, quando os controles de seleção de slide
|
|
233
|
+
* são implementados como tabs, a interação de teclado segue o
|
|
234
|
+
* {@link https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ Tabs Pattern (W3C APG)}.
|
|
235
|
+
* Esse padrão define o comportamento de roving tabindex com as teclas:
|
|
236
|
+
* - `ArrowLeft` / `ArrowRight` (ou `ArrowUp` / `ArrowDown`): move o foco entre as tabs.
|
|
237
|
+
* - `Home`: move o foco para a primeira tab.
|
|
238
|
+
* - `End`: move o foco para a última tab.
|
|
239
|
+
*
|
|
240
|
+
* O handler está no `br-carousel` (e não no `br-step`) porque a lógica de
|
|
241
|
+
* `effectiveCircular` é uma responsabilidade do carrossel, mantendo uma única
|
|
242
|
+
* fonte de verdade para a navegação circular.
|
|
243
|
+
*
|
|
244
|
+
* O evento `keydown` é composto (`composed: true`), portanto borbulha através do
|
|
245
|
+
* shadow DOM do `br-step-item` até o host do `br-carousel`.
|
|
246
|
+
*/
|
|
247
|
+
onTablistKeydown(e) {
|
|
248
|
+
if (this.indicatorType !== 'simple' || this.stepRef === null)
|
|
249
|
+
return;
|
|
250
|
+
if (!isEventTargetInside(e, this.stepRef))
|
|
251
|
+
return;
|
|
252
|
+
if (!Carousel.NAVIGATION_KEYS.has(e.key))
|
|
253
|
+
return;
|
|
254
|
+
e.preventDefault();
|
|
255
|
+
const next = this.resolveTablistKeyIndex(e.key);
|
|
256
|
+
if (next === this.activePage)
|
|
257
|
+
return;
|
|
258
|
+
this.goTo(next);
|
|
259
|
+
this.focusStepItem(next);
|
|
260
|
+
}
|
|
261
|
+
/** Métodos públicos */
|
|
262
|
+
/**
|
|
263
|
+
* Avança para o próximo slide. Respeita a prop `isCircular` (ou ativo automaticamente com `autoPlay`).
|
|
264
|
+
*/
|
|
265
|
+
async nextPage() {
|
|
266
|
+
const next = this.activePage + 1;
|
|
267
|
+
if (next < this.pages.length) {
|
|
268
|
+
this.goTo(next);
|
|
269
|
+
}
|
|
270
|
+
else if (this.effectiveCircular) {
|
|
271
|
+
this.goTo(0);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Retorna ao slide anterior. Respeita a prop `isCircular` (ou ativo automaticamente com `autoPlay`).
|
|
276
|
+
*/
|
|
277
|
+
async previousPage() {
|
|
278
|
+
const prev = this.activePage - 1;
|
|
279
|
+
if (prev >= 0) {
|
|
280
|
+
this.goTo(prev);
|
|
281
|
+
}
|
|
282
|
+
else if (this.effectiveCircular) {
|
|
283
|
+
this.goTo(this.pages.length - 1);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Navega para o slide de número `index` (1 = primeiro slide, 2 = segundo, …).
|
|
288
|
+
* Valores fora do intervalo válido são ignorados.
|
|
289
|
+
*/
|
|
290
|
+
async goToPage(index) {
|
|
291
|
+
if (index >= 1 && index <= this.pages.length) {
|
|
292
|
+
this.goTo(index - 1);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Retorna o número do slide atualmente ativo (1 = primeiro slide, 2 = segundo, …).
|
|
297
|
+
*/
|
|
298
|
+
async getActivePage() {
|
|
299
|
+
return this.activePage + 1;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Inicia ou retoma a reprodução automática programaticamente.
|
|
303
|
+
*/
|
|
304
|
+
async play() {
|
|
305
|
+
if (!this.effectiveAutoplay)
|
|
306
|
+
return;
|
|
307
|
+
this.isPlaying = true;
|
|
308
|
+
this.isPausedByFocus = false;
|
|
309
|
+
// W3C: ao iniciar explicitamente via botão, hover e foco não devem pausar
|
|
310
|
+
this.isUserExplicitlyPlaying = true;
|
|
311
|
+
this.isRotating = true;
|
|
312
|
+
this.scheduleInterval();
|
|
313
|
+
this.brDidAutoPlayStart.emit();
|
|
314
|
+
this.brCarouselAutoplayStart.emit();
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Pausa a reprodução automática programaticamente.
|
|
318
|
+
*/
|
|
319
|
+
async pause() {
|
|
320
|
+
this.isPlaying = false;
|
|
321
|
+
this.isUserExplicitlyPlaying = false;
|
|
322
|
+
this.isRotating = false;
|
|
323
|
+
this.clearTimer();
|
|
324
|
+
this.brDidAutoPlayPause.emit();
|
|
325
|
+
this.brCarouselAutoplayPause.emit();
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Retorna `true` se a reprodução automática está ativa no momento.
|
|
329
|
+
*/
|
|
330
|
+
async getIsPlaying() {
|
|
331
|
+
return this.isPlaying;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Retorna os slides atribuídos ao slot do carrossel.
|
|
335
|
+
*
|
|
336
|
+
* Usa `slot.assignedElements()` quando o slot já está disponível (após `componentDidLoad`):
|
|
337
|
+
* a API retorna diretamente a lista interna do browser.
|
|
338
|
+
*
|
|
339
|
+
* Recorre a `querySelectorAll` apenas em `componentWillLoad`, quando o shadow DOM
|
|
340
|
+
* ainda não foi renderizado e `slotEl` é `null`.
|
|
341
|
+
*/
|
|
342
|
+
get slideElements() {
|
|
343
|
+
if (this.slotEl !== null) {
|
|
344
|
+
return this.slotEl.assignedElements();
|
|
345
|
+
}
|
|
346
|
+
return Array.from(this.el.children).filter((el) => el.tagName.toLowerCase() === 'br-carousel-page');
|
|
347
|
+
}
|
|
348
|
+
initAutoPlay() {
|
|
349
|
+
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
350
|
+
this.isPlaying = !prefersReducedMotion;
|
|
351
|
+
this.isRotating = this.isPlaying;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Retorna o ID único de um slide pelo índice (0-based).
|
|
355
|
+
* Prioriza o `customId` definido no próprio `br-carousel-page`, quando presente.
|
|
356
|
+
* Caso contrário, gera automaticamente no formato `{carousel-id}-slide-{n}`.
|
|
357
|
+
* Usado para vincular `controls-id` das tabs ao `id` do tabpanel correspondente.
|
|
358
|
+
*/
|
|
359
|
+
slideId(index) {
|
|
360
|
+
return this.pages[index]?.customId ?? `${this.customId}-slide-${index + 1}`;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Circular efetivo: ativo quando `isCircular=true` OU quando `autoPlay=true`.
|
|
364
|
+
* Usar este getter em toda a lógica interna em vez de `this.isCircular` diretamente.
|
|
365
|
+
*/
|
|
366
|
+
get effectiveCircular() {
|
|
367
|
+
return (this.circular ?? this.isCircular) || this.effectiveAutoplay;
|
|
368
|
+
}
|
|
369
|
+
get effectiveAutoplay() {
|
|
370
|
+
return this.autoplay ?? this.autoPlay;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Reposiciona todos os slides inativos com base no índice ativo.
|
|
374
|
+
* Slides após o ativo ficam à direita (100%), antes ficam à esquerda (-100%).
|
|
375
|
+
*/
|
|
376
|
+
positionSlides(activeIndex) {
|
|
377
|
+
this.pages.forEach((page, i) => {
|
|
378
|
+
if (i !== activeIndex) {
|
|
379
|
+
page.style.left = i > activeIndex ? '100%' : '-100%';
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
initPages() {
|
|
384
|
+
this.pages.forEach((page, i) => {
|
|
385
|
+
page.id || (page.id = this.slideId(i));
|
|
386
|
+
page.setLabel(`Slide ${i + 1} de ${this.pages.length}`);
|
|
387
|
+
page.setActive(i === this.activePage);
|
|
388
|
+
});
|
|
389
|
+
this.positionSlides(this.activePage);
|
|
390
|
+
this.syncStepIndicator();
|
|
391
|
+
}
|
|
392
|
+
goTo(index) {
|
|
393
|
+
const prev = this.activePage;
|
|
394
|
+
this.activePage = index;
|
|
395
|
+
this.positionSlides(index);
|
|
396
|
+
this.pages[prev]?.setActive(false);
|
|
397
|
+
this.pages[index]?.setActive(true);
|
|
398
|
+
const detail = { activePage: this.activePage + 1 };
|
|
399
|
+
this.brDidPageChange.emit(detail);
|
|
400
|
+
this.brCarouselPageChange.emit(detail);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Mantém o atributo `active` dos `br-step-item` filhos do `br-step` em sincronia
|
|
404
|
+
* com o slide ativo. Recebe o novo e o antigo índice para otimizar a atualização (removendo o atributo apenas do item anterior, em vez de iterar por todos os itens).
|
|
405
|
+
* Se `oldVal` for `null`, atualiza todos os itens (caso de inicialização ou mudança completa de slides).
|
|
406
|
+
*/
|
|
407
|
+
syncStepIndicator(newVal = this.activePage, oldVal = null) {
|
|
408
|
+
if (this.stepRef === null)
|
|
409
|
+
return;
|
|
410
|
+
const items = this.stepRef.children;
|
|
411
|
+
if (oldVal !== null) {
|
|
412
|
+
items[oldVal]?.removeAttribute('active');
|
|
413
|
+
items[newVal]?.setAttribute('active', 'true');
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
Array.from(items).forEach((item, i) => {
|
|
417
|
+
if (i === newVal) {
|
|
418
|
+
item.setAttribute('active', 'true');
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
item.removeAttribute('active');
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
getDataStage() {
|
|
427
|
+
const { navPosition, indicatorPosition } = this;
|
|
428
|
+
if (navPosition === 'inside' && indicatorPosition === 'inside')
|
|
429
|
+
return 'in';
|
|
430
|
+
if (navPosition === 'inside')
|
|
431
|
+
return 'hibw';
|
|
432
|
+
if (indicatorPosition === 'inside')
|
|
433
|
+
return 'hibh';
|
|
434
|
+
return 'out';
|
|
435
|
+
}
|
|
436
|
+
scheduleInterval() {
|
|
437
|
+
if (this.autoPlayTimer !== null) {
|
|
438
|
+
clearInterval(this.autoPlayTimer);
|
|
439
|
+
this.autoPlayTimer = null;
|
|
440
|
+
}
|
|
441
|
+
this.autoPlayTimer = setInterval(() => {
|
|
442
|
+
if (this.direction === 'left') {
|
|
443
|
+
this.previousPage();
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
this.nextPage();
|
|
447
|
+
}
|
|
448
|
+
}, this.interval);
|
|
449
|
+
}
|
|
450
|
+
clearTimer() {
|
|
451
|
+
if (this.autoPlayTimer !== null) {
|
|
452
|
+
clearInterval(this.autoPlayTimer);
|
|
453
|
+
this.autoPlayTimer = null;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
get isPrevDisabled() {
|
|
457
|
+
return !this.effectiveCircular && this.activePage === 0;
|
|
458
|
+
}
|
|
459
|
+
get isNextDisabled() {
|
|
460
|
+
return !this.effectiveCircular && this.activePage === this.pages.length - 1;
|
|
461
|
+
}
|
|
462
|
+
setupSwipeListeners() {
|
|
463
|
+
if (this.stageRef === null)
|
|
464
|
+
return;
|
|
465
|
+
this.carouselSwipe = new UniversalSwipe(this.stageRef, { direction: 'horizontal' });
|
|
466
|
+
this.carouselSwipe.on('SWIPE_LEFT', this.onSwipeLeft);
|
|
467
|
+
this.carouselSwipe.on('SWIPE_RIGHT', this.onSwipeRight);
|
|
468
|
+
}
|
|
469
|
+
cleanupSwipeListeners() {
|
|
470
|
+
if (this.carouselSwipe !== null) {
|
|
471
|
+
this.carouselSwipe.off('SWIPE_LEFT', this.onSwipeLeft);
|
|
472
|
+
this.carouselSwipe.off('SWIPE_RIGHT', this.onSwipeRight);
|
|
473
|
+
this.carouselSwipe.destroy();
|
|
474
|
+
this.carouselSwipe = null;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Calcula o índice alvo com base na tecla pressionada no modo tablist.
|
|
479
|
+
*/
|
|
480
|
+
resolveTablistKeyIndex(key) {
|
|
481
|
+
const total = this.pages.length;
|
|
482
|
+
switch (key) {
|
|
483
|
+
case 'ArrowLeft':
|
|
484
|
+
case 'ArrowUp':
|
|
485
|
+
if (this.activePage > 0)
|
|
486
|
+
return this.activePage - 1;
|
|
487
|
+
return this.effectiveCircular ? total - 1 : this.activePage;
|
|
488
|
+
case 'ArrowRight':
|
|
489
|
+
case 'ArrowDown':
|
|
490
|
+
if (this.activePage < total - 1)
|
|
491
|
+
return this.activePage + 1;
|
|
492
|
+
return this.effectiveCircular ? 0 : this.activePage;
|
|
493
|
+
case 'Home':
|
|
494
|
+
return 0;
|
|
495
|
+
case 'End':
|
|
496
|
+
return total - 1;
|
|
497
|
+
default:
|
|
498
|
+
return this.activePage;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Move o foco para o `br-step-item` de índice `index`.
|
|
503
|
+
*
|
|
504
|
+
* Em modo tablist, a semântica ARIA (`role="tab"`, `tabIndex`, `aria-selected`) é
|
|
505
|
+
* aplicada diretamente no host do `br-step-item` — não no botão interno, que fica
|
|
506
|
+
* inerte. Por isso o foco vai para o próprio host, e o ring visual é controlado
|
|
507
|
+
* via `:host(.role-tab:focus-visible)` no CSS do componente.
|
|
508
|
+
*/
|
|
509
|
+
focusStepItem(index) {
|
|
510
|
+
const targetItem = this.stepRef.children[index];
|
|
511
|
+
if (targetItem === null)
|
|
512
|
+
return;
|
|
513
|
+
requestAnimationFrame(() => {
|
|
514
|
+
if (typeof targetItem.focus === 'function')
|
|
515
|
+
targetItem.focus();
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
getCssClassMap() {
|
|
519
|
+
return {
|
|
520
|
+
'br-carousel': true,
|
|
521
|
+
'dark-mode': this.colorMode === 'dark',
|
|
522
|
+
inverted: this.colorMode === 'dark',
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
getHostStyle() {
|
|
526
|
+
return {
|
|
527
|
+
...(this.minHeight !== undefined ? { '--carousel-min-height': this.minHeight } : {}),
|
|
528
|
+
'--carousel-page-image-fit': this.imageFit,
|
|
529
|
+
...(this.height !== undefined ? { height: this.height } : {}),
|
|
530
|
+
...(this.maxWidth !== undefined ? { marginInline: 'auto', maxWidth: this.maxWidth } : {}),
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
renderPlayButton() {
|
|
534
|
+
const label = this.isPlaying
|
|
535
|
+
? 'Parar Apresentação Automática de Slides'
|
|
536
|
+
: 'Iniciar Apresentação Automática de Slides';
|
|
537
|
+
const icon = this.isPlaying ? 'pause' : 'play';
|
|
538
|
+
return (h("div", { part: "play-button", class: "carousel-play-button" }, h("br-button", { shape: "circle", emphasis: "tertiary", "aria-label": label, onClick: this.onPlayToggle }, h("br-icon", { iconName: `fa6-solid:${icon}`, width: "16", height: "16" }))));
|
|
539
|
+
}
|
|
540
|
+
renderNavButton(direction) {
|
|
541
|
+
const isPrev = direction === 'prev';
|
|
542
|
+
return (h("div", { part: isPrev ? 'nav-prev' : 'nav-next', class: "carousel-button" }, h("br-button", { class: isPrev ? 'carousel-btn-prev' : 'carousel-btn-next', shape: this.navPosition === 'outside' ? 'circle' : undefined, emphasis: "tertiary", "aria-label": isPrev ? 'Anterior' : 'Próximo', "aria-controls": `${this.customId}-stage`, disabled: isPrev ? this.isPrevDisabled : this.isNextDisabled, onClick: isPrev ? this.onPrevClick : this.onNextClick }, h("br-icon", { iconName: `fa6-solid:chevron-${isPrev ? 'left' : 'right'}`, width: "16", height: "16" }))));
|
|
543
|
+
}
|
|
544
|
+
renderIndicator() {
|
|
545
|
+
if (this.indicatorType === 'none')
|
|
546
|
+
return null;
|
|
547
|
+
return (h("div", { part: "indicator", class: "carousel-step" }, this.indicatorType === 'simple' && (h("br-step", { mode: "controller", "color-mode": this.colorMode, ref: (el) => (this.stepRef = el), onBrStepChange: this.onStepChange }, this.pages.map((page, i) => (h("br-step-item", { key: page.id || this.slideId(i), "aria-label": `Slide ${i + 1} de ${this.pages.length}`, "controls-id": this.slideId(i) }))))), this.indicatorType === 'textual' && (h("span", { "aria-live": this.isRotating ? 'off' : 'polite', "aria-atomic": "true", class: "carousel-page-text" }, this.activePage + 1, "/", this.pages.length))));
|
|
548
|
+
}
|
|
549
|
+
render() {
|
|
550
|
+
const dataStage = this.getDataStage();
|
|
551
|
+
return (h(Host, { key: 'f6fcc04e92f6abaa2d276dd03cb1144c1c9ccca9', style: this.getHostStyle() }, h("div", { key: '0c46599b2c345b332a3eea55eff524c66632f230', id: this.customId, part: "container", class: this.getCssClassMap(), "data-stage": dataStage, "data-mobile-nav": this.mobileNav ? '' : undefined, role: "region", "aria-label": this.ariaLabel, "aria-roledescription": "carousel", onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocusin: this.onFocusIn, onFocusout: this.onFocusOut }, this.effectiveAutoplay && this.renderPlayButton(), this.renderNavButton('prev'), h("div", { key: 'eb7e2972f7fb22c793427b687656fd3bc4ea8465', id: `${this.customId}-stage`, part: "stage", class: "carousel-stage", "aria-live": this.isRotating ? 'off' : 'polite', "aria-atomic": "false", ref: (el) => (this.stageRef = el) }, h("slot", { key: 'c096859d97085715846463c80aaf68eaa599d331' })), this.renderNavButton('next'), this.renderIndicator())));
|
|
552
|
+
}
|
|
553
|
+
get el() { return getElement(this); }
|
|
554
|
+
static get watchers() { return {
|
|
555
|
+
"activePage": [{
|
|
556
|
+
"onActivePageChange": 0
|
|
557
|
+
}]
|
|
558
|
+
}; }
|
|
559
|
+
};
|
|
560
|
+
Carousel.NAVIGATION_KEYS = new Set(['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End']);
|
|
561
|
+
Carousel.style = carouselCss();
|
|
562
|
+
|
|
563
|
+
export { Carousel as br_carousel };
|