@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,1314 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h, } from "@stencil/core";
|
|
6
|
+
import { dispatchNativeFormEvent, redispatchNativeEvent } from "../../shared/utils/event";
|
|
7
|
+
import { getFormValidationState, isFormControlDisabled, safeSetFormValue, syncNativeFormValidity, } from "../../shared/utils/form";
|
|
8
|
+
import { formatBytes } from "../../shared/utils/format-bytes";
|
|
9
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
10
|
+
import { setPartAttributes } from "../../shared/utils/parts";
|
|
11
|
+
import { hasAssignedSlotContent } from "../../shared/utils/slot";
|
|
12
|
+
import { resolveFormValidator, runFormValidator } from "../../shared/utils/validator";
|
|
13
|
+
/**
|
|
14
|
+
* ## Design System
|
|
15
|
+
*
|
|
16
|
+
* @category Formulários
|
|
17
|
+
* @status stable
|
|
18
|
+
* @slot default - Texto personalizado para o botão de upload. Se não fornecido, será exibido "Selecione o arquivo" como texto padrão.
|
|
19
|
+
* Use este slot para personalizar o texto do botão de acordo com o contexto do upload, por exemplo: "Anexar documentos",
|
|
20
|
+
* "Enviar imagens", etc.
|
|
21
|
+
* @slot upload-list - Permite customizar a área de listagem de arquivos. Se utilizado, substitui a lista padrão gerada pelo componente.
|
|
22
|
+
* @slot label - Rótulo customizado do upload. Quando utilizado, a prop `label` é ignorada.
|
|
23
|
+
* @slot helper - Texto auxiliar exibido abaixo da superfície de seleção.
|
|
24
|
+
* @slot feedback - Mensagem de validação, normalmente um `br-message`.
|
|
25
|
+
* @slot loading - Conteúdo exibido enquanto o handler fornecido pela aplicação envia um arquivo.
|
|
26
|
+
*
|
|
27
|
+
* @part container - Wrapper principal do upload.
|
|
28
|
+
* @part label - Rótulo do campo de upload.
|
|
29
|
+
* @part input - Elemento input de arquivo.
|
|
30
|
+
* @part button - Botão de seleção de arquivo.
|
|
31
|
+
* @part helper - Texto auxiliar do upload.
|
|
32
|
+
* @part remove-button - Botão de remoção de arquivo.
|
|
33
|
+
* @part file-list - Lista de arquivos selecionados.
|
|
34
|
+
* @part feedback - Contêiner da mensagem de validação.
|
|
35
|
+
* @part loading - Estado e progresso do envio assíncrono.
|
|
36
|
+
*/
|
|
37
|
+
export class Upload {
|
|
38
|
+
constructor() {
|
|
39
|
+
this.fileKeys = new WeakMap();
|
|
40
|
+
this.fileKeySequence = 0;
|
|
41
|
+
/**
|
|
42
|
+
* Cache dos arquivos combinados para renderização unificada (evita recálculos desnecessários).
|
|
43
|
+
*/
|
|
44
|
+
this.allFilesCached = [];
|
|
45
|
+
/**
|
|
46
|
+
* Arquivo único quando a seleção não é múltipla.
|
|
47
|
+
*/
|
|
48
|
+
this.file = null;
|
|
49
|
+
/**
|
|
50
|
+
* Evento emitido quando um arquivo é selecionado.
|
|
51
|
+
* Este estado armazena os arquivos que foram selecionados pelo usuário.
|
|
52
|
+
*/
|
|
53
|
+
this.filesSelected = null;
|
|
54
|
+
this.formDisabled = false;
|
|
55
|
+
this.hasFeedbackSlot = false;
|
|
56
|
+
this.dragging = false;
|
|
57
|
+
this.customValidationMessage = '';
|
|
58
|
+
this.validatorMessage = null;
|
|
59
|
+
this.isValidating = false;
|
|
60
|
+
this.uploading = false;
|
|
61
|
+
this.uploadError = '';
|
|
62
|
+
/**
|
|
63
|
+
* Estado interno para armazenar os arquivos processados da prop uploadFiles.
|
|
64
|
+
*/
|
|
65
|
+
this.parsedUploadFiles = [];
|
|
66
|
+
/**
|
|
67
|
+
* Identificador único do componente.
|
|
68
|
+
* Quando omitido, um valor é gerado automaticamente.
|
|
69
|
+
*
|
|
70
|
+
* > **Padrão:** valor único gerado por generateUniqueId().
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
this.customId = generateUniqueId();
|
|
74
|
+
/**
|
|
75
|
+
* Tipos de arquivo permitidos (ex.: 'image/*').
|
|
76
|
+
*/
|
|
77
|
+
this.accept = '';
|
|
78
|
+
/**
|
|
79
|
+
* Rótulo exibido acima do botão de upload.
|
|
80
|
+
*/
|
|
81
|
+
this.label = 'Envio de arquivo';
|
|
82
|
+
/**
|
|
83
|
+
* Lista de arquivos já enviados (para edição ou pré-visualização).
|
|
84
|
+
* Pode ser uma string JSON ou um array de objetos IUploadFile.
|
|
85
|
+
*/
|
|
86
|
+
/** @deprecated Use `existingFiles`. */
|
|
87
|
+
this.uploadFiles = [];
|
|
88
|
+
/**
|
|
89
|
+
* Desabilita a interação com o componente.
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
this.disabled = false;
|
|
93
|
+
/**
|
|
94
|
+
* Se verdadeiro, o input de upload é obrigatório antes que o formulário possa ser enviado.
|
|
95
|
+
*/
|
|
96
|
+
this.required = false;
|
|
97
|
+
/**
|
|
98
|
+
* Indica se o componente permite a seleção de múltiplos arquivos.
|
|
99
|
+
* Quando definido como `true`, o usuário pode selecionar mais de um arquivo para upload.
|
|
100
|
+
*/
|
|
101
|
+
this.multiple = false;
|
|
102
|
+
/** Quantidade mínima de arquivos, incluindo arquivos já enviados. */
|
|
103
|
+
this.minFiles = 0;
|
|
104
|
+
/** Quantidade máxima de arquivos. Zero significa sem limite. */
|
|
105
|
+
this.maxFiles = 0;
|
|
106
|
+
/** Tamanho máximo permitido para cada arquivo, em bytes. Zero significa sem limite. */
|
|
107
|
+
this.maxFileSize = 0;
|
|
108
|
+
/** Lista de arquivos selecionados, equivalente a `HTMLInputElement.files`. */
|
|
109
|
+
this.files = null;
|
|
110
|
+
this.validationRunId = 0;
|
|
111
|
+
this.initialUploadFiles = [];
|
|
112
|
+
this.handleInputChange = (event) => {
|
|
113
|
+
if (this.isDisabled()) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const target = event.target;
|
|
117
|
+
const selectedFiles = this.onInputChange(target.files);
|
|
118
|
+
void this.uploadSelectedFiles(selectedFiles);
|
|
119
|
+
if (!this.uploadHandler)
|
|
120
|
+
void this.validate();
|
|
121
|
+
event.stopPropagation();
|
|
122
|
+
};
|
|
123
|
+
this.handleNativeInput = (event) => event.stopPropagation();
|
|
124
|
+
this.handleNativeCancel = (event) => redispatchNativeEvent(this.el, event);
|
|
125
|
+
}
|
|
126
|
+
formDisabledCallback(disabled) {
|
|
127
|
+
this.formDisabled = disabled;
|
|
128
|
+
}
|
|
129
|
+
formResetCallback() {
|
|
130
|
+
this.cancelPendingUpload();
|
|
131
|
+
this.customValidationMessage = '';
|
|
132
|
+
this.validatorMessage = null;
|
|
133
|
+
this.validationRunId++;
|
|
134
|
+
this.filesSelected = null;
|
|
135
|
+
this.files = null;
|
|
136
|
+
this.file = null;
|
|
137
|
+
this.parsedUploadFiles = [...this.initialUploadFiles];
|
|
138
|
+
this.uploadError = '';
|
|
139
|
+
this.updateAllFilesCached();
|
|
140
|
+
if (this.nativeInput) {
|
|
141
|
+
this.nativeInput.value = '';
|
|
142
|
+
this.nativeInput.setCustomValidity('');
|
|
143
|
+
}
|
|
144
|
+
this.syncFormState();
|
|
145
|
+
}
|
|
146
|
+
formStateRestoreCallback(_state) {
|
|
147
|
+
this.cancelPendingUpload();
|
|
148
|
+
this.customValidationMessage = '';
|
|
149
|
+
this.filesSelected = null;
|
|
150
|
+
this.files = null;
|
|
151
|
+
this.file = null;
|
|
152
|
+
this.uploadError = '';
|
|
153
|
+
this.updateAllFilesCached();
|
|
154
|
+
if (this.nativeInput) {
|
|
155
|
+
this.nativeInput.value = '';
|
|
156
|
+
this.nativeInput.setCustomValidity('');
|
|
157
|
+
}
|
|
158
|
+
this.syncFormState();
|
|
159
|
+
}
|
|
160
|
+
filesHandler(newValue) {
|
|
161
|
+
if (newValue !== this.filesSelected)
|
|
162
|
+
this.filesSelected = newValue;
|
|
163
|
+
if (this.nativeInput && newValue) {
|
|
164
|
+
try {
|
|
165
|
+
this.nativeInput.files = newValue;
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
// FileList só pode ser atribuído quando aceito pela implementação do navegador.
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
this.syncFormState();
|
|
172
|
+
}
|
|
173
|
+
uploadFilesHandler(newValue) {
|
|
174
|
+
if (this.existingFiles !== undefined)
|
|
175
|
+
return;
|
|
176
|
+
this.parseExistingFiles(newValue);
|
|
177
|
+
}
|
|
178
|
+
existingFilesHandler(newValue) {
|
|
179
|
+
this.parseExistingFiles(newValue ?? this.uploadFiles);
|
|
180
|
+
}
|
|
181
|
+
parseExistingFiles(newValue) {
|
|
182
|
+
if (!newValue || (typeof newValue === 'string' && newValue.trim() === '')) {
|
|
183
|
+
this.parsedUploadFiles = [];
|
|
184
|
+
this.updateAllFilesCached();
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (typeof newValue === 'string') {
|
|
188
|
+
try {
|
|
189
|
+
const parsed = JSON.parse(newValue);
|
|
190
|
+
this.parsedUploadFiles = Array.isArray(parsed) ? parsed : [];
|
|
191
|
+
}
|
|
192
|
+
catch (e) {
|
|
193
|
+
console.error('Erro ao fazer parse de uploadFiles:', e);
|
|
194
|
+
this.parsedUploadFiles = [];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
else if (Array.isArray(newValue)) {
|
|
198
|
+
this.parsedUploadFiles = [...newValue];
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
this.parsedUploadFiles = [];
|
|
202
|
+
}
|
|
203
|
+
this.updateAllFilesCached();
|
|
204
|
+
}
|
|
205
|
+
filesSelectedHandler() {
|
|
206
|
+
this.updateAllFilesCached();
|
|
207
|
+
}
|
|
208
|
+
componentWillLoad() {
|
|
209
|
+
this.filesSelected = this.files;
|
|
210
|
+
this.parseExistingFiles(this.existingFiles ?? this.uploadFiles);
|
|
211
|
+
this.initialUploadFiles = [...this.parsedUploadFiles];
|
|
212
|
+
this.syncFormState();
|
|
213
|
+
}
|
|
214
|
+
componentDidLoad() {
|
|
215
|
+
this.hasFeedbackSlot = this.el.querySelector('[slot="feedback"]') !== null;
|
|
216
|
+
this.updateValidity();
|
|
217
|
+
}
|
|
218
|
+
componentDidUpdate() {
|
|
219
|
+
this.updateValidity();
|
|
220
|
+
}
|
|
221
|
+
disconnectedCallback() {
|
|
222
|
+
this.cancelPendingUpload();
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Retorna `true` se o valor do componente for válido, caso contrário `false`.
|
|
226
|
+
* Se o componente for inválido, dispara um evento 'invalid'.
|
|
227
|
+
*/
|
|
228
|
+
async checkValidity() {
|
|
229
|
+
return this.elementInternals?.checkValidity?.() ?? true;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Retorna `true` se o valor do componente for válido, caso contrário `false`.
|
|
233
|
+
* Se for inválido, exibe a mensagem de erro padrão do navegador.
|
|
234
|
+
*/
|
|
235
|
+
async reportValidity() {
|
|
236
|
+
return this.elementInternals?.reportValidity?.() ?? true;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Define uma mensagem de validação customizada para o upload.
|
|
240
|
+
* Se a mensagem for uma string vazia, o erro customizado é limpo.
|
|
241
|
+
*/
|
|
242
|
+
async setCustomValidity(message) {
|
|
243
|
+
this.customValidationMessage = message;
|
|
244
|
+
this.updateValidity();
|
|
245
|
+
}
|
|
246
|
+
/** Executa o validator do upload e retorna se a lista atual é válida. */
|
|
247
|
+
async validate() {
|
|
248
|
+
const validator = resolveFormValidator(this.validator);
|
|
249
|
+
if (!validator || this.isDisabled())
|
|
250
|
+
return this.checkValidity();
|
|
251
|
+
const runId = ++this.validationRunId;
|
|
252
|
+
this.isValidating = true;
|
|
253
|
+
this.validatorMessage = null;
|
|
254
|
+
this.updateValidity();
|
|
255
|
+
this.brUploadValidationChange.emit({ validating: true, valid: null, message: null });
|
|
256
|
+
const files = this.allFilesCached.map((entry) => entry.file).filter((file) => file instanceof File);
|
|
257
|
+
const message = await runFormValidator(validator, files);
|
|
258
|
+
if (runId !== this.validationRunId)
|
|
259
|
+
return false;
|
|
260
|
+
this.validatorMessage = message;
|
|
261
|
+
this.isValidating = false;
|
|
262
|
+
this.updateValidity();
|
|
263
|
+
const valid = message === null && (await this.checkValidity());
|
|
264
|
+
this.brUploadValidationChange.emit({ validating: false, valid, message });
|
|
265
|
+
return valid;
|
|
266
|
+
}
|
|
267
|
+
/** Retorna um snapshot serializável da Constraint Validation API. */
|
|
268
|
+
async getValidationState() {
|
|
269
|
+
return getFormValidationState(this.elementInternals);
|
|
270
|
+
}
|
|
271
|
+
/** Cancela o envio atual iniciado pelo `uploadHandler`. */
|
|
272
|
+
async cancelUpload() {
|
|
273
|
+
this.cancelPendingUpload();
|
|
274
|
+
}
|
|
275
|
+
updateAllFilesCached() {
|
|
276
|
+
const newFiles = this.filesSelected ? Array.from(this.filesSelected) : [];
|
|
277
|
+
const existingFiles = this.parsedUploadFiles || [];
|
|
278
|
+
const allFilesCached = [
|
|
279
|
+
...existingFiles.map((f) => ({ file: f, isNew: false })),
|
|
280
|
+
...newFiles.map((f) => ({ file: f, isNew: true })),
|
|
281
|
+
];
|
|
282
|
+
const isSameCache = allFilesCached.length === this.allFilesCached.length &&
|
|
283
|
+
allFilesCached.every((entry, index) => {
|
|
284
|
+
const currentEntry = this.allFilesCached[index];
|
|
285
|
+
return currentEntry?.file === entry.file && currentEntry.isNew === entry.isNew;
|
|
286
|
+
});
|
|
287
|
+
if (!isSameCache) {
|
|
288
|
+
this.allFilesCached = allFilesCached;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
emitFilesChange() {
|
|
292
|
+
this.files = this.filesSelected;
|
|
293
|
+
this.selectedFilesChange.emit(this.filesSelected);
|
|
294
|
+
dispatchNativeFormEvent(this.el, 'input');
|
|
295
|
+
dispatchNativeFormEvent(this.el, 'change');
|
|
296
|
+
}
|
|
297
|
+
syncFormState() {
|
|
298
|
+
safeSetFormValue(this.elementInternals, this.getFileDataForForm());
|
|
299
|
+
this.updateValidity();
|
|
300
|
+
}
|
|
301
|
+
isDisabled() {
|
|
302
|
+
return isFormControlDisabled(this.disabled, this.formDisabled) || this.uploading;
|
|
303
|
+
}
|
|
304
|
+
cancelPendingUpload() {
|
|
305
|
+
this.uploadController?.abort();
|
|
306
|
+
this.uploadController = undefined;
|
|
307
|
+
this.uploading = false;
|
|
308
|
+
}
|
|
309
|
+
async uploadSelectedFiles(files) {
|
|
310
|
+
if (!this.uploadHandler || files.length === 0 || !(await this.validate()))
|
|
311
|
+
return;
|
|
312
|
+
const controller = new AbortController();
|
|
313
|
+
this.uploadController?.abort();
|
|
314
|
+
this.uploadController = controller;
|
|
315
|
+
this.uploading = true;
|
|
316
|
+
this.uploadError = '';
|
|
317
|
+
let currentFile = files[0];
|
|
318
|
+
try {
|
|
319
|
+
for (const file of files) {
|
|
320
|
+
if (controller.signal.aborted)
|
|
321
|
+
return;
|
|
322
|
+
currentFile = file;
|
|
323
|
+
this.brUploadStart.emit({ file });
|
|
324
|
+
await this.uploadHandler({
|
|
325
|
+
file,
|
|
326
|
+
signal: controller.signal,
|
|
327
|
+
onProgress: (progress) => {
|
|
328
|
+
if (controller.signal.aborted)
|
|
329
|
+
return;
|
|
330
|
+
const normalizedProgress = Math.min(100, Math.max(0, Number(progress) || 0));
|
|
331
|
+
this.brUploadProgress.emit({ file, progress: normalizedProgress });
|
|
332
|
+
},
|
|
333
|
+
});
|
|
334
|
+
if (controller.signal.aborted)
|
|
335
|
+
return;
|
|
336
|
+
this.brUploadSuccess.emit({ file });
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
catch {
|
|
340
|
+
if (controller.signal.aborted)
|
|
341
|
+
return;
|
|
342
|
+
this.uploadError = `Não foi possível enviar ${currentFile.name}.`;
|
|
343
|
+
this.brUploadError.emit({ file: currentFile, message: this.uploadError });
|
|
344
|
+
}
|
|
345
|
+
finally {
|
|
346
|
+
if (this.uploadController === controller) {
|
|
347
|
+
this.uploadController = undefined;
|
|
348
|
+
this.uploading = false;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
getFileDataForForm() {
|
|
353
|
+
if (!this.filesSelected || this.filesSelected.length === 0 || !this.name) {
|
|
354
|
+
return null;
|
|
355
|
+
}
|
|
356
|
+
const formData = new FormData();
|
|
357
|
+
Array.from(this.filesSelected).forEach((file) => {
|
|
358
|
+
formData.append(this.name, file);
|
|
359
|
+
});
|
|
360
|
+
return formData;
|
|
361
|
+
}
|
|
362
|
+
updateValidity() {
|
|
363
|
+
if (!this.nativeInput)
|
|
364
|
+
return;
|
|
365
|
+
const files = this.allFilesCached.map((entry) => entry.file);
|
|
366
|
+
const minimum = Math.max(this.required ? 1 : 0, this.minFiles);
|
|
367
|
+
const countMessage = minimum > 0 && files.length < minimum
|
|
368
|
+
? `Selecione pelo menos ${minimum} arquivo(s).`
|
|
369
|
+
: this.maxFiles > 0 && files.length > this.maxFiles
|
|
370
|
+
? `Selecione no máximo ${this.maxFiles} arquivo(s).`
|
|
371
|
+
: '';
|
|
372
|
+
const oversized = this.maxFileSize > 0 && files.some((file) => (file.size ?? 0) > this.maxFileSize);
|
|
373
|
+
const rejectedType = files.some((file) => file instanceof File && !this.isAcceptedFile(file));
|
|
374
|
+
const domainMessage = oversized
|
|
375
|
+
? `Cada arquivo deve ter no máximo ${formatBytes(this.maxFileSize)}.`
|
|
376
|
+
: rejectedType
|
|
377
|
+
? 'O tipo de um ou mais arquivos não é permitido.'
|
|
378
|
+
: countMessage;
|
|
379
|
+
this.nativeInput.setCustomValidity(this.customValidationMessage || this.validatorMessage || domainMessage);
|
|
380
|
+
syncNativeFormValidity(this.elementInternals, this.nativeInput);
|
|
381
|
+
}
|
|
382
|
+
isAcceptedFile(file) {
|
|
383
|
+
const rules = this.accept
|
|
384
|
+
.split(',')
|
|
385
|
+
.map((rule) => rule.trim().toLowerCase())
|
|
386
|
+
.filter(Boolean);
|
|
387
|
+
if (rules.length === 0)
|
|
388
|
+
return true;
|
|
389
|
+
const fileName = file.name.toLowerCase();
|
|
390
|
+
const mime = file.type.toLowerCase();
|
|
391
|
+
return rules.some((rule) => {
|
|
392
|
+
if (rule.startsWith('.'))
|
|
393
|
+
return fileName.endsWith(rule);
|
|
394
|
+
if (rule.endsWith('/*'))
|
|
395
|
+
return mime.startsWith(rule.slice(0, -1));
|
|
396
|
+
return mime === rule;
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
getCssClassMap() {
|
|
400
|
+
return {
|
|
401
|
+
'br-upload': true,
|
|
402
|
+
[this.feedbackState ?? this.state]: true,
|
|
403
|
+
dragging: this.dragging,
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: método trata remoção em múltiplos cenários (FileList nativo, fallback e arquivos externos).
|
|
407
|
+
handleRemoveFileSelection(file) {
|
|
408
|
+
// Se for um objeto File nativo (novo upload)
|
|
409
|
+
if (file instanceof File) {
|
|
410
|
+
const newArrayFilter = Array.from(this.filesSelected).filter((f) => f !== file);
|
|
411
|
+
if (typeof DataTransfer !== 'undefined') {
|
|
412
|
+
const dataTransfer = new DataTransfer();
|
|
413
|
+
newArrayFilter.forEach((f) => {
|
|
414
|
+
dataTransfer.items.add(f);
|
|
415
|
+
});
|
|
416
|
+
this.filesSelected = dataTransfer.files;
|
|
417
|
+
if (this.nativeInput) {
|
|
418
|
+
this.nativeInput.files = dataTransfer.files;
|
|
419
|
+
if (newArrayFilter.length === 0) {
|
|
420
|
+
this.nativeInput.value = '';
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
this.filesSelected = newArrayFilter;
|
|
426
|
+
if (this.nativeInput && newArrayFilter.length === 0) {
|
|
427
|
+
this.nativeInput.value = '';
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
this.emitFilesChange();
|
|
431
|
+
this.syncFormState();
|
|
432
|
+
}
|
|
433
|
+
// Se for um arquivo vindo de uploadFiles (externo)
|
|
434
|
+
else {
|
|
435
|
+
this.brRemove.emit(file);
|
|
436
|
+
this.brUploadRemove.emit(file);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
renderFilesUploaded() {
|
|
440
|
+
return this.allFilesCached.map(({ file, isNew }) => {
|
|
441
|
+
const size = isNew
|
|
442
|
+
? formatBytes(file.size)
|
|
443
|
+
: file.size !== undefined
|
|
444
|
+
? formatBytes(file.size)
|
|
445
|
+
: '';
|
|
446
|
+
return (h("br-item", { key: this.getFileKey(file), "data-no-selection": true, density: "small" }, h("span", { class: "content text-primary-default" }, file.name), h("span", { slot: "end", class: "support" }, h("span", null, size), h("br-button", { ref: (el) => setPartAttributes(el, 'remove-button', 'button: remove-button-inner'), shape: "circle", type: "button", disabled: this.uploading, "prop:ariaLabel": `Remover arquivo ${file.name}`, onClick: () => this.handleRemoveFileSelection(file) }, h("br-icon", { iconName: "fa-solid:trash", width: "12", height: "12", "aria-hidden": "true" })))));
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
getFileKey(file) {
|
|
450
|
+
let key = this.fileKeys.get(file);
|
|
451
|
+
if (!key) {
|
|
452
|
+
key = `upload-file-${++this.fileKeySequence}`;
|
|
453
|
+
this.fileKeys.set(file, key);
|
|
454
|
+
}
|
|
455
|
+
return key;
|
|
456
|
+
}
|
|
457
|
+
onInputChange(files) {
|
|
458
|
+
if (files.length === 0) {
|
|
459
|
+
return [];
|
|
460
|
+
}
|
|
461
|
+
if (this.multiple) {
|
|
462
|
+
const currentFiles = this.filesSelected && this.filesSelected.length > 0 ? Array.from(this.filesSelected) : [];
|
|
463
|
+
const newFiles = Array.from(files);
|
|
464
|
+
const existingNames = new Set(currentFiles.map((f) => f.name));
|
|
465
|
+
const filesToAdd = newFiles.filter((f) => !existingNames.has(f.name));
|
|
466
|
+
if (typeof DataTransfer !== 'undefined') {
|
|
467
|
+
const dataTransfer = new DataTransfer();
|
|
468
|
+
currentFiles.forEach((file) => {
|
|
469
|
+
dataTransfer.items.add(file);
|
|
470
|
+
});
|
|
471
|
+
filesToAdd.forEach((file) => {
|
|
472
|
+
dataTransfer.items.add(file);
|
|
473
|
+
});
|
|
474
|
+
this.filesSelected = dataTransfer.files;
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
this.filesSelected = [...currentFiles, ...filesToAdd];
|
|
478
|
+
}
|
|
479
|
+
this.emitFilesChange();
|
|
480
|
+
this.syncFormState();
|
|
481
|
+
return filesToAdd;
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
if (files.length > 1) {
|
|
485
|
+
console.error('VOCÊ SÓ PODE ENVIAR UM ARQUIVO POR VEZ');
|
|
486
|
+
return [];
|
|
487
|
+
}
|
|
488
|
+
this.filesSelected = files;
|
|
489
|
+
}
|
|
490
|
+
this.emitFilesChange();
|
|
491
|
+
this.syncFormState();
|
|
492
|
+
return Array.from(files);
|
|
493
|
+
}
|
|
494
|
+
// Método antigo não é mais necessário pois usamos formatBytes diretamente no render
|
|
495
|
+
// private _calculateFileSize(files: FileList) { ... }
|
|
496
|
+
handleDrop(event) {
|
|
497
|
+
event.preventDefault();
|
|
498
|
+
this.dragging = false;
|
|
499
|
+
if (this.isDisabled()) {
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
const files = event.dataTransfer?.files;
|
|
503
|
+
if (files && files.length > 0) {
|
|
504
|
+
const selectedFiles = this.onInputChange(files);
|
|
505
|
+
void this.uploadSelectedFiles(selectedFiles);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
handleDragOver(event) {
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
}
|
|
511
|
+
handleDragEnter(event) {
|
|
512
|
+
event.preventDefault();
|
|
513
|
+
if (!this.isDisabled())
|
|
514
|
+
this.dragging = true;
|
|
515
|
+
}
|
|
516
|
+
handleDragLeave(event) {
|
|
517
|
+
event.preventDefault();
|
|
518
|
+
this.dragging = false;
|
|
519
|
+
}
|
|
520
|
+
handleFileSelection() {
|
|
521
|
+
if (!this.isDisabled() && this.nativeInput) {
|
|
522
|
+
this.nativeInput.click();
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
renderUploadStatus() {
|
|
526
|
+
if (!this.uploading)
|
|
527
|
+
return null;
|
|
528
|
+
return (h("div", { part: "loading", class: "upload-loading", role: "status", "aria-live": "polite" }, h("slot", { name: "loading" }, h("br-loading", { size: "small", label: "Carregando...", labelPosition: "right" }))));
|
|
529
|
+
}
|
|
530
|
+
renderUploadError() {
|
|
531
|
+
return this.uploadError ? (h("div", { role: "alert", class: "upload-error" }, this.uploadError)) : null;
|
|
532
|
+
}
|
|
533
|
+
renderFeedback() {
|
|
534
|
+
const message = this.customValidationMessage || this.validatorMessage;
|
|
535
|
+
return (h("div", { id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !message }, h("slot", { name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && message ? h("br-message", { state: "danger", message: message }) : null));
|
|
536
|
+
}
|
|
537
|
+
render() {
|
|
538
|
+
const hasFiles = (this.filesSelected && this.filesSelected.length > 0) ||
|
|
539
|
+
(this.parsedUploadFiles && this.parsedUploadFiles.length > 0);
|
|
540
|
+
return (h(Host, { key: 'b2354be16c7963909ce2939d1bd24e99475cc6ef', "aria-busy": this.uploading || this.isValidating ? 'true' : null }, h("div", { key: '78808e8f2c3eacce3deb6542ab5e2d9d60bd7e7e', class: this.getCssClassMap(), id: this.customId, part: "container" }, h("label", { key: '5881d7133d9118d3c9e1637932adfac7e58fb3b5', id: `label-${this.customId}`, class: "upload-label", htmlFor: `single-file-${this.customId}`, part: "label" }, h("span", { key: '7e1c9a04a4f88c06007c2d16ee2df1a7d0ca1956' }, h("slot", { key: '1043fac29600fdf581bf8a6fde3928a4b9140bdd', name: "label" }, this.label))), h("input", { key: 'acc7aeb2294edb18ff1495ae335f71420f5f55d5', ref: (el) => {
|
|
541
|
+
this.nativeInput = el;
|
|
542
|
+
el.addEventListener('input', this.handleNativeInput);
|
|
543
|
+
}, class: "upload-input", id: `single-file-${this.customId}`, type: "file", onChange: this.handleInputChange, onCancel: this.handleNativeCancel, multiple: this.multiple, disabled: this.isDisabled(), required: this.required, accept: this.accept, capture: this.capture, "aria-labelledby": `label-${this.customId}`, "aria-busy": this.uploading || this.isValidating ? 'true' : null, "aria-describedby": this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage
|
|
544
|
+
? `${this.customId}-feedback`
|
|
545
|
+
: null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
546
|
+
? `${this.customId}-feedback`
|
|
547
|
+
: null, part: "input" }), h("button", { key: 'd52437779c26e2e41a8fa944325385dca9fab5db', class: "upload-button", type: "button", disabled: this.isDisabled(), onClick: () => this.handleFileSelection(), onDragEnter: (event) => this.handleDragEnter(event), onDragLeave: (event) => this.handleDragLeave(event), onDrop: (event) => this.handleDrop(event), onDragOver: (event) => this.handleDragOver(event), "aria-describedby": `label-${this.customId}`, part: "button" }, h("br-icon", { key: '5b9514f5bfdfa32c5bbf73443f215454d669a71e', iconName: "fa-solid:upload", width: "20", height: "20", "aria-hidden": "true" }), h("slot", { key: '00684193f001d54a684261a9dca1e5c35ba2bcba' }, h("span", { key: 'af97d6116a296ae574b5de7c0e26c78a783983b4' }, "Selecione o arquivo"))), h("div", { key: '9db7490ea790b63348952dffc52dc67dd8c54a82', class: "upload-help", part: "helper" }, h("slot", { key: 'f831bae068bae343d40067922c07431fce1e2295', name: "helper" }, this.multiple ? 'Clique ou arraste os arquivos para cima do componente Upload.' : null)), this.renderUploadStatus(), h("slot", { key: 'e6cae25855b7e30f797d51aae53448fc8be7cbf5', name: "upload-list" }, hasFiles && (h("br-list", { key: '90c912ba21f3dff6f9c28cf53886414aa0582c4a', id: `${this.customId}-list-files`, class: "upload-list", listRole: "list", density: "small", part: "file-list" }, this.renderFilesUploaded())))), this.renderUploadError(), this.renderFeedback()));
|
|
548
|
+
}
|
|
549
|
+
static get is() { return "br-upload"; }
|
|
550
|
+
static get encapsulation() { return "shadow"; }
|
|
551
|
+
static get formAssociated() { return true; }
|
|
552
|
+
static get originalStyleUrls() {
|
|
553
|
+
return {
|
|
554
|
+
"$": ["upload.scss"]
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
static get styleUrls() {
|
|
558
|
+
return {
|
|
559
|
+
"$": ["upload.css"]
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
static get properties() {
|
|
563
|
+
return {
|
|
564
|
+
"customId": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"mutable": false,
|
|
567
|
+
"complexType": {
|
|
568
|
+
"original": "string",
|
|
569
|
+
"resolved": "string",
|
|
570
|
+
"references": {}
|
|
571
|
+
},
|
|
572
|
+
"required": false,
|
|
573
|
+
"optional": false,
|
|
574
|
+
"docs": {
|
|
575
|
+
"tags": [],
|
|
576
|
+
"text": "Identificador \u00FAnico do componente.\nQuando omitido, um valor \u00E9 gerado automaticamente.\n\n> **Padr\u00E3o:** valor \u00FAnico gerado por generateUniqueId()."
|
|
577
|
+
},
|
|
578
|
+
"getter": false,
|
|
579
|
+
"setter": false,
|
|
580
|
+
"reflect": true,
|
|
581
|
+
"attribute": "custom-id",
|
|
582
|
+
"defaultValue": "generateUniqueId()"
|
|
583
|
+
},
|
|
584
|
+
"name": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"mutable": false,
|
|
587
|
+
"complexType": {
|
|
588
|
+
"original": "string",
|
|
589
|
+
"resolved": "string",
|
|
590
|
+
"references": {}
|
|
591
|
+
},
|
|
592
|
+
"required": false,
|
|
593
|
+
"optional": true,
|
|
594
|
+
"docs": {
|
|
595
|
+
"tags": [],
|
|
596
|
+
"text": "Nome do campo enviado no formul\u00E1rio."
|
|
597
|
+
},
|
|
598
|
+
"getter": false,
|
|
599
|
+
"setter": false,
|
|
600
|
+
"reflect": true,
|
|
601
|
+
"attribute": "name"
|
|
602
|
+
},
|
|
603
|
+
"accept": {
|
|
604
|
+
"type": "string",
|
|
605
|
+
"mutable": false,
|
|
606
|
+
"complexType": {
|
|
607
|
+
"original": "string",
|
|
608
|
+
"resolved": "string",
|
|
609
|
+
"references": {}
|
|
610
|
+
},
|
|
611
|
+
"required": false,
|
|
612
|
+
"optional": false,
|
|
613
|
+
"docs": {
|
|
614
|
+
"tags": [],
|
|
615
|
+
"text": "Tipos de arquivo permitidos (ex.: 'image/*')."
|
|
616
|
+
},
|
|
617
|
+
"getter": false,
|
|
618
|
+
"setter": false,
|
|
619
|
+
"reflect": false,
|
|
620
|
+
"attribute": "accept",
|
|
621
|
+
"defaultValue": "''"
|
|
622
|
+
},
|
|
623
|
+
"capture": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"mutable": false,
|
|
626
|
+
"complexType": {
|
|
627
|
+
"original": "'' | 'user' | 'environment'",
|
|
628
|
+
"resolved": "\"\" | \"environment\" | \"user\"",
|
|
629
|
+
"references": {}
|
|
630
|
+
},
|
|
631
|
+
"required": false,
|
|
632
|
+
"optional": true,
|
|
633
|
+
"docs": {
|
|
634
|
+
"tags": [],
|
|
635
|
+
"text": "Sugere a c\u00E2mera usada na captura de imagem ou v\u00EDdeo.\nO navegador pode ignorar a prefer\u00EAncia conforme dispositivo e permiss\u00F5es."
|
|
636
|
+
},
|
|
637
|
+
"getter": false,
|
|
638
|
+
"setter": false,
|
|
639
|
+
"reflect": true,
|
|
640
|
+
"attribute": "capture"
|
|
641
|
+
},
|
|
642
|
+
"label": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"mutable": false,
|
|
645
|
+
"complexType": {
|
|
646
|
+
"original": "string",
|
|
647
|
+
"resolved": "string",
|
|
648
|
+
"references": {}
|
|
649
|
+
},
|
|
650
|
+
"required": false,
|
|
651
|
+
"optional": false,
|
|
652
|
+
"docs": {
|
|
653
|
+
"tags": [],
|
|
654
|
+
"text": "R\u00F3tulo exibido acima do bot\u00E3o de upload."
|
|
655
|
+
},
|
|
656
|
+
"getter": false,
|
|
657
|
+
"setter": false,
|
|
658
|
+
"reflect": false,
|
|
659
|
+
"attribute": "label",
|
|
660
|
+
"defaultValue": "'Envio de arquivo'"
|
|
661
|
+
},
|
|
662
|
+
"uploadFiles": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"mutable": false,
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "string | IUploadFile[]",
|
|
667
|
+
"resolved": "IUploadFile[] | string",
|
|
668
|
+
"references": {
|
|
669
|
+
"IUploadFile": {
|
|
670
|
+
"location": "import",
|
|
671
|
+
"path": "../../shared/utils/interfaces",
|
|
672
|
+
"id": "src/shared/utils/interfaces.ts::IUploadFile",
|
|
673
|
+
"referenceLocation": "IUploadFile"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"required": false,
|
|
678
|
+
"optional": false,
|
|
679
|
+
"docs": {
|
|
680
|
+
"tags": [{
|
|
681
|
+
"name": "deprecated",
|
|
682
|
+
"text": "Use `existingFiles`."
|
|
683
|
+
}],
|
|
684
|
+
"text": ""
|
|
685
|
+
},
|
|
686
|
+
"getter": false,
|
|
687
|
+
"setter": false,
|
|
688
|
+
"reflect": false,
|
|
689
|
+
"attribute": "upload-files",
|
|
690
|
+
"defaultValue": "[]"
|
|
691
|
+
},
|
|
692
|
+
"existingFiles": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"mutable": false,
|
|
695
|
+
"complexType": {
|
|
696
|
+
"original": "string | IUploadFile[]",
|
|
697
|
+
"resolved": "IUploadFile[] | string",
|
|
698
|
+
"references": {
|
|
699
|
+
"IUploadFile": {
|
|
700
|
+
"location": "import",
|
|
701
|
+
"path": "../../shared/utils/interfaces",
|
|
702
|
+
"id": "src/shared/utils/interfaces.ts::IUploadFile",
|
|
703
|
+
"referenceLocation": "IUploadFile"
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"required": false,
|
|
708
|
+
"optional": true,
|
|
709
|
+
"docs": {
|
|
710
|
+
"tags": [],
|
|
711
|
+
"text": "Arquivos j\u00E1 existentes. Quando informada, tem preced\u00EAncia sobre `uploadFiles`."
|
|
712
|
+
},
|
|
713
|
+
"getter": false,
|
|
714
|
+
"setter": false,
|
|
715
|
+
"reflect": false,
|
|
716
|
+
"attribute": "existing-files"
|
|
717
|
+
},
|
|
718
|
+
"disabled": {
|
|
719
|
+
"type": "boolean",
|
|
720
|
+
"mutable": false,
|
|
721
|
+
"complexType": {
|
|
722
|
+
"original": "boolean",
|
|
723
|
+
"resolved": "boolean",
|
|
724
|
+
"references": {}
|
|
725
|
+
},
|
|
726
|
+
"required": false,
|
|
727
|
+
"optional": false,
|
|
728
|
+
"docs": {
|
|
729
|
+
"tags": [],
|
|
730
|
+
"text": "Desabilita a intera\u00E7\u00E3o com o componente."
|
|
731
|
+
},
|
|
732
|
+
"getter": false,
|
|
733
|
+
"setter": false,
|
|
734
|
+
"reflect": true,
|
|
735
|
+
"attribute": "disabled",
|
|
736
|
+
"defaultValue": "false"
|
|
737
|
+
},
|
|
738
|
+
"required": {
|
|
739
|
+
"type": "boolean",
|
|
740
|
+
"mutable": false,
|
|
741
|
+
"complexType": {
|
|
742
|
+
"original": "boolean",
|
|
743
|
+
"resolved": "boolean",
|
|
744
|
+
"references": {}
|
|
745
|
+
},
|
|
746
|
+
"required": false,
|
|
747
|
+
"optional": false,
|
|
748
|
+
"docs": {
|
|
749
|
+
"tags": [],
|
|
750
|
+
"text": "Se verdadeiro, o input de upload \u00E9 obrigat\u00F3rio antes que o formul\u00E1rio possa ser enviado."
|
|
751
|
+
},
|
|
752
|
+
"getter": false,
|
|
753
|
+
"setter": false,
|
|
754
|
+
"reflect": true,
|
|
755
|
+
"attribute": "required",
|
|
756
|
+
"defaultValue": "false"
|
|
757
|
+
},
|
|
758
|
+
"state": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"mutable": false,
|
|
761
|
+
"complexType": {
|
|
762
|
+
"original": "BrFeedbackState",
|
|
763
|
+
"resolved": "\"danger\" | \"info\" | \"success\" | \"warning\"",
|
|
764
|
+
"references": {
|
|
765
|
+
"BrFeedbackState": {
|
|
766
|
+
"location": "import",
|
|
767
|
+
"path": "../global.types",
|
|
768
|
+
"id": "src/components/global.types.ts::BrFeedbackState",
|
|
769
|
+
"referenceLocation": "BrFeedbackState"
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"required": false,
|
|
774
|
+
"optional": false,
|
|
775
|
+
"docs": {
|
|
776
|
+
"tags": [],
|
|
777
|
+
"text": "Estado visual: 'info', 'warning', 'danger' ou 'success'."
|
|
778
|
+
},
|
|
779
|
+
"getter": false,
|
|
780
|
+
"setter": false,
|
|
781
|
+
"reflect": true,
|
|
782
|
+
"attribute": "state"
|
|
783
|
+
},
|
|
784
|
+
"feedbackState": {
|
|
785
|
+
"type": "string",
|
|
786
|
+
"mutable": false,
|
|
787
|
+
"complexType": {
|
|
788
|
+
"original": "BrFeedbackState",
|
|
789
|
+
"resolved": "\"danger\" | \"info\" | \"success\" | \"warning\"",
|
|
790
|
+
"references": {
|
|
791
|
+
"BrFeedbackState": {
|
|
792
|
+
"location": "import",
|
|
793
|
+
"path": "../global.types",
|
|
794
|
+
"id": "src/components/global.types.ts::BrFeedbackState",
|
|
795
|
+
"referenceLocation": "BrFeedbackState"
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"required": false,
|
|
800
|
+
"optional": true,
|
|
801
|
+
"docs": {
|
|
802
|
+
"tags": [],
|
|
803
|
+
"text": "Estado de feedback can\u00F4nico. Quando informado, tem preced\u00EAncia sobre `state`."
|
|
804
|
+
},
|
|
805
|
+
"getter": false,
|
|
806
|
+
"setter": false,
|
|
807
|
+
"reflect": true,
|
|
808
|
+
"attribute": "feedback-state"
|
|
809
|
+
},
|
|
810
|
+
"multiple": {
|
|
811
|
+
"type": "boolean",
|
|
812
|
+
"mutable": false,
|
|
813
|
+
"complexType": {
|
|
814
|
+
"original": "boolean",
|
|
815
|
+
"resolved": "boolean",
|
|
816
|
+
"references": {}
|
|
817
|
+
},
|
|
818
|
+
"required": false,
|
|
819
|
+
"optional": false,
|
|
820
|
+
"docs": {
|
|
821
|
+
"tags": [],
|
|
822
|
+
"text": "Indica se o componente permite a sele\u00E7\u00E3o de m\u00FAltiplos arquivos.\nQuando definido como `true`, o usu\u00E1rio pode selecionar mais de um arquivo para upload."
|
|
823
|
+
},
|
|
824
|
+
"getter": false,
|
|
825
|
+
"setter": false,
|
|
826
|
+
"reflect": false,
|
|
827
|
+
"attribute": "multiple",
|
|
828
|
+
"defaultValue": "false"
|
|
829
|
+
},
|
|
830
|
+
"minFiles": {
|
|
831
|
+
"type": "number",
|
|
832
|
+
"mutable": false,
|
|
833
|
+
"complexType": {
|
|
834
|
+
"original": "number",
|
|
835
|
+
"resolved": "number",
|
|
836
|
+
"references": {}
|
|
837
|
+
},
|
|
838
|
+
"required": false,
|
|
839
|
+
"optional": false,
|
|
840
|
+
"docs": {
|
|
841
|
+
"tags": [],
|
|
842
|
+
"text": "Quantidade m\u00EDnima de arquivos, incluindo arquivos j\u00E1 enviados."
|
|
843
|
+
},
|
|
844
|
+
"getter": false,
|
|
845
|
+
"setter": false,
|
|
846
|
+
"reflect": true,
|
|
847
|
+
"attribute": "min-files",
|
|
848
|
+
"defaultValue": "0"
|
|
849
|
+
},
|
|
850
|
+
"maxFiles": {
|
|
851
|
+
"type": "number",
|
|
852
|
+
"mutable": false,
|
|
853
|
+
"complexType": {
|
|
854
|
+
"original": "number",
|
|
855
|
+
"resolved": "number",
|
|
856
|
+
"references": {}
|
|
857
|
+
},
|
|
858
|
+
"required": false,
|
|
859
|
+
"optional": false,
|
|
860
|
+
"docs": {
|
|
861
|
+
"tags": [],
|
|
862
|
+
"text": "Quantidade m\u00E1xima de arquivos. Zero significa sem limite."
|
|
863
|
+
},
|
|
864
|
+
"getter": false,
|
|
865
|
+
"setter": false,
|
|
866
|
+
"reflect": true,
|
|
867
|
+
"attribute": "max-files",
|
|
868
|
+
"defaultValue": "0"
|
|
869
|
+
},
|
|
870
|
+
"maxFileSize": {
|
|
871
|
+
"type": "number",
|
|
872
|
+
"mutable": false,
|
|
873
|
+
"complexType": {
|
|
874
|
+
"original": "number",
|
|
875
|
+
"resolved": "number",
|
|
876
|
+
"references": {}
|
|
877
|
+
},
|
|
878
|
+
"required": false,
|
|
879
|
+
"optional": false,
|
|
880
|
+
"docs": {
|
|
881
|
+
"tags": [],
|
|
882
|
+
"text": "Tamanho m\u00E1ximo permitido para cada arquivo, em bytes. Zero significa sem limite."
|
|
883
|
+
},
|
|
884
|
+
"getter": false,
|
|
885
|
+
"setter": false,
|
|
886
|
+
"reflect": true,
|
|
887
|
+
"attribute": "max-file-size",
|
|
888
|
+
"defaultValue": "0"
|
|
889
|
+
},
|
|
890
|
+
"validator": {
|
|
891
|
+
"type": "unknown",
|
|
892
|
+
"mutable": false,
|
|
893
|
+
"complexType": {
|
|
894
|
+
"original": "UploadValidator",
|
|
895
|
+
"resolved": "(value: File[]) => string | Promise<string>",
|
|
896
|
+
"references": {
|
|
897
|
+
"UploadValidator": {
|
|
898
|
+
"location": "import",
|
|
899
|
+
"path": "./upload.types",
|
|
900
|
+
"id": "src/components/upload/upload.types.ts::UploadValidator",
|
|
901
|
+
"referenceLocation": "UploadValidator"
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"required": false,
|
|
906
|
+
"optional": true,
|
|
907
|
+
"docs": {
|
|
908
|
+
"tags": [],
|
|
909
|
+
"text": "Regra s\u00EDncrona ou ass\u00EDncrona aplicada \u00E0 lista de arquivos selecionados.\nO componente valida `File[]`, mas n\u00E3o envia arquivos nem interpreta a\nresposta do servidor."
|
|
910
|
+
},
|
|
911
|
+
"getter": false,
|
|
912
|
+
"setter": false
|
|
913
|
+
},
|
|
914
|
+
"uploadHandler": {
|
|
915
|
+
"type": "unknown",
|
|
916
|
+
"mutable": false,
|
|
917
|
+
"complexType": {
|
|
918
|
+
"original": "UploadHandler",
|
|
919
|
+
"resolved": "(context: UploadHandlerContext) => Promise<void>",
|
|
920
|
+
"references": {
|
|
921
|
+
"UploadHandler": {
|
|
922
|
+
"location": "import",
|
|
923
|
+
"path": "./upload.types",
|
|
924
|
+
"id": "src/components/upload/upload.types.ts::UploadHandler",
|
|
925
|
+
"referenceLocation": "UploadHandler"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
"required": false,
|
|
930
|
+
"optional": true,
|
|
931
|
+
"docs": {
|
|
932
|
+
"tags": [],
|
|
933
|
+
"text": "Fun\u00E7\u00E3o ass\u00EDncrona opcional fornecida pela aplica\u00E7\u00E3o para enviar cada arquivo.\n\nO componente fornece o arquivo, um `AbortSignal` e uma fun\u00E7\u00E3o de progresso,\nmas n\u00E3o conhece endpoint, autentica\u00E7\u00E3o nem formato de resposta."
|
|
934
|
+
},
|
|
935
|
+
"getter": false,
|
|
936
|
+
"setter": false
|
|
937
|
+
},
|
|
938
|
+
"files": {
|
|
939
|
+
"type": "unknown",
|
|
940
|
+
"mutable": true,
|
|
941
|
+
"complexType": {
|
|
942
|
+
"original": "FileList | null",
|
|
943
|
+
"resolved": "FileList",
|
|
944
|
+
"references": {
|
|
945
|
+
"FileList": {
|
|
946
|
+
"location": "global",
|
|
947
|
+
"id": "global::FileList"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"required": false,
|
|
952
|
+
"optional": false,
|
|
953
|
+
"docs": {
|
|
954
|
+
"tags": [],
|
|
955
|
+
"text": "Lista de arquivos selecionados, equivalente a `HTMLInputElement.files`."
|
|
956
|
+
},
|
|
957
|
+
"getter": false,
|
|
958
|
+
"setter": false,
|
|
959
|
+
"defaultValue": "null"
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
static get states() {
|
|
964
|
+
return {
|
|
965
|
+
"allFilesCached": {},
|
|
966
|
+
"file": {},
|
|
967
|
+
"filesSelected": {},
|
|
968
|
+
"formDisabled": {},
|
|
969
|
+
"hasFeedbackSlot": {},
|
|
970
|
+
"dragging": {},
|
|
971
|
+
"customValidationMessage": {},
|
|
972
|
+
"validatorMessage": {},
|
|
973
|
+
"isValidating": {},
|
|
974
|
+
"uploading": {},
|
|
975
|
+
"uploadError": {},
|
|
976
|
+
"parsedUploadFiles": {}
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
static get events() {
|
|
980
|
+
return [{
|
|
981
|
+
"method": "selectedFilesChange",
|
|
982
|
+
"name": "selectedFilesChange",
|
|
983
|
+
"bubbles": true,
|
|
984
|
+
"cancelable": true,
|
|
985
|
+
"composed": true,
|
|
986
|
+
"docs": {
|
|
987
|
+
"tags": [{
|
|
988
|
+
"name": "deprecated",
|
|
989
|
+
"text": "Use `input`/`change` e leia `event.target.files`."
|
|
990
|
+
}],
|
|
991
|
+
"text": "Emitido quando a lista de arquivos selecionados muda."
|
|
992
|
+
},
|
|
993
|
+
"complexType": {
|
|
994
|
+
"original": "FileList",
|
|
995
|
+
"resolved": "FileList",
|
|
996
|
+
"references": {
|
|
997
|
+
"FileList": {
|
|
998
|
+
"location": "global",
|
|
999
|
+
"id": "global::FileList"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}, {
|
|
1004
|
+
"method": "brRemove",
|
|
1005
|
+
"name": "brRemove",
|
|
1006
|
+
"bubbles": true,
|
|
1007
|
+
"cancelable": true,
|
|
1008
|
+
"composed": true,
|
|
1009
|
+
"docs": {
|
|
1010
|
+
"tags": [{
|
|
1011
|
+
"name": "deprecated",
|
|
1012
|
+
"text": "Use `brUploadRemove`."
|
|
1013
|
+
}],
|
|
1014
|
+
"text": "Evento emitido quando um arquivo da lista `uploadFiles` (externos) \u00E9 removido pelo usu\u00E1rio.\nO objeto emitido cont\u00E9m os dados do arquivo removido."
|
|
1015
|
+
},
|
|
1016
|
+
"complexType": {
|
|
1017
|
+
"original": "IUploadFile",
|
|
1018
|
+
"resolved": "IUploadFile",
|
|
1019
|
+
"references": {
|
|
1020
|
+
"IUploadFile": {
|
|
1021
|
+
"location": "import",
|
|
1022
|
+
"path": "../../shared/utils/interfaces",
|
|
1023
|
+
"id": "src/shared/utils/interfaces.ts::IUploadFile",
|
|
1024
|
+
"referenceLocation": "IUploadFile"
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}, {
|
|
1029
|
+
"method": "brUploadRemove",
|
|
1030
|
+
"name": "brUploadRemove",
|
|
1031
|
+
"bubbles": true,
|
|
1032
|
+
"cancelable": false,
|
|
1033
|
+
"composed": true,
|
|
1034
|
+
"docs": {
|
|
1035
|
+
"tags": [],
|
|
1036
|
+
"text": "Evento can\u00F4nico emitido quando um arquivo existente \u00E9 removido."
|
|
1037
|
+
},
|
|
1038
|
+
"complexType": {
|
|
1039
|
+
"original": "IUploadFile",
|
|
1040
|
+
"resolved": "IUploadFile",
|
|
1041
|
+
"references": {
|
|
1042
|
+
"IUploadFile": {
|
|
1043
|
+
"location": "import",
|
|
1044
|
+
"path": "../../shared/utils/interfaces",
|
|
1045
|
+
"id": "src/shared/utils/interfaces.ts::IUploadFile",
|
|
1046
|
+
"referenceLocation": "IUploadFile"
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}, {
|
|
1051
|
+
"method": "brUploadCancel",
|
|
1052
|
+
"name": "brUploadCancel",
|
|
1053
|
+
"bubbles": true,
|
|
1054
|
+
"cancelable": false,
|
|
1055
|
+
"composed": true,
|
|
1056
|
+
"docs": {
|
|
1057
|
+
"tags": [],
|
|
1058
|
+
"text": "Emitido quando o usu\u00E1rio fecha a caixa de sele\u00E7\u00E3o de arquivos sem escolher nada."
|
|
1059
|
+
},
|
|
1060
|
+
"complexType": {
|
|
1061
|
+
"original": "void",
|
|
1062
|
+
"resolved": "void",
|
|
1063
|
+
"references": {}
|
|
1064
|
+
}
|
|
1065
|
+
}, {
|
|
1066
|
+
"method": "brUploadValidationChange",
|
|
1067
|
+
"name": "brUploadValidationChange",
|
|
1068
|
+
"bubbles": true,
|
|
1069
|
+
"cancelable": true,
|
|
1070
|
+
"composed": true,
|
|
1071
|
+
"docs": {
|
|
1072
|
+
"tags": [],
|
|
1073
|
+
"text": "Emitido ao iniciar e concluir a valida\u00E7\u00E3o customizada.\nO `detail` cont\u00E9m `validating`, `valid` e `message`."
|
|
1074
|
+
},
|
|
1075
|
+
"complexType": {
|
|
1076
|
+
"original": "FormValidationChangeDetail",
|
|
1077
|
+
"resolved": "FormValidationChangeDetail",
|
|
1078
|
+
"references": {
|
|
1079
|
+
"FormValidationChangeDetail": {
|
|
1080
|
+
"location": "import",
|
|
1081
|
+
"path": "../../shared/utils/validator",
|
|
1082
|
+
"id": "src/shared/utils/validator.ts::FormValidationChangeDetail",
|
|
1083
|
+
"referenceLocation": "FormValidationChangeDetail"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}, {
|
|
1088
|
+
"method": "brUploadStart",
|
|
1089
|
+
"name": "brUploadStart",
|
|
1090
|
+
"bubbles": true,
|
|
1091
|
+
"cancelable": false,
|
|
1092
|
+
"composed": true,
|
|
1093
|
+
"docs": {
|
|
1094
|
+
"tags": [],
|
|
1095
|
+
"text": "Emitido antes de o `uploadHandler` processar um arquivo."
|
|
1096
|
+
},
|
|
1097
|
+
"complexType": {
|
|
1098
|
+
"original": "UploadFileDetail",
|
|
1099
|
+
"resolved": "{ file: File; }",
|
|
1100
|
+
"references": {
|
|
1101
|
+
"UploadFileDetail": {
|
|
1102
|
+
"location": "import",
|
|
1103
|
+
"path": "./upload.types",
|
|
1104
|
+
"id": "src/components/upload/upload.types.ts::UploadFileDetail",
|
|
1105
|
+
"referenceLocation": "UploadFileDetail"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}, {
|
|
1110
|
+
"method": "brUploadProgress",
|
|
1111
|
+
"name": "brUploadProgress",
|
|
1112
|
+
"bubbles": true,
|
|
1113
|
+
"cancelable": false,
|
|
1114
|
+
"composed": true,
|
|
1115
|
+
"docs": {
|
|
1116
|
+
"tags": [],
|
|
1117
|
+
"text": "Emitido quando o `uploadHandler` informa o progresso de um arquivo."
|
|
1118
|
+
},
|
|
1119
|
+
"complexType": {
|
|
1120
|
+
"original": "UploadProgressDetail",
|
|
1121
|
+
"resolved": "UploadFileDetail & { progress: number; }",
|
|
1122
|
+
"references": {
|
|
1123
|
+
"UploadProgressDetail": {
|
|
1124
|
+
"location": "import",
|
|
1125
|
+
"path": "./upload.types",
|
|
1126
|
+
"id": "src/components/upload/upload.types.ts::UploadProgressDetail",
|
|
1127
|
+
"referenceLocation": "UploadProgressDetail"
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
"method": "brUploadSuccess",
|
|
1133
|
+
"name": "brUploadSuccess",
|
|
1134
|
+
"bubbles": true,
|
|
1135
|
+
"cancelable": false,
|
|
1136
|
+
"composed": true,
|
|
1137
|
+
"docs": {
|
|
1138
|
+
"tags": [],
|
|
1139
|
+
"text": "Emitido quando o `uploadHandler` conclui um arquivo."
|
|
1140
|
+
},
|
|
1141
|
+
"complexType": {
|
|
1142
|
+
"original": "UploadFileDetail",
|
|
1143
|
+
"resolved": "{ file: File; }",
|
|
1144
|
+
"references": {
|
|
1145
|
+
"UploadFileDetail": {
|
|
1146
|
+
"location": "import",
|
|
1147
|
+
"path": "./upload.types",
|
|
1148
|
+
"id": "src/components/upload/upload.types.ts::UploadFileDetail",
|
|
1149
|
+
"referenceLocation": "UploadFileDetail"
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}, {
|
|
1154
|
+
"method": "brUploadError",
|
|
1155
|
+
"name": "brUploadError",
|
|
1156
|
+
"bubbles": true,
|
|
1157
|
+
"cancelable": false,
|
|
1158
|
+
"composed": true,
|
|
1159
|
+
"docs": {
|
|
1160
|
+
"tags": [],
|
|
1161
|
+
"text": "Emitido quando o `uploadHandler` falha ao enviar um arquivo."
|
|
1162
|
+
},
|
|
1163
|
+
"complexType": {
|
|
1164
|
+
"original": "UploadErrorDetail",
|
|
1165
|
+
"resolved": "UploadFileDetail & { message: string; }",
|
|
1166
|
+
"references": {
|
|
1167
|
+
"UploadErrorDetail": {
|
|
1168
|
+
"location": "import",
|
|
1169
|
+
"path": "./upload.types",
|
|
1170
|
+
"id": "src/components/upload/upload.types.ts::UploadErrorDetail",
|
|
1171
|
+
"referenceLocation": "UploadErrorDetail"
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}];
|
|
1176
|
+
}
|
|
1177
|
+
static get methods() {
|
|
1178
|
+
return {
|
|
1179
|
+
"checkValidity": {
|
|
1180
|
+
"complexType": {
|
|
1181
|
+
"signature": "() => Promise<boolean>",
|
|
1182
|
+
"parameters": [],
|
|
1183
|
+
"references": {
|
|
1184
|
+
"Promise": {
|
|
1185
|
+
"location": "global",
|
|
1186
|
+
"id": "global::Promise"
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
"return": "Promise<boolean>"
|
|
1190
|
+
},
|
|
1191
|
+
"docs": {
|
|
1192
|
+
"text": "Retorna `true` se o valor do componente for v\u00E1lido, caso contr\u00E1rio `false`.\nSe o componente for inv\u00E1lido, dispara um evento 'invalid'.",
|
|
1193
|
+
"tags": []
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
"reportValidity": {
|
|
1197
|
+
"complexType": {
|
|
1198
|
+
"signature": "() => Promise<boolean>",
|
|
1199
|
+
"parameters": [],
|
|
1200
|
+
"references": {
|
|
1201
|
+
"Promise": {
|
|
1202
|
+
"location": "global",
|
|
1203
|
+
"id": "global::Promise"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"return": "Promise<boolean>"
|
|
1207
|
+
},
|
|
1208
|
+
"docs": {
|
|
1209
|
+
"text": "Retorna `true` se o valor do componente for v\u00E1lido, caso contr\u00E1rio `false`.\nSe for inv\u00E1lido, exibe a mensagem de erro padr\u00E3o do navegador.",
|
|
1210
|
+
"tags": []
|
|
1211
|
+
}
|
|
1212
|
+
},
|
|
1213
|
+
"setCustomValidity": {
|
|
1214
|
+
"complexType": {
|
|
1215
|
+
"signature": "(message: string) => Promise<void>",
|
|
1216
|
+
"parameters": [{
|
|
1217
|
+
"name": "message",
|
|
1218
|
+
"type": "string",
|
|
1219
|
+
"docs": ""
|
|
1220
|
+
}],
|
|
1221
|
+
"references": {
|
|
1222
|
+
"Promise": {
|
|
1223
|
+
"location": "global",
|
|
1224
|
+
"id": "global::Promise"
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
"return": "Promise<void>"
|
|
1228
|
+
},
|
|
1229
|
+
"docs": {
|
|
1230
|
+
"text": "Define uma mensagem de valida\u00E7\u00E3o customizada para o upload.\nSe a mensagem for uma string vazia, o erro customizado \u00E9 limpo.",
|
|
1231
|
+
"tags": []
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
"validate": {
|
|
1235
|
+
"complexType": {
|
|
1236
|
+
"signature": "() => Promise<boolean>",
|
|
1237
|
+
"parameters": [],
|
|
1238
|
+
"references": {
|
|
1239
|
+
"Promise": {
|
|
1240
|
+
"location": "global",
|
|
1241
|
+
"id": "global::Promise"
|
|
1242
|
+
},
|
|
1243
|
+
"File": {
|
|
1244
|
+
"location": "global",
|
|
1245
|
+
"id": "global::File"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"return": "Promise<boolean>"
|
|
1249
|
+
},
|
|
1250
|
+
"docs": {
|
|
1251
|
+
"text": "Executa o validator do upload e retorna se a lista atual \u00E9 v\u00E1lida.",
|
|
1252
|
+
"tags": []
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
"getValidationState": {
|
|
1256
|
+
"complexType": {
|
|
1257
|
+
"signature": "() => Promise<FormValidationState>",
|
|
1258
|
+
"parameters": [],
|
|
1259
|
+
"references": {
|
|
1260
|
+
"Promise": {
|
|
1261
|
+
"location": "global",
|
|
1262
|
+
"id": "global::Promise"
|
|
1263
|
+
},
|
|
1264
|
+
"FormValidationState": {
|
|
1265
|
+
"location": "import",
|
|
1266
|
+
"path": "../../shared/utils/form",
|
|
1267
|
+
"id": "src/shared/utils/form.ts::FormValidationState",
|
|
1268
|
+
"referenceLocation": "FormValidationState"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"return": "Promise<FormValidationState>"
|
|
1272
|
+
},
|
|
1273
|
+
"docs": {
|
|
1274
|
+
"text": "Retorna um snapshot serializ\u00E1vel da Constraint Validation API.",
|
|
1275
|
+
"tags": []
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
"cancelUpload": {
|
|
1279
|
+
"complexType": {
|
|
1280
|
+
"signature": "() => Promise<void>",
|
|
1281
|
+
"parameters": [],
|
|
1282
|
+
"references": {
|
|
1283
|
+
"Promise": {
|
|
1284
|
+
"location": "global",
|
|
1285
|
+
"id": "global::Promise"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
"return": "Promise<void>"
|
|
1289
|
+
},
|
|
1290
|
+
"docs": {
|
|
1291
|
+
"text": "Cancela o envio atual iniciado pelo `uploadHandler`.",
|
|
1292
|
+
"tags": []
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
static get elementRef() { return "el"; }
|
|
1298
|
+
static get watchers() {
|
|
1299
|
+
return [{
|
|
1300
|
+
"propName": "files",
|
|
1301
|
+
"methodName": "filesHandler"
|
|
1302
|
+
}, {
|
|
1303
|
+
"propName": "uploadFiles",
|
|
1304
|
+
"methodName": "uploadFilesHandler"
|
|
1305
|
+
}, {
|
|
1306
|
+
"propName": "existingFiles",
|
|
1307
|
+
"methodName": "existingFilesHandler"
|
|
1308
|
+
}, {
|
|
1309
|
+
"propName": "filesSelected",
|
|
1310
|
+
"methodName": "filesSelectedHandler"
|
|
1311
|
+
}];
|
|
1312
|
+
}
|
|
1313
|
+
static get attachInternalsMemberName() { return "elementInternals"; }
|
|
1314
|
+
}
|