@sbb-esta/lyne-elements 2.11.1 → 2.11.3
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/accordion/accordion.component.js +19 -22
- package/action-group/action-group.component.js +3 -5
- package/alert/alert/alert.component.js +1 -2
- package/alert/alert-group/alert-group.component.js +2 -3
- package/autocomplete/autocomplete-base-element.js +71 -82
- package/autocomplete/autocomplete.component.js +31 -36
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +44 -52
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +23 -26
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +9 -9
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +29 -33
- package/button/mini-button/mini-button.component.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -2
- package/calendar/calendar.component.js +8 -13
- package/card/card/card.component.js +12 -12
- package/card/card-badge/card-badge.component.js +16 -16
- package/card/common/card-action-common.js +23 -25
- package/checkbox/checkbox/checkbox.component.js +17 -20
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
- package/checkbox/checkbox-panel/checkbox-panel.component.js +22 -25
- package/checkbox/common/checkbox-common.js +13 -15
- package/chip/chip-group/chip-group.component.js +59 -70
- package/clock/clock.component.js +50 -60
- package/container/container/container.component.js +28 -29
- package/container/sticky-bar/sticky-bar.component.js +26 -27
- package/core/a11y/focus-trap-controller.js +11 -14
- package/core/a11y/focus.js +27 -29
- package/core/a11y/input-modality-detector.js +18 -19
- package/core/a11y/interactivity-checker.js +10 -10
- package/core/base-elements/button-base-element.js +13 -18
- package/core/base-elements/link-base-element.js +3 -6
- package/core/base-elements/open-close-base-element.js +1 -1
- package/core/controllers/connected-abort-controller.js +2 -4
- package/core/controllers/escapable-overlay-controller.js +10 -12
- package/core/controllers/id-reference-controller.js +13 -14
- package/core/controllers/inert-controller.js +8 -10
- package/core/controllers/slot-state-controller.js +16 -26
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/date-adapter.js +21 -21
- package/core/datetime/native-date-adapter.js +11 -11
- package/core/decorators/date-converter.js +10 -12
- package/core/decorators/date-only-type.js +5 -6
- package/core/decorators/force-type.js +4 -5
- package/core/dom/breakpoint.js +8 -8
- package/core/dom/input-element.js +4 -9
- package/core/eventing/event-emitter.js +4 -5
- package/core/mixins/form-associated-checkbox-mixin.js +32 -37
- package/core/mixins/form-associated-input-mixin.js +58 -64
- package/core/mixins/form-associated-mixin.js +42 -44
- package/core/mixins/form-associated-radio-button-mixin.js +3 -5
- package/core/mixins/hydration-mixin.js +12 -13
- package/core/mixins/named-slot-list-mixin.js +32 -37
- package/core/mixins/panel-mixin.js +26 -27
- package/core/mixins.js +1 -1
- package/core/overlay/position.js +23 -23
- package/core/styles/core/mediaqueries.scss +1 -1
- package/core/styles/core.scss +27 -28
- package/core/styles/mixins/table.scss +1 -24
- package/core/testing/event-spy.js +2 -4
- package/core/testing/wait-for-image-ready.js +8 -9
- package/core/testing/wait-for-render.js +8 -9
- package/custom-elements.json +2 -2
- package/date-input/date-input.component.js +2 -4
- package/datepicker/common/datepicker-association-controllers.js +21 -24
- package/datepicker/common/datepicker-button.js +53 -57
- package/datepicker/datepicker/datepicker.component.js +82 -95
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +74 -81
- package/development/accordion/accordion.component.js +4 -7
- package/development/action-group/action-group.component.js +3 -5
- package/development/alert/alert/alert.component.js +2 -3
- package/development/alert/alert-group/alert-group.component.js +2 -3
- package/development/autocomplete/autocomplete-base-element.js +19 -30
- package/development/autocomplete/autocomplete.component.js +7 -12
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +3 -4
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +2 -3
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/calendar/calendar.component.js +9 -14
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +3 -5
- package/development/checkbox/checkbox/checkbox.component.js +2 -5
- package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
- package/development/checkbox/common/checkbox-common.js +3 -5
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.js +15 -26
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/clock/clock.component.js +23 -33
- package/development/container/container/container.component.js +2 -3
- package/development/container/sticky-bar/sticky-bar.component.js +2 -3
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/fake-event-detection.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +6 -9
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/focus.js +8 -10
- package/development/core/a11y/input-modality-detector.js +2 -3
- package/development/core/a11y/interactivity-checker.js +2 -2
- package/development/core/base-elements/action-base-element.js +2 -3
- package/development/core/base-elements/button-base-element.js +6 -11
- package/development/core/base-elements/link-base-element.js +4 -7
- package/development/core/base-elements/open-close-base-element.js +2 -2
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/connected-abort-controller.js +3 -5
- package/development/core/controllers/escapable-overlay-controller.js +3 -5
- package/development/core/controllers/id-reference-controller.js +2 -3
- package/development/core/controllers/inert-controller.js +4 -6
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/core/controllers/slot-state-controller.js +8 -18
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +5 -5
- package/development/core/datetime/native-date-adapter.js +2 -2
- package/development/core/decorators/date-converter.js +3 -5
- package/development/core/decorators/date-only-type.js +2 -3
- package/development/core/decorators/force-type.js +3 -4
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/host-attributes.js +1 -1
- package/development/core/decorators/slot-state.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/breakpoint.js +2 -2
- package/development/core/dom/find-referenced-element.js +1 -1
- package/development/core/dom/host-context.js +1 -1
- package/development/core/dom/input-element.js +3 -4
- package/development/core/dom/platform.js +1 -1
- package/development/core/dom/scroll.js +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -1
- package/development/core/eventing/composed-path-has-attribute.js +1 -1
- package/development/core/eventing/event-emitter.js +2 -3
- package/development/core/eventing/form-element-handlers.js +1 -1
- package/development/core/eventing/forward-event.js +1 -1
- package/development/core/eventing/throttle.js +1 -1
- package/development/core/i18n/i18n.js +1 -1
- package/development/core/mixins/animation-complete-mixin.js +1 -1
- package/development/core/mixins/disabled-mixin.js +1 -1
- package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
- package/development/core/mixins/form-associated-input-mixin.js +14 -20
- package/development/core/mixins/form-associated-mixin.js +5 -7
- package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
- package/development/core/mixins/hydration-mixin.js +3 -4
- package/development/core/mixins/named-slot-list-mixin.js +4 -7
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +2 -3
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/overlay.js +1 -1
- package/development/core/overlay/position.js +5 -5
- package/development/core/testing/event-spy.js +3 -5
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +2 -3
- package/development/core/testing/wait-for-render.js +2 -3
- package/development/date-input/date-input.component.js +4 -6
- package/development/datepicker/common/datepicker-association-controllers.js +6 -9
- package/development/datepicker/common/datepicker-button.js +7 -11
- package/development/datepicker/datepicker/datepicker.component.js +22 -35
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +13 -20
- package/development/dialog/dialog/dialog.component.js +16 -27
- package/development/dialog/dialog-actions/dialog-actions.component.js +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/divider/divider.component.js +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +4 -5
- package/development/file-selector/common/file-selector-common.js +2 -3
- package/development/file-selector/file-selector/file-selector.component.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +7 -13
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -3
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -3
- package/development/footer/footer.component.js +1 -1
- package/development/form-error/form-error.component.js +3 -4
- package/development/form-field/form-field/form-field.component.js +19 -30
- package/development/form-field/form-field-clear/form-field-clear.component.js +4 -6
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.js +5 -8
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/header/header-link/header-link.component.js +1 -1
- package/development/icon/icon-base.js +1 -1
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +2 -3
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.js +1 -1
- package/development/image/image.component.js +7 -9
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/link/block-link/block-link.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/block-link-static/block-link-static.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/link/link.component.js +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/link/link-static/link-static.component.js +1 -1
- package/development/link-common-CJEWffDZ.js +1 -1
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/link-list/link-list.component.js +1 -1
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/map-container/map-container.component.js +2 -3
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.js +17 -25
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/menu/menu-link/menu-link.component.js +1 -1
- package/development/message/message.component.js +1 -1
- package/development/navigation/common/navigation-action-common.js +3 -5
- package/development/navigation/navigation/navigation.component.js +19 -35
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/navigation/navigation-link/navigation-link.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
- package/development/navigation/navigation-section/navigation-section.component.js +22 -32
- package/development/notification/notification.component.js +22 -24
- package/development/option/optgroup/optgroup-base-element.js +4 -6
- package/development/option/optgroup/optgroup.component.js +6 -10
- package/development/option/option/option-base-element.js +3 -4
- package/development/option/option/option.component.js +7 -10
- package/development/overlay/overlay-base-element.js +4 -6
- package/development/overlay/overlay.component.js +7 -9
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.js +2 -3
- package/development/popover/popover/popover.component.js +12 -17
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/radio-button/common/radio-button-common.js +6 -10
- package/development/radio-button/radio-button/radio-button.component.js +2 -5
- package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.js +26 -48
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
- package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +8 -15
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -2
- package/development/signet/signet.component.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/slider/slider.component.js +3 -4
- package/development/status/status.component.js +1 -1
- package/development/stepper/step/step.component.js +5 -7
- package/development/stepper/step-label/step-label.component.js +3 -4
- package/development/stepper/stepper/stepper.component.js +16 -29
- package/development/table/table-wrapper/table-wrapper.component.js +2 -7
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +23 -38
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +6 -12
- package/development/tag/tag-group/tag-group.component.js +5 -13
- package/development/teaser/teaser.component.js +1 -1
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
- package/development/time-input/time-input.component.js +8 -12
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -3
- package/development/title/title-base.js +1 -1
- package/development/title/title.component.js +1 -1
- package/development/toast/toast.component.js +4 -7
- package/development/toggle/toggle/toggle.component.js +8 -12
- package/development/toggle/toggle-option/toggle-option.component.js +9 -16
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +5 -7
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/dialog/dialog/dialog.component.js +59 -70
- package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +31 -32
- package/file-selector/common/file-selector-common.js +1 -2
- package/flip-card/flip-card/flip-card.component.js +48 -54
- package/flip-card/flip-card-details/flip-card-details.component.js +16 -17
- package/flip-card/flip-card-summary/flip-card-summary.component.js +18 -19
- package/form-error/form-error.component.js +13 -14
- package/form-field/form-field/form-field.component.js +128 -139
- package/form-field/form-field-clear/form-field-clear.component.js +20 -22
- package/header/header/header.component.js +25 -28
- package/icon/icon-request.js +10 -11
- package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
- package/image/image.component.js +4 -6
- package/map-container/map-container.component.js +1 -2
- package/menu/menu/menu.component.js +48 -56
- package/navigation/common/navigation-action-common.js +19 -21
- package/navigation/navigation/navigation.component.js +74 -93
- package/navigation/navigation-marker/navigation-marker.component.js +26 -28
- package/navigation/navigation-section/navigation-section.component.js +79 -89
- package/notification/notification.component.js +18 -20
- package/option/optgroup/optgroup-base-element.js +40 -42
- package/option/optgroup/optgroup.component.js +16 -20
- package/option/option/option-base-element.js +3 -4
- package/option/option/option.component.js +28 -31
- package/overlay/overlay-base-element.js +25 -27
- package/overlay/overlay.component.js +38 -40
- package/package.json +1 -1
- package/paginator/paginator/paginator.component.js +3 -4
- package/popover/popover/popover.component.js +82 -91
- package/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/radio-button/common/radio-button-common.js +11 -15
- package/radio-button/radio-button/radio-button.component.js +20 -23
- package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
- package/radio-button/radio-button-panel/radio-button-panel.component.js +31 -35
- package/select/select.component.js +89 -111
- package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
- package/sidebar/common.js +1 -1
- package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
- package/sidebar/sidebar/sidebar.component.js +61 -68
- package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
- package/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/sidebar.js +1 -1
- package/slider/slider.component.js +3 -4
- package/standard-theme.css +0 -25
- package/stepper/step/step.component.js +22 -24
- package/stepper/step-label/step-label.component.js +2 -3
- package/stepper/stepper/stepper.component.js +72 -86
- package/table/table-wrapper/table-wrapper.component.js +13 -14
- package/table.css +0 -25
- package/tabs/tab-group/tab-group.component.js +77 -92
- package/tabs/tab-label/tab-label.component.js +10 -10
- package/tag/tag/tag.component.js +55 -61
- package/tag/tag-group/tag-group.component.js +21 -29
- package/teaser/teaser.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product-common-C8oSkIxy.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.js +62 -66
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +9 -10
- package/toast/toast.component.js +4 -7
- package/toggle/toggle/toggle.component.js +38 -42
- package/toggle/toggle-option/toggle-option.component.js +47 -54
- package/train/train-formation/train-formation.component.js +41 -43
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
- package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
- package/teaser-product-common-CpMAlYEp.js +0 -5
|
@@ -1,59 +1,56 @@
|
|
|
1
|
-
var
|
|
1
|
+
var V = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { readConfig as
|
|
10
|
-
import { SbbIdReferenceController as
|
|
11
|
-
import { defaultDateAdapter as
|
|
12
|
-
import { forceType as
|
|
13
|
-
import { findReferencedElement as
|
|
14
|
-
import { EventEmitter as
|
|
15
|
-
import { i18nDatePickerPlaceholder as
|
|
16
|
-
import { SbbDatepickerAssociationHostController as
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
return n ? et(n) : (u = (l = a.closest) == null ? void 0 : l.call(a, "sbb-form-field")) == null ? void 0 : u.querySelector("sbb-datepicker");
|
|
4
|
+
var L = (a, s, l) => s.has(a) || V("Cannot " + l);
|
|
5
|
+
var E = (a, s, l) => (L(a, s, "read from private field"), l ? l.call(a) : s.get(a)), A = (a, s, l) => s.has(a) ? V("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(a) : s.set(a, l), o = (a, s, l, r) => (L(a, s, "write to private field"), r ? r.call(a, l) : s.set(a, l), l);
|
|
6
|
+
import { __runInitializers as u, __esDecorate as p } from "tslib";
|
|
7
|
+
import { css as q, isServer as T, LitElement as H, html as j } from "lit";
|
|
8
|
+
import { customElement as $, property as b, state as B } from "lit/decorators.js";
|
|
9
|
+
import { readConfig as G } from "../../core/config.js";
|
|
10
|
+
import { SbbIdReferenceController as J, SbbLanguageController as K } from "../../core/controllers.js";
|
|
11
|
+
import { defaultDateAdapter as Q } from "../../core/datetime.js";
|
|
12
|
+
import { forceType as W } from "../../core/decorators.js";
|
|
13
|
+
import { findReferencedElement as X } from "../../core/dom.js";
|
|
14
|
+
import { EventEmitter as g, forwardEvent as Y } from "../../core/eventing.js";
|
|
15
|
+
import { i18nDatePickerPlaceholder as P, i18nDateChangedTo as Z } from "../../core/i18n.js";
|
|
16
|
+
import { SbbDatepickerAssociationHostController as tt } from "../common.js";
|
|
17
|
+
const et = q`:host{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
|
|
18
|
+
function ft(a, s) {
|
|
19
|
+
return s ? X(s) : a.closest?.("sbb-form-field")?.querySelector("sbb-datepicker");
|
|
21
20
|
}
|
|
22
|
-
const
|
|
21
|
+
const bt = () => new CustomEvent("datepickerControlRegistered", {
|
|
23
22
|
bubbles: !1,
|
|
24
23
|
composed: !0
|
|
25
24
|
});
|
|
26
|
-
let
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
var
|
|
30
|
-
let a = [
|
|
31
|
-
var
|
|
25
|
+
let it = 0;
|
|
26
|
+
const d = (a) => a?.localName === "sbb-date-input";
|
|
27
|
+
let vt = (() => {
|
|
28
|
+
var c, m, _, n;
|
|
29
|
+
let a = [$("sbb-datepicker")], s, l = [], r, D = H, v = [], w, C = [], y = [], I, k, x = [], U = [], F, z, M, O = [], S = [];
|
|
30
|
+
var h = (n = class extends D {
|
|
32
31
|
constructor() {
|
|
33
|
-
var t;
|
|
34
32
|
super(...arguments);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
A(this, c);
|
|
34
|
+
A(this, m);
|
|
35
|
+
A(this, _);
|
|
36
|
+
o(this, c, (u(this, v), u(this, C, !1))), this._dateFilter = u(this, y), o(this, m, u(this, x, null)), this._now = u(this, U), o(this, _, u(this, O, null)), this._change = (u(this, S), new g(this, h.events.change, {
|
|
39
37
|
bubbles: !0
|
|
40
|
-
})), this._inputUpdated = new
|
|
38
|
+
})), this._inputUpdated = new g(this, h.events.inputUpdated, { bubbles: !0, cancelable: !0 }), this._datePickerUpdated = new g(this, h.events.datePickerUpdated, {
|
|
41
39
|
bubbles: !0,
|
|
42
40
|
cancelable: !0
|
|
43
|
-
}), this._validationChange = new
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.valueAsDate = this._dateAdapter.parse(s, this.now) ?? s;
|
|
41
|
+
}), this._validationChange = new g(this, h.events.validationChange), this._inputElementPlaceholderMutable = !1, this._inputIdReferenceController = new J(this, "input"), this._inputObserver = T ? null : new MutationObserver((t) => {
|
|
42
|
+
if (this._emitInputUpdated(), this._associationController?.updateControls(), this.inputElement && !d(this.inputElement) && t?.some((e) => e.attributeName === "value")) {
|
|
43
|
+
const e = this.inputElement.getAttribute("value");
|
|
44
|
+
this.valueAsDate = this._dateAdapter.parse(e, this.now) ?? e;
|
|
48
45
|
}
|
|
49
|
-
}), this._dateAdapter = (
|
|
46
|
+
}), this._dateAdapter = G().datetime?.dateAdapter ?? Q, this._language = new K(this), this._associationController = new tt(this);
|
|
50
47
|
}
|
|
51
48
|
/** If set to true, two months are displayed. */
|
|
52
49
|
get wide() {
|
|
53
|
-
return
|
|
50
|
+
return E(this, c);
|
|
54
51
|
}
|
|
55
52
|
set wide(t) {
|
|
56
|
-
|
|
53
|
+
o(this, c, t);
|
|
57
54
|
}
|
|
58
55
|
/**
|
|
59
56
|
* A function used to filter out dates.
|
|
@@ -63,7 +60,7 @@ let Dt = (() => {
|
|
|
63
60
|
this._dateFilter = t;
|
|
64
61
|
}
|
|
65
62
|
get dateFilter() {
|
|
66
|
-
return this._dateFilter ?? (
|
|
63
|
+
return this._dateFilter ?? (d(this.inputElement) ? this.inputElement.dateFilter : null) ?? (() => !0);
|
|
67
64
|
}
|
|
68
65
|
// TODO: Replace HTMLElement by HTMLInputElement | SbbDateInputElement
|
|
69
66
|
/**
|
|
@@ -73,10 +70,10 @@ let Dt = (() => {
|
|
|
73
70
|
* If given a HTMLElement instance, it will be used as is.
|
|
74
71
|
*/
|
|
75
72
|
get input() {
|
|
76
|
-
return
|
|
73
|
+
return E(this, m);
|
|
77
74
|
}
|
|
78
75
|
set input(t) {
|
|
79
|
-
|
|
76
|
+
o(this, m, t);
|
|
80
77
|
}
|
|
81
78
|
/**
|
|
82
79
|
* A configured date which acts as the current date instead of the real current date.
|
|
@@ -93,37 +90,36 @@ let Dt = (() => {
|
|
|
93
90
|
* @deprecated Use valueAsDate from SbbDateInputElement.
|
|
94
91
|
*/
|
|
95
92
|
set valueAsDate(t) {
|
|
96
|
-
if (
|
|
93
|
+
if (d(this.inputElement)) {
|
|
97
94
|
this.inputElement.valueAsDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));
|
|
98
95
|
return;
|
|
99
96
|
}
|
|
100
97
|
this._valueAsDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)), this._tryApplyFormatToInput() && this.inputElement.dispatchEvent(new Event("blur", { composed: !0 }));
|
|
101
98
|
}
|
|
102
99
|
get valueAsDate() {
|
|
103
|
-
return
|
|
100
|
+
return d(this.inputElement) ? this.inputElement.valueAsDate : this._valueAsDate ?? null;
|
|
104
101
|
}
|
|
105
102
|
/** The resolved associated input element, as defined by `input`. */
|
|
106
103
|
get inputElement() {
|
|
107
104
|
return this._inputElement;
|
|
108
105
|
}
|
|
109
106
|
get _inputElement() {
|
|
110
|
-
return
|
|
107
|
+
return E(this, _);
|
|
111
108
|
}
|
|
112
109
|
set _inputElement(t) {
|
|
113
|
-
|
|
110
|
+
o(this, _, t);
|
|
114
111
|
}
|
|
115
112
|
connectedCallback() {
|
|
116
|
-
super.connectedCallback(), this.id
|
|
113
|
+
super.connectedCallback(), this.id ||= `sbb-datepicker-${++it}`, this._configureInputElement();
|
|
117
114
|
}
|
|
118
115
|
requestUpdate(t, e, i) {
|
|
119
|
-
super.requestUpdate(t, e, i), this.hasUpdated && !t && this.inputElement && (this._inputElementPlaceholderMutable && (this.inputElement.placeholder =
|
|
116
|
+
super.requestUpdate(t, e, i), this.hasUpdated && !t && this.inputElement && (this._inputElementPlaceholderMutable && (this.inputElement.placeholder = P[this._language.current]), this.valueAsDate && (this.inputElement.value = this._dateAdapter.format(this.valueAsDate))), !T && (!t || t === "input") && this.hasUpdated && this._configureInputElement();
|
|
120
117
|
}
|
|
121
118
|
willUpdate(t) {
|
|
122
119
|
super.willUpdate(t), (t.has("wide") || t.has("dateFilter") || t.has("now")) && (this._associationController.updateControls(), this._datePickerUpdated.emit()), t.has("valueAsDate") && this._setAriaLiveMessage();
|
|
123
120
|
}
|
|
124
121
|
disconnectedCallback() {
|
|
125
|
-
|
|
126
|
-
super.disconnectedCallback(), (t = this._inputObserver) == null || t.disconnect(), (e = this._inputAbortController) == null || e.abort(), this._inputElement = null;
|
|
122
|
+
super.disconnectedCallback(), this._inputObserver?.disconnect(), this._inputAbortController?.abort(), this._inputElement = null;
|
|
127
123
|
}
|
|
128
124
|
firstUpdated(t) {
|
|
129
125
|
super.firstUpdated(t), this._setAriaLiveMessage();
|
|
@@ -136,32 +132,27 @@ let Dt = (() => {
|
|
|
136
132
|
return !!this._now;
|
|
137
133
|
}
|
|
138
134
|
_configureInputElement() {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (t === this.inputElement || ((A = this._inputAbortController) == null || A.abort(), (N = this._inputObserver) == null || N.disconnect(), this._inputElement = t, !this.inputElement))
|
|
135
|
+
const t = this.input instanceof HTMLInputElement || this.input instanceof HTMLElement && d(this.input) ? this.input : this._inputIdReferenceController.find() ?? this.closest?.("sbb-form-field")?.querySelector("input,sbb-date-input") ?? null;
|
|
136
|
+
if (t === this.inputElement || (this._inputAbortController?.abort(), this._inputObserver?.disconnect(), this._inputElement = t, !this.inputElement))
|
|
142
137
|
return;
|
|
143
|
-
const e = !
|
|
144
|
-
this._inputAbortController = new AbortController(),
|
|
138
|
+
const e = !d(this.inputElement);
|
|
139
|
+
this._inputAbortController = new AbortController(), this._inputObserver?.observe(this.inputElement, {
|
|
145
140
|
attributeFilter: ["disabled", "readonly", "min", "max", "value"]
|
|
146
|
-
}), e && (this._inputElementPlaceholderMutable = !this.inputElement.placeholder, this.inputElement.type = "text", this._inputElementPlaceholderMutable && (this.inputElement.placeholder =
|
|
141
|
+
}), e && (this._inputElementPlaceholderMutable = !this.inputElement.placeholder, this.inputElement.type = "text", this._inputElementPlaceholderMutable && (this.inputElement.placeholder = P[this._language.current]));
|
|
147
142
|
const i = { signal: this._inputAbortController.signal };
|
|
148
|
-
this.inputElement.addEventListener("input", (
|
|
149
|
-
|
|
150
|
-
}, i), this.inputElement.addEventListener("change", () => this._handleInputChange(), i), this.inputElement.addEventListener("ɵchange", () =>
|
|
151
|
-
var g;
|
|
152
|
-
return (g = this._associationController) == null ? void 0 : g.updateControls();
|
|
153
|
-
}, i), this._parseInput(!0), this._tryApplyFormatToInput(), this._validateDate(), this._emitInputUpdated(), (R = this._associationController) == null || R.updateControls();
|
|
143
|
+
this.inputElement.addEventListener("input", (f) => {
|
|
144
|
+
Y(f, this), this._parseInput();
|
|
145
|
+
}, i), this.inputElement.addEventListener("change", () => this._handleInputChange(), i), this.inputElement.addEventListener("ɵchange", () => this._associationController?.updateControls(), i), this._parseInput(!0), this._tryApplyFormatToInput(), this._validateDate(), this._emitInputUpdated(), this._associationController?.updateControls();
|
|
154
146
|
}
|
|
155
147
|
_emitInputUpdated() {
|
|
156
|
-
const { disabled: t, readOnly: e, min: i, max:
|
|
157
|
-
this._inputUpdated.emit({ disabled: t, readonly: e, min:
|
|
148
|
+
const { disabled: t, readOnly: e, min: i, max: f } = this.inputElement ?? {}, N = i && typeof i != "string" ? this._dateAdapter.toIso8601(i) : i, R = f && typeof f != "string" ? this._dateAdapter.toIso8601(f) : f;
|
|
149
|
+
this._inputUpdated.emit({ disabled: t, readonly: e, min: N, max: R });
|
|
158
150
|
}
|
|
159
151
|
_handleInputChange() {
|
|
160
|
-
|
|
161
|
-
this._tryApplyFormatToInput() || (this._validateDate(), this._setAriaLiveMessage(), this._change.emit(), (t = this._associationController) == null || t.updateControls());
|
|
152
|
+
this._tryApplyFormatToInput() || (this._validateDate(), this._setAriaLiveMessage(), this._change.emit(), this._associationController?.updateControls());
|
|
162
153
|
}
|
|
163
154
|
_tryApplyFormatToInput() {
|
|
164
|
-
if (!this.inputElement ||
|
|
155
|
+
if (!this.inputElement || d(this.inputElement))
|
|
165
156
|
return !1;
|
|
166
157
|
const t = this.valueAsDate ? this._dateAdapter.format(this.valueAsDate) : "";
|
|
167
158
|
return t && this.inputElement.value !== t ? (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value").set.call(this.inputElement, t), this.inputElement.dispatchEvent(new InputEvent("input", { bubbles: !0, composed: !0 })), this.inputElement.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })), !0) : !1;
|
|
@@ -173,25 +164,24 @@ let Dt = (() => {
|
|
|
173
164
|
this.inputElement.toggleAttribute("data-sbb-invalid", !t), e !== t && this._validationChange.emit({ valid: t });
|
|
174
165
|
}
|
|
175
166
|
_parseInput(t = !1) {
|
|
176
|
-
if (
|
|
167
|
+
if (d(this.inputElement))
|
|
177
168
|
return;
|
|
178
169
|
const e = this.inputElement.value;
|
|
179
170
|
this._valueAsDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.parse(e, this.now)), t && !this._valueAsDate && (this._valueAsDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)));
|
|
180
171
|
}
|
|
181
172
|
_setAriaLiveMessage() {
|
|
182
|
-
|
|
183
|
-
const t = (i = (e = this.shadowRoot) == null ? void 0 : e.querySelector) == null ? void 0 : i.call(e, "#status-container");
|
|
173
|
+
const t = this.shadowRoot?.querySelector?.("#status-container");
|
|
184
174
|
if (t)
|
|
185
175
|
if (!this.valueAsDate)
|
|
186
176
|
t.innerText = "";
|
|
187
177
|
else {
|
|
188
|
-
const
|
|
189
|
-
t.innerText = `${
|
|
178
|
+
const e = this._dateAdapter.format(this.valueAsDate, { weekdayStyle: "long" });
|
|
179
|
+
t.innerText = `${Z[this._language.current]} ${e}`;
|
|
190
180
|
}
|
|
191
181
|
else return;
|
|
192
182
|
}
|
|
193
183
|
render() {
|
|
194
|
-
return
|
|
184
|
+
return j`<p id="status-container" role="status"></p>`;
|
|
195
185
|
}
|
|
196
186
|
/**
|
|
197
187
|
* Calculates the first available date before the given one,
|
|
@@ -199,8 +189,7 @@ let Dt = (() => {
|
|
|
199
189
|
* @param date The starting date for calculations.
|
|
200
190
|
*/
|
|
201
191
|
findPreviousAvailableDate(t) {
|
|
202
|
-
|
|
203
|
-
const e = this._findAvailableDate(t, -1), i = this._dateAdapter.deserialize((s = this.inputElement) == null ? void 0 : s.min);
|
|
192
|
+
const e = this._findAvailableDate(t, -1), i = this._dateAdapter.deserialize(this.inputElement?.min);
|
|
204
193
|
return !i || this._dateAdapter.isValid(i) && this._dateAdapter.compareDate(e, i) >= 0 ? e : t;
|
|
205
194
|
}
|
|
206
195
|
/**
|
|
@@ -209,8 +198,7 @@ let Dt = (() => {
|
|
|
209
198
|
* @param date The starting date for calculations.
|
|
210
199
|
*/
|
|
211
200
|
findNextAvailableDate(t) {
|
|
212
|
-
|
|
213
|
-
const e = this._findAvailableDate(t, 1), i = this._dateAdapter.deserialize((s = this.inputElement) == null ? void 0 : s.max);
|
|
201
|
+
const e = this._findAvailableDate(t, 1), i = this._dateAdapter.deserialize(this.inputElement?.max);
|
|
214
202
|
return !i || this._dateAdapter.isValid(i) && this._dateAdapter.compareDate(e, i) <= 0 ? e : t;
|
|
215
203
|
}
|
|
216
204
|
/**
|
|
@@ -230,37 +218,36 @@ let Dt = (() => {
|
|
|
230
218
|
* and `min` and `max` parameters (e.g. from the self-named input's attributes).
|
|
231
219
|
*/
|
|
232
220
|
_isDateAvailable() {
|
|
233
|
-
var i, s, p;
|
|
234
221
|
if (!this.valueAsDate)
|
|
235
222
|
return !1;
|
|
236
|
-
const t = this._dateAdapter.deserialize(
|
|
237
|
-
return this._dateAdapter.isValid(t) && this._dateAdapter.compareDate(this.valueAsDate, t) < 0 || this._dateAdapter.isValid(e) && this._dateAdapter.compareDate(this.valueAsDate, e) > 0 ? !1 :
|
|
223
|
+
const t = this._dateAdapter.deserialize(this.inputElement?.min), e = this._dateAdapter.deserialize(this.inputElement?.max);
|
|
224
|
+
return this._dateAdapter.isValid(t) && this._dateAdapter.compareDate(this.valueAsDate, t) < 0 || this._dateAdapter.isValid(e) && this._dateAdapter.compareDate(this.valueAsDate, e) > 0 ? !1 : this.dateFilter?.(this.valueAsDate) ?? !0;
|
|
238
225
|
}
|
|
239
|
-
},
|
|
240
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
241
|
-
|
|
226
|
+
}, c = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), r = n, (() => {
|
|
227
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(D[Symbol.metadata] ?? null) : void 0;
|
|
228
|
+
w = [W(), b({ type: Boolean })], I = [b({ attribute: !1 })], k = [b()], F = [b()], z = [b({ attribute: !1 })], M = [B()], p(n, null, w, { kind: "accessor", name: "wide", static: !1, private: !1, access: { has: (e) => "wide" in e, get: (e) => e.wide, set: (e, i) => {
|
|
242
229
|
e.wide = i;
|
|
243
|
-
} }, metadata: t },
|
|
230
|
+
} }, metadata: t }, C, y), p(n, null, I, { kind: "setter", name: "dateFilter", static: !1, private: !1, access: { has: (e) => "dateFilter" in e, set: (e, i) => {
|
|
244
231
|
e.dateFilter = i;
|
|
245
|
-
} }, metadata: t }, null,
|
|
232
|
+
} }, metadata: t }, null, v), p(n, null, k, { kind: "accessor", name: "input", static: !1, private: !1, access: { has: (e) => "input" in e, get: (e) => e.input, set: (e, i) => {
|
|
246
233
|
e.input = i;
|
|
247
|
-
} }, metadata: t },
|
|
234
|
+
} }, metadata: t }, x, U), p(n, null, F, { kind: "setter", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, set: (e, i) => {
|
|
248
235
|
e.now = i;
|
|
249
|
-
} }, metadata: t }, null,
|
|
236
|
+
} }, metadata: t }, null, v), p(n, null, z, { kind: "setter", name: "valueAsDate", static: !1, private: !1, access: { has: (e) => "valueAsDate" in e, set: (e, i) => {
|
|
250
237
|
e.valueAsDate = i;
|
|
251
|
-
} }, metadata: t }, null,
|
|
238
|
+
} }, metadata: t }, null, v), p(n, null, M, { kind: "accessor", name: "_inputElement", static: !1, private: !1, access: { has: (e) => "_inputElement" in e, get: (e) => e._inputElement, set: (e, i) => {
|
|
252
239
|
e._inputElement = i;
|
|
253
|
-
} }, metadata: t },
|
|
254
|
-
})(),
|
|
240
|
+
} }, metadata: t }, O, S), p(null, s = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, l), h = r = s.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
241
|
+
})(), n.styles = et, n.events = {
|
|
255
242
|
change: "change",
|
|
256
243
|
inputUpdated: "inputUpdated",
|
|
257
244
|
datePickerUpdated: "datePickerUpdated",
|
|
258
245
|
validationChange: "validationChange"
|
|
259
|
-
},
|
|
260
|
-
return
|
|
246
|
+
}, u(r, l), n);
|
|
247
|
+
return h = r;
|
|
261
248
|
})();
|
|
262
249
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
250
|
+
vt as SbbDatepickerElement,
|
|
251
|
+
bt as datepickerControlRegisteredEventFactory,
|
|
252
|
+
ft as getDatePicker
|
|
266
253
|
};
|
|
@@ -4,7 +4,7 @@ import { hostAttributes as l } from "../../core/decorators.js";
|
|
|
4
4
|
import { i18nNextDay as c, i18nSelectNextDay as u } from "../../core/i18n.js";
|
|
5
5
|
import { SbbDatepickerButton as v } from "../common.js";
|
|
6
6
|
import { css as m } from "lit";
|
|
7
|
-
const h = m`*,:before,:after{box-sizing:border-box}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-datepicker-next-day{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-datepicker-next-day:before{position:absolute;content:"";
|
|
7
|
+
const h = m`*,:before,:after{box-sizing:border-box}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-datepicker-next-day{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-datepicker-next-day:before{position:absolute;content:"";inset:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-datepicker-next-day{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-datepicker-next-day:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible)) .sbb-datepicker-next-day:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-focus-visible]){--sbb-focus-outline-style: initial}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-datepicker-next-day:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-datepicker-next-day:before{background-color:var(--sbb-button-color-active-background)}.sbb-datepicker-next-day{margin:auto;-webkit-tap-highlight-color:transparent}`;
|
|
8
8
|
let D = (() => {
|
|
9
9
|
var o;
|
|
10
10
|
let i = [d("sbb-datepicker-next-day"), l({
|
|
@@ -4,7 +4,7 @@ import { hostAttributes as l } from "../../core/decorators.js";
|
|
|
4
4
|
import { i18nPreviousDay as c, i18nSelectPreviousDay as u } from "../../core/i18n.js";
|
|
5
5
|
import { SbbDatepickerButton as v } from "../common.js";
|
|
6
6
|
import { css as p } from "lit";
|
|
7
|
-
const m = p`*,:before,:after{box-sizing:border-box}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-datepicker-previous-day{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-datepicker-previous-day:before{position:absolute;content:"";
|
|
7
|
+
const m = p`*,:before,:after{box-sizing:border-box}:host{display:inline-block;-webkit-tap-highlight-color:transparent;height:fit-content;outline:none!important;--sbb-button-color-text: var(--sbb-color-charcoal);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-milk);--sbb-button-color-active-background: var(--sbb-color-cloud);--sbb-button-color-disabled-background: var(--sbb-color-milk);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-granite);--sbb-button-border-disabled-width: var(--sbb-border-width-1x);--sbb-button-border-disabled-style: dashed;--sbb-button-border-radius: var(--sbb-border-radius-infinity);--sbb-button-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-button-transition-easing-function: var(--sbb-animation-easing)}@media (forced-colors: active){:host{--sbb-button-color-text: ButtonText !important;--sbb-button-color-hover-background: Highlight !important;--sbb-button-color-active-background: Highlight !important;--sbb-button-color-disabled-background: Canvas !important;--sbb-button-color-disabled-border: GrayText !important;--sbb-button-color-disabled-text: GrayText !important}}:host .sbb-datepicker-previous-day{position:relative;transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:color;border-radius:var(--sbb-button-border-radius);color:var(--sbb-button-color-text);cursor:pointer;-webkit-user-select:none;user-select:none;display:flex}:host .sbb-datepicker-previous-day:before{position:absolute;content:"";inset:0;border-radius:var(--sbb-button-border-radius);background-color:var(--sbb-button-color-default-background);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,background-color}sbb-icon{transition:transform var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);transform:translateY(var(--sbb-button-translate-y-content-hover, 0rem));display:flex}:host([negative]){--sbb-button-color-text: var(--sbb-color-milk);--sbb-button-color-default-background: var(--sbb-color-black-alpha-0);--sbb-button-color-hover-background: var(--sbb-color-charcoal);--sbb-button-color-active-background: var(--sbb-color-iron);--sbb-button-color-disabled-background: var(--sbb-color-charcoal);--sbb-button-color-disabled-border: var(--sbb-color-smoke);--sbb-button-color-disabled-text: var(--sbb-color-smoke)}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-datepicker-previous-day{color:var(--sbb-button-color-disabled-text);cursor:default;pointer-events:none}:host(:is([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled])) .sbb-datepicker-previous-day:before{background-color:var(--sbb-button-color-disabled-background);border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--sbb-button-color-disabled-border)}:host(:is([data-focus-visible],:focus-visible)) .sbb-datepicker-previous-day:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}:host([data-focus-visible]){--sbb-focus-outline-style: initial}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover){--sbb-button-translate-y-content-hover: -.0625rem}}@media (any-hover: hover){:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled],:active,[data-active]):hover) .sbb-datepicker-previous-day:before{background-color:var(--sbb-button-color-hover-background)}}:host(:not([disabled],:disabled,[disabled-interactive],[data-disabled],[data-group-disabled]):is(:active,[data-active])) .sbb-datepicker-previous-day:before{background-color:var(--sbb-button-color-active-background)}.sbb-datepicker-previous-day{margin:auto;-webkit-tap-highlight-color:transparent}`;
|
|
8
8
|
let D = (() => {
|
|
9
9
|
var o;
|
|
10
10
|
let i = [d("sbb-datepicker-previous-day"), l({
|