@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,1169 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import { clampNumber } from "../../shared/utils/clamp";
|
|
7
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
8
|
+
import { setPartAttributes } from "../../shared/utils/parts";
|
|
9
|
+
/** Mapa que relaciona `LoadingMode` e `LoadingSize` com a dimensão do SVG em pixels. */
|
|
10
|
+
const DIMENSION_MAP = {
|
|
11
|
+
spinner: {
|
|
12
|
+
small: 24,
|
|
13
|
+
medium: 44,
|
|
14
|
+
large: 64,
|
|
15
|
+
},
|
|
16
|
+
progress: {
|
|
17
|
+
small: 64,
|
|
18
|
+
medium: 84,
|
|
19
|
+
large: 104,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
/** Mapa que relaciona `LoadingMode` e `LoadingSize` com a espessura do traço. */
|
|
23
|
+
const STROKE_WIDTH_MAP = {
|
|
24
|
+
spinner: {
|
|
25
|
+
small: 2,
|
|
26
|
+
medium: 3,
|
|
27
|
+
large: 4,
|
|
28
|
+
},
|
|
29
|
+
progress: {
|
|
30
|
+
small: 3,
|
|
31
|
+
medium: 4,
|
|
32
|
+
large: 5,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
/** Mapa que relaciona `LoadingSize` com o tamanho da fonte do percentual no modo `progress`. */
|
|
36
|
+
const PERCENTAGE_FONT_SIZE_MAP = {
|
|
37
|
+
small: 'var(--font-size-scale-base)',
|
|
38
|
+
medium: 'var(--font-size-scale-up-02)',
|
|
39
|
+
large: 'var(--font-size-scale-up-03)',
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Mapa que relaciona `LoadingSpeed` com a duração da animação (s)
|
|
43
|
+
*/
|
|
44
|
+
const SPEED_MAP = {
|
|
45
|
+
fast: 1.4,
|
|
46
|
+
normal: 2,
|
|
47
|
+
slow: 2.6,
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Mapa que relaciona `LoadingSpeed` com a duração da transição (s) no modo `progress`.
|
|
51
|
+
*/
|
|
52
|
+
const TRANSITION_MAP = {
|
|
53
|
+
fast: 0.3,
|
|
54
|
+
normal: 0.5,
|
|
55
|
+
slow: 0.8,
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Para a documentação completa, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/loading?tab=designer).
|
|
59
|
+
*
|
|
60
|
+
* @category Feedback
|
|
61
|
+
* @status stable
|
|
62
|
+
* @slot label - Rótulo customizado do loading. Quando utilizado, a prop `label` é ignorada.
|
|
63
|
+
* @slot cancel-button - Conteúdo customizado do botão de cancelar. Quando utilizado, a prop `cancelLabel` é ignorada.
|
|
64
|
+
*
|
|
65
|
+
* @part container - Wrapper principal do loading.
|
|
66
|
+
* @part wrapper - Wrapper do conteúdo do spinner/progress.
|
|
67
|
+
* @part svg - Elemento SVG principal do loading.
|
|
68
|
+
* @part percentage - Texto de percentual no modo `progress`.
|
|
69
|
+
* @part label-wrapper - Wrapper do rótulo no modo `spinner`.
|
|
70
|
+
* @part cancel-button - Botão de cancelamento no modo `progress` cancelável.
|
|
71
|
+
*/
|
|
72
|
+
export class Loading {
|
|
73
|
+
constructor() {
|
|
74
|
+
/**
|
|
75
|
+
* Valor exibido no texto de progresso durante a transição.
|
|
76
|
+
*/
|
|
77
|
+
this.displayedValue = 0;
|
|
78
|
+
/**
|
|
79
|
+
* Define a posição da label em relação ao loading.
|
|
80
|
+
* @default 'bottom'
|
|
81
|
+
*/
|
|
82
|
+
this.labelPosition = 'bottom';
|
|
83
|
+
/**
|
|
84
|
+
* Identificador único do componente.
|
|
85
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
86
|
+
*
|
|
87
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
this.customId = generateUniqueId();
|
|
91
|
+
/**
|
|
92
|
+
* Define o modo de exibição do componente.
|
|
93
|
+
* @default 'spinner'
|
|
94
|
+
*/
|
|
95
|
+
this.mode = 'spinner';
|
|
96
|
+
/**
|
|
97
|
+
* Define o tamanho visual nos modos `spinner` e `progress`.
|
|
98
|
+
* @default 'medium'
|
|
99
|
+
* @deprecated Use `density`.
|
|
100
|
+
*/
|
|
101
|
+
this.size = 'medium';
|
|
102
|
+
/**
|
|
103
|
+
* Remove o espaçamento externo e oculta visualmente o rótulo, mantendo-o
|
|
104
|
+
* disponível para tecnologias assistivas. Use em áreas compactas, como
|
|
105
|
+
* controles de paginação ou campos de formulário.
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
this.compact = false;
|
|
109
|
+
/**
|
|
110
|
+
* Define a velocidade da animação/transição.
|
|
111
|
+
* @default 'normal'
|
|
112
|
+
*/
|
|
113
|
+
this.speed = 'normal';
|
|
114
|
+
/**
|
|
115
|
+
* Define o progresso no modo `progress`.
|
|
116
|
+
* No modo `spinner`, esta prop não tem efeito.
|
|
117
|
+
* Valores inválidos são normalizados para `0`.
|
|
118
|
+
* @default 0
|
|
119
|
+
*/
|
|
120
|
+
this.value = 0;
|
|
121
|
+
/**
|
|
122
|
+
* Define o comportamento quando o progresso atinge 100.
|
|
123
|
+
* No modo `spinner`, esta prop não tem efeito.
|
|
124
|
+
* @default 'persist'
|
|
125
|
+
*/
|
|
126
|
+
this.completion = 'persist';
|
|
127
|
+
/**
|
|
128
|
+
* Define se o botão de cancelamento será exibido.
|
|
129
|
+
* Ao pressionar o botão, o evento `brLoadingCancel` é emitido.
|
|
130
|
+
* No modo `spinner`, esta prop não tem efeito.
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
this.cancelable = false;
|
|
134
|
+
/**
|
|
135
|
+
* Define o texto do botão de cancelamento.
|
|
136
|
+
* No modo `spinner`, esta prop não tem efeito.
|
|
137
|
+
* @default 'Cancelar'
|
|
138
|
+
*/
|
|
139
|
+
this.cancelLabel = 'Cancelar';
|
|
140
|
+
/** Último estado lógico de atividade no modo `spinner`. */
|
|
141
|
+
this.isIndeterminateActive = false;
|
|
142
|
+
/**
|
|
143
|
+
* Trata o clique no botão de cancelamento.
|
|
144
|
+
*/
|
|
145
|
+
this.handleCancelClick = () => {
|
|
146
|
+
if (this.mode !== 'progress' || !this.cancelable)
|
|
147
|
+
return;
|
|
148
|
+
this.brLoadingCancel.emit({ value: this.normalizedValue });
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Reage a mudanças em `value` no modo `progress`.
|
|
153
|
+
* @param newValue Novo valor recebido.
|
|
154
|
+
*/
|
|
155
|
+
handleCompletion(newValue) {
|
|
156
|
+
const sanitizedValue = this.normalizeInputValue(newValue);
|
|
157
|
+
if (sanitizedValue !== newValue) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (this.mode !== 'progress')
|
|
161
|
+
return;
|
|
162
|
+
this.brLoadingChange.emit({ value: this.normalizedValue });
|
|
163
|
+
this.syncDisplayedProgress(this.normalizedValue);
|
|
164
|
+
this.applyCompletionBehavior(newValue);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Reage a mudanças em `mode` e atualiza o estado lógico de atividade.
|
|
168
|
+
*/
|
|
169
|
+
handleModeChange() {
|
|
170
|
+
this.syncIndeterminateActiveState();
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Etapa do ciclo de vida: desmontagem do componente.
|
|
174
|
+
* Libera recursos de animação pendentes.
|
|
175
|
+
*/
|
|
176
|
+
disconnectedCallback() {
|
|
177
|
+
this.cleanupProgressResources();
|
|
178
|
+
if (this.isIndeterminateActive) {
|
|
179
|
+
this.isIndeterminateActive = false;
|
|
180
|
+
this.brIndeterminateStateChange.emit({ active: false });
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Etapa do ciclo de vida: antes da primeira renderização.
|
|
185
|
+
* Inicializa o estado visual do progresso.
|
|
186
|
+
*/
|
|
187
|
+
componentWillLoad() {
|
|
188
|
+
this.normalizeInputValue(this.value);
|
|
189
|
+
this.initializeProgressDisplay();
|
|
190
|
+
this.syncIndeterminateActiveState();
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Define o valor do progresso.
|
|
194
|
+
* @param value Valor desejado.
|
|
195
|
+
* @returns Progresso normalizado.
|
|
196
|
+
*/
|
|
197
|
+
async setValue(value) {
|
|
198
|
+
this.normalizeInputValue(value);
|
|
199
|
+
return { value: this.normalizedValue };
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Soma um valor ao progresso atual.
|
|
203
|
+
* @param step Incremento aplicado.
|
|
204
|
+
* @returns Progresso normalizado.
|
|
205
|
+
*/
|
|
206
|
+
async incrementValue(step = 1) {
|
|
207
|
+
this.value = this.normalizedValue + step;
|
|
208
|
+
return { value: this.normalizedValue };
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Define o progresso como concluído.
|
|
212
|
+
* @returns Progresso normalizado.
|
|
213
|
+
*/
|
|
214
|
+
async complete() {
|
|
215
|
+
this.value = 100;
|
|
216
|
+
return { value: this.normalizedValue };
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Reinicia o progresso e exibe o componente.
|
|
220
|
+
* @returns Progresso normalizado.
|
|
221
|
+
*/
|
|
222
|
+
async reset() {
|
|
223
|
+
this.value = 0;
|
|
224
|
+
this.setVisibility(true);
|
|
225
|
+
if (this.mode === 'progress') {
|
|
226
|
+
this.brLoadingReset.emit({ value: this.normalizedValue });
|
|
227
|
+
}
|
|
228
|
+
return { value: this.normalizedValue };
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Exibe o componente.
|
|
232
|
+
* @returns Estado de visibilidade.
|
|
233
|
+
*/
|
|
234
|
+
async show() {
|
|
235
|
+
this.setVisibility(true);
|
|
236
|
+
return { visible: true };
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Oculta o componente.
|
|
240
|
+
* @returns Estado de visibilidade.
|
|
241
|
+
*/
|
|
242
|
+
async hide() {
|
|
243
|
+
this.setVisibility(false);
|
|
244
|
+
return { visible: false };
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Retorna o progresso no intervalo de 0 a 100.
|
|
248
|
+
* @private
|
|
249
|
+
*/
|
|
250
|
+
get normalizedValue() {
|
|
251
|
+
return this.toValidProgressValue(this.value);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Retorna a dimensão do SVG.
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
get dimension() {
|
|
258
|
+
return DIMENSION_MAP[this.mode][this.density ?? this.size];
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Retorna a espessura do traço do círculo.
|
|
262
|
+
* @private
|
|
263
|
+
*/
|
|
264
|
+
get strokeWidth() {
|
|
265
|
+
return STROKE_WIDTH_MAP[this.mode][this.density ?? this.size];
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Retorna o tamanho da fonte do percentual no modo `progress`.
|
|
269
|
+
* @private
|
|
270
|
+
*/
|
|
271
|
+
get percentageFontSize() {
|
|
272
|
+
return PERCENTAGE_FONT_SIZE_MAP[this.density ?? this.size];
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Retorna a coordenada central do SVG.
|
|
276
|
+
* @private
|
|
277
|
+
*/
|
|
278
|
+
get center() {
|
|
279
|
+
return this.dimension / 2;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Retorna o raio útil do círculo.
|
|
283
|
+
* @private
|
|
284
|
+
*/
|
|
285
|
+
get radius() {
|
|
286
|
+
return this.center - this.strokeWidth / 2;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Retorna a circunferência do círculo.
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
get circumference() {
|
|
293
|
+
return 2 * Math.PI * this.radius;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Retorna o deslocamento do traço conforme o progresso.
|
|
297
|
+
* @private
|
|
298
|
+
*/
|
|
299
|
+
get progressOffset() {
|
|
300
|
+
const progress = this.normalizedValue / 100;
|
|
301
|
+
return this.circumference * (1 - progress);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Aplica a ação configurada ao atingir 100% no modo `progress`.
|
|
305
|
+
* @param value Valor atual do progresso.
|
|
306
|
+
*/
|
|
307
|
+
applyCompletionBehavior(value) {
|
|
308
|
+
if (this.mode !== 'progress')
|
|
309
|
+
return;
|
|
310
|
+
if (value >= 100) {
|
|
311
|
+
this.brLoadingComplete.emit({ value: 100, completion: this.completion });
|
|
312
|
+
if (this.completion === 'reset') {
|
|
313
|
+
setTimeout(() => this.reset(), 300);
|
|
314
|
+
}
|
|
315
|
+
if (this.completion === 'hide') {
|
|
316
|
+
this.setVisibility(false);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Inicializa o valor exibido no texto de progresso.
|
|
322
|
+
*/
|
|
323
|
+
initializeProgressDisplay() {
|
|
324
|
+
this.displayedValue = this.normalizedValue;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Libera recursos usados pela animação de progresso.
|
|
328
|
+
*/
|
|
329
|
+
cleanupProgressResources() {
|
|
330
|
+
this.stopProgressAnimation();
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Emite mudança de estado lógico para o modo `spinner` quando necessário.
|
|
334
|
+
*/
|
|
335
|
+
syncIndeterminateActiveState() {
|
|
336
|
+
const shouldBeActive = this.mode === 'spinner' && this.el.style.display !== 'none';
|
|
337
|
+
if (this.isIndeterminateActive === shouldBeActive)
|
|
338
|
+
return;
|
|
339
|
+
this.isIndeterminateActive = shouldBeActive;
|
|
340
|
+
this.brIndeterminateStateChange.emit({ active: shouldBeActive });
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Sincroniza o texto de percentual com a transição visual do círculo.
|
|
344
|
+
* @param targetValue Valor final do progresso normalizado.
|
|
345
|
+
*/
|
|
346
|
+
syncDisplayedProgress(targetValue) {
|
|
347
|
+
if (this.mode !== 'progress') {
|
|
348
|
+
this.displayedValue = targetValue;
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
this.stopProgressAnimation();
|
|
352
|
+
const from = this.displayedValue;
|
|
353
|
+
const to = targetValue;
|
|
354
|
+
const durationMs = TRANSITION_MAP[this.speed] * 1000;
|
|
355
|
+
if (from === to || durationMs <= 0) {
|
|
356
|
+
this.displayedValue = to;
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
const startedAt = performance.now();
|
|
360
|
+
const step = (now) => {
|
|
361
|
+
if (typeof document !== 'undefined' && document.hidden) {
|
|
362
|
+
this.displayedValue = to;
|
|
363
|
+
this.progressAnimationFrameId = undefined;
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const elapsed = Math.min((now - startedAt) / durationMs, 1);
|
|
367
|
+
const eased = this.easeProgress(elapsed);
|
|
368
|
+
this.displayedValue = Math.round(from + (to - from) * eased);
|
|
369
|
+
if (elapsed < 1) {
|
|
370
|
+
this.progressAnimationFrameId = requestAnimationFrame(step);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.displayedValue = to;
|
|
374
|
+
this.progressAnimationFrameId = undefined;
|
|
375
|
+
};
|
|
376
|
+
this.progressAnimationFrameId = requestAnimationFrame(step);
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Interpolação para suavizar a animação do percentual.
|
|
380
|
+
* @param time Progresso normalizado da animação (0 a 1).
|
|
381
|
+
* @returns Valor interpolado entre 0 e 1.
|
|
382
|
+
*/
|
|
383
|
+
easeProgress(time) {
|
|
384
|
+
return time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time) * time;
|
|
385
|
+
}
|
|
386
|
+
/** Cancela a animação de percentual em andamento. */
|
|
387
|
+
stopProgressAnimation() {
|
|
388
|
+
if (this.progressAnimationFrameId === undefined)
|
|
389
|
+
return;
|
|
390
|
+
cancelAnimationFrame(this.progressAnimationFrameId);
|
|
391
|
+
this.progressAnimationFrameId = undefined;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Atualiza a visibilidade e emite o evento correspondente.
|
|
395
|
+
* @param visible Define se o componente ficará visível.
|
|
396
|
+
* @private
|
|
397
|
+
*/
|
|
398
|
+
setVisibility(visible) {
|
|
399
|
+
this.el.style.display = visible ? '' : 'none';
|
|
400
|
+
this.syncIndeterminateActiveState();
|
|
401
|
+
if (visible) {
|
|
402
|
+
this.brDidShow.emit();
|
|
403
|
+
this.brLoadingShow.emit();
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
this.brDidHide.emit();
|
|
407
|
+
this.brLoadingHide.emit();
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Normaliza um valor arbitrário de progresso para o intervalo de 0 a 100.
|
|
411
|
+
* Valores inválidos (incluindo string vazia e NaN) são convertidos para 0.
|
|
412
|
+
* Também sincroniza `this.value` internamente quando necessário.
|
|
413
|
+
*/
|
|
414
|
+
normalizeInputValue(value) {
|
|
415
|
+
const normalizedValue = this.toValidProgressValue(value);
|
|
416
|
+
if (this.value !== normalizedValue) {
|
|
417
|
+
this.value = normalizedValue;
|
|
418
|
+
}
|
|
419
|
+
return normalizedValue;
|
|
420
|
+
}
|
|
421
|
+
toValidProgressValue(value) {
|
|
422
|
+
if (typeof value === 'string' && value.trim() === '') {
|
|
423
|
+
return 0;
|
|
424
|
+
}
|
|
425
|
+
const numericValue = typeof value === 'number' ? value : Number(value);
|
|
426
|
+
if (!Number.isFinite(numericValue)) {
|
|
427
|
+
return 0;
|
|
428
|
+
}
|
|
429
|
+
return clampNumber(numericValue, 0, 100, 0);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Monta o mapa de classes CSS do host interno.
|
|
433
|
+
* @returns Mapa de classes aplicadas.
|
|
434
|
+
* @private
|
|
435
|
+
*/
|
|
436
|
+
getCssClassMap() {
|
|
437
|
+
const cssClassMap = {
|
|
438
|
+
'br-loading': true,
|
|
439
|
+
[`loading-mode-${this.mode}`]: true,
|
|
440
|
+
[`loading-${this.speed}`]: true,
|
|
441
|
+
[`loading-${this.density ?? this.size}`]: true,
|
|
442
|
+
};
|
|
443
|
+
return cssClassMap;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Renderiza o modo `spinner`.
|
|
447
|
+
* @returns Estrutura JSX do spinner.
|
|
448
|
+
*/
|
|
449
|
+
renderIndeterminate() {
|
|
450
|
+
const duration = `${SPEED_MAP[this.speed]}s`;
|
|
451
|
+
return this.renderSpinnerWithLabelPosition(duration);
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Renderiza spinner com label em qualquer posição.
|
|
455
|
+
*/
|
|
456
|
+
renderSpinnerWithLabelPosition(duration) {
|
|
457
|
+
const label = this.label && (h("div", { class: `loading-label loading-label-${this.labelPosition}`, part: "label-wrapper" }, h("slot", { name: "label" }, this.label)));
|
|
458
|
+
const spinner = (h("svg", { part: "svg", class: "loading-spinner", width: this.dimension, height: this.dimension, viewBox: `0 0 ${this.dimension} ${this.dimension}`, role: "progressbar", "aria-busy": "true", "aria-label": this.label || 'Carregando', style: {
|
|
459
|
+
'--loading-animation-duration': duration,
|
|
460
|
+
} }, h("circle", { class: "loading-indicator", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth, "stroke-dasharray": this.circumference, "stroke-dashoffset": this.circumference * 0.75 })));
|
|
461
|
+
// Layout flexível para cada posição
|
|
462
|
+
switch (this.labelPosition) {
|
|
463
|
+
case 'top':
|
|
464
|
+
return (h("div", { class: "loading-wrapper loading-label-top", part: "wrapper" }, label, spinner));
|
|
465
|
+
case 'right':
|
|
466
|
+
return (h("div", { class: "loading-wrapper loading-label-right", part: "wrapper" }, spinner, label));
|
|
467
|
+
case 'left':
|
|
468
|
+
return (h("div", { class: "loading-wrapper loading-label-left", part: "wrapper" }, label, spinner));
|
|
469
|
+
default:
|
|
470
|
+
return (h("div", { class: "loading-wrapper loading-label-bottom", part: "wrapper" }, spinner, label));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Renderiza o modo `progress`.
|
|
475
|
+
* @returns Estrutura JSX do progresso circular.
|
|
476
|
+
* @private
|
|
477
|
+
*/
|
|
478
|
+
renderDeterminate() {
|
|
479
|
+
const transitionDuration = `${TRANSITION_MAP[this.speed]}s`;
|
|
480
|
+
const progressStyle = {
|
|
481
|
+
'--loading-transition-duration': transitionDuration,
|
|
482
|
+
'--loading-percentage-font-size': this.percentageFontSize,
|
|
483
|
+
};
|
|
484
|
+
return (h("div", { class: "loading-wrapper", part: "wrapper" }, h("svg", { part: "svg", class: "loading-progress", width: this.dimension, height: this.dimension, viewBox: `0 0 ${this.dimension} ${this.dimension}`, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.normalizedValue, style: progressStyle }, h("circle", { class: "loading-spinner-track", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth }), h("circle", { class: "loading-indicator-progress", cx: this.center, cy: this.center, r: this.radius, fill: "none", "stroke-width": this.strokeWidth, "stroke-dasharray": this.circumference, "stroke-dashoffset": this.progressOffset }), h("text", { part: "percentage", class: "loading-percentage", x: "50%", y: "50%", dy: ".35em", "text-anchor": "middle" }, this.displayedValue, "%")), this.cancelable && (h("br-button", { ref: (el) => setPartAttributes(el, 'cancel-button', 'button: cancel-button-inner'), emphasis: "tertiary", type: "button", "prop:ariaLabel": this.cancelLabel, onClick: this.handleCancelClick }, h("slot", { name: "cancel-button" }, this.cancelLabel)))));
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Renderiza o componente conforme o modo atual.
|
|
488
|
+
* @returns Estrutura JSX final.
|
|
489
|
+
*/
|
|
490
|
+
render() {
|
|
491
|
+
return (h(Host, { key: '44a334442038cbd20c02bd5c6ebc1dca232c4023' }, h("div", { key: '42b32ce541fa6ff8e52c66423ae6f5a46d299a5e', class: this.getCssClassMap(), part: "container" }, this.mode === 'spinner' ? this.renderIndeterminate() : this.renderDeterminate())));
|
|
492
|
+
}
|
|
493
|
+
static get is() { return "br-loading"; }
|
|
494
|
+
static get encapsulation() { return "shadow"; }
|
|
495
|
+
static get originalStyleUrls() {
|
|
496
|
+
return {
|
|
497
|
+
"$": ["loading.scss"]
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
static get styleUrls() {
|
|
501
|
+
return {
|
|
502
|
+
"$": ["loading.css"]
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
static get properties() {
|
|
506
|
+
return {
|
|
507
|
+
"labelPosition": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"mutable": false,
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "LoadingLabelPosition",
|
|
512
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
513
|
+
"references": {
|
|
514
|
+
"LoadingLabelPosition": {
|
|
515
|
+
"location": "import",
|
|
516
|
+
"path": "./loading.types",
|
|
517
|
+
"id": "src/components/loading/loading.types.ts::LoadingLabelPosition",
|
|
518
|
+
"referenceLocation": "LoadingLabelPosition"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"required": false,
|
|
523
|
+
"optional": false,
|
|
524
|
+
"docs": {
|
|
525
|
+
"tags": [{
|
|
526
|
+
"name": "default",
|
|
527
|
+
"text": "'bottom'"
|
|
528
|
+
}],
|
|
529
|
+
"text": "Define a posi\u00E7\u00E3o da label em rela\u00E7\u00E3o ao loading."
|
|
530
|
+
},
|
|
531
|
+
"getter": false,
|
|
532
|
+
"setter": false,
|
|
533
|
+
"reflect": true,
|
|
534
|
+
"attribute": "label-position",
|
|
535
|
+
"defaultValue": "'bottom'"
|
|
536
|
+
},
|
|
537
|
+
"customId": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "string",
|
|
542
|
+
"resolved": "string",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": true,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "Identificador \u00FAnico do componente.\nQuando omitido, um valor \u00E9 gerado automaticamente.\n\n> **Padr\u00E3o:** valor \u00FAnico gerado por generateUniqueId()."
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"reflect": true,
|
|
554
|
+
"attribute": "custom-id",
|
|
555
|
+
"defaultValue": "generateUniqueId()"
|
|
556
|
+
},
|
|
557
|
+
"mode": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "LoadingMode",
|
|
562
|
+
"resolved": "\"progress\" | \"spinner\"",
|
|
563
|
+
"references": {
|
|
564
|
+
"LoadingMode": {
|
|
565
|
+
"location": "import",
|
|
566
|
+
"path": "./loading.types",
|
|
567
|
+
"id": "src/components/loading/loading.types.ts::LoadingMode",
|
|
568
|
+
"referenceLocation": "LoadingMode"
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"required": false,
|
|
573
|
+
"optional": false,
|
|
574
|
+
"docs": {
|
|
575
|
+
"tags": [{
|
|
576
|
+
"name": "default",
|
|
577
|
+
"text": "'spinner'"
|
|
578
|
+
}],
|
|
579
|
+
"text": "Define o modo de exibi\u00E7\u00E3o do componente."
|
|
580
|
+
},
|
|
581
|
+
"getter": false,
|
|
582
|
+
"setter": false,
|
|
583
|
+
"reflect": true,
|
|
584
|
+
"attribute": "mode",
|
|
585
|
+
"defaultValue": "'spinner'"
|
|
586
|
+
},
|
|
587
|
+
"size": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "LoadingSize",
|
|
592
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
593
|
+
"references": {
|
|
594
|
+
"LoadingSize": {
|
|
595
|
+
"location": "import",
|
|
596
|
+
"path": "./loading.types",
|
|
597
|
+
"id": "src/components/loading/loading.types.ts::LoadingSize",
|
|
598
|
+
"referenceLocation": "LoadingSize"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"required": false,
|
|
603
|
+
"optional": false,
|
|
604
|
+
"docs": {
|
|
605
|
+
"tags": [{
|
|
606
|
+
"name": "default",
|
|
607
|
+
"text": "'medium'"
|
|
608
|
+
}, {
|
|
609
|
+
"name": "deprecated",
|
|
610
|
+
"text": "Use `density`."
|
|
611
|
+
}],
|
|
612
|
+
"text": "Define o tamanho visual nos modos `spinner` e `progress`."
|
|
613
|
+
},
|
|
614
|
+
"getter": false,
|
|
615
|
+
"setter": false,
|
|
616
|
+
"reflect": true,
|
|
617
|
+
"attribute": "size",
|
|
618
|
+
"defaultValue": "'medium'"
|
|
619
|
+
},
|
|
620
|
+
"density": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"mutable": false,
|
|
623
|
+
"complexType": {
|
|
624
|
+
"original": "LoadingSize",
|
|
625
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
626
|
+
"references": {
|
|
627
|
+
"LoadingSize": {
|
|
628
|
+
"location": "import",
|
|
629
|
+
"path": "./loading.types",
|
|
630
|
+
"id": "src/components/loading/loading.types.ts::LoadingSize",
|
|
631
|
+
"referenceLocation": "LoadingSize"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"required": false,
|
|
636
|
+
"optional": true,
|
|
637
|
+
"docs": {
|
|
638
|
+
"tags": [],
|
|
639
|
+
"text": "Densidade visual can\u00F4nica. Quando informada, tem preced\u00EAncia sobre `size`."
|
|
640
|
+
},
|
|
641
|
+
"getter": false,
|
|
642
|
+
"setter": false,
|
|
643
|
+
"reflect": true,
|
|
644
|
+
"attribute": "density"
|
|
645
|
+
},
|
|
646
|
+
"compact": {
|
|
647
|
+
"type": "boolean",
|
|
648
|
+
"mutable": false,
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "boolean",
|
|
651
|
+
"resolved": "boolean",
|
|
652
|
+
"references": {}
|
|
653
|
+
},
|
|
654
|
+
"required": false,
|
|
655
|
+
"optional": false,
|
|
656
|
+
"docs": {
|
|
657
|
+
"tags": [{
|
|
658
|
+
"name": "default",
|
|
659
|
+
"text": "false"
|
|
660
|
+
}],
|
|
661
|
+
"text": "Remove o espa\u00E7amento externo e oculta visualmente o r\u00F3tulo, mantendo-o\ndispon\u00EDvel para tecnologias assistivas. Use em \u00E1reas compactas, como\ncontroles de pagina\u00E7\u00E3o ou campos de formul\u00E1rio."
|
|
662
|
+
},
|
|
663
|
+
"getter": false,
|
|
664
|
+
"setter": false,
|
|
665
|
+
"reflect": true,
|
|
666
|
+
"attribute": "compact",
|
|
667
|
+
"defaultValue": "false"
|
|
668
|
+
},
|
|
669
|
+
"speed": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"mutable": false,
|
|
672
|
+
"complexType": {
|
|
673
|
+
"original": "LoadingSpeed",
|
|
674
|
+
"resolved": "\"fast\" | \"normal\" | \"slow\"",
|
|
675
|
+
"references": {
|
|
676
|
+
"LoadingSpeed": {
|
|
677
|
+
"location": "import",
|
|
678
|
+
"path": "./loading.types",
|
|
679
|
+
"id": "src/components/loading/loading.types.ts::LoadingSpeed",
|
|
680
|
+
"referenceLocation": "LoadingSpeed"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": false,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [{
|
|
688
|
+
"name": "default",
|
|
689
|
+
"text": "'normal'"
|
|
690
|
+
}],
|
|
691
|
+
"text": "Define a velocidade da anima\u00E7\u00E3o/transi\u00E7\u00E3o."
|
|
692
|
+
},
|
|
693
|
+
"getter": false,
|
|
694
|
+
"setter": false,
|
|
695
|
+
"reflect": true,
|
|
696
|
+
"attribute": "speed",
|
|
697
|
+
"defaultValue": "'normal'"
|
|
698
|
+
},
|
|
699
|
+
"label": {
|
|
700
|
+
"type": "string",
|
|
701
|
+
"mutable": false,
|
|
702
|
+
"complexType": {
|
|
703
|
+
"original": "string",
|
|
704
|
+
"resolved": "string",
|
|
705
|
+
"references": {}
|
|
706
|
+
},
|
|
707
|
+
"required": false,
|
|
708
|
+
"optional": true,
|
|
709
|
+
"docs": {
|
|
710
|
+
"tags": [{
|
|
711
|
+
"name": "default",
|
|
712
|
+
"text": "undefined"
|
|
713
|
+
}],
|
|
714
|
+
"text": "Define o r\u00F3tulo exibido no modo `spinner`.\nNo modo `progress`, esta prop n\u00E3o tem efeito."
|
|
715
|
+
},
|
|
716
|
+
"getter": false,
|
|
717
|
+
"setter": false,
|
|
718
|
+
"reflect": true,
|
|
719
|
+
"attribute": "label"
|
|
720
|
+
},
|
|
721
|
+
"value": {
|
|
722
|
+
"type": "number",
|
|
723
|
+
"mutable": true,
|
|
724
|
+
"complexType": {
|
|
725
|
+
"original": "number",
|
|
726
|
+
"resolved": "number",
|
|
727
|
+
"references": {}
|
|
728
|
+
},
|
|
729
|
+
"required": false,
|
|
730
|
+
"optional": false,
|
|
731
|
+
"docs": {
|
|
732
|
+
"tags": [{
|
|
733
|
+
"name": "default",
|
|
734
|
+
"text": "0"
|
|
735
|
+
}],
|
|
736
|
+
"text": "Define o progresso no modo `progress`.\nNo modo `spinner`, esta prop n\u00E3o tem efeito.\nValores inv\u00E1lidos s\u00E3o normalizados para `0`."
|
|
737
|
+
},
|
|
738
|
+
"getter": false,
|
|
739
|
+
"setter": false,
|
|
740
|
+
"reflect": true,
|
|
741
|
+
"attribute": "value",
|
|
742
|
+
"defaultValue": "0"
|
|
743
|
+
},
|
|
744
|
+
"completion": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"mutable": false,
|
|
747
|
+
"complexType": {
|
|
748
|
+
"original": "LoadingCompletionBehavior",
|
|
749
|
+
"resolved": "\"hide\" | \"persist\" | \"reset\"",
|
|
750
|
+
"references": {
|
|
751
|
+
"LoadingCompletionBehavior": {
|
|
752
|
+
"location": "import",
|
|
753
|
+
"path": "./loading.types",
|
|
754
|
+
"id": "src/components/loading/loading.types.ts::LoadingCompletionBehavior",
|
|
755
|
+
"referenceLocation": "LoadingCompletionBehavior"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"required": false,
|
|
760
|
+
"optional": false,
|
|
761
|
+
"docs": {
|
|
762
|
+
"tags": [{
|
|
763
|
+
"name": "default",
|
|
764
|
+
"text": "'persist'"
|
|
765
|
+
}],
|
|
766
|
+
"text": "Define o comportamento quando o progresso atinge 100.\nNo modo `spinner`, esta prop n\u00E3o tem efeito."
|
|
767
|
+
},
|
|
768
|
+
"getter": false,
|
|
769
|
+
"setter": false,
|
|
770
|
+
"reflect": true,
|
|
771
|
+
"attribute": "completion",
|
|
772
|
+
"defaultValue": "'persist'"
|
|
773
|
+
},
|
|
774
|
+
"cancelable": {
|
|
775
|
+
"type": "boolean",
|
|
776
|
+
"mutable": false,
|
|
777
|
+
"complexType": {
|
|
778
|
+
"original": "boolean",
|
|
779
|
+
"resolved": "boolean",
|
|
780
|
+
"references": {}
|
|
781
|
+
},
|
|
782
|
+
"required": false,
|
|
783
|
+
"optional": false,
|
|
784
|
+
"docs": {
|
|
785
|
+
"tags": [{
|
|
786
|
+
"name": "default",
|
|
787
|
+
"text": "false"
|
|
788
|
+
}],
|
|
789
|
+
"text": "Define se o bot\u00E3o de cancelamento ser\u00E1 exibido.\nAo pressionar o bot\u00E3o, o evento `brLoadingCancel` \u00E9 emitido.\nNo modo `spinner`, esta prop n\u00E3o tem efeito."
|
|
790
|
+
},
|
|
791
|
+
"getter": false,
|
|
792
|
+
"setter": false,
|
|
793
|
+
"reflect": true,
|
|
794
|
+
"attribute": "cancelable",
|
|
795
|
+
"defaultValue": "false"
|
|
796
|
+
},
|
|
797
|
+
"cancelLabel": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"mutable": false,
|
|
800
|
+
"complexType": {
|
|
801
|
+
"original": "string",
|
|
802
|
+
"resolved": "string",
|
|
803
|
+
"references": {}
|
|
804
|
+
},
|
|
805
|
+
"required": false,
|
|
806
|
+
"optional": false,
|
|
807
|
+
"docs": {
|
|
808
|
+
"tags": [{
|
|
809
|
+
"name": "default",
|
|
810
|
+
"text": "'Cancelar'"
|
|
811
|
+
}],
|
|
812
|
+
"text": "Define o texto do bot\u00E3o de cancelamento.\nNo modo `spinner`, esta prop n\u00E3o tem efeito."
|
|
813
|
+
},
|
|
814
|
+
"getter": false,
|
|
815
|
+
"setter": false,
|
|
816
|
+
"reflect": true,
|
|
817
|
+
"attribute": "cancel-label",
|
|
818
|
+
"defaultValue": "'Cancelar'"
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
static get states() {
|
|
823
|
+
return {
|
|
824
|
+
"displayedValue": {}
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
static get events() {
|
|
828
|
+
return [{
|
|
829
|
+
"method": "brLoadingChange",
|
|
830
|
+
"name": "brLoadingChange",
|
|
831
|
+
"bubbles": true,
|
|
832
|
+
"cancelable": false,
|
|
833
|
+
"composed": true,
|
|
834
|
+
"docs": {
|
|
835
|
+
"tags": [{
|
|
836
|
+
"name": "event",
|
|
837
|
+
"text": "brLoadingChange\nPayload (`LoadingChangeDetail`):\n- `value` (`number`): progresso normalizado (0 a 100)."
|
|
838
|
+
}],
|
|
839
|
+
"text": "Notifica mudan\u00E7a de progresso no modo `progress`."
|
|
840
|
+
},
|
|
841
|
+
"complexType": {
|
|
842
|
+
"original": "LoadingChangeDetail",
|
|
843
|
+
"resolved": "{ value: number; }",
|
|
844
|
+
"references": {
|
|
845
|
+
"LoadingChangeDetail": {
|
|
846
|
+
"location": "import",
|
|
847
|
+
"path": "./loading.types",
|
|
848
|
+
"id": "src/components/loading/loading.types.ts::LoadingChangeDetail",
|
|
849
|
+
"referenceLocation": "LoadingChangeDetail"
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}, {
|
|
854
|
+
"method": "brLoadingComplete",
|
|
855
|
+
"name": "brLoadingComplete",
|
|
856
|
+
"bubbles": true,
|
|
857
|
+
"cancelable": false,
|
|
858
|
+
"composed": true,
|
|
859
|
+
"docs": {
|
|
860
|
+
"tags": [{
|
|
861
|
+
"name": "event",
|
|
862
|
+
"text": "brLoadingComplete\nPayload (`LoadingCompleteDetail`):\n- `value` (`number`): progresso normalizado (0 a 100).\n- `completion` (`LoadingCompletionBehavior`): a\u00E7\u00E3o aplicada ao atingir 100%.\n- `persist`: mant\u00E9m o loading em 100%.\n- `reset`: reinicia o progresso para 0.\n- `hide`: oculta o componente."
|
|
863
|
+
}],
|
|
864
|
+
"text": "Notifica conclus\u00E3o do progresso no modo `progress`."
|
|
865
|
+
},
|
|
866
|
+
"complexType": {
|
|
867
|
+
"original": "LoadingCompleteDetail",
|
|
868
|
+
"resolved": "{ value: number; completion: LoadingCompletionBehavior; }",
|
|
869
|
+
"references": {
|
|
870
|
+
"LoadingCompleteDetail": {
|
|
871
|
+
"location": "import",
|
|
872
|
+
"path": "./loading.types",
|
|
873
|
+
"id": "src/components/loading/loading.types.ts::LoadingCompleteDetail",
|
|
874
|
+
"referenceLocation": "LoadingCompleteDetail"
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}, {
|
|
879
|
+
"method": "brLoadingReset",
|
|
880
|
+
"name": "brLoadingReset",
|
|
881
|
+
"bubbles": true,
|
|
882
|
+
"cancelable": false,
|
|
883
|
+
"composed": true,
|
|
884
|
+
"docs": {
|
|
885
|
+
"tags": [{
|
|
886
|
+
"name": "event",
|
|
887
|
+
"text": "brLoadingReset\nPayload (`LoadingValueDetail`):\n- `value` (`number`): valor do progresso ap\u00F3s o reset."
|
|
888
|
+
}],
|
|
889
|
+
"text": "Notifica rein\u00EDcio do progresso no modo `progress`."
|
|
890
|
+
},
|
|
891
|
+
"complexType": {
|
|
892
|
+
"original": "LoadingValueDetail",
|
|
893
|
+
"resolved": "{ value: number; }",
|
|
894
|
+
"references": {
|
|
895
|
+
"LoadingValueDetail": {
|
|
896
|
+
"location": "import",
|
|
897
|
+
"path": "./loading.types",
|
|
898
|
+
"id": "src/components/loading/loading.types.ts::LoadingValueDetail",
|
|
899
|
+
"referenceLocation": "LoadingValueDetail"
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}, {
|
|
904
|
+
"method": "brLoadingCancel",
|
|
905
|
+
"name": "brLoadingCancel",
|
|
906
|
+
"bubbles": true,
|
|
907
|
+
"cancelable": false,
|
|
908
|
+
"composed": true,
|
|
909
|
+
"docs": {
|
|
910
|
+
"tags": [{
|
|
911
|
+
"name": "event",
|
|
912
|
+
"text": "brLoadingCancel\nPayload (`LoadingValueDetail`):\n- `value` (`number`): valor de progresso no momento do cancelamento."
|
|
913
|
+
}],
|
|
914
|
+
"text": "Notifica clique no bot\u00E3o de cancelamento no modo `progress`.\nEste evento n\u00E3o altera o progresso automaticamente.\nA aplica\u00E7\u00E3o consumidora define a a\u00E7\u00E3o ap\u00F3s o cancelamento (ex.: limpar ou ocultar)."
|
|
915
|
+
},
|
|
916
|
+
"complexType": {
|
|
917
|
+
"original": "LoadingValueDetail",
|
|
918
|
+
"resolved": "{ value: number; }",
|
|
919
|
+
"references": {
|
|
920
|
+
"LoadingValueDetail": {
|
|
921
|
+
"location": "import",
|
|
922
|
+
"path": "./loading.types",
|
|
923
|
+
"id": "src/components/loading/loading.types.ts::LoadingValueDetail",
|
|
924
|
+
"referenceLocation": "LoadingValueDetail"
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}, {
|
|
929
|
+
"method": "brIndeterminateStateChange",
|
|
930
|
+
"name": "brIndeterminateStateChange",
|
|
931
|
+
"bubbles": true,
|
|
932
|
+
"cancelable": false,
|
|
933
|
+
"composed": true,
|
|
934
|
+
"docs": {
|
|
935
|
+
"tags": [{
|
|
936
|
+
"name": "event",
|
|
937
|
+
"text": "brIndeterminateStateChange\nPayload (`LoadingIndeterminateStateDetail`):\n- `active` (`boolean`): `true` quando ativo; `false` quando inativo."
|
|
938
|
+
}],
|
|
939
|
+
"text": "Notifica mudan\u00E7a do estado l\u00F3gico no modo `spinner`."
|
|
940
|
+
},
|
|
941
|
+
"complexType": {
|
|
942
|
+
"original": "LoadingIndeterminateStateDetail",
|
|
943
|
+
"resolved": "{ active: boolean; }",
|
|
944
|
+
"references": {
|
|
945
|
+
"LoadingIndeterminateStateDetail": {
|
|
946
|
+
"location": "import",
|
|
947
|
+
"path": "./loading.types",
|
|
948
|
+
"id": "src/components/loading/loading.types.ts::LoadingIndeterminateStateDetail",
|
|
949
|
+
"referenceLocation": "LoadingIndeterminateStateDetail"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}, {
|
|
954
|
+
"method": "brDidShow",
|
|
955
|
+
"name": "brDidShow",
|
|
956
|
+
"bubbles": true,
|
|
957
|
+
"cancelable": false,
|
|
958
|
+
"composed": true,
|
|
959
|
+
"docs": {
|
|
960
|
+
"tags": [{
|
|
961
|
+
"name": "event",
|
|
962
|
+
"text": "brDidShow\nPayload: `void`."
|
|
963
|
+
}],
|
|
964
|
+
"text": "Notifica que o componente foi exibido."
|
|
965
|
+
},
|
|
966
|
+
"complexType": {
|
|
967
|
+
"original": "void",
|
|
968
|
+
"resolved": "void",
|
|
969
|
+
"references": {}
|
|
970
|
+
}
|
|
971
|
+
}, {
|
|
972
|
+
"method": "brLoadingShow",
|
|
973
|
+
"name": "brLoadingShow",
|
|
974
|
+
"bubbles": true,
|
|
975
|
+
"cancelable": false,
|
|
976
|
+
"composed": true,
|
|
977
|
+
"docs": {
|
|
978
|
+
"tags": [],
|
|
979
|
+
"text": "Evento can\u00F4nico emitido quando o loading \u00E9 exibido."
|
|
980
|
+
},
|
|
981
|
+
"complexType": {
|
|
982
|
+
"original": "void",
|
|
983
|
+
"resolved": "void",
|
|
984
|
+
"references": {}
|
|
985
|
+
}
|
|
986
|
+
}, {
|
|
987
|
+
"method": "brDidHide",
|
|
988
|
+
"name": "brDidHide",
|
|
989
|
+
"bubbles": true,
|
|
990
|
+
"cancelable": false,
|
|
991
|
+
"composed": true,
|
|
992
|
+
"docs": {
|
|
993
|
+
"tags": [{
|
|
994
|
+
"name": "event",
|
|
995
|
+
"text": "brDidHide\nPayload: `void`."
|
|
996
|
+
}],
|
|
997
|
+
"text": "Notifica que o componente foi ocultado."
|
|
998
|
+
},
|
|
999
|
+
"complexType": {
|
|
1000
|
+
"original": "void",
|
|
1001
|
+
"resolved": "void",
|
|
1002
|
+
"references": {}
|
|
1003
|
+
}
|
|
1004
|
+
}, {
|
|
1005
|
+
"method": "brLoadingHide",
|
|
1006
|
+
"name": "brLoadingHide",
|
|
1007
|
+
"bubbles": true,
|
|
1008
|
+
"cancelable": false,
|
|
1009
|
+
"composed": true,
|
|
1010
|
+
"docs": {
|
|
1011
|
+
"tags": [],
|
|
1012
|
+
"text": "Evento can\u00F4nico emitido quando o loading \u00E9 ocultado."
|
|
1013
|
+
},
|
|
1014
|
+
"complexType": {
|
|
1015
|
+
"original": "void",
|
|
1016
|
+
"resolved": "void",
|
|
1017
|
+
"references": {}
|
|
1018
|
+
}
|
|
1019
|
+
}];
|
|
1020
|
+
}
|
|
1021
|
+
static get methods() {
|
|
1022
|
+
return {
|
|
1023
|
+
"setValue": {
|
|
1024
|
+
"complexType": {
|
|
1025
|
+
"signature": "(value: number) => Promise<{ value: number; }>",
|
|
1026
|
+
"parameters": [{
|
|
1027
|
+
"name": "value",
|
|
1028
|
+
"type": "number",
|
|
1029
|
+
"docs": "Valor desejado."
|
|
1030
|
+
}],
|
|
1031
|
+
"references": {
|
|
1032
|
+
"Promise": {
|
|
1033
|
+
"location": "global",
|
|
1034
|
+
"id": "global::Promise"
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
"return": "Promise<{ value: number; }>"
|
|
1038
|
+
},
|
|
1039
|
+
"docs": {
|
|
1040
|
+
"text": "Define o valor do progresso.",
|
|
1041
|
+
"tags": [{
|
|
1042
|
+
"name": "param",
|
|
1043
|
+
"text": "value Valor desejado."
|
|
1044
|
+
}, {
|
|
1045
|
+
"name": "returns",
|
|
1046
|
+
"text": "Progresso normalizado."
|
|
1047
|
+
}]
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"incrementValue": {
|
|
1051
|
+
"complexType": {
|
|
1052
|
+
"signature": "(step?: number) => Promise<{ value: number; }>",
|
|
1053
|
+
"parameters": [{
|
|
1054
|
+
"name": "step",
|
|
1055
|
+
"type": "number",
|
|
1056
|
+
"docs": "Incremento aplicado."
|
|
1057
|
+
}],
|
|
1058
|
+
"references": {
|
|
1059
|
+
"Promise": {
|
|
1060
|
+
"location": "global",
|
|
1061
|
+
"id": "global::Promise"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"return": "Promise<{ value: number; }>"
|
|
1065
|
+
},
|
|
1066
|
+
"docs": {
|
|
1067
|
+
"text": "Soma um valor ao progresso atual.",
|
|
1068
|
+
"tags": [{
|
|
1069
|
+
"name": "param",
|
|
1070
|
+
"text": "step Incremento aplicado."
|
|
1071
|
+
}, {
|
|
1072
|
+
"name": "returns",
|
|
1073
|
+
"text": "Progresso normalizado."
|
|
1074
|
+
}]
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"complete": {
|
|
1078
|
+
"complexType": {
|
|
1079
|
+
"signature": "() => Promise<{ value: number; }>",
|
|
1080
|
+
"parameters": [],
|
|
1081
|
+
"references": {
|
|
1082
|
+
"Promise": {
|
|
1083
|
+
"location": "global",
|
|
1084
|
+
"id": "global::Promise"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"return": "Promise<{ value: number; }>"
|
|
1088
|
+
},
|
|
1089
|
+
"docs": {
|
|
1090
|
+
"text": "Define o progresso como conclu\u00EDdo.",
|
|
1091
|
+
"tags": [{
|
|
1092
|
+
"name": "returns",
|
|
1093
|
+
"text": "Progresso normalizado."
|
|
1094
|
+
}]
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"reset": {
|
|
1098
|
+
"complexType": {
|
|
1099
|
+
"signature": "() => Promise<{ value: number; }>",
|
|
1100
|
+
"parameters": [],
|
|
1101
|
+
"references": {
|
|
1102
|
+
"Promise": {
|
|
1103
|
+
"location": "global",
|
|
1104
|
+
"id": "global::Promise"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"return": "Promise<{ value: number; }>"
|
|
1108
|
+
},
|
|
1109
|
+
"docs": {
|
|
1110
|
+
"text": "Reinicia o progresso e exibe o componente.",
|
|
1111
|
+
"tags": [{
|
|
1112
|
+
"name": "returns",
|
|
1113
|
+
"text": "Progresso normalizado."
|
|
1114
|
+
}]
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"show": {
|
|
1118
|
+
"complexType": {
|
|
1119
|
+
"signature": "() => Promise<{ visible: boolean; }>",
|
|
1120
|
+
"parameters": [],
|
|
1121
|
+
"references": {
|
|
1122
|
+
"Promise": {
|
|
1123
|
+
"location": "global",
|
|
1124
|
+
"id": "global::Promise"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"return": "Promise<{ visible: boolean; }>"
|
|
1128
|
+
},
|
|
1129
|
+
"docs": {
|
|
1130
|
+
"text": "Exibe o componente.",
|
|
1131
|
+
"tags": [{
|
|
1132
|
+
"name": "returns",
|
|
1133
|
+
"text": "Estado de visibilidade."
|
|
1134
|
+
}]
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"hide": {
|
|
1138
|
+
"complexType": {
|
|
1139
|
+
"signature": "() => Promise<{ visible: boolean; }>",
|
|
1140
|
+
"parameters": [],
|
|
1141
|
+
"references": {
|
|
1142
|
+
"Promise": {
|
|
1143
|
+
"location": "global",
|
|
1144
|
+
"id": "global::Promise"
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"return": "Promise<{ visible: boolean; }>"
|
|
1148
|
+
},
|
|
1149
|
+
"docs": {
|
|
1150
|
+
"text": "Oculta o componente.",
|
|
1151
|
+
"tags": [{
|
|
1152
|
+
"name": "returns",
|
|
1153
|
+
"text": "Estado de visibilidade."
|
|
1154
|
+
}]
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
static get elementRef() { return "el"; }
|
|
1160
|
+
static get watchers() {
|
|
1161
|
+
return [{
|
|
1162
|
+
"propName": "value",
|
|
1163
|
+
"methodName": "handleCompletion"
|
|
1164
|
+
}, {
|
|
1165
|
+
"propName": "mode",
|
|
1166
|
+
"methodName": "handleModeChange"
|
|
1167
|
+
}];
|
|
1168
|
+
}
|
|
1169
|
+
}
|