@govbr-ds/webcomponents 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -11
- package/cem/custom-elements.json +272 -71
- 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 +55 -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 +2447 -0
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1886 -0
- package/dist/cjs/br-divider.cjs.entry.js +225 -0
- package/dist/cjs/br-dropdown_2.cjs.entry.js +2000 -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 +178 -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 +367 -0
- package/dist/cjs/br-link.cjs.entry.js +133 -0
- package/dist/cjs/br-loading.cjs.entry.js +505 -0
- package/dist/cjs/br-magic-button.cjs.entry.js +93 -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 +56 -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 +988 -0
- package/dist/cjs/br-sign-in.cjs.entry.js +126 -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 +687 -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 +493 -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 +581 -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 +201 -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 +826 -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 +1924 -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 +421 -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 +917 -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 +699 -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 +238 -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 +260 -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 +586 -0
- package/dist/collection/components/select/select-list/select-list.css +1 -0
- package/dist/collection/components/select/select-list/select-list.js +1159 -0
- package/dist/collection/components/select/select-option/select-option.css +1 -0
- package/dist/collection/components/select/select-option/select-option.js +564 -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 +2692 -0
- package/dist/collection/components/select/select.types.js +1 -0
- package/dist/collection/components/select/select.utils.js +34 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -0
- package/dist/collection/components/sign-in/sign-in.js +401 -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 +1324 -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 +1152 -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 +1314 -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 +600 -0
- package/dist/collection/pages/scripts/dev-event-console.js +47 -0
- package/dist/collection/pages/scripts/menu.js +192 -0
- package/dist/collection/pages/scripts/pageLoader.js +1422 -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-34Jfn-U-.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-B55qsau4.js +5 -0
- package/dist/components/p-B7Amgxkp.js +5 -0
- package/dist/components/p-BC7f6MK8.js +5 -0
- package/dist/components/p-BKuMQJrQ.js +5 -0
- package/dist/components/p-BPJpHGOW.js +5 -0
- package/dist/components/p-BWXfdbQH.js +5 -0
- package/dist/components/p-Bb-nLtTG.js +5 -0
- package/dist/components/p-BeE7R9nu.js +5 -0
- package/dist/components/p-BkS6ujyf.js +5 -0
- package/dist/components/p-Bo0QYHJO.js +5 -0
- package/dist/components/p-C1yRmdso.js +5 -0
- package/dist/components/p-C2i2c_io.js +5 -0
- package/dist/components/p-C7v0lVlX.js +5 -0
- package/dist/components/p-CMBsvswx.js +5 -0
- package/dist/components/p-CRrimdz6.js +5 -0
- package/dist/components/p-CWORw84-.js +5 -0
- package/dist/components/p-CXMwM9m4.js +5 -0
- package/dist/components/p-CdDwqbBv.js +5 -0
- package/dist/components/p-CvUMXJCl.js +5 -0
- package/dist/components/p-D3usVJE2.js +16 -0
- package/dist/components/p-D6zroLx5.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-DFUKDNck.js +5 -0
- package/dist/components/p-DHicj0By.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-DXjQyH6s.js +5 -0
- package/dist/components/p-DYA74R1r.js +5 -0
- package/dist/components/p-DmCxdB9P.js +5 -0
- package/dist/components/p-Dmfk7eEe.js +5 -0
- package/dist/components/p-Dp0xy_3n.js +5 -0
- package/dist/components/p-DxZJrIyL.js +5 -0
- package/dist/components/p-JAkkThgf.js +5 -0
- package/dist/components/p-Ud-WB0hx.js +5 -0
- package/dist/components/p-bhULC15U.js +5 -0
- package/dist/components/p-cF3ia5e9.js +5 -0
- package/dist/components/p-fpMNttbg.js +5 -0
- package/dist/components/p-gvnfuTjd.js +5 -0
- package/dist/components/p-qYONSNcf.js +5 -0
- package/dist/components/p-qhhHGJY1.js +5 -0
- package/dist/components/p-ttI0nvv_.js +5 -0
- package/dist/components/p-ukNmfGNP.js +5 -0
- package/dist/components/p-xa8e1kSW.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 +53 -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 +2443 -0
- package/dist/esm/br-datetime-picker.entry.js +1884 -0
- package/dist/esm/br-divider.entry.js +223 -0
- package/dist/esm/br-dropdown_2.entry.js +1997 -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 +176 -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 +365 -0
- package/dist/esm/br-link.entry.js +131 -0
- package/dist/esm/br-loading.entry.js +503 -0
- package/dist/esm/br-magic-button.entry.js +91 -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 +54 -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 +984 -0
- package/dist/esm/br-sign-in.entry.js +124 -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 +685 -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 +491 -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 +579 -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 +67516 -0
- package/dist/hydrate/index.mjs +67506 -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/types/components/item/item.d.ts +1 -0
- package/dist/types/components/select/select-list/select-list.d.ts +1 -0
- package/dist/types/components/select/select-option/select-option.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +14 -0
- package/dist/types/components/select/select.types.d.ts +2 -0
- package/dist/types/components/select/select.utils.d.ts +13 -0
- package/dist/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-0777c7b1.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-18ee6175.entry.js +5 -0
- package/dist/webcomponents/p-1bca4499.entry.js +5 -0
- package/dist/webcomponents/p-1c303a4e.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-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-4c13221a.entry.js +5 -0
- package/dist/webcomponents/p-51ce2c31.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-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-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-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-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-83ff4579.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-8e819355.entry.js +5 -0
- package/dist/webcomponents/p-92a9b9c4.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-a4ae72e3.entry.js +5 -0
- package/dist/webcomponents/p-a994c190.entry.js +5 -0
- package/dist/webcomponents/p-a9ff7c25.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-c949d993.entry.js +5 -0
- package/dist/webcomponents/p-cF3ia5e9.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-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-f078f972.entry.js +5 -0
- package/dist/webcomponents/p-f26038e2.entry.js +5 -0
- package/dist/webcomponents/p-f303f6b3.entry.js +5 -0
- package/dist/webcomponents/p-f6318e94.entry.js +5 -0
- package/dist/webcomponents/p-f85ee01c.entry.js +5 -0
- package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
- package/dist/webcomponents/p-ffe0241e.entry.js +5 -0
- package/dist/webcomponents/p-gvnfuTjd.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +5 -0
- package/package.json +3 -7
- package/cem/.gitkeep +0 -0
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h, } from "@stencil/core";
|
|
6
|
+
/**
|
|
7
|
+
* ## Design System
|
|
8
|
+
*
|
|
9
|
+
* Para a documentação completa de design, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/step?tab=designer).
|
|
10
|
+
*
|
|
11
|
+
* @category Navegação
|
|
12
|
+
* @status stable
|
|
13
|
+
* @slot default - Slot para os itens do step (br-step-item), aceitando apenas esse componente.
|
|
14
|
+
*
|
|
15
|
+
* @part container - Parte para o contêiner principal envolvendo todos os step-items, usada para estilizar layout geral via ::part().
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export class Step {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.activeStep = 0;
|
|
21
|
+
/**
|
|
22
|
+
* `true` quando o componente está renderizado dentro de um `br-carousel`.
|
|
23
|
+
* Detectado automaticamente em `componentDidLoad` via `closest('br-carousel')`.
|
|
24
|
+
* Quando ativo, o container assume `role="tablist"` e cada item assume
|
|
25
|
+
* `role="tab"` com roving tabindex — padrão W3C APG para carrossel com indicadores tipo abas.
|
|
26
|
+
*/
|
|
27
|
+
this.isTablist = false;
|
|
28
|
+
this.stepItems = [];
|
|
29
|
+
/**
|
|
30
|
+
* propriedade responsável por definir a orientação do componente Step
|
|
31
|
+
* @deprecated Use `orientation`.
|
|
32
|
+
*/
|
|
33
|
+
this.layout = 'horizontal';
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* define o passo que começará destacado
|
|
37
|
+
* @deprecated Use `initialIndex`.
|
|
38
|
+
*/
|
|
39
|
+
this.initialStep = '0';
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* Propriedade que define a posição onde o texto de destaque,label, ficará localizado no stepItem
|
|
43
|
+
*/
|
|
44
|
+
this.labelPosition = 'bottom';
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* Propriedade que define o tipo de conteúdo a ser exibido dentro do componente step e stepItem
|
|
48
|
+
*/
|
|
49
|
+
this.contentType = 'default';
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* Propriedade que define o tipo de comportamento que o componente Step deverá seguir
|
|
53
|
+
*/
|
|
54
|
+
this.mode = 'step';
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* Propriedade que define o tipo de progressão de etapas que o step vai executar
|
|
58
|
+
*/
|
|
59
|
+
this.progressionType = 'nonlinear';
|
|
60
|
+
/**
|
|
61
|
+
* Define a posição do conteúdo de cada etapa no layout vertical.
|
|
62
|
+
* - `between`: conteúdo abaixo do indicador/rótulo, entre as etapas.
|
|
63
|
+
* - `side`: conteúdo em coluna lateral à linha de indicadores.
|
|
64
|
+
*/
|
|
65
|
+
this.verticalContentPlacement = 'between';
|
|
66
|
+
this.ariaObjectContent = {
|
|
67
|
+
step: 'Modo etapas ',
|
|
68
|
+
controller: 'Modo controle ',
|
|
69
|
+
default: 'passos com conteúdo numérico ',
|
|
70
|
+
'br-icon': 'passos com conteúdo que possuem icones ',
|
|
71
|
+
slotted: 'passos com conteúdo customizados ',
|
|
72
|
+
'no-content': 'passos que apresentam conteúdo por meio de tooltip ',
|
|
73
|
+
linear: 'progressão linear ',
|
|
74
|
+
nonlinear: 'progressão não linear ',
|
|
75
|
+
vertical: 'com layout vertical ',
|
|
76
|
+
horizontal: 'com layout horizontal ',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Observa mudanças na etapa ativa e sincroniza os itens filhos.
|
|
81
|
+
*/
|
|
82
|
+
activeStepChanged(newValue, oldValue) {
|
|
83
|
+
if (oldValue === newValue || !this.isValidStepIndex(newValue))
|
|
84
|
+
return;
|
|
85
|
+
this.updateStepItemsActiveState(oldValue);
|
|
86
|
+
if (this.progressionType === 'linear') {
|
|
87
|
+
this.configureLinearProgression();
|
|
88
|
+
}
|
|
89
|
+
this.brStepChange.emit({ activeStep: newValue });
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Observa mudanças no passo inicial e atualiza a etapa ativa.
|
|
93
|
+
*/
|
|
94
|
+
initialStepChanged(newValue, oldValue) {
|
|
95
|
+
if (newValue === oldValue)
|
|
96
|
+
return;
|
|
97
|
+
const num = Number(newValue);
|
|
98
|
+
if (!Number.isNaN(num)) {
|
|
99
|
+
this.setActiveStep(num);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Observa mudanças na posição do label e propaga aos itens.
|
|
104
|
+
*/
|
|
105
|
+
labelPositionChanged() {
|
|
106
|
+
this.setStepItemsLabelPosition();
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Observa mudanças no tipo de conteúdo e propaga aos itens.
|
|
110
|
+
*/
|
|
111
|
+
contentTypeChanged() {
|
|
112
|
+
void this.setStepItemsContentType();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Observa mudanças no modo e propaga aos itens.
|
|
116
|
+
*/
|
|
117
|
+
modeChanged(newValue) {
|
|
118
|
+
this.setStepItemsMode(newValue);
|
|
119
|
+
this.configureStepItems();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Observa mudanças no layout e atualiza a linha do tempo dos itens.
|
|
123
|
+
*/
|
|
124
|
+
layoutChanged() {
|
|
125
|
+
this.configureStepItems();
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Observa mudanças no tipo de progressão e atualiza itens desabilitados.
|
|
129
|
+
*/
|
|
130
|
+
progressionTypeChanged() {
|
|
131
|
+
this.configureStepItems();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Observa mudanças na posição do conteúdo vertical e propaga aos itens.
|
|
135
|
+
*/
|
|
136
|
+
verticalContentPlacementChanged() {
|
|
137
|
+
this.setStepItemsVerticalContentPlacement();
|
|
138
|
+
}
|
|
139
|
+
componentWillLoad() {
|
|
140
|
+
this.activeStep = this.initialIndex ?? Number(this.initialStep);
|
|
141
|
+
this.getStepItemsElements();
|
|
142
|
+
const root = this.el.getRootNode();
|
|
143
|
+
this.isTablist = root instanceof ShadowRoot && root.host?.tagName?.toLowerCase() === 'br-carousel';
|
|
144
|
+
}
|
|
145
|
+
componentDidLoad() {
|
|
146
|
+
this.setStepItemsLabelPosition();
|
|
147
|
+
this.setStepItemsContentType();
|
|
148
|
+
this.setStepItemsDefaultContent();
|
|
149
|
+
this.setStepItemsMode(this.mode);
|
|
150
|
+
this.setStepItemsVerticalContentPlacement();
|
|
151
|
+
this.configureStepItems();
|
|
152
|
+
if (this.isValidStepIndex(this.activeStep)) {
|
|
153
|
+
this.stepItems[this.activeStep].setAttribute('active', 'true');
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
console.warn('br-step initial-step attribute has value more than number of step-items provided');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* listener para ouvir o evento de click no componente step
|
|
161
|
+
* Através desse listener o componente define qual será o proximo passo do step que terá o estado ativo
|
|
162
|
+
*/
|
|
163
|
+
handleClick(event) {
|
|
164
|
+
const targetElement = event.target;
|
|
165
|
+
const targetStepItem = targetElement.closest('br-step-item');
|
|
166
|
+
if (targetStepItem === null)
|
|
167
|
+
return;
|
|
168
|
+
this.setActiveStep(this.stepItems.indexOf(targetStepItem));
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* Método disponibilizado via API do elemento que controla o componente Step, responsável por avançar para o próximo passo e atualizar o valor do estado activeStep
|
|
173
|
+
* @deprecated Use `next`.
|
|
174
|
+
*/
|
|
175
|
+
// biome-ignore lint/style/useNamingConvention: API pública legada exposta para consumidores externos.
|
|
176
|
+
async ProceedToNextStep() {
|
|
177
|
+
this.getStepItemsElements();
|
|
178
|
+
if (this.activeStep + 1 < this.stepItems.length) {
|
|
179
|
+
this.setActiveStep(this.activeStep + 1);
|
|
180
|
+
if (this.progressionType === 'linear') {
|
|
181
|
+
this.configureLinearProgression();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/** Avança para o próximo passo. */
|
|
186
|
+
async next() {
|
|
187
|
+
await this.ProceedToNextStep();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* Método disponibilizado via API do elemento que controla o componente Step, responsável por retornar ao passo anterior e atualizar o valor do estado activeStep
|
|
192
|
+
* @deprecated Use `previous`.
|
|
193
|
+
*/
|
|
194
|
+
// biome-ignore lint/style/useNamingConvention: API pública legada exposta para consumidores externos.
|
|
195
|
+
async BackToPreviousStep() {
|
|
196
|
+
if (this.activeStep - 1 >= 0) {
|
|
197
|
+
this.setActiveStep(this.activeStep - 1);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Retorna ao passo anterior. */
|
|
201
|
+
async previous() {
|
|
202
|
+
await this.BackToPreviousStep();
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* Método disponibilizado via API do elemento que integra um componente externo ao componente Step, permitindo sinalizar validações ou destacar a etapa com estado ativo.
|
|
207
|
+
* @deprecated Use `setCurrentValidation`.
|
|
208
|
+
*/
|
|
209
|
+
// biome-ignore lint/style/useNamingConvention: API pública legada exposta para consumidores externos.
|
|
210
|
+
async StepValidation(validationStatus) {
|
|
211
|
+
this.stepItems[this.activeStep].setAttribute('highlight', validationStatus);
|
|
212
|
+
}
|
|
213
|
+
/** Define o estado de validação do passo ativo. */
|
|
214
|
+
async setCurrentValidation(validationStatus) {
|
|
215
|
+
await this.StepValidation(validationStatus);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* Método disponibilizado via API do elemento que permite a um componente externo obter a etapa com o estado ativo do componente Step.
|
|
220
|
+
*/
|
|
221
|
+
// biome-ignore lint/style/useNamingConvention: API pública legada exposta para consumidores externos.
|
|
222
|
+
async GetActiveStep() {
|
|
223
|
+
return this.activeStep;
|
|
224
|
+
}
|
|
225
|
+
get effectiveOrientation() {
|
|
226
|
+
return this.orientation ?? this.layout;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Atualiza os atributos 'active' dos step-items de forma segura
|
|
230
|
+
* Chamado via requestAnimationFrame para garantir que o DOM é atualizado após batched state changes
|
|
231
|
+
*/
|
|
232
|
+
updateStepItemsActiveState(previousActiveStep) {
|
|
233
|
+
if (this.isValidStepIndex(previousActiveStep)) {
|
|
234
|
+
this.stepItems[previousActiveStep].removeAttribute('active');
|
|
235
|
+
}
|
|
236
|
+
this.stepItems[this.activeStep].setAttribute('active', 'true');
|
|
237
|
+
}
|
|
238
|
+
getStepItemsElements() {
|
|
239
|
+
const rawChildren = Array.from(this.el.children).filter((child) => child.tagName.toLowerCase() !== 'style' && child.tagName.toLowerCase() !== 'script');
|
|
240
|
+
if (rawChildren.length === 0) {
|
|
241
|
+
this.stepItems = [];
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
const childrenHaveConsistentTagName = rawChildren.every((item) => item.tagName.toLowerCase() === 'br-step-item');
|
|
245
|
+
if (!childrenHaveConsistentTagName) {
|
|
246
|
+
throw new Error('br-step component must have as child elements only br-step-items components');
|
|
247
|
+
}
|
|
248
|
+
const slotItems = rawChildren;
|
|
249
|
+
const firstChildrenContentTypeValue = slotItems[0].getAttribute('content-type');
|
|
250
|
+
const childrenHaveConsistentContentType = slotItems.every((item) => item.getAttribute('content-type') === firstChildrenContentTypeValue);
|
|
251
|
+
if (!childrenHaveConsistentContentType) {
|
|
252
|
+
throw new Error('br-step must have all child elements with same content type attribute value');
|
|
253
|
+
}
|
|
254
|
+
this.stepItems = slotItems;
|
|
255
|
+
}
|
|
256
|
+
getStepItems() {
|
|
257
|
+
this.getStepItemsElements();
|
|
258
|
+
if (this.stepItems.length > 0) {
|
|
259
|
+
return this.stepItems;
|
|
260
|
+
}
|
|
261
|
+
return Array.from(this.el.children).filter((child) => child.tagName.toLowerCase() === 'br-step-item');
|
|
262
|
+
}
|
|
263
|
+
setStepItemsLabelPosition() {
|
|
264
|
+
const slotItems = this.getStepItems();
|
|
265
|
+
slotItems.forEach((elements) => {
|
|
266
|
+
if (this.labelPosition !== undefined) {
|
|
267
|
+
elements.setLabelPosition(this.labelPosition);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
setStepItemsDefaultContent() {
|
|
272
|
+
const slotItems = this.getStepItems();
|
|
273
|
+
slotItems.forEach((elements, index) => {
|
|
274
|
+
const indicatorContent = index + 1;
|
|
275
|
+
elements.setContent(indicatorContent.toString());
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
async setStepItemsContentType() {
|
|
279
|
+
const slotItems = this.getStepItems();
|
|
280
|
+
await Promise.all(slotItems.map((element) => element.setContentType(this.contentType)));
|
|
281
|
+
slotItems.forEach((elements, index) => {
|
|
282
|
+
elements.setAttribute('aria-posinset', `${index + 1}`);
|
|
283
|
+
elements.setAttribute('aria-setsize', `${slotItems.length}`);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
setStepItemsMode(mode) {
|
|
287
|
+
const slotItems = this.getStepItems();
|
|
288
|
+
slotItems.forEach((elements) => {
|
|
289
|
+
elements.setMode(mode);
|
|
290
|
+
if (mode === 'controller') {
|
|
291
|
+
elements.setContentType('no-content');
|
|
292
|
+
elements.removeAttribute('label');
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
if (mode === 'controller' && this.effectiveOrientation !== 'horizontal') {
|
|
296
|
+
if (this.orientation !== undefined)
|
|
297
|
+
this.orientation = 'horizontal';
|
|
298
|
+
else
|
|
299
|
+
this.layout = 'horizontal';
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
setStepItemsVerticalContentPlacement() {
|
|
303
|
+
const slotItems = this.getStepItems();
|
|
304
|
+
slotItems.forEach((element) => {
|
|
305
|
+
element.setVerticalContentPlacement(this.verticalContentPlacement);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
setActiveStep(value) {
|
|
309
|
+
if (!this.isValidStepIndex(value))
|
|
310
|
+
return;
|
|
311
|
+
if (this.progressionType !== 'linear' && this.stepItems[value]?.hasAttribute('disabled'))
|
|
312
|
+
return;
|
|
313
|
+
this.activeStep = value;
|
|
314
|
+
}
|
|
315
|
+
isValidStepIndex(value) {
|
|
316
|
+
return Number.isInteger(value) && value >= 0 && value < this.stepItems.length;
|
|
317
|
+
}
|
|
318
|
+
configureStepItems() {
|
|
319
|
+
if (this.isTablist) {
|
|
320
|
+
this.configureTablistMode();
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
if (this.mode === 'step') {
|
|
324
|
+
this.configureTimeLine();
|
|
325
|
+
}
|
|
326
|
+
if (this.progressionType === 'linear') {
|
|
327
|
+
this.configureLinearProgression();
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
this.clearLinearProgression();
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Configura os step-items para o comportamento de tablist (carrossel).
|
|
335
|
+
* Sobrescreve contentType e mode dos itens para que assumam
|
|
336
|
+
* `role="tab"` com semântica W3C APG para carrossel com indicadores tipo abas.
|
|
337
|
+
*/
|
|
338
|
+
configureTablistMode() {
|
|
339
|
+
if (this.effectiveOrientation !== 'horizontal') {
|
|
340
|
+
if (this.orientation !== undefined)
|
|
341
|
+
this.orientation = 'horizontal';
|
|
342
|
+
else
|
|
343
|
+
this.layout = 'horizontal';
|
|
344
|
+
}
|
|
345
|
+
const slotItems = Array.from(this.el.getElementsByTagName('br-step-item'));
|
|
346
|
+
slotItems.forEach((item) => {
|
|
347
|
+
item.setItemRole('tab');
|
|
348
|
+
item.setContentType('no-content');
|
|
349
|
+
item.removeAttribute('label');
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
getStepItemPosition(stepItemsElements, index) {
|
|
353
|
+
if (index === 0) {
|
|
354
|
+
return 'first';
|
|
355
|
+
}
|
|
356
|
+
if (index > 0 && index < stepItemsElements.length - 1) {
|
|
357
|
+
return 'middle';
|
|
358
|
+
}
|
|
359
|
+
return 'last';
|
|
360
|
+
}
|
|
361
|
+
configureTimeLine() {
|
|
362
|
+
const slotItems = this.getStepItems();
|
|
363
|
+
slotItems.forEach((elements, index) => {
|
|
364
|
+
const elementPosition = this.getStepItemPosition(slotItems, index);
|
|
365
|
+
elements.setStepItemPositionStatus(elementPosition);
|
|
366
|
+
elements.handleShowTimeLine(true, this.effectiveOrientation);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
configureLinearProgression() {
|
|
370
|
+
const slotItems = this.getStepItems();
|
|
371
|
+
slotItems.forEach((element, index) => {
|
|
372
|
+
const isDisabled = index > this.activeStep;
|
|
373
|
+
element.disabled = isDisabled;
|
|
374
|
+
if (isDisabled) {
|
|
375
|
+
element.setAttribute('disabled', 'true');
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
element.removeAttribute('disabled');
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
clearLinearProgression() {
|
|
383
|
+
const slotItems = this.getStepItems();
|
|
384
|
+
slotItems.forEach((elements) => {
|
|
385
|
+
elements.removeAttribute('disabled');
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
getCssClassMap() {
|
|
389
|
+
return {
|
|
390
|
+
'br-step': true,
|
|
391
|
+
horizontal: this.effectiveOrientation === 'horizontal',
|
|
392
|
+
vertical: this.effectiveOrientation === 'vertical',
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
getAreaLabel() {
|
|
396
|
+
if (this.isTablist) {
|
|
397
|
+
return 'Slides';
|
|
398
|
+
}
|
|
399
|
+
let ariaLabel = ' Lista de Opções ';
|
|
400
|
+
if (this.mode !== 'controller') {
|
|
401
|
+
ariaLabel +=
|
|
402
|
+
this.ariaObjectContent[this.mode] +
|
|
403
|
+
this.ariaObjectContent[this.contentType] +
|
|
404
|
+
this.ariaObjectContent[this.progressionType] +
|
|
405
|
+
this.ariaObjectContent[this.effectiveOrientation];
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
ariaLabel += this.ariaObjectContent[this.mode];
|
|
409
|
+
}
|
|
410
|
+
return ariaLabel;
|
|
411
|
+
}
|
|
412
|
+
render() {
|
|
413
|
+
const isTablist = this.isTablist;
|
|
414
|
+
return (h(Host, { key: 'afbe0f698f9c2e98309cc4ebcd920eade167209f' }, this.stepItems.length > 0 &&
|
|
415
|
+
(isTablist ? (h("div", { part: "container", role: "tablist", "aria-orientation": this.effectiveOrientation, "aria-label": this.getAreaLabel(), class: this.getCssClassMap(), "data-label": this.labelPosition }, h("div", { class: "step-progress" }, h("slot", { onSlotchange: () => this.handleSlotChange() })))) : (h("div", { part: "container", role: "group", "aria-label": this.getAreaLabel(), class: this.getCssClassMap(), "data-label": this.labelPosition }, h("div", { class: "step-progress" }, h("slot", { onSlotchange: () => this.handleSlotChange() })))))));
|
|
416
|
+
}
|
|
417
|
+
handleSlotChange() {
|
|
418
|
+
this.getStepItemsElements();
|
|
419
|
+
this.setStepItemsLabelPosition();
|
|
420
|
+
void this.setStepItemsContentType();
|
|
421
|
+
this.setStepItemsDefaultContent();
|
|
422
|
+
this.setStepItemsMode(this.mode);
|
|
423
|
+
this.setStepItemsVerticalContentPlacement();
|
|
424
|
+
this.configureStepItems();
|
|
425
|
+
}
|
|
426
|
+
static get is() { return "br-step"; }
|
|
427
|
+
static get encapsulation() { return "shadow"; }
|
|
428
|
+
static get originalStyleUrls() {
|
|
429
|
+
return {
|
|
430
|
+
"$": ["step.scss"]
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
static get styleUrls() {
|
|
434
|
+
return {
|
|
435
|
+
"$": ["step.css"]
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
static get properties() {
|
|
439
|
+
return {
|
|
440
|
+
"layout": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"mutable": false,
|
|
443
|
+
"complexType": {
|
|
444
|
+
"original": "BrOrientation",
|
|
445
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
446
|
+
"references": {
|
|
447
|
+
"BrOrientation": {
|
|
448
|
+
"location": "import",
|
|
449
|
+
"path": "../global.types",
|
|
450
|
+
"id": "src/components/global.types.ts::BrOrientation",
|
|
451
|
+
"referenceLocation": "BrOrientation"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": false,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [{
|
|
459
|
+
"name": "deprecated",
|
|
460
|
+
"text": "Use `orientation`."
|
|
461
|
+
}],
|
|
462
|
+
"text": "propriedade respons\u00E1vel por definir a orienta\u00E7\u00E3o do componente Step"
|
|
463
|
+
},
|
|
464
|
+
"getter": false,
|
|
465
|
+
"setter": false,
|
|
466
|
+
"reflect": true,
|
|
467
|
+
"attribute": "layout",
|
|
468
|
+
"defaultValue": "'horizontal'"
|
|
469
|
+
},
|
|
470
|
+
"orientation": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"mutable": false,
|
|
473
|
+
"complexType": {
|
|
474
|
+
"original": "BrOrientation",
|
|
475
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
476
|
+
"references": {
|
|
477
|
+
"BrOrientation": {
|
|
478
|
+
"location": "import",
|
|
479
|
+
"path": "../global.types",
|
|
480
|
+
"id": "src/components/global.types.ts::BrOrientation",
|
|
481
|
+
"referenceLocation": "BrOrientation"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": false,
|
|
486
|
+
"optional": true,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": "Orienta\u00E7\u00E3o do componente. Quando informada, tem preced\u00EAncia sobre `layout`."
|
|
490
|
+
},
|
|
491
|
+
"getter": false,
|
|
492
|
+
"setter": false,
|
|
493
|
+
"reflect": true,
|
|
494
|
+
"attribute": "orientation"
|
|
495
|
+
},
|
|
496
|
+
"initialStep": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"mutable": false,
|
|
499
|
+
"complexType": {
|
|
500
|
+
"original": "string",
|
|
501
|
+
"resolved": "string",
|
|
502
|
+
"references": {}
|
|
503
|
+
},
|
|
504
|
+
"required": false,
|
|
505
|
+
"optional": false,
|
|
506
|
+
"docs": {
|
|
507
|
+
"tags": [{
|
|
508
|
+
"name": "deprecated",
|
|
509
|
+
"text": "Use `initialIndex`."
|
|
510
|
+
}],
|
|
511
|
+
"text": "\ndefine o passo que come\u00E7ar\u00E1 destacado"
|
|
512
|
+
},
|
|
513
|
+
"getter": false,
|
|
514
|
+
"setter": false,
|
|
515
|
+
"reflect": true,
|
|
516
|
+
"attribute": "initial-step",
|
|
517
|
+
"defaultValue": "'0'"
|
|
518
|
+
},
|
|
519
|
+
"initialIndex": {
|
|
520
|
+
"type": "number",
|
|
521
|
+
"mutable": false,
|
|
522
|
+
"complexType": {
|
|
523
|
+
"original": "number",
|
|
524
|
+
"resolved": "number",
|
|
525
|
+
"references": {}
|
|
526
|
+
},
|
|
527
|
+
"required": false,
|
|
528
|
+
"optional": true,
|
|
529
|
+
"docs": {
|
|
530
|
+
"tags": [],
|
|
531
|
+
"text": "\u00CDndice inicial zero-based. Quando informado, tem preced\u00EAncia sobre `initialStep`."
|
|
532
|
+
},
|
|
533
|
+
"getter": false,
|
|
534
|
+
"setter": false,
|
|
535
|
+
"reflect": true,
|
|
536
|
+
"attribute": "initial-index"
|
|
537
|
+
},
|
|
538
|
+
"labelPosition": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"mutable": false,
|
|
541
|
+
"complexType": {
|
|
542
|
+
"original": "StepLabelPosition",
|
|
543
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
544
|
+
"references": {
|
|
545
|
+
"StepLabelPosition": {
|
|
546
|
+
"location": "import",
|
|
547
|
+
"path": "./step.types",
|
|
548
|
+
"id": "src/components/step/step.types.ts::StepLabelPosition",
|
|
549
|
+
"referenceLocation": "StepLabelPosition"
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"optional": true,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": "\nPropriedade que define a posi\u00E7\u00E3o onde o texto de destaque,label, ficar\u00E1 localizado no stepItem"
|
|
558
|
+
},
|
|
559
|
+
"getter": false,
|
|
560
|
+
"setter": false,
|
|
561
|
+
"reflect": true,
|
|
562
|
+
"attribute": "label-position",
|
|
563
|
+
"defaultValue": "'bottom'"
|
|
564
|
+
},
|
|
565
|
+
"contentType": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"mutable": false,
|
|
568
|
+
"complexType": {
|
|
569
|
+
"original": "StepContentType",
|
|
570
|
+
"resolved": "\"br-icon\" | \"default\" | \"no-content\" | \"slotted\"",
|
|
571
|
+
"references": {
|
|
572
|
+
"StepContentType": {
|
|
573
|
+
"location": "import",
|
|
574
|
+
"path": "./step.types",
|
|
575
|
+
"id": "src/components/step/step.types.ts::StepContentType",
|
|
576
|
+
"referenceLocation": "StepContentType"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": "\nPropriedade que define o tipo de conte\u00FAdo a ser exibido dentro do componente step e stepItem"
|
|
585
|
+
},
|
|
586
|
+
"getter": false,
|
|
587
|
+
"setter": false,
|
|
588
|
+
"reflect": true,
|
|
589
|
+
"attribute": "content-type",
|
|
590
|
+
"defaultValue": "'default'"
|
|
591
|
+
},
|
|
592
|
+
"mode": {
|
|
593
|
+
"type": "string",
|
|
594
|
+
"mutable": false,
|
|
595
|
+
"complexType": {
|
|
596
|
+
"original": "StepMode",
|
|
597
|
+
"resolved": "\"controller\" | \"step\"",
|
|
598
|
+
"references": {
|
|
599
|
+
"StepMode": {
|
|
600
|
+
"location": "import",
|
|
601
|
+
"path": "./step.types",
|
|
602
|
+
"id": "src/components/step/step.types.ts::StepMode",
|
|
603
|
+
"referenceLocation": "StepMode"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"required": false,
|
|
608
|
+
"optional": false,
|
|
609
|
+
"docs": {
|
|
610
|
+
"tags": [],
|
|
611
|
+
"text": "\nPropriedade que define o tipo de comportamento que o componente Step dever\u00E1 seguir"
|
|
612
|
+
},
|
|
613
|
+
"getter": false,
|
|
614
|
+
"setter": false,
|
|
615
|
+
"reflect": true,
|
|
616
|
+
"attribute": "mode",
|
|
617
|
+
"defaultValue": "'step'"
|
|
618
|
+
},
|
|
619
|
+
"progressionType": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"mutable": false,
|
|
622
|
+
"complexType": {
|
|
623
|
+
"original": "BrProgressionType",
|
|
624
|
+
"resolved": "\"linear\" | \"nonlinear\"",
|
|
625
|
+
"references": {
|
|
626
|
+
"BrProgressionType": {
|
|
627
|
+
"location": "import",
|
|
628
|
+
"path": "../global.types",
|
|
629
|
+
"id": "src/components/global.types.ts::BrProgressionType",
|
|
630
|
+
"referenceLocation": "BrProgressionType"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": "\nPropriedade que define o tipo de progress\u00E3o de etapas que o step vai executar"
|
|
639
|
+
},
|
|
640
|
+
"getter": false,
|
|
641
|
+
"setter": false,
|
|
642
|
+
"reflect": true,
|
|
643
|
+
"attribute": "progression-type",
|
|
644
|
+
"defaultValue": "'nonlinear'"
|
|
645
|
+
},
|
|
646
|
+
"verticalContentPlacement": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"mutable": false,
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "StepVerticalContentPlacement",
|
|
651
|
+
"resolved": "\"between\" | \"side\"",
|
|
652
|
+
"references": {
|
|
653
|
+
"StepVerticalContentPlacement": {
|
|
654
|
+
"location": "import",
|
|
655
|
+
"path": "./step.types",
|
|
656
|
+
"id": "src/components/step/step.types.ts::StepVerticalContentPlacement",
|
|
657
|
+
"referenceLocation": "StepVerticalContentPlacement"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"required": false,
|
|
662
|
+
"optional": false,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": "Define a posi\u00E7\u00E3o do conte\u00FAdo de cada etapa no layout vertical.\n- `between`: conte\u00FAdo abaixo do indicador/r\u00F3tulo, entre as etapas.\n- `side`: conte\u00FAdo em coluna lateral \u00E0 linha de indicadores."
|
|
666
|
+
},
|
|
667
|
+
"getter": false,
|
|
668
|
+
"setter": false,
|
|
669
|
+
"reflect": true,
|
|
670
|
+
"attribute": "vertical-content-placement",
|
|
671
|
+
"defaultValue": "'between'"
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
static get states() {
|
|
676
|
+
return {
|
|
677
|
+
"activeStep": {},
|
|
678
|
+
"isTablist": {},
|
|
679
|
+
"stepItems": {}
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
static get events() {
|
|
683
|
+
return [{
|
|
684
|
+
"method": "brStepChange",
|
|
685
|
+
"name": "brStepChange",
|
|
686
|
+
"bubbles": true,
|
|
687
|
+
"cancelable": true,
|
|
688
|
+
"composed": true,
|
|
689
|
+
"docs": {
|
|
690
|
+
"tags": [],
|
|
691
|
+
"text": "Emite um evento quando o step ativo muda.\nO evento carrega o \u00EDndice do novo step ativo (0-based)."
|
|
692
|
+
},
|
|
693
|
+
"complexType": {
|
|
694
|
+
"original": "StepChangeDetail",
|
|
695
|
+
"resolved": "{ activeStep: number; }",
|
|
696
|
+
"references": {
|
|
697
|
+
"StepChangeDetail": {
|
|
698
|
+
"location": "import",
|
|
699
|
+
"path": "./step.types",
|
|
700
|
+
"id": "src/components/step/step.types.ts::StepChangeDetail",
|
|
701
|
+
"referenceLocation": "StepChangeDetail"
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}];
|
|
706
|
+
}
|
|
707
|
+
static get methods() {
|
|
708
|
+
return {
|
|
709
|
+
"ProceedToNextStep": {
|
|
710
|
+
"complexType": {
|
|
711
|
+
"signature": "() => Promise<void>",
|
|
712
|
+
"parameters": [],
|
|
713
|
+
"references": {
|
|
714
|
+
"Promise": {
|
|
715
|
+
"location": "global",
|
|
716
|
+
"id": "global::Promise"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
"return": "Promise<void>"
|
|
720
|
+
},
|
|
721
|
+
"docs": {
|
|
722
|
+
"text": "\nM\u00E9todo disponibilizado via API do elemento que controla o componente Step, respons\u00E1vel por avan\u00E7ar para o pr\u00F3ximo passo e atualizar o valor do estado activeStep",
|
|
723
|
+
"tags": [{
|
|
724
|
+
"name": "deprecated",
|
|
725
|
+
"text": "Use `next`."
|
|
726
|
+
}]
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"next": {
|
|
730
|
+
"complexType": {
|
|
731
|
+
"signature": "() => Promise<void>",
|
|
732
|
+
"parameters": [],
|
|
733
|
+
"references": {
|
|
734
|
+
"Promise": {
|
|
735
|
+
"location": "global",
|
|
736
|
+
"id": "global::Promise"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"return": "Promise<void>"
|
|
740
|
+
},
|
|
741
|
+
"docs": {
|
|
742
|
+
"text": "Avan\u00E7a para o pr\u00F3ximo passo.",
|
|
743
|
+
"tags": []
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"BackToPreviousStep": {
|
|
747
|
+
"complexType": {
|
|
748
|
+
"signature": "() => Promise<void>",
|
|
749
|
+
"parameters": [],
|
|
750
|
+
"references": {
|
|
751
|
+
"Promise": {
|
|
752
|
+
"location": "global",
|
|
753
|
+
"id": "global::Promise"
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"return": "Promise<void>"
|
|
757
|
+
},
|
|
758
|
+
"docs": {
|
|
759
|
+
"text": "\nM\u00E9todo disponibilizado via API do elemento que controla o componente Step, respons\u00E1vel por retornar ao passo anterior e atualizar o valor do estado activeStep",
|
|
760
|
+
"tags": [{
|
|
761
|
+
"name": "deprecated",
|
|
762
|
+
"text": "Use `previous`."
|
|
763
|
+
}]
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"previous": {
|
|
767
|
+
"complexType": {
|
|
768
|
+
"signature": "() => Promise<void>",
|
|
769
|
+
"parameters": [],
|
|
770
|
+
"references": {
|
|
771
|
+
"Promise": {
|
|
772
|
+
"location": "global",
|
|
773
|
+
"id": "global::Promise"
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"return": "Promise<void>"
|
|
777
|
+
},
|
|
778
|
+
"docs": {
|
|
779
|
+
"text": "Retorna ao passo anterior.",
|
|
780
|
+
"tags": []
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"StepValidation": {
|
|
784
|
+
"complexType": {
|
|
785
|
+
"signature": "(validationStatus: StepValidationStatus) => Promise<void>",
|
|
786
|
+
"parameters": [{
|
|
787
|
+
"name": "validationStatus",
|
|
788
|
+
"type": "\"info\" | \"warning\" | \"danger\" | \"success\"",
|
|
789
|
+
"docs": ""
|
|
790
|
+
}],
|
|
791
|
+
"references": {
|
|
792
|
+
"Promise": {
|
|
793
|
+
"location": "global",
|
|
794
|
+
"id": "global::Promise"
|
|
795
|
+
},
|
|
796
|
+
"StepValidationStatus": {
|
|
797
|
+
"location": "import",
|
|
798
|
+
"path": "./step.types",
|
|
799
|
+
"id": "src/components/step/step.types.ts::StepValidationStatus",
|
|
800
|
+
"referenceLocation": "StepValidationStatus"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"return": "Promise<void>"
|
|
804
|
+
},
|
|
805
|
+
"docs": {
|
|
806
|
+
"text": "\nM\u00E9todo disponibilizado via API do elemento que integra um componente externo ao componente Step, permitindo sinalizar valida\u00E7\u00F5es ou destacar a etapa com estado ativo.",
|
|
807
|
+
"tags": [{
|
|
808
|
+
"name": "deprecated",
|
|
809
|
+
"text": "Use `setCurrentValidation`."
|
|
810
|
+
}]
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"setCurrentValidation": {
|
|
814
|
+
"complexType": {
|
|
815
|
+
"signature": "(validationStatus: StepValidationStatus) => Promise<void>",
|
|
816
|
+
"parameters": [{
|
|
817
|
+
"name": "validationStatus",
|
|
818
|
+
"type": "\"info\" | \"warning\" | \"danger\" | \"success\"",
|
|
819
|
+
"docs": ""
|
|
820
|
+
}],
|
|
821
|
+
"references": {
|
|
822
|
+
"Promise": {
|
|
823
|
+
"location": "global",
|
|
824
|
+
"id": "global::Promise"
|
|
825
|
+
},
|
|
826
|
+
"StepValidationStatus": {
|
|
827
|
+
"location": "import",
|
|
828
|
+
"path": "./step.types",
|
|
829
|
+
"id": "src/components/step/step.types.ts::StepValidationStatus",
|
|
830
|
+
"referenceLocation": "StepValidationStatus"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"return": "Promise<void>"
|
|
834
|
+
},
|
|
835
|
+
"docs": {
|
|
836
|
+
"text": "Define o estado de valida\u00E7\u00E3o do passo ativo.",
|
|
837
|
+
"tags": []
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"GetActiveStep": {
|
|
841
|
+
"complexType": {
|
|
842
|
+
"signature": "() => Promise<number>",
|
|
843
|
+
"parameters": [],
|
|
844
|
+
"references": {
|
|
845
|
+
"Promise": {
|
|
846
|
+
"location": "global",
|
|
847
|
+
"id": "global::Promise"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"return": "Promise<number>"
|
|
851
|
+
},
|
|
852
|
+
"docs": {
|
|
853
|
+
"text": "\nM\u00E9todo disponibilizado via API do elemento que permite a um componente externo obter a etapa com o estado ativo do componente Step.",
|
|
854
|
+
"tags": []
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
static get elementRef() { return "el"; }
|
|
860
|
+
static get watchers() {
|
|
861
|
+
return [{
|
|
862
|
+
"propName": "activeStep",
|
|
863
|
+
"methodName": "activeStepChanged"
|
|
864
|
+
}, {
|
|
865
|
+
"propName": "initialStep",
|
|
866
|
+
"methodName": "initialStepChanged"
|
|
867
|
+
}, {
|
|
868
|
+
"propName": "labelPosition",
|
|
869
|
+
"methodName": "labelPositionChanged"
|
|
870
|
+
}, {
|
|
871
|
+
"propName": "contentType",
|
|
872
|
+
"methodName": "contentTypeChanged"
|
|
873
|
+
}, {
|
|
874
|
+
"propName": "mode",
|
|
875
|
+
"methodName": "modeChanged"
|
|
876
|
+
}, {
|
|
877
|
+
"propName": "layout",
|
|
878
|
+
"methodName": "layoutChanged"
|
|
879
|
+
}, {
|
|
880
|
+
"propName": "progressionType",
|
|
881
|
+
"methodName": "progressionTypeChanged"
|
|
882
|
+
}, {
|
|
883
|
+
"propName": "verticalContentPlacement",
|
|
884
|
+
"methodName": "verticalContentPlacementChanged"
|
|
885
|
+
}];
|
|
886
|
+
}
|
|
887
|
+
static get listeners() {
|
|
888
|
+
return [{
|
|
889
|
+
"name": "click",
|
|
890
|
+
"method": "handleClick",
|
|
891
|
+
"target": undefined,
|
|
892
|
+
"capture": true,
|
|
893
|
+
"passive": false
|
|
894
|
+
}];
|
|
895
|
+
}
|
|
896
|
+
}
|