@govbr-ds/webcomponents 2.1.3 → 2.3.0
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 +146 -54
- package/cem/custom-elements.json +6496 -1141
- package/cem/webcomponents.html-custom-data.json +400 -287
- package/dist/cjs/br-avatar.cjs.entry.js +21 -14
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb.cjs.entry.js +49 -22
- package/dist/cjs/br-button_2.cjs.entry.js +77 -35
- package/dist/cjs/br-card.cjs.entry.js +6 -5
- package/dist/cjs/br-carousel-page.cjs.entry.js +3 -3
- package/dist/cjs/br-carousel.cjs.entry.js +77 -21
- package/dist/cjs/br-checkbox-group.cjs.entry.js +157 -27
- package/dist/cjs/br-checkbox.cjs.entry.js +86 -16
- package/dist/cjs/br-checkgroup.cjs.entry.js +5 -2
- package/dist/cjs/br-collapse_2.cjs.entry.js +90 -27
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +14 -6
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +3 -5
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar.cjs.entry.js +38 -25
- package/dist/cjs/br-crumb.cjs.entry.js +2 -2
- package/dist/cjs/br-date-picker_3.cjs.entry.js +246 -88
- package/dist/cjs/br-datetime-picker.cjs.entry.js +116 -528
- package/dist/cjs/br-divider.cjs.entry.js +70 -17
- package/dist/cjs/br-dropdown_2.cjs.entry.js +334 -163
- package/dist/cjs/br-footer-category.cjs.entry.js +10 -6
- package/dist/cjs/br-footer-item.cjs.entry.js +9 -4
- package/dist/cjs/br-footer-legal.cjs.entry.js +4 -4
- package/dist/cjs/br-footer-logo.cjs.entry.js +22 -10
- package/dist/cjs/br-footer-social.cjs.entry.js +14 -6
- package/dist/cjs/br-footer.cjs.entry.js +16 -7
- package/dist/cjs/br-header-function.cjs.entry.js +28 -7
- package/dist/cjs/br-header-link.cjs.entry.js +25 -4
- package/dist/cjs/br-header-list.cjs.entry.js +6 -17
- package/dist/cjs/br-header-logo.cjs.entry.js +18 -7
- package/dist/cjs/br-header.cjs.entry.js +96 -37
- package/dist/cjs/br-icon.cjs.entry.js +161 -53
- package/dist/cjs/br-input.cjs.entry.js +150 -40
- package/dist/cjs/br-item.cjs.entry.js +97 -48
- package/dist/cjs/br-link.cjs.entry.js +20 -7
- package/dist/cjs/br-loading.cjs.entry.js +100 -38
- package/dist/cjs/br-magic-button.cjs.entry.js +39 -9
- package/dist/cjs/br-menu-group.cjs.entry.js +14 -3
- package/dist/cjs/br-menu-header.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-info.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-item.cjs.entry.js +27 -5
- package/dist/cjs/br-menu-link.cjs.entry.js +14 -6
- package/dist/cjs/br-menu-list.cjs.entry.js +23 -27
- package/dist/cjs/br-menu-logo.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-social.cjs.entry.js +16 -6
- package/dist/cjs/br-menu.cjs.entry.js +38 -57
- package/dist/cjs/br-modal.cjs.entry.js +44 -42
- package/dist/cjs/br-notification-body.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-header.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-item.cjs.entry.js +14 -8
- package/dist/cjs/br-notification.cjs.entry.js +23 -8
- package/dist/cjs/br-pagination.cjs.entry.js +120 -88
- package/dist/cjs/br-radio-group.cjs.entry.js +107 -58
- package/dist/cjs/br-radio.cjs.entry.js +62 -12
- package/dist/cjs/br-scrim.cjs.entry.js +161 -67
- package/dist/cjs/br-select-input_3.cjs.entry.js +286 -91
- package/dist/cjs/br-sign-in.cjs.entry.js +38 -15
- package/dist/cjs/br-skip-link-item.cjs.entry.js +39 -2
- package/dist/cjs/br-skip-link.cjs.entry.js +50 -33
- package/dist/cjs/br-skiplink-item.cjs.entry.js +22 -6
- package/dist/cjs/br-slider.cjs.entry.js +522 -100
- package/dist/cjs/br-step_2.cjs.entry.js +98 -44
- package/dist/cjs/br-switch.cjs.entry.js +21 -12
- package/dist/cjs/br-tab-item.cjs.entry.js +38 -14
- package/dist/cjs/br-tab.cjs.entry.js +89 -51
- package/dist/cjs/br-table-body.cjs.entry.js +3 -3
- package/dist/cjs/br-table-cell.cjs.entry.js +30 -13
- package/dist/cjs/br-table-header-cell.cjs.entry.js +23 -7
- package/dist/cjs/br-table-header.cjs.entry.js +3 -3
- package/dist/cjs/br-table-row.cjs.entry.js +17 -3
- package/dist/cjs/br-table.cjs.entry.js +67 -21
- package/dist/cjs/br-tag.cjs.entry.js +49 -31
- package/dist/cjs/br-textarea.cjs.entry.js +118 -13
- package/dist/cjs/br-tooltip.cjs.entry.js +87 -41
- package/dist/cjs/br-upload.cjs.entry.js +84 -25
- package/dist/cjs/br-wizard-panel.cjs.entry.js +16 -3
- package/dist/cjs/br-wizard.cjs.entry.js +52 -28
- package/dist/cjs/{isValid-Fu3kaWNn.js → datetime-picker-props-validation-DmNKSXsy.js} +481 -4
- package/dist/cjs/{floating-ui-MBI1osio.js → floating-ui-B6nsdYUU.js} +24 -1
- package/dist/cjs/{floating-ui.dom-BUSTaaxR.js → floating-ui.dom-wzdGZjyG.js} +201 -113
- package/dist/cjs/{focus-DuywwJPR.js → focus-BhfJnFgJ.js} +21 -0
- package/dist/cjs/header-context-CdawuLsH.js +17 -0
- package/dist/cjs/icon.utils-DF6kMskA.js +46 -0
- package/dist/cjs/id-DE4jSi-L.js +36 -0
- package/dist/cjs/{index-CRdcutym.js → index-Bc30P_6z.js} +88 -766
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/motion-CgIooxWS.js +29 -0
- package/dist/cjs/ownership-UnpufyCx.js +116 -0
- package/dist/cjs/prop-warning-xvEHQz8H.js +60 -0
- package/dist/cjs/props-D8dybmr0.js +124 -0
- package/dist/cjs/{swipe-BU8_XE9f.js → swipe-BGF-h9WY.js} +11 -1
- package/dist/cjs/{validator-CTCajtT9.js → validator-GkkueMOx.js} +18 -0
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +48 -16
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +15 -3
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +107 -22
- package/dist/collection/components/breadcrumb/crumb/crumb.js +14 -2
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +93 -24
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +33 -5
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +11 -4
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +107 -21
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +134 -20
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.js +210 -30
- package/dist/collection/components/checkgroup/checkgroup.js +42 -4
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +55 -9
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +17 -4
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +16 -7
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +15 -9
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +24 -8
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +14 -4
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +13 -5
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +67 -32
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +134 -35
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +112 -22
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +13 -5
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +158 -42
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +78 -9
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/divider/divider.js +101 -26
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +195 -51
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.js +23 -4
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.js +21 -2
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.js +16 -2
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.js +35 -9
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +26 -6
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +48 -7
- package/dist/collection/components/header/header-context.js +13 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-function/header-function.js +51 -8
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-link/header-link.js +52 -2
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +20 -23
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +33 -8
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +134 -44
- package/dist/collection/components/icon/default-icons-cache.js +111 -3
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +80 -33
- package/dist/collection/components/icon/icon.utils.js +8 -0
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +189 -55
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +136 -52
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +48 -15
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +106 -25
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/loading/loading.js +131 -43
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +65 -9
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-group/menu-group.js +60 -2
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +17 -2
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.js +15 -2
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +72 -8
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +25 -4
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.js +64 -29
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.js +15 -2
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +29 -7
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +71 -60
- package/dist/collection/components/menu/menu.utils.js +8 -18
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/message/message.js +50 -24
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +72 -43
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.js +13 -4
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.js +13 -4
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.js +23 -9
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +54 -10
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +164 -75
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio/radio.js +109 -14
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +153 -63
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +215 -74
- package/dist/collection/components/scrim/scrim.utils.js +5 -51
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +61 -6
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +247 -52
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +108 -46
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +320 -124
- package/dist/collection/components/select/select.utils.js +3 -1
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +60 -17
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +112 -3
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +58 -5
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/skip-link/skip-link.js +78 -39
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +530 -132
- package/dist/collection/components/slider/slider.utils.js +178 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step-item/step-item.js +29 -12
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/step/step.js +119 -44
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +48 -15
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +49 -14
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +123 -53
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-body/table-body.js +11 -7
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +36 -17
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header/table-header.js +11 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +35 -13
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +24 -7
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +107 -31
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +86 -36
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +222 -19
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +134 -45
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +135 -33
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +54 -3
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +82 -28
- package/dist/collection/pages/components/select/remote.js +33 -0
- package/dist/collection/pages/components/select/virtualized.js +13 -0
- package/dist/collection/pages/components/upload/handler.js +25 -0
- package/dist/collection/pages/scripts/component-controls-core.js +95 -0
- package/dist/collection/pages/scripts/component-controls.js +221 -158
- package/dist/collection/pages/scripts/dev-event-console.js +5 -1
- package/dist/collection/pages/scripts/menu.js +90 -6
- package/dist/collection/pages/scripts/pageLoader.js +1570 -607
- package/dist/collection/pages/scripts/pageloader-preview.js +796 -0
- package/dist/collection/pages/scripts/playground-core.js +173 -0
- package/dist/collection/shared/utils/cssVariables.js +2 -0
- package/dist/collection/shared/utils/date.js +8 -4
- package/dist/collection/shared/utils/floating-ui.js +24 -1
- package/dist/collection/shared/utils/focus.js +31 -0
- package/dist/collection/shared/utils/form.js +17 -0
- package/dist/collection/shared/utils/getRandom.js +16 -1
- package/dist/collection/shared/utils/helpers.js +4 -11
- package/dist/collection/shared/utils/id.js +23 -7
- package/dist/collection/shared/utils/index.js +6 -1
- package/dist/collection/shared/utils/isEmpty.js +5 -3
- package/dist/collection/shared/utils/motion.js +25 -0
- package/dist/collection/shared/utils/ownership.js +113 -0
- package/dist/collection/shared/utils/prop-warning.js +47 -0
- package/dist/collection/shared/utils/props.js +79 -0
- package/dist/collection/shared/utils/swipe.js +11 -1
- package/dist/collection/shared/utils/transition.js +3 -0
- package/dist/collection/shared/utils/virtual-scroll.js +24 -0
- package/dist/components/br-avatar.d.ts +1 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.d.ts +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.d.ts +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.d.ts +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.d.ts +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.d.ts +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.d.ts +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.d.ts +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.d.ts +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.d.ts +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.d.ts +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.d.ts +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.d.ts +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.d.ts +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.d.ts +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.d.ts +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.d.ts +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.d.ts +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.d.ts +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.d.ts +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.d.ts +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.d.ts +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.d.ts +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.d.ts +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.d.ts +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.d.ts +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.d.ts +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.d.ts +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.d.ts +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.d.ts +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.d.ts +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.d.ts +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.d.ts +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.d.ts +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.d.ts +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.d.ts +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.d.ts +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.d.ts +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.d.ts +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.d.ts +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.d.ts +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.d.ts +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.d.ts +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.d.ts +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.d.ts +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.d.ts +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.d.ts +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.d.ts +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.d.ts +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.d.ts +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.d.ts +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.d.ts +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.d.ts +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.d.ts +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.d.ts +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.d.ts +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.d.ts +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.d.ts +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.d.ts +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.d.ts +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.d.ts +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.d.ts +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.d.ts +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.d.ts +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.d.ts +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.d.ts +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.d.ts +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.d.ts +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.d.ts +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.d.ts +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.d.ts +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.d.ts +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.d.ts +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.d.ts +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.d.ts +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-body.d.ts +1 -1
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.d.ts +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-header-cell.d.ts +1 -1
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.d.ts +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.d.ts +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.d.ts +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.d.ts +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.d.ts +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.d.ts +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.d.ts +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.d.ts +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.d.ts +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.d.ts +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.d.ts +89 -89
- package/dist/components/index.js +1 -1
- package/dist/components/p-0qmYp77w.js +5 -0
- package/dist/components/p-5c3rNBXh.js +5 -0
- package/dist/components/p-B8oIvH3q.js +5 -0
- package/dist/components/p-BECz8XWJ.js +5 -0
- package/dist/components/p-BEJGB0Nd.js +5 -0
- package/dist/{webcomponents/p-Dmfk7eEe.js → components/p-BJZC_NuV.js} +1 -1
- package/dist/components/p-BJtdabsr.js +5 -0
- package/dist/components/p-BM4Ys6hX.js +5 -0
- package/dist/components/p-BXWh9s7p.js +5 -0
- package/dist/components/{p-DA5GS53D.js → p-BblZlUp2.js} +1 -1
- package/dist/components/{p-C1yRmdso.js → p-BcqVlof7.js} +1 -1
- package/dist/components/p-BeJxz5TQ.js +5 -0
- package/dist/components/p-Bezou5CQ.js +5 -0
- package/dist/components/p-BjeUETWJ.js +5 -0
- package/dist/components/p-CDTENPaP.js +5 -0
- package/dist/components/p-CDtFCbKp.js +5 -0
- package/dist/components/p-CNwZRgyL.js +5 -0
- package/dist/components/p-CZZVc2gK.js +5 -0
- package/dist/components/p-Cd6udSDt.js +5 -0
- package/dist/components/p-Ci0_RqAE.js +5 -0
- package/dist/components/p-CuBgClZm.js +5 -0
- package/dist/components/p-D0QYZSoP.js +5 -0
- package/dist/components/p-D4SWpW6-.js +5 -0
- package/dist/components/p-D579DS7x.js +5 -0
- package/dist/components/p-D8K7rhHd.js +5 -0
- package/dist/components/p-D9Zo6FlV.js +5 -0
- package/dist/components/p-D9nXlCuS.js +5 -0
- package/dist/components/p-DKFO6Q_g.js +5 -0
- package/dist/components/p-DNJSSCNi.js +5 -0
- package/dist/components/p-DOJ1vYOl.js +5 -0
- package/dist/components/p-DWhzxlCx.js +5 -0
- package/dist/components/p-DYI30IZL.js +5 -0
- package/dist/components/p-DcVldfL0.js +5 -0
- package/dist/components/p-DhvmHPp4.js +5 -0
- package/dist/components/p-DiLI514I.js +5 -0
- package/dist/components/p-DwgiHL0b.js +5 -0
- package/dist/components/p-Jk_KQE5V.js +5 -0
- package/dist/components/p-Nze3Utvd.js +5 -0
- package/dist/components/p-WxDB6Dk4.js +5 -0
- package/dist/components/p-ZLoeVagg.js +5 -0
- package/dist/components/p-gbYJ9sfc.js +5 -0
- package/dist/components/p-uc8ABlC_.js +5 -0
- package/dist/components/p-v60ypfxD.js +5 -0
- package/dist/esm/br-avatar.entry.js +21 -14
- package/dist/esm/br-breadcrumb-item.entry.js +2 -2
- package/dist/esm/br-breadcrumb.entry.js +49 -22
- package/dist/esm/br-button_2.entry.js +77 -35
- package/dist/esm/br-card.entry.js +6 -5
- package/dist/esm/br-carousel-page.entry.js +3 -3
- package/dist/esm/br-carousel.entry.js +78 -22
- package/dist/esm/br-checkbox-group.entry.js +157 -27
- package/dist/esm/br-checkbox.entry.js +87 -17
- package/dist/esm/br-checkgroup.entry.js +5 -2
- package/dist/esm/br-collapse_2.entry.js +91 -28
- package/dist/esm/br-cookiebar-cookie.entry.js +4 -4
- package/dist/esm/br-cookiebar-group.entry.js +4 -4
- package/dist/esm/br-cookiebar-header.entry.js +4 -4
- package/dist/esm/br-cookiebar-link.entry.js +14 -6
- package/dist/esm/br-cookiebar-note-group.entry.js +3 -5
- package/dist/esm/br-cookiebar-note.entry.js +4 -4
- package/dist/esm/br-cookiebar.entry.js +39 -26
- package/dist/esm/br-crumb.entry.js +2 -2
- package/dist/esm/br-date-picker_3.entry.js +207 -49
- package/dist/esm/br-datetime-picker.entry.js +83 -495
- package/dist/esm/br-divider.entry.js +70 -17
- package/dist/esm/br-dropdown_2.entry.js +335 -164
- package/dist/esm/br-footer-category.entry.js +10 -6
- package/dist/esm/br-footer-item.entry.js +9 -4
- package/dist/esm/br-footer-legal.entry.js +4 -4
- package/dist/esm/br-footer-logo.entry.js +22 -10
- package/dist/esm/br-footer-social.entry.js +14 -6
- package/dist/esm/br-footer.entry.js +16 -7
- package/dist/esm/br-header-function.entry.js +28 -7
- package/dist/esm/br-header-link.entry.js +25 -4
- package/dist/esm/br-header-list.entry.js +7 -18
- package/dist/esm/br-header-logo.entry.js +18 -7
- package/dist/esm/br-header.entry.js +96 -37
- package/dist/esm/br-icon.entry.js +160 -52
- package/dist/esm/br-input.entry.js +152 -42
- package/dist/esm/br-item.entry.js +97 -48
- package/dist/esm/br-link.entry.js +20 -7
- package/dist/esm/br-loading.entry.js +100 -38
- package/dist/esm/br-magic-button.entry.js +39 -9
- package/dist/esm/br-menu-group.entry.js +14 -3
- package/dist/esm/br-menu-header.entry.js +4 -4
- package/dist/esm/br-menu-info.entry.js +4 -4
- package/dist/esm/br-menu-item.entry.js +27 -5
- package/dist/esm/br-menu-link.entry.js +14 -6
- package/dist/esm/br-menu-list.entry.js +23 -27
- package/dist/esm/br-menu-logo.entry.js +4 -4
- package/dist/esm/br-menu-social.entry.js +16 -6
- package/dist/esm/br-menu.entry.js +39 -58
- package/dist/esm/br-modal.entry.js +44 -42
- package/dist/esm/br-notification-body.entry.js +4 -4
- package/dist/esm/br-notification-header.entry.js +4 -4
- package/dist/esm/br-notification-item.entry.js +14 -8
- package/dist/esm/br-notification.entry.js +24 -9
- package/dist/esm/br-pagination.entry.js +120 -88
- package/dist/esm/br-radio-group.entry.js +108 -59
- package/dist/esm/br-radio.entry.js +63 -13
- package/dist/esm/br-scrim.entry.js +161 -67
- package/dist/esm/br-select-input_3.entry.js +286 -91
- package/dist/esm/br-sign-in.entry.js +38 -15
- package/dist/esm/br-skip-link-item.entry.js +39 -2
- package/dist/esm/br-skip-link.entry.js +50 -33
- package/dist/esm/br-skiplink-item.entry.js +22 -6
- package/dist/esm/br-slider.entry.js +520 -98
- package/dist/esm/br-step_2.entry.js +98 -44
- package/dist/esm/br-switch.entry.js +22 -13
- package/dist/esm/br-tab-item.entry.js +38 -14
- package/dist/esm/br-tab.entry.js +89 -51
- package/dist/esm/br-table-body.entry.js +3 -3
- package/dist/esm/br-table-cell.entry.js +30 -13
- package/dist/esm/br-table-header-cell.entry.js +23 -7
- package/dist/esm/br-table-header.entry.js +3 -3
- package/dist/esm/br-table-row.entry.js +17 -3
- package/dist/esm/br-table.entry.js +68 -22
- package/dist/esm/br-tag.entry.js +50 -32
- package/dist/esm/br-textarea.entry.js +119 -14
- package/dist/esm/br-tooltip.entry.js +88 -42
- package/dist/esm/br-upload.entry.js +85 -26
- package/dist/esm/br-wizard-panel.entry.js +16 -3
- package/dist/esm/br-wizard.entry.js +52 -28
- package/dist/esm/{datetime-picker-constants-Bfm58jO6.js → datetime-picker-constants-BtRPYRvA.js} +1 -1
- package/dist/esm/{isValid-DIUZX1qS.js → datetime-picker-props-validation-BeTcUTnE.js} +476 -5
- package/dist/esm/{event-DFN_so7I.js → event-CfuJQ1DY.js} +1 -1
- package/dist/esm/{floating-ui-BavFwMnx.js → floating-ui-CskvaxD5.js} +24 -1
- package/dist/esm/{floating-ui.dom-DIK54tTj.js → floating-ui.dom-D9Zo6FlV.js} +201 -114
- package/dist/esm/{focus-DxZJrIyL.js → focus-CNwZRgyL.js} +20 -1
- package/dist/esm/header-context-BEJGB0Nd.js +15 -0
- package/dist/esm/icon.utils-zlORkiHQ.js +43 -0
- package/dist/esm/id-BeJxz5TQ.js +34 -0
- package/dist/esm/{index-Bo-2igoO.js → index-BQPOWxe5.js} +1 -1
- package/dist/esm/{index-C2RBydfd.js → index-ConyRdJe.js} +88 -766
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/motion-DWhzxlCx.js +27 -0
- package/dist/esm/ownership-CDtFCbKp.js +111 -0
- package/dist/esm/prop-warning-BlGV-x0w.js +56 -0
- package/dist/esm/props-D07GjR4_.js +116 -0
- package/dist/esm/{swipe-Dmfk7eEe.js → swipe-BJZC_NuV.js} +11 -1
- package/dist/esm/{validator-D3tVP32U.js → validator-BkWWrDEr.js} +18 -1
- package/dist/esm/webcomponents.js +4 -4
- package/dist/hydrate/index.js +7541 -2577
- package/dist/hydrate/index.mjs +7541 -2577
- package/dist/loader/index.d.ts +1 -1
- package/dist/types/components/avatar/avatar.d.ts +34 -4
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +14 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +66 -5
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +13 -1
- package/dist/types/components/button/button.d.ts +45 -8
- package/dist/types/components/card/card.d.ts +31 -3
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +10 -3
- package/dist/types/components/carousel/carousel.d.ts +46 -3
- package/dist/types/components/checkbox/checkbox.d.ts +59 -6
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +47 -5
- package/dist/types/components/checkgroup/checkgroup.d.ts +27 -5
- package/dist/types/components/collapse/collapse.d.ts +37 -4
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +16 -3
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +15 -6
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +14 -8
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +16 -5
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar.d.ts +35 -10
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +63 -7
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +51 -9
- package/dist/types/components/datetime-picker/datetime-picker-props-validation.d.ts +4 -2
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +118 -12
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +38 -4
- package/dist/types/components/divider/divider.d.ts +45 -8
- package/dist/types/components/dropdown/dropdown.d.ts +53 -7
- package/dist/types/components/footer/footer-category/footer-category.d.ts +16 -1
- package/dist/types/components/footer/footer-item/footer-item.d.ts +17 -1
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +15 -1
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +21 -2
- package/dist/types/components/footer/footer-social/footer-social.d.ts +20 -3
- package/dist/types/components/footer/footer.d.ts +39 -3
- package/dist/types/components/header/header-context.d.ts +1 -0
- package/dist/types/components/header/header-function/header-function.d.ts +24 -2
- package/dist/types/components/header/header-link/header-link.d.ts +22 -1
- package/dist/types/components/header/header-list/header-list.d.ts +16 -8
- package/dist/types/components/header/header-logo/header-logo.d.ts +20 -1
- package/dist/types/components/header/header.d.ts +47 -7
- package/dist/types/components/icon/icon.d.ts +44 -13
- package/dist/types/components/icon/icon.utils.d.ts +6 -0
- package/dist/types/components/input/input.d.ts +74 -15
- package/dist/types/components/item/item.d.ts +44 -6
- package/dist/types/components/link/link.d.ts +41 -9
- package/dist/types/components/list/list.d.ts +58 -8
- package/dist/types/components/loading/loading.d.ts +48 -8
- package/dist/types/components/magic-button/magic-button.d.ts +41 -3
- package/dist/types/components/menu/menu-group/menu-group.d.ts +19 -1
- package/dist/types/components/menu/menu-header/menu-header.d.ts +16 -1
- package/dist/types/components/menu/menu-info/menu-info.d.ts +14 -1
- package/dist/types/components/menu/menu-item/menu-item.d.ts +27 -3
- package/dist/types/components/menu/menu-link/menu-link.d.ts +17 -1
- package/dist/types/components/menu/menu-list/menu-list.d.ts +22 -4
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +14 -1
- package/dist/types/components/menu/menu-social/menu-social.d.ts +21 -2
- package/dist/types/components/menu/menu.d.ts +39 -6
- package/dist/types/components/menu/menu.utils.d.ts +2 -6
- package/dist/types/components/message/message.d.ts +38 -9
- package/dist/types/components/modal/modal.d.ts +40 -4
- package/dist/types/components/notification/notification-body/notification-body.d.ts +12 -3
- package/dist/types/components/notification/notification-header/notification-header.d.ts +12 -3
- package/dist/types/components/notification/notification-item/notification-item.d.ts +15 -3
- package/dist/types/components/notification/notification.d.ts +36 -5
- package/dist/types/components/pagination/pagination.d.ts +58 -20
- package/dist/types/components/radio/radio.d.ts +49 -4
- package/dist/types/components/radio-group/radio-group.d.ts +52 -10
- package/dist/types/components/scrim/scrim.d.ts +72 -11
- package/dist/types/components/scrim/scrim.utils.d.ts +2 -17
- package/dist/types/components/select/select-input/select-input.d.ts +22 -4
- package/dist/types/components/select/select-list/select-list.d.ts +51 -5
- package/dist/types/components/select/select-option/select-option.d.ts +31 -8
- package/dist/types/components/select/select.d.ts +152 -13
- package/dist/types/components/select/select.types.d.ts +5 -0
- package/dist/types/components/sign-in/sign-in.d.ts +32 -4
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +15 -2
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +22 -1
- package/dist/types/components/skip-link/skip-link.d.ts +37 -3
- package/dist/types/components/slider/slider.d.ts +147 -21
- package/dist/types/components/slider/slider.types.d.ts +7 -2
- package/dist/types/components/slider/slider.utils.d.ts +27 -0
- package/dist/types/components/step/step-item/step-item.d.ts +15 -3
- package/dist/types/components/step/step.d.ts +47 -12
- package/dist/types/components/switch/switch.d.ts +39 -6
- package/dist/types/components/tab/tab-item/tab-item.d.ts +24 -4
- package/dist/types/components/tab/tab.d.ts +48 -11
- package/dist/types/components/table/table-body/table-body.d.ts +10 -6
- package/dist/types/components/table/table-cell/table-cell.d.ts +10 -6
- package/dist/types/components/table/table-header/table-header.d.ts +10 -6
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +18 -6
- package/dist/types/components/table/table-row/table-row.d.ts +11 -6
- package/dist/types/components/table/table.d.ts +49 -11
- package/dist/types/components/tag/tag.d.ts +55 -7
- package/dist/types/components/textarea/textarea.d.ts +75 -5
- package/dist/types/components/textarea/textarea.types.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.d.ts +46 -8
- package/dist/types/components/upload/upload.d.ts +78 -10
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +20 -2
- package/dist/types/components/wizard/wizard.d.ts +44 -7
- package/dist/types/components.d.ts +5827 -1354
- package/dist/types/shared/utils/floating-ui.d.ts +4 -0
- package/dist/types/shared/utils/focus.d.ts +14 -0
- package/dist/types/shared/utils/form.d.ts +8 -0
- package/dist/types/shared/utils/getRandom.d.ts +1 -0
- package/dist/types/shared/utils/id.d.ts +1 -1
- package/dist/types/shared/utils/index.d.ts +6 -1
- package/dist/types/shared/utils/motion.d.ts +14 -0
- package/dist/types/shared/utils/ownership.d.ts +33 -0
- package/dist/types/shared/utils/prop-warning.d.ts +7 -0
- package/dist/types/shared/utils/props.d.ts +38 -0
- package/dist/types/shared/utils/swipe.d.ts +5 -0
- package/dist/types/shared/utils/virtual-scroll.d.ts +25 -0
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-078bd760.entry.js +5 -0
- package/dist/webcomponents/p-07c2cdff.entry.js +5 -0
- package/dist/webcomponents/{p-7f7506f0.entry.js → p-09817344.entry.js} +1 -1
- package/dist/webcomponents/p-0b0cf355.entry.js +5 -0
- package/dist/webcomponents/p-0d2ca2f7.entry.js +5 -0
- package/dist/webcomponents/p-0d79ca44.entry.js +5 -0
- package/dist/webcomponents/p-0fe3c47b.entry.js +5 -0
- package/dist/webcomponents/p-116b53c9.entry.js +5 -0
- package/dist/webcomponents/p-1240dae7.entry.js +5 -0
- package/dist/webcomponents/p-14ff5865.entry.js +5 -0
- package/dist/webcomponents/p-15743a02.entry.js +5 -0
- package/dist/webcomponents/p-16cebf49.entry.js +5 -0
- package/dist/webcomponents/p-1884b9d3.entry.js +5 -0
- package/dist/webcomponents/p-19a38e20.entry.js +5 -0
- package/dist/webcomponents/p-1d36c8fa.entry.js +5 -0
- package/dist/webcomponents/p-1fa4b5b2.entry.js +5 -0
- package/dist/webcomponents/p-212c069b.entry.js +5 -0
- package/dist/webcomponents/p-23f37cd6.entry.js +5 -0
- package/dist/webcomponents/p-24502b63.entry.js +5 -0
- package/dist/webcomponents/p-27fb81f3.entry.js +5 -0
- package/dist/webcomponents/p-28844490.entry.js +5 -0
- package/dist/webcomponents/p-2b41bdcc.entry.js +5 -0
- package/dist/webcomponents/p-2cb1e09b.entry.js +5 -0
- package/dist/webcomponents/p-2fcda70b.entry.js +5 -0
- package/dist/webcomponents/p-3378300c.entry.js +5 -0
- package/dist/webcomponents/p-3ae9cf69.entry.js +5 -0
- package/dist/webcomponents/p-3b79cd49.entry.js +5 -0
- package/dist/webcomponents/p-3c1513ec.entry.js +5 -0
- package/dist/webcomponents/p-4118b878.entry.js +5 -0
- package/dist/webcomponents/p-4534a3c3.entry.js +5 -0
- package/dist/webcomponents/p-48abf568.entry.js +5 -0
- package/dist/webcomponents/p-4e5ea05c.entry.js +5 -0
- package/dist/webcomponents/p-513ee754.entry.js +5 -0
- package/dist/webcomponents/p-521a1076.entry.js +5 -0
- package/dist/webcomponents/p-59fc52c0.entry.js +5 -0
- package/dist/webcomponents/p-5a7c2031.entry.js +5 -0
- package/dist/webcomponents/p-5a9f4ea2.entry.js +5 -0
- package/dist/webcomponents/p-5f422a69.entry.js +5 -0
- package/dist/webcomponents/p-61977114.entry.js +5 -0
- package/dist/webcomponents/p-6850e98e.entry.js +5 -0
- package/dist/webcomponents/p-71853dfc.entry.js +5 -0
- package/dist/webcomponents/p-76d51654.entry.js +5 -0
- package/dist/webcomponents/p-77e242f3.entry.js +5 -0
- package/dist/webcomponents/p-7b849472.entry.js +5 -0
- package/dist/webcomponents/p-7dbfb875.entry.js +5 -0
- package/dist/webcomponents/p-7fa7f052.entry.js +5 -0
- package/dist/webcomponents/p-81c65747.entry.js +5 -0
- package/dist/webcomponents/p-82759002.entry.js +5 -0
- package/dist/webcomponents/p-91a5329f.entry.js +5 -0
- package/dist/webcomponents/p-94848046.entry.js +5 -0
- package/dist/webcomponents/p-966773a9.entry.js +5 -0
- package/dist/webcomponents/p-9abb5a53.entry.js +5 -0
- package/dist/webcomponents/p-9bf2e325.entry.js +5 -0
- package/dist/webcomponents/p-9c943b40.entry.js +5 -0
- package/dist/webcomponents/p-9ec3ca00.entry.js +5 -0
- package/dist/webcomponents/p-B0PbhaxL.js +5 -0
- package/dist/webcomponents/p-BEJGB0Nd.js +5 -0
- package/dist/{components/p-Dmfk7eEe.js → webcomponents/p-BJZC_NuV.js} +1 -1
- package/dist/webcomponents/p-BJtdabsr.js +5 -0
- package/dist/webcomponents/p-BeJxz5TQ.js +5 -0
- package/dist/webcomponents/p-BkWWrDEr.js +5 -0
- package/dist/webcomponents/p-BlGV-x0w.js +5 -0
- package/dist/webcomponents/{p-Bfm58jO6.js → p-BtRPYRvA.js} +1 -1
- package/dist/webcomponents/p-CDtFCbKp.js +5 -0
- package/dist/webcomponents/p-CNwZRgyL.js +5 -0
- package/dist/webcomponents/{p-DFN_so7I.js → p-CfuJQ1DY.js} +1 -1
- package/dist/webcomponents/p-ConyRdJe.js +7 -0
- package/dist/webcomponents/p-D9Zo6FlV.js +5 -0
- package/dist/webcomponents/{p-BhMVJQ4-.js → p-DV-iW9Aj.js} +1 -1
- package/dist/webcomponents/p-DWhzxlCx.js +5 -0
- package/dist/webcomponents/p-EbtQZm5s.js +5 -0
- package/dist/webcomponents/p-ad91f149.entry.js +5 -0
- package/dist/webcomponents/p-aeea1f17.entry.js +5 -0
- package/dist/webcomponents/p-b02a7218.entry.js +5 -0
- package/dist/webcomponents/p-b16590fc.entry.js +5 -0
- package/dist/webcomponents/{p-12286e73.entry.js → p-b55425b7.entry.js} +1 -1
- package/dist/webcomponents/p-c1dafd8d.entry.js +5 -0
- package/dist/webcomponents/p-c2ca0289.entry.js +5 -0
- package/dist/webcomponents/p-c8af334e.entry.js +5 -0
- package/dist/webcomponents/p-cac49c6a.entry.js +5 -0
- package/dist/webcomponents/p-cb9ebfbe.entry.js +5 -0
- package/dist/webcomponents/p-ce3d689c.entry.js +5 -0
- package/dist/webcomponents/p-d11f95a0.entry.js +5 -0
- package/dist/webcomponents/p-d5d2205c.entry.js +5 -0
- package/dist/webcomponents/p-dad03b49.entry.js +5 -0
- package/dist/webcomponents/p-db8e6322.entry.js +5 -0
- package/dist/webcomponents/p-dea8015f.entry.js +5 -0
- package/dist/webcomponents/p-e07e309d.entry.js +5 -0
- package/dist/webcomponents/p-e53d874b.entry.js +5 -0
- package/dist/webcomponents/p-e5540387.entry.js +5 -0
- package/dist/webcomponents/p-e94a52ac.entry.js +5 -0
- package/dist/webcomponents/p-e9be4d3f.entry.js +5 -0
- package/dist/webcomponents/p-e9db9381.entry.js +5 -0
- package/dist/webcomponents/p-edca5de1.entry.js +5 -0
- package/dist/webcomponents/p-ee5b9fc9.entry.js +5 -0
- package/dist/webcomponents/p-f4ef8c63.entry.js +5 -0
- package/dist/webcomponents/p-zlORkiHQ.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +18 -3
- package/dist/cjs/clamp-Co_hWptd.js +0 -25
- package/dist/cjs/id-CjRFMzf6.js +0 -20
- package/dist/cjs/props-CScmBvKd.js +0 -24
- package/dist/collection/pages/components/cookiebar/index.js +0 -26
- package/dist/collection/pages/components/link/index.js +0 -29
- package/dist/collection/pages/components/pagination/index.js +0 -12
- package/dist/collection/pages/components/slider/index.js +0 -18
- package/dist/components/p-6OdfnwnK.js +0 -5
- package/dist/components/p-AmOh1cks.js +0 -5
- package/dist/components/p-B4ylcipx.js +0 -5
- package/dist/components/p-BCv4PCOx.js +0 -5
- package/dist/components/p-BLOyd_iF.js +0 -5
- package/dist/components/p-BODem6tr.js +0 -5
- package/dist/components/p-Bb-nLtTG.js +0 -5
- package/dist/components/p-BeFK-82z.js +0 -5
- package/dist/components/p-BkS6ujyf.js +0 -5
- package/dist/components/p-BloE-KAN.js +0 -5
- package/dist/components/p-BoSc_kmY.js +0 -5
- package/dist/components/p-BrH3r7eL.js +0 -5
- package/dist/components/p-BsZ0Ny88.js +0 -5
- package/dist/components/p-ByHVf7zy.js +0 -5
- package/dist/components/p-CdDwqbBv.js +0 -5
- package/dist/components/p-CdF-gmk1.js +0 -5
- package/dist/components/p-CfyjGPGI.js +0 -5
- package/dist/components/p-CjF7pBVQ.js +0 -5
- package/dist/components/p-ClqtllDH.js +0 -5
- package/dist/components/p-CqW2Yh34.js +0 -5
- package/dist/components/p-DIK54tTj.js +0 -5
- package/dist/components/p-DLE5ioJN.js +0 -5
- package/dist/components/p-DQRSHR-D.js +0 -5
- package/dist/components/p-DRVMm1Py.js +0 -5
- package/dist/components/p-DRnCpVrL.js +0 -5
- package/dist/components/p-DVdlaP7z.js +0 -5
- package/dist/components/p-DeeF6ok0.js +0 -5
- package/dist/components/p-Dim2PnUm.js +0 -5
- package/dist/components/p-Dk8rfQjL.js +0 -5
- package/dist/components/p-DkmEpoef.js +0 -5
- package/dist/components/p-DwfAYaEv.js +0 -5
- package/dist/components/p-DxZJrIyL.js +0 -5
- package/dist/components/p-P2Z_MmH6.js +0 -5
- package/dist/components/p-Xa0Mj4pP.js +0 -5
- package/dist/components/p-_vsQvdxD.js +0 -5
- package/dist/components/p-aNjo4Alx.js +0 -5
- package/dist/components/p-gvnfuTjd.js +0 -5
- package/dist/components/p-rB-s1M3Q.js +0 -5
- package/dist/esm/clamp-gvnfuTjd.js +0 -23
- package/dist/esm/id-BkS6ujyf.js +0 -18
- package/dist/esm/props-DRVMm1Py.js +0 -22
- package/dist/webcomponents/p-00cc31f9.entry.js +0 -5
- package/dist/webcomponents/p-026475bd.entry.js +0 -5
- package/dist/webcomponents/p-0291ab28.entry.js +0 -5
- package/dist/webcomponents/p-03e5a7dc.entry.js +0 -5
- package/dist/webcomponents/p-060df8ee.entry.js +0 -5
- package/dist/webcomponents/p-09fce2a5.entry.js +0 -5
- package/dist/webcomponents/p-1002bbff.entry.js +0 -5
- package/dist/webcomponents/p-1124de33.entry.js +0 -5
- package/dist/webcomponents/p-12e97d80.entry.js +0 -5
- package/dist/webcomponents/p-1580beee.entry.js +0 -5
- package/dist/webcomponents/p-1b19b191.entry.js +0 -5
- package/dist/webcomponents/p-2baf353b.entry.js +0 -5
- package/dist/webcomponents/p-2eb9a42c.entry.js +0 -5
- package/dist/webcomponents/p-30c82805.entry.js +0 -5
- package/dist/webcomponents/p-31bd1c74.entry.js +0 -5
- package/dist/webcomponents/p-31db2313.entry.js +0 -5
- package/dist/webcomponents/p-33a3dc63.entry.js +0 -5
- package/dist/webcomponents/p-3889c51f.entry.js +0 -5
- package/dist/webcomponents/p-3f2c179a.entry.js +0 -5
- package/dist/webcomponents/p-470eb770.entry.js +0 -5
- package/dist/webcomponents/p-4ae387ae.entry.js +0 -5
- package/dist/webcomponents/p-4e65df84.entry.js +0 -5
- package/dist/webcomponents/p-51a62876.entry.js +0 -5
- package/dist/webcomponents/p-5860b96b.entry.js +0 -5
- package/dist/webcomponents/p-5b9c01e9.entry.js +0 -5
- package/dist/webcomponents/p-5df2f1dd.entry.js +0 -5
- package/dist/webcomponents/p-5f3f7b3f.entry.js +0 -5
- package/dist/webcomponents/p-5f6afb79.entry.js +0 -5
- package/dist/webcomponents/p-5f9c28a7.entry.js +0 -5
- package/dist/webcomponents/p-62511921.entry.js +0 -5
- package/dist/webcomponents/p-63b52947.entry.js +0 -5
- package/dist/webcomponents/p-67a8e0b7.entry.js +0 -5
- package/dist/webcomponents/p-6OdfnwnK.js +0 -5
- package/dist/webcomponents/p-7b2a5fec.entry.js +0 -5
- package/dist/webcomponents/p-7f95e2f5.entry.js +0 -5
- package/dist/webcomponents/p-8128833c.entry.js +0 -5
- package/dist/webcomponents/p-8200ccb1.entry.js +0 -5
- package/dist/webcomponents/p-82b100fd.entry.js +0 -5
- package/dist/webcomponents/p-8806df15.entry.js +0 -5
- package/dist/webcomponents/p-881eb81a.entry.js +0 -5
- package/dist/webcomponents/p-8bd3d541.entry.js +0 -5
- package/dist/webcomponents/p-90648343.entry.js +0 -5
- package/dist/webcomponents/p-9100a5f7.entry.js +0 -5
- package/dist/webcomponents/p-91313d77.entry.js +0 -5
- package/dist/webcomponents/p-946b2ac0.entry.js +0 -5
- package/dist/webcomponents/p-98e7ccb9.entry.js +0 -5
- package/dist/webcomponents/p-99f2bddb.entry.js +0 -5
- package/dist/webcomponents/p-9adbdb0a.entry.js +0 -5
- package/dist/webcomponents/p-9c260049.entry.js +0 -5
- package/dist/webcomponents/p-9ed51017.entry.js +0 -5
- package/dist/webcomponents/p-BkS6ujyf.js +0 -5
- package/dist/webcomponents/p-C2RBydfd.js +0 -6
- package/dist/webcomponents/p-CO5cOQQU.js +0 -5
- package/dist/webcomponents/p-D3tVP32U.js +0 -5
- package/dist/webcomponents/p-DIK54tTj.js +0 -5
- package/dist/webcomponents/p-DRVMm1Py.js +0 -5
- package/dist/webcomponents/p-DxZJrIyL.js +0 -5
- package/dist/webcomponents/p-a0b299dd.entry.js +0 -5
- package/dist/webcomponents/p-a2c5fad0.entry.js +0 -5
- package/dist/webcomponents/p-a3e044d7.entry.js +0 -5
- package/dist/webcomponents/p-a9f23aa7.entry.js +0 -5
- package/dist/webcomponents/p-a9f2fcbc.entry.js +0 -5
- package/dist/webcomponents/p-b6c68136.entry.js +0 -5
- package/dist/webcomponents/p-b6e9b8d1.entry.js +0 -5
- package/dist/webcomponents/p-c333eac6.entry.js +0 -5
- package/dist/webcomponents/p-c3732fd6.entry.js +0 -5
- package/dist/webcomponents/p-c458ed0e.entry.js +0 -5
- package/dist/webcomponents/p-c91000ff.entry.js +0 -5
- package/dist/webcomponents/p-c9c6ab2d.entry.js +0 -5
- package/dist/webcomponents/p-cd2550d6.entry.js +0 -5
- package/dist/webcomponents/p-cf42613f.entry.js +0 -5
- package/dist/webcomponents/p-d0b0b420.entry.js +0 -5
- package/dist/webcomponents/p-d1b32ee8.entry.js +0 -5
- package/dist/webcomponents/p-db65b083.entry.js +0 -5
- package/dist/webcomponents/p-de7c101d.entry.js +0 -5
- package/dist/webcomponents/p-dfb77dd0.entry.js +0 -5
- package/dist/webcomponents/p-e258da78.entry.js +0 -5
- package/dist/webcomponents/p-e31ddd42.entry.js +0 -5
- package/dist/webcomponents/p-e8d82227.entry.js +0 -5
- package/dist/webcomponents/p-e988cf1d.entry.js +0 -5
- package/dist/webcomponents/p-ed9122a1.entry.js +0 -5
- package/dist/webcomponents/p-ee347d2e.entry.js +0 -5
- package/dist/webcomponents/p-f1c01d52.entry.js +0 -5
- package/dist/webcomponents/p-f5baf8be.entry.js +0 -5
- package/dist/webcomponents/p-fb593739.entry.js +0 -5
- package/dist/webcomponents/p-fff9acd4.entry.js +0 -5
- package/dist/webcomponents/p-gvnfuTjd.js +0 -5
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
var index = require('./index-
|
|
8
|
-
var
|
|
7
|
+
var index = require('./index-Bc30P_6z.js');
|
|
8
|
+
var datetimePickerPropsValidation = require('./datetime-picker-props-validation-DmNKSXsy.js');
|
|
9
9
|
var event = require('./event-CmVdNHxl.js');
|
|
10
|
-
var validator = require('./validator-
|
|
10
|
+
var validator = require('./validator-GkkueMOx.js');
|
|
11
|
+
var id = require('./id-DE4jSi-L.js');
|
|
12
|
+
var propWarning = require('./prop-warning-xvEHQz8H.js');
|
|
11
13
|
var slot = require('./slot-DAllytTj.js');
|
|
12
14
|
var datetimePickerConstants = require('./datetime-picker-constants-B5pWeOn1.js');
|
|
13
15
|
|
|
@@ -20,7 +22,7 @@ function requireIsMatch () {
|
|
|
20
22
|
hasRequiredIsMatch = 1;
|
|
21
23
|
isMatch.isMatch = isMatch$1;
|
|
22
24
|
var _index = /*@__PURE__*/ datetimePickerConstants.requireIsValid();
|
|
23
|
-
var _index2 = /*@__PURE__*/
|
|
25
|
+
var _index2 = /*@__PURE__*/ datetimePickerPropsValidation.requireParse();
|
|
24
26
|
|
|
25
27
|
/**
|
|
26
28
|
* The {@link isMatch} function options.
|
|
@@ -320,313 +322,6 @@ function requireIsMatch () {
|
|
|
320
322
|
|
|
321
323
|
var isMatchExports = /*@__PURE__*/ requireIsMatch();
|
|
322
324
|
|
|
323
|
-
var parseISO = {};
|
|
324
|
-
|
|
325
|
-
var hasRequiredParseISO;
|
|
326
|
-
|
|
327
|
-
function requireParseISO () {
|
|
328
|
-
if (hasRequiredParseISO) return parseISO;
|
|
329
|
-
hasRequiredParseISO = 1;
|
|
330
|
-
parseISO.parseISO = parseISO$1;
|
|
331
|
-
var _index = /*@__PURE__*/ datetimePickerConstants.requireConstants();
|
|
332
|
-
|
|
333
|
-
var _index2 = /*@__PURE__*/ datetimePickerConstants.requireConstructFrom();
|
|
334
|
-
var _index3 = /*@__PURE__*/ datetimePickerConstants.requireToDate();
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* The {@link parseISO} function options.
|
|
338
|
-
*/
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @name parseISO
|
|
342
|
-
* @category Common Helpers
|
|
343
|
-
* @summary Parse ISO string
|
|
344
|
-
*
|
|
345
|
-
* @description
|
|
346
|
-
* Parse the given string in ISO 8601 format and return an instance of Date.
|
|
347
|
-
*
|
|
348
|
-
* Function accepts complete ISO 8601 formats as well as partial implementations.
|
|
349
|
-
* ISO 8601: http://en.wikipedia.org/wiki/ISO_8601
|
|
350
|
-
*
|
|
351
|
-
* If the argument isn't a string, the function cannot parse the string or
|
|
352
|
-
* the values are invalid, it returns Invalid Date.
|
|
353
|
-
*
|
|
354
|
-
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
355
|
-
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
|
356
|
-
*
|
|
357
|
-
* @param argument - The value to convert
|
|
358
|
-
* @param options - An object with options
|
|
359
|
-
*
|
|
360
|
-
* @returns The parsed date in the local time zone
|
|
361
|
-
*
|
|
362
|
-
* @example
|
|
363
|
-
* // Convert string '2014-02-11T11:30:30' to date:
|
|
364
|
-
* const result = parseISO('2014-02-11T11:30:30')
|
|
365
|
-
* //=> Tue Feb 11 2014 11:30:30
|
|
366
|
-
*
|
|
367
|
-
* @example
|
|
368
|
-
* // Convert string '+02014101' to date,
|
|
369
|
-
* // if the additional number of digits in the extended year format is 1:
|
|
370
|
-
* const result = parseISO('+02014101', { additionalDigits: 1 })
|
|
371
|
-
* //=> Fri Apr 11 2014 00:00:00
|
|
372
|
-
*/
|
|
373
|
-
function parseISO$1(argument, options) {
|
|
374
|
-
const invalidDate = () => (0, _index2.constructFrom)(options?.in, NaN);
|
|
375
|
-
|
|
376
|
-
const additionalDigits = options?.additionalDigits ?? 2;
|
|
377
|
-
const dateStrings = splitDateString(argument);
|
|
378
|
-
|
|
379
|
-
let date;
|
|
380
|
-
if (dateStrings.date) {
|
|
381
|
-
const parseYearResult = parseYear(dateStrings.date, additionalDigits);
|
|
382
|
-
date = parseDate(parseYearResult.restDateString, parseYearResult.year);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
if (!date || isNaN(+date)) return invalidDate();
|
|
386
|
-
|
|
387
|
-
const timestamp = +date;
|
|
388
|
-
let time = 0;
|
|
389
|
-
let offset;
|
|
390
|
-
|
|
391
|
-
if (dateStrings.time) {
|
|
392
|
-
time = parseTime(dateStrings.time);
|
|
393
|
-
if (isNaN(time)) return invalidDate();
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
if (dateStrings.timezone) {
|
|
397
|
-
offset = parseTimezone(dateStrings.timezone);
|
|
398
|
-
if (isNaN(offset)) return invalidDate();
|
|
399
|
-
} else {
|
|
400
|
-
const tmpDate = new Date(timestamp + time);
|
|
401
|
-
const result = (0, _index3.toDate)(0, options?.in);
|
|
402
|
-
result.setFullYear(
|
|
403
|
-
tmpDate.getUTCFullYear(),
|
|
404
|
-
tmpDate.getUTCMonth(),
|
|
405
|
-
tmpDate.getUTCDate(),
|
|
406
|
-
);
|
|
407
|
-
result.setHours(
|
|
408
|
-
tmpDate.getUTCHours(),
|
|
409
|
-
tmpDate.getUTCMinutes(),
|
|
410
|
-
tmpDate.getUTCSeconds(),
|
|
411
|
-
tmpDate.getUTCMilliseconds(),
|
|
412
|
-
);
|
|
413
|
-
return result;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
return (0, _index3.toDate)(timestamp + time + offset, options?.in);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
const patterns = {
|
|
420
|
-
dateTimeDelimiter: /[T ]/,
|
|
421
|
-
timeZoneDelimiter: /[Z ]/i,
|
|
422
|
-
timezone: /([Z+-].*)$/,
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
const dateRegex =
|
|
426
|
-
/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;
|
|
427
|
-
const timeRegex =
|
|
428
|
-
/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;
|
|
429
|
-
const timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
430
|
-
|
|
431
|
-
function splitDateString(dateString) {
|
|
432
|
-
const dateStrings = {};
|
|
433
|
-
const array = dateString.split(patterns.dateTimeDelimiter);
|
|
434
|
-
let timeString;
|
|
435
|
-
|
|
436
|
-
// The regex match should only return at maximum two array elements.
|
|
437
|
-
// [date], [time], or [date, time].
|
|
438
|
-
if (array.length > 2) {
|
|
439
|
-
return dateStrings;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (/:/.test(array[0])) {
|
|
443
|
-
timeString = array[0];
|
|
444
|
-
} else {
|
|
445
|
-
dateStrings.date = array[0];
|
|
446
|
-
timeString = array[1];
|
|
447
|
-
if (patterns.timeZoneDelimiter.test(dateStrings.date)) {
|
|
448
|
-
dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];
|
|
449
|
-
timeString = dateString.substr(
|
|
450
|
-
dateStrings.date.length,
|
|
451
|
-
dateString.length,
|
|
452
|
-
);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
if (timeString) {
|
|
457
|
-
const token = patterns.timezone.exec(timeString);
|
|
458
|
-
if (token) {
|
|
459
|
-
dateStrings.time = timeString.replace(token[1], "");
|
|
460
|
-
dateStrings.timezone = token[1];
|
|
461
|
-
} else {
|
|
462
|
-
dateStrings.time = timeString;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return dateStrings;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
function parseYear(dateString, additionalDigits) {
|
|
470
|
-
const regex = new RegExp(
|
|
471
|
-
"^(?:(\\d{4}|[+-]\\d{" +
|
|
472
|
-
(4 + additionalDigits) +
|
|
473
|
-
"})|(\\d{2}|[+-]\\d{" +
|
|
474
|
-
(2 + additionalDigits) +
|
|
475
|
-
"})$)",
|
|
476
|
-
);
|
|
477
|
-
|
|
478
|
-
const captures = dateString.match(regex);
|
|
479
|
-
// Invalid ISO-formatted year
|
|
480
|
-
if (!captures) return { year: NaN, restDateString: "" };
|
|
481
|
-
|
|
482
|
-
const year = captures[1] ? parseInt(captures[1]) : null;
|
|
483
|
-
const century = captures[2] ? parseInt(captures[2]) : null;
|
|
484
|
-
|
|
485
|
-
// either year or century is null, not both
|
|
486
|
-
return {
|
|
487
|
-
year: century === null ? year : century * 100,
|
|
488
|
-
restDateString: dateString.slice((captures[1] || captures[2]).length),
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
function parseDate(dateString, year) {
|
|
493
|
-
// Invalid ISO-formatted year
|
|
494
|
-
if (year === null) return new Date(NaN);
|
|
495
|
-
|
|
496
|
-
const captures = dateString.match(dateRegex);
|
|
497
|
-
// Invalid ISO-formatted string
|
|
498
|
-
if (!captures) return new Date(NaN);
|
|
499
|
-
|
|
500
|
-
const isWeekDate = !!captures[4];
|
|
501
|
-
const dayOfYear = parseDateUnit(captures[1]);
|
|
502
|
-
const month = parseDateUnit(captures[2]) - 1;
|
|
503
|
-
const day = parseDateUnit(captures[3]);
|
|
504
|
-
const week = parseDateUnit(captures[4]);
|
|
505
|
-
const dayOfWeek = parseDateUnit(captures[5]) - 1;
|
|
506
|
-
|
|
507
|
-
if (isWeekDate) {
|
|
508
|
-
if (!validateWeekDate(year, week, dayOfWeek)) {
|
|
509
|
-
return new Date(NaN);
|
|
510
|
-
}
|
|
511
|
-
return dayOfISOWeekYear(year, week, dayOfWeek);
|
|
512
|
-
} else {
|
|
513
|
-
const date = new Date(0);
|
|
514
|
-
if (
|
|
515
|
-
!validateDate(year, month, day) ||
|
|
516
|
-
!validateDayOfYearDate(year, dayOfYear)
|
|
517
|
-
) {
|
|
518
|
-
return new Date(NaN);
|
|
519
|
-
}
|
|
520
|
-
date.setUTCFullYear(year, month, Math.max(dayOfYear, day));
|
|
521
|
-
return date;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
function parseDateUnit(value) {
|
|
526
|
-
return value ? parseInt(value) : 1;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
function parseTime(timeString) {
|
|
530
|
-
const captures = timeString.match(timeRegex);
|
|
531
|
-
if (!captures) return NaN; // Invalid ISO-formatted time
|
|
532
|
-
|
|
533
|
-
const hours = parseTimeUnit(captures[1]);
|
|
534
|
-
const minutes = parseTimeUnit(captures[2]);
|
|
535
|
-
const seconds = parseTimeUnit(captures[3]);
|
|
536
|
-
|
|
537
|
-
if (!validateTime(hours, minutes, seconds)) {
|
|
538
|
-
return NaN;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
return (
|
|
542
|
-
hours * _index.millisecondsInHour +
|
|
543
|
-
minutes * _index.millisecondsInMinute +
|
|
544
|
-
seconds * 1000
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
function parseTimeUnit(value) {
|
|
549
|
-
return (value && parseFloat(value.replace(",", "."))) || 0;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
function parseTimezone(timezoneString) {
|
|
553
|
-
if (timezoneString === "Z") return 0;
|
|
554
|
-
|
|
555
|
-
const captures = timezoneString.match(timezoneRegex);
|
|
556
|
-
if (!captures) return 0;
|
|
557
|
-
|
|
558
|
-
const sign = captures[1] === "+" ? -1 : 1;
|
|
559
|
-
const hours = parseInt(captures[2]);
|
|
560
|
-
const minutes = (captures[3] && parseInt(captures[3])) || 0;
|
|
561
|
-
|
|
562
|
-
if (!validateTimezone(hours, minutes)) {
|
|
563
|
-
return NaN;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
return (
|
|
567
|
-
sign *
|
|
568
|
-
(hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute)
|
|
569
|
-
);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
function dayOfISOWeekYear(isoWeekYear, week, day) {
|
|
573
|
-
const date = new Date(0);
|
|
574
|
-
date.setUTCFullYear(isoWeekYear, 0, 4);
|
|
575
|
-
const fourthOfJanuaryDay = date.getUTCDay() || 7;
|
|
576
|
-
const diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;
|
|
577
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
578
|
-
return date;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
// Validation functions
|
|
582
|
-
|
|
583
|
-
// February is null to handle the leap year (using ||)
|
|
584
|
-
const daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
585
|
-
|
|
586
|
-
function isLeapYearIndex(year) {
|
|
587
|
-
return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
function validateDate(year, month, date) {
|
|
591
|
-
return (
|
|
592
|
-
month >= 0 &&
|
|
593
|
-
month <= 11 &&
|
|
594
|
-
date >= 1 &&
|
|
595
|
-
date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28))
|
|
596
|
-
);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
function validateDayOfYearDate(year, dayOfYear) {
|
|
600
|
-
return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
function validateWeekDate(_year, week, day) {
|
|
604
|
-
return week >= 1 && week <= 53 && day >= 0 && day <= 6;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
function validateTime(hours, minutes, seconds) {
|
|
608
|
-
if (hours === 24) {
|
|
609
|
-
return minutes === 0 && seconds === 0;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
return (
|
|
613
|
-
seconds >= 0 &&
|
|
614
|
-
seconds < 60 &&
|
|
615
|
-
minutes >= 0 &&
|
|
616
|
-
minutes < 60 &&
|
|
617
|
-
hours >= 0 &&
|
|
618
|
-
hours < 25
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
function validateTimezone(_hours, minutes) {
|
|
623
|
-
return minutes >= 0 && minutes <= 59;
|
|
624
|
-
}
|
|
625
|
-
return parseISO;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
var parseISOExports = /*@__PURE__*/ requireParseISO();
|
|
629
|
-
|
|
630
325
|
/** Serializa o valor atual para envio em FormData conforme o modo ativo. */
|
|
631
326
|
function serializeDatetimePickerFormValue(value, context) {
|
|
632
327
|
if (isDateRangeMode(context)) {
|
|
@@ -698,24 +393,24 @@ function parseTimeValue(value, referenceDate) {
|
|
|
698
393
|
if (!isMatchExports.isMatch(value, 'HH:mm')) {
|
|
699
394
|
return null;
|
|
700
395
|
}
|
|
701
|
-
const parsedTime =
|
|
702
|
-
if (!
|
|
396
|
+
const parsedTime = datetimePickerPropsValidation.parseExports.parse(value, 'HH:mm', new Date());
|
|
397
|
+
if (!datetimePickerPropsValidation.isValidExports.isValid(parsedTime)) {
|
|
703
398
|
return null;
|
|
704
399
|
}
|
|
705
|
-
const baseDate =
|
|
400
|
+
const baseDate = datetimePickerPropsValidation.toDateExports.toDate(referenceDate);
|
|
706
401
|
baseDate.setHours(parsedTime.getHours(), parsedTime.getMinutes(), 0, 0);
|
|
707
402
|
return baseDate;
|
|
708
403
|
}
|
|
709
404
|
function parseIsoDate(value) {
|
|
710
|
-
const parsedDate = parseISOExports.parseISO(value);
|
|
711
|
-
return
|
|
405
|
+
const parsedDate = datetimePickerPropsValidation.parseISOExports.parseISO(value);
|
|
406
|
+
return datetimePickerPropsValidation.isValidExports.isValid(parsedDate) ? parsedDate : null;
|
|
712
407
|
}
|
|
713
408
|
function parseDate(value) {
|
|
714
409
|
if (!isMatchExports.isMatch(value, 'yyyy-MM-dd')) {
|
|
715
410
|
return null;
|
|
716
411
|
}
|
|
717
|
-
const parsedDate =
|
|
718
|
-
if (!
|
|
412
|
+
const parsedDate = datetimePickerPropsValidation.parseExports.parse(value, 'yyyy-MM-dd', new Date());
|
|
413
|
+
if (!datetimePickerPropsValidation.isValidExports.isValid(parsedDate)) {
|
|
719
414
|
return null;
|
|
720
415
|
}
|
|
721
416
|
// Garante aderência estrita ao formato/calendário evitando rollover silencioso.
|
|
@@ -729,166 +424,7 @@ function serializeDate(value) {
|
|
|
729
424
|
return datetimePickerConstants.formatExports.format(value, 'yyyy-MM-dd');
|
|
730
425
|
}
|
|
731
426
|
|
|
732
|
-
const VALID_WEEK_START_DAYS = [0, 1, 2, 3, 4, 5, 6];
|
|
733
|
-
const INITIAL_MOMENT_DATE_FORMATS = ['dd/MM/yyyy HH:mm', 'dd/MM/yyyy', 'yyyy-MM-dd HH:mm', 'yyyy-MM-dd'];
|
|
734
|
-
function parseInitialMomentString(value) {
|
|
735
|
-
const trimmedValue = value.trim();
|
|
736
|
-
if (trimmedValue === '') {
|
|
737
|
-
return null;
|
|
738
|
-
}
|
|
739
|
-
const isoDate = parseISOExports.parseISO(trimmedValue);
|
|
740
|
-
if (isValid.isValidExports.isValid(isoDate)) {
|
|
741
|
-
return isoDate;
|
|
742
|
-
}
|
|
743
|
-
for (const formatPattern of INITIAL_MOMENT_DATE_FORMATS) {
|
|
744
|
-
const parsedDate = isValid.parseExports.parse(trimmedValue, formatPattern, new Date());
|
|
745
|
-
if (isValid.isValidExports.isValid(parsedDate)) {
|
|
746
|
-
return parsedDate;
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
return null;
|
|
750
|
-
}
|
|
751
|
-
function normalizeDateCandidate(value) {
|
|
752
|
-
if (value instanceof Date) {
|
|
753
|
-
if (!Number.isNaN(value.getTime())) {
|
|
754
|
-
return new Date(value);
|
|
755
|
-
}
|
|
756
|
-
return null;
|
|
757
|
-
}
|
|
758
|
-
if (typeof value === 'string') {
|
|
759
|
-
return parseInitialMomentString(value);
|
|
760
|
-
}
|
|
761
|
-
return null;
|
|
762
|
-
}
|
|
763
|
-
function tokenizeDisabledDatesString(value) {
|
|
764
|
-
return value
|
|
765
|
-
.trim()
|
|
766
|
-
.split(/\s+/)
|
|
767
|
-
.filter((token) => token.length > 0);
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Verifica se o valor informado corresponde a um modo suportado pelo componente.
|
|
771
|
-
*
|
|
772
|
-
* @param value - Valor recebido via prop ou atributo.
|
|
773
|
-
* @returns `true` quando o valor pertence ao conjunto aceito de modos.
|
|
774
|
-
*/
|
|
775
|
-
function isValidDatetimePickerMode(value) {
|
|
776
|
-
return Object.values(datetimePickerConstants.DATETIME_PICKER_MODE).includes(value);
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Normaliza o modo informado e aplica o valor padrão quando necessário.
|
|
780
|
-
*
|
|
781
|
-
* @param value - Valor bruto recebido do consumidor do componente.
|
|
782
|
-
* @returns O modo válido correspondente, ou o valor padrão quando o input for inválido.
|
|
783
|
-
*/
|
|
784
|
-
function normalizeDatetimePickerMode(value) {
|
|
785
|
-
if (isValidDatetimePickerMode(value))
|
|
786
|
-
return value;
|
|
787
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'mode', value, datetimePickerConstants.DATETIME_PICKER_MODE.DEFAULT);
|
|
788
|
-
return datetimePickerConstants.DATETIME_PICKER_MODE.DEFAULT;
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Verifica se o valor representa um modo de seleção suportado.
|
|
792
|
-
*
|
|
793
|
-
* @param value - Valor bruto recebido via prop.
|
|
794
|
-
* @returns `true` quando o valor é `'single'` ou `'range'`.
|
|
795
|
-
*/
|
|
796
|
-
function isValidDatetimePickerSelectionMode(value) {
|
|
797
|
-
return value === 'single' || value === 'range';
|
|
798
|
-
}
|
|
799
|
-
/**
|
|
800
|
-
* Normaliza o modo de seleção informado e aplica o valor padrão quando necessário.
|
|
801
|
-
*
|
|
802
|
-
* @param value - Valor bruto recebido do consumidor do componente.
|
|
803
|
-
* @returns O modo de seleção válido correspondente, ou `'single'` quando o input for inválido.
|
|
804
|
-
*/
|
|
805
|
-
function normalizeDatetimePickerSelectionMode(value) {
|
|
806
|
-
if (isValidDatetimePickerSelectionMode(value))
|
|
807
|
-
return value;
|
|
808
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'selectionMode', value, 'single');
|
|
809
|
-
return 'single';
|
|
810
|
-
}
|
|
811
|
-
/**
|
|
812
|
-
* Normaliza a seleção inicial para um valor aplicável pelo componente.
|
|
813
|
-
*
|
|
814
|
-
* @param value - Valor bruto recebido via prop.
|
|
815
|
-
* @returns `'now'`, `Date` normalizada ou `null` quando inválido.
|
|
816
|
-
*/
|
|
817
|
-
function normalizeDatetimePickerInitialMoment(value) {
|
|
818
|
-
if (value === null)
|
|
819
|
-
return null;
|
|
820
|
-
if (value === 'now')
|
|
821
|
-
return 'now';
|
|
822
|
-
const normalizedDate = normalizeDateCandidate(value);
|
|
823
|
-
if (normalizedDate !== null) {
|
|
824
|
-
return normalizedDate;
|
|
825
|
-
}
|
|
826
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'initialMoment', value, 'null');
|
|
827
|
-
return null;
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Normaliza a lista de datas desabilitadas para uma coleção de `Date` válidas.
|
|
831
|
-
*
|
|
832
|
-
* @param value - Valor bruto recebido via prop.
|
|
833
|
-
* @returns Lista normalizada de datas; retorna array vazio quando inválido.
|
|
834
|
-
*/
|
|
835
|
-
function normalizeDatetimePickerDisabledDates(value) {
|
|
836
|
-
if (value === null) {
|
|
837
|
-
return [];
|
|
838
|
-
}
|
|
839
|
-
if (typeof value === 'string') {
|
|
840
|
-
const tokens = tokenizeDisabledDatesString(value);
|
|
841
|
-
if (tokens.length === 0) {
|
|
842
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'disabledDates', value, '[]');
|
|
843
|
-
return [];
|
|
844
|
-
}
|
|
845
|
-
const normalizedDates = tokens
|
|
846
|
-
.map((dateCandidate) => normalizeDateCandidate(dateCandidate))
|
|
847
|
-
.filter((dateCandidate) => dateCandidate !== null);
|
|
848
|
-
if (normalizedDates.length !== tokens.length) {
|
|
849
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'disabledDates', value, '[]');
|
|
850
|
-
}
|
|
851
|
-
return normalizedDates;
|
|
852
|
-
}
|
|
853
|
-
if (!Array.isArray(value)) {
|
|
854
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'disabledDates', value, '[]');
|
|
855
|
-
return [];
|
|
856
|
-
}
|
|
857
|
-
const normalizedDates = value
|
|
858
|
-
.map((dateCandidate) => normalizeDateCandidate(dateCandidate))
|
|
859
|
-
.filter((dateCandidate) => dateCandidate !== null);
|
|
860
|
-
if (normalizedDates.length !== value.length) {
|
|
861
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'disabledDates', value, '[]');
|
|
862
|
-
}
|
|
863
|
-
return normalizedDates;
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* Verifica se o valor informado representa um índice válido de início da semana.
|
|
867
|
-
*
|
|
868
|
-
* @param value - Valor bruto recebido via prop.
|
|
869
|
-
* @returns `true` quando o valor está entre `0` e `6`.
|
|
870
|
-
*/
|
|
871
|
-
function isValidDatetimePickerWeekStartsOn(value) {
|
|
872
|
-
return VALID_WEEK_START_DAYS.includes(value);
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* Normaliza o índice de início da semana e aplica `0` quando o valor é inválido.
|
|
876
|
-
*
|
|
877
|
-
* @param value - Valor bruto recebido do consumidor do componente.
|
|
878
|
-
* @returns Índice normalizado para o primeiro dia da semana.
|
|
879
|
-
*/
|
|
880
|
-
function normalizeDatetimePickerWeekStartsOn(value) {
|
|
881
|
-
const numericValue = typeof value === 'string' ? Number(value) : value;
|
|
882
|
-
if (typeof numericValue === 'number' &&
|
|
883
|
-
Number.isInteger(numericValue) &&
|
|
884
|
-
isValidDatetimePickerWeekStartsOn(numericValue)) {
|
|
885
|
-
return numericValue;
|
|
886
|
-
}
|
|
887
|
-
isValid.warnInvalidPropValue('br-datetime-picker', 'weekStartsOn', String(value), '0');
|
|
888
|
-
return 0;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
const datetimePickerCss = () => `*,*::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))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@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))}.col-lg-3{flex-basis:25%;max-width:25%}}@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{display:inline-block;margin-bottom:var(--spacing-scale-base);position:relative;width:var(--br-datetime-picker-width, 304px)}:host([mode=time]){width:var(--br-datetime-picker-time-width, 144px)}:host([mode=date]){width:var(--br-datetime-picker-date-width, 304px)}:host([mode=datetime]){width:var(--br-datetime-picker-datetime-width, 304px)}.br-datetime-picker{width:100%}.br-datetime-picker br-datetime-input,.br-datetime-picker br-card{display:block;width:100%}.br-datetime-picker br-card{font-size:var(--font-size-scale-base)}`;
|
|
427
|
+
const datetimePickerCss = () => `*,*::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}pre{font-family:monospace;font-size:1em}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,optgroup,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))}.col-sm-4{flex-basis:33.3333333333%;max-width:33.3333333333%}}@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))}.col-lg-3{flex-basis:25%;max-width:25%}}@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-out{animation-timing-function:cubic-bezier(0, 0, 0.58, 1)}.ease-in-out{animation-timing-function:cubic-bezier(0.42, 0, 0.58, 1)}.fast{animation-duration:var(--duration-fast)}.slow{animation-duration:var(--duration-slow)}.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}fieldset[disabled]{opacity:1}.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)}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)}pre,.pre{background:var(--gray-5);margin:var(--spacing-scale-2x) 0 var(--spacing-scale-4x);padding:var(--spacing-scale-2x)}pre code,.pre code{display:inline;padding:0}*[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)}@media (prefers-reduced-motion: reduce){:host,:host::before,:host::after,:host *,:host *::before,:host *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}}:host-context([data-wbc-reduced-motion=true])::before,:host-context([data-wbc-reduced-motion=true])::after,:host-context([data-wbc-reduced-motion=true]) *,:host-context([data-wbc-reduced-motion=true]) *::before,:host-context([data-wbc-reduced-motion=true]) *::after{animation:none !important;scroll-behavior:auto !important;transition:none !important}:host{box-sizing:border-box;display:block;margin-bottom:var(--spacing-scale-base);max-width:var(--br-datetime-picker-width, none);position:relative;width:100%}:host([mode=time]){max-width:var(--br-datetime-picker-time-width, var(--br-datetime-picker-width, none));width:100%}:host([mode=date]){max-width:var(--br-datetime-picker-date-width, var(--br-datetime-picker-width, none));width:100%}:host([mode=datetime]){max-width:var(--br-datetime-picker-datetime-width, var(--br-datetime-picker-width, none));width:100%}.br-datetime-picker{width:100%}.br-datetime-picker br-datetime-input,.br-datetime-picker br-card{display:block;width:100%}.br-datetime-picker br-card{font-size:var(--font-size-scale-base);animation:none}@media (prefers-reduced-motion: no-preference){.br-datetime-picker br-card{animation:datetime-panel-open var(--duration-fast, 300ms) var(--animation-ease-out, ease-out) both}}@keyframes datetime-panel-open{from{opacity:0}to{opacity:1}}`;
|
|
892
428
|
|
|
893
429
|
const DatetimePicker = class {
|
|
894
430
|
constructor(hostRef) {
|
|
@@ -912,7 +448,7 @@ const DatetimePicker = class {
|
|
|
912
448
|
this.customValidationMessage = '';
|
|
913
449
|
this.validatorMessage = null;
|
|
914
450
|
this.isValidating = false;
|
|
915
|
-
this.feedbackId =
|
|
451
|
+
this.feedbackId = id.generateUniqueId('br-datetime-picker-feedback');
|
|
916
452
|
/** Lista normalizada de datas indisponíveis para seleção. */
|
|
917
453
|
this.normalizedDisabledDates = [];
|
|
918
454
|
/** Data final selecionada no modo de intervalo. */
|
|
@@ -949,9 +485,25 @@ const DatetimePicker = class {
|
|
|
949
485
|
this.name = '';
|
|
950
486
|
/** Indica se o campo deve ter valor antes do envio do formulário. */
|
|
951
487
|
this.required = false;
|
|
952
|
-
/**
|
|
488
|
+
/**
|
|
489
|
+
* Menor data/horário aceito, interpretado conforme `mode`. Valores inválidos são ignorados.
|
|
490
|
+
* Aceita texto no atributo HTML ou uma instância de `Date` por property binding.
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```html
|
|
494
|
+
* <br-datetime-picker mode="date" min="2026-01-01"></br-datetime-picker>
|
|
495
|
+
* ```
|
|
496
|
+
*/
|
|
953
497
|
this.min = null;
|
|
954
|
-
/**
|
|
498
|
+
/**
|
|
499
|
+
* Maior data/horário aceito, interpretado conforme `mode`. Valores inválidos são ignorados.
|
|
500
|
+
* Aceita texto no atributo HTML ou uma instância de `Date` por property binding.
|
|
501
|
+
*
|
|
502
|
+
* @example
|
|
503
|
+
* ```html
|
|
504
|
+
* <br-datetime-picker mode="date" max="2026-12-31"></br-datetime-picker>
|
|
505
|
+
* ```
|
|
506
|
+
*/
|
|
955
507
|
this.max = null;
|
|
956
508
|
/**
|
|
957
509
|
* Define o tipo de seleção de datas para o calendário: única ou intervalo.
|
|
@@ -960,6 +512,7 @@ const DatetimePicker = class {
|
|
|
960
512
|
* Se `selectionMode="range"` for informado, o componente ajusta automaticamente
|
|
961
513
|
* `mode` para `date`. Se `mode` mudar para `time` ou `datetime`, o componente
|
|
962
514
|
* normaliza `selectionMode` para `single` quando necessário.
|
|
515
|
+
* Valores inválidos usam `single`.
|
|
963
516
|
*/
|
|
964
517
|
this.selectionMode = 'single';
|
|
965
518
|
/**
|
|
@@ -981,11 +534,22 @@ const DatetimePicker = class {
|
|
|
981
534
|
* Reativo em runtime: mudanças na prop atualizam estado e subcomponentes.
|
|
982
535
|
*
|
|
983
536
|
* @default null
|
|
537
|
+
* @example
|
|
538
|
+
* ```html
|
|
539
|
+
* <br-datetime-picker initial-moment="now"></br-datetime-picker>
|
|
540
|
+
* ```
|
|
984
541
|
*/
|
|
985
542
|
this.initialMoment = null;
|
|
986
543
|
/**
|
|
987
|
-
*
|
|
988
|
-
* pelo evento `valueChange`.
|
|
544
|
+
* Instância de `Date` selecionada pelo usuário no modo simples.
|
|
545
|
+
* Pode ser controlada por property binding e é atualizada pelo evento `valueChange`.
|
|
546
|
+
* Para formulários e atributos textuais, use `serializedValue`.
|
|
547
|
+
*
|
|
548
|
+
* @example
|
|
549
|
+
* ```js
|
|
550
|
+
* const picker = document.querySelector('br-datetime-picker');
|
|
551
|
+
* picker.value = new Date(2026, 8, 7, 14, 30);
|
|
552
|
+
* ```
|
|
989
553
|
*/
|
|
990
554
|
this.value = null;
|
|
991
555
|
/**
|
|
@@ -1004,6 +568,15 @@ const DatetimePicker = class {
|
|
|
1004
568
|
* A comparação considera apenas o dia (ano/mês/dia), ignorando hora.
|
|
1005
569
|
*
|
|
1006
570
|
* @default null
|
|
571
|
+
* @example
|
|
572
|
+
* ```html
|
|
573
|
+
* <br-datetime-picker mode="date" disabled-dates="2026-09-07 2026-09-08"></br-datetime-picker>
|
|
574
|
+
* ```
|
|
575
|
+
* @example
|
|
576
|
+
* ```js
|
|
577
|
+
* const picker = document.querySelector('br-datetime-picker');
|
|
578
|
+
* picker.disabledDates = [new Date(2026, 8, 7), '2026-09-08'];
|
|
579
|
+
* ```
|
|
1007
580
|
*/
|
|
1008
581
|
this.disabledDates = null;
|
|
1009
582
|
/**
|
|
@@ -1043,9 +616,9 @@ const DatetimePicker = class {
|
|
|
1043
616
|
if (selectedDate !== null && this.isDateDisabled(selectedDate)) {
|
|
1044
617
|
return;
|
|
1045
618
|
}
|
|
1046
|
-
this.referenceDate =
|
|
619
|
+
this.referenceDate = datetimePickerPropsValidation.toDateExports.toDate(referenceDate);
|
|
1047
620
|
const shouldEmitPublicEvent = this.resolvePublicEventEmissionForRange(range);
|
|
1048
|
-
this.setComponentValue(value === null ? null :
|
|
621
|
+
this.setComponentValue(value === null ? null : datetimePickerPropsValidation.toDateExports.toDate(value), shouldEmitPublicEvent && this.isInitialized);
|
|
1049
622
|
};
|
|
1050
623
|
/**
|
|
1051
624
|
* Alterna visibilidade do picker quando o input solicita.
|
|
@@ -1057,7 +630,7 @@ const DatetimePicker = class {
|
|
|
1057
630
|
event.stopPropagation();
|
|
1058
631
|
const willOpen = !this.isPickerOpen;
|
|
1059
632
|
if (willOpen) {
|
|
1060
|
-
this.referenceDate = this.value === null ?
|
|
633
|
+
this.referenceDate = this.value === null ? datetimePickerPropsValidation.toDateExports.toDate(new Date()) : datetimePickerPropsValidation.toDateExports.toDate(this.value);
|
|
1061
634
|
}
|
|
1062
635
|
this.isPickerOpen = willOpen;
|
|
1063
636
|
};
|
|
@@ -1082,7 +655,7 @@ const DatetimePicker = class {
|
|
|
1082
655
|
return;
|
|
1083
656
|
event.stopPropagation();
|
|
1084
657
|
this.isPickerOpen = false;
|
|
1085
|
-
this.
|
|
658
|
+
void this.focusInput();
|
|
1086
659
|
};
|
|
1087
660
|
}
|
|
1088
661
|
formDisabledCallback(disabled) {
|
|
@@ -1159,7 +732,7 @@ const DatetimePicker = class {
|
|
|
1159
732
|
}
|
|
1160
733
|
/** Sincroniza alterações externas do valor com o estado visual e o formulário nativo. */
|
|
1161
734
|
handleValueChange(newValue) {
|
|
1162
|
-
const normalizedValue = newValue instanceof Date && !Number.isNaN(newValue.getTime()) ?
|
|
735
|
+
const normalizedValue = newValue instanceof Date && !Number.isNaN(newValue.getTime()) ? datetimePickerPropsValidation.toDateExports.toDate(newValue) : null;
|
|
1163
736
|
if (newValue !== null && normalizedValue === null) {
|
|
1164
737
|
this.value = null;
|
|
1165
738
|
return;
|
|
@@ -1180,7 +753,7 @@ const DatetimePicker = class {
|
|
|
1180
753
|
handleValueAsDateChange(newValue) {
|
|
1181
754
|
if (this.syncingCanonicalValues || newValue === undefined)
|
|
1182
755
|
return;
|
|
1183
|
-
const normalizedValue = newValue instanceof Date && !Number.isNaN(newValue.getTime()) ?
|
|
756
|
+
const normalizedValue = newValue instanceof Date && !Number.isNaN(newValue.getTime()) ? datetimePickerPropsValidation.toDateExports.toDate(newValue) : null;
|
|
1184
757
|
if (this.sameDate(this.value, normalizedValue))
|
|
1185
758
|
return;
|
|
1186
759
|
this.value = normalizedValue;
|
|
@@ -1204,10 +777,14 @@ const DatetimePicker = class {
|
|
|
1204
777
|
handleRangeValueChange(newValue) {
|
|
1205
778
|
if (!newValue || this.selectionMode !== 'range')
|
|
1206
779
|
return;
|
|
780
|
+
if (!datetimePickerPropsValidation.isValidDatetimePickerDateRange(newValue)) {
|
|
781
|
+
propWarning.reportInvalidPropValue(this.el, 'rangeValue', newValue, 'Informe um objeto com `start` e `end` como Date válido ou null.', 'Mantendo o último intervalo efetivo.');
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
1207
784
|
this.rangeStart = this.cloneDate(newValue.start);
|
|
1208
785
|
this.rangeEnd = this.cloneDate(newValue.end);
|
|
1209
786
|
const nextValue = newValue.end ?? newValue.start;
|
|
1210
|
-
this.referenceDate = nextValue ?
|
|
787
|
+
this.referenceDate = nextValue ? datetimePickerPropsValidation.toDateExports.toDate(nextValue) : this.referenceDate;
|
|
1211
788
|
this.setComponentValue(nextValue);
|
|
1212
789
|
}
|
|
1213
790
|
/** Registra o listener global somente enquanto o picker está aberto. */
|
|
@@ -1223,17 +800,19 @@ const DatetimePicker = class {
|
|
|
1223
800
|
* Normaliza o modo antes da primeira renderização e aplica a data atual quando solicitado.
|
|
1224
801
|
*/
|
|
1225
802
|
componentWillLoad() {
|
|
1226
|
-
|
|
803
|
+
// A inicialização dos defaults sincroniza os espelhos; preserve as entradas do consumidor.
|
|
804
|
+
const { serializedValue, valueAsDate } = this;
|
|
805
|
+
this.referenceDate = datetimePickerPropsValidation.resolveSsrLocalDate(this.el, this.referenceDate);
|
|
1227
806
|
this.initializeMode();
|
|
1228
807
|
this.initializeSelectionMode();
|
|
1229
808
|
this.initializeWeekStartsOn();
|
|
1230
809
|
this.initializeDisabledDates();
|
|
1231
810
|
this.initializeDefaultValue();
|
|
1232
|
-
if (
|
|
1233
|
-
this.restoreSerializedValue(
|
|
811
|
+
if (serializedValue !== undefined) {
|
|
812
|
+
this.restoreSerializedValue(serializedValue);
|
|
1234
813
|
}
|
|
1235
|
-
else if (
|
|
1236
|
-
this.handleValueAsDateChange(
|
|
814
|
+
else if (valueAsDate !== undefined) {
|
|
815
|
+
this.handleValueAsDateChange(valueAsDate);
|
|
1237
816
|
}
|
|
1238
817
|
this.initialFormValue = this.cloneDate(this.value);
|
|
1239
818
|
this.syncCanonicalValues();
|
|
@@ -1268,7 +847,7 @@ const DatetimePicker = class {
|
|
|
1268
847
|
this.rangeStart = null;
|
|
1269
848
|
this.rangeEnd = null;
|
|
1270
849
|
}
|
|
1271
|
-
this.referenceDate = nextValue === null ?
|
|
850
|
+
this.referenceDate = nextValue === null ? datetimePickerPropsValidation.toDateExports.toDate(new Date()) : datetimePickerPropsValidation.toDateExports.toDate(nextValue);
|
|
1272
851
|
this.setComponentValue(nextValue);
|
|
1273
852
|
}
|
|
1274
853
|
/** Retorna uma cópia do valor selecionado atualmente. */
|
|
@@ -1279,7 +858,7 @@ const DatetimePicker = class {
|
|
|
1279
858
|
async clear() {
|
|
1280
859
|
this.rangeStart = null;
|
|
1281
860
|
this.rangeEnd = null;
|
|
1282
|
-
this.referenceDate =
|
|
861
|
+
this.referenceDate = datetimePickerPropsValidation.toDateExports.toDate(new Date());
|
|
1283
862
|
this.setComponentValue(null);
|
|
1284
863
|
}
|
|
1285
864
|
/** Abre o picker quando o componente estiver habilitado. */
|
|
@@ -1287,7 +866,7 @@ const DatetimePicker = class {
|
|
|
1287
866
|
if (this.isDisabled()) {
|
|
1288
867
|
return;
|
|
1289
868
|
}
|
|
1290
|
-
this.referenceDate = this.value === null ?
|
|
869
|
+
this.referenceDate = this.value === null ? datetimePickerPropsValidation.toDateExports.toDate(new Date()) : datetimePickerPropsValidation.toDateExports.toDate(this.value);
|
|
1291
870
|
this.isPickerOpen = true;
|
|
1292
871
|
}
|
|
1293
872
|
/** Fecha o picker. */
|
|
@@ -1304,7 +883,8 @@ const DatetimePicker = class {
|
|
|
1304
883
|
}
|
|
1305
884
|
/** Move o foco para o input nativo interno. */
|
|
1306
885
|
async focusInput() {
|
|
1307
|
-
this.
|
|
886
|
+
const input = this.datetimeInputElement ?? this.el.shadowRoot?.querySelector('br-datetime-input');
|
|
887
|
+
await input?.focusInput?.();
|
|
1308
888
|
}
|
|
1309
889
|
/** Define intervalo de datas de forma imperativa, forçando modo date e selectionMode range. */
|
|
1310
890
|
async setRange(start, end) {
|
|
@@ -1323,7 +903,7 @@ const DatetimePicker = class {
|
|
|
1323
903
|
this.rangeStart = this.cloneDate(normalizedStart);
|
|
1324
904
|
this.rangeEnd = this.cloneDate(normalizedEnd);
|
|
1325
905
|
const nextValue = normalizedEnd ?? normalizedStart;
|
|
1326
|
-
this.referenceDate = nextValue === null ?
|
|
906
|
+
this.referenceDate = nextValue === null ? datetimePickerPropsValidation.toDateExports.toDate(new Date()) : datetimePickerPropsValidation.toDateExports.toDate(nextValue);
|
|
1327
907
|
this.setComponentValue(nextValue);
|
|
1328
908
|
}
|
|
1329
909
|
/**
|
|
@@ -1398,7 +978,7 @@ const DatetimePicker = class {
|
|
|
1398
978
|
* @param value - Modo informado pelo consumidor do componente.
|
|
1399
979
|
*/
|
|
1400
980
|
ensureValidSelectionMode(value) {
|
|
1401
|
-
this.selectionMode = normalizeDatetimePickerSelectionMode(value);
|
|
981
|
+
this.selectionMode = datetimePickerPropsValidation.normalizeDatetimePickerSelectionMode(value);
|
|
1402
982
|
}
|
|
1403
983
|
/**
|
|
1404
984
|
* Normaliza o modo de seleção logo na inicialização.
|
|
@@ -1412,7 +992,7 @@ const DatetimePicker = class {
|
|
|
1412
992
|
}
|
|
1413
993
|
/** Valida o dia inicial da semana e corrige para padrão quando necessário. */
|
|
1414
994
|
ensureValidWeekStartsOn(value) {
|
|
1415
|
-
this.weekStartsOn = normalizeDatetimePickerWeekStartsOn(value);
|
|
995
|
+
this.weekStartsOn = datetimePickerPropsValidation.normalizeDatetimePickerWeekStartsOn(value);
|
|
1416
996
|
}
|
|
1417
997
|
/**
|
|
1418
998
|
* Limpa o estado do intervalo de datas ao mudar para modo single.
|
|
@@ -1479,7 +1059,7 @@ const DatetimePicker = class {
|
|
|
1479
1059
|
* @param value - Valor bruto recebido por prop/atributo ou método público.
|
|
1480
1060
|
*/
|
|
1481
1061
|
syncDisabledDates(value) {
|
|
1482
|
-
this.normalizedDisabledDates = normalizeDatetimePickerDisabledDates(value);
|
|
1062
|
+
this.normalizedDisabledDates = datetimePickerPropsValidation.normalizeDatetimePickerDisabledDates(value);
|
|
1483
1063
|
if (this.rangeStart !== null && this.isDateDisabled(this.rangeStart)) {
|
|
1484
1064
|
this.rangeStart = null;
|
|
1485
1065
|
}
|
|
@@ -1495,7 +1075,7 @@ const DatetimePicker = class {
|
|
|
1495
1075
|
*/
|
|
1496
1076
|
initializeDefaultValue() {
|
|
1497
1077
|
if (this.value instanceof Date && !Number.isNaN(this.value.getTime())) {
|
|
1498
|
-
this.referenceDate =
|
|
1078
|
+
this.referenceDate = datetimePickerPropsValidation.toDateExports.toDate(this.value);
|
|
1499
1079
|
return;
|
|
1500
1080
|
}
|
|
1501
1081
|
this.value = null;
|
|
@@ -1510,9 +1090,9 @@ const DatetimePicker = class {
|
|
|
1510
1090
|
if (this.isDisabled()) {
|
|
1511
1091
|
return;
|
|
1512
1092
|
}
|
|
1513
|
-
const normalizedSelection = normalizeDatetimePickerInitialMoment(selection);
|
|
1093
|
+
const normalizedSelection = datetimePickerPropsValidation.normalizeDatetimePickerInitialMoment(selection);
|
|
1514
1094
|
if (normalizedSelection === 'now') {
|
|
1515
|
-
const now =
|
|
1095
|
+
const now = datetimePickerPropsValidation.toDateExports.toDate(new Date());
|
|
1516
1096
|
this.referenceDate = now;
|
|
1517
1097
|
this.setComponentValue(now, shouldEmitEvents);
|
|
1518
1098
|
return;
|
|
@@ -1523,7 +1103,7 @@ const DatetimePicker = class {
|
|
|
1523
1103
|
this.setComponentValue(null, shouldEmitEvents);
|
|
1524
1104
|
return;
|
|
1525
1105
|
}
|
|
1526
|
-
const selectedDate =
|
|
1106
|
+
const selectedDate = datetimePickerPropsValidation.toDateExports.toDate(normalizedSelection);
|
|
1527
1107
|
if (this.isDateDisabled(selectedDate)) {
|
|
1528
1108
|
this.setComponentValue(null, shouldEmitEvents);
|
|
1529
1109
|
return;
|
|
@@ -1564,7 +1144,7 @@ const DatetimePicker = class {
|
|
|
1564
1144
|
return null;
|
|
1565
1145
|
}
|
|
1566
1146
|
if (value instanceof Date) {
|
|
1567
|
-
return Number.isNaN(value.getTime()) ? null :
|
|
1147
|
+
return Number.isNaN(value.getTime()) ? null : datetimePickerPropsValidation.toDateExports.toDate(value);
|
|
1568
1148
|
}
|
|
1569
1149
|
return parseDatetimePickerSerializedValue(value, mode, this.referenceDate);
|
|
1570
1150
|
}
|
|
@@ -1589,7 +1169,7 @@ const DatetimePicker = class {
|
|
|
1589
1169
|
}
|
|
1590
1170
|
/** Retorna o mesmo valor que será submetido pelo ElementInternals. */
|
|
1591
1171
|
getSerializedValue() {
|
|
1592
|
-
const zero = (date) => (date === null ? null :
|
|
1172
|
+
const zero = (date) => (date === null ? null : datetimePickerPropsValidation.setExports.set(date, { seconds: 0, milliseconds: 0 }));
|
|
1593
1173
|
return (serializeDatetimePickerFormValue(this.value === null ? null : zero(this.value), {
|
|
1594
1174
|
mode: this.mode,
|
|
1595
1175
|
selectionMode: this.selectionMode,
|
|
@@ -1601,12 +1181,9 @@ const DatetimePicker = class {
|
|
|
1601
1181
|
sameDate(left, right) {
|
|
1602
1182
|
return left === right || (left !== null && right !== null && left.getTime() === right.getTime());
|
|
1603
1183
|
}
|
|
1604
|
-
/**
|
|
1184
|
+
/** Retorna a âncora de validação, ou undefined antes do primeiro render. */
|
|
1605
1185
|
getNativeInputElement() {
|
|
1606
|
-
return this.el.shadowRoot
|
|
1607
|
-
?.querySelector('br-datetime-input')
|
|
1608
|
-
?.shadowRoot?.querySelector('br-input')
|
|
1609
|
-
?.shadowRoot?.querySelector('input');
|
|
1186
|
+
return (this.datetimeInputElement ?? this.el.shadowRoot?.querySelector('br-datetime-input') ?? undefined);
|
|
1610
1187
|
}
|
|
1611
1188
|
/** Atualiza estado interno, FormData e validação com uma única chamada. */
|
|
1612
1189
|
setComponentValue(nextValue, shouldEmitPublicEvent = true) {
|
|
@@ -1645,11 +1222,11 @@ const DatetimePicker = class {
|
|
|
1645
1222
|
buildRangeDatesState(start, end) {
|
|
1646
1223
|
const intervalStart = start.getTime() <= end.getTime() ? start : end;
|
|
1647
1224
|
const intervalEnd = start.getTime() <= end.getTime() ? end : start;
|
|
1648
|
-
return
|
|
1225
|
+
return datetimePickerPropsValidation.eachDayOfIntervalExports.eachDayOfInterval({
|
|
1649
1226
|
start: intervalStart,
|
|
1650
1227
|
end: intervalEnd,
|
|
1651
1228
|
}).map((date) => ({
|
|
1652
|
-
date:
|
|
1229
|
+
date: datetimePickerPropsValidation.toDateExports.toDate(date),
|
|
1653
1230
|
disabled: this.isDateDisabled(date),
|
|
1654
1231
|
}));
|
|
1655
1232
|
}
|
|
@@ -1660,7 +1237,7 @@ const DatetimePicker = class {
|
|
|
1660
1237
|
this.rangeStart = null;
|
|
1661
1238
|
this.rangeEnd = null;
|
|
1662
1239
|
}
|
|
1663
|
-
this.referenceDate = nextValue === null ?
|
|
1240
|
+
this.referenceDate = nextValue === null ? datetimePickerPropsValidation.toDateExports.toDate(new Date()) : datetimePickerPropsValidation.toDateExports.toDate(nextValue);
|
|
1664
1241
|
this.syncCanonicalValues();
|
|
1665
1242
|
this.updateFormInternals();
|
|
1666
1243
|
}
|
|
@@ -1677,7 +1254,7 @@ const DatetimePicker = class {
|
|
|
1677
1254
|
/** Atualiza o valor submetido no FormData do form-associated custom element. */
|
|
1678
1255
|
syncFormValue() {
|
|
1679
1256
|
try {
|
|
1680
|
-
const zero = (d) => (d === null ? null :
|
|
1257
|
+
const zero = (d) => (d === null ? null : datetimePickerPropsValidation.setExports.set(d, { seconds: 0, milliseconds: 0 }));
|
|
1681
1258
|
const nextValue = this.isDisabled()
|
|
1682
1259
|
? null
|
|
1683
1260
|
: serializeDatetimePickerFormValue(this.value === null ? null : zero(this.value), {
|
|
@@ -1705,8 +1282,8 @@ const DatetimePicker = class {
|
|
|
1705
1282
|
selectionMode: this.selectionMode,
|
|
1706
1283
|
rangeStart: this.rangeStart,
|
|
1707
1284
|
rangeEnd: this.rangeEnd});
|
|
1708
|
-
const min = this.parseConstraintValue(this.min);
|
|
1709
|
-
const max = this.parseConstraintValue(this.max);
|
|
1285
|
+
const min = this.parseConstraintValue(this.min, 'min');
|
|
1286
|
+
const max = this.parseConstraintValue(this.max, 'max');
|
|
1710
1287
|
const values = this.selectionMode === 'range' ? [this.rangeStart, this.rangeEnd] : [this.value];
|
|
1711
1288
|
const rangeUnderflow = min !== null && values.some((value) => value !== null && value.getTime() < min.getTime());
|
|
1712
1289
|
const rangeOverflow = max !== null && values.some((value) => value !== null && value.getTime() > max.getTime());
|
|
@@ -1737,15 +1314,25 @@ const DatetimePicker = class {
|
|
|
1737
1314
|
// Ambientes sem ElementInternals completo não devem falhar.
|
|
1738
1315
|
}
|
|
1739
1316
|
}
|
|
1740
|
-
parseConstraintValue(value) {
|
|
1741
|
-
|
|
1317
|
+
parseConstraintValue(value, propertyName) {
|
|
1318
|
+
if (value === null)
|
|
1319
|
+
return null;
|
|
1320
|
+
if (!(value instanceof Date) && typeof value !== 'string') {
|
|
1321
|
+
propWarning.reportInvalidPropValue(this.el, propertyName, value, 'Informe uma data válida como Date ou string compatível com o modo atual.', 'Aplicando fallback null (sem limite).');
|
|
1322
|
+
return null;
|
|
1323
|
+
}
|
|
1324
|
+
const parsedValue = this.parseMethodValue(value, this.mode);
|
|
1325
|
+
if (parsedValue !== null)
|
|
1326
|
+
return parsedValue;
|
|
1327
|
+
propWarning.reportInvalidPropValue(this.el, propertyName, value, 'Informe uma data válida como Date ou string compatível com o modo atual.', 'Aplicando fallback null (sem limite).');
|
|
1328
|
+
return null;
|
|
1742
1329
|
}
|
|
1743
1330
|
isDisabled() {
|
|
1744
1331
|
return validator.isFormControlDisabled(this.disabled, this.formDisabled);
|
|
1745
1332
|
}
|
|
1746
1333
|
/** Duplica datas para evitar compartilhamento de referência mutável. */
|
|
1747
1334
|
cloneDate(value) {
|
|
1748
|
-
return value === null ? null :
|
|
1335
|
+
return value === null ? null : datetimePickerPropsValidation.toDateExports.toDate(value);
|
|
1749
1336
|
}
|
|
1750
1337
|
/**
|
|
1751
1338
|
* Verifica se a data pertence ao conjunto de dias bloqueados.
|
|
@@ -1754,7 +1341,7 @@ const DatetimePicker = class {
|
|
|
1754
1341
|
* @returns `true` quando o dia estiver desabilitado.
|
|
1755
1342
|
*/
|
|
1756
1343
|
isDateDisabled(date) {
|
|
1757
|
-
return this.normalizedDisabledDates.some((disabledDate) =>
|
|
1344
|
+
return this.normalizedDisabledDates.some((disabledDate) => datetimePickerPropsValidation.isSameDayExports.isSameDay(disabledDate, date));
|
|
1758
1345
|
}
|
|
1759
1346
|
/**
|
|
1760
1347
|
* Corrige valores inválidos para o modo padrão, preservando a consistência do estado refletido.
|
|
@@ -1762,7 +1349,7 @@ const DatetimePicker = class {
|
|
|
1762
1349
|
* @param value - Modo informado pelo consumidor do componente.
|
|
1763
1350
|
*/
|
|
1764
1351
|
ensureValidMode(value) {
|
|
1765
|
-
const normalizedMode = normalizeDatetimePickerMode(value);
|
|
1352
|
+
const normalizedMode = datetimePickerPropsValidation.normalizeDatetimePickerMode(value);
|
|
1766
1353
|
if (normalizedMode !== value) {
|
|
1767
1354
|
this.mode = normalizedMode;
|
|
1768
1355
|
}
|
|
@@ -1796,7 +1383,9 @@ const DatetimePicker = class {
|
|
|
1796
1383
|
}
|
|
1797
1384
|
/** Renderiza o campo de entrada responsável por abrir e sincronizar o picker. */
|
|
1798
1385
|
renderInputField() {
|
|
1799
|
-
return (index.h("br-datetime-input", {
|
|
1386
|
+
return (index.h("br-datetime-input", { ref: (element) => {
|
|
1387
|
+
this.datetimeInputElement = element;
|
|
1388
|
+
}, referenceDate: this.referenceDate, value: this.value, selectionMode: this.selectionMode, rangeStart: this.rangeStart, rangeEnd: this.rangeEnd, placeholder: this.placeholder, mode: this.mode, disabled: this.isDisabled(), onDateStateChange: this.handleDateStateChange, onTogglePicker: this.handleTogglePicker, exportparts: "container: input-container, input: input-field, icon: input-icon" }));
|
|
1800
1389
|
}
|
|
1801
1390
|
/** Renderiza apenas o seletor de data. */
|
|
1802
1391
|
renderDatePicker() {
|
|
@@ -1831,7 +1420,7 @@ const DatetimePicker = class {
|
|
|
1831
1420
|
* Renderização principal do componente.
|
|
1832
1421
|
*/
|
|
1833
1422
|
render() {
|
|
1834
|
-
return (index.h(index.Host, { key: '
|
|
1423
|
+
return (index.h(index.Host, { key: 'b964215e48b1871bf6ab1b045612f3d166543177', onKeyDown: this.handlePickerKeydown, "aria-busy": this.isValidating ? 'true' : null, "aria-describedby": this.hasFeedbackSlot || this.customValidationMessage || this.validatorMessage ? this.feedbackId : null, "aria-errormessage": this.customValidationMessage || this.validatorMessage || this.hasFeedbackSlot ? this.feedbackId : null }, index.h("div", { key: '50ba10963ba4e8bdf7c70f0d4513eea657692df8', class: this.getCssClassMap(), part: "container" }, this.renderInputField(), this.renderPickerContent()), index.h("div", { key: 'b220e70a85d8ba941dabed18a5a0dcdc9a99124f', id: this.feedbackId, part: "feedback", hidden: !this.hasFeedbackSlot && !this.customValidationMessage && !this.validatorMessage }, index.h("slot", { key: 'cdcc69b126491b2cea3b634066f1e4071c1c3b61', 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)));
|
|
1835
1424
|
}
|
|
1836
1425
|
static get formAssociated() { return true; }
|
|
1837
1426
|
get el() { return index.getElement(this); }
|
|
@@ -1880,7 +1469,6 @@ const DatetimePicker = class {
|
|
|
1880
1469
|
}]
|
|
1881
1470
|
}; }
|
|
1882
1471
|
};
|
|
1883
|
-
let datetimePickerId = 0;
|
|
1884
1472
|
DatetimePicker.style = datetimePickerCss();
|
|
1885
1473
|
|
|
1886
1474
|
exports.br_datetime_picker = DatetimePicker;
|