@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,1324 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { arrow, autoUpdate, computePosition, flip, hide, offset, shift } from "@floating-ui/dom";
|
|
6
|
+
import { Host, h } from "@stencil/core";
|
|
7
|
+
import { clampNumber } from "../../shared/utils/clamp";
|
|
8
|
+
import { dispatchNativeFormEvent, getEventTarget, isEventTargetInside, redispatchNativeFormEvent, } from "../../shared/utils/event";
|
|
9
|
+
import { getFormValidationState, isFormControlDisabled, setFormValidity, } from "../../shared/utils/form";
|
|
10
|
+
import { generateUniqueId } from "../../shared/utils/id";
|
|
11
|
+
import { createRafBatcher } from "../../shared/utils/raf-batcher";
|
|
12
|
+
import { hasAssignedSlotContent } from "../../shared/utils/slot";
|
|
13
|
+
import { resolveFormValidator, runFormValidator } from "../../shared/utils/validator";
|
|
14
|
+
/**
|
|
15
|
+
* ## Design System
|
|
16
|
+
*
|
|
17
|
+
* Para a documentação completa de design, incluindo diretrizes de uso, acessibilidade e exemplos visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/slider?tab=designer).
|
|
18
|
+
*
|
|
19
|
+
* @category Formulários
|
|
20
|
+
* @status stable
|
|
21
|
+
* @slot ref-start - Conteúdo exibido como referência inicial abaixo da trilha.
|
|
22
|
+
* @slot ref-end - Conteúdo exibido como referência final abaixo da trilha.
|
|
23
|
+
* @slot feedback - Mensagem de validação, normalmente um `br-message`.
|
|
24
|
+
*
|
|
25
|
+
* @part base - Contêiner principal do slider.
|
|
26
|
+
* @part layout - Contêiner de layout do slider.
|
|
27
|
+
* @part body - Área que agrupa trilha e referências.
|
|
28
|
+
* @part track - Área interativa da trilha.
|
|
29
|
+
* @part track-visual - Trilha visual do slider.
|
|
30
|
+
* @part tick-labels - Contêiner das etiquetas das marcações.
|
|
31
|
+
* @part tick-label - Etiqueta de uma marcação intermediária.
|
|
32
|
+
* @part filled-track - Trecho preenchido da trilha.
|
|
33
|
+
* @part value-label - Etiqueta com o valor da alça.
|
|
34
|
+
* @part value-label-arrow - Seta da etiqueta de valor.
|
|
35
|
+
* @part thumb - Alça de controle do slider.
|
|
36
|
+
* @part thumb-start - Alça inicial do slider.
|
|
37
|
+
* @part thumb-end - Alça final do slider em modo composto.
|
|
38
|
+
* @part references - Contêiner das referências inicial e final.
|
|
39
|
+
* @part reference-start - Referência inicial.
|
|
40
|
+
* @part reference-end - Referência final.
|
|
41
|
+
* @part reference-bound - Valor fixo de limite renderizado por `show-bounds`.
|
|
42
|
+
* @part input-wrapper - Contêiner do campo numérico.
|
|
43
|
+
* @part input - Campo numérico sincronizado com o slider.
|
|
44
|
+
* @part feedback - Contêiner da mensagem de validação.
|
|
45
|
+
*/
|
|
46
|
+
export class Slider {
|
|
47
|
+
constructor() {
|
|
48
|
+
/**
|
|
49
|
+
* Indica se alguma alça está sendo arrastada.
|
|
50
|
+
*/
|
|
51
|
+
this.dragging = false;
|
|
52
|
+
this.formDisabled = false;
|
|
53
|
+
/**
|
|
54
|
+
* Indica se o slot `ref-end` possui conteúdo.
|
|
55
|
+
*/
|
|
56
|
+
this.hasRefEnd = false;
|
|
57
|
+
/**
|
|
58
|
+
* Indica se o slot `ref-start` possui conteúdo.
|
|
59
|
+
*/
|
|
60
|
+
this.hasRefStart = false;
|
|
61
|
+
this.hasFeedbackSlot = false;
|
|
62
|
+
this.customValidationMessage = '';
|
|
63
|
+
this.validatorMessage = null;
|
|
64
|
+
this.isValidating = false;
|
|
65
|
+
/**
|
|
66
|
+
* Identificador único.
|
|
67
|
+
* Caso não seja fornecido, um ID gerado automaticamente será usado.
|
|
68
|
+
*/
|
|
69
|
+
this.customId = generateUniqueId();
|
|
70
|
+
/**
|
|
71
|
+
* Valor mínimo aceito pelo slider.
|
|
72
|
+
*/
|
|
73
|
+
this.min = 0;
|
|
74
|
+
/**
|
|
75
|
+
* Valor máximo aceito pelo slider.
|
|
76
|
+
*/
|
|
77
|
+
this.max = 100;
|
|
78
|
+
/**
|
|
79
|
+
* Incremento aplicado a cada passo.
|
|
80
|
+
*/
|
|
81
|
+
this.step = 1;
|
|
82
|
+
/**
|
|
83
|
+
* Valor atual do slider (alça inicial no modo composto).
|
|
84
|
+
*/
|
|
85
|
+
this.value = 0;
|
|
86
|
+
/**
|
|
87
|
+
* Valor da alça final no modo composto (`range`).
|
|
88
|
+
* Quando não fornecido em modo composto, assume o valor de `max`.
|
|
89
|
+
* @deprecated Use `rangeValue`.
|
|
90
|
+
*/
|
|
91
|
+
this.valueEnd = NaN;
|
|
92
|
+
/**
|
|
93
|
+
* Desativa o slider, tornando-o não interativo.
|
|
94
|
+
*/
|
|
95
|
+
this.disabled = false;
|
|
96
|
+
/**
|
|
97
|
+
* Densidade da alça de controle.
|
|
98
|
+
* `small` = 16px (desktop compacto), `medium` = 20px (desktop padrão), `large` = 24px (mobile).
|
|
99
|
+
*/
|
|
100
|
+
this.density = 'medium';
|
|
101
|
+
/**
|
|
102
|
+
* Exibe o slider na orientação vertical.
|
|
103
|
+
* @deprecated Use `orientation`.
|
|
104
|
+
*/
|
|
105
|
+
this.vertical = false;
|
|
106
|
+
/**
|
|
107
|
+
* Ativa o modo composto com duas alças para seleção de faixa.
|
|
108
|
+
*/
|
|
109
|
+
this.range = false;
|
|
110
|
+
/**
|
|
111
|
+
* Exibe etiqueta com o valor atual acima da alça (horizontal) ou à esquerda (vertical).
|
|
112
|
+
* Ignorado quando `show-input` está ativo.
|
|
113
|
+
*/
|
|
114
|
+
this.showLabel = false;
|
|
115
|
+
/**
|
|
116
|
+
* Exibe campo de entrada numérico sincronizado com a alça.
|
|
117
|
+
* Quando ativo, a etiqueta de valor não é exibida.
|
|
118
|
+
*/
|
|
119
|
+
this.showInput = false;
|
|
120
|
+
/**
|
|
121
|
+
* Exibe gradações na trilha como pequenos espaços que indicam os steps disponíveis,
|
|
122
|
+
* forçando a alça de controle a saltar entre os valores predefinidos e
|
|
123
|
+
* impossibilitando a seleção de valores aleatórios.
|
|
124
|
+
*/
|
|
125
|
+
this.showTicks = false;
|
|
126
|
+
/** Exibe os valores das marcações derivadas de `min`, `max` e `step`. */
|
|
127
|
+
this.showTickLabels = false;
|
|
128
|
+
/**
|
|
129
|
+
* Exibe os limites nas referências inicial e final: `min` no início e `max` no fim
|
|
130
|
+
* (limites fixos), tanto em modo simples quanto em modo composto (`range`). O valor
|
|
131
|
+
* selecionado por cada alça é exibido na etiqueta (`show-label`), não nas referências.
|
|
132
|
+
* Quando ativo, sobrescreve o conteúdo dos slots `ref-start` e `ref-end`.
|
|
133
|
+
*/
|
|
134
|
+
this.showBounds = false;
|
|
135
|
+
this.inputEditing = false;
|
|
136
|
+
this.draggingThumb = 'start';
|
|
137
|
+
this.tickValuesCacheKey = '';
|
|
138
|
+
this.tickValuesCache = [];
|
|
139
|
+
this.initialValue = 0;
|
|
140
|
+
this.initialValueEnd = Number.NaN;
|
|
141
|
+
this.validationRunId = 0;
|
|
142
|
+
this.dragRect = null;
|
|
143
|
+
this.pointerBatch = createRafBatcher((rawValue) => this.applyUpdate(rawValue));
|
|
144
|
+
this.handlePointerDown = (event) => {
|
|
145
|
+
if (this.isDisabled())
|
|
146
|
+
return;
|
|
147
|
+
event.preventDefault();
|
|
148
|
+
this.dragRect = this.trackEl?.getBoundingClientRect() ?? null;
|
|
149
|
+
const rawValue = this.effectiveVertical
|
|
150
|
+
? this.getValueFromY(event.clientY, this.dragRect)
|
|
151
|
+
: this.getValueFromX(event.clientX, this.dragRect);
|
|
152
|
+
if (this.range) {
|
|
153
|
+
if (isEventTargetInside(event, this.thumbEndEl)) {
|
|
154
|
+
this.draggingThumb = 'end';
|
|
155
|
+
}
|
|
156
|
+
else if (isEventTargetInside(event, this.thumbStartEl)) {
|
|
157
|
+
this.draggingThumb = 'start';
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
this.draggingThumb = this.nearerThumb(rawValue);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.draggingThumb = 'start';
|
|
165
|
+
}
|
|
166
|
+
this.dragging = true;
|
|
167
|
+
this.trackEl?.setPointerCapture(event.pointerId);
|
|
168
|
+
this.applyUpdate(rawValue);
|
|
169
|
+
const thumbEl = this.draggingThumb === 'end' ? this.thumbEndEl : this.thumbStartEl;
|
|
170
|
+
thumbEl?.focus();
|
|
171
|
+
};
|
|
172
|
+
this.handlePointerMove = (event) => {
|
|
173
|
+
if (!this.dragging || this.isDisabled())
|
|
174
|
+
return;
|
|
175
|
+
const rawValue = this.effectiveVertical
|
|
176
|
+
? this.getValueFromY(event.clientY, this.dragRect)
|
|
177
|
+
: this.getValueFromX(event.clientX, this.dragRect);
|
|
178
|
+
this.pointerBatch.schedule(rawValue);
|
|
179
|
+
};
|
|
180
|
+
this.handlePointerUp = (event) => {
|
|
181
|
+
if (!this.dragging)
|
|
182
|
+
return;
|
|
183
|
+
this.pointerBatch.flush();
|
|
184
|
+
this.dragging = false;
|
|
185
|
+
this.dragRect = null;
|
|
186
|
+
this.trackEl?.releasePointerCapture(event.pointerId);
|
|
187
|
+
dispatchNativeFormEvent(this.el, 'change');
|
|
188
|
+
void this.validate();
|
|
189
|
+
};
|
|
190
|
+
this.handleInputInput = (event) => {
|
|
191
|
+
this.inputEditing = true;
|
|
192
|
+
const parsed = parseFloat(event.target.value);
|
|
193
|
+
if (!Number.isNaN(parsed)) {
|
|
194
|
+
const next = this.clamp(parsed);
|
|
195
|
+
if (next !== this.value) {
|
|
196
|
+
this.value = next;
|
|
197
|
+
this.brDidChangeValue.emit(this.value);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
redispatchNativeFormEvent(this.el, event, 'input');
|
|
201
|
+
};
|
|
202
|
+
this.handleInputBlur = (event) => {
|
|
203
|
+
this.inputEditing = false;
|
|
204
|
+
const raw = event.target.value;
|
|
205
|
+
const parsed = parseFloat(raw);
|
|
206
|
+
const next = Number.isNaN(parsed) ? this.value : this.snapToStep(this.clamp(parsed));
|
|
207
|
+
if (next !== this.value) {
|
|
208
|
+
this.value = next;
|
|
209
|
+
this.brDidChangeValue.emit(this.value);
|
|
210
|
+
}
|
|
211
|
+
event.target.value = String(this.value);
|
|
212
|
+
dispatchNativeFormEvent(this.el, 'change');
|
|
213
|
+
void this.validate();
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
formDisabledCallback(disabled) {
|
|
217
|
+
this.formDisabled = disabled;
|
|
218
|
+
}
|
|
219
|
+
formResetCallback() {
|
|
220
|
+
this.customValidationMessage = '';
|
|
221
|
+
this.validatorMessage = null;
|
|
222
|
+
this.validationRunId++;
|
|
223
|
+
this.value = this.initialValue;
|
|
224
|
+
this.valueEnd = this.initialValueEnd;
|
|
225
|
+
this.updateValidity();
|
|
226
|
+
}
|
|
227
|
+
formStateRestoreCallback(state) {
|
|
228
|
+
const [start, end] = String(state ?? '')
|
|
229
|
+
.split(',')
|
|
230
|
+
.map(Number);
|
|
231
|
+
if (!Number.isNaN(start))
|
|
232
|
+
this.value = start;
|
|
233
|
+
if (this.range && !Number.isNaN(end))
|
|
234
|
+
this.valueEnd = end;
|
|
235
|
+
}
|
|
236
|
+
onValueChange(newValue) {
|
|
237
|
+
const numericMax = this.range && !Number.isNaN(this.valueEnd) ? this.valueEnd : this.max;
|
|
238
|
+
const clamped = this.clamp(newValue, numericMax);
|
|
239
|
+
if (clamped !== newValue) {
|
|
240
|
+
this.value = clamped;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
244
|
+
if (this.inputEl && !this.inputEditing) {
|
|
245
|
+
this.inputEl.value = String(clamped);
|
|
246
|
+
}
|
|
247
|
+
this.syncRangeValue();
|
|
248
|
+
this.updateValidity();
|
|
249
|
+
}
|
|
250
|
+
onValueEndChange(newValue) {
|
|
251
|
+
if (!this.range)
|
|
252
|
+
return;
|
|
253
|
+
const clamped = this.clamp(newValue, this.max, this.value);
|
|
254
|
+
if (clamped !== newValue) {
|
|
255
|
+
this.valueEnd = clamped;
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
259
|
+
this.syncRangeValue();
|
|
260
|
+
this.updateValidity();
|
|
261
|
+
}
|
|
262
|
+
onRangeValueChange(newValue) {
|
|
263
|
+
if (!this.range || !newValue)
|
|
264
|
+
return;
|
|
265
|
+
if (newValue.start !== this.value)
|
|
266
|
+
this.value = newValue.start;
|
|
267
|
+
if (newValue.end !== this.valueEnd)
|
|
268
|
+
this.valueEnd = newValue.end;
|
|
269
|
+
}
|
|
270
|
+
componentWillLoad() {
|
|
271
|
+
this.value = this.clamp(this.value);
|
|
272
|
+
if (this.range) {
|
|
273
|
+
const endVal = Number.isNaN(this.valueEnd) ? this.max : this.valueEnd;
|
|
274
|
+
this.valueEnd = Math.max(this.value, this.clamp(endVal));
|
|
275
|
+
}
|
|
276
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
277
|
+
this.initialValue = this.value;
|
|
278
|
+
this.initialValueEnd = this.valueEnd;
|
|
279
|
+
this.updateValidity();
|
|
280
|
+
}
|
|
281
|
+
componentDidLoad() {
|
|
282
|
+
this.hasFeedbackSlot = this.el.querySelector('[slot="feedback"]') !== null;
|
|
283
|
+
const root = this.el.shadowRoot;
|
|
284
|
+
if (root) {
|
|
285
|
+
root.querySelectorAll('slot[name]').forEach((slot) => {
|
|
286
|
+
const update = () => {
|
|
287
|
+
const filled = slot.assignedNodes({ flatten: true }).length > 0;
|
|
288
|
+
if (slot.name === 'ref-start')
|
|
289
|
+
this.hasRefStart = filled;
|
|
290
|
+
else if (slot.name === 'ref-end')
|
|
291
|
+
this.hasRefEnd = filled;
|
|
292
|
+
};
|
|
293
|
+
update();
|
|
294
|
+
slot.addEventListener('slotchange', update);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
if (this.inputEl) {
|
|
298
|
+
this.inputEl.value = String(this.value);
|
|
299
|
+
}
|
|
300
|
+
requestAnimationFrame(() => this.setupLabelAutoUpdate());
|
|
301
|
+
}
|
|
302
|
+
componentDidUpdate() {
|
|
303
|
+
void this.positionLabels();
|
|
304
|
+
}
|
|
305
|
+
disconnectedCallback() {
|
|
306
|
+
this.pointerBatch.cancel();
|
|
307
|
+
this.dragRect = null;
|
|
308
|
+
this.cleanupLabelStart?.();
|
|
309
|
+
this.cleanupLabelEnd?.();
|
|
310
|
+
}
|
|
311
|
+
/** Retorna se o slider atende às constraints configuradas. */
|
|
312
|
+
async checkValidity() {
|
|
313
|
+
return this.elementInternals?.checkValidity?.() ?? true;
|
|
314
|
+
}
|
|
315
|
+
/** Valida e solicita ao navegador a apresentação do erro atual. */
|
|
316
|
+
async reportValidity() {
|
|
317
|
+
return this.elementInternals?.reportValidity?.() ?? true;
|
|
318
|
+
}
|
|
319
|
+
/** Define ou limpa uma mensagem de validade customizada. */
|
|
320
|
+
async setCustomValidity(message) {
|
|
321
|
+
this.customValidationMessage = message;
|
|
322
|
+
this.updateValidity();
|
|
323
|
+
}
|
|
324
|
+
/** Executa o validator do slider e retorna se o valor atual é válido. */
|
|
325
|
+
async validate() {
|
|
326
|
+
const validator = resolveFormValidator(this.validator);
|
|
327
|
+
if (!validator || this.isDisabled())
|
|
328
|
+
return this.checkValidity();
|
|
329
|
+
const runId = ++this.validationRunId;
|
|
330
|
+
this.isValidating = true;
|
|
331
|
+
this.validatorMessage = null;
|
|
332
|
+
this.updateValidity();
|
|
333
|
+
this.brSliderValidationChange.emit({ validating: true, valid: null, message: null });
|
|
334
|
+
const value = this.range ? { start: this.value, end: this.valueEnd } : this.value;
|
|
335
|
+
const message = await runFormValidator(validator, value);
|
|
336
|
+
if (runId !== this.validationRunId)
|
|
337
|
+
return false;
|
|
338
|
+
this.validatorMessage = message;
|
|
339
|
+
this.isValidating = false;
|
|
340
|
+
this.updateValidity();
|
|
341
|
+
const valid = message === null && (await this.checkValidity());
|
|
342
|
+
this.brSliderValidationChange.emit({ validating: false, valid, message });
|
|
343
|
+
return valid;
|
|
344
|
+
}
|
|
345
|
+
/** Retorna um snapshot serializável da Constraint Validation API. */
|
|
346
|
+
async getValidationState() {
|
|
347
|
+
return getFormValidationState(this.elementInternals);
|
|
348
|
+
}
|
|
349
|
+
get effectiveVertical() {
|
|
350
|
+
return this.orientation === undefined ? this.vertical : this.orientation === 'vertical';
|
|
351
|
+
}
|
|
352
|
+
setupLabelAutoUpdate() {
|
|
353
|
+
const showValueLabel = this.showLabel && !this.showInput;
|
|
354
|
+
if (!showValueLabel)
|
|
355
|
+
return;
|
|
356
|
+
this.cleanupLabelStart?.();
|
|
357
|
+
if (this.thumbStartEl && this.valueLabelStartEl) {
|
|
358
|
+
const t = this.thumbStartEl;
|
|
359
|
+
const l = this.valueLabelStartEl;
|
|
360
|
+
const a = this.arrowStartEl;
|
|
361
|
+
this.cleanupLabelStart = autoUpdate(t, l, () => void this.positionSingleLabel(t, l, a));
|
|
362
|
+
}
|
|
363
|
+
this.cleanupLabelEnd?.();
|
|
364
|
+
if (this.range && this.thumbEndEl && this.valueLabelEndEl) {
|
|
365
|
+
const t = this.thumbEndEl;
|
|
366
|
+
const l = this.valueLabelEndEl;
|
|
367
|
+
const a = this.arrowEndEl;
|
|
368
|
+
this.cleanupLabelEnd = autoUpdate(t, l, () => void this.positionSingleLabel(t, l, a));
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
async positionLabels() {
|
|
372
|
+
const showValueLabel = this.showLabel && !this.showInput;
|
|
373
|
+
if (!showValueLabel)
|
|
374
|
+
return;
|
|
375
|
+
if (this.thumbStartEl && this.valueLabelStartEl) {
|
|
376
|
+
await this.positionSingleLabel(this.thumbStartEl, this.valueLabelStartEl, this.arrowStartEl);
|
|
377
|
+
}
|
|
378
|
+
if (this.range && this.thumbEndEl && this.valueLabelEndEl) {
|
|
379
|
+
await this.positionSingleLabel(this.thumbEndEl, this.valueLabelEndEl, this.arrowEndEl);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
async positionSingleLabel(thumb, label, arrowEl) {
|
|
383
|
+
const placement = this.effectiveVertical ? 'left' : 'top';
|
|
384
|
+
const thumbRect = thumb.getBoundingClientRect();
|
|
385
|
+
const gapOffset = (this.effectiveVertical ? thumbRect.width : thumbRect.height) / 2 + 4;
|
|
386
|
+
const { x, y, placement: finalPlacement, middlewareData, } = await computePosition(thumb, label, {
|
|
387
|
+
placement,
|
|
388
|
+
strategy: 'fixed',
|
|
389
|
+
middleware: [
|
|
390
|
+
offset(gapOffset),
|
|
391
|
+
flip(),
|
|
392
|
+
shift({ padding: 8 }),
|
|
393
|
+
hide(),
|
|
394
|
+
...(arrowEl ? [arrow({ element: arrowEl })] : []),
|
|
395
|
+
],
|
|
396
|
+
});
|
|
397
|
+
const referenceHidden = middlewareData.hide?.referenceHidden ?? false;
|
|
398
|
+
Object.assign(label.style, {
|
|
399
|
+
left: `${x}px`,
|
|
400
|
+
top: `${y}px`,
|
|
401
|
+
visibility: referenceHidden ? 'hidden' : 'visible',
|
|
402
|
+
});
|
|
403
|
+
label.setAttribute('data-placement', finalPlacement);
|
|
404
|
+
if (arrowEl && middlewareData.arrow) {
|
|
405
|
+
const { x: ax, y: ay } = middlewareData.arrow;
|
|
406
|
+
const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[finalPlacement.split('-')[0]];
|
|
407
|
+
Object.assign(arrowEl.style, {
|
|
408
|
+
left: ax != null ? `${ax}px` : '',
|
|
409
|
+
top: ay != null ? `${ay}px` : '',
|
|
410
|
+
right: '',
|
|
411
|
+
bottom: '',
|
|
412
|
+
[staticSide]: '-4px',
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
getFormValue() {
|
|
417
|
+
return this.range ? `${this.value},${this.valueEnd}` : String(this.value);
|
|
418
|
+
}
|
|
419
|
+
syncRangeValue() {
|
|
420
|
+
if (!this.range || Number.isNaN(this.valueEnd))
|
|
421
|
+
return;
|
|
422
|
+
if (this.rangeValue?.start === this.value && this.rangeValue.end === this.valueEnd)
|
|
423
|
+
return;
|
|
424
|
+
this.rangeValue = { start: this.value, end: this.valueEnd };
|
|
425
|
+
}
|
|
426
|
+
clamp(value, max = this.max, min = this.min) {
|
|
427
|
+
return clampNumber(value, min, max, min);
|
|
428
|
+
}
|
|
429
|
+
snapToStep(value) {
|
|
430
|
+
const stepped = Math.round((value - this.min) / this.step) * this.step + this.min;
|
|
431
|
+
return this.clamp(Number(stepped.toFixed(10)));
|
|
432
|
+
}
|
|
433
|
+
percent() {
|
|
434
|
+
return this.percentOf(this.value);
|
|
435
|
+
}
|
|
436
|
+
percentOf(val) {
|
|
437
|
+
if (this.max === this.min)
|
|
438
|
+
return 0;
|
|
439
|
+
return ((val - this.min) / (this.max - this.min)) * 100;
|
|
440
|
+
}
|
|
441
|
+
getFilledStyle() {
|
|
442
|
+
if (!this.range) {
|
|
443
|
+
const pct = this.percent();
|
|
444
|
+
return this.effectiveVertical ? { height: `${pct}%` } : { width: `${pct}%` };
|
|
445
|
+
}
|
|
446
|
+
const pctStart = this.percent();
|
|
447
|
+
const pctEnd = this.percentOf(this.valueEnd);
|
|
448
|
+
if (this.effectiveVertical) {
|
|
449
|
+
return { bottom: `${pctStart}%`, height: `${pctEnd - pctStart}%` };
|
|
450
|
+
}
|
|
451
|
+
return { left: `${pctStart}%`, width: `${pctEnd - pctStart}%` };
|
|
452
|
+
}
|
|
453
|
+
getTrackMaskStyle() {
|
|
454
|
+
if (!this.showTicks || !this.getTickValues().length)
|
|
455
|
+
return undefined;
|
|
456
|
+
const dir = this.effectiveVertical ? 'to top' : 'to right';
|
|
457
|
+
const half = 1.5;
|
|
458
|
+
const stops = ['black 0%'];
|
|
459
|
+
for (const val of this.getTickValues()) {
|
|
460
|
+
const pct = this.percentOf(val);
|
|
461
|
+
stops.push(`black calc(${pct}% - ${half}px)`);
|
|
462
|
+
stops.push(`transparent calc(${pct}% - ${half}px)`);
|
|
463
|
+
stops.push(`transparent calc(${pct}% + ${half}px)`);
|
|
464
|
+
stops.push(`black calc(${pct}% + ${half}px)`);
|
|
465
|
+
}
|
|
466
|
+
stops.push('black 100%');
|
|
467
|
+
const gradient = `linear-gradient(${dir}, ${stops.join(', ')})`;
|
|
468
|
+
return { 'mask-image': gradient, '-webkit-mask-image': gradient };
|
|
469
|
+
}
|
|
470
|
+
getTickValues() {
|
|
471
|
+
const cacheKey = `${this.min}|${this.max}|${this.step}`;
|
|
472
|
+
if (cacheKey === this.tickValuesCacheKey)
|
|
473
|
+
return this.tickValuesCache;
|
|
474
|
+
this.tickValuesCacheKey = cacheKey;
|
|
475
|
+
if (this.max <= this.min || this.step <= 0 || !Number.isFinite(this.step)) {
|
|
476
|
+
this.tickValuesCache = [];
|
|
477
|
+
return this.tickValuesCache;
|
|
478
|
+
}
|
|
479
|
+
const count = Math.floor((this.max - this.min) / this.step);
|
|
480
|
+
const hasUnalignedMax = Number((this.max - this.min) / this.step) % 1 !== 0;
|
|
481
|
+
const valueCount = count + 1 + (hasUnalignedMax ? 1 : 0);
|
|
482
|
+
const getValueAt = (index) => index <= count ? Number((this.min + index * this.step).toFixed(10)) : this.max;
|
|
483
|
+
if (valueCount > Slider.MAX_VISUAL_TICKS) {
|
|
484
|
+
// ponytail: limita somente o DOM visual; os valores selecionáveis permanecem ilimitados.
|
|
485
|
+
const sampled = new Set([getValueAt(0), getValueAt(valueCount - 1)]);
|
|
486
|
+
for (let index = 1; index < Slider.MAX_VISUAL_TICKS - 1; index++) {
|
|
487
|
+
sampled.add(getValueAt(Math.round((index * (valueCount - 1)) / (Slider.MAX_VISUAL_TICKS - 1))));
|
|
488
|
+
}
|
|
489
|
+
this.tickValuesCache = [...sampled].sort((a, b) => a - b);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
this.tickValuesCache = Array.from({ length: valueCount }, (_, index) => getValueAt(index));
|
|
493
|
+
}
|
|
494
|
+
return this.tickValuesCache;
|
|
495
|
+
}
|
|
496
|
+
getValueFromX(clientX, rect = this.trackEl?.getBoundingClientRect()) {
|
|
497
|
+
if (!this.trackEl)
|
|
498
|
+
return this.min;
|
|
499
|
+
if (!rect)
|
|
500
|
+
return this.min;
|
|
501
|
+
if (rect.width === 0)
|
|
502
|
+
return this.min;
|
|
503
|
+
const ratio = clampNumber((clientX - rect.left) / rect.width, 0, 1, 0);
|
|
504
|
+
return this.min + ratio * (this.max - this.min);
|
|
505
|
+
}
|
|
506
|
+
getValueFromY(clientY, rect = this.trackEl?.getBoundingClientRect()) {
|
|
507
|
+
if (!this.trackEl)
|
|
508
|
+
return this.min;
|
|
509
|
+
if (!rect)
|
|
510
|
+
return this.min;
|
|
511
|
+
if (rect.height === 0)
|
|
512
|
+
return this.min;
|
|
513
|
+
const ratio = clampNumber((rect.bottom - clientY) / rect.height, 0, 1, 0);
|
|
514
|
+
return this.min + ratio * (this.max - this.min);
|
|
515
|
+
}
|
|
516
|
+
nearerThumb(rawValue) {
|
|
517
|
+
const distToStart = Math.abs(rawValue - this.value);
|
|
518
|
+
const distToEnd = Math.abs(rawValue - this.valueEnd);
|
|
519
|
+
return distToStart <= distToEnd ? 'start' : 'end';
|
|
520
|
+
}
|
|
521
|
+
applyUpdate(rawValue) {
|
|
522
|
+
if (this.draggingThumb === 'end') {
|
|
523
|
+
const next = Math.max(this.value, this.snapToStep(rawValue));
|
|
524
|
+
if (next !== this.valueEnd) {
|
|
525
|
+
this.valueEnd = next;
|
|
526
|
+
this.brDidChangeValueEnd.emit(this.valueEnd);
|
|
527
|
+
dispatchNativeFormEvent(this.el, 'input');
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
const raw = this.snapToStep(rawValue);
|
|
532
|
+
const next = this.range ? Math.min(this.valueEnd, raw) : raw;
|
|
533
|
+
if (next !== this.value) {
|
|
534
|
+
this.value = next;
|
|
535
|
+
this.brDidChangeValue.emit(this.value);
|
|
536
|
+
dispatchNativeFormEvent(this.el, 'input');
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
calculateNextSliderValue(key, current, min, max) {
|
|
541
|
+
switch (key) {
|
|
542
|
+
case 'ArrowRight':
|
|
543
|
+
case 'ArrowUp':
|
|
544
|
+
return Math.min(max, current + this.step);
|
|
545
|
+
case 'ArrowLeft':
|
|
546
|
+
case 'ArrowDown':
|
|
547
|
+
return Math.max(min, current - this.step);
|
|
548
|
+
case 'Home':
|
|
549
|
+
return min;
|
|
550
|
+
case 'End':
|
|
551
|
+
return max;
|
|
552
|
+
case 'PageUp':
|
|
553
|
+
return Math.min(max, current + this.step * 10);
|
|
554
|
+
case 'PageDown':
|
|
555
|
+
return Math.max(min, current - this.step * 10);
|
|
556
|
+
default:
|
|
557
|
+
return null;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
handleKeyDown(event) {
|
|
561
|
+
if (this.isDisabled())
|
|
562
|
+
return;
|
|
563
|
+
const target = event.composedPath?.()[0] || getEventTarget(event);
|
|
564
|
+
if (target === this.inputEl)
|
|
565
|
+
return;
|
|
566
|
+
const isEnd = this.range && target === this.thumbEndEl;
|
|
567
|
+
const currentValue = isEnd ? this.valueEnd : this.value;
|
|
568
|
+
const keyMin = isEnd ? this.value : this.min;
|
|
569
|
+
const keyMax = isEnd ? this.max : this.range ? this.valueEnd : this.max;
|
|
570
|
+
const next = this.calculateNextSliderValue(event.key, currentValue, keyMin, keyMax);
|
|
571
|
+
if (next === null)
|
|
572
|
+
return;
|
|
573
|
+
event.preventDefault();
|
|
574
|
+
if (isEnd) {
|
|
575
|
+
if (next !== this.valueEnd) {
|
|
576
|
+
this.valueEnd = next;
|
|
577
|
+
this.brDidChangeValueEnd.emit(this.valueEnd);
|
|
578
|
+
dispatchNativeFormEvent(this.el, 'input');
|
|
579
|
+
dispatchNativeFormEvent(this.el, 'change');
|
|
580
|
+
void this.validate();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
else if (next !== this.value) {
|
|
584
|
+
this.value = next;
|
|
585
|
+
this.brDidChangeValue.emit(this.value);
|
|
586
|
+
dispatchNativeFormEvent(this.el, 'input');
|
|
587
|
+
dispatchNativeFormEvent(this.el, 'change');
|
|
588
|
+
void this.validate();
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
getCssClassMap() {
|
|
592
|
+
return {
|
|
593
|
+
'br-slider': true,
|
|
594
|
+
dragging: this.dragging,
|
|
595
|
+
disabled: this.isDisabled(),
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
shouldShowValueLabel() {
|
|
599
|
+
return this.showLabel && !this.showInput;
|
|
600
|
+
}
|
|
601
|
+
isDisabled() {
|
|
602
|
+
return isFormControlDisabled(this.disabled, this.formDisabled);
|
|
603
|
+
}
|
|
604
|
+
updateValidity() {
|
|
605
|
+
const stepMismatch = this.step > 0 &&
|
|
606
|
+
Math.abs((this.value - this.min) / this.step - Math.round((this.value - this.min) / this.step)) > 1e-9;
|
|
607
|
+
const invalidRange = this.range && this.value > this.valueEnd;
|
|
608
|
+
const flags = {
|
|
609
|
+
customError: this.customValidationMessage !== '' || Boolean(this.validatorMessage) || invalidRange,
|
|
610
|
+
rangeOverflow: this.value > this.max || (this.range && this.valueEnd > this.max),
|
|
611
|
+
rangeUnderflow: this.value < this.min || (this.range && this.valueEnd < this.min),
|
|
612
|
+
stepMismatch,
|
|
613
|
+
};
|
|
614
|
+
const message = this.customValidationMessage ||
|
|
615
|
+
this.validatorMessage ||
|
|
616
|
+
(invalidRange ? 'O início do intervalo deve anteceder o fim.' : '');
|
|
617
|
+
setFormValidity(this.elementInternals, flags, message, this.thumbStartEl);
|
|
618
|
+
}
|
|
619
|
+
getThumbStyle(value) {
|
|
620
|
+
const percent = this.percentOf(value);
|
|
621
|
+
return this.effectiveVertical ? { bottom: `${percent}%` } : { left: `${percent}%` };
|
|
622
|
+
}
|
|
623
|
+
setValueLabelElement(thumb, el) {
|
|
624
|
+
if (thumb === 'end') {
|
|
625
|
+
this.valueLabelEndEl = el;
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
628
|
+
this.valueLabelStartEl = el;
|
|
629
|
+
}
|
|
630
|
+
setValueLabelArrowElement(thumb, el) {
|
|
631
|
+
if (thumb === 'end') {
|
|
632
|
+
this.arrowEndEl = el;
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
this.arrowStartEl = el;
|
|
636
|
+
}
|
|
637
|
+
setThumbElement(thumb, el) {
|
|
638
|
+
if (thumb === 'end') {
|
|
639
|
+
this.thumbEndEl = el;
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
this.thumbStartEl = el;
|
|
643
|
+
}
|
|
644
|
+
renderValueLabel(thumb) {
|
|
645
|
+
const isEnd = thumb === 'end';
|
|
646
|
+
return (h("div", { class: "slider-value-label", part: "value-label", ref: (el) => this.setValueLabelElement(thumb, el), "aria-hidden": "true" }, isEnd ? this.valueEnd : this.value, h("span", { class: "slider-value-label-arrow", part: "value-label-arrow", ref: (el) => this.setValueLabelArrowElement(thumb, el) })));
|
|
647
|
+
}
|
|
648
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: mantém as variantes visuais do thumb em um único ponto.
|
|
649
|
+
renderThumb(thumb, style) {
|
|
650
|
+
const isEnd = thumb === 'end';
|
|
651
|
+
return (h("div", { class: {
|
|
652
|
+
'slider-thumb': true,
|
|
653
|
+
'slider-thumb--start': !isEnd,
|
|
654
|
+
'slider-thumb--end': isEnd,
|
|
655
|
+
'slider-thumb--active': this.dragging && this.draggingThumb === thumb,
|
|
656
|
+
}, part: `thumb thumb-${thumb}`, ref: (el) => this.setThumbElement(thumb, el), id: isEnd ? `${this.customId}-end` : this.customId, role: "slider", tabIndex: this.isDisabled() ? -1 : 0, "aria-valuemin": isEnd ? String(this.value) : String(this.min), "aria-valuemax": isEnd ? String(this.max) : this.range ? String(this.valueEnd) : String(this.max), "aria-valuenow": isEnd ? String(this.valueEnd) : String(this.value), "aria-disabled": this.isDisabled() ? 'true' : 'false', "aria-label": isEnd ? `${this.label ?? ''} fim`.trim() : this.range ? `${this.label ?? ''} início`.trim() : this.label, "aria-orientation": this.effectiveVertical ? 'vertical' : 'horizontal', "aria-busy": this.isValidating ? 'true' : null, "aria-describedby": this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage
|
|
657
|
+
? `${this.customId}-feedback`
|
|
658
|
+
: null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
659
|
+
? `${this.customId}-feedback`
|
|
660
|
+
: null, style: style }));
|
|
661
|
+
}
|
|
662
|
+
renderReferences() {
|
|
663
|
+
const hasRefs = this.hasRefStart || this.hasRefEnd || this.showBounds;
|
|
664
|
+
return (h("div", { class: { 'slider-refs': true, 'slider-refs--hidden': !hasRefs }, part: "references" }, h("span", { class: "ref-start", part: "reference-start" }, h("slot", { name: "ref-start" }), this.showBounds && (h("span", { class: "ref-bound", part: "reference-bound" }, this.min))), h("span", { class: "ref-end", part: "reference-end" }, this.showBounds && (h("span", { class: "ref-bound", part: "reference-bound" }, this.max)), h("slot", { name: "ref-end" }))));
|
|
665
|
+
}
|
|
666
|
+
renderInput() {
|
|
667
|
+
if (!this.showInput)
|
|
668
|
+
return undefined;
|
|
669
|
+
return (h("div", { class: "slider-input-wrapper", part: "input-wrapper" }, h("input", { type: "number", class: "slider-input", part: "input", ref: (el) => (this.inputEl = el), min: this.min, max: this.max, step: this.step, disabled: this.isDisabled(), "aria-label": this.label, "aria-describedby": this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage
|
|
670
|
+
? `${this.customId}-feedback`
|
|
671
|
+
: null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
672
|
+
? `${this.customId}-feedback`
|
|
673
|
+
: null, onInput: this.handleInputInput, onBlur: this.handleInputBlur })));
|
|
674
|
+
}
|
|
675
|
+
renderTrack() {
|
|
676
|
+
const trackMask = this.getTrackMaskStyle();
|
|
677
|
+
return (h("div", { class: "slider-track", part: "track", ref: (el) => (this.trackEl = el), onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }, h("div", { class: "slider-track-visual", part: "track-visual", style: trackMask }, h("div", { class: "slider-filled-track", part: "filled-track", style: this.getFilledStyle() })), this.showTicks && this.showTickLabels && this.renderTickLabels(), this.shouldShowValueLabel() && this.renderValueLabel('start'), this.shouldShowValueLabel() && this.range && this.renderValueLabel('end'), this.renderThumb('start', this.getThumbStyle(this.value)), this.range && this.renderThumb('end', this.getThumbStyle(this.valueEnd))));
|
|
678
|
+
}
|
|
679
|
+
renderTickLabels() {
|
|
680
|
+
const tickValues = this.getTickValues();
|
|
681
|
+
const intermediateTicks = tickValues.slice(1, -1);
|
|
682
|
+
return (h("div", { class: "slider-tick-labels", part: "tick-labels", "aria-hidden": "true" }, intermediateTicks.map((value) => (h("span", { class: "slider-tick-label", part: "tick-label", style: this.effectiveVertical ? { bottom: `${this.percentOf(value)}%` } : { left: `${this.percentOf(value)}%` } }, value)))));
|
|
683
|
+
}
|
|
684
|
+
render() {
|
|
685
|
+
return (h(Host, { key: '26be711ad91a867e82e35d10e86508aa5af68557' }, h("div", { key: '906052510af8d3a323ea8274b339ba264b745e25', class: this.getCssClassMap(), part: "base" }, h("div", { key: '323ee79d4a4fc4d81e4a1b43c8fa6298d0f92916', class: "slider-layout", part: "layout" }, h("div", { key: '113e5114161144af0466997b47108eb0e053af8e', class: "slider-body", part: "body" }, this.renderTrack(), this.renderReferences()), this.renderInput())), h("div", { key: 'b8ce4c3cae026492ad1db1e03f5709988b42a13e', id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !this.customValidationMessage && !this.validatorMessage }, h("slot", { key: 'e2564e6830476cb3d495807f4b15d600f5c7146e', name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && (this.customValidationMessage || this.validatorMessage) ? (h("br-message", { state: "danger", message: this.customValidationMessage || this.validatorMessage })) : null)));
|
|
686
|
+
}
|
|
687
|
+
static get is() { return "br-slider"; }
|
|
688
|
+
static get encapsulation() { return "shadow"; }
|
|
689
|
+
static get formAssociated() { return true; }
|
|
690
|
+
static get originalStyleUrls() {
|
|
691
|
+
return {
|
|
692
|
+
"$": ["slider.scss"]
|
|
693
|
+
};
|
|
694
|
+
}
|
|
695
|
+
static get styleUrls() {
|
|
696
|
+
return {
|
|
697
|
+
"$": ["slider.css"]
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
static get properties() {
|
|
701
|
+
return {
|
|
702
|
+
"customId": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"mutable": false,
|
|
705
|
+
"complexType": {
|
|
706
|
+
"original": "string",
|
|
707
|
+
"resolved": "string",
|
|
708
|
+
"references": {}
|
|
709
|
+
},
|
|
710
|
+
"required": false,
|
|
711
|
+
"optional": false,
|
|
712
|
+
"docs": {
|
|
713
|
+
"tags": [],
|
|
714
|
+
"text": "Identificador \u00FAnico.\nCaso n\u00E3o seja fornecido, um ID gerado automaticamente ser\u00E1 usado."
|
|
715
|
+
},
|
|
716
|
+
"getter": false,
|
|
717
|
+
"setter": false,
|
|
718
|
+
"reflect": true,
|
|
719
|
+
"attribute": "custom-id",
|
|
720
|
+
"defaultValue": "generateUniqueId()"
|
|
721
|
+
},
|
|
722
|
+
"name": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"mutable": false,
|
|
725
|
+
"complexType": {
|
|
726
|
+
"original": "string",
|
|
727
|
+
"resolved": "string",
|
|
728
|
+
"references": {}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [],
|
|
734
|
+
"text": "Nome do campo, utilizado em formul\u00E1rios nativos (`<form>`)."
|
|
735
|
+
},
|
|
736
|
+
"getter": false,
|
|
737
|
+
"setter": false,
|
|
738
|
+
"reflect": true,
|
|
739
|
+
"attribute": "name"
|
|
740
|
+
},
|
|
741
|
+
"label": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"mutable": false,
|
|
744
|
+
"complexType": {
|
|
745
|
+
"original": "string",
|
|
746
|
+
"resolved": "string",
|
|
747
|
+
"references": {}
|
|
748
|
+
},
|
|
749
|
+
"required": false,
|
|
750
|
+
"optional": false,
|
|
751
|
+
"docs": {
|
|
752
|
+
"tags": [],
|
|
753
|
+
"text": "Texto descritivo associado ao slider para acessibilidade."
|
|
754
|
+
},
|
|
755
|
+
"getter": false,
|
|
756
|
+
"setter": false,
|
|
757
|
+
"reflect": false,
|
|
758
|
+
"attribute": "label"
|
|
759
|
+
},
|
|
760
|
+
"min": {
|
|
761
|
+
"type": "number",
|
|
762
|
+
"mutable": false,
|
|
763
|
+
"complexType": {
|
|
764
|
+
"original": "number",
|
|
765
|
+
"resolved": "number",
|
|
766
|
+
"references": {}
|
|
767
|
+
},
|
|
768
|
+
"required": false,
|
|
769
|
+
"optional": false,
|
|
770
|
+
"docs": {
|
|
771
|
+
"tags": [],
|
|
772
|
+
"text": "Valor m\u00EDnimo aceito pelo slider."
|
|
773
|
+
},
|
|
774
|
+
"getter": false,
|
|
775
|
+
"setter": false,
|
|
776
|
+
"reflect": true,
|
|
777
|
+
"attribute": "min",
|
|
778
|
+
"defaultValue": "0"
|
|
779
|
+
},
|
|
780
|
+
"max": {
|
|
781
|
+
"type": "number",
|
|
782
|
+
"mutable": false,
|
|
783
|
+
"complexType": {
|
|
784
|
+
"original": "number",
|
|
785
|
+
"resolved": "number",
|
|
786
|
+
"references": {}
|
|
787
|
+
},
|
|
788
|
+
"required": false,
|
|
789
|
+
"optional": false,
|
|
790
|
+
"docs": {
|
|
791
|
+
"tags": [],
|
|
792
|
+
"text": "Valor m\u00E1ximo aceito pelo slider."
|
|
793
|
+
},
|
|
794
|
+
"getter": false,
|
|
795
|
+
"setter": false,
|
|
796
|
+
"reflect": true,
|
|
797
|
+
"attribute": "max",
|
|
798
|
+
"defaultValue": "100"
|
|
799
|
+
},
|
|
800
|
+
"step": {
|
|
801
|
+
"type": "number",
|
|
802
|
+
"mutable": false,
|
|
803
|
+
"complexType": {
|
|
804
|
+
"original": "number",
|
|
805
|
+
"resolved": "number",
|
|
806
|
+
"references": {}
|
|
807
|
+
},
|
|
808
|
+
"required": false,
|
|
809
|
+
"optional": false,
|
|
810
|
+
"docs": {
|
|
811
|
+
"tags": [],
|
|
812
|
+
"text": "Incremento aplicado a cada passo."
|
|
813
|
+
},
|
|
814
|
+
"getter": false,
|
|
815
|
+
"setter": false,
|
|
816
|
+
"reflect": true,
|
|
817
|
+
"attribute": "step",
|
|
818
|
+
"defaultValue": "1"
|
|
819
|
+
},
|
|
820
|
+
"validator": {
|
|
821
|
+
"type": "unknown",
|
|
822
|
+
"mutable": false,
|
|
823
|
+
"complexType": {
|
|
824
|
+
"original": "SliderValidator",
|
|
825
|
+
"resolved": "(value: number | SliderRangeValue) => string | Promise<string>",
|
|
826
|
+
"references": {
|
|
827
|
+
"SliderValidator": {
|
|
828
|
+
"location": "import",
|
|
829
|
+
"path": "./slider.types",
|
|
830
|
+
"id": "src/components/slider/slider.types.ts::SliderValidator",
|
|
831
|
+
"referenceLocation": "SliderValidator"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"required": false,
|
|
836
|
+
"optional": true,
|
|
837
|
+
"docs": {
|
|
838
|
+
"tags": [],
|
|
839
|
+
"text": "Regra s\u00EDncrona ou ass\u00EDncrona aplicada ao n\u00FAmero ou intervalo selecionado."
|
|
840
|
+
},
|
|
841
|
+
"getter": false,
|
|
842
|
+
"setter": false
|
|
843
|
+
},
|
|
844
|
+
"value": {
|
|
845
|
+
"type": "number",
|
|
846
|
+
"mutable": true,
|
|
847
|
+
"complexType": {
|
|
848
|
+
"original": "number",
|
|
849
|
+
"resolved": "number",
|
|
850
|
+
"references": {}
|
|
851
|
+
},
|
|
852
|
+
"required": false,
|
|
853
|
+
"optional": false,
|
|
854
|
+
"docs": {
|
|
855
|
+
"tags": [],
|
|
856
|
+
"text": "Valor atual do slider (al\u00E7a inicial no modo composto)."
|
|
857
|
+
},
|
|
858
|
+
"getter": false,
|
|
859
|
+
"setter": false,
|
|
860
|
+
"reflect": true,
|
|
861
|
+
"attribute": "value",
|
|
862
|
+
"defaultValue": "0"
|
|
863
|
+
},
|
|
864
|
+
"valueEnd": {
|
|
865
|
+
"type": "number",
|
|
866
|
+
"mutable": true,
|
|
867
|
+
"complexType": {
|
|
868
|
+
"original": "number",
|
|
869
|
+
"resolved": "number",
|
|
870
|
+
"references": {}
|
|
871
|
+
},
|
|
872
|
+
"required": false,
|
|
873
|
+
"optional": false,
|
|
874
|
+
"docs": {
|
|
875
|
+
"tags": [{
|
|
876
|
+
"name": "deprecated",
|
|
877
|
+
"text": "Use `rangeValue`."
|
|
878
|
+
}],
|
|
879
|
+
"text": "Valor da al\u00E7a final no modo composto (`range`).\nQuando n\u00E3o fornecido em modo composto, assume o valor de `max`."
|
|
880
|
+
},
|
|
881
|
+
"getter": false,
|
|
882
|
+
"setter": false,
|
|
883
|
+
"reflect": true,
|
|
884
|
+
"attribute": "value-end",
|
|
885
|
+
"defaultValue": "NaN"
|
|
886
|
+
},
|
|
887
|
+
"rangeValue": {
|
|
888
|
+
"type": "unknown",
|
|
889
|
+
"mutable": true,
|
|
890
|
+
"complexType": {
|
|
891
|
+
"original": "SliderRangeValue",
|
|
892
|
+
"resolved": "{ start: number; end: number; }",
|
|
893
|
+
"references": {
|
|
894
|
+
"SliderRangeValue": {
|
|
895
|
+
"location": "import",
|
|
896
|
+
"path": "./slider.types",
|
|
897
|
+
"id": "src/components/slider/slider.types.ts::SliderRangeValue",
|
|
898
|
+
"referenceLocation": "SliderRangeValue"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"required": false,
|
|
903
|
+
"optional": true,
|
|
904
|
+
"docs": {
|
|
905
|
+
"tags": [],
|
|
906
|
+
"text": "Valor estruturado das duas al\u00E7as no modo `range`."
|
|
907
|
+
},
|
|
908
|
+
"getter": false,
|
|
909
|
+
"setter": false
|
|
910
|
+
},
|
|
911
|
+
"disabled": {
|
|
912
|
+
"type": "boolean",
|
|
913
|
+
"mutable": false,
|
|
914
|
+
"complexType": {
|
|
915
|
+
"original": "boolean",
|
|
916
|
+
"resolved": "boolean",
|
|
917
|
+
"references": {}
|
|
918
|
+
},
|
|
919
|
+
"required": false,
|
|
920
|
+
"optional": false,
|
|
921
|
+
"docs": {
|
|
922
|
+
"tags": [],
|
|
923
|
+
"text": "Desativa o slider, tornando-o n\u00E3o interativo."
|
|
924
|
+
},
|
|
925
|
+
"getter": false,
|
|
926
|
+
"setter": false,
|
|
927
|
+
"reflect": true,
|
|
928
|
+
"attribute": "disabled",
|
|
929
|
+
"defaultValue": "false"
|
|
930
|
+
},
|
|
931
|
+
"density": {
|
|
932
|
+
"type": "string",
|
|
933
|
+
"mutable": false,
|
|
934
|
+
"complexType": {
|
|
935
|
+
"original": "SliderDensity",
|
|
936
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
937
|
+
"references": {
|
|
938
|
+
"SliderDensity": {
|
|
939
|
+
"location": "import",
|
|
940
|
+
"path": "./slider.types",
|
|
941
|
+
"id": "src/components/slider/slider.types.ts::SliderDensity",
|
|
942
|
+
"referenceLocation": "SliderDensity"
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
"required": false,
|
|
947
|
+
"optional": false,
|
|
948
|
+
"docs": {
|
|
949
|
+
"tags": [],
|
|
950
|
+
"text": "Densidade da al\u00E7a de controle.\n`small` = 16px (desktop compacto), `medium` = 20px (desktop padr\u00E3o), `large` = 24px (mobile)."
|
|
951
|
+
},
|
|
952
|
+
"getter": false,
|
|
953
|
+
"setter": false,
|
|
954
|
+
"reflect": true,
|
|
955
|
+
"attribute": "density",
|
|
956
|
+
"defaultValue": "'medium'"
|
|
957
|
+
},
|
|
958
|
+
"vertical": {
|
|
959
|
+
"type": "boolean",
|
|
960
|
+
"mutable": false,
|
|
961
|
+
"complexType": {
|
|
962
|
+
"original": "boolean",
|
|
963
|
+
"resolved": "boolean",
|
|
964
|
+
"references": {}
|
|
965
|
+
},
|
|
966
|
+
"required": false,
|
|
967
|
+
"optional": false,
|
|
968
|
+
"docs": {
|
|
969
|
+
"tags": [{
|
|
970
|
+
"name": "deprecated",
|
|
971
|
+
"text": "Use `orientation`."
|
|
972
|
+
}],
|
|
973
|
+
"text": "Exibe o slider na orienta\u00E7\u00E3o vertical."
|
|
974
|
+
},
|
|
975
|
+
"getter": false,
|
|
976
|
+
"setter": false,
|
|
977
|
+
"reflect": true,
|
|
978
|
+
"attribute": "vertical",
|
|
979
|
+
"defaultValue": "false"
|
|
980
|
+
},
|
|
981
|
+
"orientation": {
|
|
982
|
+
"type": "string",
|
|
983
|
+
"mutable": false,
|
|
984
|
+
"complexType": {
|
|
985
|
+
"original": "'horizontal' | 'vertical'",
|
|
986
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
987
|
+
"references": {}
|
|
988
|
+
},
|
|
989
|
+
"required": false,
|
|
990
|
+
"optional": true,
|
|
991
|
+
"docs": {
|
|
992
|
+
"tags": [],
|
|
993
|
+
"text": "Orienta\u00E7\u00E3o can\u00F4nica. Quando informada, tem preced\u00EAncia sobre `vertical`."
|
|
994
|
+
},
|
|
995
|
+
"getter": false,
|
|
996
|
+
"setter": false,
|
|
997
|
+
"reflect": true,
|
|
998
|
+
"attribute": "orientation"
|
|
999
|
+
},
|
|
1000
|
+
"range": {
|
|
1001
|
+
"type": "boolean",
|
|
1002
|
+
"mutable": false,
|
|
1003
|
+
"complexType": {
|
|
1004
|
+
"original": "boolean",
|
|
1005
|
+
"resolved": "boolean",
|
|
1006
|
+
"references": {}
|
|
1007
|
+
},
|
|
1008
|
+
"required": false,
|
|
1009
|
+
"optional": false,
|
|
1010
|
+
"docs": {
|
|
1011
|
+
"tags": [],
|
|
1012
|
+
"text": "Ativa o modo composto com duas al\u00E7as para sele\u00E7\u00E3o de faixa."
|
|
1013
|
+
},
|
|
1014
|
+
"getter": false,
|
|
1015
|
+
"setter": false,
|
|
1016
|
+
"reflect": true,
|
|
1017
|
+
"attribute": "range",
|
|
1018
|
+
"defaultValue": "false"
|
|
1019
|
+
},
|
|
1020
|
+
"showLabel": {
|
|
1021
|
+
"type": "boolean",
|
|
1022
|
+
"mutable": false,
|
|
1023
|
+
"complexType": {
|
|
1024
|
+
"original": "boolean",
|
|
1025
|
+
"resolved": "boolean",
|
|
1026
|
+
"references": {}
|
|
1027
|
+
},
|
|
1028
|
+
"required": false,
|
|
1029
|
+
"optional": false,
|
|
1030
|
+
"docs": {
|
|
1031
|
+
"tags": [],
|
|
1032
|
+
"text": "Exibe etiqueta com o valor atual acima da al\u00E7a (horizontal) ou \u00E0 esquerda (vertical).\nIgnorado quando `show-input` est\u00E1 ativo."
|
|
1033
|
+
},
|
|
1034
|
+
"getter": false,
|
|
1035
|
+
"setter": false,
|
|
1036
|
+
"reflect": true,
|
|
1037
|
+
"attribute": "show-label",
|
|
1038
|
+
"defaultValue": "false"
|
|
1039
|
+
},
|
|
1040
|
+
"showInput": {
|
|
1041
|
+
"type": "boolean",
|
|
1042
|
+
"mutable": false,
|
|
1043
|
+
"complexType": {
|
|
1044
|
+
"original": "boolean",
|
|
1045
|
+
"resolved": "boolean",
|
|
1046
|
+
"references": {}
|
|
1047
|
+
},
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"optional": false,
|
|
1050
|
+
"docs": {
|
|
1051
|
+
"tags": [],
|
|
1052
|
+
"text": "Exibe campo de entrada num\u00E9rico sincronizado com a al\u00E7a.\nQuando ativo, a etiqueta de valor n\u00E3o \u00E9 exibida."
|
|
1053
|
+
},
|
|
1054
|
+
"getter": false,
|
|
1055
|
+
"setter": false,
|
|
1056
|
+
"reflect": true,
|
|
1057
|
+
"attribute": "show-input",
|
|
1058
|
+
"defaultValue": "false"
|
|
1059
|
+
},
|
|
1060
|
+
"showTicks": {
|
|
1061
|
+
"type": "boolean",
|
|
1062
|
+
"mutable": false,
|
|
1063
|
+
"complexType": {
|
|
1064
|
+
"original": "boolean",
|
|
1065
|
+
"resolved": "boolean",
|
|
1066
|
+
"references": {}
|
|
1067
|
+
},
|
|
1068
|
+
"required": false,
|
|
1069
|
+
"optional": false,
|
|
1070
|
+
"docs": {
|
|
1071
|
+
"tags": [],
|
|
1072
|
+
"text": "Exibe grada\u00E7\u00F5es na trilha como pequenos espa\u00E7os que indicam os steps dispon\u00EDveis,\nfor\u00E7ando a al\u00E7a de controle a saltar entre os valores predefinidos e\nimpossibilitando a sele\u00E7\u00E3o de valores aleat\u00F3rios."
|
|
1073
|
+
},
|
|
1074
|
+
"getter": false,
|
|
1075
|
+
"setter": false,
|
|
1076
|
+
"reflect": true,
|
|
1077
|
+
"attribute": "show-ticks",
|
|
1078
|
+
"defaultValue": "false"
|
|
1079
|
+
},
|
|
1080
|
+
"showTickLabels": {
|
|
1081
|
+
"type": "boolean",
|
|
1082
|
+
"mutable": false,
|
|
1083
|
+
"complexType": {
|
|
1084
|
+
"original": "boolean",
|
|
1085
|
+
"resolved": "boolean",
|
|
1086
|
+
"references": {}
|
|
1087
|
+
},
|
|
1088
|
+
"required": false,
|
|
1089
|
+
"optional": false,
|
|
1090
|
+
"docs": {
|
|
1091
|
+
"tags": [],
|
|
1092
|
+
"text": "Exibe os valores das marca\u00E7\u00F5es derivadas de `min`, `max` e `step`."
|
|
1093
|
+
},
|
|
1094
|
+
"getter": false,
|
|
1095
|
+
"setter": false,
|
|
1096
|
+
"reflect": true,
|
|
1097
|
+
"attribute": "show-tick-labels",
|
|
1098
|
+
"defaultValue": "false"
|
|
1099
|
+
},
|
|
1100
|
+
"showBounds": {
|
|
1101
|
+
"type": "boolean",
|
|
1102
|
+
"mutable": false,
|
|
1103
|
+
"complexType": {
|
|
1104
|
+
"original": "boolean",
|
|
1105
|
+
"resolved": "boolean",
|
|
1106
|
+
"references": {}
|
|
1107
|
+
},
|
|
1108
|
+
"required": false,
|
|
1109
|
+
"optional": false,
|
|
1110
|
+
"docs": {
|
|
1111
|
+
"tags": [],
|
|
1112
|
+
"text": "Exibe os limites nas refer\u00EAncias inicial e final: `min` no in\u00EDcio e `max` no fim\n(limites fixos), tanto em modo simples quanto em modo composto (`range`). O valor\nselecionado por cada al\u00E7a \u00E9 exibido na etiqueta (`show-label`), n\u00E3o nas refer\u00EAncias.\nQuando ativo, sobrescreve o conte\u00FAdo dos slots `ref-start` e `ref-end`."
|
|
1113
|
+
},
|
|
1114
|
+
"getter": false,
|
|
1115
|
+
"setter": false,
|
|
1116
|
+
"reflect": true,
|
|
1117
|
+
"attribute": "show-bounds",
|
|
1118
|
+
"defaultValue": "false"
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
static get states() {
|
|
1123
|
+
return {
|
|
1124
|
+
"dragging": {},
|
|
1125
|
+
"formDisabled": {},
|
|
1126
|
+
"hasRefEnd": {},
|
|
1127
|
+
"hasRefStart": {},
|
|
1128
|
+
"hasFeedbackSlot": {},
|
|
1129
|
+
"customValidationMessage": {},
|
|
1130
|
+
"validatorMessage": {},
|
|
1131
|
+
"isValidating": {}
|
|
1132
|
+
};
|
|
1133
|
+
}
|
|
1134
|
+
static get events() {
|
|
1135
|
+
return [{
|
|
1136
|
+
"method": "brDidChangeValue",
|
|
1137
|
+
"name": "brDidChangeValue",
|
|
1138
|
+
"bubbles": true,
|
|
1139
|
+
"cancelable": true,
|
|
1140
|
+
"composed": true,
|
|
1141
|
+
"docs": {
|
|
1142
|
+
"tags": [{
|
|
1143
|
+
"name": "deprecated",
|
|
1144
|
+
"text": "Use o evento nativo `input`."
|
|
1145
|
+
}],
|
|
1146
|
+
"text": "Disparado ap\u00F3s altera\u00E7\u00E3o do valor da al\u00E7a inicial."
|
|
1147
|
+
},
|
|
1148
|
+
"complexType": {
|
|
1149
|
+
"original": "number",
|
|
1150
|
+
"resolved": "number",
|
|
1151
|
+
"references": {}
|
|
1152
|
+
}
|
|
1153
|
+
}, {
|
|
1154
|
+
"method": "brDidChangeValueEnd",
|
|
1155
|
+
"name": "brDidChangeValueEnd",
|
|
1156
|
+
"bubbles": true,
|
|
1157
|
+
"cancelable": true,
|
|
1158
|
+
"composed": true,
|
|
1159
|
+
"docs": {
|
|
1160
|
+
"tags": [{
|
|
1161
|
+
"name": "deprecated",
|
|
1162
|
+
"text": "Use o evento nativo `input` e leia `event.target.rangeValue`."
|
|
1163
|
+
}],
|
|
1164
|
+
"text": "Disparado ap\u00F3s altera\u00E7\u00E3o do valor da al\u00E7a final (modo composto)."
|
|
1165
|
+
},
|
|
1166
|
+
"complexType": {
|
|
1167
|
+
"original": "number",
|
|
1168
|
+
"resolved": "number",
|
|
1169
|
+
"references": {}
|
|
1170
|
+
}
|
|
1171
|
+
}, {
|
|
1172
|
+
"method": "brSliderValidationChange",
|
|
1173
|
+
"name": "brSliderValidationChange",
|
|
1174
|
+
"bubbles": true,
|
|
1175
|
+
"cancelable": true,
|
|
1176
|
+
"composed": true,
|
|
1177
|
+
"docs": {
|
|
1178
|
+
"tags": [],
|
|
1179
|
+
"text": "Emitido ao iniciar e concluir a valida\u00E7\u00E3o customizada."
|
|
1180
|
+
},
|
|
1181
|
+
"complexType": {
|
|
1182
|
+
"original": "FormValidationChangeDetail",
|
|
1183
|
+
"resolved": "FormValidationChangeDetail",
|
|
1184
|
+
"references": {
|
|
1185
|
+
"FormValidationChangeDetail": {
|
|
1186
|
+
"location": "import",
|
|
1187
|
+
"path": "../../shared/utils/validator",
|
|
1188
|
+
"id": "src/shared/utils/validator.ts::FormValidationChangeDetail",
|
|
1189
|
+
"referenceLocation": "FormValidationChangeDetail"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}];
|
|
1194
|
+
}
|
|
1195
|
+
static get methods() {
|
|
1196
|
+
return {
|
|
1197
|
+
"checkValidity": {
|
|
1198
|
+
"complexType": {
|
|
1199
|
+
"signature": "() => Promise<boolean>",
|
|
1200
|
+
"parameters": [],
|
|
1201
|
+
"references": {
|
|
1202
|
+
"Promise": {
|
|
1203
|
+
"location": "global",
|
|
1204
|
+
"id": "global::Promise"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"return": "Promise<boolean>"
|
|
1208
|
+
},
|
|
1209
|
+
"docs": {
|
|
1210
|
+
"text": "Retorna se o slider atende \u00E0s constraints configuradas.",
|
|
1211
|
+
"tags": []
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"reportValidity": {
|
|
1215
|
+
"complexType": {
|
|
1216
|
+
"signature": "() => Promise<boolean>",
|
|
1217
|
+
"parameters": [],
|
|
1218
|
+
"references": {
|
|
1219
|
+
"Promise": {
|
|
1220
|
+
"location": "global",
|
|
1221
|
+
"id": "global::Promise"
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
"return": "Promise<boolean>"
|
|
1225
|
+
},
|
|
1226
|
+
"docs": {
|
|
1227
|
+
"text": "Valida e solicita ao navegador a apresenta\u00E7\u00E3o do erro atual.",
|
|
1228
|
+
"tags": []
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
"setCustomValidity": {
|
|
1232
|
+
"complexType": {
|
|
1233
|
+
"signature": "(message: string) => Promise<void>",
|
|
1234
|
+
"parameters": [{
|
|
1235
|
+
"name": "message",
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"docs": ""
|
|
1238
|
+
}],
|
|
1239
|
+
"references": {
|
|
1240
|
+
"Promise": {
|
|
1241
|
+
"location": "global",
|
|
1242
|
+
"id": "global::Promise"
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"return": "Promise<void>"
|
|
1246
|
+
},
|
|
1247
|
+
"docs": {
|
|
1248
|
+
"text": "Define ou limpa uma mensagem de validade customizada.",
|
|
1249
|
+
"tags": []
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
"validate": {
|
|
1253
|
+
"complexType": {
|
|
1254
|
+
"signature": "() => Promise<boolean>",
|
|
1255
|
+
"parameters": [],
|
|
1256
|
+
"references": {
|
|
1257
|
+
"Promise": {
|
|
1258
|
+
"location": "global",
|
|
1259
|
+
"id": "global::Promise"
|
|
1260
|
+
},
|
|
1261
|
+
"SliderRangeValue": {
|
|
1262
|
+
"location": "import",
|
|
1263
|
+
"path": "./slider.types",
|
|
1264
|
+
"id": "src/components/slider/slider.types.ts::SliderRangeValue",
|
|
1265
|
+
"referenceLocation": "SliderRangeValue"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"return": "Promise<boolean>"
|
|
1269
|
+
},
|
|
1270
|
+
"docs": {
|
|
1271
|
+
"text": "Executa o validator do slider e retorna se o valor atual \u00E9 v\u00E1lido.",
|
|
1272
|
+
"tags": []
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
"getValidationState": {
|
|
1276
|
+
"complexType": {
|
|
1277
|
+
"signature": "() => Promise<FormValidationState>",
|
|
1278
|
+
"parameters": [],
|
|
1279
|
+
"references": {
|
|
1280
|
+
"Promise": {
|
|
1281
|
+
"location": "global",
|
|
1282
|
+
"id": "global::Promise"
|
|
1283
|
+
},
|
|
1284
|
+
"FormValidationState": {
|
|
1285
|
+
"location": "import",
|
|
1286
|
+
"path": "../../shared/utils/form",
|
|
1287
|
+
"id": "src/shared/utils/form.ts::FormValidationState",
|
|
1288
|
+
"referenceLocation": "FormValidationState"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"return": "Promise<FormValidationState>"
|
|
1292
|
+
},
|
|
1293
|
+
"docs": {
|
|
1294
|
+
"text": "Retorna um snapshot serializ\u00E1vel da Constraint Validation API.",
|
|
1295
|
+
"tags": []
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
static get elementRef() { return "el"; }
|
|
1301
|
+
static get watchers() {
|
|
1302
|
+
return [{
|
|
1303
|
+
"propName": "value",
|
|
1304
|
+
"methodName": "onValueChange"
|
|
1305
|
+
}, {
|
|
1306
|
+
"propName": "valueEnd",
|
|
1307
|
+
"methodName": "onValueEndChange"
|
|
1308
|
+
}, {
|
|
1309
|
+
"propName": "rangeValue",
|
|
1310
|
+
"methodName": "onRangeValueChange"
|
|
1311
|
+
}];
|
|
1312
|
+
}
|
|
1313
|
+
static get listeners() {
|
|
1314
|
+
return [{
|
|
1315
|
+
"name": "keydown",
|
|
1316
|
+
"method": "handleKeyDown",
|
|
1317
|
+
"target": undefined,
|
|
1318
|
+
"capture": false,
|
|
1319
|
+
"passive": false
|
|
1320
|
+
}];
|
|
1321
|
+
}
|
|
1322
|
+
static get attachInternalsMemberName() { return "elementInternals"; }
|
|
1323
|
+
}
|
|
1324
|
+
Slider.MAX_VISUAL_TICKS = 200;
|