@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,1153 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h, } from "@stencil/core";
|
|
6
|
+
import { redispatchNativeFormEvent } from "../../shared/utils/event";
|
|
7
|
+
import { getFormValidationState, isFormControlDisabled, safeSetFormValue, syncNativeFormValidity, } from "../../shared/utils/form";
|
|
8
|
+
import { getNextEnabledElement } from "../../shared/utils/getNextElement";
|
|
9
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
10
|
+
import { hasAssignedSlotContent } from "../../shared/utils/slot";
|
|
11
|
+
import { resolveFormValidator, runFormValidator } from "../../shared/utils/validator";
|
|
12
|
+
const SHAPE_CIRCLE = 'circle';
|
|
13
|
+
const SHAPE_ROUNDED = 'rounded';
|
|
14
|
+
const SHAPE_DEFAULT = 'default';
|
|
15
|
+
/**
|
|
16
|
+
* 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/textarea?tag=designer).
|
|
17
|
+
*
|
|
18
|
+
* @category Conteúdo
|
|
19
|
+
* @status stable
|
|
20
|
+
* @slot default - Slot para inserir o conteúdo da tag, como rótulo ou ícone.
|
|
21
|
+
* @slot label - Rótulo customizado da tag. Quando utilizado, a prop `label` é ignorada.
|
|
22
|
+
* @slot icon - Ícone customizado da tag. Quando utilizado, a prop `icon` é ignorada.
|
|
23
|
+
* @slot close-button - Botão de fechar customizado. Quando utilizado, o botão padrão é substituído.
|
|
24
|
+
* @slot feedback - Mensagem de validação, normalmente um `br-message`.
|
|
25
|
+
*
|
|
26
|
+
* @part tag - Elemento principal da tag.
|
|
27
|
+
* @part input - Elemento input da tag de seleção.
|
|
28
|
+
* @part label - Rótulo da tag de seleção.
|
|
29
|
+
* @part feedback - Contêiner da mensagem de validação.
|
|
30
|
+
*/
|
|
31
|
+
export class Tag {
|
|
32
|
+
constructor() {
|
|
33
|
+
/**
|
|
34
|
+
* Tag está selecionada.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Tamanho customizado normalizado a partir da prop ou do atributo no host.
|
|
38
|
+
*/
|
|
39
|
+
this.customSizeValue = '';
|
|
40
|
+
this.formDisabled = false;
|
|
41
|
+
this.hasFeedbackSlot = false;
|
|
42
|
+
this.customValidationMessage = '';
|
|
43
|
+
this.validatorMessage = null;
|
|
44
|
+
this.isValidating = false;
|
|
45
|
+
/**
|
|
46
|
+
* A propriedade 'label' é uma string que representa o texto a ser exibido no componente.
|
|
47
|
+
* Ela é refletida no DOM, permitindo que alterações no valor sejam refletidas no elemento HTML correspondente.
|
|
48
|
+
*/
|
|
49
|
+
this.label = '';
|
|
50
|
+
/**
|
|
51
|
+
* A propriedade 'iconName' define um nome Iconify para o ícone exibido ao lado do texto.
|
|
52
|
+
* @deprecated Use o slot `icon` com um SVG, asset ou elemento de ícone controlado pela aplicação.
|
|
53
|
+
*/
|
|
54
|
+
this.iconName = '';
|
|
55
|
+
/**
|
|
56
|
+
* A propriedade 'name' é uma string que representa o nome do grupo da tag para seleção.
|
|
57
|
+
* Ela é refletida no DOM, permitindo que alterações no valor sejam refletidas no elemento HTML correspondente.
|
|
58
|
+
*/
|
|
59
|
+
this.name = '';
|
|
60
|
+
/** Valor submetido quando a tag selecionável está ativa. */
|
|
61
|
+
this.value = '';
|
|
62
|
+
/**
|
|
63
|
+
* A tag permite seleção múltipla.
|
|
64
|
+
*/
|
|
65
|
+
this.multiple = false;
|
|
66
|
+
/**
|
|
67
|
+
* A tag está selecionada.
|
|
68
|
+
*/
|
|
69
|
+
this.selected = false;
|
|
70
|
+
/**
|
|
71
|
+
* Identificador único do componente.
|
|
72
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
73
|
+
*
|
|
74
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
this.customId = generateUniqueId();
|
|
78
|
+
/**
|
|
79
|
+
* A propriedade 'color' permite definir a cor do componente.
|
|
80
|
+
* Aceita valores como 'red', 'blue', entre outros, e é refletida no DOM.
|
|
81
|
+
*/
|
|
82
|
+
this.bgColor = '';
|
|
83
|
+
/**
|
|
84
|
+
* Define a densidade visual do componente.
|
|
85
|
+
*
|
|
86
|
+
* - `small`: Alta densidade (componente menor, mais compacto e com menos espaçamento).
|
|
87
|
+
* - `medium`: Densidade intermediária, padrão recomendado para a maioria dos casos.
|
|
88
|
+
* - `large`: Baixa densidade (componente maior, mais espaçamento e altura).
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
this.density = 'medium';
|
|
92
|
+
/**
|
|
93
|
+
* A propriedade 'shape' define o formato do componente.
|
|
94
|
+
*/
|
|
95
|
+
this.shape = SHAPE_DEFAULT;
|
|
96
|
+
/**
|
|
97
|
+
* Define o tamanho personalizado do componente quando o formato for circular (`circle`), arredondado (`rounded`) ou status.
|
|
98
|
+
* Aceita qualquer valor de tamanho CSS válido (ex: `16px`, `1.5rem`).
|
|
99
|
+
*/
|
|
100
|
+
this.size = '';
|
|
101
|
+
/**
|
|
102
|
+
* Transforma a tag em um indicador de status, com aparência circular.
|
|
103
|
+
* É flexível podendo ser utilizado com label ou apenas a superfície circular (informação é transmitida por meio de cores).
|
|
104
|
+
* @deprecated Use `variant="status"`.
|
|
105
|
+
*/
|
|
106
|
+
this.status = false;
|
|
107
|
+
/**
|
|
108
|
+
* Interação deve ser habilitada.
|
|
109
|
+
* @deprecated Use `variant="action"`.
|
|
110
|
+
*/
|
|
111
|
+
this.interaction = false;
|
|
112
|
+
/**
|
|
113
|
+
* Interação de seleção deve ser habilitada.
|
|
114
|
+
* @deprecated Use `variant="selectable"`.
|
|
115
|
+
*/
|
|
116
|
+
this.interactionSelect = false;
|
|
117
|
+
/**
|
|
118
|
+
* Desabilita a interação com o componente.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
this.disabled = false;
|
|
122
|
+
/** Exige uma seleção no grupo quando `interaction-select` está ativo. */
|
|
123
|
+
this.required = false;
|
|
124
|
+
/** Quantidade mínima de tags selecionadas no mesmo grupo. */
|
|
125
|
+
this.minSelections = 0;
|
|
126
|
+
/** Quantidade máxima de tags selecionadas no mesmo grupo. Zero significa sem limite. */
|
|
127
|
+
this.maxSelections = 0;
|
|
128
|
+
/**
|
|
129
|
+
* ID do elemento que fornece descrição adicional da tag.
|
|
130
|
+
* Referencia um elemento na página que contém informações complementares sobre a tag.
|
|
131
|
+
* A descrição é lida após o conteúdo principal, fornecendo contexto extra aos usuários de leitores de tela.
|
|
132
|
+
* Exemplo: aria-describedby="help-status" onde existe <div id="help-status">Aguardando aprovação</div>
|
|
133
|
+
*/
|
|
134
|
+
this.ariaDescribedby = null;
|
|
135
|
+
this.handleKeyDown = (event) => {
|
|
136
|
+
if (!this.effectiveSelectable || this.multiple || this.isDisabled())
|
|
137
|
+
return;
|
|
138
|
+
if (event.key === 'ArrowRight') {
|
|
139
|
+
event.preventDefault();
|
|
140
|
+
this.selectNextRadio();
|
|
141
|
+
}
|
|
142
|
+
else if (event.key === 'ArrowLeft') {
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
this.selectPreviousRadio();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
this.handleClose = () => {
|
|
148
|
+
this.el.remove();
|
|
149
|
+
};
|
|
150
|
+
this.handleInput = (event) => {
|
|
151
|
+
const input = event.target;
|
|
152
|
+
if (!this.multiple)
|
|
153
|
+
this.radioSelected.emit(this.name);
|
|
154
|
+
this.selected = input.checked;
|
|
155
|
+
redispatchNativeFormEvent(this.el, event, 'input');
|
|
156
|
+
};
|
|
157
|
+
this.handleChange = (event) => {
|
|
158
|
+
redispatchNativeFormEvent(this.el, event, 'change');
|
|
159
|
+
void this.validate();
|
|
160
|
+
};
|
|
161
|
+
this.initialSelected = false;
|
|
162
|
+
this.validationRunId = 0;
|
|
163
|
+
}
|
|
164
|
+
formDisabledCallback(disabled) {
|
|
165
|
+
this.formDisabled = disabled;
|
|
166
|
+
this.updateValidity();
|
|
167
|
+
}
|
|
168
|
+
formResetCallback() {
|
|
169
|
+
this.customValidationMessage = '';
|
|
170
|
+
this.validatorMessage = null;
|
|
171
|
+
this.validationRunId++;
|
|
172
|
+
this.selected = this.initialSelected;
|
|
173
|
+
}
|
|
174
|
+
formStateRestoreCallback(state) {
|
|
175
|
+
this.selected = state === 'selected';
|
|
176
|
+
}
|
|
177
|
+
handleInteractionChange(newValue) {
|
|
178
|
+
if (this.variant !== undefined)
|
|
179
|
+
return;
|
|
180
|
+
if (newValue && this.interactionSelect) {
|
|
181
|
+
console.warn("Aviso: 'interaction' e 'interactionSelect' não podem ser usados ao mesmo tempo. Alterando o 'interaction' para 'false'.");
|
|
182
|
+
this.interaction = false;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
handleInteractionSelectChange(newValue) {
|
|
186
|
+
if (this.variant !== undefined)
|
|
187
|
+
return;
|
|
188
|
+
if (newValue && this.interaction) {
|
|
189
|
+
console.warn("Aviso: 'interaction' e 'interactionSelect' não podem ser usados ao mesmo tempo. Alterando o 'interaction' para 'false'.");
|
|
190
|
+
this.interaction = false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
handleSelectedChange() {
|
|
194
|
+
this.syncFormState();
|
|
195
|
+
}
|
|
196
|
+
handleSizeChange() {
|
|
197
|
+
this.updateCustomSizeValue();
|
|
198
|
+
}
|
|
199
|
+
connectedCallback() {
|
|
200
|
+
this.el.addEventListener('keydown', this.handleKeyDown);
|
|
201
|
+
}
|
|
202
|
+
disconnectedCallback() {
|
|
203
|
+
this.el.removeEventListener('keydown', this.handleKeyDown);
|
|
204
|
+
}
|
|
205
|
+
componentWillLoad() {
|
|
206
|
+
this.updateCustomSizeValue();
|
|
207
|
+
this.initialSelected = this.selected;
|
|
208
|
+
this.syncFormState();
|
|
209
|
+
if (this.variant === undefined && this.interaction && this.interactionSelect) {
|
|
210
|
+
console.warn("Aviso: 'interaction' e 'interactionSelect' não podem ser usados ao mesmo tempo. Alterando o 'interaction' para 'false'.");
|
|
211
|
+
this.interaction = false;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
componentDidLoad() {
|
|
215
|
+
this.updateCustomSizeValue();
|
|
216
|
+
this.hasFeedbackSlot = this.el.querySelector('[slot="feedback"]') !== null;
|
|
217
|
+
this.updateValidity();
|
|
218
|
+
}
|
|
219
|
+
handleSelectableTagInput(event) {
|
|
220
|
+
const target = event.target;
|
|
221
|
+
if (target.tagName === 'BR-TAG' && target.name === this.name)
|
|
222
|
+
requestAnimationFrame(() => this.updateValidity());
|
|
223
|
+
}
|
|
224
|
+
handleCheckedChange(event) {
|
|
225
|
+
if (event.detail === this.name && this.el !== event.target) {
|
|
226
|
+
this.selected = false;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Permite navegação por teclado (setas) entre tags do tipo radio (seleção unica).
|
|
231
|
+
* Funciona apenas quando 'interactionSelect' é true e 'multiple' é false.
|
|
232
|
+
* Ignora tags desabilitadas.
|
|
233
|
+
* @param event - Evento de teclado
|
|
234
|
+
*/
|
|
235
|
+
get effectiveStatus() {
|
|
236
|
+
return this.variant === undefined ? this.status : this.variant === 'status';
|
|
237
|
+
}
|
|
238
|
+
get effectiveAction() {
|
|
239
|
+
return this.variant === undefined ? this.interaction : this.variant === 'action';
|
|
240
|
+
}
|
|
241
|
+
get effectiveSelectable() {
|
|
242
|
+
return this.variant === undefined ? this.interactionSelect : this.variant === 'selectable';
|
|
243
|
+
}
|
|
244
|
+
selectNextRadio() {
|
|
245
|
+
this.selectRadioByStep(1);
|
|
246
|
+
}
|
|
247
|
+
selectPreviousRadio() {
|
|
248
|
+
this.selectRadioByStep(-1);
|
|
249
|
+
}
|
|
250
|
+
selectRadioByStep(step) {
|
|
251
|
+
const radios = Array.from(document.querySelectorAll(`br-tag[interaction-select][name="${this.name}"]:not([disabled]), br-tag[variant="selectable"][name="${this.name}"]:not([disabled])`));
|
|
252
|
+
const nextRadio = getNextEnabledElement(radios, this.el, step > 0 ? 'forward' : 'backward');
|
|
253
|
+
if (!nextRadio)
|
|
254
|
+
return;
|
|
255
|
+
this.selectRadio(nextRadio);
|
|
256
|
+
}
|
|
257
|
+
selectRadio(nextRadio) {
|
|
258
|
+
const input = nextRadio.shadowRoot?.querySelector('input[type="radio"]');
|
|
259
|
+
if (input !== null) {
|
|
260
|
+
input.focus();
|
|
261
|
+
input.click();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
getCssClassMap() {
|
|
265
|
+
return {
|
|
266
|
+
'br-tag': true,
|
|
267
|
+
interaction: this.effectiveAction,
|
|
268
|
+
'interaction-select': this.effectiveSelectable,
|
|
269
|
+
selected: this.selected,
|
|
270
|
+
disabled: this.isDisabled(),
|
|
271
|
+
small: this.density === 'small',
|
|
272
|
+
medium: this.density === 'medium',
|
|
273
|
+
large: this.density === 'large',
|
|
274
|
+
count: this.shape === SHAPE_ROUNDED,
|
|
275
|
+
icon: this.shape === SHAPE_CIRCLE,
|
|
276
|
+
'custom-size': this.hasCustomSize,
|
|
277
|
+
status: this.effectiveStatus,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
getTagAttributes() {
|
|
281
|
+
if (this.effectiveAction) {
|
|
282
|
+
return {
|
|
283
|
+
id: this.customId,
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
return {
|
|
287
|
+
id: this.customId,
|
|
288
|
+
role: this.getRole(),
|
|
289
|
+
'aria-label': this.getAriaLabel(),
|
|
290
|
+
'aria-busy': this.isValidating ? 'true' : null,
|
|
291
|
+
'aria-describedby': this.getAriaDescribedBy(),
|
|
292
|
+
'aria-errormessage': this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
293
|
+
? `${this.customId}-feedback`
|
|
294
|
+
: null,
|
|
295
|
+
'aria-checked': this.getAriaChecked(),
|
|
296
|
+
'aria-disabled': this.getAriaDisabled(),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
getAriaDescribedBy() {
|
|
300
|
+
const hostTitle = this.el.getAttribute('title');
|
|
301
|
+
if (this.hasContent(hostTitle)) {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
const hasInternalLabel = !this.effectiveStatus && this.label !== '';
|
|
305
|
+
if (this.ariaDescribedby && this.ariaDescribedby.trim() !== '') {
|
|
306
|
+
return [
|
|
307
|
+
this.ariaDescribedby,
|
|
308
|
+
this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage
|
|
309
|
+
? `${this.customId}-feedback`
|
|
310
|
+
: '',
|
|
311
|
+
]
|
|
312
|
+
.filter(Boolean)
|
|
313
|
+
.join(' ');
|
|
314
|
+
}
|
|
315
|
+
if (hasInternalLabel && !this.hasContent(this.ariaLabel)) {
|
|
316
|
+
return [
|
|
317
|
+
`${this.customId}-label`,
|
|
318
|
+
this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage
|
|
319
|
+
? `${this.customId}-feedback`
|
|
320
|
+
: '',
|
|
321
|
+
]
|
|
322
|
+
.filter(Boolean)
|
|
323
|
+
.join(' ');
|
|
324
|
+
}
|
|
325
|
+
return this.hasFeedbackSlot || this.customValidationMessage ? `${this.customId}-feedback` : null;
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Verifica se uma string possui conteúdo válido (não vazia após remover espaços em branco).
|
|
329
|
+
* @param value - String a ser verificada
|
|
330
|
+
* @returns {boolean} true se a string possui conteúdo
|
|
331
|
+
*/
|
|
332
|
+
hasContent(value) {
|
|
333
|
+
return value?.trim().length > 0;
|
|
334
|
+
}
|
|
335
|
+
getAriaLabel() {
|
|
336
|
+
return this.ariaLabel && this.ariaLabel.trim() !== '' ? this.ariaLabel : null;
|
|
337
|
+
}
|
|
338
|
+
getRole() {
|
|
339
|
+
const hostTitle = this.el.getAttribute('title');
|
|
340
|
+
if (this.hasContent(hostTitle)) {
|
|
341
|
+
return null;
|
|
342
|
+
}
|
|
343
|
+
if (this.effectiveSelectable)
|
|
344
|
+
return this.multiple ? 'checkbox' : 'radio';
|
|
345
|
+
return 'status';
|
|
346
|
+
}
|
|
347
|
+
getAriaChecked() {
|
|
348
|
+
return this.effectiveSelectable ? (this.selected ? 'true' : 'false') : null;
|
|
349
|
+
}
|
|
350
|
+
getAriaDisabled() {
|
|
351
|
+
return this.isDisabled() ? 'true' : null;
|
|
352
|
+
}
|
|
353
|
+
updateCustomSizeValue() {
|
|
354
|
+
this.customSizeValue = (this.size || this.el.getAttribute('size') || '').trim();
|
|
355
|
+
}
|
|
356
|
+
get hasCustomSize() {
|
|
357
|
+
return (this.customSizeValue !== '' &&
|
|
358
|
+
(this.shape === SHAPE_CIRCLE || this.shape === SHAPE_ROUNDED || this.effectiveStatus));
|
|
359
|
+
}
|
|
360
|
+
get customSizeStyle() {
|
|
361
|
+
if (!this.hasCustomSize) {
|
|
362
|
+
return {};
|
|
363
|
+
}
|
|
364
|
+
return {
|
|
365
|
+
'--br-tag-custom-size': this.customSizeValue,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
get tagStyle() {
|
|
369
|
+
return {
|
|
370
|
+
...(this.bgColor ? { backgroundColor: this.bgColor } : {}),
|
|
371
|
+
...this.customSizeStyle,
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
renderIcon() {
|
|
375
|
+
if (this.iconName && this.iconName.trim() !== '') {
|
|
376
|
+
return (h("slot", { name: "icon" }, h("br-icon", { iconName: this.iconName, width: "16", height: "16", "aria-hidden": "true" })));
|
|
377
|
+
}
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
renderLabel() {
|
|
381
|
+
const hasIcon = this.iconName.trim() !== '';
|
|
382
|
+
const shouldRenderCircleLabel = this.shape === SHAPE_CIRCLE && this.hasCustomSize && this.label.trim() !== '' && !hasIcon;
|
|
383
|
+
return (this.shape !== SHAPE_CIRCLE || shouldRenderCircleLabel) && !this.effectiveStatus ? (h("span", { id: `${this.customId}-label` }, h("slot", { name: "label" }, this.label))) : null;
|
|
384
|
+
}
|
|
385
|
+
renderCloseButton() {
|
|
386
|
+
if (!this.effectiveAction)
|
|
387
|
+
return null;
|
|
388
|
+
return (h("slot", { name: "close-button" }, h("br-button", { shape: "circle", emphasis: "primary", density: "small", "prop:ariaLabel": `Fechar ${this.label || 'tag'}`, onClick: this.handleClose, disabled: this.isDisabled() }, h("br-icon", { iconName: "fa-solid:times", width: "16", height: "16", "aria-hidden": "true" }))));
|
|
389
|
+
}
|
|
390
|
+
renderStatusLabel() {
|
|
391
|
+
return this.effectiveStatus ? h("span", { class: "tag-spacing-status" }, this.label) : null;
|
|
392
|
+
}
|
|
393
|
+
renderMainTagContent() {
|
|
394
|
+
return (h("span", { class: this.getCssClassMap(), ...this.getTagAttributes(), style: this.tagStyle, part: "tag" }, this.renderIcon(), this.renderLabel(), this.renderCloseButton(), h("slot", null)));
|
|
395
|
+
}
|
|
396
|
+
renderStatusLayout(content) {
|
|
397
|
+
return (h("span", { style: { display: 'flex', alignItems: 'center' } }, content, this.renderStatusLabel()));
|
|
398
|
+
}
|
|
399
|
+
syncFormState() {
|
|
400
|
+
safeSetFormValue(this.elementInternals, this.effectiveSelectable && this.selected ? this.value || this.label : null, this.selected ? 'selected' : 'unselected');
|
|
401
|
+
this.updateValidity();
|
|
402
|
+
}
|
|
403
|
+
/** Retorna se a tag selecionável atende às constraints configuradas. */
|
|
404
|
+
async checkValidity() {
|
|
405
|
+
return this.elementInternals?.checkValidity?.() ?? true;
|
|
406
|
+
}
|
|
407
|
+
/** Valida e solicita ao navegador a apresentação do erro atual. */
|
|
408
|
+
async reportValidity() {
|
|
409
|
+
return this.elementInternals?.reportValidity?.() ?? true;
|
|
410
|
+
}
|
|
411
|
+
/** Define ou limpa uma mensagem de validade customizada. */
|
|
412
|
+
async setCustomValidity(message) {
|
|
413
|
+
this.customValidationMessage = message;
|
|
414
|
+
this.updateValidity();
|
|
415
|
+
}
|
|
416
|
+
/** Executa o validator da tag e retorna se o valor atual é válido. */
|
|
417
|
+
async validate() {
|
|
418
|
+
const validator = resolveFormValidator(this.validator);
|
|
419
|
+
if (!validator || this.isDisabled())
|
|
420
|
+
return this.checkValidity();
|
|
421
|
+
const runId = ++this.validationRunId;
|
|
422
|
+
this.isValidating = true;
|
|
423
|
+
this.validatorMessage = null;
|
|
424
|
+
this.updateValidity();
|
|
425
|
+
this.brTagValidationChange.emit({ validating: true, valid: null, message: null });
|
|
426
|
+
const message = await runFormValidator(validator, {
|
|
427
|
+
selected: this.selected,
|
|
428
|
+
value: this.value,
|
|
429
|
+
label: this.label,
|
|
430
|
+
});
|
|
431
|
+
if (runId !== this.validationRunId)
|
|
432
|
+
return false;
|
|
433
|
+
this.validatorMessage = message;
|
|
434
|
+
this.isValidating = false;
|
|
435
|
+
this.updateValidity();
|
|
436
|
+
const valid = message === null && (await this.checkValidity());
|
|
437
|
+
this.brTagValidationChange.emit({ validating: false, valid, message });
|
|
438
|
+
return valid;
|
|
439
|
+
}
|
|
440
|
+
/** Retorna um snapshot serializável da Constraint Validation API. */
|
|
441
|
+
async getValidationState() {
|
|
442
|
+
return getFormValidationState(this.elementInternals);
|
|
443
|
+
}
|
|
444
|
+
isDisabled() {
|
|
445
|
+
return isFormControlDisabled(this.disabled, this.formDisabled);
|
|
446
|
+
}
|
|
447
|
+
updateValidity() {
|
|
448
|
+
if (!this.nativeInput)
|
|
449
|
+
return;
|
|
450
|
+
const root = this.el.getRootNode();
|
|
451
|
+
const group = Array.from(root.querySelectorAll('br-tag[interaction-select]')).filter((tag) => tag.name === this.name && !tag.disabled);
|
|
452
|
+
const selectedCount = group.filter((tag) => tag.selected).length;
|
|
453
|
+
const minimum = Math.max(this.required ? 1 : 0, this.minSelections);
|
|
454
|
+
const groupMessage = minimum > 0 && selectedCount < minimum
|
|
455
|
+
? `Selecione pelo menos ${minimum} opções.`
|
|
456
|
+
: this.maxSelections > 0 && selectedCount > this.maxSelections
|
|
457
|
+
? `Selecione no máximo ${this.maxSelections} opções.`
|
|
458
|
+
: '';
|
|
459
|
+
this.nativeInput.setCustomValidity(this.effectiveSelectable ? this.customValidationMessage || this.validatorMessage || groupMessage : '');
|
|
460
|
+
syncNativeFormValidity(this.elementInternals, this.nativeInput);
|
|
461
|
+
}
|
|
462
|
+
renderInteractionSelectTag() {
|
|
463
|
+
if (!this.effectiveSelectable) {
|
|
464
|
+
return null;
|
|
465
|
+
}
|
|
466
|
+
return (h("span", { class: this.getCssClassMap(), id: this.customId, part: "tag", style: this.customSizeStyle }, h("input", { part: "input", id: `input-${this.customId}`, type: this.multiple ? 'checkbox' : 'radio', ref: (el) => (this.nativeInput = el), name: this.name, value: this.value || this.label, checked: this.selected, onInput: this.handleInput, onChange: this.handleChange, disabled: this.isDisabled(), required: this.required }), h("label", { part: "label", htmlFor: `input-${this.customId}` }, this.renderIcon(), this.renderLabel())));
|
|
467
|
+
}
|
|
468
|
+
render() {
|
|
469
|
+
const mainContent = this.renderMainTagContent();
|
|
470
|
+
return (h(Host, { key: 'd7c0423b88b46e813515c59955fb52a1e6f37971' }, this.effectiveSelectable
|
|
471
|
+
? this.renderInteractionSelectTag()
|
|
472
|
+
: this.effectiveStatus
|
|
473
|
+
? this.renderStatusLayout(mainContent)
|
|
474
|
+
: mainContent, h("div", { key: 'f6a545533605b25e08ddc495526be922d6e70b24', id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !this.customValidationMessage && !this.validatorMessage }, h("slot", { key: '5463a29fbde7ca85aa6437c6997b5e28a89e37c3', name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && (this.customValidationMessage || this.validatorMessage) ? (h("br-message", { state: "danger", message: this.customValidationMessage || this.validatorMessage })) : null)));
|
|
475
|
+
}
|
|
476
|
+
static get is() { return "br-tag"; }
|
|
477
|
+
static get encapsulation() { return "shadow"; }
|
|
478
|
+
static get delegatesFocus() { return true; }
|
|
479
|
+
static get formAssociated() { return true; }
|
|
480
|
+
static get originalStyleUrls() {
|
|
481
|
+
return {
|
|
482
|
+
"$": ["tag.scss"]
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
static get styleUrls() {
|
|
486
|
+
return {
|
|
487
|
+
"$": ["tag.css"]
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
static get properties() {
|
|
491
|
+
return {
|
|
492
|
+
"label": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"mutable": false,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "string",
|
|
497
|
+
"resolved": "string",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": "A propriedade 'label' \u00E9 uma string que representa o texto a ser exibido no componente.\nEla \u00E9 refletida no DOM, permitindo que altera\u00E7\u00F5es no valor sejam refletidas no elemento HTML correspondente."
|
|
505
|
+
},
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
508
|
+
"reflect": true,
|
|
509
|
+
"attribute": "label",
|
|
510
|
+
"defaultValue": "''"
|
|
511
|
+
},
|
|
512
|
+
"iconName": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"mutable": false,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "string",
|
|
517
|
+
"resolved": "string",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [{
|
|
524
|
+
"name": "deprecated",
|
|
525
|
+
"text": "Use o slot `icon` com um SVG, asset ou elemento de \u00EDcone controlado pela aplica\u00E7\u00E3o."
|
|
526
|
+
}],
|
|
527
|
+
"text": "A propriedade 'iconName' define um nome Iconify para o \u00EDcone exibido ao lado do texto."
|
|
528
|
+
},
|
|
529
|
+
"getter": false,
|
|
530
|
+
"setter": false,
|
|
531
|
+
"reflect": true,
|
|
532
|
+
"attribute": "icon-name",
|
|
533
|
+
"defaultValue": "''"
|
|
534
|
+
},
|
|
535
|
+
"name": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "string",
|
|
540
|
+
"resolved": "string",
|
|
541
|
+
"references": {}
|
|
542
|
+
},
|
|
543
|
+
"required": false,
|
|
544
|
+
"optional": false,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [],
|
|
547
|
+
"text": "A propriedade 'name' \u00E9 uma string que representa o nome do grupo da tag para sele\u00E7\u00E3o.\nEla \u00E9 refletida no DOM, permitindo que altera\u00E7\u00F5es no valor sejam refletidas no elemento HTML correspondente."
|
|
548
|
+
},
|
|
549
|
+
"getter": false,
|
|
550
|
+
"setter": false,
|
|
551
|
+
"reflect": true,
|
|
552
|
+
"attribute": "name",
|
|
553
|
+
"defaultValue": "''"
|
|
554
|
+
},
|
|
555
|
+
"value": {
|
|
556
|
+
"type": "string",
|
|
557
|
+
"mutable": false,
|
|
558
|
+
"complexType": {
|
|
559
|
+
"original": "string",
|
|
560
|
+
"resolved": "string",
|
|
561
|
+
"references": {}
|
|
562
|
+
},
|
|
563
|
+
"required": false,
|
|
564
|
+
"optional": false,
|
|
565
|
+
"docs": {
|
|
566
|
+
"tags": [],
|
|
567
|
+
"text": "Valor submetido quando a tag selecion\u00E1vel est\u00E1 ativa."
|
|
568
|
+
},
|
|
569
|
+
"getter": false,
|
|
570
|
+
"setter": false,
|
|
571
|
+
"reflect": true,
|
|
572
|
+
"attribute": "value",
|
|
573
|
+
"defaultValue": "''"
|
|
574
|
+
},
|
|
575
|
+
"validator": {
|
|
576
|
+
"type": "unknown",
|
|
577
|
+
"mutable": false,
|
|
578
|
+
"complexType": {
|
|
579
|
+
"original": "TagValidator",
|
|
580
|
+
"resolved": "(value: TagValidationValue) => string | Promise<string>",
|
|
581
|
+
"references": {
|
|
582
|
+
"TagValidator": {
|
|
583
|
+
"location": "import",
|
|
584
|
+
"path": "./tag.types",
|
|
585
|
+
"id": "src/components/tag/tag.types.ts::TagValidator",
|
|
586
|
+
"referenceLocation": "TagValidator"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": false,
|
|
591
|
+
"optional": true,
|
|
592
|
+
"docs": {
|
|
593
|
+
"tags": [],
|
|
594
|
+
"text": "Regra s\u00EDncrona ou ass\u00EDncrona aplicada ao estado e valor da tag."
|
|
595
|
+
},
|
|
596
|
+
"getter": false,
|
|
597
|
+
"setter": false
|
|
598
|
+
},
|
|
599
|
+
"multiple": {
|
|
600
|
+
"type": "boolean",
|
|
601
|
+
"mutable": false,
|
|
602
|
+
"complexType": {
|
|
603
|
+
"original": "boolean",
|
|
604
|
+
"resolved": "boolean",
|
|
605
|
+
"references": {}
|
|
606
|
+
},
|
|
607
|
+
"required": false,
|
|
608
|
+
"optional": false,
|
|
609
|
+
"docs": {
|
|
610
|
+
"tags": [],
|
|
611
|
+
"text": "A tag permite sele\u00E7\u00E3o m\u00FAltipla."
|
|
612
|
+
},
|
|
613
|
+
"getter": false,
|
|
614
|
+
"setter": false,
|
|
615
|
+
"reflect": true,
|
|
616
|
+
"attribute": "multiple",
|
|
617
|
+
"defaultValue": "false"
|
|
618
|
+
},
|
|
619
|
+
"selected": {
|
|
620
|
+
"type": "boolean",
|
|
621
|
+
"mutable": true,
|
|
622
|
+
"complexType": {
|
|
623
|
+
"original": "boolean",
|
|
624
|
+
"resolved": "boolean",
|
|
625
|
+
"references": {}
|
|
626
|
+
},
|
|
627
|
+
"required": false,
|
|
628
|
+
"optional": false,
|
|
629
|
+
"docs": {
|
|
630
|
+
"tags": [],
|
|
631
|
+
"text": "A tag est\u00E1 selecionada."
|
|
632
|
+
},
|
|
633
|
+
"getter": false,
|
|
634
|
+
"setter": false,
|
|
635
|
+
"reflect": true,
|
|
636
|
+
"attribute": "selected",
|
|
637
|
+
"defaultValue": "false"
|
|
638
|
+
},
|
|
639
|
+
"customId": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"mutable": false,
|
|
642
|
+
"complexType": {
|
|
643
|
+
"original": "string",
|
|
644
|
+
"resolved": "string",
|
|
645
|
+
"references": {}
|
|
646
|
+
},
|
|
647
|
+
"required": false,
|
|
648
|
+
"optional": false,
|
|
649
|
+
"docs": {
|
|
650
|
+
"tags": [],
|
|
651
|
+
"text": "Identificador \u00FAnico do componente.\nQuando omitido, um valor \u00E9 gerado automaticamente.\n\n> **Padr\u00E3o:** valor \u00FAnico gerado por generateUniqueId()."
|
|
652
|
+
},
|
|
653
|
+
"getter": false,
|
|
654
|
+
"setter": false,
|
|
655
|
+
"reflect": true,
|
|
656
|
+
"attribute": "custom-id",
|
|
657
|
+
"defaultValue": "generateUniqueId()"
|
|
658
|
+
},
|
|
659
|
+
"bgColor": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"mutable": false,
|
|
662
|
+
"complexType": {
|
|
663
|
+
"original": "string",
|
|
664
|
+
"resolved": "string",
|
|
665
|
+
"references": {}
|
|
666
|
+
},
|
|
667
|
+
"required": false,
|
|
668
|
+
"optional": false,
|
|
669
|
+
"docs": {
|
|
670
|
+
"tags": [],
|
|
671
|
+
"text": "A propriedade 'color' permite definir a cor do componente.\nAceita valores como 'red', 'blue', entre outros, e \u00E9 refletida no DOM."
|
|
672
|
+
},
|
|
673
|
+
"getter": false,
|
|
674
|
+
"setter": false,
|
|
675
|
+
"reflect": true,
|
|
676
|
+
"attribute": "bg-color",
|
|
677
|
+
"defaultValue": "''"
|
|
678
|
+
},
|
|
679
|
+
"density": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"mutable": false,
|
|
682
|
+
"complexType": {
|
|
683
|
+
"original": "BrDensity",
|
|
684
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
685
|
+
"references": {
|
|
686
|
+
"BrDensity": {
|
|
687
|
+
"location": "import",
|
|
688
|
+
"path": "../global.types",
|
|
689
|
+
"id": "src/components/global.types.ts::BrDensity",
|
|
690
|
+
"referenceLocation": "BrDensity"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"required": false,
|
|
695
|
+
"optional": false,
|
|
696
|
+
"docs": {
|
|
697
|
+
"tags": [],
|
|
698
|
+
"text": "Define a densidade visual do componente.\n\n- `small`: Alta densidade (componente menor, mais compacto e com menos espa\u00E7amento).\n- `medium`: Densidade intermedi\u00E1ria, padr\u00E3o recomendado para a maioria dos casos.\n- `large`: Baixa densidade (componente maior, mais espa\u00E7amento e altura)."
|
|
699
|
+
},
|
|
700
|
+
"getter": false,
|
|
701
|
+
"setter": false,
|
|
702
|
+
"reflect": true,
|
|
703
|
+
"attribute": "density",
|
|
704
|
+
"defaultValue": "'medium'"
|
|
705
|
+
},
|
|
706
|
+
"shape": {
|
|
707
|
+
"type": "string",
|
|
708
|
+
"mutable": false,
|
|
709
|
+
"complexType": {
|
|
710
|
+
"original": "TagShape",
|
|
711
|
+
"resolved": "\"circle\" | \"default\" | \"rounded\"",
|
|
712
|
+
"references": {
|
|
713
|
+
"TagShape": {
|
|
714
|
+
"location": "import",
|
|
715
|
+
"path": "./tag.types",
|
|
716
|
+
"id": "src/components/tag/tag.types.ts::TagShape",
|
|
717
|
+
"referenceLocation": "TagShape"
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"required": false,
|
|
722
|
+
"optional": false,
|
|
723
|
+
"docs": {
|
|
724
|
+
"tags": [],
|
|
725
|
+
"text": "A propriedade 'shape' define o formato do componente."
|
|
726
|
+
},
|
|
727
|
+
"getter": false,
|
|
728
|
+
"setter": false,
|
|
729
|
+
"reflect": true,
|
|
730
|
+
"attribute": "shape",
|
|
731
|
+
"defaultValue": "'default'"
|
|
732
|
+
},
|
|
733
|
+
"size": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"mutable": false,
|
|
736
|
+
"complexType": {
|
|
737
|
+
"original": "string",
|
|
738
|
+
"resolved": "string",
|
|
739
|
+
"references": {}
|
|
740
|
+
},
|
|
741
|
+
"required": false,
|
|
742
|
+
"optional": false,
|
|
743
|
+
"docs": {
|
|
744
|
+
"tags": [],
|
|
745
|
+
"text": "Define o tamanho personalizado do componente quando o formato for circular (`circle`), arredondado (`rounded`) ou status.\nAceita qualquer valor de tamanho CSS v\u00E1lido (ex: `16px`, `1.5rem`)."
|
|
746
|
+
},
|
|
747
|
+
"getter": false,
|
|
748
|
+
"setter": false,
|
|
749
|
+
"reflect": true,
|
|
750
|
+
"attribute": "size",
|
|
751
|
+
"defaultValue": "''"
|
|
752
|
+
},
|
|
753
|
+
"variant": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"mutable": false,
|
|
756
|
+
"complexType": {
|
|
757
|
+
"original": "TagVariant",
|
|
758
|
+
"resolved": "\"action\" | \"default\" | \"selectable\" | \"status\"",
|
|
759
|
+
"references": {
|
|
760
|
+
"TagVariant": {
|
|
761
|
+
"location": "import",
|
|
762
|
+
"path": "./tag.types",
|
|
763
|
+
"id": "src/components/tag/tag.types.ts::TagVariant",
|
|
764
|
+
"referenceLocation": "TagVariant"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"required": false,
|
|
769
|
+
"optional": true,
|
|
770
|
+
"docs": {
|
|
771
|
+
"tags": [],
|
|
772
|
+
"text": "Variante funcional can\u00F4nica. Quando informada, tem preced\u00EAncia sobre os modos booleanos legados."
|
|
773
|
+
},
|
|
774
|
+
"getter": false,
|
|
775
|
+
"setter": false,
|
|
776
|
+
"reflect": true,
|
|
777
|
+
"attribute": "variant"
|
|
778
|
+
},
|
|
779
|
+
"status": {
|
|
780
|
+
"type": "boolean",
|
|
781
|
+
"mutable": false,
|
|
782
|
+
"complexType": {
|
|
783
|
+
"original": "boolean",
|
|
784
|
+
"resolved": "boolean",
|
|
785
|
+
"references": {}
|
|
786
|
+
},
|
|
787
|
+
"required": false,
|
|
788
|
+
"optional": false,
|
|
789
|
+
"docs": {
|
|
790
|
+
"tags": [{
|
|
791
|
+
"name": "deprecated",
|
|
792
|
+
"text": "Use `variant=\"status\"`."
|
|
793
|
+
}],
|
|
794
|
+
"text": "Transforma a tag em um indicador de status, com apar\u00EAncia circular.\n\u00C9 flex\u00EDvel podendo ser utilizado com label ou apenas a superf\u00EDcie circular (informa\u00E7\u00E3o \u00E9 transmitida por meio de cores)."
|
|
795
|
+
},
|
|
796
|
+
"getter": false,
|
|
797
|
+
"setter": false,
|
|
798
|
+
"reflect": true,
|
|
799
|
+
"attribute": "status",
|
|
800
|
+
"defaultValue": "false"
|
|
801
|
+
},
|
|
802
|
+
"interaction": {
|
|
803
|
+
"type": "boolean",
|
|
804
|
+
"mutable": true,
|
|
805
|
+
"complexType": {
|
|
806
|
+
"original": "boolean",
|
|
807
|
+
"resolved": "boolean",
|
|
808
|
+
"references": {}
|
|
809
|
+
},
|
|
810
|
+
"required": false,
|
|
811
|
+
"optional": false,
|
|
812
|
+
"docs": {
|
|
813
|
+
"tags": [{
|
|
814
|
+
"name": "deprecated",
|
|
815
|
+
"text": "Use `variant=\"action\"`."
|
|
816
|
+
}],
|
|
817
|
+
"text": "Intera\u00E7\u00E3o deve ser habilitada."
|
|
818
|
+
},
|
|
819
|
+
"getter": false,
|
|
820
|
+
"setter": false,
|
|
821
|
+
"reflect": true,
|
|
822
|
+
"attribute": "interaction",
|
|
823
|
+
"defaultValue": "false"
|
|
824
|
+
},
|
|
825
|
+
"interactionSelect": {
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"mutable": false,
|
|
828
|
+
"complexType": {
|
|
829
|
+
"original": "boolean",
|
|
830
|
+
"resolved": "boolean",
|
|
831
|
+
"references": {}
|
|
832
|
+
},
|
|
833
|
+
"required": false,
|
|
834
|
+
"optional": false,
|
|
835
|
+
"docs": {
|
|
836
|
+
"tags": [{
|
|
837
|
+
"name": "deprecated",
|
|
838
|
+
"text": "Use `variant=\"selectable\"`."
|
|
839
|
+
}],
|
|
840
|
+
"text": "Intera\u00E7\u00E3o de sele\u00E7\u00E3o deve ser habilitada."
|
|
841
|
+
},
|
|
842
|
+
"getter": false,
|
|
843
|
+
"setter": false,
|
|
844
|
+
"reflect": true,
|
|
845
|
+
"attribute": "interaction-select",
|
|
846
|
+
"defaultValue": "false"
|
|
847
|
+
},
|
|
848
|
+
"disabled": {
|
|
849
|
+
"type": "boolean",
|
|
850
|
+
"mutable": false,
|
|
851
|
+
"complexType": {
|
|
852
|
+
"original": "boolean",
|
|
853
|
+
"resolved": "boolean",
|
|
854
|
+
"references": {}
|
|
855
|
+
},
|
|
856
|
+
"required": false,
|
|
857
|
+
"optional": false,
|
|
858
|
+
"docs": {
|
|
859
|
+
"tags": [],
|
|
860
|
+
"text": "Desabilita a intera\u00E7\u00E3o com o componente."
|
|
861
|
+
},
|
|
862
|
+
"getter": false,
|
|
863
|
+
"setter": false,
|
|
864
|
+
"reflect": true,
|
|
865
|
+
"attribute": "disabled",
|
|
866
|
+
"defaultValue": "false"
|
|
867
|
+
},
|
|
868
|
+
"required": {
|
|
869
|
+
"type": "boolean",
|
|
870
|
+
"mutable": false,
|
|
871
|
+
"complexType": {
|
|
872
|
+
"original": "boolean",
|
|
873
|
+
"resolved": "boolean",
|
|
874
|
+
"references": {}
|
|
875
|
+
},
|
|
876
|
+
"required": false,
|
|
877
|
+
"optional": false,
|
|
878
|
+
"docs": {
|
|
879
|
+
"tags": [],
|
|
880
|
+
"text": "Exige uma sele\u00E7\u00E3o no grupo quando `interaction-select` est\u00E1 ativo."
|
|
881
|
+
},
|
|
882
|
+
"getter": false,
|
|
883
|
+
"setter": false,
|
|
884
|
+
"reflect": true,
|
|
885
|
+
"attribute": "required",
|
|
886
|
+
"defaultValue": "false"
|
|
887
|
+
},
|
|
888
|
+
"minSelections": {
|
|
889
|
+
"type": "number",
|
|
890
|
+
"mutable": false,
|
|
891
|
+
"complexType": {
|
|
892
|
+
"original": "number",
|
|
893
|
+
"resolved": "number",
|
|
894
|
+
"references": {}
|
|
895
|
+
},
|
|
896
|
+
"required": false,
|
|
897
|
+
"optional": false,
|
|
898
|
+
"docs": {
|
|
899
|
+
"tags": [],
|
|
900
|
+
"text": "Quantidade m\u00EDnima de tags selecionadas no mesmo grupo."
|
|
901
|
+
},
|
|
902
|
+
"getter": false,
|
|
903
|
+
"setter": false,
|
|
904
|
+
"reflect": true,
|
|
905
|
+
"attribute": "min-selections",
|
|
906
|
+
"defaultValue": "0"
|
|
907
|
+
},
|
|
908
|
+
"maxSelections": {
|
|
909
|
+
"type": "number",
|
|
910
|
+
"mutable": false,
|
|
911
|
+
"complexType": {
|
|
912
|
+
"original": "number",
|
|
913
|
+
"resolved": "number",
|
|
914
|
+
"references": {}
|
|
915
|
+
},
|
|
916
|
+
"required": false,
|
|
917
|
+
"optional": false,
|
|
918
|
+
"docs": {
|
|
919
|
+
"tags": [],
|
|
920
|
+
"text": "Quantidade m\u00E1xima de tags selecionadas no mesmo grupo. Zero significa sem limite."
|
|
921
|
+
},
|
|
922
|
+
"getter": false,
|
|
923
|
+
"setter": false,
|
|
924
|
+
"reflect": true,
|
|
925
|
+
"attribute": "max-selections",
|
|
926
|
+
"defaultValue": "0"
|
|
927
|
+
},
|
|
928
|
+
"ariaLabel": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"mutable": false,
|
|
931
|
+
"complexType": {
|
|
932
|
+
"original": "string",
|
|
933
|
+
"resolved": "string",
|
|
934
|
+
"references": {}
|
|
935
|
+
},
|
|
936
|
+
"required": false,
|
|
937
|
+
"optional": false,
|
|
938
|
+
"docs": {
|
|
939
|
+
"tags": [],
|
|
940
|
+
"text": "Define o r\u00F3tulo acess\u00EDvel usado por tecnologias assistivas."
|
|
941
|
+
},
|
|
942
|
+
"getter": false,
|
|
943
|
+
"setter": false,
|
|
944
|
+
"reflect": true,
|
|
945
|
+
"attribute": "aria-label"
|
|
946
|
+
},
|
|
947
|
+
"ariaDescribedby": {
|
|
948
|
+
"type": "string",
|
|
949
|
+
"mutable": false,
|
|
950
|
+
"complexType": {
|
|
951
|
+
"original": "string",
|
|
952
|
+
"resolved": "string",
|
|
953
|
+
"references": {}
|
|
954
|
+
},
|
|
955
|
+
"required": false,
|
|
956
|
+
"optional": false,
|
|
957
|
+
"docs": {
|
|
958
|
+
"tags": [],
|
|
959
|
+
"text": "ID do elemento que fornece descri\u00E7\u00E3o adicional da tag.\nReferencia um elemento na p\u00E1gina que cont\u00E9m informa\u00E7\u00F5es complementares sobre a tag.\nA descri\u00E7\u00E3o \u00E9 lida ap\u00F3s o conte\u00FAdo principal, fornecendo contexto extra aos usu\u00E1rios de leitores de tela.\nExemplo: aria-describedby=\"help-status\" onde existe <div id=\"help-status\">Aguardando aprova\u00E7\u00E3o</div>"
|
|
960
|
+
},
|
|
961
|
+
"getter": false,
|
|
962
|
+
"setter": false,
|
|
963
|
+
"reflect": true,
|
|
964
|
+
"attribute": "aria-describedby",
|
|
965
|
+
"defaultValue": "null"
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
static get states() {
|
|
970
|
+
return {
|
|
971
|
+
"customSizeValue": {},
|
|
972
|
+
"formDisabled": {},
|
|
973
|
+
"hasFeedbackSlot": {},
|
|
974
|
+
"customValidationMessage": {},
|
|
975
|
+
"validatorMessage": {},
|
|
976
|
+
"isValidating": {}
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
static get events() {
|
|
980
|
+
return [{
|
|
981
|
+
"method": "radioSelected",
|
|
982
|
+
"name": "radioSelected",
|
|
983
|
+
"bubbles": true,
|
|
984
|
+
"cancelable": true,
|
|
985
|
+
"composed": true,
|
|
986
|
+
"docs": {
|
|
987
|
+
"tags": [{
|
|
988
|
+
"name": "deprecated",
|
|
989
|
+
"text": "Use `input`/`change` e leia `event.target.selected`."
|
|
990
|
+
}],
|
|
991
|
+
"text": "Evento emitido quando a tag \u00E9 selecionada."
|
|
992
|
+
},
|
|
993
|
+
"complexType": {
|
|
994
|
+
"original": "string",
|
|
995
|
+
"resolved": "string",
|
|
996
|
+
"references": {}
|
|
997
|
+
}
|
|
998
|
+
}, {
|
|
999
|
+
"method": "brTagValidationChange",
|
|
1000
|
+
"name": "brTagValidationChange",
|
|
1001
|
+
"bubbles": true,
|
|
1002
|
+
"cancelable": true,
|
|
1003
|
+
"composed": true,
|
|
1004
|
+
"docs": {
|
|
1005
|
+
"tags": [],
|
|
1006
|
+
"text": "Emitido ao iniciar e concluir a valida\u00E7\u00E3o customizada."
|
|
1007
|
+
},
|
|
1008
|
+
"complexType": {
|
|
1009
|
+
"original": "FormValidationChangeDetail",
|
|
1010
|
+
"resolved": "FormValidationChangeDetail",
|
|
1011
|
+
"references": {
|
|
1012
|
+
"FormValidationChangeDetail": {
|
|
1013
|
+
"location": "import",
|
|
1014
|
+
"path": "../../shared/utils/validator",
|
|
1015
|
+
"id": "src/shared/utils/validator.ts::FormValidationChangeDetail",
|
|
1016
|
+
"referenceLocation": "FormValidationChangeDetail"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}];
|
|
1021
|
+
}
|
|
1022
|
+
static get methods() {
|
|
1023
|
+
return {
|
|
1024
|
+
"checkValidity": {
|
|
1025
|
+
"complexType": {
|
|
1026
|
+
"signature": "() => Promise<boolean>",
|
|
1027
|
+
"parameters": [],
|
|
1028
|
+
"references": {
|
|
1029
|
+
"Promise": {
|
|
1030
|
+
"location": "global",
|
|
1031
|
+
"id": "global::Promise"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"return": "Promise<boolean>"
|
|
1035
|
+
},
|
|
1036
|
+
"docs": {
|
|
1037
|
+
"text": "Retorna se a tag selecion\u00E1vel atende \u00E0s constraints configuradas.",
|
|
1038
|
+
"tags": []
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"reportValidity": {
|
|
1042
|
+
"complexType": {
|
|
1043
|
+
"signature": "() => Promise<boolean>",
|
|
1044
|
+
"parameters": [],
|
|
1045
|
+
"references": {
|
|
1046
|
+
"Promise": {
|
|
1047
|
+
"location": "global",
|
|
1048
|
+
"id": "global::Promise"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
"return": "Promise<boolean>"
|
|
1052
|
+
},
|
|
1053
|
+
"docs": {
|
|
1054
|
+
"text": "Valida e solicita ao navegador a apresenta\u00E7\u00E3o do erro atual.",
|
|
1055
|
+
"tags": []
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"setCustomValidity": {
|
|
1059
|
+
"complexType": {
|
|
1060
|
+
"signature": "(message: string) => Promise<void>",
|
|
1061
|
+
"parameters": [{
|
|
1062
|
+
"name": "message",
|
|
1063
|
+
"type": "string",
|
|
1064
|
+
"docs": ""
|
|
1065
|
+
}],
|
|
1066
|
+
"references": {
|
|
1067
|
+
"Promise": {
|
|
1068
|
+
"location": "global",
|
|
1069
|
+
"id": "global::Promise"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"return": "Promise<void>"
|
|
1073
|
+
},
|
|
1074
|
+
"docs": {
|
|
1075
|
+
"text": "Define ou limpa uma mensagem de validade customizada.",
|
|
1076
|
+
"tags": []
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"validate": {
|
|
1080
|
+
"complexType": {
|
|
1081
|
+
"signature": "() => Promise<boolean>",
|
|
1082
|
+
"parameters": [],
|
|
1083
|
+
"references": {
|
|
1084
|
+
"Promise": {
|
|
1085
|
+
"location": "global",
|
|
1086
|
+
"id": "global::Promise"
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"return": "Promise<boolean>"
|
|
1090
|
+
},
|
|
1091
|
+
"docs": {
|
|
1092
|
+
"text": "Executa o validator da tag e retorna se o valor atual \u00E9 v\u00E1lido.",
|
|
1093
|
+
"tags": []
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"getValidationState": {
|
|
1097
|
+
"complexType": {
|
|
1098
|
+
"signature": "() => Promise<FormValidationState>",
|
|
1099
|
+
"parameters": [],
|
|
1100
|
+
"references": {
|
|
1101
|
+
"Promise": {
|
|
1102
|
+
"location": "global",
|
|
1103
|
+
"id": "global::Promise"
|
|
1104
|
+
},
|
|
1105
|
+
"FormValidationState": {
|
|
1106
|
+
"location": "import",
|
|
1107
|
+
"path": "../../shared/utils/form",
|
|
1108
|
+
"id": "src/shared/utils/form.ts::FormValidationState",
|
|
1109
|
+
"referenceLocation": "FormValidationState"
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"return": "Promise<FormValidationState>"
|
|
1113
|
+
},
|
|
1114
|
+
"docs": {
|
|
1115
|
+
"text": "Retorna um snapshot serializ\u00E1vel da Constraint Validation API.",
|
|
1116
|
+
"tags": []
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
static get elementRef() { return "el"; }
|
|
1122
|
+
static get watchers() {
|
|
1123
|
+
return [{
|
|
1124
|
+
"propName": "interaction",
|
|
1125
|
+
"methodName": "handleInteractionChange"
|
|
1126
|
+
}, {
|
|
1127
|
+
"propName": "interactionSelect",
|
|
1128
|
+
"methodName": "handleInteractionSelectChange"
|
|
1129
|
+
}, {
|
|
1130
|
+
"propName": "selected",
|
|
1131
|
+
"methodName": "handleSelectedChange"
|
|
1132
|
+
}, {
|
|
1133
|
+
"propName": "size",
|
|
1134
|
+
"methodName": "handleSizeChange"
|
|
1135
|
+
}];
|
|
1136
|
+
}
|
|
1137
|
+
static get listeners() {
|
|
1138
|
+
return [{
|
|
1139
|
+
"name": "input",
|
|
1140
|
+
"method": "handleSelectableTagInput",
|
|
1141
|
+
"target": "document",
|
|
1142
|
+
"capture": false,
|
|
1143
|
+
"passive": false
|
|
1144
|
+
}, {
|
|
1145
|
+
"name": "radioSelected",
|
|
1146
|
+
"method": "handleCheckedChange",
|
|
1147
|
+
"target": "document",
|
|
1148
|
+
"capture": false,
|
|
1149
|
+
"passive": false
|
|
1150
|
+
}];
|
|
1151
|
+
}
|
|
1152
|
+
static get attachInternalsMemberName() { return "elementInternals"; }
|
|
1153
|
+
}
|