@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,687 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
var index = require('./index-CRdcutym.js');
|
|
8
|
+
var floatingUi_dom = require('./floating-ui.dom-BUSTaaxR.js');
|
|
9
|
+
var clamp = require('./clamp-Co_hWptd.js');
|
|
10
|
+
var event = require('./event-CmVdNHxl.js');
|
|
11
|
+
var validator = require('./validator-CTCajtT9.js');
|
|
12
|
+
var id = require('./id-CjRFMzf6.js');
|
|
13
|
+
var rafBatcher = require('./raf-batcher-yc87a4dS.js');
|
|
14
|
+
var slot = require('./slot-DAllytTj.js');
|
|
15
|
+
|
|
16
|
+
const sliderCss = () => `*,*::before,*::after{box-sizing:border-box}:host{line-height:var(--font-line-height-medium);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}a{background-color:rgba(0,0,0,0)}b,strong{font-weight:bolder}code{font-family:monospace;font-size:1em}small{font-size:80%}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:var(--font-line-height-medium);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.d-none{display:none !important}@media (min-width: 576px){.d-sm-block{display:block !important}.d-sm-flex{display:flex !important}}[data-toggle=dropdown]+*{position:absolute}.dropdown{position:relative}.dropdown [data-toggle=dropdown]+*{box-shadow:var(--surface-shadow-sm);left:0;position:absolute;top:100%}.dropdown>.br-notification{left:auto;right:0}.dropdown .br-item{--color:var(--color-light);--color-rgb:var(--color-light-rgb);--text-color:var(--color-light);--interactive:var(--interactive-light);--interactive-rgb:var(--color-rgb);--visited:var(--visited-light);--hover:var(--hover-light);--pressed:var(--pressed-light);--focus-color:var(--focus-color-light);--focus:var(--focus-color-light);--item-padding-y:var(--spacing-scale-2x);background-color:var(--background-light);color:var(--color)}.dropdown .br-item:not(:last-child){border-bottom:1px solid var(--border-color)}.dropdown .br-item.selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.align-items-center{align-items:center !important}.col,[class*=col-]{padding-left:calc(var(--grid-gutter)*.5);padding-right:calc(var(--grid-gutter)*.5);width:100%}.col{flex:1 0 0%;min-width:8.3333333333%}.col-auto{flex:0 0 auto;width:auto}.col-2{flex-basis:16.6666666667%;max-width:16.6666666667%}.container,.container-fluid,.container-lg{--grid-margin:var(--grid-portrait-margin);--grid-maxwidth:var(--grid-portrait-maxwidth);margin-left:auto;margin-right:auto;max-width:var(--grid-maxwidth);padding-left:var(--grid-margin);padding-right:var(--grid-margin);width:100%}.row{--grid-gutter:var(--grid-portrait-gutter);display:flex;flex-wrap:wrap;margin-left:calc(var(--grid-gutter)*-0.5);margin-right:calc(var(--grid-gutter)*-0.5)}@media (min-width: 576px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-sm) - var(--grid-tablet-margin))}}@media (min-width: 992px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tablet-margin)}.row{--grid-gutter:var(--grid-tablet-gutter)}.container{--grid-maxwidth:calc(var(--grid-breakpoint-md) - var(--grid-tablet-margin))}}@media (min-width: 1280px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-desktop-margin)}.row{--grid-gutter:var(--grid-desktop-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-lg) - var(--grid-desktop-margin))}}@media (min-width: 1600px){.container,.container-lg,.container-fluid{--grid-margin:var(--grid-tv-margin)}.row{--grid-gutter:var(--grid-tv-gutter)}.container,.container-lg{--grid-maxwidth:calc(var(--grid-breakpoint-xl) - var(--grid-tv-margin))}}.ease{animation-timing-function:cubic-bezier(0.25, 0.1, 0.25, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.mt-1{margin-top:var(--spacing-scale-half) !important}.mr-1{margin-right:var(--spacing-scale-half) !important}.mb-1{margin-bottom:var(--spacing-scale-half) !important}.ml-1{margin-left:var(--spacing-scale-half) !important}.mx-3{margin-left:var(--spacing-scale-2x) !important;margin-right:var(--spacing-scale-2x) !important}.mb-4{margin-bottom:var(--spacing-scale-3x) !important}.ml-auto{margin-left:auto !important}.pt-half{padding-top:var(--spacing-scale-half) !important}@media (min-width: 576px){.ml-sm-0{margin-left:var(--spacing-scale-default) !important}}.highlight{background:var(--status-highlight-background) linear-gradient(var(--status-highlight-overlay), var(--status-highlight-overlay));color:var(--status-highlight-text);padding:0 var(--spacing-scale-half)}[disabled],.disabled{cursor:not-allowed;opacity:var(--disabled)}[disabled] *,.disabled *{pointer-events:none}.text-center{text-align:center !important}.text-right{text-align:right !important}.text-nowrap{white-space:nowrap !important}.text-uppercase{text-transform:uppercase !important}.text-bold{font-weight:700 !important}.text-base{font-size:var(--font-size-scale-base) !important}.text-down-01{font-size:var(--font-size-scale-down-01) !important}@media (min-width: 576px){.text-sm-center{text-align:center !important}.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}}p{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-2x);margin-top:0}p a{text-decoration:underline}@media (min-width: 576px){p{font-size:var(--font-size-scale-up-01)}}a{--focus-offset:var(--spacing-scale-half)}a:focus{outline:none}a.focus-visible,a:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}a:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}a:not(:disabled):active{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)))}a{color:var(--interactive);text-decoration:none}.main-content a{text-decoration:underline}button{cursor:pointer}img{max-width:100%;vertical-align:middle}h2,.h2{color:var(--color);font-size:var(--font-size-scale-up-03);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2xh);margin-top:var(--spacing-scale-3xh);padding-bottom:var(--spacing-scale-2xh)}@media (min-width: 576px){.h2,h2{font-size:var(--font-size-scale-up-05);font-weight:var(--font-weight-regular)}}ul,ol{margin-bottom:var(--spacing-scale-2x);margin-top:0;padding:0 0 0 var(--spacing-scale-5x)}table{--table-background:var(--background);--table-color:var(--color);--table-border-color:var(--gray-20);--table-border-style:solid;--table-border-width:1px;--table-hover:var(--color-rgb);--table-padding:var(--spacing-scale-3x);--table-font-weight:var(--font-weight-medium);--table-th-background:var(--background-alternative);--table-th-font-weight:var(--font-weight-semi-bold);--table-row-size:var(--spacing-scale-2x);border-collapse:collapse;width:100%}tr.selected,tr.is-selected{--color:var(--color-dark);--color-rgb:var(--color-dark-rgb);--text-color:var(--color-dark);--interactive:var(--interactive-dark);--interactive-rgb:var(--interactive-dark-rgb);--visited:var(--visited-dark);--hover:var(--hover-dark);--pressed:var(--pressed-dark);--focus-color:var(--focus-color-dark);--focus:var(--focus-color-dark)}label,.label{color:var(--color);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half)}fieldset,.fieldset{border:var(--surface-width-none);margin-bottom:var(--spacing-scale-5x);margin-top:0;padding:0}legend,.legend{color:var(--color);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-semi-bold);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-2x);margin-top:var(--spacing-scale-2x)}::placeholder,.placeholder{color:var(--color-light);font-size:var(--font-size-scale-base);font-style:italic;font-weight:var(--font-weight-regular);line-height:var(--font-line-height-medium);margin-bottom:var(--spacing-scale-half);margin-top:var(--spacing-scale-half);opacity:1}input,textarea,.input{color:var(--color-light);font-size:var(--font-size-scale-up-01);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);margin-bottom:var(--spacing-scale-half)}.help{font-size:var(--font-size-scale-base)}code,.code{background:var(--gray-5);border-radius:4px;color:var(--gray-80);display:inline-block;font-family:monospace;font-size:var(--font-size-scale-base);font-weight:var(--font-weight-medium);line-height:var(--font-line-height-low);padding:var(--spacing-scale-half)}*[data-toggle=collapse]:not(:disabled):hover{background-image:linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)))}*[data-toggle=collapse]:focus{outline:none}*[data-toggle=collapse].focus-visible,*[data-toggle=collapse]:focus-visible{outline-color:var(--focus);outline-offset:var(--focus-offset);outline-style:var(--focus-style);outline-width:var(--focus-width)}:host{--slider-thumb-size:var(--spacing-scale-2xh, 20px);--slider-thumb-half:10px;display:block;width:100%}:host .br-slider{padding:var(--slider-thumb-half) 0;-webkit-user-select:none;user-select:none;touch-action:none}:host .br-slider.disabled .slider-track{cursor:not-allowed}:host .br-slider.disabled .slider-filled-track{background-color:var(--gray-30, #aaa)}:host .br-slider.disabled .slider-thumb{background-color:var(--pure-0, #fff);box-shadow:inset 0 0 0 1px var(--gray-40, #888);background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23636363' stroke-width='1.5'/%3E%3Cpath d='M6.34 17.66L17.66 6.34' stroke='%23636363' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-size:80%;background-position:center;background-repeat:no-repeat;cursor:not-allowed}:host .br-slider.disabled .slider-thumb:hover{box-shadow:none}:host .br-slider.disabled .slider-thumb:focus-visible{outline:none;box-shadow:none}:host .br-slider.disabled .slider-refs{opacity:var(--disabled, 0.45)}:host .br-slider.disabled .slider-input{cursor:not-allowed;pointer-events:none;opacity:var(--disabled, 0.45)}:host .slider-layout{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-scale-2x, 16px)}:host .slider-body{flex:1;display:flex;flex-direction:column;gap:var(--spacing-scale-half, 4px)}:host .slider-track{position:relative;width:100%;height:4px;border-radius:2px;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none}.br-slider.dragging :host .slider-track{cursor:grabbing}:host .slider-tick-labels{position:absolute;inset:0;pointer-events:none}:host .slider-tick-label{position:absolute;top:calc(100% + 4px);transform:translateX(-50%);white-space:nowrap;font-size:var(--font-size-scale-down-01, 12px)}:host .slider-track-visual{position:absolute;inset:0;background-color:var(--gray-20, #ccc);border-radius:2px;overflow:hidden}:host .slider-filled-track{position:absolute;top:0;left:0;height:100%;background-color:var(--blue-warm-vivid-50);border-radius:2px}:host .slider-thumb{position:absolute;top:50%;width:var(--slider-thumb-size);height:var(--slider-thumb-size);background-color:var(--blue-warm-vivid-50);border-radius:50%;cursor:pointer;transform:translate(-50%, -50%);outline:none;z-index:1;transition:box-shadow .15s ease}:host .slider-thumb:hover{box-shadow:0 0 0 8px rgba(19,81,180,.16)}:host .slider-thumb:active,:host .slider-thumb.slider-thumb--active{box-shadow:0 0 0 8px rgba(19,81,180,.45);cursor:grabbing}:host .slider-thumb:focus-visible{z-index:2;box-shadow:0 0 0 3px var(--focus-color, var(--gold-vivid-20, #ffbe2e));outline:none}:host .slider-value-label{position:fixed;z-index:var(--z-index-layer-1);top:0;left:0;background:var(--blue-warm-vivid-50);color:#fff;padding:2px 8px;border-radius:4px;font-size:var(--font-size-scale-down-01, 12px);font-weight:var(--font-weight-semi-bold, 600);white-space:nowrap;pointer-events:none;line-height:1.5}:host .slider-value-label-arrow{position:absolute;width:8px;height:8px;background:var(--blue-warm-vivid-50);transform:rotate(45deg);pointer-events:none;z-index:-1}:host .slider-refs{display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:var(--gray-80);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular)}:host .slider-refs--hidden{display:none}:host .slider-refs .ref-start,:host .slider-refs .ref-end{display:flex;align-items:center;gap:var(--spacing-scale-half, 4px)}:host .slider-refs .ref-bound{font-weight:var(--font-weight-semi-bold, 600)}:host .slider-refs ::slotted(*){color:var(--gray-80);font-size:var(--font-size-scale-base);font-weight:var(--font-weight-regular)}:host .slider-input-wrapper{flex-shrink:0}:host .slider-input{width:64px;padding:4px 8px;border:1px solid var(--gray-40, #888);border-radius:4px;font-size:var(--font-size-scale-base, 16px);text-align:center;color:var(--gray-80);background:rgba(0,0,0,0);outline:none;appearance:textfield}:host .slider-input:focus{border-color:var(--blue-warm-vivid-50);box-shadow:0 0 0 2px rgba(0,123,255,.2)}:host .slider-input::-webkit-inner-spin-button,:host .slider-input::-webkit-outer-spin-button{appearance:none;margin:0}:host([density=small]){--slider-thumb-size:var(--spacing-scale-2x, 16px);--slider-thumb-half:8px}:host([density=large]){--slider-thumb-size:var(--spacing-scale-3x, 24px);--slider-thumb-half:12px}:host([vertical]),:host([orientation=vertical]){width:auto;height:200px}:host([vertical]) .br-slider,:host([orientation=vertical]) .br-slider{padding:0 var(--slider-thumb-half);height:100%}:host([vertical]) .slider-layout,:host([orientation=vertical]) .slider-layout{flex-direction:column;align-items:flex-start;height:100%;gap:var(--spacing-scale-2x, 16px)}:host([vertical]) .slider-body,:host([orientation=vertical]) .slider-body{flex:1;flex-direction:row;min-height:0;gap:var(--spacing-scale-half, 4px)}:host([vertical]) .slider-track,:host([orientation=vertical]) .slider-track{width:4px;height:100%;flex-shrink:0}:host([vertical]) .slider-tick-label,:host([orientation=vertical]) .slider-tick-label{top:auto;left:calc(100% + 8px);transform:translateY(50%)}:host([vertical]) .slider-filled-track,:host([orientation=vertical]) .slider-filled-track{top:auto;bottom:0;left:0;width:100%;height:0}:host([vertical]) .slider-thumb,:host([orientation=vertical]) .slider-thumb{top:auto;left:50%;bottom:0;transform:translate(-50%, 50%)}:host([vertical]) .slider-refs,:host([orientation=vertical]) .slider-refs{flex-direction:column-reverse;justify-content:space-between;align-items:flex-start;height:100%}:host([vertical]) .slider-input-wrapper,:host([orientation=vertical]) .slider-input-wrapper{align-self:center}:host([vertical][show-input]),:host([orientation=vertical][show-input]){height:auto;min-height:200px}@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}`;
|
|
17
|
+
|
|
18
|
+
const Slider = class {
|
|
19
|
+
constructor(hostRef) {
|
|
20
|
+
index.registerInstance(this, hostRef);
|
|
21
|
+
this.brDidChangeValue = index.createEvent(this, "brDidChangeValue", 7);
|
|
22
|
+
this.brDidChangeValueEnd = index.createEvent(this, "brDidChangeValueEnd", 7);
|
|
23
|
+
this.brSliderValidationChange = index.createEvent(this, "brSliderValidationChange", 7);
|
|
24
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
25
|
+
this.elementInternals = hostRef.$hostElement$["s-ei"];
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.elementInternals = hostRef.$hostElement$.attachInternals();
|
|
29
|
+
hostRef.$hostElement$["s-ei"] = this.elementInternals;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Indica se alguma alça está sendo arrastada.
|
|
33
|
+
*/
|
|
34
|
+
this.dragging = false;
|
|
35
|
+
this.formDisabled = false;
|
|
36
|
+
/**
|
|
37
|
+
* Indica se o slot `ref-end` possui conteúdo.
|
|
38
|
+
*/
|
|
39
|
+
this.hasRefEnd = false;
|
|
40
|
+
/**
|
|
41
|
+
* Indica se o slot `ref-start` possui conteúdo.
|
|
42
|
+
*/
|
|
43
|
+
this.hasRefStart = false;
|
|
44
|
+
this.hasFeedbackSlot = false;
|
|
45
|
+
this.customValidationMessage = '';
|
|
46
|
+
this.validatorMessage = null;
|
|
47
|
+
this.isValidating = false;
|
|
48
|
+
/**
|
|
49
|
+
* Identificador único.
|
|
50
|
+
* Caso não seja fornecido, um ID gerado automaticamente será usado.
|
|
51
|
+
*/
|
|
52
|
+
this.customId = id.generateUniqueId();
|
|
53
|
+
/**
|
|
54
|
+
* Valor mínimo aceito pelo slider.
|
|
55
|
+
*/
|
|
56
|
+
this.min = 0;
|
|
57
|
+
/**
|
|
58
|
+
* Valor máximo aceito pelo slider.
|
|
59
|
+
*/
|
|
60
|
+
this.max = 100;
|
|
61
|
+
/**
|
|
62
|
+
* Incremento aplicado a cada passo.
|
|
63
|
+
*/
|
|
64
|
+
this.step = 1;
|
|
65
|
+
/**
|
|
66
|
+
* Valor atual do slider (alça inicial no modo composto).
|
|
67
|
+
*/
|
|
68
|
+
this.value = 0;
|
|
69
|
+
/**
|
|
70
|
+
* Valor da alça final no modo composto (`range`).
|
|
71
|
+
* Quando não fornecido em modo composto, assume o valor de `max`.
|
|
72
|
+
* @deprecated Use `rangeValue`.
|
|
73
|
+
*/
|
|
74
|
+
this.valueEnd = NaN;
|
|
75
|
+
/**
|
|
76
|
+
* Desativa o slider, tornando-o não interativo.
|
|
77
|
+
*/
|
|
78
|
+
this.disabled = false;
|
|
79
|
+
/**
|
|
80
|
+
* Densidade da alça de controle.
|
|
81
|
+
* `small` = 16px (desktop compacto), `medium` = 20px (desktop padrão), `large` = 24px (mobile).
|
|
82
|
+
*/
|
|
83
|
+
this.density = 'medium';
|
|
84
|
+
/**
|
|
85
|
+
* Exibe o slider na orientação vertical.
|
|
86
|
+
* @deprecated Use `orientation`.
|
|
87
|
+
*/
|
|
88
|
+
this.vertical = false;
|
|
89
|
+
/**
|
|
90
|
+
* Ativa o modo composto com duas alças para seleção de faixa.
|
|
91
|
+
*/
|
|
92
|
+
this.range = false;
|
|
93
|
+
/**
|
|
94
|
+
* Exibe etiqueta com o valor atual acima da alça (horizontal) ou à esquerda (vertical).
|
|
95
|
+
* Ignorado quando `show-input` está ativo.
|
|
96
|
+
*/
|
|
97
|
+
this.showLabel = false;
|
|
98
|
+
/**
|
|
99
|
+
* Exibe campo de entrada numérico sincronizado com a alça.
|
|
100
|
+
* Quando ativo, a etiqueta de valor não é exibida.
|
|
101
|
+
*/
|
|
102
|
+
this.showInput = false;
|
|
103
|
+
/**
|
|
104
|
+
* Exibe gradações na trilha como pequenos espaços que indicam os steps disponíveis,
|
|
105
|
+
* forçando a alça de controle a saltar entre os valores predefinidos e
|
|
106
|
+
* impossibilitando a seleção de valores aleatórios.
|
|
107
|
+
*/
|
|
108
|
+
this.showTicks = false;
|
|
109
|
+
/** Exibe os valores das marcações derivadas de `min`, `max` e `step`. */
|
|
110
|
+
this.showTickLabels = false;
|
|
111
|
+
/**
|
|
112
|
+
* Exibe os limites nas referências inicial e final: `min` no início e `max` no fim
|
|
113
|
+
* (limites fixos), tanto em modo simples quanto em modo composto (`range`). O valor
|
|
114
|
+
* selecionado por cada alça é exibido na etiqueta (`show-label`), não nas referências.
|
|
115
|
+
* Quando ativo, sobrescreve o conteúdo dos slots `ref-start` e `ref-end`.
|
|
116
|
+
*/
|
|
117
|
+
this.showBounds = false;
|
|
118
|
+
this.inputEditing = false;
|
|
119
|
+
this.draggingThumb = 'start';
|
|
120
|
+
this.tickValuesCacheKey = '';
|
|
121
|
+
this.tickValuesCache = [];
|
|
122
|
+
this.initialValue = 0;
|
|
123
|
+
this.initialValueEnd = Number.NaN;
|
|
124
|
+
this.validationRunId = 0;
|
|
125
|
+
this.dragRect = null;
|
|
126
|
+
this.pointerBatch = rafBatcher.createRafBatcher((rawValue) => this.applyUpdate(rawValue));
|
|
127
|
+
this.handlePointerDown = (event$1) => {
|
|
128
|
+
if (this.isDisabled())
|
|
129
|
+
return;
|
|
130
|
+
event$1.preventDefault();
|
|
131
|
+
this.dragRect = this.trackEl?.getBoundingClientRect() ?? null;
|
|
132
|
+
const rawValue = this.effectiveVertical
|
|
133
|
+
? this.getValueFromY(event$1.clientY, this.dragRect)
|
|
134
|
+
: this.getValueFromX(event$1.clientX, this.dragRect);
|
|
135
|
+
if (this.range) {
|
|
136
|
+
if (event.isEventTargetInside(event$1, this.thumbEndEl)) {
|
|
137
|
+
this.draggingThumb = 'end';
|
|
138
|
+
}
|
|
139
|
+
else if (event.isEventTargetInside(event$1, this.thumbStartEl)) {
|
|
140
|
+
this.draggingThumb = 'start';
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.draggingThumb = this.nearerThumb(rawValue);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
this.draggingThumb = 'start';
|
|
148
|
+
}
|
|
149
|
+
this.dragging = true;
|
|
150
|
+
this.trackEl?.setPointerCapture(event$1.pointerId);
|
|
151
|
+
this.applyUpdate(rawValue);
|
|
152
|
+
const thumbEl = this.draggingThumb === 'end' ? this.thumbEndEl : this.thumbStartEl;
|
|
153
|
+
thumbEl?.focus();
|
|
154
|
+
};
|
|
155
|
+
this.handlePointerMove = (event) => {
|
|
156
|
+
if (!this.dragging || this.isDisabled())
|
|
157
|
+
return;
|
|
158
|
+
const rawValue = this.effectiveVertical
|
|
159
|
+
? this.getValueFromY(event.clientY, this.dragRect)
|
|
160
|
+
: this.getValueFromX(event.clientX, this.dragRect);
|
|
161
|
+
this.pointerBatch.schedule(rawValue);
|
|
162
|
+
};
|
|
163
|
+
this.handlePointerUp = (event$1) => {
|
|
164
|
+
if (!this.dragging)
|
|
165
|
+
return;
|
|
166
|
+
this.pointerBatch.flush();
|
|
167
|
+
this.dragging = false;
|
|
168
|
+
this.dragRect = null;
|
|
169
|
+
this.trackEl?.releasePointerCapture(event$1.pointerId);
|
|
170
|
+
event.dispatchNativeFormEvent(this.el, 'change');
|
|
171
|
+
void this.validate();
|
|
172
|
+
};
|
|
173
|
+
this.handleInputInput = (event$1) => {
|
|
174
|
+
this.inputEditing = true;
|
|
175
|
+
const parsed = parseFloat(event$1.target.value);
|
|
176
|
+
if (!Number.isNaN(parsed)) {
|
|
177
|
+
const next = this.clamp(parsed);
|
|
178
|
+
if (next !== this.value) {
|
|
179
|
+
this.value = next;
|
|
180
|
+
this.brDidChangeValue.emit(this.value);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
event.redispatchNativeFormEvent(this.el, event$1, 'input');
|
|
184
|
+
};
|
|
185
|
+
this.handleInputBlur = (event$1) => {
|
|
186
|
+
this.inputEditing = false;
|
|
187
|
+
const raw = event$1.target.value;
|
|
188
|
+
const parsed = parseFloat(raw);
|
|
189
|
+
const next = Number.isNaN(parsed) ? this.value : this.snapToStep(this.clamp(parsed));
|
|
190
|
+
if (next !== this.value) {
|
|
191
|
+
this.value = next;
|
|
192
|
+
this.brDidChangeValue.emit(this.value);
|
|
193
|
+
}
|
|
194
|
+
event$1.target.value = String(this.value);
|
|
195
|
+
event.dispatchNativeFormEvent(this.el, 'change');
|
|
196
|
+
void this.validate();
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
formDisabledCallback(disabled) {
|
|
200
|
+
this.formDisabled = disabled;
|
|
201
|
+
}
|
|
202
|
+
formResetCallback() {
|
|
203
|
+
this.customValidationMessage = '';
|
|
204
|
+
this.validatorMessage = null;
|
|
205
|
+
this.validationRunId++;
|
|
206
|
+
this.value = this.initialValue;
|
|
207
|
+
this.valueEnd = this.initialValueEnd;
|
|
208
|
+
this.updateValidity();
|
|
209
|
+
}
|
|
210
|
+
formStateRestoreCallback(state) {
|
|
211
|
+
const [start, end] = String(state ?? '')
|
|
212
|
+
.split(',')
|
|
213
|
+
.map(Number);
|
|
214
|
+
if (!Number.isNaN(start))
|
|
215
|
+
this.value = start;
|
|
216
|
+
if (this.range && !Number.isNaN(end))
|
|
217
|
+
this.valueEnd = end;
|
|
218
|
+
}
|
|
219
|
+
onValueChange(newValue) {
|
|
220
|
+
const numericMax = this.range && !Number.isNaN(this.valueEnd) ? this.valueEnd : this.max;
|
|
221
|
+
const clamped = this.clamp(newValue, numericMax);
|
|
222
|
+
if (clamped !== newValue) {
|
|
223
|
+
this.value = clamped;
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
227
|
+
if (this.inputEl && !this.inputEditing) {
|
|
228
|
+
this.inputEl.value = String(clamped);
|
|
229
|
+
}
|
|
230
|
+
this.syncRangeValue();
|
|
231
|
+
this.updateValidity();
|
|
232
|
+
}
|
|
233
|
+
onValueEndChange(newValue) {
|
|
234
|
+
if (!this.range)
|
|
235
|
+
return;
|
|
236
|
+
const clamped = this.clamp(newValue, this.max, this.value);
|
|
237
|
+
if (clamped !== newValue) {
|
|
238
|
+
this.valueEnd = clamped;
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
242
|
+
this.syncRangeValue();
|
|
243
|
+
this.updateValidity();
|
|
244
|
+
}
|
|
245
|
+
onRangeValueChange(newValue) {
|
|
246
|
+
if (!this.range || !newValue)
|
|
247
|
+
return;
|
|
248
|
+
if (newValue.start !== this.value)
|
|
249
|
+
this.value = newValue.start;
|
|
250
|
+
if (newValue.end !== this.valueEnd)
|
|
251
|
+
this.valueEnd = newValue.end;
|
|
252
|
+
}
|
|
253
|
+
componentWillLoad() {
|
|
254
|
+
this.value = this.clamp(this.value);
|
|
255
|
+
if (this.range) {
|
|
256
|
+
const endVal = Number.isNaN(this.valueEnd) ? this.max : this.valueEnd;
|
|
257
|
+
this.valueEnd = Math.max(this.value, this.clamp(endVal));
|
|
258
|
+
}
|
|
259
|
+
this.elementInternals?.setFormValue(this.getFormValue());
|
|
260
|
+
this.initialValue = this.value;
|
|
261
|
+
this.initialValueEnd = this.valueEnd;
|
|
262
|
+
this.updateValidity();
|
|
263
|
+
}
|
|
264
|
+
componentDidLoad() {
|
|
265
|
+
this.hasFeedbackSlot = this.el.querySelector('[slot="feedback"]') !== null;
|
|
266
|
+
const root = this.el.shadowRoot;
|
|
267
|
+
if (root) {
|
|
268
|
+
root.querySelectorAll('slot[name]').forEach((slot) => {
|
|
269
|
+
const update = () => {
|
|
270
|
+
const filled = slot.assignedNodes({ flatten: true }).length > 0;
|
|
271
|
+
if (slot.name === 'ref-start')
|
|
272
|
+
this.hasRefStart = filled;
|
|
273
|
+
else if (slot.name === 'ref-end')
|
|
274
|
+
this.hasRefEnd = filled;
|
|
275
|
+
};
|
|
276
|
+
update();
|
|
277
|
+
slot.addEventListener('slotchange', update);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
if (this.inputEl) {
|
|
281
|
+
this.inputEl.value = String(this.value);
|
|
282
|
+
}
|
|
283
|
+
requestAnimationFrame(() => this.setupLabelAutoUpdate());
|
|
284
|
+
}
|
|
285
|
+
componentDidUpdate() {
|
|
286
|
+
void this.positionLabels();
|
|
287
|
+
}
|
|
288
|
+
disconnectedCallback() {
|
|
289
|
+
this.pointerBatch.cancel();
|
|
290
|
+
this.dragRect = null;
|
|
291
|
+
this.cleanupLabelStart?.();
|
|
292
|
+
this.cleanupLabelEnd?.();
|
|
293
|
+
}
|
|
294
|
+
/** Retorna se o slider atende às constraints configuradas. */
|
|
295
|
+
async checkValidity() {
|
|
296
|
+
return this.elementInternals?.checkValidity?.() ?? true;
|
|
297
|
+
}
|
|
298
|
+
/** Valida e solicita ao navegador a apresentação do erro atual. */
|
|
299
|
+
async reportValidity() {
|
|
300
|
+
return this.elementInternals?.reportValidity?.() ?? true;
|
|
301
|
+
}
|
|
302
|
+
/** Define ou limpa uma mensagem de validade customizada. */
|
|
303
|
+
async setCustomValidity(message) {
|
|
304
|
+
this.customValidationMessage = message;
|
|
305
|
+
this.updateValidity();
|
|
306
|
+
}
|
|
307
|
+
/** Executa o validator do slider e retorna se o valor atual é válido. */
|
|
308
|
+
async validate() {
|
|
309
|
+
const validator$1 = validator.resolveFormValidator(this.validator);
|
|
310
|
+
if (!validator$1 || this.isDisabled())
|
|
311
|
+
return this.checkValidity();
|
|
312
|
+
const runId = ++this.validationRunId;
|
|
313
|
+
this.isValidating = true;
|
|
314
|
+
this.validatorMessage = null;
|
|
315
|
+
this.updateValidity();
|
|
316
|
+
this.brSliderValidationChange.emit({ validating: true, valid: null, message: null });
|
|
317
|
+
const value = this.range ? { start: this.value, end: this.valueEnd } : this.value;
|
|
318
|
+
const message = await validator.runFormValidator(validator$1, value);
|
|
319
|
+
if (runId !== this.validationRunId)
|
|
320
|
+
return false;
|
|
321
|
+
this.validatorMessage = message;
|
|
322
|
+
this.isValidating = false;
|
|
323
|
+
this.updateValidity();
|
|
324
|
+
const valid = message === null && (await this.checkValidity());
|
|
325
|
+
this.brSliderValidationChange.emit({ validating: false, valid, message });
|
|
326
|
+
return valid;
|
|
327
|
+
}
|
|
328
|
+
/** Retorna um snapshot serializável da Constraint Validation API. */
|
|
329
|
+
async getValidationState() {
|
|
330
|
+
return validator.getFormValidationState(this.elementInternals);
|
|
331
|
+
}
|
|
332
|
+
get effectiveVertical() {
|
|
333
|
+
return this.orientation === undefined ? this.vertical : this.orientation === 'vertical';
|
|
334
|
+
}
|
|
335
|
+
setupLabelAutoUpdate() {
|
|
336
|
+
const showValueLabel = this.showLabel && !this.showInput;
|
|
337
|
+
if (!showValueLabel)
|
|
338
|
+
return;
|
|
339
|
+
this.cleanupLabelStart?.();
|
|
340
|
+
if (this.thumbStartEl && this.valueLabelStartEl) {
|
|
341
|
+
const t = this.thumbStartEl;
|
|
342
|
+
const l = this.valueLabelStartEl;
|
|
343
|
+
const a = this.arrowStartEl;
|
|
344
|
+
this.cleanupLabelStart = floatingUi_dom.autoUpdate(t, l, () => void this.positionSingleLabel(t, l, a));
|
|
345
|
+
}
|
|
346
|
+
this.cleanupLabelEnd?.();
|
|
347
|
+
if (this.range && this.thumbEndEl && this.valueLabelEndEl) {
|
|
348
|
+
const t = this.thumbEndEl;
|
|
349
|
+
const l = this.valueLabelEndEl;
|
|
350
|
+
const a = this.arrowEndEl;
|
|
351
|
+
this.cleanupLabelEnd = floatingUi_dom.autoUpdate(t, l, () => void this.positionSingleLabel(t, l, a));
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
async positionLabels() {
|
|
355
|
+
const showValueLabel = this.showLabel && !this.showInput;
|
|
356
|
+
if (!showValueLabel)
|
|
357
|
+
return;
|
|
358
|
+
if (this.thumbStartEl && this.valueLabelStartEl) {
|
|
359
|
+
await this.positionSingleLabel(this.thumbStartEl, this.valueLabelStartEl, this.arrowStartEl);
|
|
360
|
+
}
|
|
361
|
+
if (this.range && this.thumbEndEl && this.valueLabelEndEl) {
|
|
362
|
+
await this.positionSingleLabel(this.thumbEndEl, this.valueLabelEndEl, this.arrowEndEl);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
async positionSingleLabel(thumb, label, arrowEl) {
|
|
366
|
+
const placement = this.effectiveVertical ? 'left' : 'top';
|
|
367
|
+
const thumbRect = thumb.getBoundingClientRect();
|
|
368
|
+
const gapOffset = (this.effectiveVertical ? thumbRect.width : thumbRect.height) / 2 + 4;
|
|
369
|
+
const { x, y, placement: finalPlacement, middlewareData, } = await floatingUi_dom.computePosition(thumb, label, {
|
|
370
|
+
placement,
|
|
371
|
+
strategy: 'fixed',
|
|
372
|
+
middleware: [
|
|
373
|
+
floatingUi_dom.offset(gapOffset),
|
|
374
|
+
floatingUi_dom.flip(),
|
|
375
|
+
floatingUi_dom.shift({ padding: 8 }),
|
|
376
|
+
floatingUi_dom.hide(),
|
|
377
|
+
...(arrowEl ? [floatingUi_dom.arrow({ element: arrowEl })] : []),
|
|
378
|
+
],
|
|
379
|
+
});
|
|
380
|
+
const referenceHidden = middlewareData.hide?.referenceHidden ?? false;
|
|
381
|
+
Object.assign(label.style, {
|
|
382
|
+
left: `${x}px`,
|
|
383
|
+
top: `${y}px`,
|
|
384
|
+
visibility: referenceHidden ? 'hidden' : 'visible',
|
|
385
|
+
});
|
|
386
|
+
label.setAttribute('data-placement', finalPlacement);
|
|
387
|
+
if (arrowEl && middlewareData.arrow) {
|
|
388
|
+
const { x: ax, y: ay } = middlewareData.arrow;
|
|
389
|
+
const staticSide = { top: 'bottom', right: 'left', bottom: 'top', left: 'right' }[finalPlacement.split('-')[0]];
|
|
390
|
+
Object.assign(arrowEl.style, {
|
|
391
|
+
left: ax != null ? `${ax}px` : '',
|
|
392
|
+
top: ay != null ? `${ay}px` : '',
|
|
393
|
+
right: '',
|
|
394
|
+
bottom: '',
|
|
395
|
+
[staticSide]: '-4px',
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
getFormValue() {
|
|
400
|
+
return this.range ? `${this.value},${this.valueEnd}` : String(this.value);
|
|
401
|
+
}
|
|
402
|
+
syncRangeValue() {
|
|
403
|
+
if (!this.range || Number.isNaN(this.valueEnd))
|
|
404
|
+
return;
|
|
405
|
+
if (this.rangeValue?.start === this.value && this.rangeValue.end === this.valueEnd)
|
|
406
|
+
return;
|
|
407
|
+
this.rangeValue = { start: this.value, end: this.valueEnd };
|
|
408
|
+
}
|
|
409
|
+
clamp(value, max = this.max, min = this.min) {
|
|
410
|
+
return clamp.clampNumber(value, min, max, min);
|
|
411
|
+
}
|
|
412
|
+
snapToStep(value) {
|
|
413
|
+
const stepped = Math.round((value - this.min) / this.step) * this.step + this.min;
|
|
414
|
+
return this.clamp(Number(stepped.toFixed(10)));
|
|
415
|
+
}
|
|
416
|
+
percent() {
|
|
417
|
+
return this.percentOf(this.value);
|
|
418
|
+
}
|
|
419
|
+
percentOf(val) {
|
|
420
|
+
if (this.max === this.min)
|
|
421
|
+
return 0;
|
|
422
|
+
return ((val - this.min) / (this.max - this.min)) * 100;
|
|
423
|
+
}
|
|
424
|
+
getFilledStyle() {
|
|
425
|
+
if (!this.range) {
|
|
426
|
+
const pct = this.percent();
|
|
427
|
+
return this.effectiveVertical ? { height: `${pct}%` } : { width: `${pct}%` };
|
|
428
|
+
}
|
|
429
|
+
const pctStart = this.percent();
|
|
430
|
+
const pctEnd = this.percentOf(this.valueEnd);
|
|
431
|
+
if (this.effectiveVertical) {
|
|
432
|
+
return { bottom: `${pctStart}%`, height: `${pctEnd - pctStart}%` };
|
|
433
|
+
}
|
|
434
|
+
return { left: `${pctStart}%`, width: `${pctEnd - pctStart}%` };
|
|
435
|
+
}
|
|
436
|
+
getTrackMaskStyle() {
|
|
437
|
+
if (!this.showTicks || !this.getTickValues().length)
|
|
438
|
+
return undefined;
|
|
439
|
+
const dir = this.effectiveVertical ? 'to top' : 'to right';
|
|
440
|
+
const half = 1.5;
|
|
441
|
+
const stops = ['black 0%'];
|
|
442
|
+
for (const val of this.getTickValues()) {
|
|
443
|
+
const pct = this.percentOf(val);
|
|
444
|
+
stops.push(`black calc(${pct}% - ${half}px)`);
|
|
445
|
+
stops.push(`transparent calc(${pct}% - ${half}px)`);
|
|
446
|
+
stops.push(`transparent calc(${pct}% + ${half}px)`);
|
|
447
|
+
stops.push(`black calc(${pct}% + ${half}px)`);
|
|
448
|
+
}
|
|
449
|
+
stops.push('black 100%');
|
|
450
|
+
const gradient = `linear-gradient(${dir}, ${stops.join(', ')})`;
|
|
451
|
+
return { 'mask-image': gradient, '-webkit-mask-image': gradient };
|
|
452
|
+
}
|
|
453
|
+
getTickValues() {
|
|
454
|
+
const cacheKey = `${this.min}|${this.max}|${this.step}`;
|
|
455
|
+
if (cacheKey === this.tickValuesCacheKey)
|
|
456
|
+
return this.tickValuesCache;
|
|
457
|
+
this.tickValuesCacheKey = cacheKey;
|
|
458
|
+
if (this.max <= this.min || this.step <= 0 || !Number.isFinite(this.step)) {
|
|
459
|
+
this.tickValuesCache = [];
|
|
460
|
+
return this.tickValuesCache;
|
|
461
|
+
}
|
|
462
|
+
const count = Math.floor((this.max - this.min) / this.step);
|
|
463
|
+
const hasUnalignedMax = Number((this.max - this.min) / this.step) % 1 !== 0;
|
|
464
|
+
const valueCount = count + 1 + (hasUnalignedMax ? 1 : 0);
|
|
465
|
+
const getValueAt = (index) => index <= count ? Number((this.min + index * this.step).toFixed(10)) : this.max;
|
|
466
|
+
if (valueCount > Slider.MAX_VISUAL_TICKS) {
|
|
467
|
+
// ponytail: limita somente o DOM visual; os valores selecionáveis permanecem ilimitados.
|
|
468
|
+
const sampled = new Set([getValueAt(0), getValueAt(valueCount - 1)]);
|
|
469
|
+
for (let index = 1; index < Slider.MAX_VISUAL_TICKS - 1; index++) {
|
|
470
|
+
sampled.add(getValueAt(Math.round((index * (valueCount - 1)) / (Slider.MAX_VISUAL_TICKS - 1))));
|
|
471
|
+
}
|
|
472
|
+
this.tickValuesCache = [...sampled].sort((a, b) => a - b);
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
this.tickValuesCache = Array.from({ length: valueCount }, (_, index) => getValueAt(index));
|
|
476
|
+
}
|
|
477
|
+
return this.tickValuesCache;
|
|
478
|
+
}
|
|
479
|
+
getValueFromX(clientX, rect = this.trackEl?.getBoundingClientRect()) {
|
|
480
|
+
if (!this.trackEl)
|
|
481
|
+
return this.min;
|
|
482
|
+
if (!rect)
|
|
483
|
+
return this.min;
|
|
484
|
+
if (rect.width === 0)
|
|
485
|
+
return this.min;
|
|
486
|
+
const ratio = clamp.clampNumber((clientX - rect.left) / rect.width, 0, 1, 0);
|
|
487
|
+
return this.min + ratio * (this.max - this.min);
|
|
488
|
+
}
|
|
489
|
+
getValueFromY(clientY, rect = this.trackEl?.getBoundingClientRect()) {
|
|
490
|
+
if (!this.trackEl)
|
|
491
|
+
return this.min;
|
|
492
|
+
if (!rect)
|
|
493
|
+
return this.min;
|
|
494
|
+
if (rect.height === 0)
|
|
495
|
+
return this.min;
|
|
496
|
+
const ratio = clamp.clampNumber((rect.bottom - clientY) / rect.height, 0, 1, 0);
|
|
497
|
+
return this.min + ratio * (this.max - this.min);
|
|
498
|
+
}
|
|
499
|
+
nearerThumb(rawValue) {
|
|
500
|
+
const distToStart = Math.abs(rawValue - this.value);
|
|
501
|
+
const distToEnd = Math.abs(rawValue - this.valueEnd);
|
|
502
|
+
return distToStart <= distToEnd ? 'start' : 'end';
|
|
503
|
+
}
|
|
504
|
+
applyUpdate(rawValue) {
|
|
505
|
+
if (this.draggingThumb === 'end') {
|
|
506
|
+
const next = Math.max(this.value, this.snapToStep(rawValue));
|
|
507
|
+
if (next !== this.valueEnd) {
|
|
508
|
+
this.valueEnd = next;
|
|
509
|
+
this.brDidChangeValueEnd.emit(this.valueEnd);
|
|
510
|
+
event.dispatchNativeFormEvent(this.el, 'input');
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
const raw = this.snapToStep(rawValue);
|
|
515
|
+
const next = this.range ? Math.min(this.valueEnd, raw) : raw;
|
|
516
|
+
if (next !== this.value) {
|
|
517
|
+
this.value = next;
|
|
518
|
+
this.brDidChangeValue.emit(this.value);
|
|
519
|
+
event.dispatchNativeFormEvent(this.el, 'input');
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
calculateNextSliderValue(key, current, min, max) {
|
|
524
|
+
switch (key) {
|
|
525
|
+
case 'ArrowRight':
|
|
526
|
+
case 'ArrowUp':
|
|
527
|
+
return Math.min(max, current + this.step);
|
|
528
|
+
case 'ArrowLeft':
|
|
529
|
+
case 'ArrowDown':
|
|
530
|
+
return Math.max(min, current - this.step);
|
|
531
|
+
case 'Home':
|
|
532
|
+
return min;
|
|
533
|
+
case 'End':
|
|
534
|
+
return max;
|
|
535
|
+
case 'PageUp':
|
|
536
|
+
return Math.min(max, current + this.step * 10);
|
|
537
|
+
case 'PageDown':
|
|
538
|
+
return Math.max(min, current - this.step * 10);
|
|
539
|
+
default:
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
handleKeyDown(event$1) {
|
|
544
|
+
if (this.isDisabled())
|
|
545
|
+
return;
|
|
546
|
+
const target = event$1.composedPath?.()[0] || event.getEventTarget(event$1);
|
|
547
|
+
if (target === this.inputEl)
|
|
548
|
+
return;
|
|
549
|
+
const isEnd = this.range && target === this.thumbEndEl;
|
|
550
|
+
const currentValue = isEnd ? this.valueEnd : this.value;
|
|
551
|
+
const keyMin = isEnd ? this.value : this.min;
|
|
552
|
+
const keyMax = isEnd ? this.max : this.range ? this.valueEnd : this.max;
|
|
553
|
+
const next = this.calculateNextSliderValue(event$1.key, currentValue, keyMin, keyMax);
|
|
554
|
+
if (next === null)
|
|
555
|
+
return;
|
|
556
|
+
event$1.preventDefault();
|
|
557
|
+
if (isEnd) {
|
|
558
|
+
if (next !== this.valueEnd) {
|
|
559
|
+
this.valueEnd = next;
|
|
560
|
+
this.brDidChangeValueEnd.emit(this.valueEnd);
|
|
561
|
+
event.dispatchNativeFormEvent(this.el, 'input');
|
|
562
|
+
event.dispatchNativeFormEvent(this.el, 'change');
|
|
563
|
+
void this.validate();
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
else if (next !== this.value) {
|
|
567
|
+
this.value = next;
|
|
568
|
+
this.brDidChangeValue.emit(this.value);
|
|
569
|
+
event.dispatchNativeFormEvent(this.el, 'input');
|
|
570
|
+
event.dispatchNativeFormEvent(this.el, 'change');
|
|
571
|
+
void this.validate();
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
getCssClassMap() {
|
|
575
|
+
return {
|
|
576
|
+
'br-slider': true,
|
|
577
|
+
dragging: this.dragging,
|
|
578
|
+
disabled: this.isDisabled(),
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
shouldShowValueLabel() {
|
|
582
|
+
return this.showLabel && !this.showInput;
|
|
583
|
+
}
|
|
584
|
+
isDisabled() {
|
|
585
|
+
return validator.isFormControlDisabled(this.disabled, this.formDisabled);
|
|
586
|
+
}
|
|
587
|
+
updateValidity() {
|
|
588
|
+
const stepMismatch = this.step > 0 &&
|
|
589
|
+
Math.abs((this.value - this.min) / this.step - Math.round((this.value - this.min) / this.step)) > 1e-9;
|
|
590
|
+
const invalidRange = this.range && this.value > this.valueEnd;
|
|
591
|
+
const flags = {
|
|
592
|
+
customError: this.customValidationMessage !== '' || Boolean(this.validatorMessage) || invalidRange,
|
|
593
|
+
rangeOverflow: this.value > this.max || (this.range && this.valueEnd > this.max),
|
|
594
|
+
rangeUnderflow: this.value < this.min || (this.range && this.valueEnd < this.min),
|
|
595
|
+
stepMismatch,
|
|
596
|
+
};
|
|
597
|
+
const message = this.customValidationMessage ||
|
|
598
|
+
this.validatorMessage ||
|
|
599
|
+
(invalidRange ? 'O início do intervalo deve anteceder o fim.' : '');
|
|
600
|
+
validator.setFormValidity(this.elementInternals, flags, message, this.thumbStartEl);
|
|
601
|
+
}
|
|
602
|
+
getThumbStyle(value) {
|
|
603
|
+
const percent = this.percentOf(value);
|
|
604
|
+
return this.effectiveVertical ? { bottom: `${percent}%` } : { left: `${percent}%` };
|
|
605
|
+
}
|
|
606
|
+
setValueLabelElement(thumb, el) {
|
|
607
|
+
if (thumb === 'end') {
|
|
608
|
+
this.valueLabelEndEl = el;
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
this.valueLabelStartEl = el;
|
|
612
|
+
}
|
|
613
|
+
setValueLabelArrowElement(thumb, el) {
|
|
614
|
+
if (thumb === 'end') {
|
|
615
|
+
this.arrowEndEl = el;
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
this.arrowStartEl = el;
|
|
619
|
+
}
|
|
620
|
+
setThumbElement(thumb, el) {
|
|
621
|
+
if (thumb === 'end') {
|
|
622
|
+
this.thumbEndEl = el;
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
this.thumbStartEl = el;
|
|
626
|
+
}
|
|
627
|
+
renderValueLabel(thumb) {
|
|
628
|
+
const isEnd = thumb === 'end';
|
|
629
|
+
return (index.h("div", { class: "slider-value-label", part: "value-label", ref: (el) => this.setValueLabelElement(thumb, el), "aria-hidden": "true" }, isEnd ? this.valueEnd : this.value, index.h("span", { class: "slider-value-label-arrow", part: "value-label-arrow", ref: (el) => this.setValueLabelArrowElement(thumb, el) })));
|
|
630
|
+
}
|
|
631
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: mantém as variantes visuais do thumb em um único ponto.
|
|
632
|
+
renderThumb(thumb, style) {
|
|
633
|
+
const isEnd = thumb === 'end';
|
|
634
|
+
return (index.h("div", { class: {
|
|
635
|
+
'slider-thumb': true,
|
|
636
|
+
'slider-thumb--start': !isEnd,
|
|
637
|
+
'slider-thumb--end': isEnd,
|
|
638
|
+
'slider-thumb--active': this.dragging && this.draggingThumb === thumb,
|
|
639
|
+
}, 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
|
|
640
|
+
? `${this.customId}-feedback`
|
|
641
|
+
: null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
642
|
+
? `${this.customId}-feedback`
|
|
643
|
+
: null, style: style }));
|
|
644
|
+
}
|
|
645
|
+
renderReferences() {
|
|
646
|
+
const hasRefs = this.hasRefStart || this.hasRefEnd || this.showBounds;
|
|
647
|
+
return (index.h("div", { class: { 'slider-refs': true, 'slider-refs--hidden': !hasRefs }, part: "references" }, index.h("span", { class: "ref-start", part: "reference-start" }, index.h("slot", { name: "ref-start" }), this.showBounds && (index.h("span", { class: "ref-bound", part: "reference-bound" }, this.min))), index.h("span", { class: "ref-end", part: "reference-end" }, this.showBounds && (index.h("span", { class: "ref-bound", part: "reference-bound" }, this.max)), index.h("slot", { name: "ref-end" }))));
|
|
648
|
+
}
|
|
649
|
+
renderInput() {
|
|
650
|
+
if (!this.showInput)
|
|
651
|
+
return undefined;
|
|
652
|
+
return (index.h("div", { class: "slider-input-wrapper", part: "input-wrapper" }, index.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
|
|
653
|
+
? `${this.customId}-feedback`
|
|
654
|
+
: null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot
|
|
655
|
+
? `${this.customId}-feedback`
|
|
656
|
+
: null, onInput: this.handleInputInput, onBlur: this.handleInputBlur })));
|
|
657
|
+
}
|
|
658
|
+
renderTrack() {
|
|
659
|
+
const trackMask = this.getTrackMaskStyle();
|
|
660
|
+
return (index.h("div", { class: "slider-track", part: "track", ref: (el) => (this.trackEl = el), onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }, index.h("div", { class: "slider-track-visual", part: "track-visual", style: trackMask }, index.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))));
|
|
661
|
+
}
|
|
662
|
+
renderTickLabels() {
|
|
663
|
+
const tickValues = this.getTickValues();
|
|
664
|
+
const intermediateTicks = tickValues.slice(1, -1);
|
|
665
|
+
return (index.h("div", { class: "slider-tick-labels", part: "tick-labels", "aria-hidden": "true" }, intermediateTicks.map((value) => (index.h("span", { class: "slider-tick-label", part: "tick-label", style: this.effectiveVertical ? { bottom: `${this.percentOf(value)}%` } : { left: `${this.percentOf(value)}%` } }, value)))));
|
|
666
|
+
}
|
|
667
|
+
render() {
|
|
668
|
+
return (index.h(index.Host, { key: '26be711ad91a867e82e35d10e86508aa5af68557' }, index.h("div", { key: '906052510af8d3a323ea8274b339ba264b745e25', class: this.getCssClassMap(), part: "base" }, index.h("div", { key: '323ee79d4a4fc4d81e4a1b43c8fa6298d0f92916', class: "slider-layout", part: "layout" }, index.h("div", { key: '113e5114161144af0466997b47108eb0e053af8e', class: "slider-body", part: "body" }, this.renderTrack(), this.renderReferences()), this.renderInput())), index.h("div", { key: 'b8ce4c3cae026492ad1db1e03f5709988b42a13e', id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !this.customValidationMessage && !this.validatorMessage }, index.h("slot", { key: 'e2564e6830476cb3d495807f4b15d600f5c7146e', name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = slot.hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && (this.customValidationMessage || this.validatorMessage) ? (index.h("br-message", { state: "danger", message: this.customValidationMessage || this.validatorMessage })) : null)));
|
|
669
|
+
}
|
|
670
|
+
static get formAssociated() { return true; }
|
|
671
|
+
get el() { return index.getElement(this); }
|
|
672
|
+
static get watchers() { return {
|
|
673
|
+
"value": [{
|
|
674
|
+
"onValueChange": 0
|
|
675
|
+
}],
|
|
676
|
+
"valueEnd": [{
|
|
677
|
+
"onValueEndChange": 0
|
|
678
|
+
}],
|
|
679
|
+
"rangeValue": [{
|
|
680
|
+
"onRangeValueChange": 0
|
|
681
|
+
}]
|
|
682
|
+
}; }
|
|
683
|
+
};
|
|
684
|
+
Slider.MAX_VISUAL_TICKS = 200;
|
|
685
|
+
Slider.style = sliderCss();
|
|
686
|
+
|
|
687
|
+
exports.br_slider = Slider;
|