@sbb-esta/lyne-elements-dev 4.7.0-dev.1773648103 → 4.7.0-dev.1773648656
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 +2 -98
- package/accordion.component-DmaGQH3Q.js +127 -0
- package/accordion.js +5 -4
- package/accordion.pure.js +2 -4
- package/action-group/action-group.component.js +2 -107
- package/action-group.component-KWugkMGf.js +158 -0
- package/action-group.js +5 -4
- package/action-group.pure.js +2 -4
- package/alert/alert/alert.component.js +2 -143
- package/alert/alert-group/alert-group.component.js +2 -103
- package/alert/alert-group.js +4 -7
- package/alert/alert.js +4 -7
- package/alert-group.component-RV1M1OKy.js +141 -0
- package/alert.component-PPR7hfTi.js +165 -0
- package/alert.js +6 -8
- package/alert.pure.js +3 -6
- package/autocomplete/autocomplete-base-element.js +2 -373
- package/autocomplete/autocomplete.component.js +51 -50
- package/autocomplete-base-element-DVFCZ4lt.js +425 -0
- package/autocomplete.js +7 -7
- package/autocomplete.pure.js +3 -6
- package/block-link-common-D4aizuV-.js +63 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.js +2 -20
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -135
- package/breadcrumb/breadcrumb-group.js +4 -7
- package/breadcrumb/breadcrumb.js +4 -7
- package/breadcrumb-group.component-BA8KK3Om.js +145 -0
- package/breadcrumb.component-DjkZzGJD.js +24 -0
- package/breadcrumb.js +6 -8
- package/breadcrumb.pure.js +3 -6
- package/button/accent-button/accent-button.component.js +18 -14
- package/button/accent-button-link/accent-button-link.component.js +18 -14
- package/button/accent-button-link.js +4 -4
- package/button/accent-button-static/accent-button-static.component.js +17 -13
- package/button/accent-button-static.js +4 -4
- package/button/accent-button.js +4 -4
- package/button/button/button.component.js +18 -14
- package/button/button-link/button-link.component.js +18 -14
- package/button/button-link.js +4 -4
- package/button/button-static/button-static.component.js +18 -14
- package/button/button-static.js +4 -4
- package/button/button.js +4 -4
- package/button/common/button-common.js +81 -67
- package/button/common.js +3 -12
- package/button/mini-button/mini-button.component.js +22 -18
- package/button/mini-button-group/mini-button-group.component.js +2 -68
- package/button/mini-button-group.js +6 -6
- package/button/mini-button-link/mini-button-link.component.js +2 -27
- package/button/mini-button-link.js +6 -6
- package/button/mini-button.js +4 -4
- package/button/secondary-button/secondary-button.component.js +18 -14
- package/button/secondary-button-link/secondary-button-link.component.js +18 -14
- package/button/secondary-button-link.js +6 -6
- package/button/secondary-button-static/secondary-button-static.component.js +18 -14
- package/button/secondary-button-static.js +4 -4
- package/button/secondary-button.js +6 -6
- package/button/transparent-button/transparent-button.component.js +18 -14
- package/button/transparent-button-link/transparent-button-link.component.js +18 -14
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static/transparent-button-static.component.js +18 -14
- package/button/transparent-button-static.js +4 -4
- package/button/transparent-button.js +4 -4
- package/button.js +20 -56
- package/button.pure.js +18 -42
- package/calendar/calendar/calendar.component.js +2 -1227
- package/calendar/calendar-day/calendar-day.component.js +2 -98
- package/calendar/calendar-day.js +4 -7
- package/calendar/calendar.js +4 -9
- package/calendar-day.component-DqAXvoP3.js +113 -0
- package/calendar.component-BgZDy-rX.js +1246 -0
- package/calendar.js +6 -10
- package/calendar.pure.js +3 -7
- package/card/card/card.component.js +2 -48
- package/card/card-badge/card-badge.component.js +2 -48
- package/card/card-badge.js +4 -7
- package/card/card-button/card-button.component.js +11 -10
- package/card/card-button.js +3 -6
- package/card/card-link/card-link.component.js +11 -10
- package/card/card-link.js +3 -6
- package/card/card.js +4 -7
- package/card/common/card-action-common.js +2 -63
- package/card/common.js +5 -6
- package/card-action-common-GpkaNYtV.js +88 -0
- package/card-badge.component-D_PI9Ega.js +65 -0
- package/card.component-Dt2YFmd3.js +62 -0
- package/card.js +9 -16
- package/card.pure.js +5 -11
- package/carousel/carousel/carousel.component.js +2 -88
- package/carousel/carousel-item/carousel-item.component.js +2 -18
- package/carousel/carousel-item.js +4 -7
- package/carousel/carousel-list/carousel-list.component.js +2 -90
- package/carousel/carousel-list.js +4 -7
- package/carousel/carousel.js +4 -7
- package/carousel-item.component-kv3rY8B-.js +25 -0
- package/carousel-list.component-DMMk66SP.js +91 -0
- package/carousel.component-Bd0iGUbf.js +97 -0
- package/carousel.js +7 -11
- package/carousel.pure.js +4 -8
- package/checkbox/checkbox-group.js +2 -3
- package/checkbox/checkbox-panel.js +2 -3
- package/checkbox/checkbox.component.js +3 -91
- package/checkbox/checkbox.js +5 -7
- package/checkbox/common/checkbox-common.js +2 -57
- package/checkbox/common.js +5 -7
- package/checkbox-common-D9htxWLZ.js +68 -0
- package/checkbox-group/checkbox-group.component.js +2 -101
- package/checkbox-group.component-CNAwwaS0.js +146 -0
- package/checkbox-group.js +5 -4
- package/checkbox-group.pure.js +2 -4
- package/checkbox-panel/checkbox-panel.component.js +63 -48
- package/checkbox-panel.js +4 -3
- package/checkbox-panel.pure.js +2 -4
- package/checkbox.component-CJcC5JnN.js +125 -0
- package/checkbox.js +10 -14
- package/checkbox.pure.js +3 -7
- package/chip/chip/chip.component.js +2 -73
- package/chip/chip-group/chip-group.component.js +2 -267
- package/chip/chip-group.js +4 -9
- package/chip/chip.js +4 -7
- package/chip-group.component-D2AZqL3m.js +290 -0
- package/chip-label/chip-label.component.js +2 -56
- package/chip-label.component-DBN4jfW7.js +80 -0
- package/chip-label.js +5 -4
- package/chip-label.pure.js +2 -4
- package/chip.component-BNOs8T6O.js +94 -0
- package/chip.js +6 -10
- package/chip.pure.js +3 -7
- package/clock/clock.component.js +2 -153
- package/clock.component-DDaWbXHW.js +148 -0
- package/clock.js +5 -4
- package/clock.pure.js +2 -4
- package/common-CI_BB6sF.js +5 -0
- package/compact-paginator.component-BxSy5YXY.js +45 -0
- package/container/container/container.component.js +2 -76
- package/container/container.js +4 -7
- package/container/sticky-bar/sticky-bar.component.js +2 -122
- package/container/sticky-bar.js +4 -7
- package/container.component-DXFIvseq.js +117 -0
- package/container.js +6 -8
- package/container.pure.js +3 -6
- package/core/a11y/arrow-navigation.js +45 -33
- package/core/a11y/fake-event-detection.js +8 -9
- package/core/a11y/focus-trap-controller.js +69 -91
- package/core/a11y/focus-visible-within-controller.js +18 -18
- package/core/a11y/focus.js +13 -13
- package/core/a11y/input-modality-detector.js +42 -47
- package/core/a11y/interactivity-checker.js +61 -96
- package/core/a11y/live-announcer.js +29 -40
- package/core/a11y.js +9 -26
- package/core/base-elements/action-base-element.js +29 -37
- package/core/base-elements/button-base-element.js +165 -145
- package/core/base-elements/element.js +28 -63
- package/core/base-elements/link-base-element.js +186 -119
- package/core/base-elements/open-close-base-element.js +40 -42
- package/core/base-elements.js +6 -13
- package/core/config/config.js +8 -9
- package/core/config.js +2 -5
- package/core/controllers/escapable-overlay-controller.js +23 -25
- package/core/controllers/id-reference-controller.js +50 -59
- package/core/controllers/inert-controller.js +55 -57
- package/core/controllers/language-controller.js +53 -38
- package/core/controllers/media-matchers-controller.js +82 -96
- package/core/controllers/overlay-position-controller.js +215 -222
- package/core/controllers/property-watcher-controller.js +55 -59
- package/core/controllers/slot-state-controller.js +34 -36
- package/core/controllers.js +7 -28
- package/core/datetime/date-adapter.js +61 -135
- package/core/datetime/native-date-adapter.js +91 -140
- package/core/datetime/temporal-date-adapter.js +108 -144
- package/core/datetime.js +4 -16
- package/core/decorators/base.js +0 -1
- package/core/decorators/force-type.js +12 -16
- package/core/decorators/get-override.js +10 -13
- package/core/decorators/handle-distinct-change.js +12 -15
- package/core/decorators/host-attributes.js +15 -16
- package/core/decorators/id-reference.js +65 -75
- package/core/decorators/omit-empty-converter.js +7 -9
- package/core/decorators/plain-date.js +21 -25
- package/core/decorators.js +8 -17
- package/core/dom/animation.js +8 -9
- package/core/dom/contains-pierce-shadow-dom.js +10 -11
- package/core/dom/lean-context.js +4 -4
- package/core/dom/platform.js +8 -18
- package/core/dom/queue-dom-content-loaded.js +6 -6
- package/core/dom/scroll.js +14 -16
- package/core/dom/set-or-remove-attribute.js +5 -5
- package/core/dom.js +6 -25
- package/core/eventing/composed-path-has-attribute.js +6 -7
- package/core/eventing/event-target.js +5 -5
- package/core/eventing/form-element-handlers.js +5 -5
- package/core/eventing/forward-event.js +6 -6
- package/core/eventing/is-event-prevented.js +5 -5
- package/core/eventing/throttle.js +10 -10
- package/core/eventing.js +7 -14
- package/core/i18n/i18n.js +634 -738
- package/core/i18n.js +2 -104
- package/core/images.js +14 -14
- package/core/interfaces.js +0 -1
- package/core/mixins/animation-complete-mixin.js +34 -42
- package/core/mixins/constructor.js +0 -1
- package/core/mixins/disabled-mixin.js +91 -74
- package/core/mixins/element-internals-mixin.js +149 -155
- package/core/mixins/form-associated-checkbox-mixin.js +106 -93
- package/core/mixins/form-associated-input-mixin.js +202 -193
- package/core/mixins/form-associated-mixin.js +168 -226
- package/core/mixins/form-associated-radio-button-mixin.js +152 -168
- package/core/mixins/hydration-mixin.js +27 -37
- package/core/mixins/named-slot-list-mixin.js +77 -95
- package/core/mixins/negative-mixin.js +45 -33
- package/core/mixins/panel-mixin.js +109 -70
- package/core/mixins/readonly-mixin.js +40 -34
- package/core/mixins/required-mixin.js +48 -35
- package/core/mixins/selection-panel-mixin.js +36 -39
- package/core/mixins/update-scheduler-mixin.js +20 -21
- package/core/mixins.js +21 -41
- package/core/overlay/overlay-option-panel.js +15 -16
- package/core/overlay/overlay-outside-pointer-event-listener.js +34 -37
- package/core/overlay/overlay-trigger-attributes.js +11 -14
- package/core/overlay/overlay.js +6 -6
- package/core/overlay/position.js +53 -49
- package/core/overlay.js +6 -19
- package/core/styles.js +5 -5
- package/core/testing/event-spy.js +46 -50
- package/core/testing/mocha-extensions.js +7 -10
- package/core/testing/wait-for-condition.js +10 -12
- package/core/testing/wait-for-image-ready.js +15 -16
- package/core/testing/wait-for-render.js +12 -13
- package/core/testing.js +6 -14
- package/custom-elements.json +746 -746
- package/date-input/date-input.component.js +2 -166
- package/date-input.component-zZtnd9Og.js +205 -0
- package/date-input.js +5 -4
- package/date-input.pure.js +2 -4
- package/datepicker/common/datepicker-button.js +2 -102
- package/datepicker/common.js +5 -8
- package/datepicker/datepicker/datepicker.component.js +2 -120
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +27 -23
- package/datepicker/datepicker-next-day.js +3 -6
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +27 -23
- package/datepicker/datepicker-previous-day.js +3 -6
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +66 -51
- package/datepicker/datepicker-toggle.js +3 -6
- package/datepicker/datepicker.js +4 -7
- package/datepicker-button-C1TrzFl-.js +109 -0
- package/datepicker.component-cmdnlVgf.js +156 -0
- package/datepicker.js +9 -18
- package/datepicker.pure.js +5 -13
- package/development/accordion/accordion.component.js +2 -132
- package/development/accordion.component-BIFcgIa0.js +172 -0
- package/development/accordion.js +8 -5
- package/development/accordion.pure.js +2 -5
- package/development/action-group/action-group.component.js +2 -305
- package/development/action-group.component-CuhO6yb9.js +379 -0
- package/development/action-group.js +8 -5
- package/development/action-group.pure.js +2 -5
- package/development/alert/alert/alert.component.js +2 -385
- package/development/alert/alert-group/alert-group.component.js +2 -166
- package/development/alert/alert-group.js +7 -5
- package/development/alert/alert.js +7 -5
- package/development/alert-group.component-BlrlsRB8.js +219 -0
- package/development/alert.component-CJ2yLyOY.js +411 -0
- package/development/alert.js +9 -7
- package/development/alert.pure.js +3 -7
- package/development/autocomplete/autocomplete-base-element.js +2 -897
- package/development/autocomplete/autocomplete.component.js +82 -72
- package/development/autocomplete-base-element-DCfmuVY6.js +960 -0
- package/development/autocomplete.js +8 -6
- package/development/autocomplete.pure.js +2 -6
- package/development/block-link-common-FvD8So7p.js +145 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +2 -77
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -263
- package/development/breadcrumb/breadcrumb-group.js +7 -5
- package/development/breadcrumb/breadcrumb.js +7 -5
- package/development/breadcrumb-group.component-DjsoMTPI.js +278 -0
- package/development/breadcrumb.component-DvOf-PiO.js +89 -0
- package/development/breadcrumb.js +9 -7
- package/development/breadcrumb.pure.js +3 -7
- package/development/button/accent-button/accent-button.component.js +24 -13
- package/development/button/accent-button-link/accent-button-link.component.js +24 -13
- package/development/button/accent-button-link.js +9 -7
- package/development/button/accent-button-static/accent-button-static.component.js +24 -13
- package/development/button/accent-button-static.js +9 -7
- package/development/button/accent-button.js +9 -7
- package/development/button/button/button.component.js +23 -12
- package/development/button/button-link/button-link.component.js +23 -12
- package/development/button/button-link.js +9 -7
- package/development/button/button-static/button-static.component.js +23 -12
- package/development/button/button-static.js +9 -7
- package/development/button/button.js +9 -7
- package/development/button/common/button-common.js +104 -85
- package/development/button/common.js +2 -12
- package/development/button/mini-button/mini-button.component.js +28 -17
- package/development/button/mini-button-group/mini-button-group.component.js +2 -141
- package/development/button/mini-button-group.js +9 -7
- package/development/button/mini-button-link/mini-button-link.component.js +2 -34
- package/development/button/mini-button-link.js +9 -7
- package/development/button/mini-button.js +9 -7
- package/development/button/secondary-button/secondary-button.component.js +23 -12
- package/development/button/secondary-button-link/secondary-button-link.component.js +23 -12
- package/development/button/secondary-button-link.js +9 -7
- package/development/button/secondary-button-static/secondary-button-static.component.js +23 -12
- package/development/button/secondary-button-static.js +9 -7
- package/development/button/secondary-button.js +9 -7
- package/development/button/transparent-button/transparent-button.component.js +23 -12
- package/development/button/transparent-button-link/transparent-button-link.component.js +23 -12
- package/development/button/transparent-button-link.js +9 -7
- package/development/button/transparent-button-static/transparent-button-static.component.js +23 -12
- package/development/button/transparent-button-static.js +9 -7
- package/development/button/transparent-button.js +9 -7
- package/development/button.js +10 -29
- package/development/button.pure.js +4 -29
- package/development/calendar/calendar/calendar.component.js +2 -1984
- package/development/calendar/calendar-day/calendar-day.component.js +2 -248
- package/development/calendar/calendar-day.js +7 -5
- package/development/calendar/calendar.js +7 -7
- package/development/calendar-day.component-De9Xn3-q.js +283 -0
- package/development/calendar.component-PHpgLc0z.js +2458 -0
- package/development/calendar.js +9 -9
- package/development/calendar.pure.js +3 -8
- package/development/card/card/card.component.js +2 -233
- package/development/card/card-badge/card-badge.component.js +2 -119
- package/development/card/card-badge.js +7 -5
- package/development/card/card-button/card-button.component.js +19 -11
- package/development/card/card-button.js +6 -4
- package/development/card/card-link/card-link.component.js +19 -11
- package/development/card/card-link.js +6 -4
- package/development/card/card.js +7 -5
- package/development/card/common/card-action-common.js +2 -121
- package/development/card/common.js +6 -5
- package/development/card-action-common-DqBn3bPy.js +147 -0
- package/development/card-badge.component-Cs4dow18.js +146 -0
- package/development/card.component-CeOZXXWU.js +258 -0
- package/development/card.js +10 -11
- package/development/card.pure.js +4 -11
- package/development/carousel/carousel/carousel.component.js +2 -160
- package/development/carousel/carousel-item/carousel-item.component.js +2 -32
- package/development/carousel/carousel-item.js +7 -5
- package/development/carousel/carousel-list/carousel-list.component.js +2 -157
- package/development/carousel/carousel-list.js +7 -5
- package/development/carousel/carousel.js +7 -5
- package/development/carousel-item.component-DOIXA2QK.js +47 -0
- package/development/carousel-list.component-7Z3dYtAF.js +160 -0
- package/development/carousel.component-b4C-hxkj.js +169 -0
- package/development/carousel.js +10 -9
- package/development/carousel.pure.js +4 -9
- package/development/checkbox/checkbox-group.js +5 -1
- package/development/checkbox/checkbox-panel.js +5 -1
- package/development/checkbox/checkbox.component.js +3 -141
- package/development/checkbox/checkbox.js +8 -5
- package/development/checkbox/common/checkbox-common.js +2 -137
- package/development/checkbox/common.js +6 -6
- package/development/checkbox-common-DD7r8g0_.js +147 -0
- package/development/checkbox-group/checkbox-group.component.js +2 -212
- package/development/checkbox-group.component-CRZO7CEc.js +265 -0
- package/development/checkbox-group.js +8 -5
- package/development/checkbox-group.pure.js +2 -5
- package/development/checkbox-panel/checkbox-panel.component.js +81 -54
- package/development/checkbox-panel.js +7 -4
- package/development/checkbox-panel.pure.js +1 -4
- package/development/checkbox.component-B43Akyck.js +193 -0
- package/development/checkbox.js +12 -11
- package/development/checkbox.pure.js +3 -8
- package/development/chip/chip/chip.component.js +2 -164
- package/development/chip/chip-group/chip-group.component.js +2 -464
- package/development/chip/chip-group.js +7 -7
- package/development/chip/chip.js +7 -5
- package/development/chip-group.component-DzCCcoOw.js +506 -0
- package/development/chip-label/chip-label.component.js +2 -131
- package/development/chip-label.component-jN_Fulv_.js +165 -0
- package/development/chip-label.js +8 -5
- package/development/chip-label.pure.js +2 -5
- package/development/chip.component-Bn7ffNEr.js +191 -0
- package/development/chip.js +9 -9
- package/development/chip.pure.js +3 -8
- package/development/clock/clock.component.js +2 -362
- package/development/clock.component-btjeVAaa.js +392 -0
- package/development/clock.js +8 -5
- package/development/clock.pure.js +2 -5
- package/development/common-Da_cep8M.js +565 -0
- package/development/compact-paginator.component-CCDP0TMd.js +96 -0
- package/development/container/container/container.component.js +2 -182
- package/development/container/container.js +7 -5
- package/development/container/sticky-bar/sticky-bar.component.js +2 -357
- package/development/container/sticky-bar.js +7 -5
- package/development/container.component-CVm8-HZ4.js +238 -0
- package/development/container.js +9 -7
- package/development/container.pure.js +3 -7
- package/development/core/a11y/arrow-navigation.js +67 -28
- package/development/core/a11y/fake-event-detection.js +10 -8
- package/development/core/a11y/focus-trap-controller.js +104 -120
- package/development/core/a11y/focus-visible-within-controller.js +25 -24
- package/development/core/a11y/focus.js +14 -13
- package/development/core/a11y/input-modality-detector.js +128 -75
- package/development/core/a11y/interactivity-checker.js +115 -108
- package/development/core/a11y/live-announcer.js +76 -80
- package/development/core/a11y.js +3 -21
- package/development/core/base-elements/action-base-element.js +37 -42
- package/development/core/base-elements/button-base-element.js +247 -205
- package/development/core/base-elements/element.js +69 -67
- package/development/core/base-elements/link-base-element.js +226 -150
- package/development/core/base-elements/open-close-base-element.js +54 -49
- package/development/core/base-elements.js +2 -10
- package/development/core/config/config.js +9 -11
- package/development/core/config.js +1 -5
- package/development/core/controllers/escapable-overlay-controller.js +34 -36
- package/development/core/controllers/id-reference-controller.js +76 -81
- package/development/core/controllers/inert-controller.js +99 -105
- package/development/core/controllers/language-controller.js +76 -66
- package/development/core/controllers/media-matchers-controller.js +145 -138
- package/development/core/controllers/overlay-position-controller.js +297 -283
- package/development/core/controllers/property-watcher-controller.js +94 -119
- package/development/core/controllers/slot-state-controller.js +75 -63
- package/development/core/controllers.js +1 -23
- package/development/core/datetime/date-adapter.js +143 -166
- package/development/core/datetime/native-date-adapter.js +142 -148
- package/development/core/datetime/temporal-date-adapter.js +162 -149
- package/development/core/datetime.js +1 -14
- package/development/core/decorators/base.js +0 -2
- package/development/core/decorators/force-type.js +24 -27
- package/development/core/decorators/get-override.js +17 -17
- package/development/core/decorators/handle-distinct-change.js +20 -21
- package/development/core/decorators/host-attributes.js +37 -26
- package/development/core/decorators/id-reference.js +115 -114
- package/development/core/decorators/omit-empty-converter.js +13 -9
- package/development/core/decorators/plain-date.js +36 -31
- package/development/core/decorators.js +1 -11
- package/development/core/dom/animation.js +8 -9
- package/development/core/dom/contains-pierce-shadow-dom.js +12 -12
- package/development/core/dom/lean-context.js +9 -5
- package/development/core/dom/platform.js +35 -28
- package/development/core/dom/queue-dom-content-loaded.js +11 -10
- package/development/core/dom/scroll.js +34 -34
- package/development/core/dom/set-or-remove-attribute.js +13 -9
- package/development/core/dom.js +1 -21
- package/development/core/eventing/composed-path-has-attribute.js +17 -10
- package/development/core/eventing/event-target.js +7 -5
- package/development/core/eventing/form-element-handlers.js +10 -7
- package/development/core/eventing/forward-event.js +12 -7
- package/development/core/eventing/is-event-prevented.js +8 -6
- package/development/core/eventing/throttle.js +16 -17
- package/development/core/eventing.js +1 -9
- package/development/core/i18n/i18n.js +770 -875
- package/development/core/i18n.js +1 -104
- package/development/core/images.js +20 -15
- package/development/core/interfaces.js +0 -2
- package/development/core/mixins/animation-complete-mixin.js +55 -51
- package/development/core/mixins/constructor.js +0 -2
- package/development/core/mixins/disabled-mixin.js +124 -101
- package/development/core/mixins/element-internals-mixin.js +212 -225
- package/development/core/mixins/form-associated-checkbox-mixin.js +160 -141
- package/development/core/mixins/form-associated-input-mixin.js +334 -314
- package/development/core/mixins/form-associated-mixin.js +287 -279
- package/development/core/mixins/form-associated-radio-button-mixin.js +260 -247
- package/development/core/mixins/hydration-mixin.js +58 -55
- package/development/core/mixins/named-slot-list-mixin.js +116 -114
- package/development/core/mixins/negative-mixin.js +56 -41
- package/development/core/mixins/panel-mixin.js +142 -93
- package/development/core/mixins/readonly-mixin.js +54 -43
- package/development/core/mixins/required-mixin.js +65 -46
- package/development/core/mixins/selection-panel-mixin.js +50 -55
- package/development/core/mixins/update-scheduler-mixin.js +30 -25
- package/development/core/mixins.js +10 -29
- package/development/core/overlay/overlay-option-panel.js +34 -26
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +64 -60
- package/development/core/overlay/overlay-trigger-attributes.js +42 -39
- package/development/core/overlay/overlay.js +10 -5
- package/development/core/overlay/position.js +143 -117
- package/development/core/overlay.js +2 -16
- package/development/core/styles.js +6 -5
- package/development/core/testing/event-spy.js +66 -67
- package/development/core/testing/mocha-extensions.js +15 -13
- package/development/core/testing/wait-for-condition.js +14 -17
- package/development/core/testing/wait-for-image-ready.js +20 -27
- package/development/core/testing/wait-for-render.js +30 -18
- package/development/core/testing.js +1 -10
- package/development/date-input/date-input.component.js +2 -278
- package/development/date-input.component-CqsEOZfb.js +338 -0
- package/development/date-input.js +8 -5
- package/development/date-input.pure.js +2 -5
- package/development/datepicker/common/datepicker-button.js +2 -155
- package/development/datepicker/common.js +6 -7
- package/development/datepicker/datepicker/datepicker.component.js +2 -180
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +35 -30
- package/development/datepicker/datepicker-next-day.js +6 -4
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +35 -30
- package/development/datepicker/datepicker-previous-day.js +6 -4
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +79 -67
- package/development/datepicker/datepicker-toggle.js +6 -4
- package/development/datepicker/datepicker.js +7 -5
- package/development/datepicker-button-BORzfDaA.js +167 -0
- package/development/datepicker.component-CuFtPZg9.js +223 -0
- package/development/datepicker.js +9 -12
- package/development/datepicker.pure.js +3 -12
- package/development/dialog/dialog/dialog.component.js +2 -383
- package/development/dialog/dialog-actions/dialog-actions.component.js +2 -42
- package/development/dialog/dialog-actions.js +7 -5
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +2 -36
- package/development/dialog/dialog-close-button.js +7 -5
- package/development/dialog/dialog-content/dialog-content.component.js +2 -31
- package/development/dialog/dialog-content.js +7 -5
- package/development/dialog/dialog-title/dialog-title.component.js +2 -39
- package/development/dialog/dialog-title.js +7 -5
- package/development/dialog/dialog.js +7 -8
- package/development/dialog-actions.component-Mbx-Bs3t.js +55 -0
- package/development/dialog-close-button.component-B1dPHPy2.js +48 -0
- package/development/dialog-content.component-qP09Yo_N.js +42 -0
- package/development/dialog-title.component-B4u2w8h5.js +50 -0
- package/development/dialog.component-DaM1FSHB.js +403 -0
- package/development/dialog.js +12 -16
- package/development/dialog.pure.js +6 -16
- package/development/divider/divider.component.js +2 -73
- package/development/divider.component-Ddzlu6Fw.js +95 -0
- package/development/divider.js +8 -5
- package/development/divider.pure.js +2 -5
- package/development/error.component-C76eZnXo.js +93 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +2 -417
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -70
- package/development/expansion-panel/expansion-panel-content.js +7 -5
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -170
- package/development/expansion-panel/expansion-panel-header.js +7 -5
- package/development/expansion-panel/expansion-panel.js +7 -5
- package/development/expansion-panel-content.component-DTZk3ZKL.js +77 -0
- package/development/expansion-panel-header.component-C7ymZCux.js +175 -0
- package/development/expansion-panel.component-xUWTKeaC.js +489 -0
- package/development/expansion-panel.js +10 -9
- package/development/expansion-panel.pure.js +4 -9
- package/development/file-selector/common/file-selector-common.js +2 -431
- package/development/file-selector/common.js +6 -6
- package/development/file-selector/file-selector/file-selector.component.js +27 -18
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -126
- package/development/file-selector/file-selector-dropzone.js +7 -5
- package/development/file-selector/file-selector.js +6 -4
- package/development/file-selector-common-qMfAccOd.js +512 -0
- package/development/file-selector-dropzone.component-HDUIUSQI.js +154 -0
- package/development/file-selector.js +9 -9
- package/development/file-selector.pure.js +3 -9
- package/development/flip-card/flip-card/flip-card.component.js +2 -306
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -69
- package/development/flip-card/flip-card-details.js +7 -5
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -124
- package/development/flip-card/flip-card-summary.js +7 -5
- package/development/flip-card/flip-card.js +7 -5
- package/development/flip-card-details.component-BilGh5Yb.js +85 -0
- package/development/flip-card-summary.component-DDDnvs_c.js +151 -0
- package/development/flip-card.component-CdRzb7IT.js +334 -0
- package/development/flip-card.js +10 -9
- package/development/flip-card.pure.js +4 -9
- package/development/footer/footer.component.js +2 -251
- package/development/footer.component-C057PwF1.js +310 -0
- package/development/footer.js +8 -5
- package/development/footer.pure.js +2 -5
- package/development/form-field/error/error.component.js +2 -83
- package/development/form-field/error.js +7 -5
- package/development/form-field/form-field/form-field.component.js +2 -892
- package/development/form-field/form-field-clear/form-field-clear.component.js +49 -41
- package/development/form-field/form-field-clear.js +6 -4
- package/development/form-field/form-field.js +7 -7
- package/development/form-field.component-D4dQ8sCh.js +1009 -0
- package/development/form-field.js +9 -10
- package/development/form-field.pure.js +3 -9
- package/development/header/common/header-action-common.js +2 -329
- package/development/header/common.js +6 -5
- package/development/header/header/header.component.js +2 -385
- package/development/header/header-button/header-button.component.js +15 -7
- package/development/header/header-button.js +6 -4
- package/development/header/header-environment/header-environment.component.js +2 -88
- package/development/header/header-environment.js +7 -5
- package/development/header/header-link/header-link.component.js +15 -7
- package/development/header/header-link.js +6 -4
- package/development/header/header.js +7 -5
- package/development/header-action-common-Dff8K0RB.js +346 -0
- package/development/header-environment.component-DYnJkxCZ.js +101 -0
- package/development/header.component-DYls7wGO.js +446 -0
- package/development/header.js +10 -11
- package/development/header.pure.js +4 -11
- package/development/icon/icon-base.js +2 -174
- package/development/icon/icon-name-mixin.js +75 -59
- package/development/icon/icon-request.js +31 -38
- package/development/icon/icon-validate.js +36 -45
- package/development/icon/icon.component.js +119 -94
- package/development/icon-base-CcQCgmqX.js +206 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -74
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-button.js +6 -4
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -30
- package/development/icon-sidebar/icon-sidebar-container.js +7 -5
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -22
- package/development/icon-sidebar/icon-sidebar-content.js +7 -5
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-link.js +6 -4
- package/development/icon-sidebar/icon-sidebar.js +7 -5
- package/development/icon-sidebar-container.component-BJHjpF-Q.js +41 -0
- package/development/icon-sidebar-content.component-C2wreczL.js +33 -0
- package/development/icon-sidebar.component-PcmjRlDp.js +100 -0
- package/development/icon-sidebar.js +10 -11
- package/development/icon-sidebar.pure.js +4 -11
- package/development/icon.js +10 -12
- package/development/icon.pure.js +4 -12
- package/development/image/image.component.js +2 -648
- package/development/image.component-fvsSR3Df.js +820 -0
- package/development/image.js +8 -5
- package/development/image.pure.js +2 -5
- package/development/inline-link-common-CyTcO5MN.js +52 -0
- package/development/journey-header/journey-header.component.js +2 -158
- package/development/journey-header.component-BB8WYOqH.js +217 -0
- package/development/journey-header.js +8 -5
- package/development/journey-header.pure.js +2 -5
- package/development/lead-container/lead-container.component.js +2 -108
- package/development/lead-container.component-BGf8oqw7.js +122 -0
- package/development/lead-container.js +8 -5
- package/development/lead-container.pure.js +2 -5
- package/development/link/block-link/block-link.component.js +15 -7
- package/development/link/block-link-button/block-link-button.component.js +15 -7
- package/development/link/block-link-button.js +9 -7
- package/development/link/block-link-static/block-link-static.component.js +15 -7
- package/development/link/block-link-static.js +9 -7
- package/development/link/block-link.js +9 -7
- package/development/link/common/block-link-common.js +3 -124
- package/development/link/common/inline-link-common.js +3 -44
- package/development/link/common/link-common.js +2 -10
- package/development/link/common.js +4 -9
- package/development/link/link/link.component.js +14 -7
- package/development/link/link-button/link-button.component.js +14 -7
- package/development/link/link-button.js +9 -7
- package/development/link/link-static/link-static.component.js +14 -7
- package/development/link/link-static.js +9 -7
- package/development/link/link.js +9 -7
- package/development/link-common-5ob2nFyv.js +124 -0
- package/development/link-list/common/link-list-base.js +2 -131
- package/development/link-list/common.js +6 -6
- package/development/link-list/link-list-anchor.js +8 -5
- package/development/link-list/link-list.component.js +3 -152
- package/development/link-list/link-list.js +8 -5
- package/development/link-list-anchor/link-list-anchor.component.js +2 -61
- package/development/link-list-anchor.component-rAMp5_jH.js +77 -0
- package/development/link-list-anchor.js +8 -5
- package/development/link-list-anchor.pure.js +2 -5
- package/development/link-list-base-DxYNcAX7.js +172 -0
- package/development/link-list.component-DD6UjlwD.js +194 -0
- package/development/link-list.js +11 -9
- package/development/link-list.pure.js +3 -8
- package/development/link.js +10 -15
- package/development/link.pure.js +5 -15
- package/development/loading-indicator/loading-indicator.component.js +2 -243
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +2 -120
- package/development/loading-indicator-circle.component-CS32gPvE.js +144 -0
- package/development/loading-indicator-circle.js +8 -5
- package/development/loading-indicator-circle.pure.js +2 -5
- package/development/loading-indicator.component-CTRZkUdX.js +278 -0
- package/development/loading-indicator.js +8 -5
- package/development/loading-indicator.pure.js +2 -5
- package/development/logo/logo.component.js +2 -129
- package/development/logo.component-Cp-EyVpA.js +166 -0
- package/development/logo.js +8 -5
- package/development/logo.pure.js +2 -5
- package/development/map-container/map-container.component.js +2 -264
- package/development/map-container.component-BEAIuo5H.js +307 -0
- package/development/map-container.js +8 -5
- package/development/map-container.pure.js +2 -5
- package/development/menu/common/menu-action-common.js +2 -144
- package/development/menu/common.js +6 -5
- package/development/menu/menu/menu.component.js +2 -683
- package/development/menu/menu-button/menu-button.component.js +20 -8
- package/development/menu/menu-button.js +6 -4
- package/development/menu/menu-link/menu-link.component.js +21 -11
- package/development/menu/menu-link.js +6 -4
- package/development/menu/menu.js +7 -5
- package/development/menu-action-common-CyBv0NwR.js +148 -0
- package/development/menu.component-GHJHhE9D.js +638 -0
- package/development/menu.js +9 -9
- package/development/menu.pure.js +3 -9
- package/development/message/message.component.js +2 -67
- package/development/message.component-uv9eI2gl.js +82 -0
- package/development/message.js +8 -5
- package/development/message.pure.js +2 -5
- package/development/mini-button-group.component-ytJZBjmr.js +174 -0
- package/development/mini-button-link.component-DZOOdeZt.js +47 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +2 -188
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -166
- package/development/mini-calendar/mini-calendar-day.js +7 -5
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -135
- package/development/mini-calendar/mini-calendar-month.js +7 -5
- package/development/mini-calendar/mini-calendar.js +7 -5
- package/development/mini-calendar-day.component-DLP7Pa6R.js +213 -0
- package/development/mini-calendar-month.component-C1jsGlJ2.js +150 -0
- package/development/mini-calendar.component-BzqjMchx.js +192 -0
- package/development/mini-calendar.js +10 -9
- package/development/mini-calendar.pure.js +4 -9
- package/development/navigation/common/navigation-action-common.js +2 -165
- package/development/navigation/common.js +6 -5
- package/development/navigation/navigation/navigation.component.js +2 -571
- package/development/navigation/navigation-button/navigation-button.component.js +14 -7
- package/development/navigation/navigation-button.js +6 -4
- package/development/navigation/navigation-link/navigation-link.component.js +14 -7
- package/development/navigation/navigation-link.js +6 -4
- package/development/navigation/navigation-list/navigation-list.component.js +2 -102
- package/development/navigation/navigation-list.js +7 -5
- package/development/navigation/navigation-marker/navigation-marker.component.js +2 -199
- package/development/navigation/navigation-marker.js +7 -5
- package/development/navigation/navigation-section/navigation-section.component.js +2 -588
- package/development/navigation/navigation-section.js +7 -5
- package/development/navigation/navigation.js +7 -5
- package/development/navigation-action-common-saGbvoji.js +178 -0
- package/development/navigation-list.component-AFM4omXQ.js +124 -0
- package/development/navigation-marker.component-BvC73IoI.js +207 -0
- package/development/navigation-section.component-B-6XU2X5.js +600 -0
- package/development/navigation.component-_gUhpPyO.js +585 -0
- package/development/navigation.js +12 -15
- package/development/navigation.pure.js +6 -15
- package/development/notification/notification.component.js +2 -496
- package/development/notification.component-B5EBKKf8.js +530 -0
- package/development/notification.js +8 -5
- package/development/notification.pure.js +2 -5
- package/development/optgroup-base-element-CjwAXrC5.js +181 -0
- package/development/option/optgroup/optgroup-base-element.js +2 -159
- package/development/option/optgroup/optgroup.component.js +40 -37
- package/development/option/optgroup.js +7 -6
- package/development/option/option/option-base-element.js +349 -276
- package/development/option/option/option.component.js +2 -241
- package/development/option/option-hint/option-hint.component.js +2 -44
- package/development/option/option-hint.js +7 -5
- package/development/option/option.js +7 -6
- package/development/option-hint.component-CHS5Z_sK.js +55 -0
- package/development/option.component-BvOsW8Gn.js +248 -0
- package/development/option.js +10 -11
- package/development/option.pure.js +4 -11
- package/development/overlay/overlay-base-element.js +238 -247
- package/development/overlay/overlay.component.js +2 -374
- package/development/overlay.component-RS_v3xaA.js +411 -0
- package/development/overlay.js +8 -9
- package/development/overlay.pure.js +2 -9
- package/development/paginator/common/paginator-common.js +376 -272
- package/development/paginator/common.js +5 -4
- package/development/paginator/compact-paginator/compact-paginator.component.js +2 -87
- package/development/paginator/compact-paginator.js +7 -5
- package/development/paginator/paginator/paginator.component.js +2 -444
- package/development/paginator/paginator.js +7 -5
- package/development/paginator.component-cRqJW9bc.js +492 -0
- package/development/paginator.js +9 -8
- package/development/paginator.pure.js +3 -8
- package/development/popover/popover.component.js +2 -718
- package/development/popover.component-BTfbUEzF.js +745 -0
- package/development/popover.js +8 -7
- package/development/popover.pure.js +2 -6
- package/development/radio-button/common/radio-button-common.js +2 -203
- package/development/radio-button/common.js +6 -6
- package/development/radio-button/radio-button-group.js +5 -1
- package/development/radio-button/radio-button-panel.js +5 -1
- package/development/radio-button/radio-button.component.js +3 -97
- package/development/radio-button/radio-button.js +8 -5
- package/development/radio-button-common-CjbP9yKf.js +231 -0
- package/development/radio-button-group/radio-button-group.component.js +2 -308
- package/development/radio-button-group.component-5jDkRqSJ.js +404 -0
- package/development/radio-button-group.js +8 -5
- package/development/radio-button-group.pure.js +2 -5
- package/development/radio-button-panel/radio-button-panel.component.js +106 -82
- package/development/radio-button-panel.js +7 -4
- package/development/radio-button-panel.pure.js +1 -4
- package/development/radio-button.component-CVATlwTb.js +137 -0
- package/development/radio-button.js +12 -11
- package/development/radio-button.pure.js +3 -8
- package/development/sbb-tokens-Dajio3u-.js +13 -0
- package/development/screen-reader-only/screen-reader-only.component.js +2 -25
- package/development/screen-reader-only.component-D-KOAjrF.js +36 -0
- package/development/screen-reader-only.js +8 -5
- package/development/screen-reader-only.pure.js +2 -5
- package/development/select/select.component.js +2 -1087
- package/development/select.component-DyF5Tw3J.js +1084 -0
- package/development/select.js +8 -5
- package/development/select.pure.js +2 -5
- package/development/selection-action-panel/selection-action-panel.component.js +2 -125
- package/development/selection-action-panel.component-elyz1Xsb.js +134 -0
- package/development/selection-action-panel.js +8 -5
- package/development/selection-action-panel.pure.js +2 -5
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +2 -306
- package/development/selection-expansion-panel.component-hL2jyaAT.js +326 -0
- package/development/selection-expansion-panel.js +8 -5
- package/development/selection-expansion-panel.pure.js +2 -5
- package/development/sidebar/common/styles.js +2 -7
- package/development/sidebar/common.js +6 -7
- package/development/sidebar/sidebar/sidebar.component.js +2 -473
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -36
- package/development/sidebar/sidebar-close-button.js +7 -5
- package/development/sidebar/sidebar-container/sidebar-container.component.js +2 -147
- package/development/sidebar/sidebar-container.js +7 -5
- package/development/sidebar/sidebar-content/sidebar-content.component.js +2 -25
- package/development/sidebar/sidebar-content.js +7 -5
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -53
- package/development/sidebar/sidebar-title.js +7 -5
- package/development/sidebar/sidebar.js +7 -5
- package/development/sidebar-close-button.component-j4wY_hAt.js +48 -0
- package/development/sidebar-container.component-CToGMqKH.js +136 -0
- package/development/sidebar-content.component-s3GsQtNv.js +37 -0
- package/development/sidebar-title.component-Htm_hqKX.js +76 -0
- package/development/sidebar.component-Ct6TAsph.js +506 -0
- package/development/sidebar.js +12 -13
- package/development/sidebar.pure.js +6 -13
- package/development/signet/signet.component.js +2 -151
- package/development/signet.component-COqrcZqk.js +188 -0
- package/development/signet.js +8 -5
- package/development/signet.pure.js +2 -5
- package/development/skiplink-list/skiplink-list.component.js +2 -160
- package/development/skiplink-list.component-_SDkIoHp.js +198 -0
- package/development/skiplink-list.js +8 -5
- package/development/skiplink-list.pure.js +2 -5
- package/development/slider/slider.component.js +2 -399
- package/development/slider.component-B7EFECZk.js +479 -0
- package/development/slider.js +8 -5
- package/development/slider.pure.js +2 -5
- package/development/status/status.component.js +2 -144
- package/development/status.component-CE3e9OIO.js +171 -0
- package/development/status.js +8 -5
- package/development/status.pure.js +2 -5
- package/development/step-label.component-BH28AI5Z.js +298 -0
- package/development/step.component-WY7qdrR8.js +220 -0
- package/development/stepper/step/step.component.js +2 -216
- package/development/stepper/step-label/step-label.component.js +2 -298
- package/development/stepper/step-label.js +7 -5
- package/development/stepper/step.js +7 -5
- package/development/stepper/stepper/stepper.component.js +2 -465
- package/development/stepper/stepper.js +7 -7
- package/development/stepper.component-D1tAcpWs.js +508 -0
- package/development/stepper.js +10 -11
- package/development/stepper.pure.js +4 -10
- package/development/sticky-bar.component-BlgfxSRo.js +382 -0
- package/development/styles-CIZBf9Yc.js +173 -0
- package/development/styles-CYlzu-f2.js +96 -0
- package/development/tab-group.component-DZPKWjI7.js +292 -0
- package/development/tab-label.component-BJgr4u6Z.js +420 -0
- package/development/tab-nav-bar.component-rNmuMIsv.js +123 -0
- package/development/tab.component-C8jaB2_O.js +101 -0
- package/development/table/table-wrapper/table-wrapper.component.js +2 -120
- package/development/table/table-wrapper.js +7 -5
- package/development/table-wrapper.component-6WtB_fHq.js +133 -0
- package/development/table.js +8 -5
- package/development/table.pure.js +2 -5
- package/development/tabs/common/styles.js +2 -6
- package/development/tabs/common.js +6 -6
- package/development/tabs/tab/tab.component.js +2 -87
- package/development/tabs/tab-group/tab-group.component.js +2 -236
- package/development/tabs/tab-group.js +7 -5
- package/development/tabs/tab-label/tab-label.component.js +2 -369
- package/development/tabs/tab-label.js +7 -5
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -99
- package/development/tabs/tab-nav-bar.js +7 -5
- package/development/tabs/tab.js +7 -5
- package/development/tabs.js +12 -14
- package/development/tabs.pure.js +6 -14
- package/development/tag/tag/tag.component.js +2 -351
- package/development/tag/tag-group/tag-group.component.js +2 -179
- package/development/tag/tag-group.js +7 -5
- package/development/tag/tag.js +7 -5
- package/development/tag-group.component-C-EXr8Rq.js +219 -0
- package/development/tag.component-B7RY4cfx.js +419 -0
- package/development/tag.js +9 -7
- package/development/tag.pure.js +3 -7
- package/development/teaser/teaser.component.js +2 -224
- package/development/teaser-hero/teaser-hero.component.js +2 -172
- package/development/teaser-hero.component-5vVIZZ9L.js +202 -0
- package/development/teaser-hero.js +8 -5
- package/development/teaser-hero.pure.js +2 -5
- package/development/teaser-product/common/teaser-product-common.js +2 -210
- package/development/teaser-product/common.js +6 -6
- package/development/teaser-product/teaser-product/teaser-product.component.js +2 -63
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +21 -8
- package/development/teaser-product/teaser-product-static.js +6 -4
- package/development/teaser-product/teaser-product.js +7 -5
- package/development/teaser-product-common-DgnRgO6O.js +223 -0
- package/development/teaser-product.component-BsdU2W2T.js +75 -0
- package/development/teaser-product.js +9 -9
- package/development/teaser-product.pure.js +3 -9
- package/development/teaser.component-KRkFbP9-.js +243 -0
- package/development/teaser.js +8 -5
- package/development/teaser.pure.js +2 -5
- package/development/time-input/time-input.component.js +2 -213
- package/development/time-input.component-Cf6cXrIN.js +222 -0
- package/development/time-input.js +8 -5
- package/development/time-input.pure.js +2 -5
- package/development/timetable-form/timetable-form/timetable-form.component.js +2 -22
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -39
- package/development/timetable-form/timetable-form-details.js +7 -5
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -112
- package/development/timetable-form/timetable-form-field.js +7 -5
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -63
- package/development/timetable-form/timetable-form-swap-button.js +7 -5
- package/development/timetable-form/timetable-form.js +7 -5
- package/development/timetable-form-details.component-B--aGycf.js +50 -0
- package/development/timetable-form-field.component-9jwIZzIm.js +119 -0
- package/development/timetable-form-swap-button.component-Ne1-XwSf.js +74 -0
- package/development/timetable-form.component-BYHhDRXE.js +34 -0
- package/development/timetable-form.js +11 -11
- package/development/timetable-form.pure.js +5 -11
- package/development/timetable-occupancy/timetable-occupancy.component.js +2 -140
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -89
- package/development/timetable-occupancy-icon.component-BbW73Fqd.js +101 -0
- package/development/timetable-occupancy-icon.js +8 -5
- package/development/timetable-occupancy-icon.pure.js +2 -5
- package/development/timetable-occupancy.component-C3nWG5Vg.js +172 -0
- package/development/timetable-occupancy.js +8 -5
- package/development/timetable-occupancy.pure.js +2 -5
- package/development/title/title-base.js +2 -109
- package/development/title/title.component.js +3 -89
- package/development/title-base-BUQgNaUI.js +142 -0
- package/development/title.component-DgFvxLIt.js +115 -0
- package/development/title.js +9 -7
- package/development/title.pure.js +3 -7
- package/development/toast/toast.component.js +2 -401
- package/development/toast.component-Csifrfnq.js +430 -0
- package/development/toast.js +8 -5
- package/development/toast.pure.js +2 -5
- package/development/toggle/toggle/toggle.component.js +2 -331
- package/development/toggle/toggle-option/toggle-option.component.js +2 -179
- package/development/toggle/toggle-option.js +7 -5
- package/development/toggle/toggle.js +7 -5
- package/development/toggle-check/toggle-check.component.js +2 -274
- package/development/toggle-check.component-CEYmGCDZ.js +326 -0
- package/development/toggle-check.js +8 -5
- package/development/toggle-check.pure.js +2 -5
- package/development/toggle-option.component--wHdeFI6.js +216 -0
- package/development/toggle.component-CGNDEU9B.js +367 -0
- package/development/toggle.js +9 -7
- package/development/toggle.pure.js +3 -7
- package/development/tooltip/tooltip.component.js +2 -440
- package/development/tooltip.component-bVPXm6Pu.js +480 -0
- package/development/tooltip.js +8 -5
- package/development/tooltip.pure.js +2 -5
- package/development/train/train/train.component.js +2 -229
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +2 -70
- package/development/train/train-blocked-passage.js +7 -5
- package/development/train/train-formation/train-formation.component.js +2 -274
- package/development/train/train-formation.js +7 -5
- package/development/train/train-wagon/train-wagon.component.js +2 -387
- package/development/train/train-wagon.js +7 -5
- package/development/train/train.js +7 -5
- package/development/train-blocked-passage.component-CYnTeq7k.js +79 -0
- package/development/train-formation.component-QmoA0u6E.js +303 -0
- package/development/train-wagon.component-CWlRDq-Z.js +485 -0
- package/development/train.component-DcMyi7HP.js +294 -0
- package/development/train.js +11 -11
- package/development/train.pure.js +5 -11
- package/development/visual-checkbox/visual-checkbox.component.js +2 -164
- package/development/visual-checkbox.component-DtEIq9rH.js +213 -0
- package/development/visual-checkbox.js +8 -5
- package/development/visual-checkbox.pure.js +2 -5
- package/dialog/dialog/dialog.component.js +2 -148
- package/dialog/dialog-actions/dialog-actions.component.js +2 -13
- package/dialog/dialog-actions.js +4 -7
- package/dialog/dialog-close-button/dialog-close-button.component.js +2 -23
- package/dialog/dialog-close-button.js +4 -7
- package/dialog/dialog-content/dialog-content.component.js +2 -15
- package/dialog/dialog-content.js +4 -7
- package/dialog/dialog-title/dialog-title.component.js +2 -13
- package/dialog/dialog-title.js +4 -7
- package/dialog/dialog.js +4 -10
- package/dialog-actions.component-B4JYi2Ym.js +17 -0
- package/dialog-close-button.component-BtxXASCn.js +27 -0
- package/dialog-content.component-CNhoC-NZ.js +19 -0
- package/dialog-title.component-C8Jsbuqt.js +17 -0
- package/dialog.component-BHsekf9B.js +170 -0
- package/dialog.js +9 -20
- package/dialog.pure.js +6 -15
- package/divider/divider.component.js +2 -44
- package/divider.component-DFw-P_dA.js +61 -0
- package/divider.js +5 -4
- package/divider.pure.js +2 -4
- package/error.component-DL9hm4i9.js +44 -0
- package/expansion-panel/expansion-panel/expansion-panel.component.js +2 -156
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -24
- package/expansion-panel/expansion-panel-content.js +4 -7
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -57
- package/expansion-panel/expansion-panel-header.js +4 -7
- package/expansion-panel/expansion-panel.js +4 -7
- package/expansion-panel-content.component-CbWIxgH4.js +29 -0
- package/expansion-panel-header.component-CxLeXeGi.js +56 -0
- package/expansion-panel.component-Bs4icI9T.js +226 -0
- package/expansion-panel.js +7 -11
- package/expansion-panel.pure.js +4 -8
- package/file-selector/common/file-selector-common.js +2 -245
- package/file-selector/common.js +5 -7
- package/file-selector/file-selector/file-selector.component.js +25 -20
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -75
- package/file-selector/file-selector-dropzone.js +4 -7
- package/file-selector/file-selector.js +3 -6
- package/file-selector-common-C-gZH55c.js +313 -0
- package/file-selector-dropzone.component-LHNtOZPr.js +94 -0
- package/file-selector.js +7 -11
- package/file-selector.pure.js +4 -9
- package/flip-card/flip-card/flip-card.component.js +2 -120
- package/flip-card/flip-card-details/flip-card-details.component.js +2 -36
- package/flip-card/flip-card-details.js +4 -7
- package/flip-card/flip-card-summary/flip-card-summary.component.js +2 -48
- package/flip-card/flip-card-summary.js +4 -7
- package/flip-card/flip-card.js +4 -7
- package/flip-card-details.component-CiiCNjd2.js +45 -0
- package/flip-card-summary.component-nO7zKRiB.js +65 -0
- package/flip-card.component-uSdokrC9.js +138 -0
- package/flip-card.js +7 -11
- package/flip-card.pure.js +4 -8
- package/footer/footer.component.js +2 -89
- package/footer.component-Cdsiwn4D.js +129 -0
- package/footer.js +5 -4
- package/footer.pure.js +2 -4
- package/form-field/error/error.component.js +2 -42
- package/form-field/error.js +4 -7
- package/form-field/form-field/form-field.component.js +2 -344
- package/form-field/form-field-clear/form-field-clear.component.js +35 -28
- package/form-field/form-field-clear.js +3 -6
- package/form-field/form-field.js +4 -9
- package/form-field.component-CZzQYOSP.js +447 -0
- package/form-field.js +7 -13
- package/form-field.pure.js +4 -9
- package/header/common/header-action-common.js +2 -51
- package/header/common.js +5 -6
- package/header/header/header.component.js +2 -154
- package/header/header-button/header-button.component.js +9 -8
- package/header/header-button.js +3 -6
- package/header/header-environment/header-environment.component.js +2 -29
- package/header/header-environment.js +4 -7
- package/header/header-link/header-link.component.js +9 -8
- package/header/header-link.js +3 -6
- package/header/header.js +4 -7
- package/header-action-common-C2YPvOxq.js +62 -0
- package/header-environment.component-KqUmsOPQ.js +36 -0
- package/header.component-BssLZ6b7.js +203 -0
- package/header.js +9 -16
- package/header.pure.js +6 -12
- package/icon/icon-base.js +2 -105
- package/icon/icon-name-mixin.js +59 -50
- package/icon/icon-request.js +23 -29
- package/icon/icon-validate.js +19 -25
- package/icon/icon.component.js +88 -76
- package/icon-base-BYJzaEDb.js +127 -0
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -46
- package/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +19 -15
- package/icon-sidebar/icon-sidebar-button.js +3 -6
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -25
- package/icon-sidebar/icon-sidebar-container.js +4 -7
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -16
- package/icon-sidebar/icon-sidebar-content.js +4 -7
- package/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +19 -15
- package/icon-sidebar/icon-sidebar-link.js +3 -6
- package/icon-sidebar/icon-sidebar.js +4 -7
- package/icon-sidebar-container.component-BcoT4uhN.js +26 -0
- package/icon-sidebar-content.component-toRpXgxi.js +20 -0
- package/icon-sidebar.component-B5xCvDvj.js +62 -0
- package/icon-sidebar.js +8 -16
- package/icon-sidebar.pure.js +6 -12
- package/icon.js +10 -14
- package/icon.pure.js +6 -13
- package/image/image.component.js +2 -455
- package/image.component-Cq2t-XZu.js +413 -0
- package/image.js +5 -4
- package/image.pure.js +2 -4
- package/inline-link-common-Dgdi7qpI.js +18 -0
- package/journey-header/journey-header.component.js +2 -95
- package/journey-header.component-CR8AO0b2.js +143 -0
- package/journey-header.js +5 -4
- package/journey-header.pure.js +2 -4
- package/lead-container/lead-container.component.js +2 -23
- package/lead-container.component-CXKHfBiS.js +27 -0
- package/lead-container.js +5 -4
- package/lead-container.pure.js +2 -4
- package/link/block-link/block-link.component.js +9 -8
- package/link/block-link-button/block-link-button.component.js +10 -9
- package/link/block-link-button.js +6 -6
- package/link/block-link-static/block-link-static.component.js +10 -9
- package/link/block-link-static.js +4 -4
- package/link/block-link.js +6 -6
- package/link/common/block-link-common.js +3 -44
- package/link/common/inline-link-common.js +3 -13
- package/link/common/link-common.js +2 -9
- package/link/common.js +4 -8
- package/link/link/link.component.js +10 -9
- package/link/link-button/link-button.component.js +10 -9
- package/link/link-button.js +4 -4
- package/link/link-static/link-static.component.js +10 -9
- package/link/link-static.js +4 -4
- package/link/link.js +6 -6
- package/link-common-CYxyP4XZ.js +52 -0
- package/link-list/common/link-list-base.js +2 -90
- package/link-list/common.js +5 -7
- package/link-list/link-list-anchor.js +6 -8
- package/link-list/link-list.component.js +3 -47
- package/link-list/link-list.js +5 -7
- package/link-list-anchor/link-list-anchor.component.js +2 -10
- package/link-list-anchor.component--u5j_aqv.js +18 -0
- package/link-list-anchor.js +5 -4
- package/link-list-anchor.pure.js +2 -4
- package/link-list-base-CzFYpTOG.js +115 -0
- package/link-list.component-9ndHNGPS.js +78 -0
- package/link-list.js +8 -10
- package/link-list.pure.js +3 -7
- package/link.js +12 -25
- package/link.pure.js +11 -20
- package/loading-indicator/loading-indicator.component.js +2 -65
- package/loading-indicator-circle/loading-indicator-circle.component.js +2 -45
- package/loading-indicator-circle.component-CfbXpYX6.js +62 -0
- package/loading-indicator-circle.js +5 -4
- package/loading-indicator-circle.pure.js +2 -4
- package/loading-indicator.component-CoU9mwN8.js +92 -0
- package/loading-indicator.js +5 -4
- package/loading-indicator.pure.js +2 -4
- package/logo/logo.component.js +2 -67
- package/logo.component-nxragzaC.js +94 -0
- package/logo.js +5 -4
- package/logo.pure.js +2 -4
- package/map-container/map-container.component.js +2 -108
- package/map-container.component-C2W_7Xiw.js +128 -0
- package/map-container.js +5 -4
- package/map-container.pure.js +2 -4
- package/menu/common/menu-action-common.js +2 -28
- package/menu/common.js +5 -6
- package/menu/menu/menu.component.js +2 -274
- package/menu/menu-button/menu-button.component.js +13 -9
- package/menu/menu-button.js +3 -6
- package/menu/menu-link/menu-link.component.js +13 -12
- package/menu/menu-link.js +3 -6
- package/menu/menu.js +4 -7
- package/menu-action-common-BcB_Tyvl.js +29 -0
- package/menu.component-BdqUbvww.js +252 -0
- package/menu.js +7 -12
- package/menu.pure.js +5 -10
- package/message/message.component.js +2 -23
- package/message.component-DbmXg6DI.js +27 -0
- package/message.js +5 -4
- package/message.pure.js +2 -4
- package/mini-button-group.component-D5Dph1Z7.js +89 -0
- package/mini-button-link.component-BYK_EUud.js +31 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +2 -131
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -66
- package/mini-calendar/mini-calendar-day.js +4 -7
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -63
- package/mini-calendar/mini-calendar-month.js +4 -7
- package/mini-calendar/mini-calendar.js +4 -7
- package/mini-calendar-day.component-cAawa9Gr.js +106 -0
- package/mini-calendar-month.component-DiYSVb-Y.js +74 -0
- package/mini-calendar.component-DpPMb47Y.js +144 -0
- package/mini-calendar.js +7 -11
- package/mini-calendar.pure.js +4 -8
- package/navigation/common/navigation-action-common.js +2 -57
- package/navigation/common.js +5 -6
- package/navigation/navigation/navigation.component.js +2 -188
- package/navigation/navigation-button/navigation-button.component.js +9 -8
- package/navigation/navigation-button.js +3 -6
- package/navigation/navigation-link/navigation-link.component.js +9 -8
- package/navigation/navigation-link.js +3 -6
- package/navigation/navigation-list/navigation-list.component.js +2 -59
- package/navigation/navigation-list.js +4 -7
- package/navigation/navigation-marker/navigation-marker.component.js +2 -82
- package/navigation/navigation-marker.js +4 -7
- package/navigation/navigation-section/navigation-section.component.js +2 -224
- package/navigation/navigation-section.js +4 -7
- package/navigation/navigation.js +4 -7
- package/navigation-action-common-Dcb95pqU.js +64 -0
- package/navigation-list.component-BhV-uAfU.js +71 -0
- package/navigation-marker.component-CIUu5VVZ.js +88 -0
- package/navigation-section.component-DwEXj603.js +237 -0
- package/navigation.component-BYqJ9Cqt.js +208 -0
- package/navigation.js +11 -22
- package/navigation.pure.js +8 -16
- package/notification/notification.component.js +2 -165
- package/notification.component-DZS8z1oa.js +197 -0
- package/notification.js +5 -4
- package/notification.pure.js +2 -4
- package/optgroup-base-element-DWKHCat8.js +107 -0
- package/option/optgroup/optgroup-base-element.js +2 -83
- package/option/optgroup/optgroup.component.js +29 -30
- package/option/optgroup.js +5 -9
- package/option/option/option-base-element.js +257 -201
- package/option/option/option.component.js +2 -87
- package/option/option-hint/option-hint.component.js +2 -19
- package/option/option-hint.js +4 -7
- package/option/option.js +5 -9
- package/option-hint.component-Goyhv5ss.js +23 -0
- package/option.component-uzmmREt4.js +98 -0
- package/option.js +9 -15
- package/option.pure.js +6 -12
- package/overlay/overlay-base-element.js +154 -149
- package/overlay/overlay.component.js +2 -138
- package/overlay.component-r0Rp_b-3.js +163 -0
- package/overlay.js +7 -10
- package/overlay.pure.js +3 -9
- package/package.json +2 -2
- package/paginator/common/paginator-common.js +268 -201
- package/paginator/common.js +5 -6
- package/paginator/compact-paginator/compact-paginator.component.js +2 -40
- package/paginator/compact-paginator.js +4 -7
- package/paginator/paginator/paginator.component.js +2 -175
- package/paginator/paginator.js +4 -7
- package/paginator.component-D_fV260x.js +206 -0
- package/paginator.js +7 -10
- package/paginator.pure.js +3 -7
- package/popover/popover.component.js +2 -316
- package/popover.component-Dh9vbuDG.js +353 -0
- package/popover.js +5 -6
- package/popover.pure.js +2 -5
- package/radio-button/common/radio-button-common.js +2 -63
- package/radio-button/common.js +5 -7
- package/radio-button/radio-button-group.js +2 -3
- package/radio-button/radio-button-panel.js +2 -3
- package/radio-button/radio-button.component.js +3 -71
- package/radio-button/radio-button.js +5 -7
- package/radio-button-common-CCQ3bJPI.js +77 -0
- package/radio-button-group/radio-button-group.component.js +2 -167
- package/radio-button-group.component-Cf8r6Whf.js +232 -0
- package/radio-button-group.js +6 -5
- package/radio-button-group.pure.js +2 -4
- package/radio-button-panel/radio-button-panel.component.js +78 -68
- package/radio-button-panel.js +4 -3
- package/radio-button-panel.pure.js +2 -4
- package/radio-button.component-B5b5OhBw.js +93 -0
- package/radio-button.js +9 -13
- package/radio-button.pure.js +3 -7
- package/sbb-tokens-BJzKBCf8.js +4 -0
- package/screen-reader-only/screen-reader-only.component.js +2 -12
- package/screen-reader-only.component-B06hVxPg.js +16 -0
- package/screen-reader-only.js +5 -4
- package/screen-reader-only.pure.js +2 -4
- package/select/select.component.js +2 -498
- package/select.component-BZbDGrv8.js +522 -0
- package/select.js +5 -4
- package/select.pure.js +2 -4
- package/selection-action-panel/selection-action-panel.component.js +2 -33
- package/selection-action-panel.component-_kh6l2sj.js +35 -0
- package/selection-action-panel.js +5 -4
- package/selection-action-panel.pure.js +2 -4
- package/selection-expansion-panel/selection-expansion-panel.component.js +2 -116
- package/selection-expansion-panel.component-ChMYCw38.js +144 -0
- package/selection-expansion-panel.js +5 -4
- package/selection-expansion-panel.pure.js +2 -4
- package/sidebar/common/styles.js +2 -6
- package/sidebar/common.js +5 -8
- package/sidebar/sidebar/sidebar.component.js +2 -182
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -26
- package/sidebar/sidebar-close-button.js +4 -7
- package/sidebar/sidebar-container/sidebar-container.component.js +2 -76
- package/sidebar/sidebar-container.js +4 -7
- package/sidebar/sidebar-content/sidebar-content.component.js +2 -16
- package/sidebar/sidebar-content.js +4 -7
- package/sidebar/sidebar-title/sidebar-title.component.js +2 -39
- package/sidebar/sidebar-title.js +4 -7
- package/sidebar/sidebar.js +4 -7
- package/sidebar-close-button.component-B9QGnQLs.js +30 -0
- package/sidebar-container.component-BW24Ap9F.js +63 -0
- package/sidebar-content.component-DSTp9Iu6.js +20 -0
- package/sidebar-title.component-COjEsAkk.js +53 -0
- package/sidebar.component-C2YYQj-Q.js +238 -0
- package/sidebar.js +9 -17
- package/sidebar.pure.js +6 -12
- package/signet/signet.component.js +2 -74
- package/signet.component-CixiIpLj.js +101 -0
- package/signet.js +5 -4
- package/signet.pure.js +2 -4
- package/skiplink-list/skiplink-list.component.js +2 -77
- package/skiplink-list.component-CINJgt_l.js +102 -0
- package/skiplink-list.js +5 -4
- package/skiplink-list.pure.js +2 -4
- package/slider/slider.component.js +2 -200
- package/slider.component-BhtuB-8p.js +249 -0
- package/slider.js +5 -4
- package/slider.pure.js +2 -4
- package/status/status.component.js +2 -69
- package/status.component-BZ8zajOL.js +83 -0
- package/status.js +5 -4
- package/status.pure.js +2 -4
- package/step-label.component-COJYo-MI.js +82 -0
- package/step.component-BIOQdZVR.js +94 -0
- package/stepper/step/step.component.js +2 -111
- package/stepper/step-label/step-label.component.js +2 -96
- package/stepper/step-label.js +4 -7
- package/stepper/step.js +4 -7
- package/stepper/stepper/stepper.component.js +2 -236
- package/stepper/stepper.js +4 -9
- package/stepper.component-D2vhtDCy.js +286 -0
- package/stepper.js +7 -13
- package/stepper.pure.js +4 -9
- package/sticky-bar.component-CYCOEGz7.js +141 -0
- package/styles-DpIXFSVm.js +5 -0
- package/styles-uZGSPqgK.js +5 -0
- package/tab-group.component-nprcnwFB.js +185 -0
- package/tab-label.component-BeLuYRBg.js +165 -0
- package/tab-nav-bar.component-Du1JyNtu.js +81 -0
- package/tab.component-D8Rz05Fo.js +48 -0
- package/table/table-wrapper/table-wrapper.component.js +2 -70
- package/table/table-wrapper.js +4 -7
- package/table-wrapper.component-DkaL4T5V.js +83 -0
- package/table.js +5 -4
- package/table.pure.js +2 -4
- package/tabs/common/styles.js +2 -5
- package/tabs/common.js +5 -7
- package/tabs/tab/tab.component.js +2 -46
- package/tabs/tab-group/tab-group.component.js +2 -167
- package/tabs/tab-group.js +4 -7
- package/tabs/tab-label/tab-label.component.js +2 -128
- package/tabs/tab-label.js +4 -7
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -67
- package/tabs/tab-nav-bar.js +4 -7
- package/tabs/tab.js +4 -7
- package/tabs.js +9 -17
- package/tabs.pure.js +6 -13
- package/tag/tag/tag.component.js +2 -128
- package/tag/tag-group/tag-group.component.js +2 -119
- package/tag/tag-group.js +4 -7
- package/tag/tag.js +4 -7
- package/tag-group.component-CW6Z9-P6.js +143 -0
- package/tag.component-CvZpvIuw.js +170 -0
- package/tag.js +6 -8
- package/tag.pure.js +3 -6
- package/teaser/teaser.component.js +2 -80
- package/teaser-hero/teaser-hero.component.js +2 -62
- package/teaser-hero.component-Dolg4-Yz.js +80 -0
- package/teaser-hero.js +5 -4
- package/teaser-hero.pure.js +2 -4
- package/teaser-product/common/teaser-product-common.js +2 -54
- package/teaser-product/common.js +5 -7
- package/teaser-product/teaser-product/teaser-product.component.js +2 -28
- package/teaser-product/teaser-product-static/teaser-product-static.component.js +13 -9
- package/teaser-product/teaser-product-static.js +3 -6
- package/teaser-product/teaser-product.js +4 -7
- package/teaser-product-common-q2IZHbkr.js +62 -0
- package/teaser-product.component-DVdyKe6h.js +29 -0
- package/teaser-product.js +7 -11
- package/teaser-product.pure.js +4 -9
- package/teaser.component-DPvDVG6b.js +91 -0
- package/teaser.js +5 -4
- package/teaser.pure.js +2 -4
- package/time-input/time-input.component.js +2 -128
- package/time-input.component-ChWhDF5l.js +141 -0
- package/time-input.js +5 -4
- package/time-input.pure.js +2 -4
- package/timetable-form/timetable-form/timetable-form.component.js +2 -12
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -12
- package/timetable-form/timetable-form-details.js +4 -7
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -26
- package/timetable-form/timetable-form-field.js +4 -7
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -33
- package/timetable-form/timetable-form-swap-button.js +4 -7
- package/timetable-form/timetable-form.js +4 -7
- package/timetable-form-details.component-Du6WPn3y.js +16 -0
- package/timetable-form-field.component-Cb3FYKL7.js +32 -0
- package/timetable-form-swap-button.component-ByQDf7oy.js +37 -0
- package/timetable-form.component-BqokC_4S.js +16 -0
- package/timetable-form.js +8 -14
- package/timetable-form.pure.js +5 -10
- package/timetable-occupancy/timetable-occupancy.component.js +2 -77
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -61
- package/timetable-occupancy-icon.component-BhXQSFZR.js +72 -0
- package/timetable-occupancy-icon.js +5 -4
- package/timetable-occupancy-icon.pure.js +2 -4
- package/timetable-occupancy.component-DnaQ0TIW.js +101 -0
- package/timetable-occupancy.js +5 -4
- package/timetable-occupancy.pure.js +2 -4
- package/title/title-base.js +2 -53
- package/title/title.component.js +3 -37
- package/title-base-D4nE41tH.js +80 -0
- package/title.component-DNBy2mIm.js +54 -0
- package/title.js +7 -7
- package/title.pure.js +3 -6
- package/toast/toast.component.js +2 -180
- package/toast.component-B9Gm8Kls.js +189 -0
- package/toast.js +5 -4
- package/toast.pure.js +2 -4
- package/toggle/toggle/toggle.component.js +2 -147
- package/toggle/toggle-option/toggle-option.component.js +2 -90
- package/toggle/toggle-option.js +4 -7
- package/toggle/toggle.js +4 -7
- package/toggle-check/toggle-check.component.js +2 -85
- package/toggle-check.component-BcxMe5Zi.js +119 -0
- package/toggle-check.js +5 -4
- package/toggle-check.pure.js +2 -4
- package/toggle-option.component-DvdEjT2c.js +123 -0
- package/toggle.component-Lnj5TugJ.js +161 -0
- package/toggle.js +6 -8
- package/toggle.pure.js +3 -6
- package/tooltip/tooltip.component.js +2 -197
- package/tooltip.component-B5fKuZdI.js +228 -0
- package/tooltip.js +5 -4
- package/tooltip.pure.js +2 -4
- package/train/train/train.component.js +2 -123
- package/train/train-blocked-passage/train-blocked-passage.component.js +2 -19
- package/train/train-blocked-passage.js +4 -7
- package/train/train-formation/train-formation.component.js +2 -93
- package/train/train-formation.js +4 -7
- package/train/train-wagon/train-wagon.component.js +2 -174
- package/train/train-wagon.js +4 -7
- package/train/train.js +4 -7
- package/train-blocked-passage.component-Dz7lD_V1.js +23 -0
- package/train-formation.component-CGTqQgp7.js +121 -0
- package/train-wagon.component-BW-JxcK6.js +259 -0
- package/train.component-B_Nlu8Kh.js +176 -0
- package/train.js +8 -14
- package/train.pure.js +5 -10
- package/visual-checkbox/visual-checkbox.component.js +2 -81
- package/visual-checkbox.component-bB_pG0vn.js +118 -0
- package/visual-checkbox.js +5 -4
- package/visual-checkbox.pure.js +2 -4
- package/development/icon-sidebar-button-common-DR6eQvkq.js +0 -93
- package/development/link-common-d27fHmQw.js +0 -111
- package/development/mini-button-label-common-BaMSfSTe.js +0 -558
- package/development/sbb-tokens-DQT_xEIZ.js +0 -19
- package/development/tab-label-common-Mfl36Rsa.js +0 -171
- package/icon-sidebar-button-common-ffAscVDk.js +0 -7
- package/link-common-7IiqjmPD.js +0 -45
- package/mini-button-label-common-Dx9JhmQ6.js +0 -11
- package/sbb-tokens-HiNSQasB.js +0 -11
- package/tab-label-common-D6k40yRU.js +0 -6
|
@@ -1,1227 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var ze = (o, n, d) => n.has(o) || Ye("Cannot " + d);
|
|
5
|
-
var A = (o, n, d) => (ze(o, n, "read from private field"), d ? d.call(o) : n.get(o)), x = (o, n, d) => n.has(o) ? Ye("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, d), _ = (o, n, d, h) => (ze(o, n, "write to private field"), h ? h.call(o, d) : n.set(o, d), d);
|
|
6
|
-
import { __esDecorate as w, __runInitializers as u } from "tslib";
|
|
7
|
-
import { css as Se, isServer as Fe, nothing as p, html as c } from "lit";
|
|
8
|
-
import { property as Y, state as Q } from "lit/decorators.js";
|
|
9
|
-
import { classMap as J } from "lit/directives/class-map.js";
|
|
10
|
-
import { isArrowKeyOrPageKeysPressed as Te } from "../../core/a11y.js";
|
|
11
|
-
import { SbbElement as Pe } from "../../core/base-elements.js";
|
|
12
|
-
import { readConfig as Ee } from "../../core/config.js";
|
|
13
|
-
import { SbbLanguageController as Le, SbbMediaMatcherController as Be, SbbMediaQueryBreakpointLargeAndAbove as Oe } from "../../core/controllers.js";
|
|
14
|
-
import { defaultDateAdapter as He, YEARS_PER_PAGE as $, DAYS_PER_ROW as y, MONTHS_PER_ROW as j, YEARS_PER_ROW as G, MONTHS_PER_PAGE as qe } from "../../core/datetime.js";
|
|
15
|
-
import { forceType as X, plainDate as We, handleDistinctChange as Ke } from "../../core/decorators.js";
|
|
16
|
-
import { i18nPreviousMonth as Ue, i18nNextMonth as Qe, i18nYearMonthSelection as je, i18nCalendarWeekNumber as K, i18nPreviousYear as Ge, i18nNextYear as Je, i18nCalendarDateSelection as Ne, i18nPreviousYearRange as Xe, i18nNextYearRange as Ze } from "../../core/i18n.js";
|
|
17
|
-
import { boxSizingStyles as et } from "../../core/styles.js";
|
|
18
|
-
import { SbbCalendarDayElement as tt } from "../calendar-day/calendar-day.component.js";
|
|
19
|
-
import "../../button/secondary-button.js";
|
|
20
|
-
import "../../icon.js";
|
|
21
|
-
import "../../screen-reader-only.js";
|
|
22
|
-
const at = 6048e5, Ie = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
23
|
-
function F(o, n) {
|
|
24
|
-
return typeof o == "function" ? o(n) : o && typeof o == "object" && Ie in o ? o[Ie](n) : o instanceof Date ? new o.constructor(n) : new Date(n);
|
|
25
|
-
}
|
|
26
|
-
function U(o, n) {
|
|
27
|
-
return F(n || o, o);
|
|
28
|
-
}
|
|
29
|
-
function st(o, n, d) {
|
|
30
|
-
const h = U(o, d?.in);
|
|
31
|
-
return isNaN(n) ? F(o, NaN) : (n && h.setDate(h.getDate() + n), h);
|
|
32
|
-
}
|
|
33
|
-
let rt = {};
|
|
34
|
-
function Z() {
|
|
35
|
-
return rt;
|
|
36
|
-
}
|
|
37
|
-
function z(o, n) {
|
|
38
|
-
const d = Z(), h = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? d.weekStartsOn ?? d.locale?.options?.weekStartsOn ?? 0, m = U(o, n?.in), v = m.getDay(), V = (v < h ? 7 : 0) + v - h;
|
|
39
|
-
return m.setDate(m.getDate() - V), m.setHours(0, 0, 0, 0), m;
|
|
40
|
-
}
|
|
41
|
-
function it(o, ...n) {
|
|
42
|
-
const d = F.bind(
|
|
43
|
-
null,
|
|
44
|
-
o || n.find((h) => typeof h == "object")
|
|
45
|
-
);
|
|
46
|
-
return n.map(d);
|
|
47
|
-
}
|
|
48
|
-
function nt(o, n, d) {
|
|
49
|
-
return st(o, n * 7, d);
|
|
50
|
-
}
|
|
51
|
-
function lt(o, n) {
|
|
52
|
-
const d = U(o, n?.in), h = d.getMonth();
|
|
53
|
-
return d.setFullYear(d.getFullYear(), h + 1, 0), d.setHours(23, 59, 59, 999), d;
|
|
54
|
-
}
|
|
55
|
-
function ot(o, n) {
|
|
56
|
-
const [d, h] = it(o, n.start, n.end);
|
|
57
|
-
return { start: d, end: h };
|
|
58
|
-
}
|
|
59
|
-
function dt(o, n) {
|
|
60
|
-
const { start: d, end: h } = ot(n?.in, o);
|
|
61
|
-
let m = +d > +h;
|
|
62
|
-
const v = z(m ? h : d, n), V = z(m ? d : h, n);
|
|
63
|
-
v.setHours(15), V.setHours(15);
|
|
64
|
-
const O = +V.getTime();
|
|
65
|
-
let D = v, M = n?.step ?? 1;
|
|
66
|
-
if (!M) return [];
|
|
67
|
-
M < 0 && (M = -M, m = !m);
|
|
68
|
-
const W = [];
|
|
69
|
-
for (; +D <= O; )
|
|
70
|
-
D.setHours(0), W.push(F(d, D)), D = nt(D, M), D.setHours(15);
|
|
71
|
-
return m ? W.reverse() : W;
|
|
72
|
-
}
|
|
73
|
-
function ct(o, n) {
|
|
74
|
-
const d = U(o, n?.in);
|
|
75
|
-
return d.setDate(1), d.setHours(0, 0, 0, 0), d;
|
|
76
|
-
}
|
|
77
|
-
function ht(o, n) {
|
|
78
|
-
const d = U(o, n?.in), h = d.getFullYear(), m = Z(), v = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? m.firstWeekContainsDate ?? m.locale?.options?.firstWeekContainsDate ?? 1, V = F(n?.in || o, 0);
|
|
79
|
-
V.setFullYear(h + 1, 0, v), V.setHours(0, 0, 0, 0);
|
|
80
|
-
const O = z(V, n), D = F(n?.in || o, 0);
|
|
81
|
-
D.setFullYear(h, 0, v), D.setHours(0, 0, 0, 0);
|
|
82
|
-
const M = z(D, n);
|
|
83
|
-
return +d >= +O ? h + 1 : +d >= +M ? h : h - 1;
|
|
84
|
-
}
|
|
85
|
-
function bt(o, n) {
|
|
86
|
-
const d = Z(), h = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? d.firstWeekContainsDate ?? d.locale?.options?.firstWeekContainsDate ?? 1, m = ht(o, n), v = F(n?.in || o, 0);
|
|
87
|
-
return v.setFullYear(m, 0, h), v.setHours(0, 0, 0, 0), z(v, n);
|
|
88
|
-
}
|
|
89
|
-
function Ce(o, n) {
|
|
90
|
-
const d = U(o, n?.in), h = +z(d, n) - +bt(d, n);
|
|
91
|
-
return Math.round(h / at) + 1;
|
|
92
|
-
}
|
|
93
|
-
const _t = Se`:host{display:block;width:max-content;--sbb-calendar-cell-size: 2.5rem;--sbb-calendar-hover-shift: .0625rem;--sbb-calendar-wide-cell-size: 4.375rem;--sbb-calendar-header-color: var(--sbb-color-granite);--sbb-calendar-header-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-calendar-cell-background-color: transparent;--sbb-calendar-cell-background-color-hover: var(--sbb-background-color-3);--sbb-calendar-cell-background-color-active: var(--sbb-background-color-4);--sbb-calendar-cell-padding: .125rem;--sbb-calendar-cell-color: var(--sbb-color-2);--sbb-calendar-cell-border-radius: var(--sbb-border-radius-4x);--sbb-calendar-cell-selected-border: var(--sbb-border-width-2x) solid var(--sbb-border-color-2);--sbb-calendar-cell-selected-background-color: var(--sbb-background-color-2-inverted);--sbb-calendar-cell-disabled-height: .09375rem;--sbb-calendar-cell-disabled-width: 1.59375rem;--sbb-calendar-cell-disabled-color: var(--sbb-color-granite);--sbb-calendar-cell-disabled-color: light-dark(var(--sbb-color-granite), var(--sbb-color-smoke));--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-calendar-cell-transition-easing-function: var(--sbb-animation-easing);--sbb-calendar-tables-gap: var(--sbb-spacing-fixed-10x);--sbb-calendar-table-animation-shift: .00625rem;--sbb-calendar-table-animation-duration: .1ms;--sbb-calendar-table-column-spaces: 12;--sbb-calendar-control-view-change-height: 2.75rem;--sbb-calendar-control-view-change-color: var(--sbb-color-3);--sbb-calendar-control-view-change-background: var(--sbb-background-color-1);--sbb-calendar-cell-year-month-width: 4.8125rem;--sbb-calendar-cell-year-month-height: 2.75rem}@media(min-width:37.5rem){:host{--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-wide-cell-size: 4.8125rem;--sbb-calendar-control-view-change-height: 3rem}}:host(:is(:state(enhanced),[state--enhanced])){--sbb-calendar-cell-padding-block-end: var(--sbb-spacing-fixed-3x)}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-spacing-fixed-2x);margin-block-end:var(--sbb-spacing-fixed-4x)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);text-transform:capitalize;cursor:var(--sbb-cursor-pointer);padding-inline:var(--sbb-spacing-fixed-5x) var(--sbb-spacing-fixed-2x);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-background: light-dark( var(--sbb-color-milk), var(--sbb-color-anthracite) );--sbb-calendar-control-view-change-color: var(--sbb-color-granite);--sbb-calendar-control-view-change-color: light-dark( var(--sbb-color-granite), var(--sbb-color-aluminium) );cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media(any-hover:hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-background-color-3)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-overflow-break{contain:layout}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host(:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=horizontal][week-numbers]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc(8 * var(--sbb-calendar-cell-size))}:host([orientation=horizontal][week-numbers]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 8 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical]:is(:state(wide),[state--wide])) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not(:is(:state(wide),[state--wide]))) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header,.sbb-calendar__table-body{text-align:center}.sbb-calendar__table-header-cell,.sbb-calendar__table-header-cell-vertical{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);width:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-header-color);padding:0}:host(:not([multiple])) .sbb-calendar__table-header-cell,:host(:not([multiple])) .sbb-calendar__table-header-cell-vertical{height:var(--sbb-calendar-cell-size)}.sbb-calendar__table-header-cell-vertical{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__header-cell,.sbb-calendar__cell{appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);height:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-cell-color);cursor:var(--sbb-cursor-pointer);position:relative;z-index:0}.sbb-calendar__header-cell:before,.sbb-calendar__cell:before{content:"";position:absolute;inset:var(--sbb-calendar-cell-padding);background-color:var(--sbb-calendar-cell-background-color);border-radius:var(--sbb-calendar-cell-border-radius);z-index:-1;transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color}@media(any-hover:hover){.sbb-calendar__header-cell:not(:active,:disabled):hover,.sbb-calendar__cell:not(:active,:disabled):hover{--sbb-calendar-cell-background-color: var(--sbb-calendar-cell-background-color-hover);padding-block-end:var(--sbb-calendar-hover-shift)}}@media(any-hover:hover)and (forced-colors:active){.sbb-calendar__header-cell:not(:active,:disabled):hover:before,.sbb-calendar__cell:not(:active,:disabled):hover: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);--sbb-focus-outline-style: initial}}.sbb-calendar__header-cell:disabled,.sbb-calendar__cell:disabled{--sbb-calendar-cell-color: var(--sbb-calendar-cell-disabled-color);cursor:unset}.sbb-calendar__header-cell:focus-visible:before,.sbb-calendar__cell:focus-visible: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)}.sbb-calendar__header-cell:not(:disabled):active,.sbb-calendar__cell:not(:disabled):active{--sbb-calendar-cell-background-color: var(--sbb-calendar-cell-background-color-active)}@media(forced-colors:active){.sbb-calendar__header-cell:not(:disabled):active:before,.sbb-calendar__cell:not(:disabled):active: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);--sbb-focus-outline-style: initial}}.sbb-calendar__header-cell{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);color:var(--sbb-calendar-header-color)}.sbb-calendar__cell{height:var(--sbb-calendar-cell-year-month-height);width:var(--sbb-calendar-cell-year-month-width)}.sbb-calendar__weekday{width:var(--sbb-calendar-cell-size)}.sbb-calendar__day-cell{padding-block-end:var(--sbb-calendar-cell-padding-block-end)}.sbb-calendar__crossed-out:after{content:"";height:var(--sbb-calendar-cell-disabled-height);width:var(--sbb-calendar-cell-disabled-width);position:absolute;background-color:var(--sbb-calendar-cell-disabled-color);top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg)}.sbb-calendar__cell-current{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);font-weight:700}.sbb-calendar__selected:before{border:var(--sbb-calendar-cell-selected-border);border-radius:var(--sbb-calendar-cell-border-radius)}sbb-calendar-day{--sbb-calendar-day-flex-direction: row;--sbb-calendar-day-justify-content: center;--sbb-calendar-day-align-items: center;--sbb-calendar-day-extra-display: none;--sbb-calendar-day-crossed-out-top: 50%;--sbb-calendar-day-crossed-out-translate: translate(-50%, -50%) rotate(-45deg);--sbb-calendar-day-height: 2.75rem;--sbb-calendar-day-value-height: unset}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}`;
|
|
94
|
-
tt.define();
|
|
95
|
-
class ut extends Event {
|
|
96
|
-
get range() {
|
|
97
|
-
return this._range;
|
|
98
|
-
}
|
|
99
|
-
constructor(n) {
|
|
100
|
-
super("monthchange", { bubbles: !0, composed: !0 }), this._range = Object.freeze(n || []);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
let Wt = (() => {
|
|
104
|
-
var N, I, C, R, S, T, P, E, L, B, H, q, g;
|
|
105
|
-
let o = Pe, n = [], d, h = [], m = [], v, V = [], O = [], D, M = [], W = [], ee, te = [], ae = [], se, re = [], ie = [], ne, le, oe = [], de = [], ce, he = [], be = [], _e, ue = [], fe = [], ge, me = [], pe = [], ve, we = [], ye = [], De, ke, Ae = [], xe = [], Ve, $e = [], Me = [];
|
|
106
|
-
return g = class extends o {
|
|
107
|
-
constructor() {
|
|
108
|
-
super();
|
|
109
|
-
x(this, N);
|
|
110
|
-
x(this, I);
|
|
111
|
-
x(this, C);
|
|
112
|
-
x(this, R);
|
|
113
|
-
x(this, S);
|
|
114
|
-
x(this, T);
|
|
115
|
-
x(this, P);
|
|
116
|
-
x(this, E);
|
|
117
|
-
x(this, L);
|
|
118
|
-
x(this, B);
|
|
119
|
-
x(this, H);
|
|
120
|
-
x(this, q);
|
|
121
|
-
_(this, N, (u(this, n), u(this, h, !1))), _(this, I, (u(this, m), u(this, V, "day"))), _(this, C, (u(this, O), u(this, M, null))), _(this, R, (u(this, W), u(this, te, null))), _(this, S, (u(this, ae), u(this, re, !1))), _(this, T, (u(this, ie), u(this, oe, null))), _(this, P, (u(this, de), u(this, he, null))), _(this, E, (u(this, be), u(this, ue, "horizontal"))), _(this, L, (u(this, fe), u(this, me, !1))), this._dateAdapter = (u(this, pe), Ee().datetime?.dateAdapter ?? He), _(this, B, u(this, we, this._dateAdapter.today())), this._wideInternal = (u(this, ye), !1), _(this, H, u(this, Ae, "day")), this._nextCalendarView = (u(this, xe), "day"), this._keyboardNavigationDayViewParameters = {
|
|
122
|
-
firstDayInView: null,
|
|
123
|
-
lastDayInView: null,
|
|
124
|
-
firstMonthOffset: 0,
|
|
125
|
-
firstMonthLength: 0,
|
|
126
|
-
secondMonthOffset: 0
|
|
127
|
-
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._enhancedVariant = !1, this._resetFocus = !1, this._containingFocus = !1, _(this, q, u(this, $e, !1)), this._language = (u(this, Me), new Le(this).withHandler(() => {
|
|
128
|
-
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
129
|
-
})), this._mediaMatcher = new Be(this, {
|
|
130
|
-
[Oe]: () => this._init()
|
|
131
|
-
}), this._onSlotChange = () => {
|
|
132
|
-
this._enhancedVariant = Array.from(this.children).some((e) => e.localName === "sbb-calendar-day"), this.toggleState("enhanced", this._enhancedVariant), this._setTabIndex();
|
|
133
|
-
}, this._createMonthRows(), this._setWeekdays(), this.addEventListener("focusin", () => this._containingFocus = !0), this.addEventListener("focusout", () => this._containingFocus = !1), this.addEventListener("click", (e) => {
|
|
134
|
-
const t = e.target.closest("sbb-calendar-day");
|
|
135
|
-
t && this._selectDate(t.value);
|
|
136
|
-
}), this.addEventListener("keydown", (e) => {
|
|
137
|
-
e.target.localName === "sbb-calendar-day" && this._handleKeyboardEvent(e, this._mapDateToDay(e.target.value));
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
/** If set to true, two months are displayed */
|
|
141
|
-
get wide() {
|
|
142
|
-
return A(this, N);
|
|
143
|
-
}
|
|
144
|
-
set wide(e) {
|
|
145
|
-
_(this, N, e);
|
|
146
|
-
}
|
|
147
|
-
/** The initial view of the calendar which should be displayed on opening. */
|
|
148
|
-
get view() {
|
|
149
|
-
return A(this, I);
|
|
150
|
-
}
|
|
151
|
-
set view(e) {
|
|
152
|
-
_(this, I, e);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* The minimum valid date. Accepts a date object or null.
|
|
156
|
-
* Accepts an ISO8601 formatted string (e.g. 2024-12-24) as attribute.
|
|
157
|
-
*/
|
|
158
|
-
get min() {
|
|
159
|
-
return A(this, C);
|
|
160
|
-
}
|
|
161
|
-
set min(e) {
|
|
162
|
-
_(this, C, e);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The maximum valid date. Accepts a date object or null.
|
|
166
|
-
* Accepts an ISO8601 formatted string (e.g. 2024-12-24) as attribute.
|
|
167
|
-
*/
|
|
168
|
-
get max() {
|
|
169
|
-
return A(this, R);
|
|
170
|
-
}
|
|
171
|
-
set max(e) {
|
|
172
|
-
_(this, R, e);
|
|
173
|
-
}
|
|
174
|
-
/** Whether the calendar allows for multiple date selection. */
|
|
175
|
-
get multiple() {
|
|
176
|
-
return A(this, S);
|
|
177
|
-
}
|
|
178
|
-
set multiple(e) {
|
|
179
|
-
_(this, S, e);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* The selected date: accepts a date object, or, if `multiple`, an array of dates.
|
|
183
|
-
*/
|
|
184
|
-
set selected(e) {
|
|
185
|
-
if (Array.isArray(e))
|
|
186
|
-
this._selected = e.map((t) => this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))).filter((t) => t !== null).filter((t) => !this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t));
|
|
187
|
-
else {
|
|
188
|
-
const t = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));
|
|
189
|
-
t && (!this._isDayInRange(this._dateAdapter.toIso8601(t)) || this._dateFilter(t)) ? this._selected = t : this._selected = null;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
get selected() {
|
|
193
|
-
return this._selected;
|
|
194
|
-
}
|
|
195
|
-
get _selected() {
|
|
196
|
-
return A(this, T);
|
|
197
|
-
}
|
|
198
|
-
set _selected(e) {
|
|
199
|
-
_(this, T, e);
|
|
200
|
-
}
|
|
201
|
-
/** A function used to filter out dates. */
|
|
202
|
-
get dateFilter() {
|
|
203
|
-
return A(this, P);
|
|
204
|
-
}
|
|
205
|
-
set dateFilter(e) {
|
|
206
|
-
_(this, P, e);
|
|
207
|
-
}
|
|
208
|
-
/** The orientation of days in the calendar. */
|
|
209
|
-
get orientation() {
|
|
210
|
-
return A(this, E);
|
|
211
|
-
}
|
|
212
|
-
set orientation(e) {
|
|
213
|
-
_(this, E, e);
|
|
214
|
-
}
|
|
215
|
-
/** Whether it has to display the week numbers in addition to week days. */
|
|
216
|
-
get weekNumbers() {
|
|
217
|
-
return A(this, L);
|
|
218
|
-
}
|
|
219
|
-
set weekNumbers(e) {
|
|
220
|
-
_(this, L, e);
|
|
221
|
-
}
|
|
222
|
-
/** The currently active date. */
|
|
223
|
-
get _activeDate() {
|
|
224
|
-
return A(this, B);
|
|
225
|
-
}
|
|
226
|
-
set _activeDate(e) {
|
|
227
|
-
_(this, B, e);
|
|
228
|
-
}
|
|
229
|
-
/** The current wide property considering property value and breakpoints. From zero to small `wide` has always to be false. */
|
|
230
|
-
set _wide(e) {
|
|
231
|
-
this.toggleState("wide", e), this._wideInternal = e;
|
|
232
|
-
}
|
|
233
|
-
get _wide() {
|
|
234
|
-
return this._wideInternal;
|
|
235
|
-
}
|
|
236
|
-
get _calendarView() {
|
|
237
|
-
return A(this, H);
|
|
238
|
-
}
|
|
239
|
-
set _calendarView(e) {
|
|
240
|
-
_(this, H, e);
|
|
241
|
-
}
|
|
242
|
-
/** A list of buttons corresponding to days, months or years depending on the view. */
|
|
243
|
-
get _cells() {
|
|
244
|
-
return Array.from((this._calendarView === "day" ? this._getRootForQuerySelector()?.querySelectorAll("sbb-calendar-day") : this.shadowRoot?.querySelectorAll(".sbb-calendar__cell")) ?? []);
|
|
245
|
-
}
|
|
246
|
-
get _initialized() {
|
|
247
|
-
return A(this, q);
|
|
248
|
-
}
|
|
249
|
-
set _initialized(e) {
|
|
250
|
-
_(this, q, e);
|
|
251
|
-
}
|
|
252
|
-
_getRootForQuerySelector() {
|
|
253
|
-
return this._enhancedVariant ? this : this.shadowRoot;
|
|
254
|
-
}
|
|
255
|
-
_dateFilter(e) {
|
|
256
|
-
return this.dateFilter?.(e) ?? !0;
|
|
257
|
-
}
|
|
258
|
-
/** Resets the active month according to the new state of the calendar. */
|
|
259
|
-
resetPosition() {
|
|
260
|
-
this._resetCalendarView(), this._init();
|
|
261
|
-
}
|
|
262
|
-
connectedCallback() {
|
|
263
|
-
super.connectedCallback(), this.resetPosition(), this.shadowRoot?.addEventListener("slotchange", this._onSlotChange, { capture: !0 });
|
|
264
|
-
}
|
|
265
|
-
disconnectedCallback() {
|
|
266
|
-
super.disconnectedCallback(), this.shadowRoot?.removeEventListener("slotchange", this._onSlotChange, { capture: !0 });
|
|
267
|
-
}
|
|
268
|
-
/** @internal */
|
|
269
|
-
focus() {
|
|
270
|
-
this._resetFocus = !0, this._focusCell();
|
|
271
|
-
}
|
|
272
|
-
willUpdate(e) {
|
|
273
|
-
super.willUpdate(e), this._initialized && ((e.has("wide") || e.has("orientation")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._nextCalendarView = this._calendarView = this.view));
|
|
274
|
-
}
|
|
275
|
-
updated(e) {
|
|
276
|
-
super.updated(e), this._setTabIndex(), this._focusCell();
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* The `_selected` state should be adapted when the `multiple` property changes:
|
|
280
|
-
* - if it changes to true, the '_selected' is set to an array;
|
|
281
|
-
* - if it changes to false, the first available option is set as 'value' otherwise it's set to null.
|
|
282
|
-
*/
|
|
283
|
-
_onMultipleChanged(e) {
|
|
284
|
-
e && !Array.isArray(this._selected) && (this._selected = this._selected ? [this._selected] : []), !e && Array.isArray(this._selected) && (this._selected = this._selected.length ? this._selected[0] : null);
|
|
285
|
-
}
|
|
286
|
-
/** Initializes the component. */
|
|
287
|
-
_init(e) {
|
|
288
|
-
if (!Fe) {
|
|
289
|
-
if (this.hydrationRequired) {
|
|
290
|
-
this.hydrationComplete.then(() => this._init());
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(Oe) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._weekNumbers = this._createWeekNumbers(this._activeDate), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
|
|
294
|
-
const t = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
295
|
-
this._nextMonthWeeks = this._createWeekRows(t, !0), this._nextMonthYears = this._createYearRows($), this._nextMonthWeekNumbers = this._createWeekNumbers(t);
|
|
296
|
-
}
|
|
297
|
-
this._initialized = !0;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
/** Focuses on a day cell prioritizing the selected day, the current day, and lastly, the first selectable day. */
|
|
301
|
-
_focusCell() {
|
|
302
|
-
this._resetFocus && (this._getFirstFocusable()?.focus(), this._resetFocus = !1);
|
|
303
|
-
}
|
|
304
|
-
/** Creates the array of weekdays. */
|
|
305
|
-
_setWeekdays() {
|
|
306
|
-
const e = this._dateAdapter.getDayOfWeekNames("narrow"), a = this._dateAdapter.getDayOfWeekNames("long").map((r, i) => ({
|
|
307
|
-
long: r,
|
|
308
|
-
narrow: e[i]
|
|
309
|
-
})), s = this._dateAdapter.getFirstDayOfWeek();
|
|
310
|
-
this._weekdays = a.slice(s).concat(a.slice(0, s));
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Given a date, it returns the week numbers for the month the date belongs to.
|
|
314
|
-
* TODO: check if date-fns can be replaced with custom logic.
|
|
315
|
-
*
|
|
316
|
-
* Since the calculation is not simple (see https://en.wikipedia.org/wiki/Week#Numbering),
|
|
317
|
-
* the date-fns library has been used this way:
|
|
318
|
-
* the first and the last day of the month are calculated and then passed to the `eachWeekOfInterval` function,
|
|
319
|
-
* which returns an array containing the starting day of every ISO week of the month,
|
|
320
|
-
* considering Monday as the first day.
|
|
321
|
-
* Then, this array is mapped via the `getWeek` function, which returns the ISO week number for that date.
|
|
322
|
-
*/
|
|
323
|
-
_createWeekNumbers(e) {
|
|
324
|
-
return dt({ start: ct(e), end: lt(e) }, { weekStartsOn: 1 }).map((t) => Ce(t, { weekStartsOn: 1, firstWeekContainsDate: 4 }));
|
|
325
|
-
}
|
|
326
|
-
/** Creates the rows along the horizontal direction and sets the parameters used in keyboard navigation. */
|
|
327
|
-
_createWeekRows(e, t = !1) {
|
|
328
|
-
const a = this._dateAdapter.getNumDaysInMonth(e), s = this._dateAdapter.getFirstWeekOffset(e);
|
|
329
|
-
return t ? (this._keyboardNavigationDayViewParameters.secondMonthOffset = s, this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), a))) : (this._keyboardNavigationDayViewParameters.firstMonthLength = a, this._keyboardNavigationDayViewParameters.firstMonthOffset = s, this._keyboardNavigationDayViewParameters.firstDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1)), this._keyboardNavigationDayViewParameters.lastDayInView = this._dateAdapter.toIso8601(this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), a))), this.orientation === "horizontal" ? this._createWeekRowsHorizontal(e, a, s) : this._createWeekRowsVertical(e, a, s);
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Creates the rows for each week in orientation='horizontal'.
|
|
333
|
-
*
|
|
334
|
-
* Iterates through the days of the months, creates a Day object for each and pushes it into and array.
|
|
335
|
-
* Each seven days (considering the offset at the beginning of the month) restarts from an empty array.
|
|
336
|
-
*
|
|
337
|
-
* The result is a matrix in which every row is a week (or part of it, considering offset).
|
|
338
|
-
*/
|
|
339
|
-
_createWeekRowsHorizontal(e, t, a) {
|
|
340
|
-
const s = [[]];
|
|
341
|
-
for (let r = 0, i = a; r < t; r++, i++) {
|
|
342
|
-
i === y && (s.push([]), i = 0);
|
|
343
|
-
const l = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), r + 1);
|
|
344
|
-
s[s.length - 1].push(this._mapDateToDay(l));
|
|
345
|
-
}
|
|
346
|
-
return s;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Creates the rows for each week in orientation='vertical'.
|
|
350
|
-
*
|
|
351
|
-
* Creates a matrix with seven empty rows.
|
|
352
|
-
* Iterates through the days of the months, creates a Day object for each
|
|
353
|
-
* and pushes it into the correct array considering the offset at the beginning of the month.
|
|
354
|
-
* Each seven days (including offset) restarts from the first.
|
|
355
|
-
*
|
|
356
|
-
* The result is a matrix in which every row is a set of weekdays, so:
|
|
357
|
-
* - row 0: all the Mondays;
|
|
358
|
-
* - row 1: all the Tuesdays;
|
|
359
|
-
* - ...
|
|
360
|
-
* - row 7: all the Sundays.
|
|
361
|
-
*/
|
|
362
|
-
_createWeekRowsVertical(e, t, a) {
|
|
363
|
-
const s = Array.from({ length: y }, () => []);
|
|
364
|
-
for (let r = 0, i = a; r < t; r++, i++) {
|
|
365
|
-
i === y && (i = 0);
|
|
366
|
-
const l = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), r + 1);
|
|
367
|
-
s[i].push(this._mapDateToDay(l));
|
|
368
|
-
}
|
|
369
|
-
return s;
|
|
370
|
-
}
|
|
371
|
-
_mapDateToDay(e) {
|
|
372
|
-
const t = this._dateAdapter.toIso8601(e);
|
|
373
|
-
return {
|
|
374
|
-
value: t,
|
|
375
|
-
dateValue: e,
|
|
376
|
-
dayValue: String(this._dateAdapter.getDate(e)),
|
|
377
|
-
monthValue: String(this._dateAdapter.getMonth(e)),
|
|
378
|
-
yearValue: String(this._dateAdapter.getYear(e)),
|
|
379
|
-
weekValue: Ce(t, { weekStartsOn: 1, firstWeekContainsDate: 4 }),
|
|
380
|
-
weekDayValue: this._dateAdapter.getDayOfWeek(e)
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
/** Force the conversion to ISO8601 formatted string. */
|
|
384
|
-
_mapValueToISODate(e) {
|
|
385
|
-
return typeof e == "string" ? e : this._dateAdapter.toIso8601(e);
|
|
386
|
-
}
|
|
387
|
-
/** Creates the rows for the month selection view. */
|
|
388
|
-
_createMonthRows() {
|
|
389
|
-
const e = this._dateAdapter.getMonthNames("short"), t = new Array(12).fill(null).map((r, i) => ({
|
|
390
|
-
value: e[i],
|
|
391
|
-
longValue: this._monthNames[i],
|
|
392
|
-
monthValue: i + 1
|
|
393
|
-
})), a = 12 / j, s = [];
|
|
394
|
-
for (let r = 0; r < a; r++)
|
|
395
|
-
s.push(t.slice(j * r, j * (r + 1)));
|
|
396
|
-
this._months = s;
|
|
397
|
-
}
|
|
398
|
-
/** Creates the rows for the year selection view. */
|
|
399
|
-
_createYearRows(e = 0) {
|
|
400
|
-
const t = this._getStartValueYearView(), a = new Array($).fill(0).map((i, l) => t + e + l), s = $ / G, r = [];
|
|
401
|
-
for (let i = 0; i < s; i++)
|
|
402
|
-
r.push(a.slice(G * i, G * (i + 1)));
|
|
403
|
-
return r;
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Calculates the first year that will be shown in the year selection panel.
|
|
407
|
-
* If `minDate` and `maxDate` are both null, the starting year is calculated as
|
|
408
|
-
* the multiple of YEARS_PER_PAGE closest to and less than activeDate,
|
|
409
|
-
* e.g., with `YEARS_PER_PAGE` = 24 and `activeDate` = 2020, the function will return 2016 (24 * 83),
|
|
410
|
-
* while with `activeDate` = 2000, the function will return 1992 (24 * 82).
|
|
411
|
-
* If `minDate` is not null, it returns the corresponding year; if `maxDate` is not null,
|
|
412
|
-
* it returns the corresponding year minus `YEARS_PER_PAGE`, so that the `maxDate` is the last rendered year.
|
|
413
|
-
* If both are not null, `maxDate` has priority over `minDate`.
|
|
414
|
-
*/
|
|
415
|
-
_getStartValueYearView() {
|
|
416
|
-
let e = 0;
|
|
417
|
-
this.max ? e = this._dateAdapter.getYear(this.max) - $ + 1 : this.min && (e = this._dateAdapter.getYear(this.min));
|
|
418
|
-
const t = this._dateAdapter.getYear(this._activeDate);
|
|
419
|
-
return t - ((t - e) % $ + $) % $;
|
|
420
|
-
}
|
|
421
|
-
/** Checks if date is within the min-max range. */
|
|
422
|
-
_isDayInRange(e) {
|
|
423
|
-
if (!this.min && !this.max)
|
|
424
|
-
return !0;
|
|
425
|
-
const t = this._dateAdapter.deserialize(e);
|
|
426
|
-
return this._dateAdapter.sameDate(t, this._dateAdapter.clampDate(t, this.min, this.max));
|
|
427
|
-
}
|
|
428
|
-
/** Checks if date is within the min-max range in month view. */
|
|
429
|
-
_isMonthInRange(e, t) {
|
|
430
|
-
if (!this.min && !this.max)
|
|
431
|
-
return !0;
|
|
432
|
-
const a = this._dateAdapter.isValid(this.min) && (t < this._dateAdapter.getYear(this.min) || t === this._dateAdapter.getYear(this.min) && e < this._dateAdapter.getMonth(this.min)), s = this._dateAdapter.isValid(this.max) && (t > this._dateAdapter.getYear(this.max) || t === this._dateAdapter.getYear(this.max) && e > this._dateAdapter.getMonth(this.max));
|
|
433
|
-
return !(a || s);
|
|
434
|
-
}
|
|
435
|
-
/** Checks if date is within the min-max range in year view. */
|
|
436
|
-
_isYearInRange(e) {
|
|
437
|
-
if (!this.min && !this.max)
|
|
438
|
-
return !0;
|
|
439
|
-
const t = this._dateAdapter.isValid(this.min) && this._dateAdapter.getYear(this.min) > e, a = this._dateAdapter.isValid(this.max) && this._dateAdapter.getYear(this.max) < e;
|
|
440
|
-
return !(t || a);
|
|
441
|
-
}
|
|
442
|
-
// Implementation adapted from https://github.com/angular/components/blob/main/src/material/datepicker/year-view.ts#L366
|
|
443
|
-
_isMonthFilteredOut(e, t) {
|
|
444
|
-
if (!this.dateFilter)
|
|
445
|
-
return !0;
|
|
446
|
-
const a = this._dateAdapter.createDate(t, e, 1);
|
|
447
|
-
for (let s = a; this._dateAdapter.getMonth(s) == e; s = this._dateAdapter.addCalendarDays(s, 1))
|
|
448
|
-
if (this.dateFilter(s))
|
|
449
|
-
return !0;
|
|
450
|
-
return !1;
|
|
451
|
-
}
|
|
452
|
-
// Implementation adapted from https://github.com/angular/components/blob/main/src/material/datepicker/multi-year-view.ts#L351
|
|
453
|
-
_isYearFilteredOut(e) {
|
|
454
|
-
if (!this.dateFilter)
|
|
455
|
-
return !0;
|
|
456
|
-
const t = this._dateAdapter.createDate(e, 1, 1);
|
|
457
|
-
for (let a = t; this._dateAdapter.getYear(a) == e; a = this._dateAdapter.addCalendarDays(a, 1))
|
|
458
|
-
if (this.dateFilter(a))
|
|
459
|
-
return !0;
|
|
460
|
-
return !1;
|
|
461
|
-
}
|
|
462
|
-
/** Emits the selected date and sets it internally. */
|
|
463
|
-
_selectDate(e) {
|
|
464
|
-
if (this._chosenMonth = void 0, this._setChosenYear(), this.multiple) {
|
|
465
|
-
if (this._selected && this._selected.length > 0) {
|
|
466
|
-
const t = this._selected.findIndex((a) => this._dateAdapter.compareDate(a, e) === 0);
|
|
467
|
-
t !== -1 ? this._selected = this._selected.filter((a, s) => s !== t) : this._selected = [...this._selected, e];
|
|
468
|
-
} else
|
|
469
|
-
this._selected = [e];
|
|
470
|
-
this._emitDateSelectedEvent(this._selected.map((t) => this._dateAdapter.deserialize(t)));
|
|
471
|
-
} else
|
|
472
|
-
(!this._selected || this._dateAdapter.compareDate(this._selected, e) !== 0) && (this._selected = e, this._emitDateSelectedEvent(this._dateAdapter.deserialize(e)));
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Handle multiple dates selection via weekNumber / weekDay buttons:
|
|
476
|
-
* - if Cmd or Ctrl are pressed, add the new date to the current ones;
|
|
477
|
-
* - if not,
|
|
478
|
-
* - if the new dates are the same of the current ones, it means that the same button has been clicked twice, so do nothing;
|
|
479
|
-
* - if not, the selected dates are the new ones.
|
|
480
|
-
*/
|
|
481
|
-
_selectMultipleDates(e) {
|
|
482
|
-
const t = this._cells.filter((l) => !l.disabled).map((l) => this._mapValueToISODate(l.value)), a = e.map((l) => l.value).filter((l) => t.includes(l)), s = new Set(a), r = new Set(this._selected.map((l) => this._dateAdapter.toIso8601(l))), i = this._updateSelectedWithMultipleDates(a, s, r);
|
|
483
|
-
this._selected = i.map((l) => this._dateAdapter.deserialize(l)), this._emitDateSelectedEvent(this._selected.map((l) => this._dateAdapter.deserialize(l)));
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Emits the dateselected event given the detail (as T or T[] based on the value of the multiple flag).
|
|
487
|
-
*/
|
|
488
|
-
_emitDateSelectedEvent(e) {
|
|
489
|
-
this.dispatchEvent(new CustomEvent("dateselected", {
|
|
490
|
-
detail: e,
|
|
491
|
-
composed: !0,
|
|
492
|
-
bubbles: !0
|
|
493
|
-
}));
|
|
494
|
-
}
|
|
495
|
-
_emitMonthChange() {
|
|
496
|
-
const e = (this.wide ? [...this._weeks, ...this._nextMonthWeeks] : this._weeks).flat().sort((t, a) => t.value.localeCompare(a.value));
|
|
497
|
-
this.dispatchEvent(new ut(e));
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* In case of multiple selection, newly added days must be added to the existing ones, without duplication.
|
|
501
|
-
* If the days to add are exactly the same as the selected ones, the set must be emptied.
|
|
502
|
-
*/
|
|
503
|
-
_updateSelectedWithMultipleDates(e, t, a) {
|
|
504
|
-
return e.every((s) => a.has(s)) ? t.forEach((s) => a.delete(s)) : t.forEach((s) => a.add(s)), Array.from(a);
|
|
505
|
-
}
|
|
506
|
-
_setChosenYear() {
|
|
507
|
-
if (this.view === "month") {
|
|
508
|
-
let e;
|
|
509
|
-
this.multiple ? e = this.selected.at(-1) : e = this.selected, this._chosenYear = this._dateAdapter.getYear(e ?? this._dateAdapter.today());
|
|
510
|
-
} else
|
|
511
|
-
this._chosenYear = void 0;
|
|
512
|
-
}
|
|
513
|
-
_assignActiveDate(e) {
|
|
514
|
-
if (this.min && this._dateAdapter.compareDate(this.min, e) > 0) {
|
|
515
|
-
this._activeDate = this.min;
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
if (this.max && this._dateAdapter.compareDate(this.max, e) < 0) {
|
|
519
|
-
this._activeDate = this.max;
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
this._activeDate = e;
|
|
523
|
-
}
|
|
524
|
-
/** Goes to the month identified by the shift. */
|
|
525
|
-
_goToDifferentMonth(e) {
|
|
526
|
-
this._init(this._dateAdapter.addCalendarMonths(this._activeDate, e)), this._emitMonthChange();
|
|
527
|
-
}
|
|
528
|
-
_goToDifferentYear(e) {
|
|
529
|
-
this._chosenYear += e, this._activeDate = this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate)), this._init();
|
|
530
|
-
}
|
|
531
|
-
_goToDifferentYearRange(e) {
|
|
532
|
-
this._init(this._dateAdapter.addCalendarYears(this._activeDate, e));
|
|
533
|
-
}
|
|
534
|
-
_prevDisabled(e) {
|
|
535
|
-
return this.min ? this._dateAdapter.compareDate(e, this.min) < 0 : !1;
|
|
536
|
-
}
|
|
537
|
-
_nextDisabled(e) {
|
|
538
|
-
return this.max ? this._dateAdapter.compareDate(e, this.max) > 0 : !1;
|
|
539
|
-
}
|
|
540
|
-
/** Checks if the "previous month" button should be disabled. */
|
|
541
|
-
_previousMonthDisabled() {
|
|
542
|
-
const e = this._dateAdapter.addCalendarDays(this._activeDate, this._dateAdapter.getDate(this._activeDate) * -1);
|
|
543
|
-
return this._prevDisabled(e);
|
|
544
|
-
}
|
|
545
|
-
/** Checks if the "next month" button should be disabled. */
|
|
546
|
-
_nextMonthDisabled() {
|
|
547
|
-
let e = this._dateAdapter.addCalendarMonths(this._activeDate, this._wide ? 2 : 1);
|
|
548
|
-
return e = this._dateAdapter.createDate(this._dateAdapter.getYear(e), this._dateAdapter.getMonth(e), 1), this._nextDisabled(e);
|
|
549
|
-
}
|
|
550
|
-
/** Checks if the "previous year" button should be disabled. */
|
|
551
|
-
_previousYearDisabled() {
|
|
552
|
-
const e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) - 1, 12, 31);
|
|
553
|
-
return this._prevDisabled(e);
|
|
554
|
-
}
|
|
555
|
-
/** Checks if the "next year" button should be disabled. */
|
|
556
|
-
_nextYearDisabled() {
|
|
557
|
-
const e = this._dateAdapter.createDate(this._dateAdapter.getYear(this._activeDate) + (this._wide ? 2 : 1), 1, 1);
|
|
558
|
-
return this._nextDisabled(e);
|
|
559
|
-
}
|
|
560
|
-
/** Checks if the "previous year" button should be disabled in year view. */
|
|
561
|
-
_previousYearRangeDisabled() {
|
|
562
|
-
const e = this._dateAdapter.createDate(this._years[0][0] - 1, 12, 31);
|
|
563
|
-
return this._prevDisabled(e);
|
|
564
|
-
}
|
|
565
|
-
/** Checks if the "next year" button should be disabled in year view. */
|
|
566
|
-
_nextYearRangeDisabled() {
|
|
567
|
-
const e = this._wide ? this._nextMonthYears : this._years, t = e[e.length - 1], a = t[t.length - 1], s = this._dateAdapter.createDate(a + 1, 1, 1);
|
|
568
|
-
return this._nextDisabled(s);
|
|
569
|
-
}
|
|
570
|
-
_handleTableBlur(e) {
|
|
571
|
-
e?.localName !== "sbb-calendar-day" && this._setTabIndex();
|
|
572
|
-
}
|
|
573
|
-
_setTabIndex() {
|
|
574
|
-
const e = this._calendarView === "day" ? "sbb-calendar-day" : ".sbb-calendar__cell";
|
|
575
|
-
Array.from(this._getRootForQuerySelector().querySelectorAll(`${e}[tabindex="0"]`) ?? []).forEach((a) => a.tabIndex = -1);
|
|
576
|
-
const t = this._getFirstFocusable();
|
|
577
|
-
t && (t.tabIndex = 0);
|
|
578
|
-
}
|
|
579
|
-
/** Get the element in the calendar to assign focus. */
|
|
580
|
-
_getFirstFocusable() {
|
|
581
|
-
const e = this._getRootForQuerySelector();
|
|
582
|
-
if (this._calendarView === "day") {
|
|
583
|
-
const t = e.querySelector(":is(:state(selected),[state--selected])") ?? e.querySelector(":is(:state(current),[state--current])");
|
|
584
|
-
return t && !t.disabled ? t : this._getFirstFocusableDay();
|
|
585
|
-
} else {
|
|
586
|
-
const t = this.shadowRoot?.querySelector(".sbb-calendar__cell-current");
|
|
587
|
-
return t && !t.disabled ? t : this.shadowRoot.querySelector(".sbb-calendar__cell:not([disabled])");
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
/**
|
|
591
|
-
* In `day` view in `vertical` orientation,
|
|
592
|
-
* if the first of the month is not a Monday, it is not the first rendered element in the table,
|
|
593
|
-
* so `this.shadowRoot!.querySelector('.sbb-calendar__cell:not([disabled])')` will return a wrong value.
|
|
594
|
-
*
|
|
595
|
-
* To solve this, the element with the lowest `value` is taken (ISO String are ordered).
|
|
596
|
-
*/
|
|
597
|
-
_getFirstFocusableDay() {
|
|
598
|
-
const e = Array.from(this._getRootForQuerySelector().querySelectorAll("sbb-calendar-day:not([disabled])"));
|
|
599
|
-
if (!e || e.length === 0)
|
|
600
|
-
return null;
|
|
601
|
-
{
|
|
602
|
-
const t = e.map((a) => this._dateAdapter.toIso8601(a.value)).sort()[0];
|
|
603
|
-
return this._getRootForQuerySelector().querySelector(`sbb-calendar-day[slot="${t}"]`);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
_handleKeyboardEvent(e, t) {
|
|
607
|
-
Te(e) && e.preventDefault();
|
|
608
|
-
const a = this._cells, s = a.findIndex((l) => l === e.target);
|
|
609
|
-
let r;
|
|
610
|
-
t ? r = this._navigateByKeyboardDayView(e, s, a, t) : r = this._navigateByKeyboard(e, s, a);
|
|
611
|
-
const i = (this._enhancedVariant ? document : this.shadowRoot).activeElement;
|
|
612
|
-
r !== i && (r.tabIndex = 0, r?.focus(), i.tabIndex = -1);
|
|
613
|
-
}
|
|
614
|
-
_navigateByKeyboardDayView(e, t, a, s) {
|
|
615
|
-
const r = this.orientation === "horizontal" ? { leftRight: 1, upDown: y } : { leftRight: y, upDown: 1 }, i = t < this._keyboardNavigationDayViewParameters.firstMonthLength ? this._keyboardNavigationDayViewParameters.firstMonthOffset : this._keyboardNavigationDayViewParameters.secondMonthOffset;
|
|
616
|
-
switch (e.key) {
|
|
617
|
-
case "ArrowUp":
|
|
618
|
-
return this._findDayArrows(a, t, s.dateValue, -r.upDown);
|
|
619
|
-
case "ArrowDown":
|
|
620
|
-
return this._findDayArrows(a, t, s.dateValue, r.upDown);
|
|
621
|
-
case "ArrowLeft":
|
|
622
|
-
return this._findDayArrows(a, t, s.dateValue, -r.leftRight);
|
|
623
|
-
case "ArrowRight":
|
|
624
|
-
return this._findDayArrows(a, t, s.dateValue, r.leftRight);
|
|
625
|
-
case "PageUp":
|
|
626
|
-
if (this.orientation === "horizontal") {
|
|
627
|
-
const b = (+s.dayValue % y || y) - +s.dayValue;
|
|
628
|
-
return this._findDayPageUpDown(a, t, s, b, r.upDown);
|
|
629
|
-
} else {
|
|
630
|
-
const f = (Math.ceil((+s.dayValue + i) / y) - 1) * y - i + 1 - +s.dayValue;
|
|
631
|
-
return this._findDayPageUpDown(a, t, s, f, r.upDown);
|
|
632
|
-
}
|
|
633
|
-
case "PageDown":
|
|
634
|
-
if (this.orientation === "horizontal") {
|
|
635
|
-
const l = +s.monthValue + 1 > 12 ? 1 : +s.monthValue + 1, b = +s.monthValue + 1 > 12 ? +s.yearValue + 1 : +s.yearValue, f = this._dateAdapter.createDate(b, l, 1), k = this._dateAdapter.getDate(this._dateAdapter.addCalendarDays(f, -1)), Re = Math.trunc((k - +s.dayValue) / y) * y;
|
|
636
|
-
return this._findDayPageUpDown(a, t, s, Re, -r.upDown);
|
|
637
|
-
} else {
|
|
638
|
-
const f = Math.ceil((+s.dayValue + i) / y) * y - i - +s.dayValue;
|
|
639
|
-
return this._findDayPageUpDown(a, t, s, f, -r.upDown);
|
|
640
|
-
}
|
|
641
|
-
case "Home":
|
|
642
|
-
return this._findDayFirst(a, t, s, 1);
|
|
643
|
-
case "End": {
|
|
644
|
-
const l = +s.monthValue + 1 > 12 ? 1 : +s.monthValue + 1, b = +s.monthValue + 1 > 12 ? +s.yearValue + 1 : +s.yearValue, f = this._dateAdapter.createDate(b, l, 1);
|
|
645
|
-
return this._findDayLast(a, t, f);
|
|
646
|
-
}
|
|
647
|
-
default:
|
|
648
|
-
return a[t];
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
_isDayOutOfView(e) {
|
|
652
|
-
return e < this._keyboardNavigationDayViewParameters.firstDayInView || e > this._keyboardNavigationDayViewParameters.lastDayInView;
|
|
653
|
-
}
|
|
654
|
-
_findDayArrows(e, t, a, s) {
|
|
655
|
-
const r = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a, s));
|
|
656
|
-
if (this._isDayOutOfView(r))
|
|
657
|
-
return e[t];
|
|
658
|
-
const i = e.find((l) => this._mapValueToISODate(l.value) === r);
|
|
659
|
-
return !i || i.disabled ? this._findDayArrows(e, t, this._dateAdapter.deserialize(r), s) : i;
|
|
660
|
-
}
|
|
661
|
-
_findDayPageUpDown(e, t, a, s, r) {
|
|
662
|
-
const i = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a.dateValue, s));
|
|
663
|
-
if (this._isDayOutOfView(i))
|
|
664
|
-
return e[t];
|
|
665
|
-
const l = e.find((b) => this._mapValueToISODate(b.value) === i);
|
|
666
|
-
return !l || l.disabled ? this._findDayPageUpDown(e, t, a, s + r, r) : l;
|
|
667
|
-
}
|
|
668
|
-
_findDayFirst(e, t, a, s) {
|
|
669
|
-
const r = this._dateAdapter.toIso8601(this._dateAdapter.createDate(+a.yearValue, +a.monthValue, s));
|
|
670
|
-
if (this._isDayOutOfView(r))
|
|
671
|
-
return e[t];
|
|
672
|
-
const i = e.find((l) => this._mapValueToISODate(l.value) === r);
|
|
673
|
-
return !i || i.disabled ? this._findDayFirst(e, t, a, s + 1) : i;
|
|
674
|
-
}
|
|
675
|
-
_findDayLast(e, t, a) {
|
|
676
|
-
const s = this._dateAdapter.toIso8601(this._dateAdapter.addCalendarDays(a, -1));
|
|
677
|
-
if (this._isDayOutOfView(s))
|
|
678
|
-
return e[t];
|
|
679
|
-
const r = e.find((i) => this._mapValueToISODate(i.value) === s);
|
|
680
|
-
return !r || r.disabled ? this._findDayLast(e, t, this._dateAdapter.deserialize(s)) : r;
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* Gets the index of the element to move to, based on a list of elements (which can be potentially disabled),
|
|
684
|
-
* the keyboard input and the position of the current element in the list.
|
|
685
|
-
* In the day view, the `day?: Day` parameter is mandatory for calculation,
|
|
686
|
-
* while in month and year view it's not due to the fixed amount of rendered cells.
|
|
687
|
-
*/
|
|
688
|
-
_navigateByKeyboard(e, t, a) {
|
|
689
|
-
const { elementIndexForWideMode: s, offsetForWideMode: r, lastElementIndexForWideMode: i, verticalOffset: l } = this._calculateParametersForKeyboardNavigation(t, this._calendarView === "year");
|
|
690
|
-
switch (e.key) {
|
|
691
|
-
case "ArrowUp":
|
|
692
|
-
return this._findNext(a, t, -l);
|
|
693
|
-
case "ArrowDown":
|
|
694
|
-
return this._findNext(a, t, l);
|
|
695
|
-
case "ArrowLeft":
|
|
696
|
-
return this._findNext(a, t, -1);
|
|
697
|
-
case "ArrowRight":
|
|
698
|
-
return this._findNext(a, t, 1);
|
|
699
|
-
case "Home":
|
|
700
|
-
return this._findFirst(a, r);
|
|
701
|
-
case "PageUp":
|
|
702
|
-
return this._findFirstOnColumn(a, s, r, l);
|
|
703
|
-
case "PageDown":
|
|
704
|
-
return this._findLastOnColumn(a, t, i, l);
|
|
705
|
-
case "End":
|
|
706
|
-
return this._findLast(a, i - 1);
|
|
707
|
-
default:
|
|
708
|
-
return a[t];
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* Calculates the parameters needed in keyboard navigation in year and month view.
|
|
713
|
-
* @param index The starting element's index in the cell array.
|
|
714
|
-
* @param isYearView Whether the displayed `view` is the year one.
|
|
715
|
-
*/
|
|
716
|
-
_calculateParametersForKeyboardNavigation(e, t) {
|
|
717
|
-
const a = t ? $ : qe, s = Math.trunc(e / a) * a, r = s === 0 ? e : e - a;
|
|
718
|
-
return {
|
|
719
|
-
verticalOffset: t ? G : j,
|
|
720
|
-
elementIndexForWideMode: r,
|
|
721
|
-
offsetForWideMode: e - r,
|
|
722
|
-
lastElementIndexForWideMode: s === 0 ? a : a * 2
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
/**
|
|
726
|
-
* Gets the next element of the provided array starting from `index` by adding `delta`.
|
|
727
|
-
* If the found element is disabled, it continues adding `delta` until it finds an enabled one in the array bounds.
|
|
728
|
-
*/
|
|
729
|
-
_findNext(e, t, a) {
|
|
730
|
-
let s = t + a;
|
|
731
|
-
for (; s < e.length && e[s]?.disabled; )
|
|
732
|
-
s += a;
|
|
733
|
-
return e[s] ?? e[t];
|
|
734
|
-
}
|
|
735
|
-
/** Find the first enabled element in the provided array. */
|
|
736
|
-
_findFirst(e, t) {
|
|
737
|
-
return e[t].disabled ? this._findNext(e, t, 1) : e[t];
|
|
738
|
-
}
|
|
739
|
-
/** Find the last enabled element in the provided array. */
|
|
740
|
-
_findLast(e, t) {
|
|
741
|
-
return e[t].disabled ? this._findNext(e, t, -1) : e[t];
|
|
742
|
-
}
|
|
743
|
-
/** Find the first enabled element in the same column of the provided array. */
|
|
744
|
-
_findFirstOnColumn(e, t, a, s) {
|
|
745
|
-
const r = t % s + a;
|
|
746
|
-
return e[r].disabled ? this._findNext(e, r, s) : e[r];
|
|
747
|
-
}
|
|
748
|
-
/** Find the last enabled element in the same column of the provided array. */
|
|
749
|
-
_findLastOnColumn(e, t, a, s) {
|
|
750
|
-
const r = t + Math.trunc((a - t - 1) / s) * s;
|
|
751
|
-
return e[r].disabled ? this._findNext(e, r, -s) : e[r];
|
|
752
|
-
}
|
|
753
|
-
_resetCalendarViewAndEmitMonthChange(e = !1) {
|
|
754
|
-
this._resetCalendarView(e), this._emitMonthChange();
|
|
755
|
-
}
|
|
756
|
-
_resetCalendarView(e = !1) {
|
|
757
|
-
this._containingFocus && (this._resetFocus = !0), this._activeDate = (this.multiple ? this._selected.at(-1) : this._selected) ?? this._dateAdapter.today(), this._setChosenYear(), this._chosenMonth = void 0, this._init(), this._nextCalendarView = this._calendarView = this.view, e && this._startTableTransition();
|
|
758
|
-
}
|
|
759
|
-
/** Render the view for the day selection. */
|
|
760
|
-
_renderDayView() {
|
|
761
|
-
const e = this._wide ? this._dateAdapter.addCalendarMonths(this._activeDate, 1) : void 0;
|
|
762
|
-
return c`
|
|
763
|
-
<div class="sbb-calendar__controls">
|
|
764
|
-
${this._getArrow("left", () => this._goToDifferentMonth(-1), Ue[this._language.current], this._previousMonthDisabled())}
|
|
765
|
-
<div class="sbb-calendar__controls-month">
|
|
766
|
-
${this._createLabelForDayView(this._activeDate)}
|
|
767
|
-
${this._wide ? this._createLabelForDayView(e) : p}
|
|
768
|
-
<sbb-screen-reader-only role="status">
|
|
769
|
-
${this._createAriaLabelForDayView(this._activeDate, e)}
|
|
770
|
-
</sbb-screen-reader-only>
|
|
771
|
-
</div>
|
|
772
|
-
${this._getArrow("right", () => this._goToDifferentMonth(1), Qe[this._language.current], this._nextMonthDisabled())}
|
|
773
|
-
</div>
|
|
774
|
-
<div class="sbb-calendar__table-overflow-break">
|
|
775
|
-
<div class="sbb-calendar__table-container sbb-calendar__table-day-view">
|
|
776
|
-
${this.orientation === "horizontal" ? c`
|
|
777
|
-
${this._createDayTable(this._weeks, this._weekNumbers)}
|
|
778
|
-
${this._wide ? this._createDayTable(this._nextMonthWeeks, this._nextMonthWeekNumbers, !0) : p}
|
|
779
|
-
` : c`
|
|
780
|
-
${this._createDayTableVertical(this._weeks, this._weekNumbers)}
|
|
781
|
-
${this._wide ? this._createDayTableVertical(this._nextMonthWeeks, this._nextMonthWeekNumbers, e) : p}
|
|
782
|
-
`}
|
|
783
|
-
</div>
|
|
784
|
-
</div>
|
|
785
|
-
`;
|
|
786
|
-
}
|
|
787
|
-
/** Creates the label with the month for the daily view. */
|
|
788
|
-
_createLabelForDayView(e) {
|
|
789
|
-
const t = `${this._monthNames[this._dateAdapter.getMonth(e) - 1]} ${this._dateAdapter.getYear(e)}`;
|
|
790
|
-
return c`
|
|
791
|
-
<button
|
|
792
|
-
type="button"
|
|
793
|
-
class="sbb-calendar__date-selection sbb-calendar__controls-change-date"
|
|
794
|
-
aria-label="${je[this._language.current]} ${t}"
|
|
795
|
-
@click=${() => {
|
|
796
|
-
this._resetFocus = !0, this._nextCalendarView = "year", this._startTableTransition();
|
|
797
|
-
}}
|
|
798
|
-
>
|
|
799
|
-
${t}
|
|
800
|
-
<sbb-icon name="chevron-small-down-small"></sbb-icon>
|
|
801
|
-
</button>
|
|
802
|
-
`;
|
|
803
|
-
}
|
|
804
|
-
/** Creates the aria-label for the daily view. */
|
|
805
|
-
_createAriaLabelForDayView(...e) {
|
|
806
|
-
let t = "";
|
|
807
|
-
for (const a of e)
|
|
808
|
-
a && (t += `${this._monthNames[this._dateAdapter.getMonth(a) - 1]} ${this._dateAdapter.getYear(a)} `);
|
|
809
|
-
return t;
|
|
810
|
-
}
|
|
811
|
-
/** Creates the calendar table for the daily view. */
|
|
812
|
-
_createDayTable(e, t, a = !1) {
|
|
813
|
-
const s = (this._wide ? [...this._weeks, ...this._nextMonthWeeks] : a ? this._nextMonthWeeks : this._weeks).flat(), r = (a ? this._nextMonthWeeks : this._weeks).flat();
|
|
814
|
-
return c`
|
|
815
|
-
<table
|
|
816
|
-
class="sbb-calendar__table"
|
|
817
|
-
@focusout=${(i) => this._handleTableBlur(i.relatedTarget)}
|
|
818
|
-
@animationend=${(i) => this._tableAnimationEnd(i)}
|
|
819
|
-
>
|
|
820
|
-
<thead class="sbb-calendar__table-header">
|
|
821
|
-
<tr>
|
|
822
|
-
${this.weekNumbers ? c`<th class="sbb-calendar__table-header-cell"></th>` : p}
|
|
823
|
-
${this._weekdays.map((i, l) => c`
|
|
824
|
-
<th class="sbb-calendar__table-header-cell">
|
|
825
|
-
${this.multiple ? c`
|
|
826
|
-
<button
|
|
827
|
-
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
828
|
-
aria-label=${i.long}
|
|
829
|
-
@click=${() => {
|
|
830
|
-
const b = r.filter((f) => f.weekDayValue === (l + 1) % 7);
|
|
831
|
-
this._selectMultipleDates(b);
|
|
832
|
-
}}
|
|
833
|
-
>
|
|
834
|
-
${i.narrow}
|
|
835
|
-
</button>
|
|
836
|
-
` : c`
|
|
837
|
-
<sbb-screen-reader-only>${i.long}</sbb-screen-reader-only>
|
|
838
|
-
<span aria-hidden="true">${i.narrow}</span>
|
|
839
|
-
`}
|
|
840
|
-
</th>
|
|
841
|
-
`)}
|
|
842
|
-
</tr>
|
|
843
|
-
</thead>
|
|
844
|
-
<tbody class="sbb-calendar__table-body">
|
|
845
|
-
${e.map((i, l) => {
|
|
846
|
-
const b = y - i.length;
|
|
847
|
-
return l === 0 && b ? c`
|
|
848
|
-
<tr>
|
|
849
|
-
${this.weekNumbers ? c`
|
|
850
|
-
<td class="sbb-calendar__table-header-cell-vertical">
|
|
851
|
-
${this.multiple ? c`
|
|
852
|
-
<button
|
|
853
|
-
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
854
|
-
aria-label=${`${K[this._language.current]} ${t[0]}`}
|
|
855
|
-
@click=${() => {
|
|
856
|
-
const f = s.filter((k) => k.weekValue === t[0]);
|
|
857
|
-
this._selectMultipleDates(f);
|
|
858
|
-
}}
|
|
859
|
-
>
|
|
860
|
-
${t[0]}
|
|
861
|
-
</button>
|
|
862
|
-
` : c`
|
|
863
|
-
<sbb-screen-reader-only
|
|
864
|
-
>${`${K[this._language.current]} ${t[0]}`}</sbb-screen-reader-only
|
|
865
|
-
>
|
|
866
|
-
<span aria-hidden="true">${t[0]}</span>
|
|
867
|
-
`}
|
|
868
|
-
</td>
|
|
869
|
-
` : p}
|
|
870
|
-
${[...Array(b).keys()].map(() => c`<td class="sbb-calendar__table-data"></td>`)}
|
|
871
|
-
${this._createDayCells(i)}
|
|
872
|
-
</tr>
|
|
873
|
-
` : c`
|
|
874
|
-
<tr>
|
|
875
|
-
${this.weekNumbers ? c`
|
|
876
|
-
<td class="sbb-calendar__table-header-cell-vertical">
|
|
877
|
-
${this.multiple ? c`
|
|
878
|
-
<button
|
|
879
|
-
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
880
|
-
aria-label=${`${K[this._language.current]} ${t[l]}`}
|
|
881
|
-
@click=${() => {
|
|
882
|
-
const f = s.filter((k) => k.weekValue === t[l]);
|
|
883
|
-
this._selectMultipleDates(f);
|
|
884
|
-
}}
|
|
885
|
-
>
|
|
886
|
-
${t[l]}
|
|
887
|
-
</button>
|
|
888
|
-
` : c`
|
|
889
|
-
<sbb-screen-reader-only
|
|
890
|
-
>${`${K[this._language.current]} ${t[l]}`}</sbb-screen-reader-only
|
|
891
|
-
>
|
|
892
|
-
<span aria-hidden="true">${t[l]}</span>
|
|
893
|
-
`}
|
|
894
|
-
</td>
|
|
895
|
-
` : p}
|
|
896
|
-
${this._createDayCells(i)}
|
|
897
|
-
</tr>
|
|
898
|
-
`;
|
|
899
|
-
})}
|
|
900
|
-
</tbody>
|
|
901
|
-
</table>
|
|
902
|
-
`;
|
|
903
|
-
}
|
|
904
|
-
/** Creates the table in orientation='vertical'. */
|
|
905
|
-
_createDayTableVertical(e, t, a) {
|
|
906
|
-
const s = this._dateAdapter.getFirstWeekOffset(a ?? this._activeDate), r = (this._wide ? [...this._weeks, ...this._nextMonthWeeks] : a ? this._nextMonthWeeks : this._weeks).flat();
|
|
907
|
-
return c`
|
|
908
|
-
<table
|
|
909
|
-
class="sbb-calendar__table"
|
|
910
|
-
@focusout=${(i) => this._handleTableBlur(i.relatedTarget)}
|
|
911
|
-
@animationend=${(i) => this._tableAnimationEnd(i)}
|
|
912
|
-
>
|
|
913
|
-
${this.weekNumbers ? c`
|
|
914
|
-
<thead class="sbb-calendar__table-header">
|
|
915
|
-
<tr>
|
|
916
|
-
${a ? p : c`<th class="sbb-calendar__table-data"></th>`}
|
|
917
|
-
${t.map((i) => c`
|
|
918
|
-
<th class="sbb-calendar__table-header-cell">
|
|
919
|
-
${this.multiple ? c`
|
|
920
|
-
<button
|
|
921
|
-
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
922
|
-
aria-label=${`${K[this._language.current]} ${i}`}
|
|
923
|
-
@click=${() => {
|
|
924
|
-
const l = r.filter((b) => b.weekValue === i);
|
|
925
|
-
this._selectMultipleDates(l);
|
|
926
|
-
}}
|
|
927
|
-
>
|
|
928
|
-
${i}
|
|
929
|
-
</button>
|
|
930
|
-
` : c`
|
|
931
|
-
<sbb-screen-reader-only
|
|
932
|
-
>${`${K[this._language.current]} ${i}`}</sbb-screen-reader-only
|
|
933
|
-
>
|
|
934
|
-
<span aria-hidden="true">${i}</span>
|
|
935
|
-
`}
|
|
936
|
-
</th>
|
|
937
|
-
`)}
|
|
938
|
-
</tr>
|
|
939
|
-
</thead>
|
|
940
|
-
` : p}
|
|
941
|
-
<tbody class="sbb-calendar__table-body">
|
|
942
|
-
${e.map((i, l) => {
|
|
943
|
-
const b = this._weekdays[l], f = this._wide ? [...i, ...this._nextMonthWeeks[l]] : i;
|
|
944
|
-
return c`
|
|
945
|
-
<tr>
|
|
946
|
-
${a ? p : c`
|
|
947
|
-
<td class="sbb-calendar__table-header-cell-vertical">
|
|
948
|
-
${this.multiple ? c`
|
|
949
|
-
<button
|
|
950
|
-
class="sbb-calendar__header-cell sbb-calendar__weekday"
|
|
951
|
-
aria-label=${b.long}
|
|
952
|
-
@click=${() => this._selectMultipleDates(f)}
|
|
953
|
-
>
|
|
954
|
-
${b.narrow}
|
|
955
|
-
</button>
|
|
956
|
-
` : c`
|
|
957
|
-
<sbb-screen-reader-only>${b.long}</sbb-screen-reader-only>
|
|
958
|
-
<span aria-hidden="true">${b.narrow}</span>
|
|
959
|
-
`}
|
|
960
|
-
</td>
|
|
961
|
-
`}
|
|
962
|
-
${l < s ? c`<td class="sbb-calendar__table-data"></td>` : p}
|
|
963
|
-
${this._createDayCells(i)}
|
|
964
|
-
</tr>
|
|
965
|
-
`;
|
|
966
|
-
})}
|
|
967
|
-
</tbody>
|
|
968
|
-
</table>
|
|
969
|
-
`;
|
|
970
|
-
}
|
|
971
|
-
/** Creates the cells for the daily view. */
|
|
972
|
-
_createDayCells(e) {
|
|
973
|
-
return e.map((t) => c`
|
|
974
|
-
<td class=" sbb-calendar__table-data sbb-calendar__day-cell">
|
|
975
|
-
<slot name=${t.value}>
|
|
976
|
-
<sbb-calendar-day
|
|
977
|
-
slot=${t.value}
|
|
978
|
-
@click=${() => this._selectDate(t.dateValue)}
|
|
979
|
-
@keydown=${(a) => this._handleKeyboardEvent(a, t)}
|
|
980
|
-
></sbb-calendar-day>
|
|
981
|
-
</slot>
|
|
982
|
-
</td>
|
|
983
|
-
`);
|
|
984
|
-
}
|
|
985
|
-
/** Render the view for the month selection. */
|
|
986
|
-
_renderMonthView() {
|
|
987
|
-
return c`
|
|
988
|
-
<div class="sbb-calendar__controls">
|
|
989
|
-
${this._getArrow("left", () => this._goToDifferentYear(-1), Ge[this._language.current], this._previousYearDisabled())}
|
|
990
|
-
<div class="sbb-calendar__controls-month">${this._createLabelForMonthView()}</div>
|
|
991
|
-
${this._getArrow("right", () => this._goToDifferentYear(1), Je[this._language.current], this._nextYearDisabled())}
|
|
992
|
-
</div>
|
|
993
|
-
<div class="sbb-calendar__table-overflow-break">
|
|
994
|
-
<div class="sbb-calendar__table-container sbb-calendar__table-month-view">
|
|
995
|
-
${this._createMonthTable(this._months, this._chosenYear)}
|
|
996
|
-
${this._wide ? this._createMonthTable(this._months, this._chosenYear + 1) : p}
|
|
997
|
-
</div>
|
|
998
|
-
</div>
|
|
999
|
-
`;
|
|
1000
|
-
}
|
|
1001
|
-
/** Creates the label with the year for the monthly view. */
|
|
1002
|
-
_createLabelForMonthView() {
|
|
1003
|
-
return c` <button
|
|
1004
|
-
type="button"
|
|
1005
|
-
id="sbb-calendar__month-selection"
|
|
1006
|
-
class="sbb-calendar__controls-change-date"
|
|
1007
|
-
aria-label=${`${Ne[this._language.current]} ${this._chosenYear}`}
|
|
1008
|
-
@click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
|
|
1009
|
-
>
|
|
1010
|
-
${this._chosenYear} ${this._wide ? ` - ${this._chosenYear + 1}` : p}
|
|
1011
|
-
<sbb-icon name="chevron-small-up-small"></sbb-icon>
|
|
1012
|
-
</button>
|
|
1013
|
-
<sbb-screen-reader-only role="status"> ${this._chosenYear} </sbb-screen-reader-only>`;
|
|
1014
|
-
}
|
|
1015
|
-
/** Creates the table for the month selection view. */
|
|
1016
|
-
_createMonthTable(e, t) {
|
|
1017
|
-
return c`
|
|
1018
|
-
<table
|
|
1019
|
-
class="sbb-calendar__table"
|
|
1020
|
-
@animationend=${(a) => this._tableAnimationEnd(a)}
|
|
1021
|
-
>
|
|
1022
|
-
${this._wide ? c`<thead class="sbb-calendar__table-header" aria-hidden="true">
|
|
1023
|
-
<tr>
|
|
1024
|
-
<th class="sbb-calendar__table-header-cell" colspan=${j}>${t}</th>
|
|
1025
|
-
</tr>
|
|
1026
|
-
</thead>` : p}
|
|
1027
|
-
<tbody class="sbb-calendar__table-body">
|
|
1028
|
-
${e.map((a) => c`
|
|
1029
|
-
<tr>
|
|
1030
|
-
${a.map((s) => {
|
|
1031
|
-
let r;
|
|
1032
|
-
if (this.multiple)
|
|
1033
|
-
r = this._selected.find((f) => t === this._dateAdapter.getYear(f) && s.monthValue === this._dateAdapter.getMonth(f)) !== void 0;
|
|
1034
|
-
else {
|
|
1035
|
-
const f = this._selected ? this._dateAdapter.getMonth(this._selected) : void 0, k = this._selected ? this._dateAdapter.getYear(this._selected) : void 0;
|
|
1036
|
-
r = !!this._selected && t === k && s.monthValue === f;
|
|
1037
|
-
}
|
|
1038
|
-
const i = !this._isMonthInRange(s.monthValue, t), l = !this._isMonthFilteredOut(s.monthValue, t), b = t === this._dateAdapter.getYear(this._dateAdapter.today()) && this._dateAdapter.getMonth(this._dateAdapter.today()) === s.monthValue;
|
|
1039
|
-
return c` <td
|
|
1040
|
-
class=${J({
|
|
1041
|
-
"sbb-calendar__table-data": !0,
|
|
1042
|
-
"sbb-calendar__table-month": !0
|
|
1043
|
-
})}
|
|
1044
|
-
>
|
|
1045
|
-
<button
|
|
1046
|
-
class=${J({
|
|
1047
|
-
"sbb-calendar__cell": !0,
|
|
1048
|
-
"sbb-calendar__cell-current": b,
|
|
1049
|
-
"sbb-calendar__crossed-out": !i && l,
|
|
1050
|
-
"sbb-calendar__selected": r
|
|
1051
|
-
})}
|
|
1052
|
-
@click=${() => this._onMonthSelection(s.monthValue, t)}
|
|
1053
|
-
?disabled=${i || l}
|
|
1054
|
-
aria-label=${`${s.longValue} ${t}`}
|
|
1055
|
-
aria-pressed=${r}
|
|
1056
|
-
aria-disabled=${String(i || l)}
|
|
1057
|
-
tabindex="-1"
|
|
1058
|
-
data-month=${s.monthValue || p}
|
|
1059
|
-
@keydown=${(f) => this._handleKeyboardEvent(f)}
|
|
1060
|
-
>
|
|
1061
|
-
${s.value}
|
|
1062
|
-
</button>
|
|
1063
|
-
</td>`;
|
|
1064
|
-
})}
|
|
1065
|
-
</tr>
|
|
1066
|
-
`)}
|
|
1067
|
-
</tbody>
|
|
1068
|
-
</table>
|
|
1069
|
-
`;
|
|
1070
|
-
}
|
|
1071
|
-
/** Select the month and change the view to day selection. */
|
|
1072
|
-
_onMonthSelection(e, t) {
|
|
1073
|
-
this._chosenMonth = e, this._nextCalendarView = "day", this._init(this._dateAdapter.createDate(t, this._chosenMonth, this._dateAdapter.getDate(this._activeDate))), this._startTableTransition(), this._emitMonthChange();
|
|
1074
|
-
}
|
|
1075
|
-
/** Render the view for the year selection. */
|
|
1076
|
-
_renderYearView() {
|
|
1077
|
-
return c`
|
|
1078
|
-
<div class="sbb-calendar__controls">
|
|
1079
|
-
${this._getArrow("left", () => this._goToDifferentYearRange(-$), Xe($)[this._language.current], this._previousYearRangeDisabled())}
|
|
1080
|
-
<div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
|
|
1081
|
-
${this._getArrow("right", () => this._goToDifferentYearRange($), Ze($)[this._language.current], this._nextYearRangeDisabled())}
|
|
1082
|
-
</div>
|
|
1083
|
-
<div class="sbb-calendar__table-overflow-break">
|
|
1084
|
-
<div class="sbb-calendar__table-container sbb-calendar__table-year-view">
|
|
1085
|
-
${this._createYearTable(this._years)}
|
|
1086
|
-
${this._wide ? this._createYearTable(this._nextMonthYears, !0) : p}
|
|
1087
|
-
</div>
|
|
1088
|
-
</div>
|
|
1089
|
-
`;
|
|
1090
|
-
}
|
|
1091
|
-
/** Creates the button arrow for all the views. */
|
|
1092
|
-
_getArrow(e, t, a, s) {
|
|
1093
|
-
return c`<sbb-secondary-button
|
|
1094
|
-
size="m"
|
|
1095
|
-
icon-name="chevron-small-${e}-small"
|
|
1096
|
-
aria-label=${a}
|
|
1097
|
-
@click=${t}
|
|
1098
|
-
?disabled=${s}
|
|
1099
|
-
id="sbb-calendar__controls-${e === "left" ? "previous" : "next"}"
|
|
1100
|
-
></sbb-secondary-button>`;
|
|
1101
|
-
}
|
|
1102
|
-
/** Creates the label with the year range for the yearly view. */
|
|
1103
|
-
_createLabelForYearView() {
|
|
1104
|
-
const e = this._years.flat()[0], t = (this._wide ? this._nextMonthYears : this._years).flat(), a = t[t.length - 1], s = `${e} - ${a}`;
|
|
1105
|
-
return c`
|
|
1106
|
-
<button
|
|
1107
|
-
type="button"
|
|
1108
|
-
id="sbb-calendar__year-selection"
|
|
1109
|
-
class="sbb-calendar__controls-change-date"
|
|
1110
|
-
aria-label="${Ne[this._language.current]} ${s}"
|
|
1111
|
-
@click=${() => this._resetCalendarViewAndEmitMonthChange(!0)}
|
|
1112
|
-
>
|
|
1113
|
-
${s}
|
|
1114
|
-
<sbb-icon name="chevron-small-up-small"></sbb-icon>
|
|
1115
|
-
</button>
|
|
1116
|
-
<sbb-screen-reader-only role="status"> ${s} </sbb-screen-reader-only>
|
|
1117
|
-
`;
|
|
1118
|
-
}
|
|
1119
|
-
/** Creates the table for the year selection view. */
|
|
1120
|
-
_createYearTable(e, t = !1) {
|
|
1121
|
-
const a = this._dateAdapter.today();
|
|
1122
|
-
return c` <table
|
|
1123
|
-
class="sbb-calendar__table"
|
|
1124
|
-
@animationend=${(s) => this._tableAnimationEnd(s)}
|
|
1125
|
-
>
|
|
1126
|
-
<tbody class="sbb-calendar__table-body">
|
|
1127
|
-
${e.map((s) => c` <tr>
|
|
1128
|
-
${s.map((r) => {
|
|
1129
|
-
let i;
|
|
1130
|
-
if (this.multiple)
|
|
1131
|
-
i = this._selected.find((k) => r === this._dateAdapter.getYear(k)) !== void 0;
|
|
1132
|
-
else {
|
|
1133
|
-
const k = this._selected ? this._dateAdapter.getYear(this._selected) : void 0;
|
|
1134
|
-
i = !!this._selected && r === k;
|
|
1135
|
-
}
|
|
1136
|
-
const l = !this._isYearInRange(r), b = !this._isYearFilteredOut(r), f = this._dateAdapter.getYear(a) === r;
|
|
1137
|
-
return c` <td class="sbb-calendar__table-data sbb-calendar__table-year">
|
|
1138
|
-
<button
|
|
1139
|
-
class=${J({
|
|
1140
|
-
"sbb-calendar__cell": !0,
|
|
1141
|
-
"sbb-calendar__cell-current": f,
|
|
1142
|
-
"sbb-calendar__crossed-out": !l && b,
|
|
1143
|
-
"sbb-calendar__selected": i
|
|
1144
|
-
})}
|
|
1145
|
-
@click=${() => this._onYearSelection(r, t)}
|
|
1146
|
-
?disabled=${l || b}
|
|
1147
|
-
aria-label=${r}
|
|
1148
|
-
aria-pressed=${i}
|
|
1149
|
-
aria-disabled=${String(l || b)}
|
|
1150
|
-
tabindex="-1"
|
|
1151
|
-
data-year=${r || p}
|
|
1152
|
-
@keydown=${(k) => this._handleKeyboardEvent(k)}
|
|
1153
|
-
>
|
|
1154
|
-
${r}
|
|
1155
|
-
</button>
|
|
1156
|
-
</td>`;
|
|
1157
|
-
})}
|
|
1158
|
-
</tr>`)}
|
|
1159
|
-
</tbody>
|
|
1160
|
-
</table>`;
|
|
1161
|
-
}
|
|
1162
|
-
/** Select the year and change the view to month selection. */
|
|
1163
|
-
_onYearSelection(e, t) {
|
|
1164
|
-
this._chosenYear = t ? e - 1 : e, this._nextCalendarView = "month", this._assignActiveDate(this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate))), this._startTableTransition();
|
|
1165
|
-
}
|
|
1166
|
-
_getView() {
|
|
1167
|
-
if (Fe || this.hydrationRequired)
|
|
1168
|
-
return c`${p}`;
|
|
1169
|
-
switch (this._calendarView) {
|
|
1170
|
-
case "year":
|
|
1171
|
-
return this._renderYearView();
|
|
1172
|
-
case "month":
|
|
1173
|
-
return this._renderMonthView();
|
|
1174
|
-
default:
|
|
1175
|
-
return this._renderDayView();
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
_tableAnimationEnd(e) {
|
|
1179
|
-
const t = e.target;
|
|
1180
|
-
e.animationName === "hide" ? (t.classList.remove("sbb-calendar__table-hide"), this._containingFocus && (this._resetFocus = !0), this._calendarView = this._nextCalendarView) : e.animationName === "show" && this.internals.states.delete("transition");
|
|
1181
|
-
}
|
|
1182
|
-
_startTableTransition() {
|
|
1183
|
-
this.internals.states.add("transition"), this.shadowRoot?.querySelectorAll("table")?.forEach((e) => e.classList.toggle("sbb-calendar__table-hide"));
|
|
1184
|
-
}
|
|
1185
|
-
render() {
|
|
1186
|
-
return c`<div class="sbb-calendar__wrapper">${this._getView()}</div>`;
|
|
1187
|
-
}
|
|
1188
|
-
}, N = new WeakMap(), I = new WeakMap(), C = new WeakMap(), R = new WeakMap(), S = new WeakMap(), T = new WeakMap(), P = new WeakMap(), E = new WeakMap(), L = new WeakMap(), B = new WeakMap(), H = new WeakMap(), q = new WeakMap(), (() => {
|
|
1189
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
1190
|
-
d = [X(), Y({ type: Boolean })], v = [Y()], D = [We(), Y()], ee = [We(), Y()], se = [X(), Ke((t, a) => t._onMultipleChanged(a)), Y({ type: Boolean })], ne = [Y()], le = [Q()], ce = [Y({ attribute: "date-filter" })], _e = [Y({ reflect: !0 })], ge = [X(), Y({ attribute: "week-numbers", type: Boolean })], ve = [Q()], De = [Q()], ke = [Q()], Ve = [Q()], w(g, null, d, { kind: "accessor", name: "wide", static: !1, private: !1, access: { has: (t) => "wide" in t, get: (t) => t.wide, set: (t, a) => {
|
|
1191
|
-
t.wide = a;
|
|
1192
|
-
} }, metadata: e }, h, m), w(g, null, v, { kind: "accessor", name: "view", static: !1, private: !1, access: { has: (t) => "view" in t, get: (t) => t.view, set: (t, a) => {
|
|
1193
|
-
t.view = a;
|
|
1194
|
-
} }, metadata: e }, V, O), w(g, null, D, { kind: "accessor", name: "min", static: !1, private: !1, access: { has: (t) => "min" in t, get: (t) => t.min, set: (t, a) => {
|
|
1195
|
-
t.min = a;
|
|
1196
|
-
} }, metadata: e }, M, W), w(g, null, ee, { kind: "accessor", name: "max", static: !1, private: !1, access: { has: (t) => "max" in t, get: (t) => t.max, set: (t, a) => {
|
|
1197
|
-
t.max = a;
|
|
1198
|
-
} }, metadata: e }, te, ae), w(g, null, se, { kind: "accessor", name: "multiple", static: !1, private: !1, access: { has: (t) => "multiple" in t, get: (t) => t.multiple, set: (t, a) => {
|
|
1199
|
-
t.multiple = a;
|
|
1200
|
-
} }, metadata: e }, re, ie), w(g, null, ne, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, a) => {
|
|
1201
|
-
t.selected = a;
|
|
1202
|
-
} }, metadata: e }, null, n), w(g, null, le, { kind: "accessor", name: "_selected", static: !1, private: !1, access: { has: (t) => "_selected" in t, get: (t) => t._selected, set: (t, a) => {
|
|
1203
|
-
t._selected = a;
|
|
1204
|
-
} }, metadata: e }, oe, de), w(g, null, ce, { kind: "accessor", name: "dateFilter", static: !1, private: !1, access: { has: (t) => "dateFilter" in t, get: (t) => t.dateFilter, set: (t, a) => {
|
|
1205
|
-
t.dateFilter = a;
|
|
1206
|
-
} }, metadata: e }, he, be), w(g, null, _e, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, a) => {
|
|
1207
|
-
t.orientation = a;
|
|
1208
|
-
} }, metadata: e }, ue, fe), w(g, null, ge, { kind: "accessor", name: "weekNumbers", static: !1, private: !1, access: { has: (t) => "weekNumbers" in t, get: (t) => t.weekNumbers, set: (t, a) => {
|
|
1209
|
-
t.weekNumbers = a;
|
|
1210
|
-
} }, metadata: e }, me, pe), w(g, null, ve, { kind: "accessor", name: "_activeDate", static: !1, private: !1, access: { has: (t) => "_activeDate" in t, get: (t) => t._activeDate, set: (t, a) => {
|
|
1211
|
-
t._activeDate = a;
|
|
1212
|
-
} }, metadata: e }, we, ye), w(g, null, De, { kind: "setter", name: "_wide", static: !1, private: !1, access: { has: (t) => "_wide" in t, set: (t, a) => {
|
|
1213
|
-
t._wide = a;
|
|
1214
|
-
} }, metadata: e }, null, n), w(g, null, ke, { kind: "accessor", name: "_calendarView", static: !1, private: !1, access: { has: (t) => "_calendarView" in t, get: (t) => t._calendarView, set: (t, a) => {
|
|
1215
|
-
t._calendarView = a;
|
|
1216
|
-
} }, metadata: e }, Ae, xe), w(g, null, Ve, { kind: "accessor", name: "_initialized", static: !1, private: !1, access: { has: (t) => "_initialized" in t, get: (t) => t._initialized, set: (t, a) => {
|
|
1217
|
-
t._initialized = a;
|
|
1218
|
-
} }, metadata: e }, $e, Me), e && Object.defineProperty(g, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
1219
|
-
})(), g.elementName = "sbb-calendar", g.styles = [et, _t], g.events = {
|
|
1220
|
-
dateselected: "dateselected",
|
|
1221
|
-
monthchange: "monthchange"
|
|
1222
|
-
}, g;
|
|
1223
|
-
})();
|
|
1224
|
-
export {
|
|
1225
|
-
Wt as SbbCalendarElement,
|
|
1226
|
-
ut as SbbMonthChangeEvent
|
|
1227
|
-
};
|
|
1
|
+
import { n as e, t } from "../../calendar.component-BgZDy-rX.js";
|
|
2
|
+
export { t as SbbCalendarElement, e as SbbMonthChangeEvent };
|