@sbb-esta/lyne-elements-dev 4.7.0-dev.1773388991 → 4.7.0-dev.1773396165
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 +98 -2
- package/accordion.js +4 -5
- package/accordion.pure.js +4 -2
- package/action-group/action-group.component.js +107 -2
- package/action-group.js +4 -5
- package/action-group.pure.js +4 -2
- package/alert/alert/alert.component.js +143 -2
- package/alert/alert-group/alert-group.component.js +103 -2
- package/alert/alert-group.js +7 -4
- package/alert/alert.js +7 -4
- package/alert.js +8 -6
- package/alert.pure.js +6 -3
- package/autocomplete/autocomplete-base-element.js +373 -2
- package/autocomplete/autocomplete.component.js +50 -51
- package/autocomplete.js +7 -7
- package/autocomplete.pure.js +6 -3
- package/breadcrumb/breadcrumb/breadcrumb.component.js +20 -2
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +135 -2
- package/breadcrumb/breadcrumb-group.js +7 -4
- package/breadcrumb/breadcrumb.js +7 -4
- package/breadcrumb.js +8 -6
- package/breadcrumb.pure.js +6 -3
- package/button/accent-button/accent-button.component.js +14 -18
- package/button/accent-button-link/accent-button-link.component.js +14 -18
- package/button/accent-button-link.js +4 -4
- package/button/accent-button-static/accent-button-static.component.js +13 -17
- package/button/accent-button-static.js +4 -4
- package/button/accent-button.js +4 -4
- package/button/button/button.component.js +14 -18
- package/button/button-link/button-link.component.js +14 -18
- package/button/button-link.js +4 -4
- package/button/button-static/button-static.component.js +14 -18
- package/button/button-static.js +4 -4
- package/button/button.js +4 -4
- package/button/common/button-common.js +67 -81
- package/button/common.js +12 -3
- package/button/mini-button/mini-button.component.js +18 -22
- package/button/mini-button-group/mini-button-group.component.js +68 -2
- package/button/mini-button-group.js +6 -6
- package/button/mini-button-link/mini-button-link.component.js +27 -2
- package/button/mini-button-link.js +6 -6
- package/button/mini-button.js +4 -4
- package/button/secondary-button/secondary-button.component.js +14 -18
- package/button/secondary-button-link/secondary-button-link.component.js +14 -18
- package/button/secondary-button-link.js +6 -6
- package/button/secondary-button-static/secondary-button-static.component.js +14 -18
- package/button/secondary-button-static.js +4 -4
- package/button/secondary-button.js +6 -6
- package/button/transparent-button/transparent-button.component.js +14 -18
- package/button/transparent-button-link/transparent-button-link.component.js +14 -18
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static/transparent-button-static.component.js +14 -18
- package/button/transparent-button-static.js +4 -4
- package/button/transparent-button.js +4 -4
- package/button.js +56 -20
- package/button.pure.js +42 -18
- package/calendar/calendar/calendar.component.js +1227 -2
- package/calendar/calendar-day/calendar-day.component.js +98 -2
- package/calendar/calendar-day.js +7 -4
- package/calendar/calendar.js +9 -4
- package/calendar.js +10 -6
- package/calendar.pure.js +7 -3
- package/card/card/card.component.js +48 -2
- package/card/card-badge/card-badge.component.js +48 -2
- package/card/card-badge.js +7 -4
- package/card/card-button/card-button.component.js +10 -11
- package/card/card-button.js +6 -3
- package/card/card-link/card-link.component.js +10 -11
- package/card/card-link.js +6 -3
- package/card/card.js +7 -4
- package/card/common/card-action-common.js +63 -2
- package/card/common.js +6 -5
- package/card.js +16 -9
- package/card.pure.js +11 -5
- package/carousel/carousel/carousel.component.js +88 -2
- package/carousel/carousel-item/carousel-item.component.js +18 -2
- package/carousel/carousel-item.js +7 -4
- package/carousel/carousel-list/carousel-list.component.js +90 -2
- package/carousel/carousel-list.js +7 -4
- package/carousel/carousel.js +7 -4
- package/carousel.js +11 -7
- package/carousel.pure.js +8 -4
- package/checkbox/checkbox-group.js +3 -2
- package/checkbox/checkbox-panel.js +3 -2
- package/checkbox/checkbox.component.js +91 -3
- package/checkbox/checkbox.js +7 -5
- package/checkbox/common/checkbox-common.js +57 -2
- package/checkbox/common.js +7 -5
- package/checkbox-group/checkbox-group.component.js +101 -2
- package/checkbox-group.js +4 -5
- package/checkbox-group.pure.js +4 -2
- package/checkbox-panel/checkbox-panel.component.js +48 -63
- package/checkbox-panel.js +3 -4
- package/checkbox-panel.pure.js +4 -2
- package/checkbox.js +14 -10
- package/checkbox.pure.js +7 -3
- package/chip/chip/chip.component.js +73 -2
- package/chip/chip-group/chip-group.component.js +253 -2
- package/chip/chip-group.js +7 -4
- package/chip/chip.js +7 -4
- package/chip-label/chip-label.component.js +56 -2
- package/chip-label.js +4 -5
- package/chip-label.pure.js +4 -2
- package/chip.js +8 -6
- package/chip.pure.js +6 -3
- package/clock/clock.component.js +153 -2
- package/clock.js +4 -5
- package/clock.pure.js +4 -2
- package/container/container/container.component.js +76 -2
- package/container/container.js +7 -4
- package/container/sticky-bar/sticky-bar.component.js +122 -2
- package/container/sticky-bar.js +7 -4
- package/container.js +8 -6
- package/container.pure.js +6 -3
- package/core/a11y/arrow-navigation.js +33 -45
- package/core/a11y/fake-event-detection.js +9 -8
- package/core/a11y/focus-trap-controller.js +91 -69
- package/core/a11y/focus-visible-within-controller.js +18 -18
- package/core/a11y/focus.js +13 -13
- package/core/a11y/input-modality-detector.js +47 -42
- package/core/a11y/interactivity-checker.js +96 -61
- package/core/a11y/live-announcer.js +40 -29
- package/core/a11y.js +26 -9
- package/core/base-elements/action-base-element.js +37 -29
- package/core/base-elements/button-base-element.js +145 -165
- package/core/base-elements/element.js +63 -28
- package/core/base-elements/link-base-element.js +119 -186
- package/core/base-elements/open-close-base-element.js +42 -40
- package/core/base-elements.js +13 -6
- package/core/config/config.js +9 -8
- package/core/config.js +5 -2
- package/core/controllers/escapable-overlay-controller.js +25 -23
- package/core/controllers/id-reference-controller.js +59 -50
- package/core/controllers/inert-controller.js +57 -55
- package/core/controllers/language-controller.js +38 -53
- package/core/controllers/media-matchers-controller.js +96 -82
- package/core/controllers/overlay-position-controller.js +222 -215
- package/core/controllers/property-watcher-controller.js +59 -55
- package/core/controllers/slot-state-controller.js +36 -34
- package/core/controllers.js +28 -7
- package/core/datetime/date-adapter.js +135 -61
- package/core/datetime/native-date-adapter.js +140 -91
- package/core/datetime/temporal-date-adapter.js +144 -108
- package/core/datetime.js +16 -4
- package/core/decorators/base.js +1 -0
- package/core/decorators/force-type.js +16 -12
- package/core/decorators/get-override.js +13 -10
- package/core/decorators/handle-distinct-change.js +15 -12
- package/core/decorators/host-attributes.js +16 -15
- package/core/decorators/id-reference.js +75 -65
- package/core/decorators/omit-empty-converter.js +9 -7
- package/core/decorators/plain-date.js +25 -21
- package/core/decorators.js +17 -8
- package/core/dom/animation.js +9 -8
- package/core/dom/contains-pierce-shadow-dom.js +11 -10
- package/core/dom/lean-context.js +4 -4
- package/core/dom/platform.js +18 -8
- package/core/dom/queue-dom-content-loaded.js +6 -6
- package/core/dom/scroll.js +16 -14
- package/core/dom/set-or-remove-attribute.js +5 -5
- package/core/dom.js +25 -6
- package/core/eventing/composed-path-has-attribute.js +7 -6
- 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 +14 -7
- package/core/i18n/i18n.js +738 -634
- package/core/i18n.js +104 -2
- package/core/images.js +14 -14
- package/core/interfaces.js +1 -0
- package/core/mixins/animation-complete-mixin.js +42 -34
- package/core/mixins/constructor.js +1 -0
- package/core/mixins/disabled-mixin.js +74 -91
- package/core/mixins/element-internals-mixin.js +155 -149
- package/core/mixins/form-associated-checkbox-mixin.js +93 -106
- package/core/mixins/form-associated-input-mixin.js +193 -202
- package/core/mixins/form-associated-mixin.js +226 -168
- package/core/mixins/form-associated-radio-button-mixin.js +168 -152
- package/core/mixins/hydration-mixin.js +37 -27
- package/core/mixins/named-slot-list-mixin.js +95 -77
- package/core/mixins/negative-mixin.js +33 -45
- package/core/mixins/panel-mixin.js +70 -109
- package/core/mixins/readonly-mixin.js +34 -40
- package/core/mixins/required-mixin.js +35 -48
- package/core/mixins/selection-panel-mixin.js +39 -36
- package/core/mixins/update-scheduler-mixin.js +21 -20
- package/core/mixins.js +41 -21
- package/core/overlay/overlay-option-panel.js +16 -15
- package/core/overlay/overlay-outside-pointer-event-listener.js +37 -34
- package/core/overlay/overlay-trigger-attributes.js +14 -11
- package/core/overlay/overlay.js +6 -6
- package/core/overlay/position.js +49 -53
- package/core/overlay.js +19 -6
- package/core/styles/core.scss +10 -0
- package/core/styles.js +5 -5
- package/core/testing/event-spy.js +50 -46
- package/core/testing/mocha-extensions.js +10 -7
- package/core/testing/wait-for-condition.js +12 -10
- package/core/testing/wait-for-image-ready.js +16 -15
- package/core/testing/wait-for-render.js +13 -12
- package/core/testing.js +14 -6
- package/core.css +14 -0
- package/date-input/date-input.component.js +166 -2
- package/date-input.js +4 -5
- package/date-input.pure.js +4 -2
- package/datepicker/common/datepicker-button.js +102 -2
- package/datepicker/common.js +8 -5
- package/datepicker/datepicker/datepicker.component.js +120 -2
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +23 -27
- package/datepicker/datepicker-next-day.js +6 -3
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +23 -27
- package/datepicker/datepicker-previous-day.js +6 -3
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +51 -66
- package/datepicker/datepicker-toggle.js +6 -3
- package/datepicker/datepicker.js +7 -4
- package/datepicker.js +18 -9
- package/datepicker.pure.js +13 -5
- package/development/accordion/accordion.component.js +132 -2
- package/development/accordion.js +5 -8
- package/development/accordion.pure.js +5 -2
- package/development/action-group/action-group.component.js +305 -2
- package/development/action-group.js +5 -8
- package/development/action-group.pure.js +5 -2
- package/development/alert/alert/alert.component.js +385 -2
- package/development/alert/alert-group/alert-group.component.js +166 -2
- package/development/alert/alert-group.js +5 -7
- package/development/alert/alert.js +5 -7
- package/development/alert.js +7 -9
- package/development/alert.pure.js +7 -3
- package/development/autocomplete/autocomplete-base-element.js +897 -2
- package/development/autocomplete/autocomplete.component.js +72 -82
- package/development/autocomplete.js +6 -8
- package/development/autocomplete.pure.js +6 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +77 -2
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +263 -2
- package/development/breadcrumb/breadcrumb-group.js +5 -7
- package/development/breadcrumb/breadcrumb.js +5 -7
- package/development/breadcrumb.js +7 -9
- package/development/breadcrumb.pure.js +7 -3
- package/development/button/accent-button/accent-button.component.js +13 -24
- package/development/button/accent-button-link/accent-button-link.component.js +13 -24
- package/development/button/accent-button-link.js +7 -9
- package/development/button/accent-button-static/accent-button-static.component.js +13 -24
- package/development/button/accent-button-static.js +7 -9
- package/development/button/accent-button.js +7 -9
- package/development/button/button/button.component.js +12 -23
- package/development/button/button-link/button-link.component.js +12 -23
- package/development/button/button-link.js +7 -9
- package/development/button/button-static/button-static.component.js +12 -23
- package/development/button/button-static.js +7 -9
- package/development/button/button.js +7 -9
- package/development/button/common/button-common.js +85 -104
- package/development/button/common.js +12 -2
- package/development/button/mini-button/mini-button.component.js +17 -28
- package/development/button/mini-button-group/mini-button-group.component.js +141 -2
- package/development/button/mini-button-group.js +7 -9
- package/development/button/mini-button-link/mini-button-link.component.js +34 -2
- package/development/button/mini-button-link.js +7 -9
- package/development/button/mini-button.js +7 -9
- package/development/button/secondary-button/secondary-button.component.js +12 -23
- package/development/button/secondary-button-link/secondary-button-link.component.js +12 -23
- package/development/button/secondary-button-link.js +7 -9
- package/development/button/secondary-button-static/secondary-button-static.component.js +12 -23
- package/development/button/secondary-button-static.js +7 -9
- package/development/button/secondary-button.js +7 -9
- package/development/button/transparent-button/transparent-button.component.js +12 -23
- package/development/button/transparent-button-link/transparent-button-link.component.js +12 -23
- package/development/button/transparent-button-link.js +7 -9
- package/development/button/transparent-button-static/transparent-button-static.component.js +12 -23
- package/development/button/transparent-button-static.js +7 -9
- package/development/button/transparent-button.js +7 -9
- package/development/button.js +29 -10
- package/development/button.pure.js +29 -4
- package/development/calendar/calendar/calendar.component.js +1984 -2
- package/development/calendar/calendar-day/calendar-day.component.js +248 -2
- package/development/calendar/calendar-day.js +5 -7
- package/development/calendar/calendar.js +7 -7
- package/development/calendar.js +9 -9
- package/development/calendar.pure.js +8 -3
- package/development/card/card/card.component.js +233 -2
- package/development/card/card-badge/card-badge.component.js +119 -2
- package/development/card/card-badge.js +5 -7
- package/development/card/card-button/card-button.component.js +11 -19
- package/development/card/card-button.js +4 -6
- package/development/card/card-link/card-link.component.js +11 -19
- package/development/card/card-link.js +4 -6
- package/development/card/card.js +5 -7
- package/development/card/common/card-action-common.js +121 -2
- package/development/card/common.js +5 -6
- package/development/card.js +11 -10
- package/development/card.pure.js +11 -4
- package/development/carousel/carousel/carousel.component.js +160 -2
- package/development/carousel/carousel-item/carousel-item.component.js +32 -2
- package/development/carousel/carousel-item.js +5 -7
- package/development/carousel/carousel-list/carousel-list.component.js +157 -2
- package/development/carousel/carousel-list.js +5 -7
- package/development/carousel/carousel.js +5 -7
- package/development/carousel.js +9 -10
- package/development/carousel.pure.js +9 -4
- package/development/checkbox/checkbox-group.js +1 -5
- package/development/checkbox/checkbox-panel.js +1 -5
- package/development/checkbox/checkbox.component.js +141 -3
- package/development/checkbox/checkbox.js +5 -8
- package/development/checkbox/common/checkbox-common.js +137 -2
- package/development/checkbox/common.js +6 -6
- package/development/checkbox-group/checkbox-group.component.js +212 -2
- package/development/checkbox-group.js +5 -8
- package/development/checkbox-group.pure.js +5 -2
- package/development/checkbox-panel/checkbox-panel.component.js +54 -81
- package/development/checkbox-panel.js +4 -7
- package/development/checkbox-panel.pure.js +4 -1
- package/development/checkbox.js +11 -12
- package/development/checkbox.pure.js +8 -3
- package/development/chip/chip/chip.component.js +164 -2
- package/development/chip/chip-group/chip-group.component.js +447 -2
- package/development/chip/chip-group.js +5 -7
- package/development/chip/chip.js +5 -7
- package/development/chip-label/chip-label.component.js +131 -2
- package/development/chip-label.js +5 -8
- package/development/chip-label.pure.js +5 -2
- package/development/chip.js +7 -9
- package/development/chip.pure.js +7 -3
- package/development/clock/clock.component.js +362 -2
- package/development/clock.js +5 -8
- package/development/clock.pure.js +5 -2
- package/development/container/container/container.component.js +182 -2
- package/development/container/container.js +5 -7
- package/development/container/sticky-bar/sticky-bar.component.js +357 -2
- package/development/container/sticky-bar.js +5 -7
- package/development/container.js +7 -9
- package/development/container.pure.js +7 -3
- package/development/core/a11y/arrow-navigation.js +28 -67
- package/development/core/a11y/fake-event-detection.js +8 -10
- package/development/core/a11y/focus-trap-controller.js +120 -104
- package/development/core/a11y/focus-visible-within-controller.js +24 -25
- package/development/core/a11y/focus.js +13 -14
- package/development/core/a11y/input-modality-detector.js +75 -128
- package/development/core/a11y/interactivity-checker.js +108 -115
- package/development/core/a11y/live-announcer.js +80 -76
- package/development/core/a11y.js +21 -3
- package/development/core/base-elements/action-base-element.js +42 -37
- package/development/core/base-elements/button-base-element.js +205 -247
- package/development/core/base-elements/element.js +67 -69
- package/development/core/base-elements/link-base-element.js +150 -226
- package/development/core/base-elements/open-close-base-element.js +49 -54
- package/development/core/base-elements.js +10 -2
- package/development/core/config/config.js +11 -9
- package/development/core/config.js +5 -1
- package/development/core/controllers/escapable-overlay-controller.js +36 -34
- package/development/core/controllers/id-reference-controller.js +81 -76
- package/development/core/controllers/inert-controller.js +105 -99
- package/development/core/controllers/language-controller.js +66 -76
- package/development/core/controllers/media-matchers-controller.js +138 -145
- package/development/core/controllers/overlay-position-controller.js +283 -297
- package/development/core/controllers/property-watcher-controller.js +119 -94
- package/development/core/controllers/slot-state-controller.js +63 -75
- package/development/core/controllers.js +23 -1
- package/development/core/datetime/date-adapter.js +166 -143
- package/development/core/datetime/native-date-adapter.js +148 -142
- package/development/core/datetime/temporal-date-adapter.js +149 -162
- package/development/core/datetime.js +14 -1
- package/development/core/decorators/base.js +2 -0
- package/development/core/decorators/force-type.js +27 -24
- package/development/core/decorators/get-override.js +17 -17
- package/development/core/decorators/handle-distinct-change.js +21 -20
- package/development/core/decorators/host-attributes.js +26 -37
- package/development/core/decorators/id-reference.js +114 -115
- package/development/core/decorators/omit-empty-converter.js +9 -13
- package/development/core/decorators/plain-date.js +31 -36
- package/development/core/decorators.js +11 -1
- package/development/core/dom/animation.js +9 -8
- package/development/core/dom/contains-pierce-shadow-dom.js +12 -12
- package/development/core/dom/lean-context.js +5 -9
- package/development/core/dom/platform.js +28 -35
- package/development/core/dom/queue-dom-content-loaded.js +10 -11
- package/development/core/dom/scroll.js +34 -34
- package/development/core/dom/set-or-remove-attribute.js +9 -13
- package/development/core/dom.js +21 -1
- package/development/core/eventing/composed-path-has-attribute.js +10 -17
- package/development/core/eventing/event-target.js +5 -7
- package/development/core/eventing/form-element-handlers.js +7 -10
- package/development/core/eventing/forward-event.js +7 -12
- package/development/core/eventing/is-event-prevented.js +6 -8
- package/development/core/eventing/throttle.js +17 -16
- package/development/core/eventing.js +9 -1
- package/development/core/i18n/i18n.js +875 -770
- package/development/core/i18n.js +104 -1
- package/development/core/images.js +15 -20
- package/development/core/interfaces.js +2 -0
- package/development/core/mixins/animation-complete-mixin.js +51 -55
- package/development/core/mixins/constructor.js +2 -0
- package/development/core/mixins/disabled-mixin.js +101 -124
- package/development/core/mixins/element-internals-mixin.js +225 -212
- package/development/core/mixins/form-associated-checkbox-mixin.js +141 -160
- package/development/core/mixins/form-associated-input-mixin.js +314 -334
- package/development/core/mixins/form-associated-mixin.js +279 -287
- package/development/core/mixins/form-associated-radio-button-mixin.js +247 -260
- package/development/core/mixins/hydration-mixin.js +55 -58
- package/development/core/mixins/named-slot-list-mixin.js +114 -116
- package/development/core/mixins/negative-mixin.js +41 -56
- package/development/core/mixins/panel-mixin.js +93 -142
- package/development/core/mixins/readonly-mixin.js +43 -54
- package/development/core/mixins/required-mixin.js +46 -65
- package/development/core/mixins/selection-panel-mixin.js +55 -50
- package/development/core/mixins/update-scheduler-mixin.js +25 -30
- package/development/core/mixins.js +29 -10
- package/development/core/overlay/overlay-option-panel.js +26 -34
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +60 -64
- package/development/core/overlay/overlay-trigger-attributes.js +39 -42
- package/development/core/overlay/overlay.js +5 -10
- package/development/core/overlay/position.js +117 -143
- package/development/core/overlay.js +16 -2
- package/development/core/styles.js +5 -6
- package/development/core/testing/event-spy.js +67 -66
- package/development/core/testing/mocha-extensions.js +13 -15
- package/development/core/testing/wait-for-condition.js +17 -14
- package/development/core/testing/wait-for-image-ready.js +27 -20
- package/development/core/testing/wait-for-render.js +18 -30
- package/development/core/testing.js +10 -1
- package/development/date-input/date-input.component.js +278 -2
- package/development/date-input.js +5 -8
- package/development/date-input.pure.js +5 -2
- package/development/datepicker/common/datepicker-button.js +155 -2
- package/development/datepicker/common.js +7 -6
- package/development/datepicker/datepicker/datepicker.component.js +180 -2
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +30 -35
- package/development/datepicker/datepicker-next-day.js +4 -6
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +30 -35
- package/development/datepicker/datepicker-previous-day.js +4 -6
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +67 -79
- package/development/datepicker/datepicker-toggle.js +4 -6
- package/development/datepicker/datepicker.js +5 -7
- package/development/datepicker.js +12 -9
- package/development/datepicker.pure.js +12 -3
- package/development/dialog/dialog/dialog.component.js +383 -2
- package/development/dialog/dialog-actions/dialog-actions.component.js +42 -2
- package/development/dialog/dialog-actions.js +5 -7
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +36 -2
- package/development/dialog/dialog-close-button.js +5 -7
- package/development/dialog/dialog-content/dialog-content.component.js +31 -2
- package/development/dialog/dialog-content.js +5 -7
- package/development/dialog/dialog-title/dialog-title.component.js +39 -2
- package/development/dialog/dialog-title.js +5 -7
- package/development/dialog/dialog.js +8 -7
- package/development/dialog.js +16 -12
- package/development/dialog.pure.js +16 -6
- package/development/divider/divider.component.js +73 -2
- package/development/divider.js +5 -8
- package/development/divider.pure.js +5 -2
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +417 -2
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +70 -2
- package/development/expansion-panel/expansion-panel-content.js +5 -7
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +170 -2
- package/development/expansion-panel/expansion-panel-header.js +5 -7
- package/development/expansion-panel/expansion-panel.js +5 -7
- package/development/expansion-panel.js +9 -10
- package/development/expansion-panel.pure.js +9 -4
- package/development/file-selector/common/file-selector-common.js +431 -2
- package/development/file-selector/common.js +6 -6
- package/development/file-selector/file-selector/file-selector.component.js +18 -27
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +126 -2
- package/development/file-selector/file-selector-dropzone.js +5 -7
- package/development/file-selector/file-selector.js +4 -6
- package/development/file-selector.js +9 -9
- package/development/file-selector.pure.js +9 -3
- package/development/flip-card/flip-card/flip-card.component.js +306 -2
- package/development/flip-card/flip-card-details/flip-card-details.component.js +69 -2
- package/development/flip-card/flip-card-details.js +5 -7
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +124 -2
- package/development/flip-card/flip-card-summary.js +5 -7
- package/development/flip-card/flip-card.js +5 -7
- package/development/flip-card.js +9 -10
- package/development/flip-card.pure.js +9 -4
- package/development/footer/footer.component.js +251 -2
- package/development/footer.js +5 -8
- package/development/footer.pure.js +5 -2
- package/development/form-field/error/error.component.js +83 -2
- package/development/form-field/error.js +5 -7
- package/development/form-field/form-field/form-field.component.js +892 -2
- package/development/form-field/form-field-clear/form-field-clear.component.js +41 -49
- package/development/form-field/form-field-clear.js +4 -6
- package/development/form-field/form-field.js +7 -7
- package/development/form-field.js +10 -9
- package/development/form-field.pure.js +9 -3
- package/development/header/common/header-action-common.js +329 -2
- package/development/header/common.js +5 -6
- package/development/header/header/header.component.js +385 -2
- package/development/header/header-button/header-button.component.js +7 -15
- package/development/header/header-button.js +4 -6
- package/development/header/header-environment/header-environment.component.js +88 -2
- package/development/header/header-environment.js +5 -7
- package/development/header/header-link/header-link.component.js +7 -15
- package/development/header/header-link.js +4 -6
- package/development/header/header.js +5 -7
- package/development/header.js +11 -10
- package/development/header.pure.js +11 -4
- package/development/icon/icon-base.js +174 -2
- package/development/icon/icon-name-mixin.js +59 -75
- package/development/icon/icon-request.js +38 -31
- package/development/icon/icon-validate.js +45 -36
- package/development/icon/icon.component.js +94 -119
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +74 -2
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +15 -25
- package/development/icon-sidebar/icon-sidebar-button.js +4 -6
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +30 -2
- package/development/icon-sidebar/icon-sidebar-container.js +5 -7
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +22 -2
- package/development/icon-sidebar/icon-sidebar-content.js +5 -7
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +15 -25
- package/development/icon-sidebar/icon-sidebar-link.js +4 -6
- package/development/icon-sidebar/icon-sidebar.js +5 -7
- package/development/icon-sidebar-button-common-DR6eQvkq.js +93 -0
- package/development/icon-sidebar.js +11 -10
- package/development/icon-sidebar.pure.js +11 -4
- package/development/icon.js +12 -10
- package/development/icon.pure.js +12 -4
- package/development/image/image.component.js +648 -2
- package/development/image.js +5 -8
- package/development/image.pure.js +5 -2
- package/development/journey-header/journey-header.component.js +158 -2
- package/development/journey-header.js +5 -8
- package/development/journey-header.pure.js +5 -2
- package/development/lead-container/lead-container.component.js +108 -2
- package/development/lead-container.js +5 -8
- package/development/lead-container.pure.js +5 -2
- package/development/link/block-link/block-link.component.js +7 -15
- package/development/link/block-link-button/block-link-button.component.js +7 -15
- package/development/link/block-link-button.js +7 -9
- package/development/link/block-link-static/block-link-static.component.js +7 -15
- package/development/link/block-link-static.js +7 -9
- package/development/link/block-link.js +7 -9
- package/development/link/common/block-link-common.js +124 -3
- package/development/link/common/inline-link-common.js +44 -3
- package/development/link/common/link-common.js +10 -2
- package/development/link/common.js +9 -4
- package/development/link/link/link.component.js +7 -14
- package/development/link/link-button/link-button.component.js +7 -14
- package/development/link/link-button.js +7 -9
- package/development/link/link-static/link-static.component.js +7 -14
- package/development/link/link-static.js +7 -9
- package/development/link/link.js +7 -9
- package/development/link-common-d27fHmQw.js +111 -0
- package/development/link-list/common/link-list-base.js +131 -2
- package/development/link-list/common.js +6 -6
- package/development/link-list/link-list-anchor.js +5 -8
- package/development/link-list/link-list.component.js +152 -3
- package/development/link-list/link-list.js +5 -8
- package/development/link-list-anchor/link-list-anchor.component.js +61 -2
- package/development/link-list-anchor.js +5 -8
- package/development/link-list-anchor.pure.js +5 -2
- package/development/link-list.js +9 -11
- package/development/link-list.pure.js +8 -3
- package/development/link.js +15 -10
- package/development/link.pure.js +15 -5
- package/development/loading-indicator/loading-indicator.component.d.ts.map +1 -1
- package/development/loading-indicator/loading-indicator.component.js +243 -2
- package/development/loading-indicator-circle/loading-indicator-circle.component.d.ts.map +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +120 -2
- package/development/loading-indicator-circle.js +5 -8
- package/development/loading-indicator-circle.pure.js +5 -2
- package/development/loading-indicator.js +5 -8
- package/development/loading-indicator.pure.js +5 -2
- package/development/logo/logo.component.js +129 -2
- package/development/logo.js +5 -8
- package/development/logo.pure.js +5 -2
- package/development/map-container/map-container.component.js +281 -2
- package/development/map-container.js +5 -8
- package/development/map-container.pure.js +5 -2
- package/development/menu/common/menu-action-common.js +144 -2
- package/development/menu/common.js +5 -6
- package/development/menu/menu/menu.component.js +683 -2
- package/development/menu/menu-button/menu-button.component.js +8 -20
- package/development/menu/menu-button.js +4 -6
- package/development/menu/menu-link/menu-link.component.js +11 -21
- package/development/menu/menu-link.js +4 -6
- package/development/menu/menu.js +5 -7
- package/development/menu.js +9 -9
- package/development/menu.pure.js +9 -3
- package/development/message/message.component.js +67 -2
- package/development/message.js +5 -8
- package/development/message.pure.js +5 -2
- package/development/mini-button-label-common-BaMSfSTe.js +558 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +188 -2
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +166 -2
- package/development/mini-calendar/mini-calendar-day.js +5 -7
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +135 -2
- package/development/mini-calendar/mini-calendar-month.js +5 -7
- package/development/mini-calendar/mini-calendar.js +5 -7
- package/development/mini-calendar.js +9 -10
- package/development/mini-calendar.pure.js +9 -4
- package/development/navigation/common/navigation-action-common.js +165 -2
- package/development/navigation/common.js +5 -6
- package/development/navigation/navigation/navigation.component.js +571 -2
- package/development/navigation/navigation-button/navigation-button.component.js +7 -14
- package/development/navigation/navigation-button.js +4 -6
- package/development/navigation/navigation-link/navigation-link.component.js +7 -14
- package/development/navigation/navigation-link.js +4 -6
- package/development/navigation/navigation-list/navigation-list.component.js +102 -2
- package/development/navigation/navigation-list.js +5 -7
- package/development/navigation/navigation-marker/navigation-marker.component.js +199 -2
- package/development/navigation/navigation-marker.js +5 -7
- package/development/navigation/navigation-section/navigation-section.component.js +588 -2
- package/development/navigation/navigation-section.js +5 -7
- package/development/navigation/navigation.js +5 -7
- package/development/navigation.js +15 -12
- package/development/navigation.pure.js +15 -6
- package/development/notification/notification.component.js +496 -2
- package/development/notification.js +5 -8
- package/development/notification.pure.js +5 -2
- package/development/option/optgroup/optgroup-base-element.js +159 -2
- package/development/option/optgroup/optgroup.component.js +37 -40
- package/development/option/optgroup.js +6 -7
- package/development/option/option/option-base-element.js +276 -349
- package/development/option/option/option.component.js +241 -2
- package/development/option/option-hint/option-hint.component.js +44 -2
- package/development/option/option-hint.js +5 -7
- package/development/option/option.js +6 -7
- package/development/option.js +11 -10
- package/development/option.pure.js +11 -4
- package/development/overlay/overlay-base-element.js +247 -238
- package/development/overlay/overlay.component.js +374 -2
- package/development/overlay.js +9 -8
- package/development/overlay.pure.js +9 -2
- package/development/paginator/common/paginator-common.js +272 -376
- package/development/paginator/common.js +4 -5
- package/development/paginator/compact-paginator/compact-paginator.component.js +87 -2
- package/development/paginator/compact-paginator.js +5 -7
- package/development/paginator/paginator/paginator.component.js +444 -2
- package/development/paginator/paginator.js +5 -7
- package/development/paginator.js +8 -9
- package/development/paginator.pure.js +8 -3
- package/development/popover/popover.component.js +718 -2
- package/development/popover.js +7 -8
- package/development/popover.pure.js +6 -2
- package/development/radio-button/common/radio-button-common.js +203 -2
- package/development/radio-button/common.js +6 -6
- package/development/radio-button/radio-button-group.js +1 -5
- package/development/radio-button/radio-button-panel.js +1 -5
- package/development/radio-button/radio-button.component.js +97 -3
- package/development/radio-button/radio-button.js +5 -8
- package/development/radio-button-group/radio-button-group.component.js +308 -2
- package/development/radio-button-group.js +5 -8
- package/development/radio-button-group.pure.js +5 -2
- package/development/radio-button-panel/radio-button-panel.component.js +82 -106
- package/development/radio-button-panel.js +4 -7
- package/development/radio-button-panel.pure.js +4 -1
- package/development/radio-button.js +11 -12
- package/development/radio-button.pure.js +8 -3
- package/development/sbb-tokens-DQT_xEIZ.js +19 -0
- package/development/screen-reader-only/screen-reader-only.component.js +25 -2
- package/development/screen-reader-only.js +5 -8
- package/development/screen-reader-only.pure.js +5 -2
- package/development/select/select.component.js +1087 -2
- package/development/select.js +5 -8
- package/development/select.pure.js +5 -2
- package/development/selection-action-panel/selection-action-panel.component.js +125 -2
- package/development/selection-action-panel.js +5 -8
- package/development/selection-action-panel.pure.js +5 -2
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +306 -2
- package/development/selection-expansion-panel.js +5 -8
- package/development/selection-expansion-panel.pure.js +5 -2
- package/development/sidebar/common/styles.js +7 -2
- package/development/sidebar/common.js +7 -6
- package/development/sidebar/sidebar/sidebar.component.js +473 -2
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +36 -2
- package/development/sidebar/sidebar-close-button.js +5 -7
- package/development/sidebar/sidebar-container/sidebar-container.component.js +147 -2
- package/development/sidebar/sidebar-container.js +5 -7
- package/development/sidebar/sidebar-content/sidebar-content.component.js +25 -2
- package/development/sidebar/sidebar-content.js +5 -7
- package/development/sidebar/sidebar-title/sidebar-title.component.js +53 -2
- package/development/sidebar/sidebar-title.js +5 -7
- package/development/sidebar/sidebar.js +5 -7
- package/development/sidebar.js +13 -12
- package/development/sidebar.pure.js +13 -6
- package/development/signet/signet.component.js +151 -2
- package/development/signet.js +5 -8
- package/development/signet.pure.js +5 -2
- package/development/skiplink-list/skiplink-list.component.js +160 -2
- package/development/skiplink-list.js +5 -8
- package/development/skiplink-list.pure.js +5 -2
- package/development/slider/slider.component.js +399 -2
- package/development/slider.js +5 -8
- package/development/slider.pure.js +5 -2
- package/development/status/status.component.js +144 -2
- package/development/status.js +5 -8
- package/development/status.pure.js +5 -2
- package/development/stepper/step/step.component.js +216 -2
- package/development/stepper/step-label/step-label.component.js +298 -2
- package/development/stepper/step-label.js +5 -7
- package/development/stepper/step.js +5 -7
- package/development/stepper/stepper/stepper.component.js +465 -2
- package/development/stepper/stepper.js +7 -7
- package/development/stepper.js +11 -10
- package/development/stepper.pure.js +10 -4
- package/development/tab-label-common-Mfl36Rsa.js +171 -0
- package/development/table/table-wrapper/table-wrapper.component.js +120 -2
- package/development/table/table-wrapper.js +5 -7
- package/development/table.js +5 -8
- package/development/table.pure.js +5 -2
- package/development/tabs/common/styles.js +6 -2
- package/development/tabs/common.js +6 -6
- package/development/tabs/tab/tab.component.js +87 -2
- package/development/tabs/tab-group/tab-group.component.js +236 -2
- package/development/tabs/tab-group.js +5 -7
- package/development/tabs/tab-label/tab-label.component.js +369 -2
- package/development/tabs/tab-label.js +5 -7
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +99 -2
- package/development/tabs/tab-nav-bar.js +5 -7
- package/development/tabs/tab.js +5 -7
- package/development/tabs.js +14 -12
- package/development/tabs.pure.js +14 -6
- package/development/tag/tag/tag.component.js +351 -2
- package/development/tag/tag-group/tag-group.component.js +179 -2
- package/development/tag/tag-group.js +5 -7
- package/development/tag/tag.js +5 -7
- package/development/tag.js +7 -9
- package/development/tag.pure.js +7 -3
- package/development/teaser/teaser.component.js +224 -2
- package/development/teaser-hero/teaser-hero.component.js +172 -2
- package/development/teaser-hero.js +5 -8
- package/development/teaser-hero.pure.js +5 -2
- package/development/teaser-product/common/teaser-product-common.js +210 -2
- package/development/teaser-product/common.js +6 -6
- package/development/teaser-product/teaser-product/teaser-product.component.js +63 -2
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +8 -21
- package/development/teaser-product/teaser-product-static.js +4 -6
- package/development/teaser-product/teaser-product.js +5 -7
- package/development/teaser-product.js +9 -9
- package/development/teaser-product.pure.js +9 -3
- package/development/teaser.js +5 -8
- package/development/teaser.pure.js +5 -2
- package/development/time-input/time-input.component.js +213 -2
- package/development/time-input.js +5 -8
- package/development/time-input.pure.js +5 -2
- package/development/timetable-form/timetable-form/timetable-form.component.js +22 -2
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +39 -2
- package/development/timetable-form/timetable-form-details.js +5 -7
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +112 -2
- package/development/timetable-form/timetable-form-field.js +5 -7
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +63 -2
- package/development/timetable-form/timetable-form-swap-button.js +5 -7
- package/development/timetable-form/timetable-form.js +5 -7
- package/development/timetable-form.js +11 -11
- package/development/timetable-form.pure.js +11 -5
- package/development/timetable-occupancy/timetable-occupancy.component.js +140 -2
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +89 -2
- package/development/timetable-occupancy-icon.js +5 -8
- package/development/timetable-occupancy-icon.pure.js +5 -2
- package/development/timetable-occupancy.js +5 -8
- package/development/timetable-occupancy.pure.js +5 -2
- package/development/title/title-base.js +109 -2
- package/development/title/title.component.js +89 -3
- package/development/title.js +7 -9
- package/development/title.pure.js +7 -3
- package/development/toast/toast.component.js +401 -2
- package/development/toast.js +5 -8
- package/development/toast.pure.js +5 -2
- package/development/toggle/toggle/toggle.component.js +331 -2
- package/development/toggle/toggle-option/toggle-option.component.js +179 -2
- package/development/toggle/toggle-option.js +5 -7
- package/development/toggle/toggle.js +5 -7
- package/development/toggle-check/toggle-check.component.js +274 -2
- package/development/toggle-check.js +5 -8
- package/development/toggle-check.pure.js +5 -2
- package/development/toggle.js +7 -9
- package/development/toggle.pure.js +7 -3
- package/development/tooltip/tooltip.component.js +440 -2
- package/development/tooltip.js +5 -8
- package/development/tooltip.pure.js +5 -2
- package/development/train/train/train.component.js +229 -2
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +70 -2
- package/development/train/train-blocked-passage.js +5 -7
- package/development/train/train-formation/train-formation.component.js +274 -2
- package/development/train/train-formation.js +5 -7
- package/development/train/train-wagon/train-wagon.component.js +387 -2
- package/development/train/train-wagon.js +5 -7
- package/development/train/train.js +5 -7
- package/development/train.js +11 -11
- package/development/train.pure.js +11 -5
- package/development/visual-checkbox/visual-checkbox.component.js +164 -2
- package/development/visual-checkbox.js +5 -8
- package/development/visual-checkbox.pure.js +5 -2
- package/dialog/dialog/dialog.component.js +148 -2
- package/dialog/dialog-actions/dialog-actions.component.js +13 -2
- package/dialog/dialog-actions.js +7 -4
- package/dialog/dialog-close-button/dialog-close-button.component.js +23 -2
- package/dialog/dialog-close-button.js +7 -4
- package/dialog/dialog-content/dialog-content.component.js +15 -2
- package/dialog/dialog-content.js +7 -4
- package/dialog/dialog-title/dialog-title.component.js +13 -2
- package/dialog/dialog-title.js +7 -4
- package/dialog/dialog.js +10 -4
- package/dialog.js +20 -9
- package/dialog.pure.js +15 -6
- package/divider/divider.component.js +44 -2
- package/divider.js +4 -5
- package/divider.pure.js +4 -2
- package/expansion-panel/expansion-panel/expansion-panel.component.js +156 -2
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +24 -2
- package/expansion-panel/expansion-panel-content.js +7 -4
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +57 -2
- package/expansion-panel/expansion-panel-header.js +7 -4
- package/expansion-panel/expansion-panel.js +7 -4
- package/expansion-panel.js +11 -7
- package/expansion-panel.pure.js +8 -4
- package/file-selector/common/file-selector-common.js +245 -2
- package/file-selector/common.js +7 -5
- package/file-selector/file-selector/file-selector.component.js +20 -25
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +75 -2
- package/file-selector/file-selector-dropzone.js +7 -4
- package/file-selector/file-selector.js +6 -3
- package/file-selector.js +11 -7
- package/file-selector.pure.js +9 -4
- package/flip-card/flip-card/flip-card.component.js +120 -2
- package/flip-card/flip-card-details/flip-card-details.component.js +36 -2
- package/flip-card/flip-card-details.js +7 -4
- package/flip-card/flip-card-summary/flip-card-summary.component.js +48 -2
- package/flip-card/flip-card-summary.js +7 -4
- package/flip-card/flip-card.js +7 -4
- package/flip-card.js +11 -7
- package/flip-card.pure.js +8 -4
- package/footer/footer.component.js +89 -2
- package/footer.js +4 -5
- package/footer.pure.js +4 -2
- package/form-field/error/error.component.js +42 -2
- package/form-field/error.js +7 -4
- package/form-field/form-field/form-field.component.js +344 -2
- package/form-field/form-field-clear/form-field-clear.component.js +28 -35
- package/form-field/form-field-clear.js +6 -3
- package/form-field/form-field.js +9 -4
- package/form-field.js +13 -7
- package/form-field.pure.js +9 -4
- package/header/common/header-action-common.js +51 -2
- package/header/common.js +6 -5
- package/header/header/header.component.js +154 -2
- package/header/header-button/header-button.component.js +8 -9
- package/header/header-button.js +6 -3
- package/header/header-environment/header-environment.component.js +29 -2
- package/header/header-environment.js +7 -4
- package/header/header-link/header-link.component.js +8 -9
- package/header/header-link.js +6 -3
- package/header/header.js +7 -4
- package/header.js +16 -9
- package/header.pure.js +12 -6
- package/icon/icon-base.js +105 -2
- package/icon/icon-name-mixin.js +50 -59
- package/icon/icon-request.js +29 -23
- package/icon/icon-validate.js +25 -19
- package/icon/icon.component.js +76 -88
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +46 -2
- package/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +15 -19
- package/icon-sidebar/icon-sidebar-button.js +6 -3
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +25 -2
- package/icon-sidebar/icon-sidebar-container.js +7 -4
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +16 -2
- package/icon-sidebar/icon-sidebar-content.js +7 -4
- package/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +15 -19
- package/icon-sidebar/icon-sidebar-link.js +6 -3
- package/icon-sidebar/icon-sidebar.js +7 -4
- package/icon-sidebar-button-common-ffAscVDk.js +7 -0
- package/icon-sidebar.js +16 -8
- package/icon-sidebar.pure.js +12 -6
- package/icon.js +14 -10
- package/icon.pure.js +13 -6
- package/image/image.component.js +455 -2
- package/image.js +4 -5
- package/image.pure.js +4 -2
- package/journey-header/journey-header.component.js +95 -2
- package/journey-header.js +4 -5
- package/journey-header.pure.js +4 -2
- package/lead-container/lead-container.component.js +23 -2
- package/lead-container.js +4 -5
- package/lead-container.pure.js +4 -2
- package/link/block-link/block-link.component.js +8 -9
- package/link/block-link-button/block-link-button.component.js +9 -10
- package/link/block-link-button.js +6 -6
- package/link/block-link-static/block-link-static.component.js +9 -10
- package/link/block-link-static.js +4 -4
- package/link/block-link.js +6 -6
- package/link/common/block-link-common.js +44 -3
- package/link/common/inline-link-common.js +13 -3
- package/link/common/link-common.js +9 -2
- package/link/common.js +8 -4
- package/link/link/link.component.js +9 -10
- package/link/link-button/link-button.component.js +9 -10
- package/link/link-button.js +4 -4
- package/link/link-static/link-static.component.js +9 -10
- package/link/link-static.js +4 -4
- package/link/link.js +6 -6
- package/link-common-7IiqjmPD.js +45 -0
- package/link-list/common/link-list-base.js +90 -2
- package/link-list/common.js +7 -5
- package/link-list/link-list-anchor.js +8 -6
- package/link-list/link-list.component.js +47 -3
- package/link-list/link-list.js +7 -5
- package/link-list-anchor/link-list-anchor.component.js +10 -2
- package/link-list-anchor.js +4 -5
- package/link-list-anchor.pure.js +4 -2
- package/link-list.js +10 -8
- package/link-list.pure.js +7 -3
- package/link.js +25 -12
- package/link.pure.js +20 -11
- package/loading-indicator/loading-indicator.component.js +65 -2
- package/loading-indicator-circle/loading-indicator-circle.component.js +45 -2
- package/loading-indicator-circle.js +4 -5
- package/loading-indicator-circle.pure.js +4 -2
- package/loading-indicator.js +4 -5
- package/loading-indicator.pure.js +4 -2
- package/logo/logo.component.js +67 -2
- package/logo.js +4 -5
- package/logo.pure.js +4 -2
- package/map-container/map-container.component.js +110 -2
- package/map-container.js +4 -5
- package/map-container.pure.js +4 -2
- package/menu/common/menu-action-common.js +28 -2
- package/menu/common.js +6 -5
- package/menu/menu/menu.component.js +274 -2
- package/menu/menu-button/menu-button.component.js +9 -13
- package/menu/menu-button.js +6 -3
- package/menu/menu-link/menu-link.component.js +12 -13
- package/menu/menu-link.js +6 -3
- package/menu/menu.js +7 -4
- package/menu.js +12 -7
- package/menu.pure.js +10 -5
- package/message/message.component.js +23 -2
- package/message.js +4 -5
- package/message.pure.js +4 -2
- package/mini-button-label-common-Dx9JhmQ6.js +11 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +131 -2
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +66 -2
- package/mini-calendar/mini-calendar-day.js +7 -4
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +63 -2
- package/mini-calendar/mini-calendar-month.js +7 -4
- package/mini-calendar/mini-calendar.js +7 -4
- package/mini-calendar.js +11 -7
- package/mini-calendar.pure.js +8 -4
- package/navigation/common/navigation-action-common.js +57 -2
- package/navigation/common.js +6 -5
- package/navigation/navigation/navigation.component.js +188 -2
- package/navigation/navigation-button/navigation-button.component.js +8 -9
- package/navigation/navigation-button.js +6 -3
- package/navigation/navigation-link/navigation-link.component.js +8 -9
- package/navigation/navigation-link.js +6 -3
- package/navigation/navigation-list/navigation-list.component.js +59 -2
- package/navigation/navigation-list.js +7 -4
- package/navigation/navigation-marker/navigation-marker.component.js +82 -2
- package/navigation/navigation-marker.js +7 -4
- package/navigation/navigation-section/navigation-section.component.js +224 -2
- package/navigation/navigation-section.js +7 -4
- package/navigation/navigation.js +7 -4
- package/navigation.js +22 -11
- package/navigation.pure.js +16 -8
- package/notification/notification.component.js +165 -2
- package/notification.js +4 -5
- package/notification.pure.js +4 -2
- package/off-brand-theme.css +14 -0
- package/option/optgroup/optgroup-base-element.js +83 -2
- package/option/optgroup/optgroup.component.js +30 -29
- package/option/optgroup.js +9 -5
- package/option/option/option-base-element.js +201 -257
- package/option/option/option.component.js +87 -2
- package/option/option-hint/option-hint.component.js +19 -2
- package/option/option-hint.js +7 -4
- package/option/option.js +9 -5
- package/option.js +15 -9
- package/option.pure.js +12 -6
- package/overlay/overlay-base-element.js +149 -154
- package/overlay/overlay.component.js +138 -2
- package/overlay.js +10 -7
- package/overlay.pure.js +9 -3
- package/package.json +2 -2
- package/paginator/common/paginator-common.js +201 -268
- package/paginator/common.js +6 -5
- package/paginator/compact-paginator/compact-paginator.component.js +40 -2
- package/paginator/compact-paginator.js +7 -4
- package/paginator/paginator/paginator.component.js +175 -2
- package/paginator/paginator.js +7 -4
- package/paginator.js +10 -7
- package/paginator.pure.js +7 -3
- package/popover/popover.component.js +316 -2
- package/popover.js +6 -5
- package/popover.pure.js +5 -2
- package/radio-button/common/radio-button-common.js +63 -2
- package/radio-button/common.js +7 -5
- package/radio-button/radio-button-group.js +3 -2
- package/radio-button/radio-button-panel.js +3 -2
- package/radio-button/radio-button.component.js +71 -3
- package/radio-button/radio-button.js +7 -5
- package/radio-button-group/radio-button-group.component.js +167 -2
- package/radio-button-group.js +5 -6
- package/radio-button-group.pure.js +4 -2
- package/radio-button-panel/radio-button-panel.component.js +68 -78
- package/radio-button-panel.js +3 -4
- package/radio-button-panel.pure.js +4 -2
- package/radio-button.js +13 -9
- package/radio-button.pure.js +7 -3
- package/safety-theme.css +14 -0
- package/sbb-tokens-HiNSQasB.js +11 -0
- package/screen-reader-only/screen-reader-only.component.js +12 -2
- package/screen-reader-only.js +4 -5
- package/screen-reader-only.pure.js +4 -2
- package/select/select.component.js +498 -2
- package/select.js +4 -5
- package/select.pure.js +4 -2
- package/selection-action-panel/selection-action-panel.component.js +33 -2
- package/selection-action-panel.js +4 -5
- package/selection-action-panel.pure.js +4 -2
- package/selection-expansion-panel/selection-expansion-panel.component.js +116 -2
- package/selection-expansion-panel.js +4 -5
- package/selection-expansion-panel.pure.js +4 -2
- package/sidebar/common/styles.js +6 -2
- package/sidebar/common.js +8 -5
- package/sidebar/sidebar/sidebar.component.js +182 -2
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +26 -2
- package/sidebar/sidebar-close-button.js +7 -4
- package/sidebar/sidebar-container/sidebar-container.component.js +76 -2
- package/sidebar/sidebar-container.js +7 -4
- package/sidebar/sidebar-content/sidebar-content.component.js +16 -2
- package/sidebar/sidebar-content.js +7 -4
- package/sidebar/sidebar-title/sidebar-title.component.js +39 -2
- package/sidebar/sidebar-title.js +7 -4
- package/sidebar/sidebar.js +7 -4
- package/sidebar.js +17 -9
- package/sidebar.pure.js +12 -6
- package/signet/signet.component.js +74 -2
- package/signet.js +4 -5
- package/signet.pure.js +4 -2
- package/skiplink-list/skiplink-list.component.js +77 -2
- package/skiplink-list.js +4 -5
- package/skiplink-list.pure.js +4 -2
- package/slider/slider.component.js +200 -2
- package/slider.js +4 -5
- package/slider.pure.js +4 -2
- package/standard-theme.css +14 -0
- package/status/status.component.js +69 -2
- package/status.js +4 -5
- package/status.pure.js +4 -2
- package/stepper/step/step.component.js +111 -2
- package/stepper/step-label/step-label.component.js +96 -2
- package/stepper/step-label.js +7 -4
- package/stepper/step.js +7 -4
- package/stepper/stepper/stepper.component.js +236 -2
- package/stepper/stepper.js +9 -4
- package/stepper.js +13 -7
- package/stepper.pure.js +9 -4
- package/tab-label-common-D6k40yRU.js +6 -0
- package/table/table-wrapper/table-wrapper.component.js +70 -2
- package/table/table-wrapper.js +7 -4
- package/table.js +4 -5
- package/table.pure.js +4 -2
- package/tabs/common/styles.js +5 -2
- package/tabs/common.js +7 -5
- package/tabs/tab/tab.component.js +46 -2
- package/tabs/tab-group/tab-group.component.js +167 -2
- package/tabs/tab-group.js +7 -4
- package/tabs/tab-label/tab-label.component.js +128 -2
- package/tabs/tab-label.js +7 -4
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +67 -2
- package/tabs/tab-nav-bar.js +7 -4
- package/tabs/tab.js +7 -4
- package/tabs.js +17 -9
- package/tabs.pure.js +13 -6
- package/tag/tag/tag.component.js +128 -2
- package/tag/tag-group/tag-group.component.js +119 -2
- package/tag/tag-group.js +7 -4
- package/tag/tag.js +7 -4
- package/tag.js +8 -6
- package/tag.pure.js +6 -3
- package/teaser/teaser.component.js +80 -2
- package/teaser-hero/teaser-hero.component.js +62 -2
- package/teaser-hero.js +4 -5
- package/teaser-hero.pure.js +4 -2
- package/teaser-product/common/teaser-product-common.js +54 -2
- package/teaser-product/common.js +7 -5
- package/teaser-product/teaser-product/teaser-product.component.js +28 -2
- package/teaser-product/teaser-product-static/teaser-product-static.component.js +9 -13
- package/teaser-product/teaser-product-static.js +6 -3
- package/teaser-product/teaser-product.js +7 -4
- package/teaser-product.js +11 -7
- package/teaser-product.pure.js +9 -4
- package/teaser.js +4 -5
- package/teaser.pure.js +4 -2
- package/time-input/time-input.component.js +128 -2
- package/time-input.js +4 -5
- package/time-input.pure.js +4 -2
- package/timetable-form/timetable-form/timetable-form.component.js +12 -2
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +12 -2
- package/timetable-form/timetable-form-details.js +7 -4
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +26 -2
- package/timetable-form/timetable-form-field.js +7 -4
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +33 -2
- package/timetable-form/timetable-form-swap-button.js +7 -4
- package/timetable-form/timetable-form.js +7 -4
- package/timetable-form.js +14 -8
- package/timetable-form.pure.js +10 -5
- package/timetable-occupancy/timetable-occupancy.component.js +77 -2
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +61 -2
- package/timetable-occupancy-icon.js +4 -5
- package/timetable-occupancy-icon.pure.js +4 -2
- package/timetable-occupancy.js +4 -5
- package/timetable-occupancy.pure.js +4 -2
- package/title/title-base.js +53 -2
- package/title/title.component.js +37 -3
- package/title.js +7 -7
- package/title.pure.js +6 -3
- package/toast/toast.component.js +180 -2
- package/toast.js +4 -5
- package/toast.pure.js +4 -2
- package/toggle/toggle/toggle.component.js +147 -2
- package/toggle/toggle-option/toggle-option.component.js +90 -2
- package/toggle/toggle-option.js +7 -4
- package/toggle/toggle.js +7 -4
- package/toggle-check/toggle-check.component.js +85 -2
- package/toggle-check.js +4 -5
- package/toggle-check.pure.js +4 -2
- package/toggle.js +8 -6
- package/toggle.pure.js +6 -3
- package/tooltip/tooltip.component.js +197 -2
- package/tooltip.js +4 -5
- package/tooltip.pure.js +4 -2
- package/train/train/train.component.js +123 -2
- package/train/train-blocked-passage/train-blocked-passage.component.js +19 -2
- package/train/train-blocked-passage.js +7 -4
- package/train/train-formation/train-formation.component.js +93 -2
- package/train/train-formation.js +7 -4
- package/train/train-wagon/train-wagon.component.js +174 -2
- package/train/train-wagon.js +7 -4
- package/train/train.js +7 -4
- package/train.js +14 -8
- package/train.pure.js +10 -5
- package/visual-checkbox/visual-checkbox.component.js +81 -2
- package/visual-checkbox.js +4 -5
- package/visual-checkbox.pure.js +4 -2
- package/accordion.component-DmaGQH3Q.js +0 -127
- package/action-group.component-KWugkMGf.js +0 -158
- package/alert-group.component-RV1M1OKy.js +0 -141
- package/alert.component-PPR7hfTi.js +0 -165
- package/autocomplete-base-element-DVFCZ4lt.js +0 -425
- package/block-link-common-D4aizuV-.js +0 -63
- package/breadcrumb-group.component-BA8KK3Om.js +0 -145
- package/breadcrumb.component-DjkZzGJD.js +0 -24
- package/calendar-day.component-DqAXvoP3.js +0 -113
- package/calendar.component-BgZDy-rX.js +0 -1246
- package/card-action-common-GpkaNYtV.js +0 -88
- package/card-badge.component-D_PI9Ega.js +0 -65
- package/card.component-Dt2YFmd3.js +0 -62
- package/carousel-item.component-kv3rY8B-.js +0 -25
- package/carousel-list.component-DMMk66SP.js +0 -91
- package/carousel.component-Bd0iGUbf.js +0 -97
- package/checkbox-common-D9htxWLZ.js +0 -68
- package/checkbox-group.component-CNAwwaS0.js +0 -146
- package/checkbox.component-CJcC5JnN.js +0 -125
- package/chip-group.component-DR6GoGCB.js +0 -283
- package/chip-label.component-DBN4jfW7.js +0 -80
- package/chip.component-BNOs8T6O.js +0 -94
- package/clock.component-DDaWbXHW.js +0 -148
- package/common-CI_BB6sF.js +0 -5
- package/compact-paginator.component-BxSy5YXY.js +0 -45
- package/container.component-DXFIvseq.js +0 -117
- package/date-input.component-zZtnd9Og.js +0 -205
- package/datepicker-button-C1TrzFl-.js +0 -109
- package/datepicker.component-cmdnlVgf.js +0 -156
- package/development/accordion.component-BIFcgIa0.js +0 -172
- package/development/action-group.component-CuhO6yb9.js +0 -379
- package/development/alert-group.component-BlrlsRB8.js +0 -219
- package/development/alert.component-CJ2yLyOY.js +0 -411
- package/development/autocomplete-base-element-DCfmuVY6.js +0 -960
- package/development/block-link-common-FvD8So7p.js +0 -145
- package/development/breadcrumb-group.component-DjsoMTPI.js +0 -278
- package/development/breadcrumb.component-DvOf-PiO.js +0 -89
- package/development/calendar-day.component-De9Xn3-q.js +0 -283
- package/development/calendar.component-PHpgLc0z.js +0 -2458
- package/development/card-action-common-DqBn3bPy.js +0 -147
- package/development/card-badge.component-Cs4dow18.js +0 -146
- package/development/card.component-CeOZXXWU.js +0 -258
- package/development/carousel-item.component-DOIXA2QK.js +0 -47
- package/development/carousel-list.component-7Z3dYtAF.js +0 -160
- package/development/carousel.component-b4C-hxkj.js +0 -169
- package/development/checkbox-common-DD7r8g0_.js +0 -147
- package/development/checkbox-group.component-CRZO7CEc.js +0 -265
- package/development/checkbox.component-B43Akyck.js +0 -193
- package/development/chip-group.component-CeRAIWg-.js +0 -493
- package/development/chip-label.component-jN_Fulv_.js +0 -165
- package/development/chip.component-Bn7ffNEr.js +0 -191
- package/development/clock.component-btjeVAaa.js +0 -392
- package/development/common-Da_cep8M.js +0 -565
- package/development/compact-paginator.component-CCDP0TMd.js +0 -96
- package/development/container.component-CVm8-HZ4.js +0 -238
- package/development/date-input.component-CqsEOZfb.js +0 -338
- package/development/datepicker-button-BORzfDaA.js +0 -167
- package/development/datepicker.component-CuFtPZg9.js +0 -223
- package/development/dialog-actions.component-Mbx-Bs3t.js +0 -55
- package/development/dialog-close-button.component-B1dPHPy2.js +0 -48
- package/development/dialog-content.component-qP09Yo_N.js +0 -42
- package/development/dialog-title.component-B4u2w8h5.js +0 -50
- package/development/dialog.component-DaM1FSHB.js +0 -403
- package/development/divider.component-Ddzlu6Fw.js +0 -95
- package/development/error.component-C76eZnXo.js +0 -93
- package/development/expansion-panel-content.component-DTZk3ZKL.js +0 -77
- package/development/expansion-panel-header.component-C7ymZCux.js +0 -175
- package/development/expansion-panel.component-xUWTKeaC.js +0 -489
- package/development/file-selector-common-qMfAccOd.js +0 -512
- package/development/file-selector-dropzone.component-HDUIUSQI.js +0 -154
- package/development/flip-card-details.component-BilGh5Yb.js +0 -85
- package/development/flip-card-summary.component-DDDnvs_c.js +0 -151
- package/development/flip-card.component-CdRzb7IT.js +0 -334
- package/development/footer.component-C057PwF1.js +0 -310
- package/development/form-field.component-D4dQ8sCh.js +0 -1009
- package/development/header-action-common-Dff8K0RB.js +0 -346
- package/development/header-environment.component-DYnJkxCZ.js +0 -101
- package/development/header.component-DYls7wGO.js +0 -446
- package/development/icon-base-CcQCgmqX.js +0 -206
- package/development/icon-sidebar-container.component-BJHjpF-Q.js +0 -41
- package/development/icon-sidebar-content.component-C2wreczL.js +0 -33
- package/development/icon-sidebar.component-PcmjRlDp.js +0 -100
- package/development/image.component-fvsSR3Df.js +0 -820
- package/development/inline-link-common-CyTcO5MN.js +0 -52
- package/development/journey-header.component-BB8WYOqH.js +0 -217
- package/development/lead-container.component-BGf8oqw7.js +0 -122
- package/development/link-common-5ob2nFyv.js +0 -124
- package/development/link-list-anchor.component-rAMp5_jH.js +0 -77
- package/development/link-list-base-DxYNcAX7.js +0 -172
- package/development/link-list.component-DD6UjlwD.js +0 -194
- package/development/loading-indicator-circle.component-C0epUACB.js +0 -159
- package/development/loading-indicator.component-CVdBjI99.js +0 -283
- package/development/logo.component-Cp-EyVpA.js +0 -166
- package/development/map-container.component-DUA7-arY.js +0 -324
- package/development/menu-action-common-CyBv0NwR.js +0 -148
- package/development/menu.component-GHJHhE9D.js +0 -638
- package/development/message.component-uv9eI2gl.js +0 -82
- package/development/mini-button-group.component-ytJZBjmr.js +0 -174
- package/development/mini-button-link.component-DZOOdeZt.js +0 -47
- package/development/mini-calendar-day.component-DLP7Pa6R.js +0 -213
- package/development/mini-calendar-month.component-C1jsGlJ2.js +0 -150
- package/development/mini-calendar.component-BzqjMchx.js +0 -192
- package/development/navigation-action-common-saGbvoji.js +0 -178
- package/development/navigation-list.component-AFM4omXQ.js +0 -124
- package/development/navigation-marker.component-BvC73IoI.js +0 -207
- package/development/navigation-section.component-B-6XU2X5.js +0 -600
- package/development/navigation.component-_gUhpPyO.js +0 -585
- package/development/notification.component-B5EBKKf8.js +0 -530
- package/development/optgroup-base-element-CjwAXrC5.js +0 -181
- package/development/option-hint.component-CHS5Z_sK.js +0 -55
- package/development/option.component-BvOsW8Gn.js +0 -248
- package/development/overlay.component-RS_v3xaA.js +0 -411
- package/development/paginator.component-cRqJW9bc.js +0 -492
- package/development/popover.component-BTfbUEzF.js +0 -745
- package/development/radio-button-common-CjbP9yKf.js +0 -231
- package/development/radio-button-group.component-5jDkRqSJ.js +0 -404
- package/development/radio-button.component-CVATlwTb.js +0 -137
- package/development/sbb-tokens-Dajio3u-.js +0 -13
- package/development/screen-reader-only.component-D-KOAjrF.js +0 -36
- package/development/select.component-DyF5Tw3J.js +0 -1084
- package/development/selection-action-panel.component-elyz1Xsb.js +0 -134
- package/development/selection-expansion-panel.component-hL2jyaAT.js +0 -326
- package/development/sidebar-close-button.component-j4wY_hAt.js +0 -48
- package/development/sidebar-container.component-CToGMqKH.js +0 -136
- package/development/sidebar-content.component-s3GsQtNv.js +0 -37
- package/development/sidebar-title.component-Htm_hqKX.js +0 -76
- package/development/sidebar.component-Ct6TAsph.js +0 -506
- package/development/signet.component-COqrcZqk.js +0 -188
- package/development/skiplink-list.component-_SDkIoHp.js +0 -198
- package/development/slider.component-B7EFECZk.js +0 -479
- package/development/status.component-CE3e9OIO.js +0 -171
- package/development/step-label.component-BH28AI5Z.js +0 -298
- package/development/step.component-WY7qdrR8.js +0 -220
- package/development/stepper.component-D1tAcpWs.js +0 -508
- package/development/sticky-bar.component-BlgfxSRo.js +0 -382
- package/development/styles-CIZBf9Yc.js +0 -173
- package/development/styles-CYlzu-f2.js +0 -96
- package/development/tab-group.component-DZPKWjI7.js +0 -292
- package/development/tab-label.component-BJgr4u6Z.js +0 -420
- package/development/tab-nav-bar.component-rNmuMIsv.js +0 -123
- package/development/tab.component-C8jaB2_O.js +0 -101
- package/development/table-wrapper.component-6WtB_fHq.js +0 -133
- package/development/tag-group.component-C-EXr8Rq.js +0 -219
- package/development/tag.component-B7RY4cfx.js +0 -419
- package/development/teaser-hero.component-5vVIZZ9L.js +0 -202
- package/development/teaser-product-common-DgnRgO6O.js +0 -223
- package/development/teaser-product.component-BsdU2W2T.js +0 -75
- package/development/teaser.component-KRkFbP9-.js +0 -243
- package/development/time-input.component-Cf6cXrIN.js +0 -222
- package/development/timetable-form-details.component-B--aGycf.js +0 -50
- package/development/timetable-form-field.component-9jwIZzIm.js +0 -119
- package/development/timetable-form-swap-button.component-Ne1-XwSf.js +0 -74
- package/development/timetable-form.component-BYHhDRXE.js +0 -34
- package/development/timetable-occupancy-icon.component-BbW73Fqd.js +0 -101
- package/development/timetable-occupancy.component-C3nWG5Vg.js +0 -172
- package/development/title-base-BUQgNaUI.js +0 -142
- package/development/title.component-DgFvxLIt.js +0 -115
- package/development/toast.component-Csifrfnq.js +0 -430
- package/development/toggle-check.component-CEYmGCDZ.js +0 -326
- package/development/toggle-option.component--wHdeFI6.js +0 -216
- package/development/toggle.component-CGNDEU9B.js +0 -367
- package/development/tooltip.component-bVPXm6Pu.js +0 -480
- package/development/train-blocked-passage.component-CYnTeq7k.js +0 -79
- package/development/train-formation.component-QmoA0u6E.js +0 -303
- package/development/train-wagon.component-CWlRDq-Z.js +0 -485
- package/development/train.component-DcMyi7HP.js +0 -294
- package/development/visual-checkbox.component-DtEIq9rH.js +0 -213
- package/dialog-actions.component-B4JYi2Ym.js +0 -17
- package/dialog-close-button.component-BtxXASCn.js +0 -27
- package/dialog-content.component-CNhoC-NZ.js +0 -19
- package/dialog-title.component-C8Jsbuqt.js +0 -17
- package/dialog.component-BHsekf9B.js +0 -170
- package/divider.component-DFw-P_dA.js +0 -61
- package/error.component-DL9hm4i9.js +0 -44
- package/expansion-panel-content.component-CbWIxgH4.js +0 -29
- package/expansion-panel-header.component-CxLeXeGi.js +0 -56
- package/expansion-panel.component-Bs4icI9T.js +0 -226
- package/file-selector-common-C-gZH55c.js +0 -313
- package/file-selector-dropzone.component-LHNtOZPr.js +0 -94
- package/flip-card-details.component-CiiCNjd2.js +0 -45
- package/flip-card-summary.component-nO7zKRiB.js +0 -65
- package/flip-card.component-uSdokrC9.js +0 -138
- package/footer.component-Cdsiwn4D.js +0 -129
- package/form-field.component-CZzQYOSP.js +0 -447
- package/header-action-common-C2YPvOxq.js +0 -62
- package/header-environment.component-KqUmsOPQ.js +0 -36
- package/header.component-BssLZ6b7.js +0 -203
- package/icon-base-BYJzaEDb.js +0 -127
- package/icon-sidebar-container.component-BcoT4uhN.js +0 -26
- package/icon-sidebar-content.component-toRpXgxi.js +0 -20
- package/icon-sidebar.component-B5xCvDvj.js +0 -62
- package/image.component-Cq2t-XZu.js +0 -413
- package/inline-link-common-Dgdi7qpI.js +0 -18
- package/journey-header.component-CR8AO0b2.js +0 -143
- package/lead-container.component-CXKHfBiS.js +0 -27
- package/link-common-CYxyP4XZ.js +0 -52
- package/link-list-anchor.component--u5j_aqv.js +0 -18
- package/link-list-base-CzFYpTOG.js +0 -115
- package/link-list.component-9ndHNGPS.js +0 -78
- package/loading-indicator-circle.component-CjJkIeJ0.js +0 -64
- package/loading-indicator.component-BrVz6vJo.js +0 -94
- package/logo.component-nxragzaC.js +0 -94
- package/map-container.component-BfxezELq.js +0 -130
- package/menu-action-common-BcB_Tyvl.js +0 -29
- package/menu.component-BdqUbvww.js +0 -252
- package/message.component-DbmXg6DI.js +0 -27
- package/mini-button-group.component-D5Dph1Z7.js +0 -89
- package/mini-button-link.component-BYK_EUud.js +0 -31
- package/mini-calendar-day.component-cAawa9Gr.js +0 -106
- package/mini-calendar-month.component-DiYSVb-Y.js +0 -74
- package/mini-calendar.component-DpPMb47Y.js +0 -144
- package/navigation-action-common-Dcb95pqU.js +0 -64
- package/navigation-list.component-BhV-uAfU.js +0 -71
- package/navigation-marker.component-CIUu5VVZ.js +0 -88
- package/navigation-section.component-DwEXj603.js +0 -237
- package/navigation.component-BYqJ9Cqt.js +0 -208
- package/notification.component-DZS8z1oa.js +0 -197
- package/optgroup-base-element-DWKHCat8.js +0 -107
- package/option-hint.component-Goyhv5ss.js +0 -23
- package/option.component-uzmmREt4.js +0 -98
- package/overlay.component-r0Rp_b-3.js +0 -163
- package/paginator.component-D_fV260x.js +0 -206
- package/popover.component-Dh9vbuDG.js +0 -353
- package/radio-button-common-CCQ3bJPI.js +0 -77
- package/radio-button-group.component-Cf8r6Whf.js +0 -232
- package/radio-button.component-B5b5OhBw.js +0 -93
- package/sbb-tokens-BJzKBCf8.js +0 -4
- package/screen-reader-only.component-B06hVxPg.js +0 -16
- package/select.component-BZbDGrv8.js +0 -522
- package/selection-action-panel.component-_kh6l2sj.js +0 -35
- package/selection-expansion-panel.component-ChMYCw38.js +0 -144
- package/sidebar-close-button.component-B9QGnQLs.js +0 -30
- package/sidebar-container.component-BW24Ap9F.js +0 -63
- package/sidebar-content.component-DSTp9Iu6.js +0 -20
- package/sidebar-title.component-COjEsAkk.js +0 -53
- package/sidebar.component-C2YYQj-Q.js +0 -238
- package/signet.component-CixiIpLj.js +0 -101
- package/skiplink-list.component-CINJgt_l.js +0 -102
- package/slider.component-BhtuB-8p.js +0 -249
- package/status.component-BZ8zajOL.js +0 -83
- package/step-label.component-COJYo-MI.js +0 -82
- package/step.component-BIOQdZVR.js +0 -94
- package/stepper.component-D2vhtDCy.js +0 -286
- package/sticky-bar.component-CYCOEGz7.js +0 -141
- package/styles-DpIXFSVm.js +0 -5
- package/styles-uZGSPqgK.js +0 -5
- package/tab-group.component-nprcnwFB.js +0 -185
- package/tab-label.component-BeLuYRBg.js +0 -165
- package/tab-nav-bar.component-Du1JyNtu.js +0 -81
- package/tab.component-D8Rz05Fo.js +0 -48
- package/table-wrapper.component-DkaL4T5V.js +0 -83
- package/tag-group.component-CW6Z9-P6.js +0 -143
- package/tag.component-CvZpvIuw.js +0 -170
- package/teaser-hero.component-Dolg4-Yz.js +0 -80
- package/teaser-product-common-q2IZHbkr.js +0 -62
- package/teaser-product.component-DVdyKe6h.js +0 -29
- package/teaser.component-DPvDVG6b.js +0 -91
- package/time-input.component-ChWhDF5l.js +0 -141
- package/timetable-form-details.component-Du6WPn3y.js +0 -16
- package/timetable-form-field.component-Cb3FYKL7.js +0 -32
- package/timetable-form-swap-button.component-ByQDf7oy.js +0 -37
- package/timetable-form.component-BqokC_4S.js +0 -16
- package/timetable-occupancy-icon.component-BhXQSFZR.js +0 -72
- package/timetable-occupancy.component-DnaQ0TIW.js +0 -101
- package/title-base-D4nE41tH.js +0 -80
- package/title.component-DNBy2mIm.js +0 -54
- package/toast.component-B9Gm8Kls.js +0 -189
- package/toggle-check.component-BcxMe5Zi.js +0 -119
- package/toggle-option.component-DvdEjT2c.js +0 -123
- package/toggle.component-Lnj5TugJ.js +0 -161
- package/tooltip.component-B5fKuZdI.js +0 -228
- package/train-blocked-passage.component-Dz7lD_V1.js +0 -23
- package/train-formation.component-CGTqQgp7.js +0 -121
- package/train-wagon.component-BW-JxcK6.js +0 -259
- package/train.component-B_Nlu8Kh.js +0 -176
- package/visual-checkbox.component-bB_pG0vn.js +0 -118
|
@@ -1,2 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var w = (a) => {
|
|
2
|
+
throw TypeError(a);
|
|
3
|
+
};
|
|
4
|
+
var D = (a, i, s) => i.has(a) || w("Cannot " + s);
|
|
5
|
+
var m = (a, i, s) => (D(a, i, "read from private field"), s ? s.call(a) : i.get(a)), b = (a, i, s) => i.has(a) ? w("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(a) : i.set(a, s), y = (a, i, s, u) => (D(a, i, "write to private field"), u ? u.call(a, s) : i.set(a, s), s);
|
|
6
|
+
import { __esDecorate as C, __runInitializers as g } from "tslib";
|
|
7
|
+
import { MutationController as k } from "@lit-labs/observers/mutation-controller.js";
|
|
8
|
+
import { css as K, html as S } from "lit";
|
|
9
|
+
import { property as M } from "lit/decorators.js";
|
|
10
|
+
import { isArrowKeyOrPageKeysPressed as x } from "../../core/a11y.js";
|
|
11
|
+
import { SbbElement as I } from "../../core/base-elements.js";
|
|
12
|
+
import { readConfig as z } from "../../core/config/config.js";
|
|
13
|
+
import { defaultDateAdapter as O } from "../../core/datetime/native-date-adapter.js";
|
|
14
|
+
import { ɵstateController as A } from "../../core/mixins.js";
|
|
15
|
+
const v = K`:host{display:flex;flex-wrap:wrap;gap:var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-1x)}`;
|
|
16
|
+
let U = (() => {
|
|
17
|
+
var f, c;
|
|
18
|
+
let a = I, i, s = [], u = [];
|
|
19
|
+
return c = class extends a {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
b(this, f);
|
|
23
|
+
y(this, f, g(this, s, "horizontal")), this._keydownAbortController = (g(this, u), null), this._dateAdapter = z().datetime?.dateAdapter ?? O, this.addController(new k(this, {
|
|
24
|
+
config: { childList: !0, subtree: !0 },
|
|
25
|
+
callback: () => this._setMonthsShowYear()
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
/** The orientation of days in the calendar. */
|
|
29
|
+
get orientation() {
|
|
30
|
+
return m(this, f);
|
|
31
|
+
}
|
|
32
|
+
set orientation(t) {
|
|
33
|
+
y(this, f, t);
|
|
34
|
+
}
|
|
35
|
+
_getMiniCalendarMonths() {
|
|
36
|
+
return Array.from(this.querySelectorAll?.("sbb-mini-calendar-month") ?? []);
|
|
37
|
+
}
|
|
38
|
+
_getMiniCalendarDays() {
|
|
39
|
+
return Array.from(this._getMiniCalendarMonths().flatMap((t) => Array.from(t.querySelectorAll?.("sbb-mini-calendar-day") ?? [])));
|
|
40
|
+
}
|
|
41
|
+
_setMonthsShowYear() {
|
|
42
|
+
this._getMiniCalendarMonths().forEach((t, e) => {
|
|
43
|
+
const o = t.date.split("-");
|
|
44
|
+
o.length > 0 && (e === 0 || +o[1] == 1 ? A(t).add("show-year") : A(t).delete("show-year"));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
_handleKeydownCalendarDay(t) {
|
|
48
|
+
x(t) && t.preventDefault();
|
|
49
|
+
const e = this._getMiniCalendarDays(), o = e.find((n) => n === t.target), r = this._navigateByKeyboardDayView(e, o, t), d = document.activeElement;
|
|
50
|
+
r !== d && (r.tabIndex = 0, r?.focus(), d.tabIndex = -1);
|
|
51
|
+
}
|
|
52
|
+
_navigateByKeyboardDayView(t, e, o) {
|
|
53
|
+
const r = this.orientation === "horizontal" ? { leftRight: 1, upDown: 7 } : { leftRight: 7, upDown: 1 }, d = this._dateAdapter.parse(e.date), n = this._dateAdapter.getDate(d), h = this._dateAdapter.getFirstWeekOffset(d);
|
|
54
|
+
switch (o.key) {
|
|
55
|
+
case "ArrowUp":
|
|
56
|
+
return this._findDayArrowKeys(t, e, -r.upDown);
|
|
57
|
+
case "ArrowDown":
|
|
58
|
+
return this._findDayArrowKeys(t, e, r.upDown);
|
|
59
|
+
case "ArrowLeft":
|
|
60
|
+
return this._findDayArrowKeys(t, e, -r.leftRight);
|
|
61
|
+
case "ArrowRight":
|
|
62
|
+
return this._findDayArrowKeys(t, e, r.leftRight);
|
|
63
|
+
case "PageUp":
|
|
64
|
+
if (this.orientation === "horizontal") {
|
|
65
|
+
const l = n - (n % 7 || 7);
|
|
66
|
+
return this._findDaySpecialKeys(t, e, -l, r.upDown);
|
|
67
|
+
} else {
|
|
68
|
+
const _ = (Math.ceil((n + h) / 7) - 1) * 7 - h + 1 - n;
|
|
69
|
+
return this._findDaySpecialKeys(t, e, _, r.upDown);
|
|
70
|
+
}
|
|
71
|
+
case "PageDown":
|
|
72
|
+
if (this.orientation === "horizontal") {
|
|
73
|
+
const l = this._dateAdapter.getNumDaysInMonth(d), p = l - n - (l - n) % 7;
|
|
74
|
+
return this._findDaySpecialKeys(t, e, p, -r.upDown);
|
|
75
|
+
} else {
|
|
76
|
+
const _ = Math.ceil((n + h) / 7) * 7 - h - n;
|
|
77
|
+
return this._findDaySpecialKeys(t, e, _, -r.upDown);
|
|
78
|
+
}
|
|
79
|
+
case "Home": {
|
|
80
|
+
const l = n - 1;
|
|
81
|
+
return this._findDaySpecialKeys(t, e, -l, 1);
|
|
82
|
+
}
|
|
83
|
+
case "End": {
|
|
84
|
+
const l = this._dateAdapter.getNumDaysInMonth(d);
|
|
85
|
+
return this._findDaySpecialKeys(t, e, l - n, -1);
|
|
86
|
+
}
|
|
87
|
+
default:
|
|
88
|
+
return e;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
_findDayArrowKeys(t, e, o) {
|
|
92
|
+
const r = this._dateAdapter.addCalendarDays(this._dateAdapter.deserialize(e.date), o), d = this._dateAdapter.toIso8601(r), n = t.find((h) => h.date === d);
|
|
93
|
+
return n || e;
|
|
94
|
+
}
|
|
95
|
+
_findDaySpecialKeys(t, e, o, r) {
|
|
96
|
+
const d = this._dateAdapter.addCalendarDays(this._dateAdapter.deserialize(e.date), o), n = this._dateAdapter.toIso8601(d), h = t.find((l) => l.date === n);
|
|
97
|
+
return h || this._findDaySpecialKeys(t, e, o + r, r);
|
|
98
|
+
}
|
|
99
|
+
_handleSlotchange() {
|
|
100
|
+
this._setupKeydownListener();
|
|
101
|
+
}
|
|
102
|
+
_setupKeydownListener() {
|
|
103
|
+
this._keydownAbortController?.abort(), this._keydownAbortController = new AbortController(), this._getMiniCalendarDays().forEach((t, e) => {
|
|
104
|
+
t.addEventListener("keydown", (o) => this._handleKeydownCalendarDay(o), {
|
|
105
|
+
signal: this._keydownAbortController.signal
|
|
106
|
+
}), e !== 0 && (t.tabIndex = -1);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/** @internal */
|
|
110
|
+
focus() {
|
|
111
|
+
this._getMiniCalendarDays()?.find((t) => t.tabIndex === 0)?.focus();
|
|
112
|
+
}
|
|
113
|
+
connectedCallback() {
|
|
114
|
+
super.connectedCallback(), this._setupKeydownListener();
|
|
115
|
+
}
|
|
116
|
+
disconnectedCallback() {
|
|
117
|
+
super.disconnectedCallback(), this._keydownAbortController?.abort();
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
return S`<slot @slotchange=${this._handleSlotchange}></slot>`;
|
|
121
|
+
}
|
|
122
|
+
}, f = new WeakMap(), (() => {
|
|
123
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
|
|
124
|
+
i = [M({ reflect: !0 })], C(c, null, i, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (e) => "orientation" in e, get: (e) => e.orientation, set: (e, o) => {
|
|
125
|
+
e.orientation = o;
|
|
126
|
+
} }, metadata: t }, s, u), t && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
127
|
+
})(), c.elementName = "sbb-mini-calendar", c.styles = v, c;
|
|
128
|
+
})();
|
|
129
|
+
export {
|
|
130
|
+
U as SbbMiniCalendarElement
|
|
131
|
+
};
|
|
@@ -1,2 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var w = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
|
+
};
|
|
4
|
+
var A = (r, t, o) => t.has(r) || w("Cannot " + o);
|
|
5
|
+
var u = (r, t, o) => (A(r, t, "read from private field"), o ? o.call(r) : t.get(r)), h = (r, t, o) => t.has(r) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, o), i = (r, t, o, b) => (A(r, t, "write to private field"), b ? b.call(r, o) : t.set(r, o), o);
|
|
6
|
+
import { __esDecorate as v, __runInitializers as d } from "tslib";
|
|
7
|
+
import { css as j, html as B } from "lit";
|
|
8
|
+
import { property as f } from "lit/decorators.js";
|
|
9
|
+
import { SbbButtonBaseElement as O } from "../../core/base-elements.js";
|
|
10
|
+
import { readConfig as S } from "../../core/config/config.js";
|
|
11
|
+
import "../../core/datetime/date-adapter.js";
|
|
12
|
+
import { defaultDateAdapter as T } from "../../core/datetime/native-date-adapter.js";
|
|
13
|
+
import { forceType as p, omitEmptyConverter as I } from "../../core/decorators.js";
|
|
14
|
+
const U = j`:host{--sbb-mini-calendar-day-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );display:block;height:var(--sbb-mini-calendar-day-dimensions);width:var(--sbb-mini-calendar-day-dimensions);margin:.0625rem;border-radius:var(--sbb-border-radius-infinity);color:var(--sbb-color-storm);color:light-dark(var(--sbb-color-storm),var(--sbb-color-smoke));background-color:currentcolor}@media(any-hover:hover){:host(:hover){scale:var(--sbb-mini-calendar-day-scale);transition:scale var(--sbb-mini-calendar-day-animation-easing) var(--sbb-mini-calendar-day-animation-duration)}}:host(: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:.125rem}:host([color=charcoal]){color:var(--sbb-background-color-2-inverted)}:host([color=cloud]){color:var(--sbb-background-color-4-inverted)}:host([color=orange]){color:var(--sbb-color-orange-light)}:host([color=red]){color:var(--sbb-color-error)}:host([color=sky]){color:var(--sbb-color-sky-light)}:host([marker=circle]){background-color:var(--sbb-color-1-inverted);border:.0625rem solid currentcolor}:host([marker=target]){background:radial-gradient(circle,currentcolor 0%,currentcolor 25%,var(--sbb-color-1-inverted) 25%,var(--sbb-color-1-inverted) 50%,currentcolor 50%,currentcolor 100%)}:host([marker=slash]){position:relative}:host([marker=slash]):before{content:"";position:absolute;inset:0;background-image:linear-gradient(-45deg,transparent 45%,var(--sbb-color-1-inverted) 45%,var(--sbb-color-1-inverted) 55%,transparent 55%)}:host([marker=cross]){position:relative}:host([marker=cross]):before{content:"";position:absolute;inset:0;background-image:linear-gradient(-45deg,transparent 45%,var(--sbb-color-1-inverted) 45%,var(--sbb-color-1-inverted) 55%,transparent 55%),linear-gradient(45deg,transparent 45%,var(--sbb-color-1-inverted) 45%,var(--sbb-color-1-inverted) 55%,transparent 55%)}`;
|
|
15
|
+
let R = (() => {
|
|
16
|
+
var l, c, n, s;
|
|
17
|
+
let r = O, t, o = [], b = [], g, k = [], _ = [], y, z = [], x = [];
|
|
18
|
+
return s = class extends r {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
h(this, l);
|
|
22
|
+
h(this, c);
|
|
23
|
+
h(this, n);
|
|
24
|
+
this._dateAdapter = S().datetime?.dateAdapter ?? T, i(this, l, d(this, o, "")), i(this, c, (d(this, b), d(this, k, ""))), i(this, n, (d(this, _), d(this, z, ""))), d(this, x);
|
|
25
|
+
}
|
|
26
|
+
/** Date as ISO string (YYYY-MM-DD) */
|
|
27
|
+
get date() {
|
|
28
|
+
return u(this, l);
|
|
29
|
+
}
|
|
30
|
+
set date(a) {
|
|
31
|
+
i(this, l, a);
|
|
32
|
+
}
|
|
33
|
+
/** The type of the marker. */
|
|
34
|
+
get marker() {
|
|
35
|
+
return u(this, c);
|
|
36
|
+
}
|
|
37
|
+
set marker(a) {
|
|
38
|
+
i(this, c, a);
|
|
39
|
+
}
|
|
40
|
+
/** The color of the marker. */
|
|
41
|
+
get color() {
|
|
42
|
+
return u(this, n);
|
|
43
|
+
}
|
|
44
|
+
set color(a) {
|
|
45
|
+
i(this, n, a);
|
|
46
|
+
}
|
|
47
|
+
willUpdate(a) {
|
|
48
|
+
super.willUpdate(a), a.has("date") && this.date && (this.internals.ariaLabel = this._dateAdapter.getAccessibilityFormatDate(this.date));
|
|
49
|
+
}
|
|
50
|
+
renderTemplate() {
|
|
51
|
+
return B``;
|
|
52
|
+
}
|
|
53
|
+
}, l = new WeakMap(), c = new WeakMap(), n = new WeakMap(), (() => {
|
|
54
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
55
|
+
t = [p(), f()], g = [p(), f({ reflect: !0, converter: I })], y = [p(), f({ reflect: !0, converter: I })], v(s, null, t, { kind: "accessor", name: "date", static: !1, private: !1, access: { has: (e) => "date" in e, get: (e) => e.date, set: (e, m) => {
|
|
56
|
+
e.date = m;
|
|
57
|
+
} }, metadata: a }, o, b), v(s, null, g, { kind: "accessor", name: "marker", static: !1, private: !1, access: { has: (e) => "marker" in e, get: (e) => e.marker, set: (e, m) => {
|
|
58
|
+
e.marker = m;
|
|
59
|
+
} }, metadata: a }, k, _), v(s, null, y, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (e) => "color" in e, get: (e) => e.color, set: (e, m) => {
|
|
60
|
+
e.color = m;
|
|
61
|
+
} }, metadata: a }, z, x), a && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
62
|
+
})(), s.elementName = "sbb-mini-calendar-day", s.styles = U, s;
|
|
63
|
+
})();
|
|
64
|
+
export {
|
|
65
|
+
R as SbbMiniCalendarDayElement
|
|
66
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
e.define()
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SbbMiniCalendarDayElement as e } from "./mini-calendar-day/mini-calendar-day.component.js";
|
|
2
|
+
e.define();
|
|
3
|
+
console.warn(`The entrypoint '@sbb-esta/elements/mini-calendar/mini-calendar-day.js' has been deprecated.
|
|
4
|
+
Use either '@sbb-esta/elements/mini-calendar.js' or '@sbb-esta/elements/mini-calendar.pure.js' instead.`);
|
|
5
|
+
export {
|
|
6
|
+
e as SbbMiniCalendarDayElement
|
|
7
|
+
};
|
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var d = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
3
|
+
};
|
|
4
|
+
var h = (t, e, i) => e.has(t) || d("Cannot " + i);
|
|
5
|
+
var b = (t, e, i) => (h(t, e, "read from private field"), i ? i.call(t) : e.get(t)), c = (t, e, i) => e.has(t) ? d("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), m = (t, e, i, o) => (h(t, e, "write to private field"), o ? o.call(t, i) : e.set(t, i), i);
|
|
6
|
+
import { __esDecorate as u, __runInitializers as p } from "tslib";
|
|
7
|
+
import { css as v, html as y } from "lit";
|
|
8
|
+
import { property as g } from "lit/decorators.js";
|
|
9
|
+
import { SbbElement as _ } from "../../core/base-elements.js";
|
|
10
|
+
import { readConfig as w } from "../../core/config/config.js";
|
|
11
|
+
import { SbbPropertyWatcherController as z } from "../../core/controllers.js";
|
|
12
|
+
import "../../core/datetime/date-adapter.js";
|
|
13
|
+
import { defaultDateAdapter as O } from "../../core/datetime/native-date-adapter.js";
|
|
14
|
+
import { forceType as x } from "../../core/decorators.js";
|
|
15
|
+
import { boxSizingStyles as S } from "../../core/styles.js";
|
|
16
|
+
const A = v`:host{display:inline-block}:host(:is(:state(show-year),[state--show-year])){--sbb-mini-calendar-month-visibilty-year: visible}:host(:is(:state(orientation-horizontal),[state--orientation-horizontal])){--sbb-mini-calendar-month-grid-auto-flow: row;--sbb-mini-calendar-month-height: 3rem;--sbb-mini-calendar-month-grid-template-rows: none;--sbb-mini-calendar-month-grid-template-columns: repeat(7, 1fr)}:host(:is(:state(orientation-horizontal),[state--orientation-horizontal])) ::slotted(sbb-mini-calendar-day:first-child){grid-column-start:var(--sbb-mini-calendar-month-offset)}:host(:is(:state(orientation-vertical),[state--orientation-vertical])){--sbb-mini-calendar-month-grid-auto-flow: column;--sbb-mini-calendar-month-height: auto;--sbb-mini-calendar-month-grid-template-rows: repeat(7, 1fr);--sbb-mini-calendar-month-grid-template-columns: none}:host(:is(:state(orientation-vertical),[state--orientation-vertical])) ::slotted(sbb-mini-calendar-day:first-child){grid-row-start:var(--sbb-mini-calendar-month-offset)}.sbb-mini-calendar-month-wrapper{display:grid;height:var(--sbb-mini-calendar-month-height);grid-auto-flow:var(--sbb-mini-calendar-month-grid-auto-flow);grid-auto-rows:.5rem;grid-template-columns:var(--sbb-mini-calendar-month-grid-template-columns);grid-template-rows:var(--sbb-mini-calendar-month-grid-template-rows)}.sbb-mini-calendar-month-label-year,.sbb-mini-calendar-month-label-month{font-size:var(--sbb-text-font-size-xxs);letter-spacing:var(--sbb-typo-letter-spacing-text);color:var(--sbb-mini-calendar-month-label-color)}.sbb-mini-calendar-month-label-year{visibility:var(--sbb-mini-calendar-month-visibilty-year)}`;
|
|
17
|
+
let T = (() => {
|
|
18
|
+
var n, r;
|
|
19
|
+
let t = _, e, i = [], o = [];
|
|
20
|
+
return r = class extends t {
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
c(this, n);
|
|
24
|
+
m(this, n, p(this, i, "")), this._dateAdapter = (p(this, o), w().datetime?.dateAdapter ?? O), this._monthNames = this._dateAdapter.getMonthNames("short"), this._monthLabel = null, this._yearLabel = null, this._previousOrientation = null, this.addController(new z(this, () => this.closest("sbb-mini-calendar"), {
|
|
25
|
+
orientation: (a) => {
|
|
26
|
+
this._previousOrientation && this.internals.states.delete(`orientation-${this._previousOrientation}`), this._previousOrientation = a.orientation, this._previousOrientation && this.internals.states.add(`orientation-${this._previousOrientation}`);
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
/** Date as ISO string (YYYY-MM) */
|
|
31
|
+
get date() {
|
|
32
|
+
return b(this, n);
|
|
33
|
+
}
|
|
34
|
+
set date(a) {
|
|
35
|
+
m(this, n, a);
|
|
36
|
+
}
|
|
37
|
+
willUpdate(a) {
|
|
38
|
+
if (super.willUpdate(a), a.has("date") && this.date) {
|
|
39
|
+
if (!this.date.match(/^\d{4}-(0[1-9]|1[0-2])$/))
|
|
40
|
+
return;
|
|
41
|
+
const s = this.date.split("-"), l = this._dateAdapter.createDate(+s[0], +s[1], 1), f = this._dateAdapter.getFirstWeekOffset(l);
|
|
42
|
+
this.style?.setProperty("--sbb-mini-calendar-month-offset", `${f + 1}`), this._monthLabel = `${this._monthNames[+s[1] - 1]}.`, this._yearLabel = String(this._dateAdapter.getYear(l));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return y`
|
|
47
|
+
<div class="sbb-mini-calendar-month-label-year">${this._yearLabel}</div>
|
|
48
|
+
<div class="sbb-mini-calendar-month-wrapper">
|
|
49
|
+
<slot></slot>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="sbb-mini-calendar-month-label-month">${this._monthLabel}</div>
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
}, n = new WeakMap(), (() => {
|
|
55
|
+
const a = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
|
|
56
|
+
e = [x(), g()], u(r, null, e, { kind: "accessor", name: "date", static: !1, private: !1, access: { has: (s) => "date" in s, get: (s) => s.date, set: (s, l) => {
|
|
57
|
+
s.date = l;
|
|
58
|
+
} }, metadata: a }, i, o), a && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: a });
|
|
59
|
+
})(), r.elementName = "sbb-mini-calendar-month", r.styles = [S, A], r;
|
|
60
|
+
})();
|
|
61
|
+
export {
|
|
62
|
+
T as SbbMiniCalendarMonthElement
|
|
63
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
e.define()
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SbbMiniCalendarMonthElement as e } from "./mini-calendar-month/mini-calendar-month.component.js";
|
|
2
|
+
e.define();
|
|
3
|
+
console.warn(`The entrypoint '@sbb-esta/elements/mini-calendar/mini-calendar-month.js' has been deprecated.
|
|
4
|
+
Use either '@sbb-esta/elements/mini-calendar.js' or '@sbb-esta/elements/mini-calendar.pure.js' instead.`);
|
|
5
|
+
export {
|
|
6
|
+
e as SbbMiniCalendarMonthElement
|
|
7
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
e.define()
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SbbMiniCalendarElement as e } from "./mini-calendar/mini-calendar.component.js";
|
|
2
|
+
e.define();
|
|
3
|
+
console.warn(`The entrypoint '@sbb-esta/elements/mini-calendar/mini-calendar.js' has been deprecated.
|
|
4
|
+
Use either '@sbb-esta/elements/mini-calendar.js' or '@sbb-esta/elements/mini-calendar.pure.js' instead.`);
|
|
5
|
+
export {
|
|
6
|
+
e as SbbMiniCalendarElement
|
|
7
|
+
};
|
package/mini-calendar.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
1
|
+
import { SbbMiniCalendarDayElement as e } from "./mini-calendar/mini-calendar-day/mini-calendar-day.component.js";
|
|
2
|
+
import { SbbMiniCalendarMonthElement as n } from "./mini-calendar/mini-calendar-month/mini-calendar-month.component.js";
|
|
3
|
+
import { SbbMiniCalendarElement as i } from "./mini-calendar/mini-calendar/mini-calendar.component.js";
|
|
4
|
+
i.define();
|
|
5
|
+
e.define();
|
|
6
|
+
n.define();
|
|
7
|
+
export {
|
|
8
|
+
e as SbbMiniCalendarDayElement,
|
|
9
|
+
i as SbbMiniCalendarElement,
|
|
10
|
+
n as SbbMiniCalendarMonthElement
|
|
11
|
+
};
|
package/mini-calendar.pure.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { SbbMiniCalendarDayElement as r } from "./mini-calendar/mini-calendar-day/mini-calendar-day.component.js";
|
|
2
|
+
import { SbbMiniCalendarMonthElement as o } from "./mini-calendar/mini-calendar-month/mini-calendar-month.component.js";
|
|
3
|
+
import { SbbMiniCalendarElement as b } from "./mini-calendar/mini-calendar/mini-calendar.component.js";
|
|
4
|
+
export {
|
|
5
|
+
r as SbbMiniCalendarDayElement,
|
|
6
|
+
b as SbbMiniCalendarElement,
|
|
7
|
+
o as SbbMiniCalendarMonthElement
|
|
8
|
+
};
|
|
@@ -1,2 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var v = (t) => {
|
|
2
|
+
throw TypeError(t);
|
|
3
|
+
};
|
|
4
|
+
var h = (t, i, e) => i.has(t) || v("Cannot " + e);
|
|
5
|
+
var g = (t, i, e) => (h(t, i, "read from private field"), e ? e.call(t) : i.get(t)), f = (t, i, e) => i.has(t) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), b = (t, i, e, s) => (h(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as u } from "tslib";
|
|
7
|
+
import { property as d } from "lit/decorators.js";
|
|
8
|
+
import { html as y } from "lit/static-html.js";
|
|
9
|
+
import { isLean as z } from "../../core/dom.js";
|
|
10
|
+
import { boxSizingStyles as x } from "../../core/styles.js";
|
|
11
|
+
import { css as k } from "lit";
|
|
12
|
+
import "../../icon.js";
|
|
13
|
+
const _ = k`:host{--sbb-navigation-action-color: var(--sbb-color-4-negative);--sbb-navigation-action-icon-display: none;display:block;outline:none!important}:host(:is(:state(section-action),[state--section-action]):is(:state(action-active),[state--action-active]).sbb-active){--sbb-navigation-action-icon-display: block}:host(:is(:state(action-active),[state--action-active])){--sbb-navigation-action-color: var(--sbb-color-5)}@media(forced-colors:active){:host(:is(:state(action-active),[state--action-active])){--sbb-navigation-action-color: Highlight}}sbb-icon{display:var(--sbb-navigation-action-icon-display);position:absolute;inset-inline-start:calc((var(--sbb-size-icon-ui-small) + var(--sbb-spacing-fixed-1x)) * -1);inset-block-start:calc(1em * var(--sbb-typo-line-height-text) / 2);translate:0 -50%}@media(any-hover:hover){:host(:hover){--sbb-navigation-action-color: var(--sbb-color-5)}}@media(forced-colors:active){:host(:is(:state(button),[state--button])){--sbb-navigation-action-color: ButtonText}}:is(.sbb-navigation-button,.sbb-navigation-link){--sbb-title-font-size: var(--sbb-title-font-size-level-4-lean, var(--sbb-heading-font-size-4));margin-block:var(--sbb-title-margin-block, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-heading));letter-spacing:var(--sbb-typo-letter-spacing-heading);font-size:var(--sbb-title-font-size);cursor:var(--sbb-cursor-pointer);position:relative;text-decoration:none;display:flex;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:color var(--sbb-disable-animation-duration, var(--sbb-animation-duration-3x)) ease;-webkit-hyphens:auto;hyphens:auto;text-align:left;color:var(--sbb-navigation-action-color);outline:none}@media(forced-colors:active){:is(.sbb-navigation-button,.sbb-navigation-link){transition:none}}:host([size=m]) :is(.sbb-navigation-button,.sbb-navigation-link){--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}:host([size=s]) :is(.sbb-navigation-button,.sbb-navigation-link){--sbb-text-font-size: var(--sbb-text-font-size-xxs);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}:host(:focus-visible) :is(.sbb-navigation-button,.sbb-navigation-link),:is(.sbb-navigation-button,.sbb-navigation-link):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);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}`, T = (t) => (() => {
|
|
14
|
+
var n, a;
|
|
15
|
+
let e = t, s, c = [], l = [];
|
|
16
|
+
return a = class extends e {
|
|
17
|
+
constructor(...o) {
|
|
18
|
+
super(...o);
|
|
19
|
+
f(this, n);
|
|
20
|
+
b(this, n, u(this, c, z() ? "s" : "l")), this.connectedSection = u(this, l), this._navigationMarker = null, this._navigationSection = null, this.addEventListener?.("click", () => {
|
|
21
|
+
!this.matches(":is(:state(action-active),[state--action-active])") && this._navigationMarker && !this.connectedSection && this.marker?.select(this);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Action size variant, either s, m or l.
|
|
26
|
+
* @default 'l' / 's' (lean)
|
|
27
|
+
*/
|
|
28
|
+
get size() {
|
|
29
|
+
return g(this, n);
|
|
30
|
+
}
|
|
31
|
+
set size(o) {
|
|
32
|
+
b(this, n, o);
|
|
33
|
+
}
|
|
34
|
+
/** The navigation marker in which the action is nested. */
|
|
35
|
+
get marker() {
|
|
36
|
+
return this._navigationMarker;
|
|
37
|
+
}
|
|
38
|
+
/** The section in which the action is nested. */
|
|
39
|
+
get section() {
|
|
40
|
+
return this._navigationSection;
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
super.connectedCallback(), this._navigationMarker = this.closest("sbb-navigation-marker"), this._navigationSection = this.closest("sbb-navigation-section"), this.toggleState("section-action", !!this._navigationSection);
|
|
44
|
+
}
|
|
45
|
+
renderTemplate() {
|
|
46
|
+
return y`<sbb-icon name="dash-small"></sbb-icon> <slot></slot>`;
|
|
47
|
+
}
|
|
48
|
+
}, n = new WeakMap(), (() => {
|
|
49
|
+
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(e[Symbol.metadata] ?? null) : void 0;
|
|
50
|
+
s = [d({ reflect: !0 })], p(a, null, s, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (r) => "size" in r, get: (r) => r.size, set: (r, m) => {
|
|
51
|
+
r.size = m;
|
|
52
|
+
} }, metadata: o }, c, l), o && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
53
|
+
})(), a.styles = [x, _], a;
|
|
54
|
+
})();
|
|
55
|
+
export {
|
|
56
|
+
T as SbbNavigationActionCommonElementMixin
|
|
57
|
+
};
|
package/navigation/common.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SbbNavigationActionCommonElementMixin as t } from "./common/navigation-action-common.js";
|
|
2
|
+
console.warn(`The entrypoint '@sbb-esta/elements/navigation/common.js' has been deprecated.
|
|
3
|
+
Use either '@sbb-esta/elements/navigation.js' or '@sbb-esta/elements/navigation.pure.js' instead.`);
|
|
4
|
+
export {
|
|
5
|
+
t as SbbNavigationActionCommonElementMixin
|
|
6
|
+
};
|
|
@@ -1,2 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var C = (a) => {
|
|
2
|
+
throw TypeError(a);
|
|
3
|
+
};
|
|
4
|
+
var x = (a, n, e) => n.has(a) || C("Cannot " + e);
|
|
5
|
+
var d = (a, n, e) => (x(a, n, "read from private field"), e ? e.call(a) : n.get(a)), h = (a, n, e) => n.has(a) ? C("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), r = (a, n, e, g) => (x(a, n, "write to private field"), g ? g.call(a, e) : n.set(a, e), e);
|
|
6
|
+
import { __esDecorate as p, __runInitializers as v } from "tslib";
|
|
7
|
+
import { ResizeController as E } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
+
import { css as z, isServer as O, html as S } from "lit";
|
|
9
|
+
import { property as A, state as N } from "lit/decorators.js";
|
|
10
|
+
import { ref as T } from "lit/directives/ref.js";
|
|
11
|
+
import { SbbFocusTrapController as L } from "../../core/a11y.js";
|
|
12
|
+
import { SbbOpenCloseBaseElement as U } from "../../core/base-elements.js";
|
|
13
|
+
import { SbbLanguageController as D, SbbInertController as R, SbbEscapableOverlayController as q } from "../../core/controllers.js";
|
|
14
|
+
import { idReference as I, forceType as P } from "../../core/decorators.js";
|
|
15
|
+
import { SbbScrollHandler as B, isZeroAnimationDuration as H } from "../../core/dom.js";
|
|
16
|
+
import { i18nCloseNavigation as M } from "../../core/i18n.js";
|
|
17
|
+
import { SbbUpdateSchedulerMixin as $ } from "../../core/mixins.js";
|
|
18
|
+
import { isEventOnElement as u, removeAriaOverlayTriggerAttributes as Z, setAriaOverlayTriggerAttributes as j } from "../../core/overlay.js";
|
|
19
|
+
import { boxSizingStyles as F } from "../../core/styles.js";
|
|
20
|
+
import "../../button/transparent-button.js";
|
|
21
|
+
const G = z`:host{--sbb-navigation-grid-column: 1 / -1;--sbb-navigation-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-3x) );--sbb-navigation-animation-easing: ease-in;--sbb-navigation-padding-inline: var(--sbb-layout-base-offset-responsive);--sbb-navigation-padding-block-start: var(--sbb-spacing-responsive-l);--sbb-navigation-padding-block-end: var(--sbb-spacing-responsive-xl);--sbb-navigation-backdrop-visibility: hidden;--sbb-navigation-backdrop-pointer-events: none;--sbb-navigation-backdrop-color: color-mix(in srgb, var(--sbb-color-black) 70%, transparent);--sbb-navigation-backdrop-animation-name: backdrop-open;--sbb-navigation-background-color: var(--sbb-background-color-1-negative);--sbb-navigation-color: var(--sbb-color-1-negative);--sbb-navigation-list-margin-block-start: var(--sbb-spacing-responsive-xxl);--sbb-navigation-inline-start: 0;--sbb-navigation-expanded-width: 100%;--sbb-navigation-inset: 0 auto auto 0;--sbb-navigation-translate: -100% 0;--sbb-navigation-content-translate: 0;--sbb-navigation-width: 100%;--sbb-navigation-height: 100dvh;--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);display:none;position:fixed;inset:var(--sbb-navigation-inset);z-index:var(--sbb-navigation-z-index, var(--sbb-overlay-default-z-index));overflow:hidden}@media(min-width:64rem){:host{--sbb-navigation-grid-column: 1 / 5;--sbb-navigation-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-6x) );--sbb-navigation-padding-block-start: var(--sbb-spacing-responsive-xl);--sbb-navigation-padding-inline: var(--sbb-layout-base-offset-responsive) 0;--sbb-navigation-list-margin-block-start: var(--sbb-spacing-fixed-1x);--sbb-navigation-inline-start: calc(var(--sbb-layout-base-offset-responsive) * -1);--sbb-navigation-width: calc(100% + var(--sbb-layout-base-offset-responsive))}}@media(min-width:90rem){:host{--sbb-navigation-grid-column: 1 / 6;--sbb-navigation-padding-block-start: var(--sbb-spacing-responsive-xxl)}}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){display:block}:host(:is(:state(state-opened),[state--state-opened])){--sbb-navigation-animation-easing: ease-out}:host(:is(:is(:state(state-opened),[state--state-opened]),:is(:state(state-opening),[state--state-opening]))){--sbb-navigation-backdrop-visibility: visible;--sbb-navigation-backdrop-pointer-events: all}:host(:not(:is(:state(state-closed),[state--state-closed]))){--sbb-navigation-inset: 0;--sbb-navigation-translate: }:host(:is(:state(state-closing),[state--state-closing])){--sbb-navigation-backdrop-animation-name: backdrop-close}:host(:is(:state(has-open-navigation-section),[state--has-open-navigation-section])){--sbb-navigation-content-translate: -100% 0}@media(min-width:64rem){:host(:is(:state(has-open-navigation-section),[state--has-open-navigation-section])){--sbb-navigation-expanded-width: 100dvw;--sbb-navigation-content-translate: 0}}:host(:is(:state(resize-disable-animation),[state--resize-disable-animation])){--sbb-disable-animation-duration: 0s}.sbb-navigation__container{display:grid;gap:var(--sbb-grid-base-gutter-responsive);grid-template-columns:repeat(var(--sbb-grid-base-columns),1fr);padding-inline:0;pointer-events:none;translate:var(--sbb-navigation-translate)}@media(min-width:64rem){.sbb-navigation__container{padding-inline:var(--sbb-layout-base-offset-responsive)}.sbb-navigation__container:before{transition-duration:var(--sbb-navigation-animation-duration);transition-timing-function:var(--sbb-navigation-animation-easing);transition-property:visibility;animation-name:var(--sbb-navigation-backdrop-animation-name);animation-duration:var(--sbb-navigation-animation-duration);animation-timing-function:var(--sbb-navigation-animation-easing);content:"";visibility:var(--sbb-navigation-backdrop-visibility);pointer-events:var(--sbb-navigation-backdrop-pointer-events);position:fixed;inset:var(--sbb-navigation-inset);background-color:var(--sbb-navigation-backdrop-color)}}.sbb-navigation{transition-duration:var(--sbb-navigation-animation-duration);transition-timing-function:var(--sbb-navigation-animation-easing);transition-property:width;display:none;width:var(--sbb-navigation-width);grid-column:var(--sbb-navigation-grid-column);padding:0;margin:0;position:relative;inset-inline-start:var(--sbb-navigation-inline-start);inset-block-start:0;border:none;pointer-events:none;height:var(--sbb-navigation-height);color:var(--sbb-navigation-color);background-color:var(--sbb-navigation-background-color)}.sbb-navigation:before{transition-duration:var(--sbb-navigation-animation-duration);transition-timing-function:var(--sbb-navigation-animation-easing);transition-property:width;content:"";position:absolute;width:var(--sbb-navigation-expanded-width);height:var(--sbb-navigation-height);background:var(--sbb-navigation-background-color)}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-navigation{display:block;pointer-events:all;animation-name:open;animation-duration:var(--sbb-navigation-animation-duration);animation-timing-function:var(--sbb-navigation-animation-easing)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-navigation{pointer-events:none;animation-name:close}@media(forced-colors:active){.sbb-navigation{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-navigation__wrapper{outline:none}.sbb-navigation__header{transition-duration:var(--sbb-navigation-animation-duration);transition-timing-function:var(--sbb-navigation-animation-easing);transition-property:width;display:flex;justify-content:flex-end;position:absolute;width:var(--sbb-navigation-expanded-width);pointer-events:none;padding:var(--sbb-spacing-responsive-xs);z-index:calc(var(--sbb-navigation-z-index, var(--sbb-overlay-default-z-index)) + 1)}.sbb-navigation__close{pointer-events:all}.sbb-navigation__content{transition-duration:var(--sbb-navigation-animation-duration);transition-timing-function:var(--sbb-navigation-animation-easing);transition-property:translate;--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-scrollbar-track-color: transparent;--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-navigation__content::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-navigation__content::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-navigation__content::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-navigation__content::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-navigation__content::-webkit-scrollbar-button,.sbb-navigation__content::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-navigation__content{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-navigation__content{display:flex;flex-direction:column;gap:var(--sbb-spacing-responsive-xxl);position:relative;height:var(--sbb-navigation-height);padding-inline:var(--sbb-navigation-padding-inline);padding-block:var(--sbb-navigation-padding-block-start) var(--sbb-navigation-padding-block-end);overflow-y:auto;translate:var(--sbb-navigation-content-translate)}::slotted(:first-child){margin-block-start:var(--sbb-navigation-list-margin-block-start)}@keyframes open{0%{translate:-100% 0}to{translate:0}}@keyframes close{0%{translate:0}to{translate:-100% 0}}@keyframes backdrop-open{0%{background-color:transparent}}@keyframes backdrop-close{to{background-color:transparent}}`;
|
|
22
|
+
let J = 0;
|
|
23
|
+
const K = 150;
|
|
24
|
+
let gt = (() => {
|
|
25
|
+
var b, l, c, s;
|
|
26
|
+
let a = $(U), n, e = [], g = [], m, _ = [], f = [], k, y = [], w = [];
|
|
27
|
+
return s = class extends a {
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
h(this, b);
|
|
31
|
+
h(this, l);
|
|
32
|
+
h(this, c);
|
|
33
|
+
r(this, b, v(this, e, null)), r(this, l, (v(this, g), v(this, _, ""))), r(this, c, (v(this, f), v(this, y, null))), this._navigation = v(this, w), this._triggerElement = null, this._language = new D(this), this._inertController = new R(this), this._escapableOverlayController = new q(this), this._focusTrapController = new L(this), this._scrollHandler = new B(), this._isPointerDownEventOnNavigation = !1, this._resizeObserverTimeout = null, this._navigationResizeObserver = new E(this, {
|
|
34
|
+
skipInitial: !0,
|
|
35
|
+
callback: () => this._onNavigationResize()
|
|
36
|
+
}), this._pointerDownListener = (t) => {
|
|
37
|
+
this._isPointerDownEventOnNavigation = u(this._navigation, t) || u(this.querySelector("sbb-navigation-section:is(:state(state-opened),[state--state-opened])")?.shadowRoot?.querySelector("nav.sbb-navigation-section"), t);
|
|
38
|
+
}, this._closeOnBackdropClick = (t) => {
|
|
39
|
+
!this._isPointerDownEventOnNavigation && !u(this._navigation, t) && this.close();
|
|
40
|
+
}, this.addEventListener?.("click", (t) => this._handleNavigationClose(t)), this.addEventListener?.("pointerup", (t) => this._closeOnBackdropClick(t)), this.addEventListener?.("pointerdown", (t) => this._pointerDownListener(t)), this.addEventListener?.("ɵnavigationsectionopening", (t) => {
|
|
41
|
+
this._activeNavigationSection = t.target, this.toggleState("has-open-navigation-section", !!this._activeNavigationSection);
|
|
42
|
+
}, { capture: !0 }), this.addEventListener?.("ɵnavigationsectionclosing", (t) => {
|
|
43
|
+
this._activeNavigationSection === t.target && (this._activeNavigationSection = null, this.internals.states.delete("has-open-navigation-section"));
|
|
44
|
+
}, { capture: !0 });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The element that will trigger the navigation.
|
|
48
|
+
*
|
|
49
|
+
* For attribute usage, provide an id reference.
|
|
50
|
+
*/
|
|
51
|
+
get trigger() {
|
|
52
|
+
return d(this, b);
|
|
53
|
+
}
|
|
54
|
+
set trigger(t) {
|
|
55
|
+
r(this, b, t);
|
|
56
|
+
}
|
|
57
|
+
/** This will be forwarded as aria-label to the close button element. */
|
|
58
|
+
get accessibilityCloseLabel() {
|
|
59
|
+
return d(this, l);
|
|
60
|
+
}
|
|
61
|
+
set accessibilityCloseLabel(t) {
|
|
62
|
+
r(this, l, t);
|
|
63
|
+
}
|
|
64
|
+
/** Whether a navigation section is displayed. */
|
|
65
|
+
get _activeNavigationSection() {
|
|
66
|
+
return d(this, c);
|
|
67
|
+
}
|
|
68
|
+
set _activeNavigationSection(t) {
|
|
69
|
+
r(this, c, t);
|
|
70
|
+
}
|
|
71
|
+
/** Returns the active navigation section element. */
|
|
72
|
+
get activeNavigationSection() {
|
|
73
|
+
return this._activeNavigationSection;
|
|
74
|
+
}
|
|
75
|
+
/** Returns the close button element. */
|
|
76
|
+
get closeButton() {
|
|
77
|
+
return this.shadowRoot?.querySelector("#sbb-navigation-close-button") ?? null;
|
|
78
|
+
}
|
|
79
|
+
/** Returns the navigation content element. */
|
|
80
|
+
get navigationContent() {
|
|
81
|
+
return this.shadowRoot?.querySelector(".sbb-navigation__content") ?? null;
|
|
82
|
+
}
|
|
83
|
+
/** Opens the navigation. */
|
|
84
|
+
open() {
|
|
85
|
+
this.state !== "closed" || !this.hasUpdated || !this.dispatchBeforeOpenEvent() || (this.showPopover?.(), this.state = "opening", this._checkActiveActions(), this._checkActiveSection(), this.startUpdate(), this._scrollHandler.disableScroll(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._isZeroAnimationDuration() && this._handleOpening());
|
|
86
|
+
}
|
|
87
|
+
_checkActiveSection() {
|
|
88
|
+
this.querySelector("sbb-navigation-button.sbb-active")?.connectedSection?.open();
|
|
89
|
+
}
|
|
90
|
+
_checkActiveActions() {
|
|
91
|
+
Array.from(this.querySelectorAll(":is(sbb-navigation-button, sbb-navigation-link).sbb-active"))?.forEach((i) => i.marker?.select(i));
|
|
92
|
+
}
|
|
93
|
+
/** Closes the navigation. */
|
|
94
|
+
close() {
|
|
95
|
+
this.state !== "opened" || !this.dispatchBeforeCloseEvent() || (this.state = "closing", this.startUpdate(), this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
|
|
96
|
+
}
|
|
97
|
+
_isZeroAnimationDuration() {
|
|
98
|
+
return H(this, "--sbb-navigation-animation-duration");
|
|
99
|
+
}
|
|
100
|
+
_handleClosing() {
|
|
101
|
+
this.state = "closed", this.hidePopover?.(), this.navigationContent?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus(), this._escapableOverlayController.disconnect(), this.dispatchCloseEvent(), this._navigationResizeObserver.unobserve(this), this._resetMarkers(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll(), this.completeUpdate();
|
|
102
|
+
}
|
|
103
|
+
_handleOpening() {
|
|
104
|
+
this.state = "opened", this._navigationResizeObserver.observe(this), this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this.completeUpdate(), this.dispatchOpenEvent();
|
|
105
|
+
}
|
|
106
|
+
// Removes trigger click listener on trigger change.
|
|
107
|
+
// Check if the trigger is valid and attach click event listeners.
|
|
108
|
+
_configureTrigger() {
|
|
109
|
+
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), Z(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && (j(this._triggerElement, "menu", this.id, this.state), this._triggerAbortController = new AbortController(), this._triggerElement.addEventListener("click", () => this.open(), {
|
|
110
|
+
signal: this._triggerAbortController.signal
|
|
111
|
+
})));
|
|
112
|
+
}
|
|
113
|
+
// In rare cases it can be that the animationEnd event is triggered twice.
|
|
114
|
+
// To avoid entering a corrupt state, exit when state is not expected.
|
|
115
|
+
_onAnimationEnd(t) {
|
|
116
|
+
t.animationName === "open" && this.state === "opening" ? this._handleOpening() : t.animationName === "close" && this.state === "closing" && this._handleClosing();
|
|
117
|
+
}
|
|
118
|
+
_resetMarkers() {
|
|
119
|
+
Array.from(this.querySelectorAll(":is(sbb-navigation-button, sbb-navigation-link):is(:state(action-active),[state--action-active]):not(.sbb-active)"))?.forEach((i) => i.marker?.reset());
|
|
120
|
+
}
|
|
121
|
+
_handleNavigationClose(t) {
|
|
122
|
+
t.composedPath().filter((o) => o instanceof window.HTMLElement).some((o) => this._isCloseElement(o)) && this.close();
|
|
123
|
+
}
|
|
124
|
+
_isCloseElement(t) {
|
|
125
|
+
return t.nodeName === "A" || t.hasAttribute("sbb-navigation-close") && !t.hasAttribute("disabled");
|
|
126
|
+
}
|
|
127
|
+
_onNavigationResize() {
|
|
128
|
+
this.state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.internals.states.add("resize-disable-animation"), this._resizeObserverTimeout = setTimeout(() => this.internals.states.delete("resize-disable-animation"), K));
|
|
129
|
+
}
|
|
130
|
+
connectedCallback() {
|
|
131
|
+
super.connectedCallback(), this.popover = "manual", this.id ||= `sbb-navigation-${J++}`, this.hasUpdated && this._configureTrigger();
|
|
132
|
+
}
|
|
133
|
+
disconnectedCallback() {
|
|
134
|
+
super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._scrollHandler.enableScroll();
|
|
135
|
+
}
|
|
136
|
+
requestUpdate(t, i, o) {
|
|
137
|
+
super.requestUpdate(t, i, o), !O && (!t || t === "trigger") && this.hasUpdated && this._configureTrigger();
|
|
138
|
+
}
|
|
139
|
+
firstUpdated(t) {
|
|
140
|
+
super.firstUpdated(t), this._configureTrigger();
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
const t = S`
|
|
144
|
+
<sbb-transparent-button
|
|
145
|
+
id="sbb-navigation-close-button"
|
|
146
|
+
class="sbb-navigation__close"
|
|
147
|
+
aria-label=${this.accessibilityCloseLabel || M[this._language.current]}
|
|
148
|
+
aria-controls="sbb-navigation-overlay"
|
|
149
|
+
negative
|
|
150
|
+
size="m"
|
|
151
|
+
type="button"
|
|
152
|
+
icon-name="cross-small"
|
|
153
|
+
sbb-navigation-close
|
|
154
|
+
></sbb-transparent-button>
|
|
155
|
+
`;
|
|
156
|
+
return S`
|
|
157
|
+
<div class="sbb-navigation__container">
|
|
158
|
+
<div
|
|
159
|
+
id="sbb-navigation-overlay"
|
|
160
|
+
@animationend=${this._onAnimationEnd}
|
|
161
|
+
class="sbb-navigation"
|
|
162
|
+
${T((i) => this._navigation = i)}
|
|
163
|
+
>
|
|
164
|
+
<div class="sbb-navigation__header">${t}</div>
|
|
165
|
+
<div class="sbb-navigation__wrapper">
|
|
166
|
+
<div class="sbb-navigation__content">
|
|
167
|
+
<slot></slot>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<slot name="navigation-section"></slot>
|
|
172
|
+
</div>
|
|
173
|
+
`;
|
|
174
|
+
}
|
|
175
|
+
}, b = new WeakMap(), l = new WeakMap(), c = new WeakMap(), (() => {
|
|
176
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(a[Symbol.metadata] ?? null) : void 0;
|
|
177
|
+
n = [I(), A()], m = [P(), A({ attribute: "accessibility-close-label" })], k = [N()], p(s, null, n, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (i) => "trigger" in i, get: (i) => i.trigger, set: (i, o) => {
|
|
178
|
+
i.trigger = o;
|
|
179
|
+
} }, metadata: t }, e, g), p(s, null, m, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (i) => "accessibilityCloseLabel" in i, get: (i) => i.accessibilityCloseLabel, set: (i, o) => {
|
|
180
|
+
i.accessibilityCloseLabel = o;
|
|
181
|
+
} }, metadata: t }, _, f), p(s, null, k, { kind: "accessor", name: "_activeNavigationSection", static: !1, private: !1, access: { has: (i) => "_activeNavigationSection" in i, get: (i) => i._activeNavigationSection, set: (i, o) => {
|
|
182
|
+
i._activeNavigationSection = o;
|
|
183
|
+
} }, metadata: t }, y, w), t && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
184
|
+
})(), s.elementName = "sbb-navigation", s.role = "navigation", s.styles = [F, G], s;
|
|
185
|
+
})();
|
|
186
|
+
export {
|
|
187
|
+
gt as SbbNavigationElement
|
|
188
|
+
};
|