@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,1147 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import { createRafBatcher } from "../../../shared/utils/raf-batcher";
|
|
7
|
+
/**
|
|
8
|
+
* ## Design System
|
|
9
|
+
*
|
|
10
|
+
* Para a documentação completa de design, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/select?tab=designer).
|
|
11
|
+
*
|
|
12
|
+
* @category Formulários
|
|
13
|
+
* @status stable
|
|
14
|
+
* @part list - Contêiner visual da lista virtualizada.
|
|
15
|
+
* @slot loading - Indicador exibido enquanto resultados remotos são carregados.
|
|
16
|
+
* @part loading - Área do indicador de carregamento.
|
|
17
|
+
*/
|
|
18
|
+
export class SelectList {
|
|
19
|
+
constructor() {
|
|
20
|
+
/**
|
|
21
|
+
* Coleção de opções exibidas pela lista.
|
|
22
|
+
*
|
|
23
|
+
* @type {SelectOptionData[]}
|
|
24
|
+
* @default []
|
|
25
|
+
*/
|
|
26
|
+
this.options = [];
|
|
27
|
+
/**
|
|
28
|
+
* Termo usado para filtrar opções por rótulo ou valor.
|
|
29
|
+
*
|
|
30
|
+
* @default ''
|
|
31
|
+
*/
|
|
32
|
+
this.searchTerm = '';
|
|
33
|
+
/** Indica que os resultados remotos estão sendo carregados.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
this.loading = false;
|
|
37
|
+
/**
|
|
38
|
+
* Define quantas opções permanecem visíveis na viewport da lista.
|
|
39
|
+
*
|
|
40
|
+
* @default 6
|
|
41
|
+
*/
|
|
42
|
+
this.visibleItems = 6;
|
|
43
|
+
/**
|
|
44
|
+
* Informa a altura base usada no cálculo de posicionamento das opções.
|
|
45
|
+
*
|
|
46
|
+
* @default 56
|
|
47
|
+
*/
|
|
48
|
+
this.itemHeight = 56;
|
|
49
|
+
/**
|
|
50
|
+
* Define quantas opções extras são renderizadas fora da viewport quando o virtual scroll está ativo.
|
|
51
|
+
*
|
|
52
|
+
* @default 0
|
|
53
|
+
*/
|
|
54
|
+
this.overscan = 0;
|
|
55
|
+
/**
|
|
56
|
+
* Rótulo apresentado para a ação de selecionar todos no modo múltiplo.
|
|
57
|
+
*
|
|
58
|
+
* @default 'Selecionar todos'
|
|
59
|
+
*/
|
|
60
|
+
this.selectAllLabel = SelectList.SELECT_ALL_LABEL;
|
|
61
|
+
/**
|
|
62
|
+
* Rótulo apresentado quando todas as opções já estão selecionadas no modo múltiplo.
|
|
63
|
+
*
|
|
64
|
+
* @default 'Desselecionar todos'
|
|
65
|
+
*/
|
|
66
|
+
this.unselectAllLabel = SelectList.DESELECT_ALL_LABEL;
|
|
67
|
+
/**
|
|
68
|
+
* Índice da opção atualmente ativa para navegação por teclado.
|
|
69
|
+
*
|
|
70
|
+
* @default -1
|
|
71
|
+
* @remarks
|
|
72
|
+
* Esse valor é usado para refletir visualmente o foco lógico da lista.
|
|
73
|
+
*/
|
|
74
|
+
this.activeOptionIndex = -1;
|
|
75
|
+
this.isOpen = false;
|
|
76
|
+
this.isMultiple = false;
|
|
77
|
+
this.scrollTop = 0;
|
|
78
|
+
this.measuredItemHeight = null;
|
|
79
|
+
this.measurementFrame = null;
|
|
80
|
+
this.filteredOptionsCache = null;
|
|
81
|
+
this.filteredOptionsCacheKey = '';
|
|
82
|
+
this.scrollBatch = createRafBatcher((scrollTop) => {
|
|
83
|
+
if (this.scrollTop !== scrollTop)
|
|
84
|
+
this.scrollTop = scrollTop;
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* Aguarda o próximo frame para que medições e queries reflitam o DOM recém-renderizado.
|
|
88
|
+
*
|
|
89
|
+
* @returns Uma promise resolvida no próximo `requestAnimationFrame`.
|
|
90
|
+
*/
|
|
91
|
+
this.waitForNextFrame = async () => {
|
|
92
|
+
await new Promise((resolve) => requestAnimationFrame(() => resolve()));
|
|
93
|
+
};
|
|
94
|
+
this.handleScroll = (event) => {
|
|
95
|
+
const target = event.target;
|
|
96
|
+
this.scrollBatch.schedule(target?.scrollTop ?? 0);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
disconnectedCallback() {
|
|
100
|
+
this.scrollBatch.cancel();
|
|
101
|
+
if (this.measurementFrame !== null) {
|
|
102
|
+
cancelAnimationFrame(this.measurementFrame);
|
|
103
|
+
this.measurementFrame = null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
handleSearchTermChange() {
|
|
107
|
+
this.scrollTop = 0;
|
|
108
|
+
if (this.listElement) {
|
|
109
|
+
this.listElement.scrollTop = 0;
|
|
110
|
+
}
|
|
111
|
+
this.scheduleMeasureItemHeight();
|
|
112
|
+
}
|
|
113
|
+
handleSelectAllLabelChange() {
|
|
114
|
+
if (!this.isMultiple)
|
|
115
|
+
return;
|
|
116
|
+
this.options = this.syncSelectAllOption(this.options);
|
|
117
|
+
}
|
|
118
|
+
handleOptionStateChange(event) {
|
|
119
|
+
const detail = event.detail;
|
|
120
|
+
if (!detail?.value)
|
|
121
|
+
return;
|
|
122
|
+
if (this.isMultiple)
|
|
123
|
+
return this.applyMultipleOption(detail);
|
|
124
|
+
if (detail.selected)
|
|
125
|
+
return this.applySingleSelect(detail);
|
|
126
|
+
return this.clearSingleSelection();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Abre a lista e agenda a medição das opções quando necessário.
|
|
130
|
+
*
|
|
131
|
+
* @returns Uma promise concluída após a atualização do estado.
|
|
132
|
+
*/
|
|
133
|
+
async open() {
|
|
134
|
+
this.isOpen = true;
|
|
135
|
+
this.scheduleMeasureItemHeight();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Fecha a lista de opções.
|
|
139
|
+
*
|
|
140
|
+
* @returns Uma promise concluída após a atualização do estado.
|
|
141
|
+
*/
|
|
142
|
+
async close() {
|
|
143
|
+
this.isOpen = false;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Substitui todas as opções renderizadas pela lista.
|
|
147
|
+
*
|
|
148
|
+
* @param options Nova coleção de opções normalizadas.
|
|
149
|
+
* @returns Uma promise concluída após a atualização da lista.
|
|
150
|
+
*/
|
|
151
|
+
async setOptions(options) {
|
|
152
|
+
if (!options || options.length === 0) {
|
|
153
|
+
this.options = [];
|
|
154
|
+
this.scrollTop = 0;
|
|
155
|
+
this.measuredItemHeight = null;
|
|
156
|
+
if (this.listElement) {
|
|
157
|
+
this.listElement.scrollTop = 0;
|
|
158
|
+
}
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const map = new Map();
|
|
162
|
+
let hasDuplicates = false;
|
|
163
|
+
options.forEach((opt) => {
|
|
164
|
+
if (map.has(opt.value)) {
|
|
165
|
+
hasDuplicates = true;
|
|
166
|
+
}
|
|
167
|
+
map.set(opt.value, opt);
|
|
168
|
+
});
|
|
169
|
+
if (hasDuplicates) {
|
|
170
|
+
console.warn('[br-select-list] Foram encontrados valores duplicados em `setOptions`. Apenas a ultima ocorrencia de cada `value` sera mantida.');
|
|
171
|
+
}
|
|
172
|
+
const nextOptions = Array.from(map.values());
|
|
173
|
+
this.options = this.normalizeOptionsForMode(nextOptions, this.isMultiple);
|
|
174
|
+
this.scheduleMeasureItemHeight();
|
|
175
|
+
requestAnimationFrame(() => this.clampScrollPosition());
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Adiciona ou atualiza uma única opção na coleção atual.
|
|
179
|
+
*
|
|
180
|
+
* @param option Opção que deve ser persistida na lista.
|
|
181
|
+
* @returns Uma promise concluída após a atualização da coleção.
|
|
182
|
+
*/
|
|
183
|
+
async setOption(option) {
|
|
184
|
+
const index = this.options.findIndex((opt) => opt.value === option.value);
|
|
185
|
+
let nextOptions;
|
|
186
|
+
if (index !== -1) {
|
|
187
|
+
nextOptions = this.options.map((opt) => (opt.value === option.value ? option : opt));
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
nextOptions = [...this.options, option];
|
|
191
|
+
}
|
|
192
|
+
this.options = this.normalizeOptionsForMode(nextOptions, this.isMultiple);
|
|
193
|
+
requestAnimationFrame(() => this.clampScrollPosition());
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Atualiza o termo de busca e reinicia a janela virtual no topo.
|
|
197
|
+
*
|
|
198
|
+
* @param term Termo que deve filtrar a coleção. String vazia restaura todas as opções.
|
|
199
|
+
*/
|
|
200
|
+
async setSearchTerm(term) {
|
|
201
|
+
const nextTerm = term ?? '';
|
|
202
|
+
if (nextTerm === this.searchTerm)
|
|
203
|
+
return;
|
|
204
|
+
this.searchTerm = nextTerm;
|
|
205
|
+
this.scrollTop = 0;
|
|
206
|
+
if (this.listElement) {
|
|
207
|
+
this.listElement.scrollTop = 0;
|
|
208
|
+
}
|
|
209
|
+
this.scheduleMeasureItemHeight();
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Alterna a lista entre modo simples e múltiplo.
|
|
213
|
+
*
|
|
214
|
+
* @param isMultiple Define se a lista deve operar em seleção múltipla.
|
|
215
|
+
* @returns Uma promise concluída após a atualização do modo.
|
|
216
|
+
*/
|
|
217
|
+
async setMultiple(isMultiple) {
|
|
218
|
+
this.isMultiple = isMultiple;
|
|
219
|
+
this.options = this.normalizeOptionsForMode(this.options, isMultiple);
|
|
220
|
+
this.scheduleMeasureItemHeight();
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Retorna uma cópia das opções atualmente controladas pela lista.
|
|
224
|
+
*
|
|
225
|
+
* @returns As opções renderizadas no estado atual.
|
|
226
|
+
*/
|
|
227
|
+
async getOptions() {
|
|
228
|
+
return this.options.map((option) => ({ ...option }));
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Posiciona uma opção no topo da viewport virtual, respeitando o limite final da lista.
|
|
232
|
+
*
|
|
233
|
+
* @param index Índice lógico da opção alvo.
|
|
234
|
+
* @returns `true` quando o índice pertence à coleção filtrada atual.
|
|
235
|
+
*/
|
|
236
|
+
async scrollOptionToTop(index) {
|
|
237
|
+
const filteredOptions = this.getFilteredOptions();
|
|
238
|
+
if (index < 0 || index >= filteredOptions.length || !this.listElement)
|
|
239
|
+
return false;
|
|
240
|
+
const rowHeight = this.getRowHeight();
|
|
241
|
+
const viewportHeight = this.getViewportHeight();
|
|
242
|
+
const maxScrollTop = Math.max(0, filteredOptions.length * rowHeight - viewportHeight);
|
|
243
|
+
const nextScrollTop = Math.min(index * rowHeight, maxScrollTop);
|
|
244
|
+
/*
|
|
245
|
+
* Atualiza primeiro o estado que define a janela virtual. Dessa forma,
|
|
246
|
+
* os itens do novo intervalo são renderizados antes de o viewport nativo
|
|
247
|
+
* avançar, evitando uma linha vazia durante o reposicionamento.
|
|
248
|
+
*/
|
|
249
|
+
this.scrollTop = nextScrollTop;
|
|
250
|
+
await this.waitForNextFrame();
|
|
251
|
+
this.listElement.scrollTop = nextScrollTop;
|
|
252
|
+
await this.waitForNextFrame();
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Posiciona no topo a primeira opção selecionada na ordem visual da lista.
|
|
257
|
+
* A opção auxiliar de selecionar tudo não participa dessa escolha.
|
|
258
|
+
*
|
|
259
|
+
* @returns `true` quando existe uma opção selecionada para posicionar.
|
|
260
|
+
*/
|
|
261
|
+
async scrollFirstSelectedOptionToTop() {
|
|
262
|
+
const filteredOptions = this.getFilteredOptions();
|
|
263
|
+
const selectedIndex = filteredOptions.findIndex((option) => !this.isSelectAllOption(option) && Boolean(option.selected));
|
|
264
|
+
if (selectedIndex < 0)
|
|
265
|
+
return false;
|
|
266
|
+
return this.scrollOptionToTop(selectedIndex);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Garante visibilidade e foco para uma opção específica.
|
|
270
|
+
*
|
|
271
|
+
* @param index Índice lógico da opção alvo.
|
|
272
|
+
* @returns `true` quando a opção foi encontrada para foco.
|
|
273
|
+
*/
|
|
274
|
+
async focusOption(index) {
|
|
275
|
+
const filteredOptions = this.getFilteredOptions();
|
|
276
|
+
if (index < 0 || index >= filteredOptions.length)
|
|
277
|
+
return false;
|
|
278
|
+
await this.ensureOptionVisible(index);
|
|
279
|
+
let optionElement = this.getOptionElement(index);
|
|
280
|
+
if (!optionElement) {
|
|
281
|
+
await this.waitForNextFrame();
|
|
282
|
+
optionElement = this.getOptionElement(index);
|
|
283
|
+
}
|
|
284
|
+
await optionElement?.setFocus?.();
|
|
285
|
+
return Boolean(optionElement);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Aciona a seleção programática de uma opção específica.
|
|
289
|
+
*
|
|
290
|
+
* @param index Índice lógico da opção alvo.
|
|
291
|
+
* @param selected Estado desejado para a opção. Quando omitido, a própria opção alterna o valor atual.
|
|
292
|
+
* @returns `true` quando a opção foi encontrada para atualização.
|
|
293
|
+
*/
|
|
294
|
+
async setOptionSelected(index, selected) {
|
|
295
|
+
const filteredOptions = this.getFilteredOptions();
|
|
296
|
+
if (index < 0 || index >= filteredOptions.length)
|
|
297
|
+
return false;
|
|
298
|
+
await this.ensureOptionVisible(index);
|
|
299
|
+
let optionElement = this.getOptionElement(index);
|
|
300
|
+
if (!optionElement) {
|
|
301
|
+
await this.waitForNextFrame();
|
|
302
|
+
optionElement = this.getOptionElement(index);
|
|
303
|
+
}
|
|
304
|
+
await optionElement?.setSelectedState?.(selected);
|
|
305
|
+
return Boolean(optionElement);
|
|
306
|
+
}
|
|
307
|
+
applyMultipleOption(detail) {
|
|
308
|
+
if (this.isSelectAllOption(detail)) {
|
|
309
|
+
this.toggleAllOptions(Boolean(detail.selected));
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const nextOptions = this.options.map((option) => {
|
|
313
|
+
if (option.value !== detail.value)
|
|
314
|
+
return option;
|
|
315
|
+
return {
|
|
316
|
+
...option,
|
|
317
|
+
...detail,
|
|
318
|
+
indeterminate: false,
|
|
319
|
+
selected: Boolean(detail.selected),
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
this.options = this.syncSelectAllOption(nextOptions);
|
|
323
|
+
}
|
|
324
|
+
applySingleSelect(detail) {
|
|
325
|
+
const exists = this.options.some((o) => o.value === detail.value);
|
|
326
|
+
if (exists) {
|
|
327
|
+
this.options = this.options.map((o) => ({ ...o, selected: o.value === detail.value }));
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const newOpt = {
|
|
331
|
+
value: detail.value,
|
|
332
|
+
label: detail.label ?? detail.value,
|
|
333
|
+
selected: true,
|
|
334
|
+
};
|
|
335
|
+
this.options = [newOpt, ...this.options.map((o) => ({ ...o, selected: false }))];
|
|
336
|
+
}
|
|
337
|
+
clearSingleSelection() {
|
|
338
|
+
this.options = this.options.map((o) => ({ ...o, selected: false }));
|
|
339
|
+
}
|
|
340
|
+
isSelectAllOption(option) {
|
|
341
|
+
if (option.value === SelectList.SELECT_ALL_VALUE)
|
|
342
|
+
return true;
|
|
343
|
+
const optionLabel = (option.label ?? option.value).trim();
|
|
344
|
+
return optionLabel === this.selectAllLabel || optionLabel === this.unselectAllLabel;
|
|
345
|
+
}
|
|
346
|
+
isSelectableOption(option) {
|
|
347
|
+
return !this.isSelectAllOption(option);
|
|
348
|
+
}
|
|
349
|
+
getSelectableOptions(options) {
|
|
350
|
+
return options.filter((option) => this.isSelectableOption(option));
|
|
351
|
+
}
|
|
352
|
+
getSelectAllLabel(selected, indeterminate) {
|
|
353
|
+
return selected && !indeterminate ? this.unselectAllLabel : this.selectAllLabel;
|
|
354
|
+
}
|
|
355
|
+
createSelectAllOption() {
|
|
356
|
+
return {
|
|
357
|
+
value: SelectList.SELECT_ALL_VALUE,
|
|
358
|
+
label: this.selectAllLabel,
|
|
359
|
+
selected: false,
|
|
360
|
+
indeterminate: false,
|
|
361
|
+
disabled: false,
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
normalizeSelectAllOption(option) {
|
|
365
|
+
if (!this.isSelectAllOption(option))
|
|
366
|
+
return option;
|
|
367
|
+
const selected = Boolean(option.selected) && !option.indeterminate;
|
|
368
|
+
const indeterminate = Boolean(option.indeterminate);
|
|
369
|
+
return {
|
|
370
|
+
...option,
|
|
371
|
+
indeterminate,
|
|
372
|
+
label: this.getSelectAllLabel(selected, indeterminate),
|
|
373
|
+
selected,
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
toggleAllOptions(selected) {
|
|
377
|
+
const nextOptions = this.getSelectableOptions(this.options).map((option) => ({
|
|
378
|
+
...option,
|
|
379
|
+
selected,
|
|
380
|
+
indeterminate: false,
|
|
381
|
+
}));
|
|
382
|
+
this.options = this.syncSelectAllOption(nextOptions);
|
|
383
|
+
}
|
|
384
|
+
syncSelectAllOption(options) {
|
|
385
|
+
const selectableOptions = this.getSelectableOptions(options).map((option) => ({
|
|
386
|
+
...option,
|
|
387
|
+
indeterminate: false,
|
|
388
|
+
}));
|
|
389
|
+
const allSelected = selectableOptions.length > 0 && selectableOptions.every((option) => Boolean(option.selected));
|
|
390
|
+
const anySelected = selectableOptions.some((option) => Boolean(option.selected));
|
|
391
|
+
return [
|
|
392
|
+
this.normalizeSelectAllOption({
|
|
393
|
+
...this.createSelectAllOption(),
|
|
394
|
+
indeterminate: anySelected && !allSelected,
|
|
395
|
+
selected: allSelected,
|
|
396
|
+
}),
|
|
397
|
+
...selectableOptions,
|
|
398
|
+
];
|
|
399
|
+
}
|
|
400
|
+
normalizeOptionsForMode(options, isMultiple) {
|
|
401
|
+
const selectableOptions = this.getSelectableOptions(options);
|
|
402
|
+
if (isMultiple) {
|
|
403
|
+
return this.syncSelectAllOption(selectableOptions);
|
|
404
|
+
}
|
|
405
|
+
let hasSelectedOption = false;
|
|
406
|
+
return selectableOptions.map((option) => {
|
|
407
|
+
const shouldSelect = Boolean(option.selected) && !hasSelectedOption;
|
|
408
|
+
if (shouldSelect) {
|
|
409
|
+
hasSelectedOption = true;
|
|
410
|
+
}
|
|
411
|
+
return {
|
|
412
|
+
...option,
|
|
413
|
+
indeterminate: false,
|
|
414
|
+
selected: shouldSelect,
|
|
415
|
+
};
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
normalizeSearchText(value) {
|
|
419
|
+
return (value ?? '')
|
|
420
|
+
.normalize('NFD')
|
|
421
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
422
|
+
.toLocaleLowerCase('pt-BR')
|
|
423
|
+
.trim();
|
|
424
|
+
}
|
|
425
|
+
getFilteredOptions() {
|
|
426
|
+
const normalizedTerm = this.normalizeSearchText(this.searchTerm);
|
|
427
|
+
const cacheKey = `${normalizedTerm}|${this.isMultiple}|${this.selectAllLabel}|${this.unselectAllLabel}|${this.options.length}`;
|
|
428
|
+
if (this.options === this.filteredOptionsCacheSource &&
|
|
429
|
+
cacheKey === this.filteredOptionsCacheKey &&
|
|
430
|
+
this.filteredOptionsCache !== null) {
|
|
431
|
+
return this.filteredOptionsCache;
|
|
432
|
+
}
|
|
433
|
+
this.filteredOptionsCacheSource = this.options;
|
|
434
|
+
if (!normalizedTerm) {
|
|
435
|
+
this.filteredOptionsCacheKey = cacheKey;
|
|
436
|
+
this.filteredOptionsCache = this.options;
|
|
437
|
+
return this.options;
|
|
438
|
+
}
|
|
439
|
+
this.filteredOptionsCacheKey = cacheKey;
|
|
440
|
+
this.filteredOptionsCache = this.options.filter((option) => {
|
|
441
|
+
if (this.isSelectAllOption(option))
|
|
442
|
+
return this.isMultiple;
|
|
443
|
+
const label = this.normalizeSearchText(option.label ?? option.value);
|
|
444
|
+
const value = this.normalizeSearchText(option.value);
|
|
445
|
+
return label.includes(normalizedTerm) || value.includes(normalizedTerm);
|
|
446
|
+
});
|
|
447
|
+
return this.filteredOptionsCache;
|
|
448
|
+
}
|
|
449
|
+
getViewportHeight() {
|
|
450
|
+
const visibleOptionCount = Math.min(this.getFilteredOptions().length, this.visibleItems);
|
|
451
|
+
return visibleOptionCount * this.getRowHeight();
|
|
452
|
+
}
|
|
453
|
+
getRowHeight() {
|
|
454
|
+
return this.measuredItemHeight ?? this.itemHeight;
|
|
455
|
+
}
|
|
456
|
+
getVisibleRange() {
|
|
457
|
+
const filteredOptions = this.getFilteredOptions();
|
|
458
|
+
if (filteredOptions.length === 0) {
|
|
459
|
+
return { startIndex: 0, endIndex: 0 };
|
|
460
|
+
}
|
|
461
|
+
const rowHeight = this.getRowHeight();
|
|
462
|
+
const firstVisibleIndex = Math.floor(this.scrollTop / rowHeight);
|
|
463
|
+
const startIndex = Math.max(0, firstVisibleIndex - this.overscan);
|
|
464
|
+
const endIndex = Math.min(filteredOptions.length, firstVisibleIndex + this.visibleItems + this.overscan);
|
|
465
|
+
return { startIndex, endIndex };
|
|
466
|
+
}
|
|
467
|
+
clampScrollPosition() {
|
|
468
|
+
if (!this.listElement)
|
|
469
|
+
return;
|
|
470
|
+
const totalHeight = this.getFilteredOptions().length * this.getRowHeight();
|
|
471
|
+
const maxScrollTop = Math.max(0, totalHeight - this.getViewportHeight());
|
|
472
|
+
const nextScrollTop = Math.min(Math.max(0, this.listElement.scrollTop), maxScrollTop);
|
|
473
|
+
if (this.listElement.scrollTop !== nextScrollTop) {
|
|
474
|
+
this.listElement.scrollTop = nextScrollTop;
|
|
475
|
+
}
|
|
476
|
+
if (this.scrollTop !== nextScrollTop) {
|
|
477
|
+
this.scrollTop = nextScrollTop;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
scheduleMeasureItemHeight() {
|
|
481
|
+
if (this.getFilteredOptions().length === 0)
|
|
482
|
+
return;
|
|
483
|
+
if (this.measurementFrame !== null)
|
|
484
|
+
return;
|
|
485
|
+
this.measurementFrame = requestAnimationFrame(async () => {
|
|
486
|
+
this.measurementFrame = null;
|
|
487
|
+
await this.measureItemHeight();
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
async measureItemHeight() {
|
|
491
|
+
const firstOption = this.listElement?.querySelector('br-select-option');
|
|
492
|
+
if (!firstOption?.getItemHeight)
|
|
493
|
+
return;
|
|
494
|
+
const nextHeight = await firstOption.getItemHeight();
|
|
495
|
+
if (!nextHeight || nextHeight <= 0 || nextHeight === this.measuredItemHeight)
|
|
496
|
+
return;
|
|
497
|
+
this.measuredItemHeight = nextHeight;
|
|
498
|
+
this.clampScrollPosition();
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Localiza a opção renderizada correspondente a um índice lógico da lista.
|
|
502
|
+
*
|
|
503
|
+
* @param index Índice da opção dentro da coleção atual.
|
|
504
|
+
* @returns O elemento da opção, quando presente no DOM.
|
|
505
|
+
*/
|
|
506
|
+
getOptionElement(index) {
|
|
507
|
+
return this.el.shadowRoot?.querySelector(`br-select-option[data-option-index="${index}"]`);
|
|
508
|
+
}
|
|
509
|
+
async ensureOptionVisible(index) {
|
|
510
|
+
if (!this.listElement)
|
|
511
|
+
return;
|
|
512
|
+
const rowHeight = this.getRowHeight();
|
|
513
|
+
const viewportHeight = this.getViewportHeight();
|
|
514
|
+
const optionTop = index * rowHeight;
|
|
515
|
+
const optionBottom = optionTop + rowHeight;
|
|
516
|
+
const viewportTop = this.listElement.scrollTop;
|
|
517
|
+
const viewportBottom = viewportTop + viewportHeight;
|
|
518
|
+
let nextScrollTop = viewportTop;
|
|
519
|
+
if (optionTop < viewportTop) {
|
|
520
|
+
nextScrollTop = optionTop;
|
|
521
|
+
}
|
|
522
|
+
else if (optionBottom > viewportBottom) {
|
|
523
|
+
nextScrollTop = optionBottom - viewportHeight;
|
|
524
|
+
}
|
|
525
|
+
const maxScrollTop = Math.max(0, this.getFilteredOptions().length * rowHeight - viewportHeight);
|
|
526
|
+
nextScrollTop = Math.min(Math.max(0, nextScrollTop), maxScrollTop);
|
|
527
|
+
if (nextScrollTop === viewportTop)
|
|
528
|
+
return;
|
|
529
|
+
this.listElement.scrollTop = nextScrollTop;
|
|
530
|
+
this.scrollTop = nextScrollTop;
|
|
531
|
+
await this.waitForNextFrame();
|
|
532
|
+
}
|
|
533
|
+
getCssClassMap() {
|
|
534
|
+
return {
|
|
535
|
+
'br-select-list': true,
|
|
536
|
+
'is-open': this.isOpen,
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
renderOption(option, index) {
|
|
540
|
+
const rowHeight = this.getRowHeight();
|
|
541
|
+
const optionPart = this.isSelectAllOption(option) ? 'option select-all' : 'option';
|
|
542
|
+
return (h("br-select-option", { part: optionPart, active: index === this.activeOptionIndex, "data-option-index": index, disabled: option.disabled, id: `${this.el.id || 'br-select-list'}-option-${index}`, indeterminate: option.indeterminate, key: option.value, label: option.label, selected: option.selected, "show-checkbox": this.isMultiple, style: {
|
|
543
|
+
boxSizing: 'border-box',
|
|
544
|
+
height: `${rowHeight}px`,
|
|
545
|
+
position: 'absolute',
|
|
546
|
+
top: `${index * rowHeight}px`,
|
|
547
|
+
left: '0',
|
|
548
|
+
right: '0',
|
|
549
|
+
}, value: option.value }, option.label ?? option.value));
|
|
550
|
+
}
|
|
551
|
+
getVirtualScrollStyle() {
|
|
552
|
+
return {
|
|
553
|
+
height: `${this.getViewportHeight()}px`,
|
|
554
|
+
overflowY: 'auto',
|
|
555
|
+
overflowX: 'hidden',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
getVirtualSpacerStyle() {
|
|
559
|
+
return {
|
|
560
|
+
height: `${this.getFilteredOptions().length * this.getRowHeight()}px`,
|
|
561
|
+
position: 'relative',
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
getVirtualVisibleOptions() {
|
|
565
|
+
const filteredOptions = this.getFilteredOptions();
|
|
566
|
+
const { startIndex, endIndex } = this.getVisibleRange();
|
|
567
|
+
return {
|
|
568
|
+
startIndex,
|
|
569
|
+
visibleOptions: filteredOptions.slice(startIndex, endIndex),
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
renderVirtualOptions() {
|
|
573
|
+
const { startIndex, visibleOptions } = this.getVirtualVisibleOptions();
|
|
574
|
+
if (visibleOptions.length === 0) {
|
|
575
|
+
return (h("div", { part: "empty-option", role: "option", "aria-selected": "false", tabIndex: 0 }, "Nenhum resultado encontrado"));
|
|
576
|
+
}
|
|
577
|
+
return (h("div", { style: this.getVirtualSpacerStyle() }, visibleOptions.map((option, relativeIndex) => this.renderOption(option, startIndex + relativeIndex))));
|
|
578
|
+
}
|
|
579
|
+
renderLoading() {
|
|
580
|
+
return (h("div", { part: "loading", role: "status", "aria-live": "polite" }, h("slot", { name: "loading" }, h("br-loading", { size: "small", label: "Buscando op\u00E7\u00F5es" }))));
|
|
581
|
+
}
|
|
582
|
+
render() {
|
|
583
|
+
return (h(Host, { key: '5dc8eb2363f8deae198dade6003ded206eb959a4' }, h("div", { key: '6cc0273ab1143d29114090ea7edde1b49d217fe8', class: this.getCssClassMap(), part: "list", ref: (el) => (this.listElement = el), onScroll: this.handleScroll, style: this.getVirtualScrollStyle() }, this.loading ? this.renderLoading() : this.renderVirtualOptions())));
|
|
584
|
+
}
|
|
585
|
+
static get is() { return "br-select-list"; }
|
|
586
|
+
static get encapsulation() { return "shadow"; }
|
|
587
|
+
static get originalStyleUrls() {
|
|
588
|
+
return {
|
|
589
|
+
"$": ["select-list.scss"]
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
static get styleUrls() {
|
|
593
|
+
return {
|
|
594
|
+
"$": ["select-list.css"]
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
static get properties() {
|
|
598
|
+
return {
|
|
599
|
+
"options": {
|
|
600
|
+
"type": "unknown",
|
|
601
|
+
"mutable": true,
|
|
602
|
+
"complexType": {
|
|
603
|
+
"original": "SelectOptionData[]",
|
|
604
|
+
"resolved": "SelectOptionData[]",
|
|
605
|
+
"references": {
|
|
606
|
+
"SelectOptionData": {
|
|
607
|
+
"location": "import",
|
|
608
|
+
"path": "../select.types",
|
|
609
|
+
"id": "src/components/select/select.types.ts::SelectOptionData",
|
|
610
|
+
"referenceLocation": "SelectOptionData"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"required": false,
|
|
615
|
+
"optional": false,
|
|
616
|
+
"docs": {
|
|
617
|
+
"tags": [{
|
|
618
|
+
"name": "type",
|
|
619
|
+
"text": "{SelectOptionData[]}"
|
|
620
|
+
}, {
|
|
621
|
+
"name": "default",
|
|
622
|
+
"text": "[]"
|
|
623
|
+
}],
|
|
624
|
+
"text": "Cole\u00E7\u00E3o de op\u00E7\u00F5es exibidas pela lista."
|
|
625
|
+
},
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
628
|
+
"defaultValue": "[]"
|
|
629
|
+
},
|
|
630
|
+
"searchTerm": {
|
|
631
|
+
"type": "string",
|
|
632
|
+
"mutable": false,
|
|
633
|
+
"complexType": {
|
|
634
|
+
"original": "string",
|
|
635
|
+
"resolved": "string",
|
|
636
|
+
"references": {}
|
|
637
|
+
},
|
|
638
|
+
"required": false,
|
|
639
|
+
"optional": false,
|
|
640
|
+
"docs": {
|
|
641
|
+
"tags": [{
|
|
642
|
+
"name": "default",
|
|
643
|
+
"text": "''"
|
|
644
|
+
}],
|
|
645
|
+
"text": "Termo usado para filtrar op\u00E7\u00F5es por r\u00F3tulo ou valor."
|
|
646
|
+
},
|
|
647
|
+
"getter": false,
|
|
648
|
+
"setter": false,
|
|
649
|
+
"reflect": false,
|
|
650
|
+
"attribute": "search-term",
|
|
651
|
+
"defaultValue": "''"
|
|
652
|
+
},
|
|
653
|
+
"loading": {
|
|
654
|
+
"type": "boolean",
|
|
655
|
+
"mutable": false,
|
|
656
|
+
"complexType": {
|
|
657
|
+
"original": "boolean",
|
|
658
|
+
"resolved": "boolean",
|
|
659
|
+
"references": {}
|
|
660
|
+
},
|
|
661
|
+
"required": false,
|
|
662
|
+
"optional": false,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [{
|
|
665
|
+
"name": "default",
|
|
666
|
+
"text": "false"
|
|
667
|
+
}],
|
|
668
|
+
"text": "Indica que os resultados remotos est\u00E3o sendo carregados."
|
|
669
|
+
},
|
|
670
|
+
"getter": false,
|
|
671
|
+
"setter": false,
|
|
672
|
+
"reflect": false,
|
|
673
|
+
"attribute": "loading",
|
|
674
|
+
"defaultValue": "false"
|
|
675
|
+
},
|
|
676
|
+
"visibleItems": {
|
|
677
|
+
"type": "number",
|
|
678
|
+
"mutable": false,
|
|
679
|
+
"complexType": {
|
|
680
|
+
"original": "number",
|
|
681
|
+
"resolved": "number",
|
|
682
|
+
"references": {}
|
|
683
|
+
},
|
|
684
|
+
"required": false,
|
|
685
|
+
"optional": false,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [{
|
|
688
|
+
"name": "default",
|
|
689
|
+
"text": "6"
|
|
690
|
+
}],
|
|
691
|
+
"text": "Define quantas op\u00E7\u00F5es permanecem vis\u00EDveis na viewport da lista."
|
|
692
|
+
},
|
|
693
|
+
"getter": false,
|
|
694
|
+
"setter": false,
|
|
695
|
+
"reflect": false,
|
|
696
|
+
"attribute": "visible-items",
|
|
697
|
+
"defaultValue": "6"
|
|
698
|
+
},
|
|
699
|
+
"itemHeight": {
|
|
700
|
+
"type": "number",
|
|
701
|
+
"mutable": false,
|
|
702
|
+
"complexType": {
|
|
703
|
+
"original": "number",
|
|
704
|
+
"resolved": "number",
|
|
705
|
+
"references": {}
|
|
706
|
+
},
|
|
707
|
+
"required": false,
|
|
708
|
+
"optional": false,
|
|
709
|
+
"docs": {
|
|
710
|
+
"tags": [{
|
|
711
|
+
"name": "default",
|
|
712
|
+
"text": "56"
|
|
713
|
+
}],
|
|
714
|
+
"text": "Informa a altura base usada no c\u00E1lculo de posicionamento das op\u00E7\u00F5es."
|
|
715
|
+
},
|
|
716
|
+
"getter": false,
|
|
717
|
+
"setter": false,
|
|
718
|
+
"reflect": false,
|
|
719
|
+
"attribute": "item-height",
|
|
720
|
+
"defaultValue": "56"
|
|
721
|
+
},
|
|
722
|
+
"overscan": {
|
|
723
|
+
"type": "number",
|
|
724
|
+
"mutable": false,
|
|
725
|
+
"complexType": {
|
|
726
|
+
"original": "number",
|
|
727
|
+
"resolved": "number",
|
|
728
|
+
"references": {}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [{
|
|
734
|
+
"name": "default",
|
|
735
|
+
"text": "0"
|
|
736
|
+
}],
|
|
737
|
+
"text": "Define quantas op\u00E7\u00F5es extras s\u00E3o renderizadas fora da viewport quando o virtual scroll est\u00E1 ativo."
|
|
738
|
+
},
|
|
739
|
+
"getter": false,
|
|
740
|
+
"setter": false,
|
|
741
|
+
"reflect": false,
|
|
742
|
+
"attribute": "overscan",
|
|
743
|
+
"defaultValue": "0"
|
|
744
|
+
},
|
|
745
|
+
"selectAllLabel": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"mutable": false,
|
|
748
|
+
"complexType": {
|
|
749
|
+
"original": "string",
|
|
750
|
+
"resolved": "string",
|
|
751
|
+
"references": {}
|
|
752
|
+
},
|
|
753
|
+
"required": false,
|
|
754
|
+
"optional": false,
|
|
755
|
+
"docs": {
|
|
756
|
+
"tags": [{
|
|
757
|
+
"name": "default",
|
|
758
|
+
"text": "'Selecionar todos'"
|
|
759
|
+
}],
|
|
760
|
+
"text": "R\u00F3tulo apresentado para a a\u00E7\u00E3o de selecionar todos no modo m\u00FAltiplo."
|
|
761
|
+
},
|
|
762
|
+
"getter": false,
|
|
763
|
+
"setter": false,
|
|
764
|
+
"reflect": false,
|
|
765
|
+
"attribute": "select-all-label",
|
|
766
|
+
"defaultValue": "SelectList.SELECT_ALL_LABEL"
|
|
767
|
+
},
|
|
768
|
+
"unselectAllLabel": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"mutable": false,
|
|
771
|
+
"complexType": {
|
|
772
|
+
"original": "string",
|
|
773
|
+
"resolved": "string",
|
|
774
|
+
"references": {}
|
|
775
|
+
},
|
|
776
|
+
"required": false,
|
|
777
|
+
"optional": false,
|
|
778
|
+
"docs": {
|
|
779
|
+
"tags": [{
|
|
780
|
+
"name": "default",
|
|
781
|
+
"text": "'Desselecionar todos'"
|
|
782
|
+
}],
|
|
783
|
+
"text": "R\u00F3tulo apresentado quando todas as op\u00E7\u00F5es j\u00E1 est\u00E3o selecionadas no modo m\u00FAltiplo."
|
|
784
|
+
},
|
|
785
|
+
"getter": false,
|
|
786
|
+
"setter": false,
|
|
787
|
+
"reflect": false,
|
|
788
|
+
"attribute": "unselect-all-label",
|
|
789
|
+
"defaultValue": "SelectList.DESELECT_ALL_LABEL"
|
|
790
|
+
},
|
|
791
|
+
"activeOptionIndex": {
|
|
792
|
+
"type": "number",
|
|
793
|
+
"mutable": false,
|
|
794
|
+
"complexType": {
|
|
795
|
+
"original": "number",
|
|
796
|
+
"resolved": "number",
|
|
797
|
+
"references": {}
|
|
798
|
+
},
|
|
799
|
+
"required": false,
|
|
800
|
+
"optional": false,
|
|
801
|
+
"docs": {
|
|
802
|
+
"tags": [{
|
|
803
|
+
"name": "default",
|
|
804
|
+
"text": "-1"
|
|
805
|
+
}, {
|
|
806
|
+
"name": "remarks",
|
|
807
|
+
"text": "Esse valor \u00E9 usado para refletir visualmente o foco l\u00F3gico da lista."
|
|
808
|
+
}],
|
|
809
|
+
"text": "\u00CDndice da op\u00E7\u00E3o atualmente ativa para navega\u00E7\u00E3o por teclado."
|
|
810
|
+
},
|
|
811
|
+
"getter": false,
|
|
812
|
+
"setter": false,
|
|
813
|
+
"reflect": false,
|
|
814
|
+
"attribute": "active-option-index",
|
|
815
|
+
"defaultValue": "-1"
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
static get states() {
|
|
820
|
+
return {
|
|
821
|
+
"isOpen": {},
|
|
822
|
+
"isMultiple": {},
|
|
823
|
+
"scrollTop": {},
|
|
824
|
+
"measuredItemHeight": {}
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
static get methods() {
|
|
828
|
+
return {
|
|
829
|
+
"open": {
|
|
830
|
+
"complexType": {
|
|
831
|
+
"signature": "() => Promise<void>",
|
|
832
|
+
"parameters": [],
|
|
833
|
+
"references": {
|
|
834
|
+
"Promise": {
|
|
835
|
+
"location": "global",
|
|
836
|
+
"id": "global::Promise"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"return": "Promise<void>"
|
|
840
|
+
},
|
|
841
|
+
"docs": {
|
|
842
|
+
"text": "Abre a lista e agenda a medi\u00E7\u00E3o das op\u00E7\u00F5es quando necess\u00E1rio.",
|
|
843
|
+
"tags": [{
|
|
844
|
+
"name": "returns",
|
|
845
|
+
"text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do estado."
|
|
846
|
+
}]
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"close": {
|
|
850
|
+
"complexType": {
|
|
851
|
+
"signature": "() => Promise<void>",
|
|
852
|
+
"parameters": [],
|
|
853
|
+
"references": {
|
|
854
|
+
"Promise": {
|
|
855
|
+
"location": "global",
|
|
856
|
+
"id": "global::Promise"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"return": "Promise<void>"
|
|
860
|
+
},
|
|
861
|
+
"docs": {
|
|
862
|
+
"text": "Fecha a lista de op\u00E7\u00F5es.",
|
|
863
|
+
"tags": [{
|
|
864
|
+
"name": "returns",
|
|
865
|
+
"text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do estado."
|
|
866
|
+
}]
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"setOptions": {
|
|
870
|
+
"complexType": {
|
|
871
|
+
"signature": "(options: SelectOptionData[]) => Promise<void>",
|
|
872
|
+
"parameters": [{
|
|
873
|
+
"name": "options",
|
|
874
|
+
"type": "SelectOptionData[]",
|
|
875
|
+
"docs": "Nova cole\u00E7\u00E3o de op\u00E7\u00F5es normalizadas."
|
|
876
|
+
}],
|
|
877
|
+
"references": {
|
|
878
|
+
"Promise": {
|
|
879
|
+
"location": "global",
|
|
880
|
+
"id": "global::Promise"
|
|
881
|
+
},
|
|
882
|
+
"SelectOptionData": {
|
|
883
|
+
"location": "import",
|
|
884
|
+
"path": "../select.types",
|
|
885
|
+
"id": "src/components/select/select.types.ts::SelectOptionData",
|
|
886
|
+
"referenceLocation": "SelectOptionData"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"return": "Promise<void>"
|
|
890
|
+
},
|
|
891
|
+
"docs": {
|
|
892
|
+
"text": "Substitui todas as op\u00E7\u00F5es renderizadas pela lista.",
|
|
893
|
+
"tags": [{
|
|
894
|
+
"name": "param",
|
|
895
|
+
"text": "options Nova cole\u00E7\u00E3o de op\u00E7\u00F5es normalizadas."
|
|
896
|
+
}, {
|
|
897
|
+
"name": "returns",
|
|
898
|
+
"text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o da lista."
|
|
899
|
+
}]
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"setOption": {
|
|
903
|
+
"complexType": {
|
|
904
|
+
"signature": "(option: SelectOptionData) => Promise<void>",
|
|
905
|
+
"parameters": [{
|
|
906
|
+
"name": "option",
|
|
907
|
+
"type": "{ disabled?: boolean; indeterminate?: boolean; label?: string; selected?: boolean; value: string; }",
|
|
908
|
+
"docs": "Op\u00E7\u00E3o que deve ser persistida na lista."
|
|
909
|
+
}],
|
|
910
|
+
"references": {
|
|
911
|
+
"Promise": {
|
|
912
|
+
"location": "global",
|
|
913
|
+
"id": "global::Promise"
|
|
914
|
+
},
|
|
915
|
+
"SelectOptionData": {
|
|
916
|
+
"location": "import",
|
|
917
|
+
"path": "../select.types",
|
|
918
|
+
"id": "src/components/select/select.types.ts::SelectOptionData",
|
|
919
|
+
"referenceLocation": "SelectOptionData"
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"return": "Promise<void>"
|
|
923
|
+
},
|
|
924
|
+
"docs": {
|
|
925
|
+
"text": "Adiciona ou atualiza uma \u00FAnica op\u00E7\u00E3o na cole\u00E7\u00E3o atual.",
|
|
926
|
+
"tags": [{
|
|
927
|
+
"name": "param",
|
|
928
|
+
"text": "option Op\u00E7\u00E3o que deve ser persistida na lista."
|
|
929
|
+
}, {
|
|
930
|
+
"name": "returns",
|
|
931
|
+
"text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o da cole\u00E7\u00E3o."
|
|
932
|
+
}]
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"setSearchTerm": {
|
|
936
|
+
"complexType": {
|
|
937
|
+
"signature": "(term: string) => Promise<void>",
|
|
938
|
+
"parameters": [{
|
|
939
|
+
"name": "term",
|
|
940
|
+
"type": "string",
|
|
941
|
+
"docs": "Termo que deve filtrar a cole\u00E7\u00E3o. String vazia restaura todas as op\u00E7\u00F5es."
|
|
942
|
+
}],
|
|
943
|
+
"references": {
|
|
944
|
+
"Promise": {
|
|
945
|
+
"location": "global",
|
|
946
|
+
"id": "global::Promise"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"return": "Promise<void>"
|
|
950
|
+
},
|
|
951
|
+
"docs": {
|
|
952
|
+
"text": "Atualiza o termo de busca e reinicia a janela virtual no topo.",
|
|
953
|
+
"tags": [{
|
|
954
|
+
"name": "param",
|
|
955
|
+
"text": "term Termo que deve filtrar a cole\u00E7\u00E3o. String vazia restaura todas as op\u00E7\u00F5es."
|
|
956
|
+
}]
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
"setMultiple": {
|
|
960
|
+
"complexType": {
|
|
961
|
+
"signature": "(isMultiple: boolean) => Promise<void>",
|
|
962
|
+
"parameters": [{
|
|
963
|
+
"name": "isMultiple",
|
|
964
|
+
"type": "boolean",
|
|
965
|
+
"docs": "Define se a lista deve operar em sele\u00E7\u00E3o m\u00FAltipla."
|
|
966
|
+
}],
|
|
967
|
+
"references": {
|
|
968
|
+
"Promise": {
|
|
969
|
+
"location": "global",
|
|
970
|
+
"id": "global::Promise"
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
"return": "Promise<void>"
|
|
974
|
+
},
|
|
975
|
+
"docs": {
|
|
976
|
+
"text": "Alterna a lista entre modo simples e m\u00FAltiplo.",
|
|
977
|
+
"tags": [{
|
|
978
|
+
"name": "param",
|
|
979
|
+
"text": "isMultiple Define se a lista deve operar em sele\u00E7\u00E3o m\u00FAltipla."
|
|
980
|
+
}, {
|
|
981
|
+
"name": "returns",
|
|
982
|
+
"text": "Uma promise conclu\u00EDda ap\u00F3s a atualiza\u00E7\u00E3o do modo."
|
|
983
|
+
}]
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"getOptions": {
|
|
987
|
+
"complexType": {
|
|
988
|
+
"signature": "() => Promise<SelectOptionData[]>",
|
|
989
|
+
"parameters": [],
|
|
990
|
+
"references": {
|
|
991
|
+
"Promise": {
|
|
992
|
+
"location": "global",
|
|
993
|
+
"id": "global::Promise"
|
|
994
|
+
},
|
|
995
|
+
"SelectOptionData": {
|
|
996
|
+
"location": "import",
|
|
997
|
+
"path": "../select.types",
|
|
998
|
+
"id": "src/components/select/select.types.ts::SelectOptionData",
|
|
999
|
+
"referenceLocation": "SelectOptionData"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
"return": "Promise<SelectOptionData[]>"
|
|
1003
|
+
},
|
|
1004
|
+
"docs": {
|
|
1005
|
+
"text": "Retorna uma c\u00F3pia das op\u00E7\u00F5es atualmente controladas pela lista.",
|
|
1006
|
+
"tags": [{
|
|
1007
|
+
"name": "returns",
|
|
1008
|
+
"text": "As op\u00E7\u00F5es renderizadas no estado atual."
|
|
1009
|
+
}]
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
"scrollOptionToTop": {
|
|
1013
|
+
"complexType": {
|
|
1014
|
+
"signature": "(index: number) => Promise<boolean>",
|
|
1015
|
+
"parameters": [{
|
|
1016
|
+
"name": "index",
|
|
1017
|
+
"type": "number",
|
|
1018
|
+
"docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1019
|
+
}],
|
|
1020
|
+
"references": {
|
|
1021
|
+
"Promise": {
|
|
1022
|
+
"location": "global",
|
|
1023
|
+
"id": "global::Promise"
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"return": "Promise<boolean>"
|
|
1027
|
+
},
|
|
1028
|
+
"docs": {
|
|
1029
|
+
"text": "Posiciona uma op\u00E7\u00E3o no topo da viewport virtual, respeitando o limite final da lista.",
|
|
1030
|
+
"tags": [{
|
|
1031
|
+
"name": "param",
|
|
1032
|
+
"text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1033
|
+
}, {
|
|
1034
|
+
"name": "returns",
|
|
1035
|
+
"text": "`true` quando o \u00EDndice pertence \u00E0 cole\u00E7\u00E3o filtrada atual."
|
|
1036
|
+
}]
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
"scrollFirstSelectedOptionToTop": {
|
|
1040
|
+
"complexType": {
|
|
1041
|
+
"signature": "() => Promise<boolean>",
|
|
1042
|
+
"parameters": [],
|
|
1043
|
+
"references": {
|
|
1044
|
+
"Promise": {
|
|
1045
|
+
"location": "global",
|
|
1046
|
+
"id": "global::Promise"
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
"return": "Promise<boolean>"
|
|
1050
|
+
},
|
|
1051
|
+
"docs": {
|
|
1052
|
+
"text": "Posiciona no topo a primeira op\u00E7\u00E3o selecionada na ordem visual da lista.\nA op\u00E7\u00E3o auxiliar de selecionar tudo n\u00E3o participa dessa escolha.",
|
|
1053
|
+
"tags": [{
|
|
1054
|
+
"name": "returns",
|
|
1055
|
+
"text": "`true` quando existe uma op\u00E7\u00E3o selecionada para posicionar."
|
|
1056
|
+
}]
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"focusOption": {
|
|
1060
|
+
"complexType": {
|
|
1061
|
+
"signature": "(index: number) => Promise<boolean>",
|
|
1062
|
+
"parameters": [{
|
|
1063
|
+
"name": "index",
|
|
1064
|
+
"type": "number",
|
|
1065
|
+
"docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1066
|
+
}],
|
|
1067
|
+
"references": {
|
|
1068
|
+
"Promise": {
|
|
1069
|
+
"location": "global",
|
|
1070
|
+
"id": "global::Promise"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"return": "Promise<boolean>"
|
|
1074
|
+
},
|
|
1075
|
+
"docs": {
|
|
1076
|
+
"text": "Garante visibilidade e foco para uma op\u00E7\u00E3o espec\u00EDfica.",
|
|
1077
|
+
"tags": [{
|
|
1078
|
+
"name": "param",
|
|
1079
|
+
"text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1080
|
+
}, {
|
|
1081
|
+
"name": "returns",
|
|
1082
|
+
"text": "`true` quando a op\u00E7\u00E3o foi encontrada para foco."
|
|
1083
|
+
}]
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"setOptionSelected": {
|
|
1087
|
+
"complexType": {
|
|
1088
|
+
"signature": "(index: number, selected?: boolean) => Promise<boolean>",
|
|
1089
|
+
"parameters": [{
|
|
1090
|
+
"name": "index",
|
|
1091
|
+
"type": "number",
|
|
1092
|
+
"docs": "\u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1093
|
+
}, {
|
|
1094
|
+
"name": "selected",
|
|
1095
|
+
"type": "boolean",
|
|
1096
|
+
"docs": "Estado desejado para a op\u00E7\u00E3o. Quando omitido, a pr\u00F3pria op\u00E7\u00E3o alterna o valor atual."
|
|
1097
|
+
}],
|
|
1098
|
+
"references": {
|
|
1099
|
+
"Promise": {
|
|
1100
|
+
"location": "global",
|
|
1101
|
+
"id": "global::Promise"
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
"return": "Promise<boolean>"
|
|
1105
|
+
},
|
|
1106
|
+
"docs": {
|
|
1107
|
+
"text": "Aciona a sele\u00E7\u00E3o program\u00E1tica de uma op\u00E7\u00E3o espec\u00EDfica.",
|
|
1108
|
+
"tags": [{
|
|
1109
|
+
"name": "param",
|
|
1110
|
+
"text": "index \u00CDndice l\u00F3gico da op\u00E7\u00E3o alvo."
|
|
1111
|
+
}, {
|
|
1112
|
+
"name": "param",
|
|
1113
|
+
"text": "selected Estado desejado para a op\u00E7\u00E3o. Quando omitido, a pr\u00F3pria op\u00E7\u00E3o alterna o valor atual."
|
|
1114
|
+
}, {
|
|
1115
|
+
"name": "returns",
|
|
1116
|
+
"text": "`true` quando a op\u00E7\u00E3o foi encontrada para atualiza\u00E7\u00E3o."
|
|
1117
|
+
}]
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
static get elementRef() { return "el"; }
|
|
1123
|
+
static get watchers() {
|
|
1124
|
+
return [{
|
|
1125
|
+
"propName": "searchTerm",
|
|
1126
|
+
"methodName": "handleSearchTermChange"
|
|
1127
|
+
}, {
|
|
1128
|
+
"propName": "selectAllLabel",
|
|
1129
|
+
"methodName": "handleSelectAllLabelChange"
|
|
1130
|
+
}, {
|
|
1131
|
+
"propName": "unselectAllLabel",
|
|
1132
|
+
"methodName": "handleSelectAllLabelChange"
|
|
1133
|
+
}];
|
|
1134
|
+
}
|
|
1135
|
+
static get listeners() {
|
|
1136
|
+
return [{
|
|
1137
|
+
"name": "brSelectOptionStateChange",
|
|
1138
|
+
"method": "handleOptionStateChange",
|
|
1139
|
+
"target": undefined,
|
|
1140
|
+
"capture": false,
|
|
1141
|
+
"passive": false
|
|
1142
|
+
}];
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
SelectList.SELECT_ALL_LABEL = 'Selecionar todos';
|
|
1146
|
+
SelectList.DESELECT_ALL_LABEL = 'Desselecionar todos';
|
|
1147
|
+
SelectList.SELECT_ALL_VALUE = 'Alternar todos';
|