@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,706 @@
|
|
|
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 { g as generateUniqueId } from './id-BkS6ujyf.js';
|
|
7
|
+
import { U as UniversalSwipe } from './swipe-Dmfk7eEe.js';
|
|
8
|
+
|
|
9
|
+
const wizardCss = () => `*,*::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)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}:host{--wizard-min-height:300px;--wizard-max-height:800px;display:flex;flex-direction:column;height:100%;margin-bottom:var(--spacing-scale-4x);max-height:var(--wizard-max-height);max-width:none;min-height:var(--wizard-min-height)}:host .wizard-progress{background-color:var(--background-alternative);display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr));grid-template-rows:none;min-height:164px;overflow-x:auto;overflow-y:hidden;padding-top:var(--spacing-scale-7x);width:100%}@media (max-width: 991px){:host .wizard-progress{max-height:100px;min-height:100px;overflow-y:hidden;padding-top:var(--spacing-scale-3x);position:relative;transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host .wizard-progress::after{background-color:rgba(0,0,0,0);bottom:2px;color:var(--interactive);content:"";display:block;font-family:"Font Awesome 5 Free",sans-serif;font-size:var(--switch-icon-size);font-weight:var(--font-weight-black);height:1em;left:50%;margin-left:-0.5em;position:absolute;top:unset;transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear;width:auto}}@media (max-width: 991px){:host[collapsed] .wizard-progress{max-height:64px;min-height:64px;overflow-y:hidden;padding-bottom:var(--spacing-scale-3x);padding-top:var(--spacing-scale-3x)}:host[collapsed] .wizard-progress::after{margin-top:var(--spacing-scale-4xh)}:host[collapsed] .wizard-form{height:auto}:host[collapsed] .wizard-panel-content{overflow-x:hidden;overflow-y:auto}}:host[vertical]{flex-direction:row}:host[vertical] .wizard-progress{flex:1;float:none;grid-template-columns:1fr;height:auto;max-width:260px;overflow-x:hidden;padding-top:0;position:relative;text-align:right}:host[vertical][scroll] .wizard-progress{overflow-y:auto}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar-track{background:var(--gray-10)}:host[vertical][scroll] .wizard-progress::-webkit-scrollbar-thumb{background:var(--gray-30)}:host[vertical][scroll] .wizard-progress:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host[vertical] .wizard-form{float:none;height:auto;width:calc(100% - 260px)}:host[vertical] .wizard-form .wizard-panel .wizard-panel-content{border-top:0}@media (max-width: 991px){:host[vertical] .wizard-progress{max-height:100%;max-width:110px}:host[vertical] .wizard-progress::after{height:1em;left:unset;margin-top:-0.5em;right:2px;top:50%;transform:rotate(-90deg);width:1em}:host[vertical] .wizard-form{height:auto;max-width:calc(100% - 110px);min-width:calc(100% - 110px);transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host[vertical] .wizard-panel{height:100%;max-height:100%}:host[vertical][collapsed] .wizard-progress{max-width:60px;padding-bottom:0;padding-top:0}:host[vertical][collapsed] .wizard-form{max-width:calc(100% - 60px);min-width:calc(100% - 60px)}}:host .wizard-form{display:flex;flex:1;height:auto;overflow:hidden;position:relative}:host .wizard-panel{display:none;flex-direction:column;flex-wrap:nowrap;height:auto;left:0;margin-bottom:0;opacity:0;position:static;top:0;visibility:hidden;width:100%}:host .wizard-panel[active]{display:flex;height:auto;left:0 !important;opacity:1;transition-delay:0s;transition-duration:.5s;transition-property:all;transition-timing-function:linear;visibility:visible}@keyframes slide-left{0%{opacity:0;transform:translateX(1%)}100%{opacity:1;transform:translateX(0)}}:host .wizard-panel-content{border-top:1px solid var(--border-color);flex-grow:1;height:auto;max-height:none;overflow-x:auto;overflow-y:auto;padding:var(--spacing-scale-base) var(--spacing-scale-2x)}:host .wizard-panel-content::-webkit-scrollbar{height:var(--spacing-scale-base);width:var(--spacing-scale-base)}:host .wizard-panel-content::-webkit-scrollbar-track{background:var(--gray-10)}:host .wizard-panel-content::-webkit-scrollbar-thumb{background:var(--gray-30)}:host .wizard-panel-content:hover::-webkit-scrollbar-thumb{background:var(--gray-40)}:host .wizard-panel-content:focus,:host .wizard-panel-content:focus-visible,:host .wizard-panel-content.focus-visible{border-color:var(--focus) !important;box-shadow:0 0 0 var(--surface-width-md) var(--focus);outline:none}:host .wizard-panel-content>:last-child{margin-bottom:0}:host .wizard-panel-btn{align-self:flex-end;background-color:var(--background-alternative);border-top:1px solid var(--border-color);height:fit-content;margin-top:1px;padding:var(--spacing-scale-2x) 1.5%;width:100%}:host .wizard-btn-next,:host .wizard-btn,:host .wizard-btn-prev{float:right;margin-left:var(--spacing-scale-2x)}:host .wizard-btn-canc{float:left}@media (max-width: 991px){:host .wizard-form{height:auto}:host .wizard-panel{border-top:0;display:none;flex-wrap:nowrap;margin-bottom:0;max-height:none}:host .wizard-panel-content{height:auto;max-height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--spacing-scale-half) var(--spacing-scale-base);transition-delay:0s;transition-duration:.25s;transition-property:all;transition-timing-function:linear}:host .wizard-panel-btn{align-items:flex-end;background-color:var(--background-alternative);display:flex;flex-wrap:wrap;height:fit-content;justify-content:center;padding:0 !important;position:static;width:100%}:host .wizard-btn-canc,:host .wizard-btn-next,:host .wizard-btn-prev,:host .wizard-btn{float:none;margin:var(--spacing-scale-base) 5%;width:90%}:host .wizard-btn-next,:host .wizard-btn{order:1}}:host.inverted,:host.dark-mode{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host.inverted .br-button.primary,:host.inverted .br-button[primary],:host.dark-mode .br-button.primary,:host.dark-mode .br-button[primary]{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--background-dark-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);background-color:var(--interactive-dark);color:var(--background-dark)}:host.inverted .br-button.secondary,:host.inverted .br-button[secondary],:host.dark-mode .br-button.secondary,:host.dark-mode .br-button[secondary]{background-color:var(--background-dark)}:host.inverted .wizard-progress,:host.dark-mode .wizard-progress{background-color:rgba(0,0,0,0)}:host.inverted .wizard-panel .wizard-panel-btn,:host.dark-mode .wizard-panel .wizard-panel-btn{background-color:rgba(0,0,0,0)}:host br-step-item[active]{--step-label-font-weight:var(--font-weight-semi-bold);--step-label-color:var(--active)}:host br-step-item::part(label){display:block;line-height:1em;text-align:center}:host .wizard-progress{place-content:center center;height:auto;padding-top:0}@media (max-width: 991px){:host .wizard-progress br-step-item::part(label){font-size:var(--font-size-scale-down-02, 9.716px)}}:host([collapsed]) br-step-item::part(label){display:none}@media (max-width: 991px){:host([collapsed]) br-step-item::part(label){display:none}:host([collapsed]) .wizard-progress{max-height:64px;min-height:64px;overflow-y:hidden;padding-bottom:var(--spacing-scale-3x);padding-top:var(--spacing-scale-3x)}:host([collapsed]) .wizard-progress::after{margin-top:var(--spacing-scale-4xh)}}:host([vertical]){flex-direction:row}:host([vertical]) .wizard-progress{flex:1;float:none;grid-template-columns:1fr;height:auto;max-width:260px;overflow-x:hidden;padding-top:0;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}@media (max-width: 991px){:host([vertical]) .wizard-progress{max-height:100%;max-width:110px}:host([vertical]) .wizard-progress::after{height:1em;left:unset;margin-top:-0.5em;right:2px;top:50%;transform:rotate(-90deg);width:1em}:host([vertical]) .wizard-form{max-width:calc(100% - 110px);min-width:calc(100% - 110px)}:host([vertical])[collapsed] .wizard-progress{max-width:60px;padding-bottom:0;padding-top:0}}:host(.dark-mode){--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}:host(.dark-mode) .br-button.primary,:host(.dark-mode) .br-button[primary]{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--background-dark-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);background-color:var(--interactive-dark);color:var(--background-dark)}:host(.dark-mode) .br-button.secondary,:host(.dark-mode) .br-button[secondary]{background-color:var(--background-dark)}`;
|
|
10
|
+
|
|
11
|
+
const Wizard = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
registerInstance(this, hostRef);
|
|
14
|
+
this.brWizardStepChange = createEvent(this, "brWizardStepChange", 7);
|
|
15
|
+
this.brWizardBeforeStepChange = createEvent(this, "brWizardBeforeStepChange", 7);
|
|
16
|
+
this.brWizardComplete = createEvent(this, "brWizardComplete", 7);
|
|
17
|
+
this.brWizardCancel = createEvent(this, "brWizardCancel", 7);
|
|
18
|
+
this.brWizardNavigationBlocked = createEvent(this, "brWizardNavigationBlocked", 7);
|
|
19
|
+
/**
|
|
20
|
+
* Mensagem de status para leitores de tela (aria-live)
|
|
21
|
+
*/
|
|
22
|
+
this.ariaLiveMessage = '';
|
|
23
|
+
/**
|
|
24
|
+
* Estado collapsed para recolher/expandir barra de progresso (mobile)
|
|
25
|
+
*/
|
|
26
|
+
this.collapsed = false;
|
|
27
|
+
/**
|
|
28
|
+
* Etapa atual sendo exibida.
|
|
29
|
+
* Gerenciado internamente pelo componente.
|
|
30
|
+
*/
|
|
31
|
+
this.currentStep = 1;
|
|
32
|
+
/** Estado mobile para detecção responsiva */
|
|
33
|
+
this.isMobile = false;
|
|
34
|
+
/**
|
|
35
|
+
* Lista de painéis filhos (br-wizard-panel).
|
|
36
|
+
* Descobertos automaticamente via slot.
|
|
37
|
+
*/
|
|
38
|
+
this.panels = [];
|
|
39
|
+
/** Etapa atual (numeração 1-indexada). Reflete para atributo step. */
|
|
40
|
+
this.step = 1;
|
|
41
|
+
/**
|
|
42
|
+
* Índice da etapa inicial do wizard.
|
|
43
|
+
* Define qual etapa será exibida ao carregar o componente.
|
|
44
|
+
* A numeração começa em 1 (primeira etapa = 1, segunda = 2, etc).
|
|
45
|
+
* @deprecated Use `initialIndex`.
|
|
46
|
+
*/
|
|
47
|
+
this.initialStep = 1;
|
|
48
|
+
/**
|
|
49
|
+
* Orientação visual do wizard.
|
|
50
|
+
* Define se os indicadores de progresso serão exibidos horizontalmente ou verticalmente.
|
|
51
|
+
*/
|
|
52
|
+
this.orientation = 'horizontal';
|
|
53
|
+
/**
|
|
54
|
+
* Tipo de progressão entre etapas.
|
|
55
|
+
* - `linear`: O usuário deve completar cada etapa sequencialmente. Não é possível pular etapas futuras.
|
|
56
|
+
* - `nonlinear`: O usuário pode navegar livremente entre qualquer etapa.
|
|
57
|
+
*/
|
|
58
|
+
this.progressionType = 'nonlinear';
|
|
59
|
+
/**
|
|
60
|
+
* Identificador único do componente.
|
|
61
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
62
|
+
*
|
|
63
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
this.customId = generateUniqueId();
|
|
67
|
+
/**
|
|
68
|
+
* Referência ao componente br-step.
|
|
69
|
+
*/
|
|
70
|
+
this.stepRef = null;
|
|
71
|
+
/**
|
|
72
|
+
* Flag para evitar loop quando sincronizamos programaticamente com br-step.
|
|
73
|
+
*/
|
|
74
|
+
this.isSyncingWithStep = false;
|
|
75
|
+
/**
|
|
76
|
+
* Instância do Swipe para gestos mobile na barra de progresso.
|
|
77
|
+
*/
|
|
78
|
+
this.progressBarSwipe = null;
|
|
79
|
+
/**
|
|
80
|
+
* Referência ao elemento DOM da barra de progresso.
|
|
81
|
+
*/
|
|
82
|
+
this.progressBarRef = null;
|
|
83
|
+
/**
|
|
84
|
+
* Referência ao elemento DOM do formulário/painel ativo.
|
|
85
|
+
*/
|
|
86
|
+
this.formRef = null;
|
|
87
|
+
/**
|
|
88
|
+
* Timer para limpar mensagens aria-live.
|
|
89
|
+
*/
|
|
90
|
+
this.ariaLiveTimeout = null;
|
|
91
|
+
/**
|
|
92
|
+
* Tempo de espera para limpar mensagens aria-live (em ms).
|
|
93
|
+
*/
|
|
94
|
+
this.ARIA_LIVE_CLEANUP_DELAY = 5000;
|
|
95
|
+
/**
|
|
96
|
+
* Seletor de elementos focáveis dentro dos painéis.
|
|
97
|
+
*/
|
|
98
|
+
this.FOCUSABLE_SELECTOR = 'br-button, button, [href], br-item, br-input, input, br-select, select, br-textarea, textarea, [tabindex]:not([tabindex="-1"])';
|
|
99
|
+
/**
|
|
100
|
+
* Handler de resize da janela.
|
|
101
|
+
* Alterna entre modos mobile/desktop e configura/limpa gestos swipe.
|
|
102
|
+
*/
|
|
103
|
+
this.handleResize = () => {
|
|
104
|
+
const wasMobile = this.isMobile;
|
|
105
|
+
this.isMobile = window.innerWidth <= 992;
|
|
106
|
+
if (this.isMobile && !wasMobile) {
|
|
107
|
+
this.collapsed = true;
|
|
108
|
+
this.setupSwipeListeners();
|
|
109
|
+
}
|
|
110
|
+
else if (!this.isMobile && wasMobile) {
|
|
111
|
+
this.cleanupSwipeListeners();
|
|
112
|
+
this.collapsed = false;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Handler de toque no formulário.
|
|
117
|
+
* Recolhe automaticamente a barra de progresso.
|
|
118
|
+
*/
|
|
119
|
+
this.handleFormTouchStart = () => {
|
|
120
|
+
this.collapseSteps();
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Handler do botão "Avançar" ou "Concluir".
|
|
124
|
+
* Se for a última etapa, valida e emite evento de conclusão.
|
|
125
|
+
* Caso contrário, avança para a próxima etapa.
|
|
126
|
+
*/
|
|
127
|
+
this.handleNext = async () => {
|
|
128
|
+
if (this.currentStep === this.panels.length) {
|
|
129
|
+
// Última etapa: validar antes de completar
|
|
130
|
+
const eventResult = this.brWizardBeforeStepChange.emit(this.currentStep);
|
|
131
|
+
// Se preventDefault() foi chamado, bloqueia conclusão
|
|
132
|
+
if (!eventResult.defaultPrevented) {
|
|
133
|
+
this.brWizardComplete.emit();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
await this.nextStep();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Handler do botão "Voltar".
|
|
142
|
+
* Navega para a etapa anterior.
|
|
143
|
+
*/
|
|
144
|
+
this.handlePrevious = async () => {
|
|
145
|
+
await this.previousStep();
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Handler do botão "Cancelar".
|
|
149
|
+
* Emite evento de cancelamento do wizard.
|
|
150
|
+
*/
|
|
151
|
+
this.handleCancel = () => {
|
|
152
|
+
this.brWizardCancel.emit();
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Observa mudanças no tipo de progressão.
|
|
157
|
+
* Atualiza a navegação dos painéis quando muda entre linear/nonlinear.
|
|
158
|
+
*/
|
|
159
|
+
handleProgressionTypeChange() {
|
|
160
|
+
this.updatePanels();
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Observa mudanças na etapa inicial.
|
|
164
|
+
* Reinicializa o wizard quando a prop initialStep é alterada externamente.
|
|
165
|
+
*/
|
|
166
|
+
async handleInitialStepChange() {
|
|
167
|
+
this.setInitialStep();
|
|
168
|
+
await this.syncWithBrStep();
|
|
169
|
+
this.updatePanels();
|
|
170
|
+
}
|
|
171
|
+
async handleInitialIndexChange() {
|
|
172
|
+
this.setInitialStep();
|
|
173
|
+
await this.syncWithBrStep();
|
|
174
|
+
this.updatePanels();
|
|
175
|
+
}
|
|
176
|
+
async handleCurrentIndexChange(newIndex) {
|
|
177
|
+
if (newIndex !== undefined && newIndex + 1 !== this.currentStep)
|
|
178
|
+
await this.navigateToStep(newIndex + 1, true);
|
|
179
|
+
}
|
|
180
|
+
async handleStepChangeProp(newStep) {
|
|
181
|
+
if (newStep !== undefined && newStep !== this.currentStep) {
|
|
182
|
+
await this.navigateToStep(newStep, true);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Observa mudanças na etapa atual (fonte única de verdade).
|
|
187
|
+
* Sincroniza com br-step, atualiza painéis, anuncia mudança e move foco.
|
|
188
|
+
* @param newStep - Nova etapa
|
|
189
|
+
* @param oldStep - Etapa anterior
|
|
190
|
+
*/
|
|
191
|
+
async handleCurrentStepChange(newStep, oldStep) {
|
|
192
|
+
if (newStep !== oldStep) {
|
|
193
|
+
this.step = newStep;
|
|
194
|
+
this.el.setAttribute('step', String(newStep));
|
|
195
|
+
if (this.currentIndex !== undefined && this.currentIndex !== newStep - 1)
|
|
196
|
+
this.currentIndex = newStep - 1;
|
|
197
|
+
await this.syncWithBrStep();
|
|
198
|
+
this.updatePanels();
|
|
199
|
+
this.announceStepChange(newStep, oldStep);
|
|
200
|
+
this.setFocusOnActivePanel();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Lifecycle: limpa listeners quando componente é removido.
|
|
205
|
+
*/
|
|
206
|
+
disconnectedCallback() {
|
|
207
|
+
this.cleanupMobileDetection();
|
|
208
|
+
this.cleanupSwipeListeners();
|
|
209
|
+
this.clearAriaLiveTimeout();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Lifecycle: inicializa painéis antes da renderização.
|
|
213
|
+
*/
|
|
214
|
+
componentWillLoad() {
|
|
215
|
+
this.panels = Array.from(this.el.querySelectorAll('br-wizard-panel'));
|
|
216
|
+
this.setInitialStep();
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Lifecycle: carrega painéis e configura estado inicial.
|
|
220
|
+
* Sincroniza com br-step, atualiza painéis e configura detecção mobile.
|
|
221
|
+
*/
|
|
222
|
+
async componentDidLoad() {
|
|
223
|
+
const slot = this.el.shadowRoot?.querySelector('slot');
|
|
224
|
+
if (slot !== null && typeof slot !== 'undefined') {
|
|
225
|
+
const assignedElements = slot.assignedElements();
|
|
226
|
+
const slotPanels = assignedElements.filter((el) => el.tagName.toLowerCase() === 'br-wizard-panel');
|
|
227
|
+
if (slotPanels.length > 0) {
|
|
228
|
+
this.panels = slotPanels;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
await this.syncWithBrStep();
|
|
232
|
+
this.updatePanels();
|
|
233
|
+
this.setupMobileDetection();
|
|
234
|
+
if (this.isMobile) {
|
|
235
|
+
this.collapsed = true;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Detecta quando o slot muda (painéis adicionados/removidos dinamicamente).
|
|
240
|
+
* Redescobre os painéis e ressincroniza o estado.
|
|
241
|
+
* @param event - Evento slotchange
|
|
242
|
+
*/
|
|
243
|
+
async handleSlotChange(event) {
|
|
244
|
+
const slot = event.target;
|
|
245
|
+
this.discoverPanelsFromSlot(slot);
|
|
246
|
+
await this.syncWithBrStep();
|
|
247
|
+
this.updatePanels();
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Detecta quando o br-step muda de etapa ativa.
|
|
251
|
+
* Valida e sincroniza a navegação com o componente interno br-step.
|
|
252
|
+
* @param event - Evento customizado do br-step
|
|
253
|
+
*/
|
|
254
|
+
async handleStepChange(event) {
|
|
255
|
+
if (this.isSyncingWithStep) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
const requestedStep = event.detail.activeStep + 1;
|
|
259
|
+
const success = await this.navigateToStep(requestedStep);
|
|
260
|
+
if (!success) {
|
|
261
|
+
event.stopPropagation();
|
|
262
|
+
await this.syncWithBrStep();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Avança para a próxima etapa.
|
|
267
|
+
* Executa validação via evento `brWizardBeforeStepChange` antes de navegar.
|
|
268
|
+
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
269
|
+
*/
|
|
270
|
+
async nextStep() {
|
|
271
|
+
return await this.navigateToStep(this.currentStep + 1);
|
|
272
|
+
}
|
|
273
|
+
/** Avança para a próxima etapa. */
|
|
274
|
+
async next() {
|
|
275
|
+
return await this.nextStep();
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Volta para a etapa anterior.
|
|
279
|
+
* Não executa validação ao retornar.
|
|
280
|
+
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
281
|
+
*/
|
|
282
|
+
async previousStep() {
|
|
283
|
+
return await this.navigateToStep(this.currentStep - 1);
|
|
284
|
+
}
|
|
285
|
+
/** Retorna para a etapa anterior. */
|
|
286
|
+
async previous() {
|
|
287
|
+
return await this.previousStep();
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Navega para uma etapa específica.
|
|
291
|
+
* Executa validação se estiver avançando (etapa alvo > etapa atual).
|
|
292
|
+
* @param stepNumber - Número da etapa de destino (numeração começa em 1)
|
|
293
|
+
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
294
|
+
*/
|
|
295
|
+
async goToStep(stepNumber) {
|
|
296
|
+
return await this.navigateToStep(stepNumber);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Retorna à primeira etapa do wizard.
|
|
300
|
+
* Não executa validação (útil para reiniciar o fluxo).
|
|
301
|
+
* @returns Promise<void>
|
|
302
|
+
*/
|
|
303
|
+
async reset() {
|
|
304
|
+
await this.navigateToStep(1, true);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Retorna o elemento HTML do painel ativo no momento.
|
|
308
|
+
* @returns Promise<HTMLElement | null>
|
|
309
|
+
*/
|
|
310
|
+
async getCurrentStep() {
|
|
311
|
+
return this.panels[this.currentStep - 1] || null;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Retorna todos os painéis do wizard.
|
|
315
|
+
* @returns Promise<HTMLElement[]>
|
|
316
|
+
*/
|
|
317
|
+
async getAllSteps() {
|
|
318
|
+
return [...this.panels];
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Retorna um painel específico pelo índice.
|
|
322
|
+
* @param stepNumber - Número da etapa (numeração começa em 1)
|
|
323
|
+
* @returns Promise<HTMLElement | null>
|
|
324
|
+
*/
|
|
325
|
+
async getStepByIndex(stepNumber) {
|
|
326
|
+
return this.panels[stepNumber - 1] || null;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Retorna o índice (número) da etapa atual.
|
|
330
|
+
* A numeração começa em 1 (primeira etapa = 1, segunda = 2, etc).
|
|
331
|
+
* @returns Promise<number>
|
|
332
|
+
*/
|
|
333
|
+
async getCurrentStepIndex() {
|
|
334
|
+
return this.currentStep;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Retorna o número total de etapas do wizard.
|
|
338
|
+
* @returns Promise<number>
|
|
339
|
+
*/
|
|
340
|
+
async getTotalSteps() {
|
|
341
|
+
return this.panels.length;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Método privado central que gerencia toda a navegação com validação.
|
|
345
|
+
*
|
|
346
|
+
* Comportamento unificado para linear e nonlinear:
|
|
347
|
+
* - Linear: Valida ao avançar, não permite pular steps
|
|
348
|
+
* - Nonlinear: Valida ao avançar, permite pular steps livremente
|
|
349
|
+
*
|
|
350
|
+
* @param targetStep - Número da etapa de destino (numeração começa em 1)
|
|
351
|
+
* @param skipValidation - Se true, pula validação (útil para reset/programático)
|
|
352
|
+
* @returns Promise<boolean> - true se navegou com sucesso, false se bloqueado
|
|
353
|
+
*/
|
|
354
|
+
async navigateToStep(targetStep, skipValidation = false) {
|
|
355
|
+
/**
|
|
356
|
+
* VALIDAÇÕES BÁSICAS
|
|
357
|
+
* 1. Verifica se targetStep está dentro dos limites válidos
|
|
358
|
+
* 2. Se já estamos na etapa alvo, retorna sucesso imediatamente
|
|
359
|
+
*/
|
|
360
|
+
if (targetStep < 1 || targetStep > this.panels.length) {
|
|
361
|
+
return false;
|
|
362
|
+
}
|
|
363
|
+
if (targetStep === this.currentStep) {
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* MODO LINEAR: RESTRIÇÕES
|
|
368
|
+
* No modo linear, não é permitido pular para etapas futuras não visitadas.
|
|
369
|
+
* É possível voltar, mas não avançar além da próxima etapa sequencial.
|
|
370
|
+
*/
|
|
371
|
+
if (this.progressionType === 'linear') {
|
|
372
|
+
if (targetStep > this.currentStep + 1) {
|
|
373
|
+
const message = `Não é possível pular etapas. Complete a etapa ${this.currentStep + 1} antes de avançar.`;
|
|
374
|
+
this.announceToScreenReader(message);
|
|
375
|
+
this.brWizardNavigationBlocked.emit('linear-progression');
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* VALIDAÇÃO CUSTOMIZADA
|
|
381
|
+
* Emite evento brWizardBeforeStepChange APENAS se:
|
|
382
|
+
* 1. Não estamos pulando validação (skipValidation=false)
|
|
383
|
+
* 2. Estamos AVANÇANDO (targetStep > currentStep)
|
|
384
|
+
*
|
|
385
|
+
* Observações:
|
|
386
|
+
* - Voltar não precisa validar
|
|
387
|
+
* - Validação se aplica a ambos os modos (linear e nonlinear)
|
|
388
|
+
*/
|
|
389
|
+
const shouldValidate = !skipValidation && targetStep > this.currentStep;
|
|
390
|
+
if (shouldValidate) {
|
|
391
|
+
const eventResult = this.brWizardBeforeStepChange.emit(targetStep);
|
|
392
|
+
/**
|
|
393
|
+
* Se preventDefault() foi chamado no listener do evento,
|
|
394
|
+
* bloqueia a navegação e retorna false
|
|
395
|
+
*/
|
|
396
|
+
if (eventResult.defaultPrevented) {
|
|
397
|
+
const message = 'Não é possível avançar. Verifique os campos obrigatórios da etapa atual.';
|
|
398
|
+
this.announceToScreenReader(message);
|
|
399
|
+
this.brWizardNavigationBlocked.emit('validation-failed');
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* EXECUTA NAVEGAÇÃO
|
|
405
|
+
* Atualiza o estado interno e emite evento de confirmação
|
|
406
|
+
*/
|
|
407
|
+
this.currentStep = targetStep;
|
|
408
|
+
this.brWizardStepChange.emit(this.currentStep);
|
|
409
|
+
return true;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Sincroniza estado do wizard com o br-step.
|
|
413
|
+
*
|
|
414
|
+
* O br-step já gerencia completamente os atributos 'active' via componentShouldUpdate
|
|
415
|
+
* e requestAnimationFrame, então apenas chamamos os métodos de navegação dele.
|
|
416
|
+
*/
|
|
417
|
+
async syncWithBrStep() {
|
|
418
|
+
if (this.stepRef === null)
|
|
419
|
+
return;
|
|
420
|
+
if (typeof this.stepRef.GetActiveStep !== 'function') {
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
this.isSyncingWithStep = true;
|
|
424
|
+
try {
|
|
425
|
+
const targetStepIndex = this.currentStep - 1;
|
|
426
|
+
const currentActiveStep = await this.stepRef.GetActiveStep();
|
|
427
|
+
if (currentActiveStep !== targetStepIndex) {
|
|
428
|
+
const diff = targetStepIndex - currentActiveStep;
|
|
429
|
+
if (diff > 0) {
|
|
430
|
+
for (let i = 0; i < diff; i++) {
|
|
431
|
+
await this.stepRef.ProceedToNextStep();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
for (let i = 0; i < Math.abs(diff); i++) {
|
|
436
|
+
await this.stepRef.BackToPreviousStep();
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
finally {
|
|
442
|
+
this.isSyncingWithStep = false;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Descobre painéis filhos usando assigned elements do slot.
|
|
447
|
+
* @param slot - Elemento slot do shadow DOM
|
|
448
|
+
*/
|
|
449
|
+
discoverPanelsFromSlot(slot) {
|
|
450
|
+
const assignedElements = slot.assignedElements();
|
|
451
|
+
this.panels = assignedElements.filter((el) => el.tagName.toLowerCase() === 'br-wizard-panel');
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Atualiza estados de todos os painéis.
|
|
455
|
+
* Define o índice e o estado ativo de cada painel.
|
|
456
|
+
*/
|
|
457
|
+
async updatePanels() {
|
|
458
|
+
for (let idx = 0; idx < this.panels.length; idx++) {
|
|
459
|
+
const panel = this.panels[idx];
|
|
460
|
+
const stepNumber = idx + 1;
|
|
461
|
+
const isActive = stepNumber === this.currentStep;
|
|
462
|
+
await panel.setIndex(stepNumber);
|
|
463
|
+
await panel.setActive(isActive);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Define etapa inicial baseada na prop initialStep.
|
|
468
|
+
* Garante que o valor esteja dentro dos limites válidos.
|
|
469
|
+
*/
|
|
470
|
+
setInitialStep() {
|
|
471
|
+
const initialStep = this.initialIndex === undefined ? this.initialStep : this.initialIndex + 1;
|
|
472
|
+
this.currentStep = Math.max(1, Math.min(initialStep, this.panels.length));
|
|
473
|
+
this.step = this.currentStep;
|
|
474
|
+
this.el.setAttribute('step', String(this.currentStep));
|
|
475
|
+
if (this.currentIndex !== undefined)
|
|
476
|
+
this.currentIndex = this.currentStep - 1;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Anuncia mensagem para leitores de tela via aria-live.
|
|
480
|
+
* Limpa automaticamente após 5 segundos para evitar poluição.
|
|
481
|
+
* @param message - Mensagem a ser anunciada
|
|
482
|
+
*/
|
|
483
|
+
announceToScreenReader(message) {
|
|
484
|
+
this.ariaLiveMessage = '';
|
|
485
|
+
requestAnimationFrame(() => {
|
|
486
|
+
this.ariaLiveMessage = message;
|
|
487
|
+
this.clearAriaLiveTimeout();
|
|
488
|
+
this.ariaLiveTimeout = window.setTimeout(() => {
|
|
489
|
+
this.ariaLiveMessage = '';
|
|
490
|
+
}, this.ARIA_LIVE_CLEANUP_DELAY);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Anuncia mudança de etapa para leitores de tela.
|
|
495
|
+
* Informa direção da navegação e progresso atual.
|
|
496
|
+
* @param newStep - Nova etapa
|
|
497
|
+
* @param oldStep - Etapa anterior
|
|
498
|
+
*/
|
|
499
|
+
announceStepChange(newStep, oldStep) {
|
|
500
|
+
const totalSteps = this.panels.length;
|
|
501
|
+
let direction = '';
|
|
502
|
+
if (newStep > oldStep) {
|
|
503
|
+
direction = 'Avançando para';
|
|
504
|
+
}
|
|
505
|
+
else if (newStep < oldStep) {
|
|
506
|
+
direction = 'Retornando para';
|
|
507
|
+
}
|
|
508
|
+
const message = `${direction}, etapa ${newStep} de ${totalSteps}`;
|
|
509
|
+
this.announceToScreenReader(message);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Limpa o timeout de mensagens aria-live.
|
|
513
|
+
*/
|
|
514
|
+
clearAriaLiveTimeout() {
|
|
515
|
+
if (this.ariaLiveTimeout !== null) {
|
|
516
|
+
clearTimeout(this.ariaLiveTimeout);
|
|
517
|
+
this.ariaLiveTimeout = null;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Move foco para o primeiro elemento do painel ativo.
|
|
522
|
+
*
|
|
523
|
+
*/
|
|
524
|
+
setFocusOnActivePanel() {
|
|
525
|
+
requestAnimationFrame(() => {
|
|
526
|
+
const activePanel = this.panels[this.currentStep - 1];
|
|
527
|
+
if (typeof activePanel === 'undefined')
|
|
528
|
+
return;
|
|
529
|
+
const panelElement = activePanel.shadowRoot?.querySelector('.wizard-panel-content');
|
|
530
|
+
if (typeof panelElement === 'undefined' || panelElement === null)
|
|
531
|
+
return;
|
|
532
|
+
const focusableElements = panelElement.querySelectorAll(this.FOCUSABLE_SELECTOR);
|
|
533
|
+
if (focusableElements.length > 0) {
|
|
534
|
+
focusableElements[0].focus();
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Configura detecção de viewport mobile.
|
|
540
|
+
* Ativa listeners de resize e configura gestos swipe.
|
|
541
|
+
*/
|
|
542
|
+
setupMobileDetection() {
|
|
543
|
+
this.isMobile = window.innerWidth <= 992;
|
|
544
|
+
window.addEventListener('resize', this.handleResize);
|
|
545
|
+
if (this.isMobile) {
|
|
546
|
+
if (this.orientation === 'vertical') {
|
|
547
|
+
this.collapsed = true;
|
|
548
|
+
}
|
|
549
|
+
this.setupSwipeListeners();
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Remove listeners de detecção mobile.
|
|
554
|
+
*/
|
|
555
|
+
cleanupMobileDetection() {
|
|
556
|
+
window.removeEventListener('resize', this.handleResize);
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Configura gestos swipe para mobile.
|
|
560
|
+
*/
|
|
561
|
+
setupSwipeListeners() {
|
|
562
|
+
if (!this.isMobile)
|
|
563
|
+
return;
|
|
564
|
+
requestAnimationFrame(() => {
|
|
565
|
+
this.progressBarRef = this.el.shadowRoot?.querySelector('.wizard-progress') || null;
|
|
566
|
+
this.formRef = this.el.shadowRoot?.querySelector('.wizard-form') || null;
|
|
567
|
+
if (this.progressBarRef !== null) {
|
|
568
|
+
const direction = this.orientation === 'horizontal' ? 'vertical' : 'horizontal';
|
|
569
|
+
this.progressBarSwipe = new UniversalSwipe(this.progressBarRef, { direction });
|
|
570
|
+
if (this.orientation === 'horizontal') {
|
|
571
|
+
this.progressBarSwipe.on('SWIPE_DOWN', () => this.expandSteps());
|
|
572
|
+
this.progressBarSwipe.on('SWIPE_UP', () => this.collapseSteps());
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
this.progressBarSwipe.on('SWIPE_RIGHT', () => this.expandSteps());
|
|
576
|
+
this.progressBarSwipe.on('SWIPE_LEFT', () => this.collapseSteps());
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (this.formRef !== null) {
|
|
580
|
+
this.formRef.addEventListener('touchstart', this.handleFormTouchStart, { passive: true });
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Remove listeners de gestos swipe.
|
|
586
|
+
*/
|
|
587
|
+
cleanupSwipeListeners() {
|
|
588
|
+
if (this.progressBarSwipe !== null) {
|
|
589
|
+
this.progressBarSwipe.off('SWIPE_DOWN', this.expandSteps);
|
|
590
|
+
this.progressBarSwipe.off('SWIPE_UP', this.collapseSteps);
|
|
591
|
+
this.progressBarSwipe.off('SWIPE_RIGHT', this.expandSteps);
|
|
592
|
+
this.progressBarSwipe.off('SWIPE_LEFT', this.collapseSteps);
|
|
593
|
+
this.progressBarSwipe.destroy();
|
|
594
|
+
this.progressBarSwipe = null;
|
|
595
|
+
}
|
|
596
|
+
if (this.formRef !== null) {
|
|
597
|
+
this.formRef.removeEventListener('touchstart', this.handleFormTouchStart);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Recolhe a barra de progresso (mobile).
|
|
602
|
+
* Adiciona o atributo 'collapsed' ao host.
|
|
603
|
+
*/
|
|
604
|
+
collapseSteps() {
|
|
605
|
+
if (this.isMobile) {
|
|
606
|
+
this.collapsed = true;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Expande a barra de progresso (mobile).
|
|
611
|
+
* Remove o atributo 'collapsed' do host.
|
|
612
|
+
*/
|
|
613
|
+
expandSteps() {
|
|
614
|
+
if (this.isMobile) {
|
|
615
|
+
this.collapsed = false;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Retorna classes CSS do container principal.
|
|
620
|
+
* @returns CssClassMap - Mapa de classes CSS
|
|
621
|
+
*/
|
|
622
|
+
getHostClassMap() {
|
|
623
|
+
return {
|
|
624
|
+
'br-wizard': true,
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Renderiza indicadores de progresso usando br-step.
|
|
629
|
+
* @returns JSX.Element | null - Elemento de progresso ou null se não houver painéis
|
|
630
|
+
*/
|
|
631
|
+
renderProgress() {
|
|
632
|
+
if (this.panels.length === 0) {
|
|
633
|
+
return null;
|
|
634
|
+
}
|
|
635
|
+
return (h("div", { class: "wizard-progress", part: "progress" }, h("br-step", { ref: (el) => (this.stepRef = el), "initial-step": String(this.currentStep - 1), layout: this.orientation, "label-position": this.orientation === 'vertical' ? 'bottom' : 'bottom', "progression-type": this.progressionType, mode: "step" }, this.panels.map((panel, index) => {
|
|
636
|
+
const label = panel.getAttribute('label') || '';
|
|
637
|
+
return (h("br-step-item", { key: panel.id || panel.getAttribute('custom-id') || `wizard-panel-${index}`, label: label }));
|
|
638
|
+
}))));
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Renderiza conteúdo dos painéis via slot.
|
|
642
|
+
* @returns JSX.Element - Container com slot dos painéis
|
|
643
|
+
*/
|
|
644
|
+
renderPanelContent() {
|
|
645
|
+
return (h("div", { class: "wizard-panel-content", part: "content" }, h("slot", null)));
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Renderiza botões de navegação do wizard.
|
|
649
|
+
* Adapta-se ao contexto: primeira etapa, última etapa, mobile/desktop.
|
|
650
|
+
* @returns JSX.Element - Container com botões de navegação
|
|
651
|
+
*/
|
|
652
|
+
renderPanelButtons() {
|
|
653
|
+
const isFirst = this.currentStep === 1;
|
|
654
|
+
const isLast = this.currentStep === this.panels.length;
|
|
655
|
+
const buttonShape = this.isMobile ? 'block' : undefined;
|
|
656
|
+
return (h("div", { class: "wizard-panel-btn", part: "buttons" }, h("br-button", { class: "wizard-btn-canc", type: "button", shape: buttonShape, emphasis: "tertiary", "prop:ariaLabel": "Cancelar", onClick: this.handleCancel }, h("slot", { name: "cancel-button" }, "Cancelar")), h("br-button", { class: isLast ? 'wizard-btn' : 'wizard-btn-next', emphasis: "primary", type: "button", shape: buttonShape, "prop:ariaLabel": isLast ? 'Concluir' : 'Avançar', onClick: this.handleNext }, h("slot", { name: "next-button" }, isLast ? 'Concluir' : 'Avançar')), !isFirst && (h("br-button", { class: "wizard-btn-prev", emphasis: "secondary", type: "button", shape: buttonShape, "prop:ariaLabel": "Voltar", onClick: this.handlePrevious }, h("slot", { name: "previous-button" }, "Voltar")))));
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Renderiza região de anúncios para leitores de tela.
|
|
660
|
+
* Usa aria-live para comunicar mudanças de estado de forma acessível.
|
|
661
|
+
* @returns JSX.Element - Elemento sr-only com aria-live
|
|
662
|
+
*/
|
|
663
|
+
renderAriaLiveRegion() {
|
|
664
|
+
return (h("div", { class: "sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.ariaLiveMessage));
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Método de renderização principal do componente.
|
|
668
|
+
* Monta a estrutura completa do wizard com acessibilidade integrada.
|
|
669
|
+
* @returns JSX.Element - Estrutura completa do wizard
|
|
670
|
+
*/
|
|
671
|
+
render() {
|
|
672
|
+
const hostClass = this.getHostClassMap();
|
|
673
|
+
const verticalAttr = this.orientation === 'vertical' ? { vertical: '' } : {};
|
|
674
|
+
const collapsedAttr = this.collapsed ? { collapsed: '' } : {};
|
|
675
|
+
const activePanelAttr = { active: '' };
|
|
676
|
+
// Atributos ARIA para o painel ativo
|
|
677
|
+
const totalSteps = this.panels.length;
|
|
678
|
+
const currentPanel = this.panels[this.currentStep - 1];
|
|
679
|
+
const stepLabel = currentPanel?.getAttribute('label') || `Etapa ${this.currentStep}`;
|
|
680
|
+
return (h(Host, { key: 'f01acdc3c90053109123a756711e0d37b2dc77d7', class: hostClass, ...verticalAttr, ...collapsedAttr, step: String(this.currentStep) }, this.renderAriaLiveRegion(), this.renderProgress(), h("div", { key: '7c79f3c8404807e951b85f9916e42c16a964a41d', class: "wizard-form", role: "region", "aria-label": `Wizard: ${stepLabel}`, part: "form" }, h("div", { key: '21e0bf5935d80f9b6f40d1bcd1783de6cc771298', class: "wizard-panel", ...activePanelAttr, role: "group", "aria-label": `${stepLabel}, etapa ${this.currentStep} de ${totalSteps}`, part: "panel" }, this.renderPanelContent(), this.renderPanelButtons()))));
|
|
681
|
+
}
|
|
682
|
+
get el() { return getElement(this); }
|
|
683
|
+
static get watchers() { return {
|
|
684
|
+
"progressionType": [{
|
|
685
|
+
"handleProgressionTypeChange": 0
|
|
686
|
+
}],
|
|
687
|
+
"initialStep": [{
|
|
688
|
+
"handleInitialStepChange": 0
|
|
689
|
+
}],
|
|
690
|
+
"initialIndex": [{
|
|
691
|
+
"handleInitialIndexChange": 0
|
|
692
|
+
}],
|
|
693
|
+
"currentIndex": [{
|
|
694
|
+
"handleCurrentIndexChange": 0
|
|
695
|
+
}],
|
|
696
|
+
"step": [{
|
|
697
|
+
"handleStepChangeProp": 0
|
|
698
|
+
}],
|
|
699
|
+
"currentStep": [{
|
|
700
|
+
"handleCurrentStepChange": 0
|
|
701
|
+
}]
|
|
702
|
+
}; }
|
|
703
|
+
};
|
|
704
|
+
Wizard.style = wizardCss();
|
|
705
|
+
|
|
706
|
+
export { Wizard as br_wizard };
|