@govbr-ds/webcomponents 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -11
- package/cem/custom-elements.json +272 -71
- package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
- package/dist/cjs/br-avatar.cjs.entry.js +248 -0
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
- package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
- package/dist/cjs/br-button_2.cjs.entry.js +280 -0
- package/dist/cjs/br-card.cjs.entry.js +111 -0
- package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
- package/dist/cjs/br-carousel.cjs.entry.js +565 -0
- package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
- package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
- package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
- package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +55 -0
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
- package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
- package/dist/cjs/br-crumb.cjs.entry.js +51 -0
- package/dist/cjs/br-date-picker_3.cjs.entry.js +2447 -0
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1886 -0
- package/dist/cjs/br-divider.cjs.entry.js +225 -0
- package/dist/cjs/br-dropdown_2.cjs.entry.js +2000 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
- package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
- package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
- package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
- package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
- package/dist/cjs/br-footer.cjs.entry.js +92 -0
- package/dist/cjs/br-header-function.cjs.entry.js +142 -0
- package/dist/cjs/br-header-link.cjs.entry.js +60 -0
- package/dist/cjs/br-header-list.cjs.entry.js +279 -0
- package/dist/cjs/br-header-logo.cjs.entry.js +178 -0
- package/dist/cjs/br-header.cjs.entry.js +642 -0
- package/dist/cjs/br-icon.cjs.entry.js +485 -0
- package/dist/cjs/br-input.cjs.entry.js +599 -0
- package/dist/cjs/br-item.cjs.entry.js +367 -0
- package/dist/cjs/br-link.cjs.entry.js +133 -0
- package/dist/cjs/br-loading.cjs.entry.js +505 -0
- package/dist/cjs/br-magic-button.cjs.entry.js +93 -0
- package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
- package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
- package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
- package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
- package/dist/cjs/br-menu-link.cjs.entry.js +56 -0
- package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
- package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
- package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
- package/dist/cjs/br-menu.cjs.entry.js +993 -0
- package/dist/cjs/br-modal.cjs.entry.js +496 -0
- package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
- package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
- package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
- package/dist/cjs/br-notification.cjs.entry.js +334 -0
- package/dist/cjs/br-pagination.cjs.entry.js +884 -0
- package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/br-radio.cjs.entry.js +357 -0
- package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
- package/dist/cjs/br-select-input_3.cjs.entry.js +988 -0
- package/dist/cjs/br-sign-in.cjs.entry.js +126 -0
- package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
- package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
- package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
- package/dist/cjs/br-slider.cjs.entry.js +687 -0
- package/dist/cjs/br-step_2.cjs.entry.js +628 -0
- package/dist/cjs/br-switch.cjs.entry.js +245 -0
- package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
- package/dist/cjs/br-tab.cjs.entry.js +397 -0
- package/dist/cjs/br-table-body.cjs.entry.js +37 -0
- package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
- package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
- package/dist/cjs/br-table-header.cjs.entry.js +37 -0
- package/dist/cjs/br-table-row.cjs.entry.js +81 -0
- package/dist/cjs/br-table.cjs.entry.js +680 -0
- package/dist/cjs/br-tag.cjs.entry.js +493 -0
- package/dist/cjs/br-textarea.cjs.entry.js +306 -0
- package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
- package/dist/cjs/br-upload.cjs.entry.js +581 -0
- package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
- package/dist/cjs/br-wizard.cjs.entry.js +708 -0
- package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
- package/dist/cjs/clamp-Co_hWptd.js +25 -0
- package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
- package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
- package/dist/cjs/event-CmVdNHxl.js +56 -0
- package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
- package/dist/cjs/floating-ui-MBI1osio.js +136 -0
- package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
- package/dist/cjs/focus-DuywwJPR.js +30 -0
- package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
- package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
- package/dist/cjs/id-CjRFMzf6.js +20 -0
- package/dist/cjs/index-C92n55ch.js +678 -0
- package/dist/cjs/index-CRdcutym.js +3287 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/isNil-DO5zWc3l.js +19 -0
- package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
- package/dist/cjs/navigation-AbzwcRCU.js +25 -0
- package/dist/cjs/parts-D5K3ae2C.js +19 -0
- package/dist/cjs/props-CScmBvKd.js +24 -0
- package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
- package/dist/cjs/slot-DAllytTj.js +48 -0
- package/dist/cjs/swipe-BU8_XE9f.js +345 -0
- package/dist/cjs/table-constants-BOPSay0B.js +183 -0
- package/dist/cjs/validator-CTCajtT9.js +123 -0
- package/dist/cjs/webcomponents.cjs.js +50 -0
- package/dist/collection/assets/icon-search.svg +6 -0
- package/dist/collection/assets/logo-negative.svg +1 -0
- package/dist/collection/assets/logo-positive.svg +1 -0
- package/dist/collection/assets/wc.svg +1 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/avatar/avatar.css +1 -0
- package/dist/collection/components/avatar/avatar.js +589 -0
- package/dist/collection/components/avatar/avatar.types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
- package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
- package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +546 -0
- package/dist/collection/components/button/button.types.js +1 -0
- package/dist/collection/components/card/card.css +1 -0
- package/dist/collection/components/card/card.js +225 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
- package/dist/collection/components/carousel/carousel.css +1 -0
- package/dist/collection/components/carousel/carousel.js +1217 -0
- package/dist/collection/components/carousel/carousel.types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +1 -0
- package/dist/collection/components/checkbox/checkbox.js +823 -0
- package/dist/collection/components/checkbox/checkbox.types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
- package/dist/collection/components/checkgroup/checkgroup.js +166 -0
- package/dist/collection/components/collapse/collapse.css +1 -0
- package/dist/collection/components/collapse/collapse.js +642 -0
- package/dist/collection/components/collapse/collapse.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +201 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
- package/dist/collection/components/cookiebar/cookiebar.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
- package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +826 -0
- package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
- package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +1924 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
- package/dist/collection/components/divider/divider.css +1 -0
- package/dist/collection/components/divider/divider.js +537 -0
- package/dist/collection/components/divider/divider.types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +939 -0
- package/dist/collection/components/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/footer/footer.js +245 -0
- package/dist/collection/components/footer/footer.types.js +1 -0
- package/dist/collection/components/global.types.js +1 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -0
- package/dist/collection/components/header/header-function/header-function.js +311 -0
- package/dist/collection/components/header/header-link/header-link.css +1 -0
- package/dist/collection/components/header/header-link/header-link.js +189 -0
- package/dist/collection/components/header/header-list/header-list.css +1 -0
- package/dist/collection/components/header/header-list/header-list.js +452 -0
- package/dist/collection/components/header/header-logo/header-logo.css +1 -0
- package/dist/collection/components/header/header-logo/header-logo.js +421 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/header/header.js +1131 -0
- package/dist/collection/components/header/header.types.js +1 -0
- package/dist/collection/components/icon/default-icons-cache.js +233 -0
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +598 -0
- package/dist/collection/components/icon/icon.types.js +1 -0
- package/dist/collection/components/icon/icon.utils.js +33 -0
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +1642 -0
- package/dist/collection/components/input/input.types.js +1 -0
- package/dist/collection/components/item/item.css +1 -0
- package/dist/collection/components/item/item.js +917 -0
- package/dist/collection/components/item/item.types.js +1 -0
- package/dist/collection/components/link/link.css +1 -0
- package/dist/collection/components/link/link.js +699 -0
- package/dist/collection/components/list/list.css +1 -0
- package/dist/collection/components/list/list.js +728 -0
- package/dist/collection/components/loading/loading.css +1 -0
- package/dist/collection/components/loading/loading.js +1169 -0
- package/dist/collection/components/loading/loading.types.js +1 -0
- package/dist/collection/components/magic-button/magic-button.css +1 -0
- package/dist/collection/components/magic-button/magic-button.js +238 -0
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
- package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
- package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
- package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
- package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
- package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.js +260 -0
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
- package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
- package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
- package/dist/collection/components/menu/menu.css +1 -0
- package/dist/collection/components/menu/menu.js +1372 -0
- package/dist/collection/components/menu/menu.types.js +1 -0
- package/dist/collection/components/menu/menu.utils.js +279 -0
- package/dist/collection/components/message/message.css +1 -0
- package/dist/collection/components/message/message.js +508 -0
- package/dist/collection/components/modal/modal.css +1 -0
- package/dist/collection/components/modal/modal.js +842 -0
- package/dist/collection/components/modal/modal.types.js +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
- package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
- package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
- package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
- package/dist/collection/components/notification/notification.css +1 -0
- package/dist/collection/components/notification/notification.js +838 -0
- package/dist/collection/components/notification/notification.types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1 -0
- package/dist/collection/components/pagination/pagination.js +1470 -0
- package/dist/collection/components/pagination/pagination.types.js +1 -0
- package/dist/collection/components/radio/radio.css +1 -0
- package/dist/collection/components/radio/radio.js +847 -0
- package/dist/collection/components/radio/radio.types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +1 -0
- package/dist/collection/components/radio-group/radio-group.js +862 -0
- package/dist/collection/components/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/scrim/scrim.css +1 -0
- package/dist/collection/components/scrim/scrim.js +1825 -0
- package/dist/collection/components/scrim/scrim.types.js +1 -0
- package/dist/collection/components/scrim/scrim.utils.js +132 -0
- package/dist/collection/components/select/select-input/select-input.css +1 -0
- package/dist/collection/components/select/select-input/select-input.js +586 -0
- package/dist/collection/components/select/select-list/select-list.css +1 -0
- package/dist/collection/components/select/select-list/select-list.js +1159 -0
- package/dist/collection/components/select/select-option/select-option.css +1 -0
- package/dist/collection/components/select/select-option/select-option.js +564 -0
- package/dist/collection/components/select/select.constants.js +6 -0
- package/dist/collection/components/select/select.css +1 -0
- package/dist/collection/components/select/select.js +2692 -0
- package/dist/collection/components/select/select.types.js +1 -0
- package/dist/collection/components/select/select.utils.js +34 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -0
- package/dist/collection/components/sign-in/sign-in.js +401 -0
- package/dist/collection/components/sign-in/sign-in.types.js +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
- package/dist/collection/components/skip-link/skip-link.css +1 -0
- package/dist/collection/components/skip-link/skip-link.js +699 -0
- package/dist/collection/components/skip-link/skip-link.types.js +1 -0
- package/dist/collection/components/slider/slider.css +1 -0
- package/dist/collection/components/slider/slider.js +1324 -0
- package/dist/collection/components/slider/slider.types.js +1 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -0
- package/dist/collection/components/step/step-item/step-item.js +604 -0
- package/dist/collection/components/step/step-item/step-item.types.js +1 -0
- package/dist/collection/components/step/step.css +1 -0
- package/dist/collection/components/step/step.js +896 -0
- package/dist/collection/components/step/step.types.js +1 -0
- package/dist/collection/components/switch/switch.css +1 -0
- package/dist/collection/components/switch/switch.js +715 -0
- package/dist/collection/components/switch/switch.types.js +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
- package/dist/collection/components/tab/tab.css +1 -0
- package/dist/collection/components/tab/tab.js +724 -0
- package/dist/collection/components/tab/tab.types.js +1 -0
- package/dist/collection/components/table/table-body/table-body.css +1 -0
- package/dist/collection/components/table/table-body/table-body.js +51 -0
- package/dist/collection/components/table/table-cell/table-cell.css +1 -0
- package/dist/collection/components/table/table-cell/table-cell.js +373 -0
- package/dist/collection/components/table/table-constants.js +171 -0
- package/dist/collection/components/table/table-header/table-header.css +1 -0
- package/dist/collection/components/table/table-header/table-header.js +51 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
- package/dist/collection/components/table/table-row/table-row.css +1 -0
- package/dist/collection/components/table/table-row/table-row.js +261 -0
- package/dist/collection/components/table/table-tokens.js +50 -0
- package/dist/collection/components/table/table-types.js +1 -0
- package/dist/collection/components/table/table-utils.js +44 -0
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +1030 -0
- package/dist/collection/components/tag/tag.css +1 -0
- package/dist/collection/components/tag/tag.js +1152 -0
- package/dist/collection/components/tag/tag.types.js +1 -0
- package/dist/collection/components/textarea/textarea.css +1 -0
- package/dist/collection/components/textarea/textarea.js +985 -0
- package/dist/collection/components/textarea/textarea.types.js +1 -0
- package/dist/collection/components/tooltip/tooltip.css +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1024 -0
- package/dist/collection/components/tooltip/tooltip.types.js +1 -0
- package/dist/collection/components/upload/upload.css +1 -0
- package/dist/collection/components/upload/upload.js +1314 -0
- package/dist/collection/components/upload/upload.types.js +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
- package/dist/collection/components/wizard/wizard.css +1 -0
- package/dist/collection/components/wizard/wizard.js +1228 -0
- package/dist/collection/index.js +14 -0
- package/dist/collection/pages/components/cookiebar/index.js +26 -0
- package/dist/collection/pages/components/link/index.js +29 -0
- package/dist/collection/pages/components/pagination/index.js +12 -0
- package/dist/collection/pages/components/slider/index.js +18 -0
- package/dist/collection/pages/scripts/code-editor.js +101 -0
- package/dist/collection/pages/scripts/component-controls.js +600 -0
- package/dist/collection/pages/scripts/dev-event-console.js +47 -0
- package/dist/collection/pages/scripts/menu.js +192 -0
- package/dist/collection/pages/scripts/pageLoader.js +1422 -0
- package/dist/collection/shared/utils/assetsPath.js +75 -0
- package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
- package/dist/collection/shared/utils/clamp.js +21 -0
- package/dist/collection/shared/utils/css-variables.js +12 -0
- package/dist/collection/shared/utils/cssVariables.js +37 -0
- package/dist/collection/shared/utils/date.js +405 -0
- package/dist/collection/shared/utils/debounce.js +39 -0
- package/dist/collection/shared/utils/event.js +55 -0
- package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
- package/dist/collection/shared/utils/floating-ui.js +131 -0
- package/dist/collection/shared/utils/focus.js +24 -0
- package/dist/collection/shared/utils/form.js +82 -0
- package/dist/collection/shared/utils/format-bytes.js +20 -0
- package/dist/collection/shared/utils/getNextElement.js +30 -0
- package/dist/collection/shared/utils/getRandom.js +27 -0
- package/dist/collection/shared/utils/helpers.js +31 -0
- package/dist/collection/shared/utils/id.js +16 -0
- package/dist/collection/shared/utils/index.js +60 -0
- package/dist/collection/shared/utils/interfaces.js +1 -0
- package/dist/collection/shared/utils/isClient.js +14 -0
- package/dist/collection/shared/utils/isDefined.js +19 -0
- package/dist/collection/shared/utils/isEmpty.js +30 -0
- package/dist/collection/shared/utils/isHTMLElement.js +16 -0
- package/dist/collection/shared/utils/isNil.js +15 -0
- package/dist/collection/shared/utils/isString.js +20 -0
- package/dist/collection/shared/utils/native-dialog.js +44 -0
- package/dist/collection/shared/utils/navigation.js +21 -0
- package/dist/collection/shared/utils/parts.js +15 -0
- package/dist/collection/shared/utils/prop-warning.js +7 -0
- package/dist/collection/shared/utils/props.js +37 -0
- package/dist/collection/shared/utils/raf-batcher.js +51 -0
- package/dist/collection/shared/utils/scrollLock.js +141 -0
- package/dist/collection/shared/utils/setRafTimeout.js +38 -0
- package/dist/collection/shared/utils/slot.js +113 -0
- package/dist/collection/shared/utils/ssr-date.js +33 -0
- package/dist/collection/shared/utils/stringToArray.js +29 -0
- package/dist/collection/shared/utils/swipe.js +342 -0
- package/dist/collection/shared/utils/transition.js +127 -0
- package/dist/collection/shared/utils/types.js +1 -0
- package/dist/collection/shared/utils/validator.js +51 -0
- package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
- package/dist/collection/value-accessors/index.js +6 -0
- package/dist/collection/value-accessors/vue-model-config.js +43 -0
- package/dist/components/br-avatar.d.ts +11 -0
- package/dist/components/br-avatar.js +5 -0
- package/dist/components/br-breadcrumb-item.d.ts +11 -0
- package/dist/components/br-breadcrumb-item.js +5 -0
- package/dist/components/br-breadcrumb.d.ts +11 -0
- package/dist/components/br-breadcrumb.js +5 -0
- package/dist/components/br-button.d.ts +11 -0
- package/dist/components/br-button.js +5 -0
- package/dist/components/br-card.d.ts +11 -0
- package/dist/components/br-card.js +5 -0
- package/dist/components/br-carousel-page.d.ts +11 -0
- package/dist/components/br-carousel-page.js +5 -0
- package/dist/components/br-carousel.d.ts +11 -0
- package/dist/components/br-carousel.js +5 -0
- package/dist/components/br-checkbox-group.d.ts +11 -0
- package/dist/components/br-checkbox-group.js +5 -0
- package/dist/components/br-checkbox.d.ts +11 -0
- package/dist/components/br-checkbox.js +5 -0
- package/dist/components/br-checkgroup.d.ts +11 -0
- package/dist/components/br-checkgroup.js +5 -0
- package/dist/components/br-collapse.d.ts +11 -0
- package/dist/components/br-collapse.js +5 -0
- package/dist/components/br-cookiebar-cookie.d.ts +11 -0
- package/dist/components/br-cookiebar-cookie.js +5 -0
- package/dist/components/br-cookiebar-group.d.ts +11 -0
- package/dist/components/br-cookiebar-group.js +5 -0
- package/dist/components/br-cookiebar-header.d.ts +11 -0
- package/dist/components/br-cookiebar-header.js +5 -0
- package/dist/components/br-cookiebar-link.d.ts +11 -0
- package/dist/components/br-cookiebar-link.js +5 -0
- package/dist/components/br-cookiebar-note-group.d.ts +11 -0
- package/dist/components/br-cookiebar-note-group.js +5 -0
- package/dist/components/br-cookiebar-note.d.ts +11 -0
- package/dist/components/br-cookiebar-note.js +5 -0
- package/dist/components/br-cookiebar.d.ts +11 -0
- package/dist/components/br-cookiebar.js +5 -0
- package/dist/components/br-crumb.d.ts +11 -0
- package/dist/components/br-crumb.js +5 -0
- package/dist/components/br-date-picker.d.ts +11 -0
- package/dist/components/br-date-picker.js +5 -0
- package/dist/components/br-datetime-input.d.ts +11 -0
- package/dist/components/br-datetime-input.js +5 -0
- package/dist/components/br-datetime-picker.d.ts +11 -0
- package/dist/components/br-datetime-picker.js +5 -0
- package/dist/components/br-divider.d.ts +11 -0
- package/dist/components/br-divider.js +5 -0
- package/dist/components/br-dropdown.d.ts +11 -0
- package/dist/components/br-dropdown.js +5 -0
- package/dist/components/br-footer-category.d.ts +11 -0
- package/dist/components/br-footer-category.js +5 -0
- package/dist/components/br-footer-item.d.ts +11 -0
- package/dist/components/br-footer-item.js +5 -0
- package/dist/components/br-footer-legal.d.ts +11 -0
- package/dist/components/br-footer-legal.js +5 -0
- package/dist/components/br-footer-logo.d.ts +11 -0
- package/dist/components/br-footer-logo.js +5 -0
- package/dist/components/br-footer-social.d.ts +11 -0
- package/dist/components/br-footer-social.js +5 -0
- package/dist/components/br-footer.d.ts +11 -0
- package/dist/components/br-footer.js +5 -0
- package/dist/components/br-header-function.d.ts +11 -0
- package/dist/components/br-header-function.js +5 -0
- package/dist/components/br-header-link.d.ts +11 -0
- package/dist/components/br-header-link.js +5 -0
- package/dist/components/br-header-list.d.ts +11 -0
- package/dist/components/br-header-list.js +5 -0
- package/dist/components/br-header-logo.d.ts +11 -0
- package/dist/components/br-header-logo.js +5 -0
- package/dist/components/br-header.d.ts +11 -0
- package/dist/components/br-header.js +5 -0
- package/dist/components/br-icon.d.ts +11 -0
- package/dist/components/br-icon.js +5 -0
- package/dist/components/br-input.d.ts +11 -0
- package/dist/components/br-input.js +5 -0
- package/dist/components/br-item.d.ts +11 -0
- package/dist/components/br-item.js +5 -0
- package/dist/components/br-link.d.ts +11 -0
- package/dist/components/br-link.js +5 -0
- package/dist/components/br-list.d.ts +11 -0
- package/dist/components/br-list.js +5 -0
- package/dist/components/br-loading.d.ts +11 -0
- package/dist/components/br-loading.js +5 -0
- package/dist/components/br-magic-button.d.ts +11 -0
- package/dist/components/br-magic-button.js +5 -0
- package/dist/components/br-menu-group.d.ts +11 -0
- package/dist/components/br-menu-group.js +5 -0
- package/dist/components/br-menu-header.d.ts +11 -0
- package/dist/components/br-menu-header.js +5 -0
- package/dist/components/br-menu-info.d.ts +11 -0
- package/dist/components/br-menu-info.js +5 -0
- package/dist/components/br-menu-item.d.ts +11 -0
- package/dist/components/br-menu-item.js +5 -0
- package/dist/components/br-menu-link.d.ts +11 -0
- package/dist/components/br-menu-link.js +5 -0
- package/dist/components/br-menu-list.d.ts +11 -0
- package/dist/components/br-menu-list.js +5 -0
- package/dist/components/br-menu-logo.d.ts +11 -0
- package/dist/components/br-menu-logo.js +5 -0
- package/dist/components/br-menu-social.d.ts +11 -0
- package/dist/components/br-menu-social.js +5 -0
- package/dist/components/br-menu.d.ts +11 -0
- package/dist/components/br-menu.js +5 -0
- package/dist/components/br-message.d.ts +11 -0
- package/dist/components/br-message.js +5 -0
- package/dist/components/br-modal.d.ts +11 -0
- package/dist/components/br-modal.js +5 -0
- package/dist/components/br-notification-body.d.ts +11 -0
- package/dist/components/br-notification-body.js +5 -0
- package/dist/components/br-notification-header.d.ts +11 -0
- package/dist/components/br-notification-header.js +5 -0
- package/dist/components/br-notification-item.d.ts +11 -0
- package/dist/components/br-notification-item.js +5 -0
- package/dist/components/br-notification.d.ts +11 -0
- package/dist/components/br-notification.js +5 -0
- package/dist/components/br-pagination.d.ts +11 -0
- package/dist/components/br-pagination.js +5 -0
- package/dist/components/br-radio-group.d.ts +11 -0
- package/dist/components/br-radio-group.js +5 -0
- package/dist/components/br-radio.d.ts +11 -0
- package/dist/components/br-radio.js +5 -0
- package/dist/components/br-scrim.d.ts +11 -0
- package/dist/components/br-scrim.js +5 -0
- package/dist/components/br-select-input.d.ts +11 -0
- package/dist/components/br-select-input.js +5 -0
- package/dist/components/br-select-list.d.ts +11 -0
- package/dist/components/br-select-list.js +5 -0
- package/dist/components/br-select-option.d.ts +11 -0
- package/dist/components/br-select-option.js +5 -0
- package/dist/components/br-select.d.ts +11 -0
- package/dist/components/br-select.js +5 -0
- package/dist/components/br-sign-in.d.ts +11 -0
- package/dist/components/br-sign-in.js +5 -0
- package/dist/components/br-skip-link-item.d.ts +11 -0
- package/dist/components/br-skip-link-item.js +5 -0
- package/dist/components/br-skip-link.d.ts +11 -0
- package/dist/components/br-skip-link.js +5 -0
- package/dist/components/br-skiplink-item.d.ts +11 -0
- package/dist/components/br-skiplink-item.js +5 -0
- package/dist/components/br-slider.d.ts +11 -0
- package/dist/components/br-slider.js +5 -0
- package/dist/components/br-step-item.d.ts +11 -0
- package/dist/components/br-step-item.js +5 -0
- package/dist/components/br-step.d.ts +11 -0
- package/dist/components/br-step.js +5 -0
- package/dist/components/br-switch.d.ts +11 -0
- package/dist/components/br-switch.js +5 -0
- package/dist/components/br-tab-item.d.ts +11 -0
- package/dist/components/br-tab-item.js +5 -0
- package/dist/components/br-tab.d.ts +11 -0
- package/dist/components/br-tab.js +5 -0
- package/dist/components/br-table-body.d.ts +11 -0
- package/dist/components/br-table-body.js +5 -0
- package/dist/components/br-table-cell.d.ts +11 -0
- package/dist/components/br-table-cell.js +5 -0
- package/dist/components/br-table-header-cell.d.ts +11 -0
- package/dist/components/br-table-header-cell.js +5 -0
- package/dist/components/br-table-header.d.ts +11 -0
- package/dist/components/br-table-header.js +5 -0
- package/dist/components/br-table-row.d.ts +11 -0
- package/dist/components/br-table-row.js +5 -0
- package/dist/components/br-table.d.ts +11 -0
- package/dist/components/br-table.js +5 -0
- package/dist/components/br-tag.d.ts +11 -0
- package/dist/components/br-tag.js +5 -0
- package/dist/components/br-textarea.d.ts +11 -0
- package/dist/components/br-textarea.js +5 -0
- package/dist/components/br-time-picker.d.ts +11 -0
- package/dist/components/br-time-picker.js +5 -0
- package/dist/components/br-tooltip.d.ts +11 -0
- package/dist/components/br-tooltip.js +5 -0
- package/dist/components/br-upload.d.ts +11 -0
- package/dist/components/br-upload.js +5 -0
- package/dist/components/br-wizard-panel.d.ts +11 -0
- package/dist/components/br-wizard-panel.js +5 -0
- package/dist/components/br-wizard.d.ts +11 -0
- package/dist/components/br-wizard.js +5 -0
- package/dist/components/index.d.ts +213 -0
- package/dist/components/index.js +5 -0
- package/dist/components/p-34Jfn-U-.js +5 -0
- package/dist/components/p-5z6jgH1D.js +5 -0
- package/dist/components/p-6OdfnwnK.js +5 -0
- package/dist/components/p-9S9bgUT0.js +5 -0
- package/dist/components/p-B-qLmYZC.js +5 -0
- package/dist/components/p-B55qsau4.js +5 -0
- package/dist/components/p-B7Amgxkp.js +5 -0
- package/dist/components/p-BC7f6MK8.js +5 -0
- package/dist/components/p-BKuMQJrQ.js +5 -0
- package/dist/components/p-BPJpHGOW.js +5 -0
- package/dist/components/p-BWXfdbQH.js +5 -0
- package/dist/components/p-Bb-nLtTG.js +5 -0
- package/dist/components/p-BeE7R9nu.js +5 -0
- package/dist/components/p-BkS6ujyf.js +5 -0
- package/dist/components/p-Bo0QYHJO.js +5 -0
- package/dist/components/p-C1yRmdso.js +5 -0
- package/dist/components/p-C2i2c_io.js +5 -0
- package/dist/components/p-C7v0lVlX.js +5 -0
- package/dist/components/p-CMBsvswx.js +5 -0
- package/dist/components/p-CRrimdz6.js +5 -0
- package/dist/components/p-CWORw84-.js +5 -0
- package/dist/components/p-CXMwM9m4.js +5 -0
- package/dist/components/p-CdDwqbBv.js +5 -0
- package/dist/components/p-CvUMXJCl.js +5 -0
- package/dist/components/p-D3usVJE2.js +16 -0
- package/dist/components/p-D6zroLx5.js +5 -0
- package/dist/components/p-DA5GS53D.js +5 -0
- package/dist/components/p-DBP6K_aq.js +5 -0
- package/dist/components/p-DBmwzG9E.js +5 -0
- package/dist/components/p-DCrVo-8T.js +5 -0
- package/dist/components/p-DFUKDNck.js +5 -0
- package/dist/components/p-DHicj0By.js +5 -0
- package/dist/components/p-DIK54tTj.js +5 -0
- package/dist/components/p-DQRSHR-D.js +5 -0
- package/dist/components/p-DRVMm1Py.js +5 -0
- package/dist/components/p-DWPmUV72.js +5 -0
- package/dist/components/p-DXjQyH6s.js +5 -0
- package/dist/components/p-DYA74R1r.js +5 -0
- package/dist/components/p-DmCxdB9P.js +5 -0
- package/dist/components/p-Dmfk7eEe.js +5 -0
- package/dist/components/p-Dp0xy_3n.js +5 -0
- package/dist/components/p-DxZJrIyL.js +5 -0
- package/dist/components/p-JAkkThgf.js +5 -0
- package/dist/components/p-Ud-WB0hx.js +5 -0
- package/dist/components/p-bhULC15U.js +5 -0
- package/dist/components/p-cF3ia5e9.js +5 -0
- package/dist/components/p-fpMNttbg.js +5 -0
- package/dist/components/p-gvnfuTjd.js +5 -0
- package/dist/components/p-qYONSNcf.js +5 -0
- package/dist/components/p-qhhHGJY1.js +5 -0
- package/dist/components/p-ttI0nvv_.js +5 -0
- package/dist/components/p-ukNmfGNP.js +5 -0
- package/dist/components/p-xa8e1kSW.js +5 -0
- package/dist/esm/app-globals-DVjNHTTs.js +7 -0
- package/dist/esm/br-avatar.entry.js +246 -0
- package/dist/esm/br-breadcrumb-item.entry.js +43 -0
- package/dist/esm/br-breadcrumb.entry.js +441 -0
- package/dist/esm/br-button_2.entry.js +277 -0
- package/dist/esm/br-card.entry.js +109 -0
- package/dist/esm/br-carousel-page.entry.js +78 -0
- package/dist/esm/br-carousel.entry.js +563 -0
- package/dist/esm/br-checkbox-group.entry.js +116 -0
- package/dist/esm/br-checkbox.entry.js +286 -0
- package/dist/esm/br-checkgroup.entry.js +18 -0
- package/dist/esm/br-collapse_2.entry.js +680 -0
- package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
- package/dist/esm/br-cookiebar-group.entry.js +307 -0
- package/dist/esm/br-cookiebar-header.entry.js +37 -0
- package/dist/esm/br-cookiebar-link.entry.js +53 -0
- package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
- package/dist/esm/br-cookiebar-note.entry.js +23 -0
- package/dist/esm/br-cookiebar.entry.js +756 -0
- package/dist/esm/br-crumb.entry.js +49 -0
- package/dist/esm/br-date-picker_3.entry.js +2443 -0
- package/dist/esm/br-datetime-picker.entry.js +1884 -0
- package/dist/esm/br-divider.entry.js +223 -0
- package/dist/esm/br-dropdown_2.entry.js +1997 -0
- package/dist/esm/br-footer-category.entry.js +100 -0
- package/dist/esm/br-footer-item.entry.js +50 -0
- package/dist/esm/br-footer-legal.entry.js +39 -0
- package/dist/esm/br-footer-logo.entry.js +102 -0
- package/dist/esm/br-footer-social.entry.js +69 -0
- package/dist/esm/br-footer.entry.js +90 -0
- package/dist/esm/br-header-function.entry.js +140 -0
- package/dist/esm/br-header-link.entry.js +58 -0
- package/dist/esm/br-header-list.entry.js +277 -0
- package/dist/esm/br-header-logo.entry.js +176 -0
- package/dist/esm/br-header.entry.js +640 -0
- package/dist/esm/br-icon.entry.js +483 -0
- package/dist/esm/br-input.entry.js +597 -0
- package/dist/esm/br-item.entry.js +365 -0
- package/dist/esm/br-link.entry.js +131 -0
- package/dist/esm/br-loading.entry.js +503 -0
- package/dist/esm/br-magic-button.entry.js +91 -0
- package/dist/esm/br-menu-group.entry.js +21 -0
- package/dist/esm/br-menu-header.entry.js +45 -0
- package/dist/esm/br-menu-info.entry.js +36 -0
- package/dist/esm/br-menu-item.entry.js +77 -0
- package/dist/esm/br-menu-link.entry.js +54 -0
- package/dist/esm/br-menu-list.entry.js +147 -0
- package/dist/esm/br-menu-logo.entry.js +73 -0
- package/dist/esm/br-menu-social.entry.js +63 -0
- package/dist/esm/br-menu.entry.js +991 -0
- package/dist/esm/br-modal.entry.js +494 -0
- package/dist/esm/br-notification-body.entry.js +69 -0
- package/dist/esm/br-notification-header.entry.js +46 -0
- package/dist/esm/br-notification-item.entry.js +108 -0
- package/dist/esm/br-notification.entry.js +332 -0
- package/dist/esm/br-pagination.entry.js +882 -0
- package/dist/esm/br-radio-group.entry.js +426 -0
- package/dist/esm/br-radio.entry.js +355 -0
- package/dist/esm/br-scrim.entry.js +1334 -0
- package/dist/esm/br-select-input_3.entry.js +984 -0
- package/dist/esm/br-sign-in.entry.js +124 -0
- package/dist/esm/br-skip-link-item.entry.js +18 -0
- package/dist/esm/br-skip-link.entry.js +360 -0
- package/dist/esm/br-skiplink-item.entry.js +190 -0
- package/dist/esm/br-slider.entry.js +685 -0
- package/dist/esm/br-step_2.entry.js +625 -0
- package/dist/esm/br-switch.entry.js +243 -0
- package/dist/esm/br-tab-item.entry.js +183 -0
- package/dist/esm/br-tab.entry.js +395 -0
- package/dist/esm/br-table-body.entry.js +35 -0
- package/dist/esm/br-table-cell.entry.js +182 -0
- package/dist/esm/br-table-header-cell.entry.js +171 -0
- package/dist/esm/br-table-header.entry.js +35 -0
- package/dist/esm/br-table-row.entry.js +79 -0
- package/dist/esm/br-table.entry.js +678 -0
- package/dist/esm/br-tag.entry.js +491 -0
- package/dist/esm/br-textarea.entry.js +304 -0
- package/dist/esm/br-tooltip.entry.js +625 -0
- package/dist/esm/br-upload.entry.js +579 -0
- package/dist/esm/br-wizard-panel.entry.js +52 -0
- package/dist/esm/br-wizard.entry.js +706 -0
- package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
- package/dist/esm/clamp-gvnfuTjd.js +23 -0
- package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
- package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
- package/dist/esm/event-DFN_so7I.js +48 -0
- package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
- package/dist/esm/floating-ui-BavFwMnx.js +134 -0
- package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
- package/dist/esm/focus-DxZJrIyL.js +26 -0
- package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
- package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
- package/dist/esm/id-BkS6ujyf.js +18 -0
- package/dist/esm/index-Bo-2igoO.js +671 -0
- package/dist/esm/index-C2RBydfd.js +3258 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/isNil-B-qLmYZC.js +17 -0
- package/dist/esm/isValid-DIUZX1qS.js +3684 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/native-dialog-B55qsau4.js +46 -0
- package/dist/esm/navigation-bhULC15U.js +23 -0
- package/dist/esm/parts-Bb5vVlCC.js +17 -0
- package/dist/esm/props-DRVMm1Py.js +22 -0
- package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
- package/dist/esm/slot-BIG-yees.js +44 -0
- package/dist/esm/swipe-Dmfk7eEe.js +343 -0
- package/dist/esm/table-constants-CXMwM9m4.js +170 -0
- package/dist/esm/validator-D3tVP32U.js +113 -0
- package/dist/esm/webcomponents.js +46 -0
- package/dist/hydrate/index.d.ts +287 -0
- package/dist/hydrate/index.js +67516 -0
- package/dist/hydrate/index.mjs +67506 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +5 -0
- package/dist/loader/index.cjs.js +5 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +5 -0
- package/dist/loader/index.js +6 -0
- package/dist/types/components/item/item.d.ts +1 -0
- package/dist/types/components/select/select-list/select-list.d.ts +1 -0
- package/dist/types/components/select/select-option/select-option.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +14 -0
- package/dist/types/components/select/select.types.d.ts +2 -0
- package/dist/types/components/select/select.utils.d.ts +13 -0
- package/dist/webcomponents/index.esm.js +5 -0
- package/dist/webcomponents/p-0196804a.entry.js +5 -0
- package/dist/webcomponents/p-0410186a.entry.js +5 -0
- package/dist/webcomponents/p-0415ef22.entry.js +5 -0
- package/dist/webcomponents/p-0777c7b1.entry.js +5 -0
- package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
- package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
- package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
- package/dist/webcomponents/p-12286e73.entry.js +5 -0
- package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
- package/dist/webcomponents/p-1580beee.entry.js +5 -0
- package/dist/webcomponents/p-18ee6175.entry.js +5 -0
- package/dist/webcomponents/p-1bca4499.entry.js +5 -0
- package/dist/webcomponents/p-1c303a4e.entry.js +5 -0
- package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
- package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
- package/dist/webcomponents/p-224daaac.entry.js +5 -0
- package/dist/webcomponents/p-28426d2a.entry.js +5 -0
- package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
- package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
- package/dist/webcomponents/p-30c428b6.entry.js +5 -0
- package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
- package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
- package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
- package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
- package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
- package/dist/webcomponents/p-45356e9a.entry.js +5 -0
- package/dist/webcomponents/p-46513db4.entry.js +5 -0
- package/dist/webcomponents/p-4c13221a.entry.js +5 -0
- package/dist/webcomponents/p-51ce2c31.entry.js +5 -0
- package/dist/webcomponents/p-52df61cb.entry.js +5 -0
- package/dist/webcomponents/p-569134cf.entry.js +5 -0
- package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
- package/dist/webcomponents/p-5f373708.entry.js +5 -0
- package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
- package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
- package/dist/webcomponents/p-66006312.entry.js +5 -0
- package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
- package/dist/webcomponents/p-6OdfnwnK.js +5 -0
- package/dist/webcomponents/p-750799b7.entry.js +5 -0
- package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
- package/dist/webcomponents/p-765bfe27.entry.js +5 -0
- package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
- package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
- package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
- package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
- package/dist/webcomponents/p-82200563.entry.js +5 -0
- package/dist/webcomponents/p-83ff4579.entry.js +5 -0
- package/dist/webcomponents/p-85f8063b.entry.js +5 -0
- package/dist/webcomponents/p-8b558233.entry.js +5 -0
- package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
- package/dist/webcomponents/p-8e819355.entry.js +5 -0
- package/dist/webcomponents/p-92a9b9c4.entry.js +5 -0
- package/dist/webcomponents/p-966ad32f.entry.js +5 -0
- package/dist/webcomponents/p-9679d230.entry.js +5 -0
- package/dist/webcomponents/p-96dd663b.entry.js +5 -0
- package/dist/webcomponents/p-98843fa3.entry.js +5 -0
- package/dist/webcomponents/p-9S9bgUT0.js +5 -0
- package/dist/webcomponents/p-9a375eff.entry.js +5 -0
- package/dist/webcomponents/p-9b358cff.entry.js +5 -0
- package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
- package/dist/webcomponents/p-B-qLmYZC.js +5 -0
- package/dist/webcomponents/p-B55qsau4.js +5 -0
- package/dist/webcomponents/p-BIG-yees.js +5 -0
- package/dist/webcomponents/p-BWXfdbQH.js +5 -0
- package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
- package/dist/webcomponents/p-Bfm58jO6.js +5 -0
- package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
- package/dist/webcomponents/p-BkS6ujyf.js +5 -0
- package/dist/webcomponents/p-C2RBydfd.js +6 -0
- package/dist/webcomponents/p-CO5cOQQU.js +5 -0
- package/dist/webcomponents/p-CXMwM9m4.js +5 -0
- package/dist/webcomponents/p-D3tVP32U.js +5 -0
- package/dist/webcomponents/p-D3usVJE2.js +16 -0
- package/dist/webcomponents/p-DBmwzG9E.js +5 -0
- package/dist/webcomponents/p-DFN_so7I.js +5 -0
- package/dist/webcomponents/p-DIK54tTj.js +5 -0
- package/dist/webcomponents/p-DRVMm1Py.js +5 -0
- package/dist/webcomponents/p-DVjNHTTs.js +5 -0
- package/dist/webcomponents/p-DYA74R1r.js +5 -0
- package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
- package/dist/webcomponents/p-DxZJrIyL.js +5 -0
- package/dist/webcomponents/p-a382e115.entry.js +5 -0
- package/dist/webcomponents/p-a4ae72e3.entry.js +5 -0
- package/dist/webcomponents/p-a994c190.entry.js +5 -0
- package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
- package/dist/webcomponents/p-bhULC15U.js +5 -0
- package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
- package/dist/webcomponents/p-c211af17.entry.js +5 -0
- package/dist/webcomponents/p-c492d926.entry.js +5 -0
- package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
- package/dist/webcomponents/p-c846e784.entry.js +5 -0
- package/dist/webcomponents/p-c949d993.entry.js +5 -0
- package/dist/webcomponents/p-cF3ia5e9.js +5 -0
- package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
- package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
- package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
- package/dist/webcomponents/p-e1331288.entry.js +5 -0
- package/dist/webcomponents/p-e360a463.entry.js +5 -0
- package/dist/webcomponents/p-f078f972.entry.js +5 -0
- package/dist/webcomponents/p-f26038e2.entry.js +5 -0
- package/dist/webcomponents/p-f303f6b3.entry.js +5 -0
- package/dist/webcomponents/p-f6318e94.entry.js +5 -0
- package/dist/webcomponents/p-f85ee01c.entry.js +5 -0
- package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
- package/dist/webcomponents/p-ffe0241e.entry.js +5 -0
- package/dist/webcomponents/p-gvnfuTjd.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +5 -0
- package/package.json +3 -7
- package/cem/.gitkeep +0 -0
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h, } from "@stencil/core";
|
|
6
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
7
|
+
import { handleNavigationClick } from "../../shared/utils/navigation";
|
|
8
|
+
import { hasDefaultLightDomContent, hasNamedLightDomSlot } from "../../shared/utils/slot";
|
|
9
|
+
/**
|
|
10
|
+
* 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/item?tab=designer).
|
|
11
|
+
*
|
|
12
|
+
* @slot default - Área de conteúdo, podendo conter qualquer componente, exceto botões primários e componentes relacionados à navegação (como carrosséis, paginações, abas, menus, etc.).
|
|
13
|
+
*
|
|
14
|
+
* @slot start - Área de recursos visuais, podendo conter elementos como ícones, avatares e mídias.
|
|
15
|
+
*
|
|
16
|
+
* @slot end - Área de recursos complementares, podendo conter componentes interativos, metadados e informações adicionais.
|
|
17
|
+
*
|
|
18
|
+
* @category Conteúdo
|
|
19
|
+
* @status stable
|
|
20
|
+
* @part item - Elemento principal do item (botão, link ou div).
|
|
21
|
+
*/
|
|
22
|
+
export class Item {
|
|
23
|
+
constructor() {
|
|
24
|
+
/**
|
|
25
|
+
* Indica se o slot padrão possui conteúdo atribuído.
|
|
26
|
+
*/
|
|
27
|
+
this.hasSlotDefault = false;
|
|
28
|
+
/**
|
|
29
|
+
* Indica se o slot `end` possui conteúdo atribuído.
|
|
30
|
+
*/
|
|
31
|
+
this.hasSlotEnd = false;
|
|
32
|
+
/**
|
|
33
|
+
* Indica se o slot `start` possui conteúdo atribuído.
|
|
34
|
+
*/
|
|
35
|
+
this.hasSlotStart = false;
|
|
36
|
+
/**
|
|
37
|
+
* Estado interno de seleção usado na renderização e emissão de eventos.
|
|
38
|
+
*/
|
|
39
|
+
this.selectedValue = false;
|
|
40
|
+
this.rovingTabIndex = 0;
|
|
41
|
+
/**
|
|
42
|
+
* Desabilita a interação com o componente.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
this.disabled = false;
|
|
46
|
+
/**
|
|
47
|
+
* Identificador único do componente.
|
|
48
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
49
|
+
*
|
|
50
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
this.customId = generateUniqueId();
|
|
54
|
+
/**
|
|
55
|
+
* Indica se o item está no estado ativo.
|
|
56
|
+
* Se definido como verdadeiro, o item será exibido como ativo.
|
|
57
|
+
* @deprecated Use `active`.
|
|
58
|
+
*/
|
|
59
|
+
this.isActive = false;
|
|
60
|
+
/**
|
|
61
|
+
* Indica se o item está no estado selecionado.
|
|
62
|
+
* Se definido como verdadeiro, o item será exibido como selecionado.
|
|
63
|
+
* @deprecated Use `selected`.
|
|
64
|
+
*/
|
|
65
|
+
this.isSelected = false;
|
|
66
|
+
/**
|
|
67
|
+
* Marca o item como interativo, permitindo que toda a superfície do item seja clicável.
|
|
68
|
+
* @deprecated Use `interactive`.
|
|
69
|
+
*/
|
|
70
|
+
this.isInteractive = false;
|
|
71
|
+
/**
|
|
72
|
+
* Controla como o componente integra a navegação mantendo `href` real no elemento navegável.
|
|
73
|
+
* - `native` (padrão): preserva o comportamento do navegador, conforme HTML/W3C.
|
|
74
|
+
* - `event`: emite `brNavigate`; se o evento for cancelado, bloqueia a navegação nativa para a SPA assumir.
|
|
75
|
+
* Cliques com modificadores, botão do meio ou `target` diferente de `_self` permanecem nativos.
|
|
76
|
+
*/
|
|
77
|
+
this.navigationMode = 'native';
|
|
78
|
+
/**
|
|
79
|
+
* Quando definido como `true`, o item será tratado como um botão.
|
|
80
|
+
* @deprecated Use `button`.
|
|
81
|
+
*/
|
|
82
|
+
this.isButton = false;
|
|
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
|
+
this.hasRadios = false;
|
|
93
|
+
this.hasCheckboxes = false;
|
|
94
|
+
this.isManagedByList = false;
|
|
95
|
+
this.handleMouseDown = (event) => {
|
|
96
|
+
const shouldPreventDefault = Boolean(this.href?.length) || this.disabled;
|
|
97
|
+
if (shouldPreventDefault) {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Trata Enter/Espaço quando o item NÃO está sendo gerenciado por um
|
|
103
|
+
* br-list ancestral (uso standalone — ex.: dentro do shadow/light DOM
|
|
104
|
+
* de br-dropdown, br-notification, ou qualquer wrapper customizado).
|
|
105
|
+
*
|
|
106
|
+
* Quando o item está dentro de um br-list, este handler não é registrado
|
|
107
|
+
* (ver componentWillLoad/isManagedByList), pois o br-list já trata
|
|
108
|
+
* Enter/Espaço/setas para todos os seus itens navegáveis via handleKeydown
|
|
109
|
+
* + activate(), evitando double-handling.
|
|
110
|
+
*
|
|
111
|
+
* Itens renderizados como <button> ou <a> já respondem nativamente a
|
|
112
|
+
* Enter (e <button> também a Espaço), então este handler só precisa
|
|
113
|
+
* agir sobre o caso <div role="button"> (isInteractive standalone).
|
|
114
|
+
*/
|
|
115
|
+
this.handleKeydown = (event) => {
|
|
116
|
+
if (this.isManagedByList)
|
|
117
|
+
return;
|
|
118
|
+
if (this.disabled)
|
|
119
|
+
return;
|
|
120
|
+
if (this.getTagType() !== 'div')
|
|
121
|
+
return;
|
|
122
|
+
if (!this.isInteractive && !this.isButton)
|
|
123
|
+
return;
|
|
124
|
+
if (event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar') {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
this.activate();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: mantém em uma transação os modos standalone, controlado, radio e checkbox.
|
|
130
|
+
this.handleClick = (event) => {
|
|
131
|
+
if (this.disabled) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
event.stopPropagation();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const clickedElement = event.target;
|
|
137
|
+
handleNavigationClick({
|
|
138
|
+
event,
|
|
139
|
+
href: this.href,
|
|
140
|
+
target: this.target,
|
|
141
|
+
navigationMode: this.navigationMode,
|
|
142
|
+
brNavigate: this.brNavigate,
|
|
143
|
+
});
|
|
144
|
+
if (this.effectiveButton) {
|
|
145
|
+
this.brDidClick.emit();
|
|
146
|
+
this.brItemClick.emit();
|
|
147
|
+
}
|
|
148
|
+
else if (this.selectionEnabled &&
|
|
149
|
+
this.effectiveInteractive &&
|
|
150
|
+
!this.isClickInsideInteractiveElement(clickedElement)) {
|
|
151
|
+
if (this.hasRadios) {
|
|
152
|
+
// Só existe um alvo inequívoco quando há exatamente um radio no item; com múltiplos
|
|
153
|
+
// radios não há como saber qual o clique na superfície pretendia selecionar.
|
|
154
|
+
const radios = Array.from(this.el.querySelectorAll('br-radio'));
|
|
155
|
+
if (radios.length === 1 && !radios[0].checked) {
|
|
156
|
+
radios[0].toggleChecked();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
// Armazena o estado anterior para emitir o evento apenas se houver mudança.
|
|
161
|
+
const previousSelectedValue = this.hasControlledSelection ? Boolean(this.selected) : this.selectedValue;
|
|
162
|
+
const nextSelected = !previousSelectedValue;
|
|
163
|
+
if (!this.hasControlledSelection)
|
|
164
|
+
this.selectedValue = nextSelected;
|
|
165
|
+
if (previousSelectedValue !== nextSelected) {
|
|
166
|
+
const detail = { selected: nextSelected };
|
|
167
|
+
this.brDidSelect.emit(detail);
|
|
168
|
+
this.brItemSelect.emit(detail);
|
|
169
|
+
}
|
|
170
|
+
if (!this.hasControlledSelection)
|
|
171
|
+
this.updateCheckboxes();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
event.stopPropagation();
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
componentWillLoad() {
|
|
178
|
+
this.hasSlotContentDefault();
|
|
179
|
+
this.hasSlotStart = this.hasSlotContent('start');
|
|
180
|
+
this.hasSlotEnd = this.hasSlotContent('end');
|
|
181
|
+
this.selectedValue = this.effectiveSelected;
|
|
182
|
+
if (this.effectiveButton) {
|
|
183
|
+
this.type = this.type || 'button';
|
|
184
|
+
}
|
|
185
|
+
const radios = Array.from(this.el.querySelectorAll('br-radio'));
|
|
186
|
+
const checkboxes = Array.from(this.el.querySelectorAll('br-checkbox'));
|
|
187
|
+
this.hasRadios = radios.length > 0;
|
|
188
|
+
this.hasCheckboxes = checkboxes.length > 0;
|
|
189
|
+
this.isManagedByList = Boolean(this.el.closest('br-list'));
|
|
190
|
+
if (this.effectiveSelected) {
|
|
191
|
+
if (checkboxes.length > 0) {
|
|
192
|
+
checkboxes.forEach((checkbox) => {
|
|
193
|
+
checkbox.checked = true;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
if (radios.length > 0) {
|
|
197
|
+
radios[0].checked = true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (this.selectionEnabled) {
|
|
201
|
+
this.updateRadioSelectionState(false);
|
|
202
|
+
this.updateCheckboxSelectionState(false);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// Sincroniza selectedValue quando a prop é alterada externamente (ex.: toggleAllOptions)
|
|
206
|
+
handleSelectedPropChange() {
|
|
207
|
+
this.selectedValue = this.effectiveSelected;
|
|
208
|
+
}
|
|
209
|
+
handleCheckedChange(event) {
|
|
210
|
+
if (!this.selectionEnabled)
|
|
211
|
+
return;
|
|
212
|
+
const target = event.target;
|
|
213
|
+
if (this.el.contains(target))
|
|
214
|
+
this.updateCheckboxSelectionState();
|
|
215
|
+
requestAnimationFrame(() => this.updateRadioSelectionState());
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Ativa o item programaticamente, simulando um clique na superfície.
|
|
219
|
+
* Utilizado pelo br-list para tratar Enter e Espaço via teclado, e
|
|
220
|
+
* internamente pelo próprio item quando standalone (fora de br-list).
|
|
221
|
+
*/
|
|
222
|
+
async activate() {
|
|
223
|
+
if (this.isButton) {
|
|
224
|
+
this.focusableElement?.click();
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
this.handleClick(new MouseEvent('click', { bubbles: true }));
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Define o foco no elemento interno do componente.
|
|
231
|
+
* Este método pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.
|
|
232
|
+
*/
|
|
233
|
+
async setFocus() {
|
|
234
|
+
this.el?.focus();
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Define o tabIndex do elemento interno.
|
|
238
|
+
* Utilizado pelo br-list para implementar o padrão roving tabindex,
|
|
239
|
+
* garantindo que apenas um item por vez seja alcançável via Tab.
|
|
240
|
+
*/
|
|
241
|
+
async setTabIndex(value) {
|
|
242
|
+
this.rovingTabIndex = value;
|
|
243
|
+
}
|
|
244
|
+
get effectiveActive() {
|
|
245
|
+
return this.active ?? this.isActive;
|
|
246
|
+
}
|
|
247
|
+
get effectiveSelected() {
|
|
248
|
+
return this.selected ?? this.isSelected;
|
|
249
|
+
}
|
|
250
|
+
get hasControlledSelection() {
|
|
251
|
+
return this.selected !== undefined;
|
|
252
|
+
}
|
|
253
|
+
get effectiveInteractive() {
|
|
254
|
+
return (this.interactive ??
|
|
255
|
+
(this.isInteractive ||
|
|
256
|
+
(this.el ? this.el.hasAttribute('is-interactive') || this.el.hasAttribute('interactive') : false)));
|
|
257
|
+
}
|
|
258
|
+
get selectionEnabled() {
|
|
259
|
+
return !this.el.hasAttribute('data-no-selection');
|
|
260
|
+
}
|
|
261
|
+
get effectiveButton() {
|
|
262
|
+
return this.button ?? this.isButton;
|
|
263
|
+
}
|
|
264
|
+
hasSlotContentDefault() {
|
|
265
|
+
this.hasSlotDefault = hasDefaultLightDomContent(this.el);
|
|
266
|
+
}
|
|
267
|
+
hasSlotContent(slotName) {
|
|
268
|
+
return hasNamedLightDomSlot(this.el, slotName);
|
|
269
|
+
}
|
|
270
|
+
getCssClassMap() {
|
|
271
|
+
return {
|
|
272
|
+
'br-item': true,
|
|
273
|
+
disabled: this.disabled,
|
|
274
|
+
active: this.effectiveActive,
|
|
275
|
+
selected: this.selected ?? this.selectedValue,
|
|
276
|
+
small: this.density === 'small',
|
|
277
|
+
medium: this.density === 'medium',
|
|
278
|
+
large: this.density === 'large',
|
|
279
|
+
'no-text-selection': this.effectiveButton || Boolean(this.href?.length) || this.disabled,
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
getTagType() {
|
|
283
|
+
if (this.effectiveButton) {
|
|
284
|
+
return 'button';
|
|
285
|
+
}
|
|
286
|
+
if (this.href?.length > 0) {
|
|
287
|
+
return 'a';
|
|
288
|
+
}
|
|
289
|
+
return 'div';
|
|
290
|
+
}
|
|
291
|
+
getAttributes() {
|
|
292
|
+
const TagType = this.getTagType();
|
|
293
|
+
const baseAttributes = TagType === 'button'
|
|
294
|
+
? {
|
|
295
|
+
type: this.type,
|
|
296
|
+
value: this.value,
|
|
297
|
+
disabled: this.disabled ? true : null,
|
|
298
|
+
}
|
|
299
|
+
: { href: this.href, target: this.target };
|
|
300
|
+
const isInteractiveDiv = TagType === 'div' && this.isInteractive && !this.hasRadios && !this.hasCheckboxes;
|
|
301
|
+
const isFocusableItem = this.isInteractive || this.isButton || Boolean(this.href?.length);
|
|
302
|
+
return {
|
|
303
|
+
...baseAttributes,
|
|
304
|
+
role: isInteractiveDiv ? 'button' : null,
|
|
305
|
+
'aria-pressed': isInteractiveDiv ? String(this.selected ?? this.selectedValue) : null,
|
|
306
|
+
tabIndex: this.disabled || !isFocusableItem ? -1 : this.rovingTabIndex,
|
|
307
|
+
'aria-disabled': this.disabled ? 'true' : null,
|
|
308
|
+
'aria-current': this.effectiveActive ? 'true' : null,
|
|
309
|
+
'data-toggle': this.effectiveInteractive ? 'selection' : null,
|
|
310
|
+
'is-selected': (this.selected ?? this.selectedValue) ? true : null,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
updateCheckboxSelectionState(emitEvent = true) {
|
|
314
|
+
if (this.hasRadios)
|
|
315
|
+
return;
|
|
316
|
+
const checkboxes = Array.from(this.el.querySelectorAll('br-checkbox'));
|
|
317
|
+
const nextSelected = checkboxes.some((checkbox) => checkbox.checked);
|
|
318
|
+
if (!this.hasControlledSelection)
|
|
319
|
+
this.selectedValue = nextSelected;
|
|
320
|
+
if (emitEvent && this.effectiveInteractive) {
|
|
321
|
+
const detail = { selected: nextSelected };
|
|
322
|
+
this.brDidSelect.emit(detail);
|
|
323
|
+
this.brItemSelect.emit(detail);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
updateRadioSelectionState(emitEvent = true) {
|
|
327
|
+
if (!this.hasRadios)
|
|
328
|
+
return;
|
|
329
|
+
const radios = Array.from(this.el.querySelectorAll('br-radio'));
|
|
330
|
+
const nextSelected = radios.some((radio) => radio.checked);
|
|
331
|
+
if (!this.hasControlledSelection)
|
|
332
|
+
this.selectedValue = nextSelected;
|
|
333
|
+
if (emitEvent && this.effectiveInteractive) {
|
|
334
|
+
const detail = { selected: nextSelected };
|
|
335
|
+
this.brDidSelect.emit(detail);
|
|
336
|
+
this.brItemSelect.emit(detail);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
isClickInsideInteractiveElement(target) {
|
|
340
|
+
const interactiveSelectors = 'br-checkbox, br-radio, br-input, br-button, br-select, br-textarea';
|
|
341
|
+
const interactiveElements = this.el.querySelectorAll(interactiveSelectors);
|
|
342
|
+
return Array.from(interactiveElements).some((el) => el.contains(target) || target === el);
|
|
343
|
+
}
|
|
344
|
+
updateCheckboxes() {
|
|
345
|
+
const checkboxes = Array.from(this.el.querySelectorAll('br-checkbox'));
|
|
346
|
+
checkboxes.forEach((checkbox) => {
|
|
347
|
+
checkbox.checked = this.selectedValue;
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
render() {
|
|
351
|
+
const TagType = this.getTagType();
|
|
352
|
+
const attributes = this.getAttributes();
|
|
353
|
+
const classList = this.getCssClassMap();
|
|
354
|
+
return (h(Host, { key: '0c2e8ad9198db23ff1c43bc1a48cabe478f4d207', tabindex: this.isInteractive || this.effectiveInteractive ? (this.disabled ? -1 : 0) : undefined }, h(TagType, { key: 'd88d1732106bba4167118f16f2a27fdf3cf0f660', class: classList, ...attributes, tabindex: this.isInteractive || this.effectiveInteractive ? (this.disabled ? -1 : 0) : undefined, onClick: this.handleClick, onKeyDown: this.handleKeydown, id: this.customId, ref: (el) => (this.focusableElement = el), onMouseDown: this.handleMouseDown, part: "item" }, this.hasSlotStart || this.hasSlotEnd ? (h("div", { class: "row align-items-center" }, this.hasSlotStart && (h("div", { class: "col-auto" }, h("slot", { name: "start" }))), h("div", { class: "col" }, h("slot", null)), this.hasSlotEnd && (h("div", { class: "col-auto" }, h("slot", { name: "end" }))))) : (h("slot", null)))));
|
|
355
|
+
}
|
|
356
|
+
static get is() { return "br-item"; }
|
|
357
|
+
static get encapsulation() { return "shadow"; }
|
|
358
|
+
static get delegatesFocus() { return true; }
|
|
359
|
+
static get originalStyleUrls() {
|
|
360
|
+
return {
|
|
361
|
+
"$": ["item.scss"]
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
static get styleUrls() {
|
|
365
|
+
return {
|
|
366
|
+
"$": ["item.css"]
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
static get properties() {
|
|
370
|
+
return {
|
|
371
|
+
"disabled": {
|
|
372
|
+
"type": "boolean",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "boolean",
|
|
376
|
+
"resolved": "boolean",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Desabilita a intera\u00E7\u00E3o com o componente."
|
|
384
|
+
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
387
|
+
"reflect": true,
|
|
388
|
+
"attribute": "disabled",
|
|
389
|
+
"defaultValue": "false"
|
|
390
|
+
},
|
|
391
|
+
"customId": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "string",
|
|
396
|
+
"resolved": "string",
|
|
397
|
+
"references": {}
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"optional": false,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": "Identificador \u00FAnico do componente.\nQuando omitido, um valor \u00E9 gerado automaticamente.\n\n> **Padr\u00E3o:** valor \u00FAnico gerado por generateUniqueId()."
|
|
404
|
+
},
|
|
405
|
+
"getter": false,
|
|
406
|
+
"setter": false,
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"attribute": "custom-id",
|
|
409
|
+
"defaultValue": "generateUniqueId()"
|
|
410
|
+
},
|
|
411
|
+
"isActive": {
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"mutable": false,
|
|
414
|
+
"complexType": {
|
|
415
|
+
"original": "boolean",
|
|
416
|
+
"resolved": "boolean",
|
|
417
|
+
"references": {}
|
|
418
|
+
},
|
|
419
|
+
"required": false,
|
|
420
|
+
"optional": false,
|
|
421
|
+
"docs": {
|
|
422
|
+
"tags": [{
|
|
423
|
+
"name": "deprecated",
|
|
424
|
+
"text": "Use `active`."
|
|
425
|
+
}],
|
|
426
|
+
"text": "Indica se o item est\u00E1 no estado ativo.\nSe definido como verdadeiro, o item ser\u00E1 exibido como ativo."
|
|
427
|
+
},
|
|
428
|
+
"getter": false,
|
|
429
|
+
"setter": false,
|
|
430
|
+
"reflect": true,
|
|
431
|
+
"attribute": "is-active",
|
|
432
|
+
"defaultValue": "false"
|
|
433
|
+
},
|
|
434
|
+
"active": {
|
|
435
|
+
"type": "boolean",
|
|
436
|
+
"mutable": false,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "boolean",
|
|
439
|
+
"resolved": "boolean",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": true,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [],
|
|
446
|
+
"text": "Estado ativo can\u00F4nico. Quando informado, tem preced\u00EAncia sobre `isActive`."
|
|
447
|
+
},
|
|
448
|
+
"getter": false,
|
|
449
|
+
"setter": false,
|
|
450
|
+
"reflect": true,
|
|
451
|
+
"attribute": "active"
|
|
452
|
+
},
|
|
453
|
+
"isSelected": {
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"mutable": false,
|
|
456
|
+
"complexType": {
|
|
457
|
+
"original": "boolean",
|
|
458
|
+
"resolved": "boolean",
|
|
459
|
+
"references": {}
|
|
460
|
+
},
|
|
461
|
+
"required": false,
|
|
462
|
+
"optional": false,
|
|
463
|
+
"docs": {
|
|
464
|
+
"tags": [{
|
|
465
|
+
"name": "deprecated",
|
|
466
|
+
"text": "Use `selected`."
|
|
467
|
+
}],
|
|
468
|
+
"text": "Indica se o item est\u00E1 no estado selecionado.\nSe definido como verdadeiro, o item ser\u00E1 exibido como selecionado."
|
|
469
|
+
},
|
|
470
|
+
"getter": false,
|
|
471
|
+
"setter": false,
|
|
472
|
+
"reflect": true,
|
|
473
|
+
"attribute": "is-selected",
|
|
474
|
+
"defaultValue": "false"
|
|
475
|
+
},
|
|
476
|
+
"selected": {
|
|
477
|
+
"type": "boolean",
|
|
478
|
+
"mutable": false,
|
|
479
|
+
"complexType": {
|
|
480
|
+
"original": "boolean",
|
|
481
|
+
"resolved": "boolean",
|
|
482
|
+
"references": {}
|
|
483
|
+
},
|
|
484
|
+
"required": false,
|
|
485
|
+
"optional": true,
|
|
486
|
+
"docs": {
|
|
487
|
+
"tags": [],
|
|
488
|
+
"text": "Estado selecionado can\u00F4nico. Quando informado, tem preced\u00EAncia sobre `isSelected`."
|
|
489
|
+
},
|
|
490
|
+
"getter": false,
|
|
491
|
+
"setter": false,
|
|
492
|
+
"reflect": true,
|
|
493
|
+
"attribute": "selected"
|
|
494
|
+
},
|
|
495
|
+
"isInteractive": {
|
|
496
|
+
"type": "boolean",
|
|
497
|
+
"mutable": false,
|
|
498
|
+
"complexType": {
|
|
499
|
+
"original": "boolean",
|
|
500
|
+
"resolved": "boolean",
|
|
501
|
+
"references": {}
|
|
502
|
+
},
|
|
503
|
+
"required": false,
|
|
504
|
+
"optional": false,
|
|
505
|
+
"docs": {
|
|
506
|
+
"tags": [{
|
|
507
|
+
"name": "deprecated",
|
|
508
|
+
"text": "Use `interactive`."
|
|
509
|
+
}],
|
|
510
|
+
"text": "Marca o item como interativo, permitindo que toda a superf\u00EDcie do item seja clic\u00E1vel."
|
|
511
|
+
},
|
|
512
|
+
"getter": false,
|
|
513
|
+
"setter": false,
|
|
514
|
+
"reflect": true,
|
|
515
|
+
"attribute": "is-interactive",
|
|
516
|
+
"defaultValue": "false"
|
|
517
|
+
},
|
|
518
|
+
"interactive": {
|
|
519
|
+
"type": "boolean",
|
|
520
|
+
"mutable": false,
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "boolean",
|
|
523
|
+
"resolved": "boolean",
|
|
524
|
+
"references": {}
|
|
525
|
+
},
|
|
526
|
+
"required": false,
|
|
527
|
+
"optional": true,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "Torna toda a superf\u00EDcie interativa. Quando informado, tem preced\u00EAncia sobre `isInteractive`."
|
|
531
|
+
},
|
|
532
|
+
"getter": false,
|
|
533
|
+
"setter": false,
|
|
534
|
+
"reflect": true,
|
|
535
|
+
"attribute": "interactive"
|
|
536
|
+
},
|
|
537
|
+
"href": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "string",
|
|
542
|
+
"resolved": "string",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": true,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "URL ou caminho para o qual o usu\u00E1rio ser\u00E1 direcionado ao clicar no item. Quando definido, o item ser\u00E1 renderizado como um link."
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"reflect": true,
|
|
554
|
+
"attribute": "href"
|
|
555
|
+
},
|
|
556
|
+
"target": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"mutable": false,
|
|
559
|
+
"complexType": {
|
|
560
|
+
"original": "BrLinkTarget",
|
|
561
|
+
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
|
|
562
|
+
"references": {
|
|
563
|
+
"BrLinkTarget": {
|
|
564
|
+
"location": "import",
|
|
565
|
+
"path": "../global.types",
|
|
566
|
+
"id": "src/components/global.types.ts::BrLinkTarget",
|
|
567
|
+
"referenceLocation": "BrLinkTarget"
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"required": false,
|
|
572
|
+
"optional": true,
|
|
573
|
+
"docs": {
|
|
574
|
+
"tags": [],
|
|
575
|
+
"text": "Define o alvo do link quando `href` est\u00E1 presente. Pode ser:\n- `_blank` para abrir em uma nova aba,\n- `_self` para abrir na mesma aba,\n- `_parent` para abrir na aba pai,\n- `_top` para abrir na aba superior."
|
|
576
|
+
},
|
|
577
|
+
"getter": false,
|
|
578
|
+
"setter": false,
|
|
579
|
+
"reflect": true,
|
|
580
|
+
"attribute": "target"
|
|
581
|
+
},
|
|
582
|
+
"navigationMode": {
|
|
583
|
+
"type": "string",
|
|
584
|
+
"mutable": false,
|
|
585
|
+
"complexType": {
|
|
586
|
+
"original": "BrNavigationMode",
|
|
587
|
+
"resolved": "\"event\" | \"native\"",
|
|
588
|
+
"references": {
|
|
589
|
+
"BrNavigationMode": {
|
|
590
|
+
"location": "import",
|
|
591
|
+
"path": "../global.types",
|
|
592
|
+
"id": "src/components/global.types.ts::BrNavigationMode",
|
|
593
|
+
"referenceLocation": "BrNavigationMode"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"required": false,
|
|
598
|
+
"optional": false,
|
|
599
|
+
"docs": {
|
|
600
|
+
"tags": [],
|
|
601
|
+
"text": "Controla como o componente integra a navega\u00E7\u00E3o mantendo `href` real no elemento naveg\u00E1vel.\n- `native` (padr\u00E3o): preserva o comportamento do navegador, conforme HTML/W3C.\n- `event`: emite `brNavigate`; se o evento for cancelado, bloqueia a navega\u00E7\u00E3o nativa para a SPA assumir.\nCliques com modificadores, bot\u00E3o do meio ou `target` diferente de `_self` permanecem nativos."
|
|
602
|
+
},
|
|
603
|
+
"getter": false,
|
|
604
|
+
"setter": false,
|
|
605
|
+
"reflect": true,
|
|
606
|
+
"attribute": "navigation-mode",
|
|
607
|
+
"defaultValue": "'native'"
|
|
608
|
+
},
|
|
609
|
+
"isButton": {
|
|
610
|
+
"type": "boolean",
|
|
611
|
+
"mutable": false,
|
|
612
|
+
"complexType": {
|
|
613
|
+
"original": "boolean",
|
|
614
|
+
"resolved": "boolean",
|
|
615
|
+
"references": {}
|
|
616
|
+
},
|
|
617
|
+
"required": false,
|
|
618
|
+
"optional": false,
|
|
619
|
+
"docs": {
|
|
620
|
+
"tags": [{
|
|
621
|
+
"name": "deprecated",
|
|
622
|
+
"text": "Use `button`."
|
|
623
|
+
}],
|
|
624
|
+
"text": "Quando definido como `true`, o item ser\u00E1 tratado como um bot\u00E3o."
|
|
625
|
+
},
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
628
|
+
"reflect": true,
|
|
629
|
+
"attribute": "is-button",
|
|
630
|
+
"defaultValue": "false"
|
|
631
|
+
},
|
|
632
|
+
"button": {
|
|
633
|
+
"type": "boolean",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "boolean",
|
|
637
|
+
"resolved": "boolean",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": true,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "Renderiza o item como bot\u00E3o. Quando informado, tem preced\u00EAncia sobre `isButton`."
|
|
645
|
+
},
|
|
646
|
+
"getter": false,
|
|
647
|
+
"setter": false,
|
|
648
|
+
"reflect": true,
|
|
649
|
+
"attribute": "button"
|
|
650
|
+
},
|
|
651
|
+
"type": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"mutable": true,
|
|
654
|
+
"complexType": {
|
|
655
|
+
"original": "BrButtonType",
|
|
656
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
657
|
+
"references": {
|
|
658
|
+
"BrButtonType": {
|
|
659
|
+
"location": "import",
|
|
660
|
+
"path": "../global.types",
|
|
661
|
+
"id": "src/components/global.types.ts::BrButtonType",
|
|
662
|
+
"referenceLocation": "BrButtonType"
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"required": false,
|
|
667
|
+
"optional": false,
|
|
668
|
+
"docs": {
|
|
669
|
+
"tags": [],
|
|
670
|
+
"text": "Tipo do bot\u00E3o, aplic\u00E1vel apenas se `isButton` for `true`. Pode ser:\n- `'submit'` para enviar um formul\u00E1rio,\n- `'reset'` para redefinir um formul\u00E1rio,\n- `'button'` para um bot\u00E3o padr\u00E3o."
|
|
671
|
+
},
|
|
672
|
+
"getter": false,
|
|
673
|
+
"setter": false,
|
|
674
|
+
"reflect": true,
|
|
675
|
+
"attribute": "type"
|
|
676
|
+
},
|
|
677
|
+
"value": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"mutable": false,
|
|
680
|
+
"complexType": {
|
|
681
|
+
"original": "string",
|
|
682
|
+
"resolved": "string",
|
|
683
|
+
"references": {}
|
|
684
|
+
},
|
|
685
|
+
"required": false,
|
|
686
|
+
"optional": true,
|
|
687
|
+
"docs": {
|
|
688
|
+
"tags": [],
|
|
689
|
+
"text": "Define um valor associado ao br-item quando renderizado como um bot\u00E3o, utilizado em contextos de formul\u00E1rio."
|
|
690
|
+
},
|
|
691
|
+
"getter": false,
|
|
692
|
+
"setter": false,
|
|
693
|
+
"reflect": true,
|
|
694
|
+
"attribute": "value"
|
|
695
|
+
},
|
|
696
|
+
"density": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"mutable": false,
|
|
699
|
+
"complexType": {
|
|
700
|
+
"original": "BrDensity",
|
|
701
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
702
|
+
"references": {
|
|
703
|
+
"BrDensity": {
|
|
704
|
+
"location": "import",
|
|
705
|
+
"path": "../global.types",
|
|
706
|
+
"id": "src/components/global.types.ts::BrDensity",
|
|
707
|
+
"referenceLocation": "BrDensity"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"required": false,
|
|
712
|
+
"optional": false,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"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)."
|
|
716
|
+
},
|
|
717
|
+
"getter": false,
|
|
718
|
+
"setter": false,
|
|
719
|
+
"reflect": true,
|
|
720
|
+
"attribute": "density",
|
|
721
|
+
"defaultValue": "'medium'"
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
static get states() {
|
|
726
|
+
return {
|
|
727
|
+
"hasSlotDefault": {},
|
|
728
|
+
"hasSlotEnd": {},
|
|
729
|
+
"hasSlotStart": {},
|
|
730
|
+
"selectedValue": {},
|
|
731
|
+
"rovingTabIndex": {}
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
static get events() {
|
|
735
|
+
return [{
|
|
736
|
+
"method": "brDidClick",
|
|
737
|
+
"name": "brDidClick",
|
|
738
|
+
"bubbles": true,
|
|
739
|
+
"cancelable": true,
|
|
740
|
+
"composed": true,
|
|
741
|
+
"docs": {
|
|
742
|
+
"tags": [{
|
|
743
|
+
"name": "deprecated",
|
|
744
|
+
"text": "Use `brItemClick`."
|
|
745
|
+
}],
|
|
746
|
+
"text": ""
|
|
747
|
+
},
|
|
748
|
+
"complexType": {
|
|
749
|
+
"original": "any",
|
|
750
|
+
"resolved": "any",
|
|
751
|
+
"references": {}
|
|
752
|
+
}
|
|
753
|
+
}, {
|
|
754
|
+
"method": "brItemClick",
|
|
755
|
+
"name": "brItemClick",
|
|
756
|
+
"bubbles": true,
|
|
757
|
+
"cancelable": true,
|
|
758
|
+
"composed": true,
|
|
759
|
+
"docs": {
|
|
760
|
+
"tags": [],
|
|
761
|
+
"text": "Evento can\u00F4nico emitido quando o item com comportamento de bot\u00E3o \u00E9 acionado."
|
|
762
|
+
},
|
|
763
|
+
"complexType": {
|
|
764
|
+
"original": "void",
|
|
765
|
+
"resolved": "void",
|
|
766
|
+
"references": {}
|
|
767
|
+
}
|
|
768
|
+
}, {
|
|
769
|
+
"method": "brDidSelect",
|
|
770
|
+
"name": "brDidSelect",
|
|
771
|
+
"bubbles": true,
|
|
772
|
+
"cancelable": true,
|
|
773
|
+
"composed": true,
|
|
774
|
+
"docs": {
|
|
775
|
+
"tags": [{
|
|
776
|
+
"name": "deprecated",
|
|
777
|
+
"text": "Use `brItemSelect`."
|
|
778
|
+
}],
|
|
779
|
+
"text": ""
|
|
780
|
+
},
|
|
781
|
+
"complexType": {
|
|
782
|
+
"original": "ItemSelectDetail",
|
|
783
|
+
"resolved": "ItemSelectDetail",
|
|
784
|
+
"references": {
|
|
785
|
+
"ItemSelectDetail": {
|
|
786
|
+
"location": "import",
|
|
787
|
+
"path": "./item.types",
|
|
788
|
+
"id": "src/components/item/item.types.ts::ItemSelectDetail",
|
|
789
|
+
"referenceLocation": "ItemSelectDetail"
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}, {
|
|
794
|
+
"method": "brItemSelect",
|
|
795
|
+
"name": "brItemSelect",
|
|
796
|
+
"bubbles": true,
|
|
797
|
+
"cancelable": false,
|
|
798
|
+
"composed": true,
|
|
799
|
+
"docs": {
|
|
800
|
+
"tags": [],
|
|
801
|
+
"text": "Evento can\u00F4nico emitido quando a sele\u00E7\u00E3o muda."
|
|
802
|
+
},
|
|
803
|
+
"complexType": {
|
|
804
|
+
"original": "ItemSelectDetail",
|
|
805
|
+
"resolved": "ItemSelectDetail",
|
|
806
|
+
"references": {
|
|
807
|
+
"ItemSelectDetail": {
|
|
808
|
+
"location": "import",
|
|
809
|
+
"path": "./item.types",
|
|
810
|
+
"id": "src/components/item/item.types.ts::ItemSelectDetail",
|
|
811
|
+
"referenceLocation": "ItemSelectDetail"
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}, {
|
|
816
|
+
"method": "brNavigate",
|
|
817
|
+
"name": "brNavigate",
|
|
818
|
+
"bubbles": true,
|
|
819
|
+
"cancelable": true,
|
|
820
|
+
"composed": true,
|
|
821
|
+
"docs": {
|
|
822
|
+
"tags": [],
|
|
823
|
+
"text": "Evento cancel\u00E1vel emitido em `navigation-mode=\"event\"` para cliques prim\u00E1rios sem modificadores em links `_self`.\nChame `event.preventDefault()` no listener para impedir a navega\u00E7\u00E3o nativa e entregar `event.detail.href` ao roteador da SPA."
|
|
824
|
+
},
|
|
825
|
+
"complexType": {
|
|
826
|
+
"original": "BrNavigateDetail",
|
|
827
|
+
"resolved": "BrNavigateDetail",
|
|
828
|
+
"references": {
|
|
829
|
+
"BrNavigateDetail": {
|
|
830
|
+
"location": "import",
|
|
831
|
+
"path": "../global.types",
|
|
832
|
+
"id": "src/components/global.types.ts::BrNavigateDetail",
|
|
833
|
+
"referenceLocation": "BrNavigateDetail"
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}];
|
|
838
|
+
}
|
|
839
|
+
static get methods() {
|
|
840
|
+
return {
|
|
841
|
+
"activate": {
|
|
842
|
+
"complexType": {
|
|
843
|
+
"signature": "() => Promise<void>",
|
|
844
|
+
"parameters": [],
|
|
845
|
+
"references": {
|
|
846
|
+
"Promise": {
|
|
847
|
+
"location": "global",
|
|
848
|
+
"id": "global::Promise"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"return": "Promise<void>"
|
|
852
|
+
},
|
|
853
|
+
"docs": {
|
|
854
|
+
"text": "Ativa o item programaticamente, simulando um clique na superf\u00EDcie.\nUtilizado pelo br-list para tratar Enter e Espa\u00E7o via teclado, e\ninternamente pelo pr\u00F3prio item quando standalone (fora de br-list).",
|
|
855
|
+
"tags": []
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
"setFocus": {
|
|
859
|
+
"complexType": {
|
|
860
|
+
"signature": "() => Promise<void>",
|
|
861
|
+
"parameters": [],
|
|
862
|
+
"references": {
|
|
863
|
+
"Promise": {
|
|
864
|
+
"location": "global",
|
|
865
|
+
"id": "global::Promise"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"return": "Promise<void>"
|
|
869
|
+
},
|
|
870
|
+
"docs": {
|
|
871
|
+
"text": "Define o foco no elemento interno do componente.\nEste m\u00E9todo pode ser chamado externamente para garantir que o foco seja aplicado ao elemento correto.",
|
|
872
|
+
"tags": []
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"setTabIndex": {
|
|
876
|
+
"complexType": {
|
|
877
|
+
"signature": "(value: number) => Promise<void>",
|
|
878
|
+
"parameters": [{
|
|
879
|
+
"name": "value",
|
|
880
|
+
"type": "number",
|
|
881
|
+
"docs": ""
|
|
882
|
+
}],
|
|
883
|
+
"references": {
|
|
884
|
+
"Promise": {
|
|
885
|
+
"location": "global",
|
|
886
|
+
"id": "global::Promise"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"return": "Promise<void>"
|
|
890
|
+
},
|
|
891
|
+
"docs": {
|
|
892
|
+
"text": "Define o tabIndex do elemento interno.\nUtilizado pelo br-list para implementar o padr\u00E3o roving tabindex,\ngarantindo que apenas um item por vez seja alcan\u00E7\u00E1vel via Tab.",
|
|
893
|
+
"tags": []
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
static get elementRef() { return "el"; }
|
|
899
|
+
static get watchers() {
|
|
900
|
+
return [{
|
|
901
|
+
"propName": "isSelected",
|
|
902
|
+
"methodName": "handleSelectedPropChange"
|
|
903
|
+
}, {
|
|
904
|
+
"propName": "selected",
|
|
905
|
+
"methodName": "handleSelectedPropChange"
|
|
906
|
+
}];
|
|
907
|
+
}
|
|
908
|
+
static get listeners() {
|
|
909
|
+
return [{
|
|
910
|
+
"name": "checkedChange",
|
|
911
|
+
"method": "handleCheckedChange",
|
|
912
|
+
"target": "document",
|
|
913
|
+
"capture": false,
|
|
914
|
+
"passive": false
|
|
915
|
+
}];
|
|
916
|
+
}
|
|
917
|
+
}
|