@govbr-ds/webcomponents 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -11
- package/cem/custom-elements.json +272 -71
- package/dist/cjs/app-globals-DcqHuMBv.js +9 -0
- package/dist/cjs/br-avatar.cjs.entry.js +248 -0
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +45 -0
- package/dist/cjs/br-breadcrumb.cjs.entry.js +443 -0
- package/dist/cjs/br-button_2.cjs.entry.js +280 -0
- package/dist/cjs/br-card.cjs.entry.js +111 -0
- package/dist/cjs/br-carousel-page.cjs.entry.js +80 -0
- package/dist/cjs/br-carousel.cjs.entry.js +565 -0
- package/dist/cjs/br-checkbox-group.cjs.entry.js +118 -0
- package/dist/cjs/br-checkbox.cjs.entry.js +288 -0
- package/dist/cjs/br-checkgroup.cjs.entry.js +20 -0
- package/dist/cjs/br-collapse_2.cjs.entry.js +683 -0
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +83 -0
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +309 -0
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +39 -0
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +55 -0
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +70 -0
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +25 -0
- package/dist/cjs/br-cookiebar.cjs.entry.js +758 -0
- package/dist/cjs/br-crumb.cjs.entry.js +51 -0
- package/dist/cjs/br-date-picker_3.cjs.entry.js +2447 -0
- package/dist/cjs/br-datetime-picker.cjs.entry.js +1886 -0
- package/dist/cjs/br-divider.cjs.entry.js +225 -0
- package/dist/cjs/br-dropdown_2.cjs.entry.js +2000 -0
- package/dist/cjs/br-footer-category.cjs.entry.js +102 -0
- package/dist/cjs/br-footer-item.cjs.entry.js +52 -0
- package/dist/cjs/br-footer-legal.cjs.entry.js +41 -0
- package/dist/cjs/br-footer-logo.cjs.entry.js +104 -0
- package/dist/cjs/br-footer-social.cjs.entry.js +71 -0
- package/dist/cjs/br-footer.cjs.entry.js +92 -0
- package/dist/cjs/br-header-function.cjs.entry.js +142 -0
- package/dist/cjs/br-header-link.cjs.entry.js +60 -0
- package/dist/cjs/br-header-list.cjs.entry.js +279 -0
- package/dist/cjs/br-header-logo.cjs.entry.js +178 -0
- package/dist/cjs/br-header.cjs.entry.js +642 -0
- package/dist/cjs/br-icon.cjs.entry.js +485 -0
- package/dist/cjs/br-input.cjs.entry.js +599 -0
- package/dist/cjs/br-item.cjs.entry.js +367 -0
- package/dist/cjs/br-link.cjs.entry.js +133 -0
- package/dist/cjs/br-loading.cjs.entry.js +505 -0
- package/dist/cjs/br-magic-button.cjs.entry.js +93 -0
- package/dist/cjs/br-menu-group.cjs.entry.js +23 -0
- package/dist/cjs/br-menu-header.cjs.entry.js +47 -0
- package/dist/cjs/br-menu-info.cjs.entry.js +38 -0
- package/dist/cjs/br-menu-item.cjs.entry.js +79 -0
- package/dist/cjs/br-menu-link.cjs.entry.js +56 -0
- package/dist/cjs/br-menu-list.cjs.entry.js +149 -0
- package/dist/cjs/br-menu-logo.cjs.entry.js +75 -0
- package/dist/cjs/br-menu-social.cjs.entry.js +65 -0
- package/dist/cjs/br-menu.cjs.entry.js +993 -0
- package/dist/cjs/br-modal.cjs.entry.js +496 -0
- package/dist/cjs/br-notification-body.cjs.entry.js +71 -0
- package/dist/cjs/br-notification-header.cjs.entry.js +48 -0
- package/dist/cjs/br-notification-item.cjs.entry.js +110 -0
- package/dist/cjs/br-notification.cjs.entry.js +334 -0
- package/dist/cjs/br-pagination.cjs.entry.js +884 -0
- package/dist/cjs/br-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/br-radio.cjs.entry.js +357 -0
- package/dist/cjs/br-scrim.cjs.entry.js +1336 -0
- package/dist/cjs/br-select-input_3.cjs.entry.js +988 -0
- package/dist/cjs/br-sign-in.cjs.entry.js +126 -0
- package/dist/cjs/br-skip-link-item.cjs.entry.js +20 -0
- package/dist/cjs/br-skip-link.cjs.entry.js +362 -0
- package/dist/cjs/br-skiplink-item.cjs.entry.js +192 -0
- package/dist/cjs/br-slider.cjs.entry.js +687 -0
- package/dist/cjs/br-step_2.cjs.entry.js +628 -0
- package/dist/cjs/br-switch.cjs.entry.js +245 -0
- package/dist/cjs/br-tab-item.cjs.entry.js +185 -0
- package/dist/cjs/br-tab.cjs.entry.js +397 -0
- package/dist/cjs/br-table-body.cjs.entry.js +37 -0
- package/dist/cjs/br-table-cell.cjs.entry.js +184 -0
- package/dist/cjs/br-table-header-cell.cjs.entry.js +173 -0
- package/dist/cjs/br-table-header.cjs.entry.js +37 -0
- package/dist/cjs/br-table-row.cjs.entry.js +81 -0
- package/dist/cjs/br-table.cjs.entry.js +680 -0
- package/dist/cjs/br-tag.cjs.entry.js +493 -0
- package/dist/cjs/br-textarea.cjs.entry.js +306 -0
- package/dist/cjs/br-tooltip.cjs.entry.js +627 -0
- package/dist/cjs/br-upload.cjs.entry.js +581 -0
- package/dist/cjs/br-wizard-panel.cjs.entry.js +54 -0
- package/dist/cjs/br-wizard.cjs.entry.js +708 -0
- package/dist/cjs/breakpoint-observer-P8veqXg7.js +144 -0
- package/dist/cjs/clamp-Co_hWptd.js +25 -0
- package/dist/cjs/cookiebar.utils-CB1gQwZ4.js +18 -0
- package/dist/cjs/datetime-picker-constants-B5pWeOn1.js +3827 -0
- package/dist/cjs/event-CmVdNHxl.js +56 -0
- package/dist/cjs/floating-surface-dismiss-ccdiD0KF.js +63 -0
- package/dist/cjs/floating-ui-MBI1osio.js +136 -0
- package/dist/cjs/floating-ui.dom-BUSTaaxR.js +1715 -0
- package/dist/cjs/focus-DuywwJPR.js +30 -0
- package/dist/cjs/getNextElement-R9l3JtM9.js +31 -0
- package/dist/cjs/iconify-icon-DfODV9bf.js +2307 -0
- package/dist/cjs/id-CjRFMzf6.js +20 -0
- package/dist/cjs/index-C92n55ch.js +678 -0
- package/dist/cjs/index-CRdcutym.js +3287 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/isNil-DO5zWc3l.js +19 -0
- package/dist/cjs/isValid-Fu3kaWNn.js +3694 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/native-dialog--Ewqm4w0.js +49 -0
- package/dist/cjs/navigation-AbzwcRCU.js +25 -0
- package/dist/cjs/parts-D5K3ae2C.js +19 -0
- package/dist/cjs/props-CScmBvKd.js +24 -0
- package/dist/cjs/raf-batcher-yc87a4dS.js +55 -0
- package/dist/cjs/slot-DAllytTj.js +48 -0
- package/dist/cjs/swipe-BU8_XE9f.js +345 -0
- package/dist/cjs/table-constants-BOPSay0B.js +183 -0
- package/dist/cjs/validator-CTCajtT9.js +123 -0
- package/dist/cjs/webcomponents.cjs.js +50 -0
- package/dist/collection/assets/icon-search.svg +6 -0
- package/dist/collection/assets/logo-negative.svg +1 -0
- package/dist/collection/assets/logo-positive.svg +1 -0
- package/dist/collection/assets/wc.svg +1 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/avatar/avatar.css +1 -0
- package/dist/collection/components/avatar/avatar.js +589 -0
- package/dist/collection/components/avatar/avatar.types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +166 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +619 -0
- package/dist/collection/components/breadcrumb/breadcrumb.types.js +1 -0
- package/dist/collection/components/breadcrumb/crumb/crumb.js +175 -0
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +546 -0
- package/dist/collection/components/button/button.types.js +1 -0
- package/dist/collection/components/card/card.css +1 -0
- package/dist/collection/components/card/card.js +225 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -0
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +195 -0
- package/dist/collection/components/carousel/carousel.css +1 -0
- package/dist/collection/components/carousel/carousel.js +1217 -0
- package/dist/collection/components/carousel/carousel.types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +1 -0
- package/dist/collection/components/checkbox/checkbox.js +823 -0
- package/dist/collection/components/checkbox/checkbox.types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +268 -0
- package/dist/collection/components/checkgroup/checkgroup.js +166 -0
- package/dist/collection/components/collapse/collapse.css +1 -0
- package/dist/collection/components/collapse/collapse.js +642 -0
- package/dist/collection/components/collapse/collapse.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +529 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +628 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +165 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +201 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +100 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +172 -0
- package/dist/collection/components/cookiebar/cookiebar.css +1 -0
- package/dist/collection/components/cookiebar/cookiebar.js +1419 -0
- package/dist/collection/components/cookiebar/cookiebar.types.js +1 -0
- package/dist/collection/components/cookiebar/cookiebar.utils.js +14 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +94 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker-props-validation.js +57 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -0
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +913 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input-props-validation.js +65 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +826 -0
- package/dist/collection/components/datetime-picker/datetime-picker-constants.js +36 -0
- package/dist/collection/components/datetime-picker/datetime-picker-form-associated.js +112 -0
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +202 -0
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.js +1924 -0
- package/dist/collection/components/datetime-picker/datetime-picker.types.js +1 -0
- package/dist/collection/components/datetime-picker/datetime-picker.utils.js +250 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker-constants.js +13 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -0
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +456 -0
- package/dist/collection/components/divider/divider.css +1 -0
- package/dist/collection/components/divider/divider.js +537 -0
- package/dist/collection/components/divider/divider.types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +939 -0
- package/dist/collection/components/dropdown/dropdown.types.js +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -0
- package/dist/collection/components/footer/footer-category/footer-category.js +160 -0
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +154 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -0
- package/dist/collection/components/footer/footer-legal/footer-legal.js +75 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.js +342 -0
- package/dist/collection/components/footer/footer-logo/footer-logo.types.js +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -0
- package/dist/collection/components/footer/footer-social/footer-social.js +239 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/footer/footer.js +245 -0
- package/dist/collection/components/footer/footer.types.js +1 -0
- package/dist/collection/components/global.types.js +1 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -0
- package/dist/collection/components/header/header-function/header-function.js +311 -0
- package/dist/collection/components/header/header-link/header-link.css +1 -0
- package/dist/collection/components/header/header-link/header-link.js +189 -0
- package/dist/collection/components/header/header-list/header-list.css +1 -0
- package/dist/collection/components/header/header-list/header-list.js +452 -0
- package/dist/collection/components/header/header-logo/header-logo.css +1 -0
- package/dist/collection/components/header/header-logo/header-logo.js +421 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/header/header.js +1131 -0
- package/dist/collection/components/header/header.types.js +1 -0
- package/dist/collection/components/icon/default-icons-cache.js +233 -0
- package/dist/collection/components/icon/icon.css +1 -0
- package/dist/collection/components/icon/icon.js +598 -0
- package/dist/collection/components/icon/icon.types.js +1 -0
- package/dist/collection/components/icon/icon.utils.js +33 -0
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +1642 -0
- package/dist/collection/components/input/input.types.js +1 -0
- package/dist/collection/components/item/item.css +1 -0
- package/dist/collection/components/item/item.js +917 -0
- package/dist/collection/components/item/item.types.js +1 -0
- package/dist/collection/components/link/link.css +1 -0
- package/dist/collection/components/link/link.js +699 -0
- package/dist/collection/components/list/list.css +1 -0
- package/dist/collection/components/list/list.js +728 -0
- package/dist/collection/components/loading/loading.css +1 -0
- package/dist/collection/components/loading/loading.js +1169 -0
- package/dist/collection/components/loading/loading.types.js +1 -0
- package/dist/collection/components/magic-button/magic-button.css +1 -0
- package/dist/collection/components/magic-button/magic-button.js +238 -0
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -0
- package/dist/collection/components/menu/menu-group/menu-group.js +77 -0
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -0
- package/dist/collection/components/menu/menu-header/menu-header.js +161 -0
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -0
- package/dist/collection/components/menu/menu-info/menu-info.js +94 -0
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -0
- package/dist/collection/components/menu/menu-item/menu-item.js +306 -0
- package/dist/collection/components/menu/menu-item/menu-item.types.js +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -0
- package/dist/collection/components/menu/menu-link/menu-link.js +260 -0
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -0
- package/dist/collection/components/menu/menu-list/menu-list.js +311 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -0
- package/dist/collection/components/menu/menu-logo/menu-logo.js +230 -0
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -0
- package/dist/collection/components/menu/menu-social/menu-social.js +263 -0
- package/dist/collection/components/menu/menu.css +1 -0
- package/dist/collection/components/menu/menu.js +1372 -0
- package/dist/collection/components/menu/menu.types.js +1 -0
- package/dist/collection/components/menu/menu.utils.js +279 -0
- package/dist/collection/components/message/message.css +1 -0
- package/dist/collection/components/message/message.js +508 -0
- package/dist/collection/components/modal/modal.css +1 -0
- package/dist/collection/components/modal/modal.js +842 -0
- package/dist/collection/components/modal/modal.types.js +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -0
- package/dist/collection/components/notification/notification-body/notification-body.js +153 -0
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -0
- package/dist/collection/components/notification/notification-header/notification-header.js +181 -0
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -0
- package/dist/collection/components/notification/notification-item/notification-item.js +351 -0
- package/dist/collection/components/notification/notification-item/notification-item.types.js +1 -0
- package/dist/collection/components/notification/notification.css +1 -0
- package/dist/collection/components/notification/notification.js +838 -0
- package/dist/collection/components/notification/notification.types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1 -0
- package/dist/collection/components/pagination/pagination.js +1470 -0
- package/dist/collection/components/pagination/pagination.types.js +1 -0
- package/dist/collection/components/radio/radio.css +1 -0
- package/dist/collection/components/radio/radio.js +847 -0
- package/dist/collection/components/radio/radio.types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +1 -0
- package/dist/collection/components/radio-group/radio-group.js +862 -0
- package/dist/collection/components/radio-group/radio-group.types.js +1 -0
- package/dist/collection/components/scrim/scrim.css +1 -0
- package/dist/collection/components/scrim/scrim.js +1825 -0
- package/dist/collection/components/scrim/scrim.types.js +1 -0
- package/dist/collection/components/scrim/scrim.utils.js +132 -0
- package/dist/collection/components/select/select-input/select-input.css +1 -0
- package/dist/collection/components/select/select-input/select-input.js +586 -0
- package/dist/collection/components/select/select-list/select-list.css +1 -0
- package/dist/collection/components/select/select-list/select-list.js +1159 -0
- package/dist/collection/components/select/select-option/select-option.css +1 -0
- package/dist/collection/components/select/select-option/select-option.js +564 -0
- package/dist/collection/components/select/select.constants.js +6 -0
- package/dist/collection/components/select/select.css +1 -0
- package/dist/collection/components/select/select.js +2692 -0
- package/dist/collection/components/select/select.types.js +1 -0
- package/dist/collection/components/select/select.utils.js +34 -0
- package/dist/collection/components/sign-in/sign-in.css +1 -0
- package/dist/collection/components/sign-in/sign-in.js +401 -0
- package/dist/collection/components/sign-in/sign-in.types.js +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +103 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -0
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +450 -0
- package/dist/collection/components/skip-link/skip-link.css +1 -0
- package/dist/collection/components/skip-link/skip-link.js +699 -0
- package/dist/collection/components/skip-link/skip-link.types.js +1 -0
- package/dist/collection/components/slider/slider.css +1 -0
- package/dist/collection/components/slider/slider.js +1324 -0
- package/dist/collection/components/slider/slider.types.js +1 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -0
- package/dist/collection/components/step/step-item/step-item.js +604 -0
- package/dist/collection/components/step/step-item/step-item.types.js +1 -0
- package/dist/collection/components/step/step.css +1 -0
- package/dist/collection/components/step/step.js +896 -0
- package/dist/collection/components/step/step.types.js +1 -0
- package/dist/collection/components/switch/switch.css +1 -0
- package/dist/collection/components/switch/switch.js +715 -0
- package/dist/collection/components/switch/switch.types.js +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -0
- package/dist/collection/components/tab/tab-item/tab-item.js +425 -0
- package/dist/collection/components/tab/tab.css +1 -0
- package/dist/collection/components/tab/tab.js +724 -0
- package/dist/collection/components/tab/tab.types.js +1 -0
- package/dist/collection/components/table/table-body/table-body.css +1 -0
- package/dist/collection/components/table/table-body/table-body.js +51 -0
- package/dist/collection/components/table/table-cell/table-cell.css +1 -0
- package/dist/collection/components/table/table-cell/table-cell.js +373 -0
- package/dist/collection/components/table/table-constants.js +171 -0
- package/dist/collection/components/table/table-header/table-header.css +1 -0
- package/dist/collection/components/table/table-header/table-header.js +51 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +402 -0
- package/dist/collection/components/table/table-row/table-row.css +1 -0
- package/dist/collection/components/table/table-row/table-row.js +261 -0
- package/dist/collection/components/table/table-tokens.js +50 -0
- package/dist/collection/components/table/table-types.js +1 -0
- package/dist/collection/components/table/table-utils.js +44 -0
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +1030 -0
- package/dist/collection/components/tag/tag.css +1 -0
- package/dist/collection/components/tag/tag.js +1152 -0
- package/dist/collection/components/tag/tag.types.js +1 -0
- package/dist/collection/components/textarea/textarea.css +1 -0
- package/dist/collection/components/textarea/textarea.js +985 -0
- package/dist/collection/components/textarea/textarea.types.js +1 -0
- package/dist/collection/components/tooltip/tooltip.css +1 -0
- package/dist/collection/components/tooltip/tooltip.js +1024 -0
- package/dist/collection/components/tooltip/tooltip.types.js +1 -0
- package/dist/collection/components/upload/upload.css +1 -0
- package/dist/collection/components/upload/upload.js +1314 -0
- package/dist/collection/components/upload/upload.types.js +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -0
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +167 -0
- package/dist/collection/components/wizard/wizard.css +1 -0
- package/dist/collection/components/wizard/wizard.js +1228 -0
- package/dist/collection/index.js +14 -0
- package/dist/collection/pages/components/cookiebar/index.js +26 -0
- package/dist/collection/pages/components/link/index.js +29 -0
- package/dist/collection/pages/components/pagination/index.js +12 -0
- package/dist/collection/pages/components/slider/index.js +18 -0
- package/dist/collection/pages/scripts/code-editor.js +101 -0
- package/dist/collection/pages/scripts/component-controls.js +600 -0
- package/dist/collection/pages/scripts/dev-event-console.js +47 -0
- package/dist/collection/pages/scripts/menu.js +192 -0
- package/dist/collection/pages/scripts/pageLoader.js +1422 -0
- package/dist/collection/shared/utils/assetsPath.js +75 -0
- package/dist/collection/shared/utils/breakpoint-observer.js +139 -0
- package/dist/collection/shared/utils/clamp.js +21 -0
- package/dist/collection/shared/utils/css-variables.js +12 -0
- package/dist/collection/shared/utils/cssVariables.js +37 -0
- package/dist/collection/shared/utils/date.js +405 -0
- package/dist/collection/shared/utils/debounce.js +39 -0
- package/dist/collection/shared/utils/event.js +55 -0
- package/dist/collection/shared/utils/floating-surface-dismiss.js +59 -0
- package/dist/collection/shared/utils/floating-ui.js +131 -0
- package/dist/collection/shared/utils/focus.js +24 -0
- package/dist/collection/shared/utils/form.js +82 -0
- package/dist/collection/shared/utils/format-bytes.js +20 -0
- package/dist/collection/shared/utils/getNextElement.js +30 -0
- package/dist/collection/shared/utils/getRandom.js +27 -0
- package/dist/collection/shared/utils/helpers.js +31 -0
- package/dist/collection/shared/utils/id.js +16 -0
- package/dist/collection/shared/utils/index.js +60 -0
- package/dist/collection/shared/utils/interfaces.js +1 -0
- package/dist/collection/shared/utils/isClient.js +14 -0
- package/dist/collection/shared/utils/isDefined.js +19 -0
- package/dist/collection/shared/utils/isEmpty.js +30 -0
- package/dist/collection/shared/utils/isHTMLElement.js +16 -0
- package/dist/collection/shared/utils/isNil.js +15 -0
- package/dist/collection/shared/utils/isString.js +20 -0
- package/dist/collection/shared/utils/native-dialog.js +44 -0
- package/dist/collection/shared/utils/navigation.js +21 -0
- package/dist/collection/shared/utils/parts.js +15 -0
- package/dist/collection/shared/utils/prop-warning.js +7 -0
- package/dist/collection/shared/utils/props.js +37 -0
- package/dist/collection/shared/utils/raf-batcher.js +51 -0
- package/dist/collection/shared/utils/scrollLock.js +141 -0
- package/dist/collection/shared/utils/setRafTimeout.js +38 -0
- package/dist/collection/shared/utils/slot.js +113 -0
- package/dist/collection/shared/utils/ssr-date.js +33 -0
- package/dist/collection/shared/utils/stringToArray.js +29 -0
- package/dist/collection/shared/utils/swipe.js +342 -0
- package/dist/collection/shared/utils/transition.js +127 -0
- package/dist/collection/shared/utils/types.js +1 -0
- package/dist/collection/shared/utils/validator.js +51 -0
- package/dist/collection/value-accessors/angular-value-accessor-config.js +41 -0
- package/dist/collection/value-accessors/index.js +6 -0
- package/dist/collection/value-accessors/vue-model-config.js +43 -0
- package/dist/components/br-avatar.d.ts +11 -0
- package/dist/components/br-avatar.js +5 -0
- package/dist/components/br-breadcrumb-item.d.ts +11 -0
- package/dist/components/br-breadcrumb-item.js +5 -0
- package/dist/components/br-breadcrumb.d.ts +11 -0
- package/dist/components/br-breadcrumb.js +5 -0
- package/dist/components/br-button.d.ts +11 -0
- package/dist/components/br-button.js +5 -0
- package/dist/components/br-card.d.ts +11 -0
- package/dist/components/br-card.js +5 -0
- package/dist/components/br-carousel-page.d.ts +11 -0
- package/dist/components/br-carousel-page.js +5 -0
- package/dist/components/br-carousel.d.ts +11 -0
- package/dist/components/br-carousel.js +5 -0
- package/dist/components/br-checkbox-group.d.ts +11 -0
- package/dist/components/br-checkbox-group.js +5 -0
- package/dist/components/br-checkbox.d.ts +11 -0
- package/dist/components/br-checkbox.js +5 -0
- package/dist/components/br-checkgroup.d.ts +11 -0
- package/dist/components/br-checkgroup.js +5 -0
- package/dist/components/br-collapse.d.ts +11 -0
- package/dist/components/br-collapse.js +5 -0
- package/dist/components/br-cookiebar-cookie.d.ts +11 -0
- package/dist/components/br-cookiebar-cookie.js +5 -0
- package/dist/components/br-cookiebar-group.d.ts +11 -0
- package/dist/components/br-cookiebar-group.js +5 -0
- package/dist/components/br-cookiebar-header.d.ts +11 -0
- package/dist/components/br-cookiebar-header.js +5 -0
- package/dist/components/br-cookiebar-link.d.ts +11 -0
- package/dist/components/br-cookiebar-link.js +5 -0
- package/dist/components/br-cookiebar-note-group.d.ts +11 -0
- package/dist/components/br-cookiebar-note-group.js +5 -0
- package/dist/components/br-cookiebar-note.d.ts +11 -0
- package/dist/components/br-cookiebar-note.js +5 -0
- package/dist/components/br-cookiebar.d.ts +11 -0
- package/dist/components/br-cookiebar.js +5 -0
- package/dist/components/br-crumb.d.ts +11 -0
- package/dist/components/br-crumb.js +5 -0
- package/dist/components/br-date-picker.d.ts +11 -0
- package/dist/components/br-date-picker.js +5 -0
- package/dist/components/br-datetime-input.d.ts +11 -0
- package/dist/components/br-datetime-input.js +5 -0
- package/dist/components/br-datetime-picker.d.ts +11 -0
- package/dist/components/br-datetime-picker.js +5 -0
- package/dist/components/br-divider.d.ts +11 -0
- package/dist/components/br-divider.js +5 -0
- package/dist/components/br-dropdown.d.ts +11 -0
- package/dist/components/br-dropdown.js +5 -0
- package/dist/components/br-footer-category.d.ts +11 -0
- package/dist/components/br-footer-category.js +5 -0
- package/dist/components/br-footer-item.d.ts +11 -0
- package/dist/components/br-footer-item.js +5 -0
- package/dist/components/br-footer-legal.d.ts +11 -0
- package/dist/components/br-footer-legal.js +5 -0
- package/dist/components/br-footer-logo.d.ts +11 -0
- package/dist/components/br-footer-logo.js +5 -0
- package/dist/components/br-footer-social.d.ts +11 -0
- package/dist/components/br-footer-social.js +5 -0
- package/dist/components/br-footer.d.ts +11 -0
- package/dist/components/br-footer.js +5 -0
- package/dist/components/br-header-function.d.ts +11 -0
- package/dist/components/br-header-function.js +5 -0
- package/dist/components/br-header-link.d.ts +11 -0
- package/dist/components/br-header-link.js +5 -0
- package/dist/components/br-header-list.d.ts +11 -0
- package/dist/components/br-header-list.js +5 -0
- package/dist/components/br-header-logo.d.ts +11 -0
- package/dist/components/br-header-logo.js +5 -0
- package/dist/components/br-header.d.ts +11 -0
- package/dist/components/br-header.js +5 -0
- package/dist/components/br-icon.d.ts +11 -0
- package/dist/components/br-icon.js +5 -0
- package/dist/components/br-input.d.ts +11 -0
- package/dist/components/br-input.js +5 -0
- package/dist/components/br-item.d.ts +11 -0
- package/dist/components/br-item.js +5 -0
- package/dist/components/br-link.d.ts +11 -0
- package/dist/components/br-link.js +5 -0
- package/dist/components/br-list.d.ts +11 -0
- package/dist/components/br-list.js +5 -0
- package/dist/components/br-loading.d.ts +11 -0
- package/dist/components/br-loading.js +5 -0
- package/dist/components/br-magic-button.d.ts +11 -0
- package/dist/components/br-magic-button.js +5 -0
- package/dist/components/br-menu-group.d.ts +11 -0
- package/dist/components/br-menu-group.js +5 -0
- package/dist/components/br-menu-header.d.ts +11 -0
- package/dist/components/br-menu-header.js +5 -0
- package/dist/components/br-menu-info.d.ts +11 -0
- package/dist/components/br-menu-info.js +5 -0
- package/dist/components/br-menu-item.d.ts +11 -0
- package/dist/components/br-menu-item.js +5 -0
- package/dist/components/br-menu-link.d.ts +11 -0
- package/dist/components/br-menu-link.js +5 -0
- package/dist/components/br-menu-list.d.ts +11 -0
- package/dist/components/br-menu-list.js +5 -0
- package/dist/components/br-menu-logo.d.ts +11 -0
- package/dist/components/br-menu-logo.js +5 -0
- package/dist/components/br-menu-social.d.ts +11 -0
- package/dist/components/br-menu-social.js +5 -0
- package/dist/components/br-menu.d.ts +11 -0
- package/dist/components/br-menu.js +5 -0
- package/dist/components/br-message.d.ts +11 -0
- package/dist/components/br-message.js +5 -0
- package/dist/components/br-modal.d.ts +11 -0
- package/dist/components/br-modal.js +5 -0
- package/dist/components/br-notification-body.d.ts +11 -0
- package/dist/components/br-notification-body.js +5 -0
- package/dist/components/br-notification-header.d.ts +11 -0
- package/dist/components/br-notification-header.js +5 -0
- package/dist/components/br-notification-item.d.ts +11 -0
- package/dist/components/br-notification-item.js +5 -0
- package/dist/components/br-notification.d.ts +11 -0
- package/dist/components/br-notification.js +5 -0
- package/dist/components/br-pagination.d.ts +11 -0
- package/dist/components/br-pagination.js +5 -0
- package/dist/components/br-radio-group.d.ts +11 -0
- package/dist/components/br-radio-group.js +5 -0
- package/dist/components/br-radio.d.ts +11 -0
- package/dist/components/br-radio.js +5 -0
- package/dist/components/br-scrim.d.ts +11 -0
- package/dist/components/br-scrim.js +5 -0
- package/dist/components/br-select-input.d.ts +11 -0
- package/dist/components/br-select-input.js +5 -0
- package/dist/components/br-select-list.d.ts +11 -0
- package/dist/components/br-select-list.js +5 -0
- package/dist/components/br-select-option.d.ts +11 -0
- package/dist/components/br-select-option.js +5 -0
- package/dist/components/br-select.d.ts +11 -0
- package/dist/components/br-select.js +5 -0
- package/dist/components/br-sign-in.d.ts +11 -0
- package/dist/components/br-sign-in.js +5 -0
- package/dist/components/br-skip-link-item.d.ts +11 -0
- package/dist/components/br-skip-link-item.js +5 -0
- package/dist/components/br-skip-link.d.ts +11 -0
- package/dist/components/br-skip-link.js +5 -0
- package/dist/components/br-skiplink-item.d.ts +11 -0
- package/dist/components/br-skiplink-item.js +5 -0
- package/dist/components/br-slider.d.ts +11 -0
- package/dist/components/br-slider.js +5 -0
- package/dist/components/br-step-item.d.ts +11 -0
- package/dist/components/br-step-item.js +5 -0
- package/dist/components/br-step.d.ts +11 -0
- package/dist/components/br-step.js +5 -0
- package/dist/components/br-switch.d.ts +11 -0
- package/dist/components/br-switch.js +5 -0
- package/dist/components/br-tab-item.d.ts +11 -0
- package/dist/components/br-tab-item.js +5 -0
- package/dist/components/br-tab.d.ts +11 -0
- package/dist/components/br-tab.js +5 -0
- package/dist/components/br-table-body.d.ts +11 -0
- package/dist/components/br-table-body.js +5 -0
- package/dist/components/br-table-cell.d.ts +11 -0
- package/dist/components/br-table-cell.js +5 -0
- package/dist/components/br-table-header-cell.d.ts +11 -0
- package/dist/components/br-table-header-cell.js +5 -0
- package/dist/components/br-table-header.d.ts +11 -0
- package/dist/components/br-table-header.js +5 -0
- package/dist/components/br-table-row.d.ts +11 -0
- package/dist/components/br-table-row.js +5 -0
- package/dist/components/br-table.d.ts +11 -0
- package/dist/components/br-table.js +5 -0
- package/dist/components/br-tag.d.ts +11 -0
- package/dist/components/br-tag.js +5 -0
- package/dist/components/br-textarea.d.ts +11 -0
- package/dist/components/br-textarea.js +5 -0
- package/dist/components/br-time-picker.d.ts +11 -0
- package/dist/components/br-time-picker.js +5 -0
- package/dist/components/br-tooltip.d.ts +11 -0
- package/dist/components/br-tooltip.js +5 -0
- package/dist/components/br-upload.d.ts +11 -0
- package/dist/components/br-upload.js +5 -0
- package/dist/components/br-wizard-panel.d.ts +11 -0
- package/dist/components/br-wizard-panel.js +5 -0
- package/dist/components/br-wizard.d.ts +11 -0
- package/dist/components/br-wizard.js +5 -0
- package/dist/components/index.d.ts +213 -0
- package/dist/components/index.js +5 -0
- package/dist/components/p-34Jfn-U-.js +5 -0
- package/dist/components/p-5z6jgH1D.js +5 -0
- package/dist/components/p-6OdfnwnK.js +5 -0
- package/dist/components/p-9S9bgUT0.js +5 -0
- package/dist/components/p-B-qLmYZC.js +5 -0
- package/dist/components/p-B55qsau4.js +5 -0
- package/dist/components/p-B7Amgxkp.js +5 -0
- package/dist/components/p-BC7f6MK8.js +5 -0
- package/dist/components/p-BKuMQJrQ.js +5 -0
- package/dist/components/p-BPJpHGOW.js +5 -0
- package/dist/components/p-BWXfdbQH.js +5 -0
- package/dist/components/p-Bb-nLtTG.js +5 -0
- package/dist/components/p-BeE7R9nu.js +5 -0
- package/dist/components/p-BkS6ujyf.js +5 -0
- package/dist/components/p-Bo0QYHJO.js +5 -0
- package/dist/components/p-C1yRmdso.js +5 -0
- package/dist/components/p-C2i2c_io.js +5 -0
- package/dist/components/p-C7v0lVlX.js +5 -0
- package/dist/components/p-CMBsvswx.js +5 -0
- package/dist/components/p-CRrimdz6.js +5 -0
- package/dist/components/p-CWORw84-.js +5 -0
- package/dist/components/p-CXMwM9m4.js +5 -0
- package/dist/components/p-CdDwqbBv.js +5 -0
- package/dist/components/p-CvUMXJCl.js +5 -0
- package/dist/components/p-D3usVJE2.js +16 -0
- package/dist/components/p-D6zroLx5.js +5 -0
- package/dist/components/p-DA5GS53D.js +5 -0
- package/dist/components/p-DBP6K_aq.js +5 -0
- package/dist/components/p-DBmwzG9E.js +5 -0
- package/dist/components/p-DCrVo-8T.js +5 -0
- package/dist/components/p-DFUKDNck.js +5 -0
- package/dist/components/p-DHicj0By.js +5 -0
- package/dist/components/p-DIK54tTj.js +5 -0
- package/dist/components/p-DQRSHR-D.js +5 -0
- package/dist/components/p-DRVMm1Py.js +5 -0
- package/dist/components/p-DWPmUV72.js +5 -0
- package/dist/components/p-DXjQyH6s.js +5 -0
- package/dist/components/p-DYA74R1r.js +5 -0
- package/dist/components/p-DmCxdB9P.js +5 -0
- package/dist/components/p-Dmfk7eEe.js +5 -0
- package/dist/components/p-Dp0xy_3n.js +5 -0
- package/dist/components/p-DxZJrIyL.js +5 -0
- package/dist/components/p-JAkkThgf.js +5 -0
- package/dist/components/p-Ud-WB0hx.js +5 -0
- package/dist/components/p-bhULC15U.js +5 -0
- package/dist/components/p-cF3ia5e9.js +5 -0
- package/dist/components/p-fpMNttbg.js +5 -0
- package/dist/components/p-gvnfuTjd.js +5 -0
- package/dist/components/p-qYONSNcf.js +5 -0
- package/dist/components/p-qhhHGJY1.js +5 -0
- package/dist/components/p-ttI0nvv_.js +5 -0
- package/dist/components/p-ukNmfGNP.js +5 -0
- package/dist/components/p-xa8e1kSW.js +5 -0
- package/dist/esm/app-globals-DVjNHTTs.js +7 -0
- package/dist/esm/br-avatar.entry.js +246 -0
- package/dist/esm/br-breadcrumb-item.entry.js +43 -0
- package/dist/esm/br-breadcrumb.entry.js +441 -0
- package/dist/esm/br-button_2.entry.js +277 -0
- package/dist/esm/br-card.entry.js +109 -0
- package/dist/esm/br-carousel-page.entry.js +78 -0
- package/dist/esm/br-carousel.entry.js +563 -0
- package/dist/esm/br-checkbox-group.entry.js +116 -0
- package/dist/esm/br-checkbox.entry.js +286 -0
- package/dist/esm/br-checkgroup.entry.js +18 -0
- package/dist/esm/br-collapse_2.entry.js +680 -0
- package/dist/esm/br-cookiebar-cookie.entry.js +81 -0
- package/dist/esm/br-cookiebar-group.entry.js +307 -0
- package/dist/esm/br-cookiebar-header.entry.js +37 -0
- package/dist/esm/br-cookiebar-link.entry.js +53 -0
- package/dist/esm/br-cookiebar-note-group.entry.js +68 -0
- package/dist/esm/br-cookiebar-note.entry.js +23 -0
- package/dist/esm/br-cookiebar.entry.js +756 -0
- package/dist/esm/br-crumb.entry.js +49 -0
- package/dist/esm/br-date-picker_3.entry.js +2443 -0
- package/dist/esm/br-datetime-picker.entry.js +1884 -0
- package/dist/esm/br-divider.entry.js +223 -0
- package/dist/esm/br-dropdown_2.entry.js +1997 -0
- package/dist/esm/br-footer-category.entry.js +100 -0
- package/dist/esm/br-footer-item.entry.js +50 -0
- package/dist/esm/br-footer-legal.entry.js +39 -0
- package/dist/esm/br-footer-logo.entry.js +102 -0
- package/dist/esm/br-footer-social.entry.js +69 -0
- package/dist/esm/br-footer.entry.js +90 -0
- package/dist/esm/br-header-function.entry.js +140 -0
- package/dist/esm/br-header-link.entry.js +58 -0
- package/dist/esm/br-header-list.entry.js +277 -0
- package/dist/esm/br-header-logo.entry.js +176 -0
- package/dist/esm/br-header.entry.js +640 -0
- package/dist/esm/br-icon.entry.js +483 -0
- package/dist/esm/br-input.entry.js +597 -0
- package/dist/esm/br-item.entry.js +365 -0
- package/dist/esm/br-link.entry.js +131 -0
- package/dist/esm/br-loading.entry.js +503 -0
- package/dist/esm/br-magic-button.entry.js +91 -0
- package/dist/esm/br-menu-group.entry.js +21 -0
- package/dist/esm/br-menu-header.entry.js +45 -0
- package/dist/esm/br-menu-info.entry.js +36 -0
- package/dist/esm/br-menu-item.entry.js +77 -0
- package/dist/esm/br-menu-link.entry.js +54 -0
- package/dist/esm/br-menu-list.entry.js +147 -0
- package/dist/esm/br-menu-logo.entry.js +73 -0
- package/dist/esm/br-menu-social.entry.js +63 -0
- package/dist/esm/br-menu.entry.js +991 -0
- package/dist/esm/br-modal.entry.js +494 -0
- package/dist/esm/br-notification-body.entry.js +69 -0
- package/dist/esm/br-notification-header.entry.js +46 -0
- package/dist/esm/br-notification-item.entry.js +108 -0
- package/dist/esm/br-notification.entry.js +332 -0
- package/dist/esm/br-pagination.entry.js +882 -0
- package/dist/esm/br-radio-group.entry.js +426 -0
- package/dist/esm/br-radio.entry.js +355 -0
- package/dist/esm/br-scrim.entry.js +1334 -0
- package/dist/esm/br-select-input_3.entry.js +984 -0
- package/dist/esm/br-sign-in.entry.js +124 -0
- package/dist/esm/br-skip-link-item.entry.js +18 -0
- package/dist/esm/br-skip-link.entry.js +360 -0
- package/dist/esm/br-skiplink-item.entry.js +190 -0
- package/dist/esm/br-slider.entry.js +685 -0
- package/dist/esm/br-step_2.entry.js +625 -0
- package/dist/esm/br-switch.entry.js +243 -0
- package/dist/esm/br-tab-item.entry.js +183 -0
- package/dist/esm/br-tab.entry.js +395 -0
- package/dist/esm/br-table-body.entry.js +35 -0
- package/dist/esm/br-table-cell.entry.js +182 -0
- package/dist/esm/br-table-header-cell.entry.js +171 -0
- package/dist/esm/br-table-header.entry.js +35 -0
- package/dist/esm/br-table-row.entry.js +79 -0
- package/dist/esm/br-table.entry.js +678 -0
- package/dist/esm/br-tag.entry.js +491 -0
- package/dist/esm/br-textarea.entry.js +304 -0
- package/dist/esm/br-tooltip.entry.js +625 -0
- package/dist/esm/br-upload.entry.js +579 -0
- package/dist/esm/br-wizard-panel.entry.js +52 -0
- package/dist/esm/br-wizard.entry.js +706 -0
- package/dist/esm/breakpoint-observer-DBmwzG9E.js +141 -0
- package/dist/esm/clamp-gvnfuTjd.js +23 -0
- package/dist/esm/cookiebar.utils-DYA74R1r.js +16 -0
- package/dist/esm/datetime-picker-constants-Bfm58jO6.js +3798 -0
- package/dist/esm/event-DFN_so7I.js +48 -0
- package/dist/esm/floating-surface-dismiss-BWXfdbQH.js +61 -0
- package/dist/esm/floating-ui-BavFwMnx.js +134 -0
- package/dist/esm/floating-ui.dom-DIK54tTj.js +1707 -0
- package/dist/esm/focus-DxZJrIyL.js +26 -0
- package/dist/esm/getNextElement-9S9bgUT0.js +28 -0
- package/dist/esm/iconify-icon-D3usVJE2.js +2303 -0
- package/dist/esm/id-BkS6ujyf.js +18 -0
- package/dist/esm/index-Bo-2igoO.js +671 -0
- package/dist/esm/index-C2RBydfd.js +3258 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/isNil-B-qLmYZC.js +17 -0
- package/dist/esm/isValid-DIUZX1qS.js +3684 -0
- package/dist/esm/loader.js +15 -0
- package/dist/esm/native-dialog-B55qsau4.js +46 -0
- package/dist/esm/navigation-bhULC15U.js +23 -0
- package/dist/esm/parts-Bb5vVlCC.js +17 -0
- package/dist/esm/props-DRVMm1Py.js +22 -0
- package/dist/esm/raf-batcher-cF3ia5e9.js +53 -0
- package/dist/esm/slot-BIG-yees.js +44 -0
- package/dist/esm/swipe-Dmfk7eEe.js +343 -0
- package/dist/esm/table-constants-CXMwM9m4.js +170 -0
- package/dist/esm/validator-D3tVP32U.js +113 -0
- package/dist/esm/webcomponents.js +46 -0
- package/dist/hydrate/index.d.ts +287 -0
- package/dist/hydrate/index.js +67516 -0
- package/dist/hydrate/index.mjs +67506 -0
- package/dist/hydrate/package.json +12 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +5 -0
- package/dist/loader/index.cjs.js +5 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +5 -0
- package/dist/loader/index.js +6 -0
- package/dist/types/components/item/item.d.ts +1 -0
- package/dist/types/components/select/select-list/select-list.d.ts +1 -0
- package/dist/types/components/select/select-option/select-option.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +14 -0
- package/dist/types/components/select/select.types.d.ts +2 -0
- package/dist/types/components/select/select.utils.d.ts +13 -0
- package/dist/webcomponents/index.esm.js +5 -0
- package/dist/webcomponents/p-0196804a.entry.js +5 -0
- package/dist/webcomponents/p-0410186a.entry.js +5 -0
- package/dist/webcomponents/p-0415ef22.entry.js +5 -0
- package/dist/webcomponents/p-0777c7b1.entry.js +5 -0
- package/dist/webcomponents/p-0caa4d12.entry.js +5 -0
- package/dist/webcomponents/p-0d4f718d.entry.js +5 -0
- package/dist/webcomponents/p-0e84c9e8.entry.js +5 -0
- package/dist/webcomponents/p-12286e73.entry.js +5 -0
- package/dist/webcomponents/p-147ac8d3.entry.js +5 -0
- package/dist/webcomponents/p-1580beee.entry.js +5 -0
- package/dist/webcomponents/p-18ee6175.entry.js +5 -0
- package/dist/webcomponents/p-1bca4499.entry.js +5 -0
- package/dist/webcomponents/p-1c303a4e.entry.js +5 -0
- package/dist/webcomponents/p-1d6b0b6f.entry.js +5 -0
- package/dist/webcomponents/p-1d8cb8fd.entry.js +5 -0
- package/dist/webcomponents/p-224daaac.entry.js +5 -0
- package/dist/webcomponents/p-28426d2a.entry.js +5 -0
- package/dist/webcomponents/p-2abd2da0.entry.js +5 -0
- package/dist/webcomponents/p-2fdc51ae.entry.js +5 -0
- package/dist/webcomponents/p-30c428b6.entry.js +5 -0
- package/dist/webcomponents/p-36bbea4e.entry.js +5 -0
- package/dist/webcomponents/p-3907ebfa.entry.js +5 -0
- package/dist/webcomponents/p-39a16f9d.entry.js +5 -0
- package/dist/webcomponents/p-3ebbd2f5.entry.js +5 -0
- package/dist/webcomponents/p-3ef7eac8.entry.js +5 -0
- package/dist/webcomponents/p-45356e9a.entry.js +5 -0
- package/dist/webcomponents/p-46513db4.entry.js +5 -0
- package/dist/webcomponents/p-4c13221a.entry.js +5 -0
- package/dist/webcomponents/p-51ce2c31.entry.js +5 -0
- package/dist/webcomponents/p-52df61cb.entry.js +5 -0
- package/dist/webcomponents/p-569134cf.entry.js +5 -0
- package/dist/webcomponents/p-5ce7db4a.entry.js +5 -0
- package/dist/webcomponents/p-5f373708.entry.js +5 -0
- package/dist/webcomponents/p-5f6afb79.entry.js +5 -0
- package/dist/webcomponents/p-5fc7ba4c.entry.js +5 -0
- package/dist/webcomponents/p-66006312.entry.js +5 -0
- package/dist/webcomponents/p-66b13fd9.entry.js +5 -0
- package/dist/webcomponents/p-6OdfnwnK.js +5 -0
- package/dist/webcomponents/p-750799b7.entry.js +5 -0
- package/dist/webcomponents/p-756ff2ad.entry.js +5 -0
- package/dist/webcomponents/p-765bfe27.entry.js +5 -0
- package/dist/webcomponents/p-7ab96c11.entry.js +5 -0
- package/dist/webcomponents/p-7c2ff8b4.entry.js +5 -0
- package/dist/webcomponents/p-7f7506f0.entry.js +5 -0
- package/dist/webcomponents/p-7fb03a49.entry.js +5 -0
- package/dist/webcomponents/p-82200563.entry.js +5 -0
- package/dist/webcomponents/p-83ff4579.entry.js +5 -0
- package/dist/webcomponents/p-85f8063b.entry.js +5 -0
- package/dist/webcomponents/p-8b558233.entry.js +5 -0
- package/dist/webcomponents/p-8e6c2767.entry.js +5 -0
- package/dist/webcomponents/p-8e819355.entry.js +5 -0
- package/dist/webcomponents/p-92a9b9c4.entry.js +5 -0
- package/dist/webcomponents/p-966ad32f.entry.js +5 -0
- package/dist/webcomponents/p-9679d230.entry.js +5 -0
- package/dist/webcomponents/p-96dd663b.entry.js +5 -0
- package/dist/webcomponents/p-98843fa3.entry.js +5 -0
- package/dist/webcomponents/p-9S9bgUT0.js +5 -0
- package/dist/webcomponents/p-9a375eff.entry.js +5 -0
- package/dist/webcomponents/p-9b358cff.entry.js +5 -0
- package/dist/webcomponents/p-9f7558c7.entry.js +5 -0
- package/dist/webcomponents/p-B-qLmYZC.js +5 -0
- package/dist/webcomponents/p-B55qsau4.js +5 -0
- package/dist/webcomponents/p-BIG-yees.js +5 -0
- package/dist/webcomponents/p-BWXfdbQH.js +5 -0
- package/dist/webcomponents/p-Bb5vVlCC.js +5 -0
- package/dist/webcomponents/p-Bfm58jO6.js +5 -0
- package/dist/webcomponents/p-BhMVJQ4-.js +5 -0
- package/dist/webcomponents/p-BkS6ujyf.js +5 -0
- package/dist/webcomponents/p-C2RBydfd.js +6 -0
- package/dist/webcomponents/p-CO5cOQQU.js +5 -0
- package/dist/webcomponents/p-CXMwM9m4.js +5 -0
- package/dist/webcomponents/p-D3tVP32U.js +5 -0
- package/dist/webcomponents/p-D3usVJE2.js +16 -0
- package/dist/webcomponents/p-DBmwzG9E.js +5 -0
- package/dist/webcomponents/p-DFN_so7I.js +5 -0
- package/dist/webcomponents/p-DIK54tTj.js +5 -0
- package/dist/webcomponents/p-DRVMm1Py.js +5 -0
- package/dist/webcomponents/p-DVjNHTTs.js +5 -0
- package/dist/webcomponents/p-DYA74R1r.js +5 -0
- package/dist/webcomponents/p-Dmfk7eEe.js +5 -0
- package/dist/webcomponents/p-DxZJrIyL.js +5 -0
- package/dist/webcomponents/p-a382e115.entry.js +5 -0
- package/dist/webcomponents/p-a4ae72e3.entry.js +5 -0
- package/dist/webcomponents/p-a994c190.entry.js +5 -0
- package/dist/webcomponents/p-a9ff7c25.entry.js +5 -0
- package/dist/webcomponents/p-bhULC15U.js +5 -0
- package/dist/webcomponents/p-c0b0f531.entry.js +5 -0
- package/dist/webcomponents/p-c211af17.entry.js +5 -0
- package/dist/webcomponents/p-c492d926.entry.js +5 -0
- package/dist/webcomponents/p-c4cfe599.entry.js +5 -0
- package/dist/webcomponents/p-c846e784.entry.js +5 -0
- package/dist/webcomponents/p-c949d993.entry.js +5 -0
- package/dist/webcomponents/p-cF3ia5e9.js +5 -0
- package/dist/webcomponents/p-d1e899cd.entry.js +5 -0
- package/dist/webcomponents/p-d38d82cc.entry.js +5 -0
- package/dist/webcomponents/p-e0ce536a.entry.js +5 -0
- package/dist/webcomponents/p-e1331288.entry.js +5 -0
- package/dist/webcomponents/p-e360a463.entry.js +5 -0
- package/dist/webcomponents/p-f078f972.entry.js +5 -0
- package/dist/webcomponents/p-f26038e2.entry.js +5 -0
- package/dist/webcomponents/p-f303f6b3.entry.js +5 -0
- package/dist/webcomponents/p-f6318e94.entry.js +5 -0
- package/dist/webcomponents/p-f85ee01c.entry.js +5 -0
- package/dist/webcomponents/p-fcd4ae48.entry.js +5 -0
- package/dist/webcomponents/p-ffe0241e.entry.js +5 -0
- package/dist/webcomponents/p-gvnfuTjd.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +5 -0
- package/package.json +3 -7
- package/cem/.gitkeep +0 -0
|
@@ -0,0 +1,985 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h, } from "@stencil/core";
|
|
6
|
+
import { redispatchNativeFormEvent } from "../../shared/utils/event";
|
|
7
|
+
import { getFormValidationState, isFormControlDisabled, safeSetFormValue, syncNativeFormValidity, } from "../../shared/utils/form";
|
|
8
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
9
|
+
import { hasAssignedSlotContent, hasDefaultLightDomContent } from "../../shared/utils/slot";
|
|
10
|
+
import { resolveFormValidator } from "../../shared/utils/validator";
|
|
11
|
+
/**
|
|
12
|
+
* ## Design System
|
|
13
|
+
*
|
|
14
|
+
* 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/textarea?tab=designer).
|
|
15
|
+
*
|
|
16
|
+
* @category Formulários
|
|
17
|
+
* @status stable
|
|
18
|
+
* @slot default - Slot para texto adicional ou instruções a serem exibidos junto ao textarea.
|
|
19
|
+
* @slot feedback - Mensagem de validação, normalmente um `br-message`.
|
|
20
|
+
* @slot validation-loading - Indicador exibido durante validação assíncrona.
|
|
21
|
+
*
|
|
22
|
+
* @part container - Contêiner visual principal.
|
|
23
|
+
* @part label - Rótulo do textarea.
|
|
24
|
+
* @part textarea - Elemento textarea nativo.
|
|
25
|
+
* @part counter - Contêiner do contador.
|
|
26
|
+
* @part counter-text - Texto do contador.
|
|
27
|
+
* @part helper - Contêiner do conteúdo auxiliar do slot default.
|
|
28
|
+
* @part feedback - Contêiner da mensagem de validação.
|
|
29
|
+
*/
|
|
30
|
+
export class Textarea {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.formDisabled = false;
|
|
33
|
+
/**
|
|
34
|
+
* Indica se o slot padrão possui conteúdo.
|
|
35
|
+
*/
|
|
36
|
+
this.hasDefaultSlot = false;
|
|
37
|
+
this.hasFeedbackSlot = false;
|
|
38
|
+
this.hasValidationLoadingSlot = false;
|
|
39
|
+
this.isValidating = false;
|
|
40
|
+
this.validatorMessage = null;
|
|
41
|
+
/**
|
|
42
|
+
* Valor exibido no textarea.
|
|
43
|
+
* Pode ser alterado pelo usuário se a propriedade `readonly` não estiver ativa.
|
|
44
|
+
*/
|
|
45
|
+
this.value = '';
|
|
46
|
+
/**
|
|
47
|
+
* Identificador único.
|
|
48
|
+
* Caso não seja fornecido, um ID gerado automaticamente será usado.
|
|
49
|
+
*/
|
|
50
|
+
this.customId = generateUniqueId();
|
|
51
|
+
/**
|
|
52
|
+
* Indica se o textarea está desabilitado. Quando verdadeiro, o usuário não pode interagir com o campo.
|
|
53
|
+
*/
|
|
54
|
+
this.disabled = false;
|
|
55
|
+
/**
|
|
56
|
+
* Se verdadeiro, o input é obrigatório e deve ser preenchido antes que o formulário possa ser enviado.
|
|
57
|
+
*/
|
|
58
|
+
this.required = false;
|
|
59
|
+
/** Impede edição sem remover o campo do envio do formulário. */
|
|
60
|
+
this.readonly = false;
|
|
61
|
+
/** Número mínimo de caracteres necessário para o valor ser válido. */
|
|
62
|
+
this.minlength = 0;
|
|
63
|
+
/**
|
|
64
|
+
* Número máximo de caracteres permitidos no textarea. Se definido como 0, não há limite.
|
|
65
|
+
*/
|
|
66
|
+
this.maxlength = 0;
|
|
67
|
+
/**
|
|
68
|
+
* Mostra o contador com a quantidade máxima de caracteres.
|
|
69
|
+
*/
|
|
70
|
+
this.showCounter = false;
|
|
71
|
+
/**
|
|
72
|
+
* Ajusta a densidade do componente, podendo ser 'small', 'medium' ou 'large'.
|
|
73
|
+
*/
|
|
74
|
+
this.density = 'medium';
|
|
75
|
+
/**
|
|
76
|
+
* Se verdadeiro, o rótulo e o input estarão na mesma linha (layout inline).
|
|
77
|
+
* @deprecated Use `inline`.
|
|
78
|
+
*/
|
|
79
|
+
this.isInline = false;
|
|
80
|
+
this.initialValue = '';
|
|
81
|
+
this.manualValidationMessage = '';
|
|
82
|
+
this.validationRunId = 0;
|
|
83
|
+
this.handleInput = (event) => {
|
|
84
|
+
this.value = event.target.value;
|
|
85
|
+
this.valueChange.emit(this.value);
|
|
86
|
+
redispatchNativeFormEvent(this.el, event, 'input');
|
|
87
|
+
};
|
|
88
|
+
this.handleChange = (event) => {
|
|
89
|
+
redispatchNativeFormEvent(this.el, event, 'change');
|
|
90
|
+
void this.validate();
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
formDisabledCallback(disabled) {
|
|
94
|
+
this.formDisabled = disabled;
|
|
95
|
+
this.updateValidity();
|
|
96
|
+
}
|
|
97
|
+
formResetCallback() {
|
|
98
|
+
this.validationRunId++;
|
|
99
|
+
this.validatorMessage = null;
|
|
100
|
+
this.isValidating = false;
|
|
101
|
+
this.manualValidationMessage = '';
|
|
102
|
+
this.value = this.initialValue;
|
|
103
|
+
if (this.nativeTextarea) {
|
|
104
|
+
this.nativeTextarea.value = this.initialValue;
|
|
105
|
+
this.nativeTextarea.setCustomValidity('');
|
|
106
|
+
}
|
|
107
|
+
this.syncFormState(this.initialValue);
|
|
108
|
+
}
|
|
109
|
+
formStateRestoreCallback(state) {
|
|
110
|
+
const restoredValue = typeof state === 'string' ? state : '';
|
|
111
|
+
this.value = restoredValue;
|
|
112
|
+
if (this.nativeTextarea) {
|
|
113
|
+
this.nativeTextarea.value = restoredValue;
|
|
114
|
+
}
|
|
115
|
+
this.syncFormState(restoredValue);
|
|
116
|
+
}
|
|
117
|
+
/** Comprimento atual derivado do valor do textarea. */
|
|
118
|
+
get currentLength() {
|
|
119
|
+
return this.value?.length ?? 0;
|
|
120
|
+
}
|
|
121
|
+
valueChanged() {
|
|
122
|
+
this.validationRunId++;
|
|
123
|
+
this.validatorMessage = null;
|
|
124
|
+
this.syncFormState(this.value ?? '');
|
|
125
|
+
this.updateValidity();
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
this.initialValue = this.value ?? '';
|
|
129
|
+
this.checkSlotContent();
|
|
130
|
+
this.hasValidationLoadingSlot = this.el.querySelector('[slot="validation-loading"]') !== null;
|
|
131
|
+
this.syncFormState(this.value ?? '');
|
|
132
|
+
}
|
|
133
|
+
componentDidLoad() {
|
|
134
|
+
this.updateValidity();
|
|
135
|
+
if (this.el.hasAttribute('autofocus')) {
|
|
136
|
+
this.nativeTextarea?.focus();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Retorna `true` se o valor do textarea for válido, caso contrário `false`.
|
|
141
|
+
* Se o textarea for inválido, dispara um evento 'invalid'.
|
|
142
|
+
*/
|
|
143
|
+
async checkValidity() {
|
|
144
|
+
return this.elementInternals?.checkValidity?.() ?? true;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Retorna `true` se o valor do textarea for válido, caso contrário `false`.
|
|
148
|
+
* Se for inválido, exibe a mensagem de erro padrão do navegador.
|
|
149
|
+
*/
|
|
150
|
+
async reportValidity() {
|
|
151
|
+
return this.elementInternals?.reportValidity?.() ?? true;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Define uma mensagem de validação customizada para o textarea.
|
|
155
|
+
* Se a mensagem for uma string vazia, o erro customizado é limpo.
|
|
156
|
+
*/
|
|
157
|
+
async setCustomValidity(message) {
|
|
158
|
+
this.manualValidationMessage = message;
|
|
159
|
+
this.updateValidity();
|
|
160
|
+
}
|
|
161
|
+
/** Executa o validator customizado e retorna se o textarea está válido. */
|
|
162
|
+
async validate() {
|
|
163
|
+
const validator = this.resolveValidator();
|
|
164
|
+
if (!validator || this.isDisabled())
|
|
165
|
+
return this.checkValidity();
|
|
166
|
+
const runId = ++this.validationRunId;
|
|
167
|
+
this.isValidating = true;
|
|
168
|
+
this.validatorMessage = null;
|
|
169
|
+
this.updateValidity();
|
|
170
|
+
this.brTextareaValidationChange.emit({ validating: true, valid: null, message: null });
|
|
171
|
+
let message = null;
|
|
172
|
+
try {
|
|
173
|
+
message = (await validator(this.value ?? '')) || null;
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
message = 'Não foi possível validar o campo.';
|
|
177
|
+
}
|
|
178
|
+
if (runId !== this.validationRunId)
|
|
179
|
+
return false;
|
|
180
|
+
this.validatorMessage = message;
|
|
181
|
+
this.isValidating = false;
|
|
182
|
+
this.updateValidity();
|
|
183
|
+
const valid = message === null && (await this.checkValidity());
|
|
184
|
+
this.brTextareaValidationChange.emit({ validating: false, valid, message });
|
|
185
|
+
return valid;
|
|
186
|
+
}
|
|
187
|
+
/** Retorna um snapshot serializável da Constraint Validation API. */
|
|
188
|
+
async getValidationState() {
|
|
189
|
+
return getFormValidationState(this.elementInternals);
|
|
190
|
+
}
|
|
191
|
+
/** Seleciona todo o texto do controle nativo, conforme HTMLTextAreaElement.select(). */
|
|
192
|
+
async select() {
|
|
193
|
+
this.nativeTextarea?.select();
|
|
194
|
+
}
|
|
195
|
+
/** Substitui um intervalo de texto usando a API nativa do textarea. */
|
|
196
|
+
async setRangeText(replacement, start, end, selectionMode) {
|
|
197
|
+
if (!this.nativeTextarea)
|
|
198
|
+
return;
|
|
199
|
+
if (start === undefined || end === undefined) {
|
|
200
|
+
this.nativeTextarea.setRangeText(replacement);
|
|
201
|
+
this.syncProgrammaticValue();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
this.nativeTextarea.setRangeText(replacement, start, end, selectionMode);
|
|
205
|
+
this.syncProgrammaticValue();
|
|
206
|
+
}
|
|
207
|
+
/** Define o intervalo selecionado no controle nativo. */
|
|
208
|
+
async setSelectionRange(start, end, direction) {
|
|
209
|
+
this.nativeTextarea?.setSelectionRange(start, end, direction);
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Define um novo valor para o textarea.
|
|
213
|
+
* @param newValue - O novo valor a ser definido.
|
|
214
|
+
*/
|
|
215
|
+
async setValue(newValue) {
|
|
216
|
+
this.value = newValue;
|
|
217
|
+
}
|
|
218
|
+
syncProgrammaticValue() {
|
|
219
|
+
if (!this.nativeTextarea || this.value === this.nativeTextarea.value)
|
|
220
|
+
return;
|
|
221
|
+
this.value = this.nativeTextarea.value;
|
|
222
|
+
this.syncFormState(this.value);
|
|
223
|
+
this.updateValidity();
|
|
224
|
+
}
|
|
225
|
+
syncFormState(value = this.value ?? '') {
|
|
226
|
+
safeSetFormValue(this.elementInternals, value);
|
|
227
|
+
}
|
|
228
|
+
isDisabled() {
|
|
229
|
+
return isFormControlDisabled(this.disabled, this.formDisabled);
|
|
230
|
+
}
|
|
231
|
+
updateValidity() {
|
|
232
|
+
if (this.nativeTextarea) {
|
|
233
|
+
this.nativeTextarea.setCustomValidity(this.manualValidationMessage || this.validatorMessage || '');
|
|
234
|
+
}
|
|
235
|
+
syncNativeFormValidity(this.elementInternals, this.nativeTextarea);
|
|
236
|
+
}
|
|
237
|
+
resolveValidator() {
|
|
238
|
+
return resolveFormValidator(this.validator);
|
|
239
|
+
}
|
|
240
|
+
checkSlotContent() {
|
|
241
|
+
this.hasDefaultSlot = hasDefaultLightDomContent(this.el);
|
|
242
|
+
this.hasFeedbackSlot = this.el.querySelector('[slot="feedback"]') !== null;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Retorna os ids para o atributo aria-describedby do textarea
|
|
246
|
+
*/
|
|
247
|
+
getDescribedBy() {
|
|
248
|
+
return [
|
|
249
|
+
this.showCounter ? `${this.customId}-limitMax` : null,
|
|
250
|
+
`${this.customId}-slotInfo`,
|
|
251
|
+
this.hasFeedbackSlot || this.validatorMessage ? `${this.customId}-feedback` : null,
|
|
252
|
+
]
|
|
253
|
+
.filter(Boolean)
|
|
254
|
+
.join(' ');
|
|
255
|
+
}
|
|
256
|
+
renderFeedback() {
|
|
257
|
+
return (h("div", { id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !this.validatorMessage }, h("slot", { name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && this.validatorMessage ? (h("br-message", { state: "danger", message: this.validatorMessage })) : null));
|
|
258
|
+
}
|
|
259
|
+
renderValidationLoading() {
|
|
260
|
+
if (!this.isValidating)
|
|
261
|
+
return null;
|
|
262
|
+
return this.hasValidationLoadingSlot ? (h("slot", { name: "validation-loading" })) : (h("br-loading", { size: "small", label: "Validando" }));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Determina o texto a ser usado para acessibilidade quando não há label
|
|
266
|
+
* Ordem de prioridade:
|
|
267
|
+
* - aria-label do elemento host
|
|
268
|
+
* - propriedade ariaLabel do componente
|
|
269
|
+
* - placeholder
|
|
270
|
+
* - texto padrão ("Campo de texto")
|
|
271
|
+
*/
|
|
272
|
+
getAccessibilityLabel() {
|
|
273
|
+
const hostAriaLabel = this.el.getAttribute('aria-label');
|
|
274
|
+
return hostAriaLabel && hostAriaLabel.trim() !== ''
|
|
275
|
+
? hostAriaLabel
|
|
276
|
+
: this.ariaLabel && this.ariaLabel.trim() !== ''
|
|
277
|
+
? this.ariaLabel
|
|
278
|
+
: this.placeholder && this.placeholder.trim() !== ''
|
|
279
|
+
? this.placeholder
|
|
280
|
+
: 'Campo de texto';
|
|
281
|
+
}
|
|
282
|
+
getCssClassMap() {
|
|
283
|
+
return {
|
|
284
|
+
'br-textarea': true,
|
|
285
|
+
small: this.density === 'small',
|
|
286
|
+
medium: this.density === 'medium',
|
|
287
|
+
large: this.density === 'large',
|
|
288
|
+
success: (this.feedbackState ?? this.state) === 'success',
|
|
289
|
+
danger: (this.feedbackState ?? this.state) === 'danger',
|
|
290
|
+
warning: (this.feedbackState ?? this.state) === 'warning',
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: render combina estados de validação, slot auxiliar e contador acessível.
|
|
294
|
+
render() {
|
|
295
|
+
const caracteresRestantes = this.maxlength - this.currentLength;
|
|
296
|
+
const mostrarLimite = this.currentLength > 0;
|
|
297
|
+
const hasLabel = !!this.label;
|
|
298
|
+
return (h(Host, { key: 'af0a356f9f203ee6e01091dd5991a45c136ebdab' }, h("div", { key: 'a53b151c9adeca2d00ba8a07e3e0382e13888d2c', class: this.getCssClassMap(), part: "container" }, (this.inline ?? this.isInline) ? (h("div", { class: "row" }, h("div", { class: "col-auto pt-half" }, h("label", { part: "label", htmlFor: this.customId }, this.label)), h("div", { class: "col" }, h("textarea", { part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.customId, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled(), required: this.required, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, rows: this.rows > 0 ? this.rows : undefined, cols: this.cols > 0 ? this.cols : undefined, maxLength: this.maxlength > 0 ? this.maxlength : undefined, minLength: this.minlength > 0 ? this.minlength : undefined, "aria-describedby": this.getDescribedBy(), "aria-busy": this.isValidating ? 'true' : null, ...(!hasLabel ? { 'aria-label': this.getAccessibilityLabel() } : {}) }), this.renderFeedback(), this.renderValidationLoading(), h("div", { class: "mt-1 text-base", part: "counter" }, this.showCounter && (h("div", null, mostrarLimite ? (h("span", { class: "restantes", "aria-live": "polite", role: "status", id: `${this.customId}-limitMax`, part: "counter-text" }, "Restam ", h("strong", null, caracteresRestantes), " caracteres")) : (h("span", { class: "limit", "aria-live": "polite", id: `${this.customId}-limitMax`, part: "counter-text" }, "Limite m\u00E1ximo de ", h("strong", null, this.maxlength), " caracteres")))), this.hasDefaultSlot && (h("div", { id: `${this.customId}-slotInfo`, "aria-live": "polite", part: "helper" }, h("slot", null))))))) : (h("div", null, hasLabel ? (h("label", { part: "label", htmlFor: this.customId }, this.label)) : null, h("textarea", { part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.customId, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled(), required: this.required, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, rows: this.rows > 0 ? this.rows : undefined, cols: this.cols > 0 ? this.cols : undefined, maxLength: this.maxlength > 0 ? this.maxlength : undefined, minLength: this.minlength > 0 ? this.minlength : undefined, "aria-describedby": this.getDescribedBy(), "aria-busy": this.isValidating ? 'true' : null, ...(!hasLabel ? { 'aria-label': this.getAccessibilityLabel() } : {}) }), this.renderFeedback(), this.renderValidationLoading(), this.showCounter ? (h("div", { part: "counter" }, mostrarLimite ? (h("span", { class: "restantes", "aria-live": "polite", role: "status", id: `${this.customId}-limitMax`, part: "counter-text" }, "Restam ", h("strong", null, caracteresRestantes), " caracteres")) : (h("span", { class: "limit", "aria-live": "polite", id: `${this.customId}-limitMax`, part: "counter-text" }, "Limite m\u00E1ximo de ", h("strong", null, this.maxlength), " caracteres")))) : null, this.hasDefaultSlot ? (h("div", { id: `${this.customId}-slotInfo`, "aria-live": "polite", part: "helper" }, h("slot", null))) : null)))));
|
|
299
|
+
}
|
|
300
|
+
static get is() { return "br-textarea"; }
|
|
301
|
+
static get encapsulation() { return "shadow"; }
|
|
302
|
+
static get delegatesFocus() { return true; }
|
|
303
|
+
static get formAssociated() { return true; }
|
|
304
|
+
static get originalStyleUrls() {
|
|
305
|
+
return {
|
|
306
|
+
"$": ["textarea.scss"]
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
static get styleUrls() {
|
|
310
|
+
return {
|
|
311
|
+
"$": ["textarea.css"]
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static get properties() {
|
|
315
|
+
return {
|
|
316
|
+
"value": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"mutable": true,
|
|
319
|
+
"complexType": {
|
|
320
|
+
"original": "string",
|
|
321
|
+
"resolved": "string",
|
|
322
|
+
"references": {}
|
|
323
|
+
},
|
|
324
|
+
"required": false,
|
|
325
|
+
"optional": false,
|
|
326
|
+
"docs": {
|
|
327
|
+
"tags": [],
|
|
328
|
+
"text": "Valor exibido no textarea.\nPode ser alterado pelo usu\u00E1rio se a propriedade `readonly` n\u00E3o estiver ativa."
|
|
329
|
+
},
|
|
330
|
+
"getter": false,
|
|
331
|
+
"setter": false,
|
|
332
|
+
"reflect": true,
|
|
333
|
+
"attribute": "value",
|
|
334
|
+
"defaultValue": "''"
|
|
335
|
+
},
|
|
336
|
+
"label": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "string",
|
|
341
|
+
"resolved": "string",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"optional": false,
|
|
346
|
+
"docs": {
|
|
347
|
+
"tags": [],
|
|
348
|
+
"text": "Texto exibido como r\u00F3tulo do input."
|
|
349
|
+
},
|
|
350
|
+
"getter": false,
|
|
351
|
+
"setter": false,
|
|
352
|
+
"reflect": true,
|
|
353
|
+
"attribute": "label"
|
|
354
|
+
},
|
|
355
|
+
"placeholder": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"mutable": false,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "string",
|
|
360
|
+
"resolved": "string",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": "Texto exibido dentro do input quando est\u00E1 vazio, fornecendo uma dica ou sugest\u00E3o ao usu\u00E1rio."
|
|
368
|
+
},
|
|
369
|
+
"getter": false,
|
|
370
|
+
"setter": false,
|
|
371
|
+
"reflect": true,
|
|
372
|
+
"attribute": "placeholder"
|
|
373
|
+
},
|
|
374
|
+
"ariaLabel": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "Texto alternativo para acessibilidade quando n\u00E3o h\u00E1 label vis\u00EDvel.\nFornece um r\u00F3tulo para tecnologias assistivas sem exibir visualmente."
|
|
387
|
+
},
|
|
388
|
+
"getter": false,
|
|
389
|
+
"setter": false,
|
|
390
|
+
"reflect": true,
|
|
391
|
+
"attribute": "aria-label"
|
|
392
|
+
},
|
|
393
|
+
"customId": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"mutable": false,
|
|
396
|
+
"complexType": {
|
|
397
|
+
"original": "string",
|
|
398
|
+
"resolved": "string",
|
|
399
|
+
"references": {}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"optional": false,
|
|
403
|
+
"docs": {
|
|
404
|
+
"tags": [],
|
|
405
|
+
"text": "Identificador \u00FAnico.\nCaso n\u00E3o seja fornecido, um ID gerado automaticamente ser\u00E1 usado."
|
|
406
|
+
},
|
|
407
|
+
"getter": false,
|
|
408
|
+
"setter": false,
|
|
409
|
+
"reflect": true,
|
|
410
|
+
"attribute": "custom-id",
|
|
411
|
+
"defaultValue": "generateUniqueId()"
|
|
412
|
+
},
|
|
413
|
+
"name": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"mutable": false,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "string",
|
|
418
|
+
"resolved": "string",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "Nome do campo para identifica\u00E7\u00E3o no formul\u00E1rio.\nNecess\u00E1rio para participa\u00E7\u00E3o correta no envio de formul\u00E1rios e integra\u00E7\u00E3o com frameworks."
|
|
426
|
+
},
|
|
427
|
+
"getter": false,
|
|
428
|
+
"setter": false,
|
|
429
|
+
"reflect": true,
|
|
430
|
+
"attribute": "name"
|
|
431
|
+
},
|
|
432
|
+
"disabled": {
|
|
433
|
+
"type": "boolean",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "boolean",
|
|
437
|
+
"resolved": "boolean",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": "Indica se o textarea est\u00E1 desabilitado. Quando verdadeiro, o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
445
|
+
},
|
|
446
|
+
"getter": false,
|
|
447
|
+
"setter": false,
|
|
448
|
+
"reflect": true,
|
|
449
|
+
"attribute": "disabled",
|
|
450
|
+
"defaultValue": "false"
|
|
451
|
+
},
|
|
452
|
+
"required": {
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"mutable": false,
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "boolean",
|
|
457
|
+
"resolved": "boolean",
|
|
458
|
+
"references": {}
|
|
459
|
+
},
|
|
460
|
+
"required": false,
|
|
461
|
+
"optional": false,
|
|
462
|
+
"docs": {
|
|
463
|
+
"tags": [],
|
|
464
|
+
"text": "Se verdadeiro, o input \u00E9 obrigat\u00F3rio e deve ser preenchido antes que o formul\u00E1rio possa ser enviado."
|
|
465
|
+
},
|
|
466
|
+
"getter": false,
|
|
467
|
+
"setter": false,
|
|
468
|
+
"reflect": true,
|
|
469
|
+
"attribute": "required",
|
|
470
|
+
"defaultValue": "false"
|
|
471
|
+
},
|
|
472
|
+
"readonly": {
|
|
473
|
+
"type": "boolean",
|
|
474
|
+
"mutable": false,
|
|
475
|
+
"complexType": {
|
|
476
|
+
"original": "boolean",
|
|
477
|
+
"resolved": "boolean",
|
|
478
|
+
"references": {}
|
|
479
|
+
},
|
|
480
|
+
"required": false,
|
|
481
|
+
"optional": false,
|
|
482
|
+
"docs": {
|
|
483
|
+
"tags": [],
|
|
484
|
+
"text": "Impede edi\u00E7\u00E3o sem remover o campo do envio do formul\u00E1rio."
|
|
485
|
+
},
|
|
486
|
+
"getter": false,
|
|
487
|
+
"setter": false,
|
|
488
|
+
"reflect": true,
|
|
489
|
+
"attribute": "readonly",
|
|
490
|
+
"defaultValue": "false"
|
|
491
|
+
},
|
|
492
|
+
"minlength": {
|
|
493
|
+
"type": "number",
|
|
494
|
+
"mutable": false,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "number",
|
|
497
|
+
"resolved": "number",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": "N\u00FAmero m\u00EDnimo de caracteres necess\u00E1rio para o valor ser v\u00E1lido."
|
|
505
|
+
},
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
508
|
+
"reflect": true,
|
|
509
|
+
"attribute": "minlength",
|
|
510
|
+
"defaultValue": "0"
|
|
511
|
+
},
|
|
512
|
+
"maxlength": {
|
|
513
|
+
"type": "number",
|
|
514
|
+
"mutable": false,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "number",
|
|
517
|
+
"resolved": "number",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": "N\u00FAmero m\u00E1ximo de caracteres permitidos no textarea. Se definido como 0, n\u00E3o h\u00E1 limite."
|
|
525
|
+
},
|
|
526
|
+
"getter": false,
|
|
527
|
+
"setter": false,
|
|
528
|
+
"reflect": true,
|
|
529
|
+
"attribute": "maxlength",
|
|
530
|
+
"defaultValue": "0"
|
|
531
|
+
},
|
|
532
|
+
"showCounter": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "boolean",
|
|
537
|
+
"resolved": "boolean",
|
|
538
|
+
"references": {}
|
|
539
|
+
},
|
|
540
|
+
"required": false,
|
|
541
|
+
"optional": false,
|
|
542
|
+
"docs": {
|
|
543
|
+
"tags": [],
|
|
544
|
+
"text": "Mostra o contador com a quantidade m\u00E1xima de caracteres."
|
|
545
|
+
},
|
|
546
|
+
"getter": false,
|
|
547
|
+
"setter": false,
|
|
548
|
+
"reflect": true,
|
|
549
|
+
"attribute": "show-counter",
|
|
550
|
+
"defaultValue": "false"
|
|
551
|
+
},
|
|
552
|
+
"state": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"mutable": false,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "'danger' | 'success' | 'warning'",
|
|
557
|
+
"resolved": "\"danger\" | \"success\" | \"warning\"",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": "Define o estado visual do componente, podendo ser 'danger', 'success' ou 'warning'."
|
|
565
|
+
},
|
|
566
|
+
"getter": false,
|
|
567
|
+
"setter": false,
|
|
568
|
+
"reflect": true,
|
|
569
|
+
"attribute": "state"
|
|
570
|
+
},
|
|
571
|
+
"feedbackState": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"mutable": false,
|
|
574
|
+
"complexType": {
|
|
575
|
+
"original": "'danger' | 'success' | 'warning'",
|
|
576
|
+
"resolved": "\"danger\" | \"success\" | \"warning\"",
|
|
577
|
+
"references": {}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "Estado de feedback can\u00F4nico. Quando informado, tem preced\u00EAncia sobre `state`."
|
|
584
|
+
},
|
|
585
|
+
"getter": false,
|
|
586
|
+
"setter": false,
|
|
587
|
+
"reflect": true,
|
|
588
|
+
"attribute": "feedback-state"
|
|
589
|
+
},
|
|
590
|
+
"validator": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"mutable": false,
|
|
593
|
+
"complexType": {
|
|
594
|
+
"original": "InputValidator | string",
|
|
595
|
+
"resolved": "((value: string) => string | Promise<string>) | string",
|
|
596
|
+
"references": {
|
|
597
|
+
"InputValidator": {
|
|
598
|
+
"location": "import",
|
|
599
|
+
"path": "../input/input.types",
|
|
600
|
+
"id": "src/components/input/input.types.ts::InputValidator",
|
|
601
|
+
"referenceLocation": "InputValidator"
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": false,
|
|
606
|
+
"optional": true,
|
|
607
|
+
"docs": {
|
|
608
|
+
"tags": [],
|
|
609
|
+
"text": "Regra s\u00EDncrona ou ass\u00EDncrona executada no `change` ou por `validate()`.\nPode consultar um servi\u00E7o remoto; o componente controla apenas loading,\nvalidade e a preced\u00EAncia do resultado mais recente."
|
|
610
|
+
},
|
|
611
|
+
"getter": false,
|
|
612
|
+
"setter": false,
|
|
613
|
+
"reflect": false,
|
|
614
|
+
"attribute": "validator"
|
|
615
|
+
},
|
|
616
|
+
"density": {
|
|
617
|
+
"type": "string",
|
|
618
|
+
"mutable": false,
|
|
619
|
+
"complexType": {
|
|
620
|
+
"original": "'small' | 'medium' | 'large'",
|
|
621
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
622
|
+
"references": {}
|
|
623
|
+
},
|
|
624
|
+
"required": false,
|
|
625
|
+
"optional": false,
|
|
626
|
+
"docs": {
|
|
627
|
+
"tags": [],
|
|
628
|
+
"text": "Ajusta a densidade do componente, podendo ser 'small', 'medium' ou 'large'."
|
|
629
|
+
},
|
|
630
|
+
"getter": false,
|
|
631
|
+
"setter": false,
|
|
632
|
+
"reflect": true,
|
|
633
|
+
"attribute": "density",
|
|
634
|
+
"defaultValue": "'medium'"
|
|
635
|
+
},
|
|
636
|
+
"isInline": {
|
|
637
|
+
"type": "boolean",
|
|
638
|
+
"mutable": false,
|
|
639
|
+
"complexType": {
|
|
640
|
+
"original": "boolean",
|
|
641
|
+
"resolved": "boolean",
|
|
642
|
+
"references": {}
|
|
643
|
+
},
|
|
644
|
+
"required": false,
|
|
645
|
+
"optional": false,
|
|
646
|
+
"docs": {
|
|
647
|
+
"tags": [{
|
|
648
|
+
"name": "deprecated",
|
|
649
|
+
"text": "Use `inline`."
|
|
650
|
+
}],
|
|
651
|
+
"text": "Se verdadeiro, o r\u00F3tulo e o input estar\u00E3o na mesma linha (layout inline)."
|
|
652
|
+
},
|
|
653
|
+
"getter": false,
|
|
654
|
+
"setter": false,
|
|
655
|
+
"reflect": true,
|
|
656
|
+
"attribute": "is-inline",
|
|
657
|
+
"defaultValue": "false"
|
|
658
|
+
},
|
|
659
|
+
"inline": {
|
|
660
|
+
"type": "boolean",
|
|
661
|
+
"mutable": false,
|
|
662
|
+
"complexType": {
|
|
663
|
+
"original": "boolean",
|
|
664
|
+
"resolved": "boolean",
|
|
665
|
+
"references": {}
|
|
666
|
+
},
|
|
667
|
+
"required": false,
|
|
668
|
+
"optional": true,
|
|
669
|
+
"docs": {
|
|
670
|
+
"tags": [],
|
|
671
|
+
"text": "Exibe r\u00F3tulo e controle em linha. Quando informada, tem preced\u00EAncia sobre `isInline`."
|
|
672
|
+
},
|
|
673
|
+
"getter": false,
|
|
674
|
+
"setter": false,
|
|
675
|
+
"reflect": true,
|
|
676
|
+
"attribute": "inline"
|
|
677
|
+
},
|
|
678
|
+
"rows": {
|
|
679
|
+
"type": "number",
|
|
680
|
+
"mutable": false,
|
|
681
|
+
"complexType": {
|
|
682
|
+
"original": "number",
|
|
683
|
+
"resolved": "number",
|
|
684
|
+
"references": {}
|
|
685
|
+
},
|
|
686
|
+
"required": false,
|
|
687
|
+
"optional": false,
|
|
688
|
+
"docs": {
|
|
689
|
+
"tags": [],
|
|
690
|
+
"text": "N\u00FAmero de linhas vis\u00EDveis no textarea.\nDefine a altura do componente em rela\u00E7\u00E3o ao n\u00FAmero de linhas de texto exibidas."
|
|
691
|
+
},
|
|
692
|
+
"getter": false,
|
|
693
|
+
"setter": false,
|
|
694
|
+
"reflect": true,
|
|
695
|
+
"attribute": "rows"
|
|
696
|
+
},
|
|
697
|
+
"cols": {
|
|
698
|
+
"type": "number",
|
|
699
|
+
"mutable": false,
|
|
700
|
+
"complexType": {
|
|
701
|
+
"original": "number",
|
|
702
|
+
"resolved": "number",
|
|
703
|
+
"references": {}
|
|
704
|
+
},
|
|
705
|
+
"required": false,
|
|
706
|
+
"optional": false,
|
|
707
|
+
"docs": {
|
|
708
|
+
"tags": [],
|
|
709
|
+
"text": "N\u00FAmero de colunas (caracteres) vis\u00EDveis no textarea.\nDefine a largura do componente em rela\u00E7\u00E3o ao n\u00FAmero de caracteres por linha."
|
|
710
|
+
},
|
|
711
|
+
"getter": false,
|
|
712
|
+
"setter": false,
|
|
713
|
+
"reflect": true,
|
|
714
|
+
"attribute": "cols"
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
static get states() {
|
|
719
|
+
return {
|
|
720
|
+
"formDisabled": {},
|
|
721
|
+
"hasDefaultSlot": {},
|
|
722
|
+
"hasFeedbackSlot": {},
|
|
723
|
+
"hasValidationLoadingSlot": {},
|
|
724
|
+
"isValidating": {},
|
|
725
|
+
"validatorMessage": {}
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
static get events() {
|
|
729
|
+
return [{
|
|
730
|
+
"method": "valueChange",
|
|
731
|
+
"name": "valueChange",
|
|
732
|
+
"bubbles": true,
|
|
733
|
+
"cancelable": true,
|
|
734
|
+
"composed": true,
|
|
735
|
+
"docs": {
|
|
736
|
+
"tags": [{
|
|
737
|
+
"name": "deprecated",
|
|
738
|
+
"text": "Use o evento nativo `input` e leia `event.target.value`."
|
|
739
|
+
}],
|
|
740
|
+
"text": "Valor atualizado do textarea"
|
|
741
|
+
},
|
|
742
|
+
"complexType": {
|
|
743
|
+
"original": "string",
|
|
744
|
+
"resolved": "string",
|
|
745
|
+
"references": {}
|
|
746
|
+
}
|
|
747
|
+
}, {
|
|
748
|
+
"method": "brTextareaValidationChange",
|
|
749
|
+
"name": "brTextareaValidationChange",
|
|
750
|
+
"bubbles": true,
|
|
751
|
+
"cancelable": true,
|
|
752
|
+
"composed": true,
|
|
753
|
+
"docs": {
|
|
754
|
+
"tags": [],
|
|
755
|
+
"text": "Informa o in\u00EDcio e o resultado do validator; o `detail` cont\u00E9m\n`validating`, `valid` e `message`."
|
|
756
|
+
},
|
|
757
|
+
"complexType": {
|
|
758
|
+
"original": "InputValidationChangeDetail",
|
|
759
|
+
"resolved": "InputValidationChangeDetail",
|
|
760
|
+
"references": {
|
|
761
|
+
"InputValidationChangeDetail": {
|
|
762
|
+
"location": "import",
|
|
763
|
+
"path": "../input/input.types",
|
|
764
|
+
"id": "src/components/input/input.types.ts::InputValidationChangeDetail",
|
|
765
|
+
"referenceLocation": "InputValidationChangeDetail"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}];
|
|
770
|
+
}
|
|
771
|
+
static get methods() {
|
|
772
|
+
return {
|
|
773
|
+
"checkValidity": {
|
|
774
|
+
"complexType": {
|
|
775
|
+
"signature": "() => Promise<boolean>",
|
|
776
|
+
"parameters": [],
|
|
777
|
+
"references": {
|
|
778
|
+
"Promise": {
|
|
779
|
+
"location": "global",
|
|
780
|
+
"id": "global::Promise"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"return": "Promise<boolean>"
|
|
784
|
+
},
|
|
785
|
+
"docs": {
|
|
786
|
+
"text": "Retorna `true` se o valor do textarea for v\u00E1lido, caso contr\u00E1rio `false`.\nSe o textarea for inv\u00E1lido, dispara um evento 'invalid'.",
|
|
787
|
+
"tags": []
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"reportValidity": {
|
|
791
|
+
"complexType": {
|
|
792
|
+
"signature": "() => Promise<boolean>",
|
|
793
|
+
"parameters": [],
|
|
794
|
+
"references": {
|
|
795
|
+
"Promise": {
|
|
796
|
+
"location": "global",
|
|
797
|
+
"id": "global::Promise"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"return": "Promise<boolean>"
|
|
801
|
+
},
|
|
802
|
+
"docs": {
|
|
803
|
+
"text": "Retorna `true` se o valor do textarea for v\u00E1lido, caso contr\u00E1rio `false`.\nSe for inv\u00E1lido, exibe a mensagem de erro padr\u00E3o do navegador.",
|
|
804
|
+
"tags": []
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
"setCustomValidity": {
|
|
808
|
+
"complexType": {
|
|
809
|
+
"signature": "(message: string) => Promise<void>",
|
|
810
|
+
"parameters": [{
|
|
811
|
+
"name": "message",
|
|
812
|
+
"type": "string",
|
|
813
|
+
"docs": ""
|
|
814
|
+
}],
|
|
815
|
+
"references": {
|
|
816
|
+
"Promise": {
|
|
817
|
+
"location": "global",
|
|
818
|
+
"id": "global::Promise"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"return": "Promise<void>"
|
|
822
|
+
},
|
|
823
|
+
"docs": {
|
|
824
|
+
"text": "Define uma mensagem de valida\u00E7\u00E3o customizada para o textarea.\nSe a mensagem for uma string vazia, o erro customizado \u00E9 limpo.",
|
|
825
|
+
"tags": []
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"validate": {
|
|
829
|
+
"complexType": {
|
|
830
|
+
"signature": "() => Promise<boolean>",
|
|
831
|
+
"parameters": [],
|
|
832
|
+
"references": {
|
|
833
|
+
"Promise": {
|
|
834
|
+
"location": "global",
|
|
835
|
+
"id": "global::Promise"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"return": "Promise<boolean>"
|
|
839
|
+
},
|
|
840
|
+
"docs": {
|
|
841
|
+
"text": "Executa o validator customizado e retorna se o textarea est\u00E1 v\u00E1lido.",
|
|
842
|
+
"tags": []
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"getValidationState": {
|
|
846
|
+
"complexType": {
|
|
847
|
+
"signature": "() => Promise<FormValidationState>",
|
|
848
|
+
"parameters": [],
|
|
849
|
+
"references": {
|
|
850
|
+
"Promise": {
|
|
851
|
+
"location": "global",
|
|
852
|
+
"id": "global::Promise"
|
|
853
|
+
},
|
|
854
|
+
"FormValidationState": {
|
|
855
|
+
"location": "import",
|
|
856
|
+
"path": "../../shared/utils/form",
|
|
857
|
+
"id": "src/shared/utils/form.ts::FormValidationState",
|
|
858
|
+
"referenceLocation": "FormValidationState"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"return": "Promise<FormValidationState>"
|
|
862
|
+
},
|
|
863
|
+
"docs": {
|
|
864
|
+
"text": "Retorna um snapshot serializ\u00E1vel da Constraint Validation API.",
|
|
865
|
+
"tags": []
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"select": {
|
|
869
|
+
"complexType": {
|
|
870
|
+
"signature": "() => Promise<void>",
|
|
871
|
+
"parameters": [],
|
|
872
|
+
"references": {
|
|
873
|
+
"Promise": {
|
|
874
|
+
"location": "global",
|
|
875
|
+
"id": "global::Promise"
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"return": "Promise<void>"
|
|
879
|
+
},
|
|
880
|
+
"docs": {
|
|
881
|
+
"text": "Seleciona todo o texto do controle nativo, conforme HTMLTextAreaElement.select().",
|
|
882
|
+
"tags": []
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
"setRangeText": {
|
|
886
|
+
"complexType": {
|
|
887
|
+
"signature": "(replacement: string, start?: number, end?: number, selectionMode?: SelectionMode) => Promise<void>",
|
|
888
|
+
"parameters": [{
|
|
889
|
+
"name": "replacement",
|
|
890
|
+
"type": "string",
|
|
891
|
+
"docs": ""
|
|
892
|
+
}, {
|
|
893
|
+
"name": "start",
|
|
894
|
+
"type": "number",
|
|
895
|
+
"docs": ""
|
|
896
|
+
}, {
|
|
897
|
+
"name": "end",
|
|
898
|
+
"type": "number",
|
|
899
|
+
"docs": ""
|
|
900
|
+
}, {
|
|
901
|
+
"name": "selectionMode",
|
|
902
|
+
"type": "\"start\" | \"end\" | \"select\" | \"preserve\"",
|
|
903
|
+
"docs": ""
|
|
904
|
+
}],
|
|
905
|
+
"references": {
|
|
906
|
+
"Promise": {
|
|
907
|
+
"location": "global",
|
|
908
|
+
"id": "global::Promise"
|
|
909
|
+
},
|
|
910
|
+
"SelectionMode": {
|
|
911
|
+
"location": "global",
|
|
912
|
+
"id": "global::SelectionMode"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"return": "Promise<void>"
|
|
916
|
+
},
|
|
917
|
+
"docs": {
|
|
918
|
+
"text": "Substitui um intervalo de texto usando a API nativa do textarea.",
|
|
919
|
+
"tags": []
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"setSelectionRange": {
|
|
923
|
+
"complexType": {
|
|
924
|
+
"signature": "(start: number, end: number, direction?: \"forward\" | \"backward\" | \"none\") => Promise<void>",
|
|
925
|
+
"parameters": [{
|
|
926
|
+
"name": "start",
|
|
927
|
+
"type": "number",
|
|
928
|
+
"docs": ""
|
|
929
|
+
}, {
|
|
930
|
+
"name": "end",
|
|
931
|
+
"type": "number",
|
|
932
|
+
"docs": ""
|
|
933
|
+
}, {
|
|
934
|
+
"name": "direction",
|
|
935
|
+
"type": "\"none\" | \"forward\" | \"backward\"",
|
|
936
|
+
"docs": ""
|
|
937
|
+
}],
|
|
938
|
+
"references": {
|
|
939
|
+
"Promise": {
|
|
940
|
+
"location": "global",
|
|
941
|
+
"id": "global::Promise"
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"return": "Promise<void>"
|
|
945
|
+
},
|
|
946
|
+
"docs": {
|
|
947
|
+
"text": "Define o intervalo selecionado no controle nativo.",
|
|
948
|
+
"tags": []
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"setValue": {
|
|
952
|
+
"complexType": {
|
|
953
|
+
"signature": "(newValue: string) => Promise<void>",
|
|
954
|
+
"parameters": [{
|
|
955
|
+
"name": "newValue",
|
|
956
|
+
"type": "string",
|
|
957
|
+
"docs": "- O novo valor a ser definido."
|
|
958
|
+
}],
|
|
959
|
+
"references": {
|
|
960
|
+
"Promise": {
|
|
961
|
+
"location": "global",
|
|
962
|
+
"id": "global::Promise"
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"return": "Promise<void>"
|
|
966
|
+
},
|
|
967
|
+
"docs": {
|
|
968
|
+
"text": "Define um novo valor para o textarea.",
|
|
969
|
+
"tags": [{
|
|
970
|
+
"name": "param",
|
|
971
|
+
"text": "newValue - O novo valor a ser definido."
|
|
972
|
+
}]
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
static get elementRef() { return "el"; }
|
|
978
|
+
static get watchers() {
|
|
979
|
+
return [{
|
|
980
|
+
"propName": "value",
|
|
981
|
+
"methodName": "valueChanged"
|
|
982
|
+
}];
|
|
983
|
+
}
|
|
984
|
+
static get attachInternalsMemberName() { return "elementInternals"; }
|
|
985
|
+
}
|