@sbb-esta/lyne-elements-dev 4.7.0-dev.1773648103 → 4.7.0-dev.1773648656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.component.js +2 -98
- package/accordion.component-DmaGQH3Q.js +127 -0
- package/accordion.js +5 -4
- package/accordion.pure.js +2 -4
- package/action-group/action-group.component.js +2 -107
- package/action-group.component-KWugkMGf.js +158 -0
- package/action-group.js +5 -4
- package/action-group.pure.js +2 -4
- package/alert/alert/alert.component.js +2 -143
- package/alert/alert-group/alert-group.component.js +2 -103
- package/alert/alert-group.js +4 -7
- package/alert/alert.js +4 -7
- package/alert-group.component-RV1M1OKy.js +141 -0
- package/alert.component-PPR7hfTi.js +165 -0
- package/alert.js +6 -8
- package/alert.pure.js +3 -6
- package/autocomplete/autocomplete-base-element.js +2 -373
- package/autocomplete/autocomplete.component.js +51 -50
- package/autocomplete-base-element-DVFCZ4lt.js +425 -0
- package/autocomplete.js +7 -7
- package/autocomplete.pure.js +3 -6
- package/block-link-common-D4aizuV-.js +63 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.js +2 -20
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -135
- package/breadcrumb/breadcrumb-group.js +4 -7
- package/breadcrumb/breadcrumb.js +4 -7
- package/breadcrumb-group.component-BA8KK3Om.js +145 -0
- package/breadcrumb.component-DjkZzGJD.js +24 -0
- package/breadcrumb.js +6 -8
- package/breadcrumb.pure.js +3 -6
- package/button/accent-button/accent-button.component.js +18 -14
- package/button/accent-button-link/accent-button-link.component.js +18 -14
- package/button/accent-button-link.js +4 -4
- package/button/accent-button-static/accent-button-static.component.js +17 -13
- package/button/accent-button-static.js +4 -4
- package/button/accent-button.js +4 -4
- package/button/button/button.component.js +18 -14
- package/button/button-link/button-link.component.js +18 -14
- package/button/button-link.js +4 -4
- package/button/button-static/button-static.component.js +18 -14
- package/button/button-static.js +4 -4
- package/button/button.js +4 -4
- package/button/common/button-common.js +81 -67
- package/button/common.js +3 -12
- package/button/mini-button/mini-button.component.js +22 -18
- package/button/mini-button-group/mini-button-group.component.js +2 -68
- package/button/mini-button-group.js +6 -6
- package/button/mini-button-link/mini-button-link.component.js +2 -27
- package/button/mini-button-link.js +6 -6
- package/button/mini-button.js +4 -4
- package/button/secondary-button/secondary-button.component.js +18 -14
- package/button/secondary-button-link/secondary-button-link.component.js +18 -14
- package/button/secondary-button-link.js +6 -6
- package/button/secondary-button-static/secondary-button-static.component.js +18 -14
- package/button/secondary-button-static.js +4 -4
- package/button/secondary-button.js +6 -6
- package/button/transparent-button/transparent-button.component.js +18 -14
- package/button/transparent-button-link/transparent-button-link.component.js +18 -14
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static/transparent-button-static.component.js +18 -14
- package/button/transparent-button-static.js +4 -4
- package/button/transparent-button.js +4 -4
- package/button.js +20 -56
- package/button.pure.js +18 -42
- package/calendar/calendar/calendar.component.js +2 -1227
- package/calendar/calendar-day/calendar-day.component.js +2 -98
- package/calendar/calendar-day.js +4 -7
- package/calendar/calendar.js +4 -9
- package/calendar-day.component-DqAXvoP3.js +113 -0
- package/calendar.component-BgZDy-rX.js +1246 -0
- package/calendar.js +6 -10
- package/calendar.pure.js +3 -7
- package/card/card/card.component.js +2 -48
- package/card/card-badge/card-badge.component.js +2 -48
- package/card/card-badge.js +4 -7
- package/card/card-button/card-button.component.js +11 -10
- package/card/card-button.js +3 -6
- package/card/card-link/card-link.component.js +11 -10
- package/card/card-link.js +3 -6
- package/card/card.js +4 -7
- package/card/common/card-action-common.js +2 -63
- package/card/common.js +5 -6
- package/card-action-common-GpkaNYtV.js +88 -0
- package/card-badge.component-D_PI9Ega.js +65 -0
- package/card.component-Dt2YFmd3.js +62 -0
- package/card.js +9 -16
- package/card.pure.js +5 -11
- package/carousel/carousel/carousel.component.js +2 -88
- package/carousel/carousel-item/carousel-item.component.js +2 -18
- package/carousel/carousel-item.js +4 -7
- package/carousel/carousel-list/carousel-list.component.js +2 -90
- package/carousel/carousel-list.js +4 -7
- package/carousel/carousel.js +4 -7
- package/carousel-item.component-kv3rY8B-.js +25 -0
- package/carousel-list.component-DMMk66SP.js +91 -0
- package/carousel.component-Bd0iGUbf.js +97 -0
- package/carousel.js +7 -11
- package/carousel.pure.js +4 -8
- package/checkbox/checkbox-group.js +2 -3
- package/checkbox/checkbox-panel.js +2 -3
- package/checkbox/checkbox.component.js +3 -91
- package/checkbox/checkbox.js +5 -7
- package/checkbox/common/checkbox-common.js +2 -57
- package/checkbox/common.js +5 -7
- package/checkbox-common-D9htxWLZ.js +68 -0
- package/checkbox-group/checkbox-group.component.js +2 -101
- package/checkbox-group.component-CNAwwaS0.js +146 -0
- package/checkbox-group.js +5 -4
- package/checkbox-group.pure.js +2 -4
- package/checkbox-panel/checkbox-panel.component.js +63 -48
- package/checkbox-panel.js +4 -3
- package/checkbox-panel.pure.js +2 -4
- package/checkbox.component-CJcC5JnN.js +125 -0
- package/checkbox.js +10 -14
- package/checkbox.pure.js +3 -7
- package/chip/chip/chip.component.js +2 -73
- package/chip/chip-group/chip-group.component.js +2 -267
- package/chip/chip-group.js +4 -9
- package/chip/chip.js +4 -7
- package/chip-group.component-D2AZqL3m.js +290 -0
- package/chip-label/chip-label.component.js +2 -56
- package/chip-label.component-DBN4jfW7.js +80 -0
- package/chip-label.js +5 -4
- package/chip-label.pure.js +2 -4
- package/chip.component-BNOs8T6O.js +94 -0
- package/chip.js +6 -10
- package/chip.pure.js +3 -7
- package/clock/clock.component.js +2 -153
- package/clock.component-DDaWbXHW.js +148 -0
- package/clock.js +5 -4
- package/clock.pure.js +2 -4
- package/common-CI_BB6sF.js +5 -0
- package/compact-paginator.component-BxSy5YXY.js +45 -0
- package/container/container/container.component.js +2 -76
- package/container/container.js +4 -7
- package/container/sticky-bar/sticky-bar.component.js +2 -122
- package/container/sticky-bar.js +4 -7
- package/container.component-DXFIvseq.js +117 -0
- package/container.js +6 -8
- package/container.pure.js +3 -6
- package/core/a11y/arrow-navigation.js +45 -33
- package/core/a11y/fake-event-detection.js +8 -9
- package/core/a11y/focus-trap-controller.js +69 -91
- package/core/a11y/focus-visible-within-controller.js +18 -18
- package/core/a11y/focus.js +13 -13
- package/core/a11y/input-modality-detector.js +42 -47
- package/core/a11y/interactivity-checker.js +61 -96
- package/core/a11y/live-announcer.js +29 -40
- package/core/a11y.js +9 -26
- package/core/base-elements/action-base-element.js +29 -37
- package/core/base-elements/button-base-element.js +165 -145
- package/core/base-elements/element.js +28 -63
- package/core/base-elements/link-base-element.js +186 -119
- package/core/base-elements/open-close-base-element.js +40 -42
- package/core/base-elements.js +6 -13
- package/core/config/config.js +8 -9
- package/core/config.js +2 -5
- package/core/controllers/escapable-overlay-controller.js +23 -25
- package/core/controllers/id-reference-controller.js +50 -59
- package/core/controllers/inert-controller.js +55 -57
- package/core/controllers/language-controller.js +53 -38
- package/core/controllers/media-matchers-controller.js +82 -96
- package/core/controllers/overlay-position-controller.js +215 -222
- package/core/controllers/property-watcher-controller.js +55 -59
- package/core/controllers/slot-state-controller.js +34 -36
- package/core/controllers.js +7 -28
- package/core/datetime/date-adapter.js +61 -135
- package/core/datetime/native-date-adapter.js +91 -140
- package/core/datetime/temporal-date-adapter.js +108 -144
- package/core/datetime.js +4 -16
- package/core/decorators/base.js +0 -1
- package/core/decorators/force-type.js +12 -16
- package/core/decorators/get-override.js +10 -13
- package/core/decorators/handle-distinct-change.js +12 -15
- package/core/decorators/host-attributes.js +15 -16
- package/core/decorators/id-reference.js +65 -75
- package/core/decorators/omit-empty-converter.js +7 -9
- package/core/decorators/plain-date.js +21 -25
- package/core/decorators.js +8 -17
- package/core/dom/animation.js +8 -9
- package/core/dom/contains-pierce-shadow-dom.js +10 -11
- package/core/dom/lean-context.js +4 -4
- package/core/dom/platform.js +8 -18
- package/core/dom/queue-dom-content-loaded.js +6 -6
- package/core/dom/scroll.js +14 -16
- package/core/dom/set-or-remove-attribute.js +5 -5
- package/core/dom.js +6 -25
- package/core/eventing/composed-path-has-attribute.js +6 -7
- package/core/eventing/event-target.js +5 -5
- package/core/eventing/form-element-handlers.js +5 -5
- package/core/eventing/forward-event.js +6 -6
- package/core/eventing/is-event-prevented.js +5 -5
- package/core/eventing/throttle.js +10 -10
- package/core/eventing.js +7 -14
- package/core/i18n/i18n.js +634 -738
- package/core/i18n.js +2 -104
- package/core/images.js +14 -14
- package/core/interfaces.js +0 -1
- package/core/mixins/animation-complete-mixin.js +34 -42
- package/core/mixins/constructor.js +0 -1
- package/core/mixins/disabled-mixin.js +91 -74
- package/core/mixins/element-internals-mixin.js +149 -155
- package/core/mixins/form-associated-checkbox-mixin.js +106 -93
- package/core/mixins/form-associated-input-mixin.js +202 -193
- package/core/mixins/form-associated-mixin.js +168 -226
- package/core/mixins/form-associated-radio-button-mixin.js +152 -168
- package/core/mixins/hydration-mixin.js +27 -37
- package/core/mixins/named-slot-list-mixin.js +77 -95
- package/core/mixins/negative-mixin.js +45 -33
- package/core/mixins/panel-mixin.js +109 -70
- package/core/mixins/readonly-mixin.js +40 -34
- package/core/mixins/required-mixin.js +48 -35
- package/core/mixins/selection-panel-mixin.js +36 -39
- package/core/mixins/update-scheduler-mixin.js +20 -21
- package/core/mixins.js +21 -41
- package/core/overlay/overlay-option-panel.js +15 -16
- package/core/overlay/overlay-outside-pointer-event-listener.js +34 -37
- package/core/overlay/overlay-trigger-attributes.js +11 -14
- package/core/overlay/overlay.js +6 -6
- package/core/overlay/position.js +53 -49
- package/core/overlay.js +6 -19
- package/core/styles.js +5 -5
- package/core/testing/event-spy.js +46 -50
- package/core/testing/mocha-extensions.js +7 -10
- package/core/testing/wait-for-condition.js +10 -12
- package/core/testing/wait-for-image-ready.js +15 -16
- package/core/testing/wait-for-render.js +12 -13
- package/core/testing.js +6 -14
- package/custom-elements.json +746 -746
- package/date-input/date-input.component.js +2 -166
- package/date-input.component-zZtnd9Og.js +205 -0
- package/date-input.js +5 -4
- package/date-input.pure.js +2 -4
- package/datepicker/common/datepicker-button.js +2 -102
- package/datepicker/common.js +5 -8
- package/datepicker/datepicker/datepicker.component.js +2 -120
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +27 -23
- package/datepicker/datepicker-next-day.js +3 -6
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +27 -23
- package/datepicker/datepicker-previous-day.js +3 -6
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +66 -51
- package/datepicker/datepicker-toggle.js +3 -6
- package/datepicker/datepicker.js +4 -7
- package/datepicker-button-C1TrzFl-.js +109 -0
- package/datepicker.component-cmdnlVgf.js +156 -0
- package/datepicker.js +9 -18
- package/datepicker.pure.js +5 -13
- package/development/accordion/accordion.component.js +2 -132
- package/development/accordion.component-BIFcgIa0.js +172 -0
- package/development/accordion.js +8 -5
- package/development/accordion.pure.js +2 -5
- package/development/action-group/action-group.component.js +2 -305
- package/development/action-group.component-CuhO6yb9.js +379 -0
- package/development/action-group.js +8 -5
- package/development/action-group.pure.js +2 -5
- package/development/alert/alert/alert.component.js +2 -385
- package/development/alert/alert-group/alert-group.component.js +2 -166
- package/development/alert/alert-group.js +7 -5
- package/development/alert/alert.js +7 -5
- package/development/alert-group.component-BlrlsRB8.js +219 -0
- package/development/alert.component-CJ2yLyOY.js +411 -0
- package/development/alert.js +9 -7
- package/development/alert.pure.js +3 -7
- package/development/autocomplete/autocomplete-base-element.js +2 -897
- package/development/autocomplete/autocomplete.component.js +82 -72
- package/development/autocomplete-base-element-DCfmuVY6.js +960 -0
- package/development/autocomplete.js +8 -6
- package/development/autocomplete.pure.js +2 -6
- package/development/block-link-common-FvD8So7p.js +145 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +2 -77
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -263
- package/development/breadcrumb/breadcrumb-group.js +7 -5
- package/development/breadcrumb/breadcrumb.js +7 -5
- package/development/breadcrumb-group.component-DjsoMTPI.js +278 -0
- package/development/breadcrumb.component-DvOf-PiO.js +89 -0
- package/development/breadcrumb.js +9 -7
- package/development/breadcrumb.pure.js +3 -7
- package/development/button/accent-button/accent-button.component.js +24 -13
- package/development/button/accent-button-link/accent-button-link.component.js +24 -13
- package/development/button/accent-button-link.js +9 -7
- package/development/button/accent-button-static/accent-button-static.component.js +24 -13
- package/development/button/accent-button-static.js +9 -7
- package/development/button/accent-button.js +9 -7
- package/development/button/button/button.component.js +23 -12
- package/development/button/button-link/button-link.component.js +23 -12
- package/development/button/button-link.js +9 -7
- package/development/button/button-static/button-static.component.js +23 -12
- package/development/button/button-static.js +9 -7
- package/development/button/button.js +9 -7
- package/development/button/common/button-common.js +104 -85
- package/development/button/common.js +2 -12
- package/development/button/mini-button/mini-button.component.js +28 -17
- package/development/button/mini-button-group/mini-button-group.component.js +2 -141
- package/development/button/mini-button-group.js +9 -7
- package/development/button/mini-button-link/mini-button-link.component.js +2 -34
- package/development/button/mini-button-link.js +9 -7
- package/development/button/mini-button.js +9 -7
- package/development/button/secondary-button/secondary-button.component.js +23 -12
- package/development/button/secondary-button-link/secondary-button-link.component.js +23 -12
- package/development/button/secondary-button-link.js +9 -7
- package/development/button/secondary-button-static/secondary-button-static.component.js +23 -12
- package/development/button/secondary-button-static.js +9 -7
- package/development/button/secondary-button.js +9 -7
- package/development/button/transparent-button/transparent-button.component.js +23 -12
- package/development/button/transparent-button-link/transparent-button-link.component.js +23 -12
- package/development/button/transparent-button-link.js +9 -7
- package/development/button/transparent-button-static/transparent-button-static.component.js +23 -12
- package/development/button/transparent-button-static.js +9 -7
- package/development/button/transparent-button.js +9 -7
- package/development/button.js +10 -29
- package/development/button.pure.js +4 -29
- package/development/calendar/calendar/calendar.component.js +2 -1984
- package/development/calendar/calendar-day/calendar-day.component.js +2 -248
- package/development/calendar/calendar-day.js +7 -5
- package/development/calendar/calendar.js +7 -7
- package/development/calendar-day.component-De9Xn3-q.js +283 -0
- package/development/calendar.component-PHpgLc0z.js +2458 -0
- package/development/calendar.js +9 -9
- package/development/calendar.pure.js +3 -8
- package/development/card/card/card.component.js +2 -233
- package/development/card/card-badge/card-badge.component.js +2 -119
- package/development/card/card-badge.js +7 -5
- package/development/card/card-button/card-button.component.js +19 -11
- package/development/card/card-button.js +6 -4
- package/development/card/card-link/card-link.component.js +19 -11
- package/development/card/card-link.js +6 -4
- package/development/card/card.js +7 -5
- package/development/card/common/card-action-common.js +2 -121
- package/development/card/common.js +6 -5
- package/development/card-action-common-DqBn3bPy.js +147 -0
- package/development/card-badge.component-Cs4dow18.js +146 -0
- package/development/card.component-CeOZXXWU.js +258 -0
- package/development/card.js +10 -11
- package/development/card.pure.js +4 -11
- package/development/carousel/carousel/carousel.component.js +2 -160
- package/development/carousel/carousel-item/carousel-item.component.js +2 -32
- package/development/carousel/carousel-item.js +7 -5
- package/development/carousel/carousel-list/carousel-list.component.js +2 -157
- package/development/carousel/carousel-list.js +7 -5
- package/development/carousel/carousel.js +7 -5
- package/development/carousel-item.component-DOIXA2QK.js +47 -0
- package/development/carousel-list.component-7Z3dYtAF.js +160 -0
- package/development/carousel.component-b4C-hxkj.js +169 -0
- package/development/carousel.js +10 -9
- package/development/carousel.pure.js +4 -9
- package/development/checkbox/checkbox-group.js +5 -1
- package/development/checkbox/checkbox-panel.js +5 -1
- package/development/checkbox/checkbox.component.js +3 -141
- package/development/checkbox/checkbox.js +8 -5
- package/development/checkbox/common/checkbox-common.js +2 -137
- package/development/checkbox/common.js +6 -6
- package/development/checkbox-common-DD7r8g0_.js +147 -0
- package/development/checkbox-group/checkbox-group.component.js +2 -212
- package/development/checkbox-group.component-CRZO7CEc.js +265 -0
- package/development/checkbox-group.js +8 -5
- package/development/checkbox-group.pure.js +2 -5
- package/development/checkbox-panel/checkbox-panel.component.js +81 -54
- package/development/checkbox-panel.js +7 -4
- package/development/checkbox-panel.pure.js +1 -4
- package/development/checkbox.component-B43Akyck.js +193 -0
- package/development/checkbox.js +12 -11
- package/development/checkbox.pure.js +3 -8
- package/development/chip/chip/chip.component.js +2 -164
- package/development/chip/chip-group/chip-group.component.js +2 -464
- package/development/chip/chip-group.js +7 -7
- package/development/chip/chip.js +7 -5
- package/development/chip-group.component-DzCCcoOw.js +506 -0
- package/development/chip-label/chip-label.component.js +2 -131
- package/development/chip-label.component-jN_Fulv_.js +165 -0
- package/development/chip-label.js +8 -5
- package/development/chip-label.pure.js +2 -5
- package/development/chip.component-Bn7ffNEr.js +191 -0
- package/development/chip.js +9 -9
- package/development/chip.pure.js +3 -8
- package/development/clock/clock.component.js +2 -362
- package/development/clock.component-btjeVAaa.js +392 -0
- package/development/clock.js +8 -5
- package/development/clock.pure.js +2 -5
- package/development/common-Da_cep8M.js +565 -0
- package/development/compact-paginator.component-CCDP0TMd.js +96 -0
- package/development/container/container/container.component.js +2 -182
- package/development/container/container.js +7 -5
- package/development/container/sticky-bar/sticky-bar.component.js +2 -357
- package/development/container/sticky-bar.js +7 -5
- package/development/container.component-CVm8-HZ4.js +238 -0
- package/development/container.js +9 -7
- package/development/container.pure.js +3 -7
- package/development/core/a11y/arrow-navigation.js +67 -28
- package/development/core/a11y/fake-event-detection.js +10 -8
- package/development/core/a11y/focus-trap-controller.js +104 -120
- package/development/core/a11y/focus-visible-within-controller.js +25 -24
- package/development/core/a11y/focus.js +14 -13
- package/development/core/a11y/input-modality-detector.js +128 -75
- package/development/core/a11y/interactivity-checker.js +115 -108
- package/development/core/a11y/live-announcer.js +76 -80
- package/development/core/a11y.js +3 -21
- package/development/core/base-elements/action-base-element.js +37 -42
- package/development/core/base-elements/button-base-element.js +247 -205
- package/development/core/base-elements/element.js +69 -67
- package/development/core/base-elements/link-base-element.js +226 -150
- package/development/core/base-elements/open-close-base-element.js +54 -49
- package/development/core/base-elements.js +2 -10
- package/development/core/config/config.js +9 -11
- package/development/core/config.js +1 -5
- package/development/core/controllers/escapable-overlay-controller.js +34 -36
- package/development/core/controllers/id-reference-controller.js +76 -81
- package/development/core/controllers/inert-controller.js +99 -105
- package/development/core/controllers/language-controller.js +76 -66
- package/development/core/controllers/media-matchers-controller.js +145 -138
- package/development/core/controllers/overlay-position-controller.js +297 -283
- package/development/core/controllers/property-watcher-controller.js +94 -119
- package/development/core/controllers/slot-state-controller.js +75 -63
- package/development/core/controllers.js +1 -23
- package/development/core/datetime/date-adapter.js +143 -166
- package/development/core/datetime/native-date-adapter.js +142 -148
- package/development/core/datetime/temporal-date-adapter.js +162 -149
- package/development/core/datetime.js +1 -14
- package/development/core/decorators/base.js +0 -2
- package/development/core/decorators/force-type.js +24 -27
- package/development/core/decorators/get-override.js +17 -17
- package/development/core/decorators/handle-distinct-change.js +20 -21
- package/development/core/decorators/host-attributes.js +37 -26
- package/development/core/decorators/id-reference.js +115 -114
- package/development/core/decorators/omit-empty-converter.js +13 -9
- package/development/core/decorators/plain-date.js +36 -31
- package/development/core/decorators.js +1 -11
- package/development/core/dom/animation.js +8 -9
- package/development/core/dom/contains-pierce-shadow-dom.js +12 -12
- package/development/core/dom/lean-context.js +9 -5
- package/development/core/dom/platform.js +35 -28
- package/development/core/dom/queue-dom-content-loaded.js +11 -10
- package/development/core/dom/scroll.js +34 -34
- package/development/core/dom/set-or-remove-attribute.js +13 -9
- package/development/core/dom.js +1 -21
- package/development/core/eventing/composed-path-has-attribute.js +17 -10
- package/development/core/eventing/event-target.js +7 -5
- package/development/core/eventing/form-element-handlers.js +10 -7
- package/development/core/eventing/forward-event.js +12 -7
- package/development/core/eventing/is-event-prevented.js +8 -6
- package/development/core/eventing/throttle.js +16 -17
- package/development/core/eventing.js +1 -9
- package/development/core/i18n/i18n.js +770 -875
- package/development/core/i18n.js +1 -104
- package/development/core/images.js +20 -15
- package/development/core/interfaces.js +0 -2
- package/development/core/mixins/animation-complete-mixin.js +55 -51
- package/development/core/mixins/constructor.js +0 -2
- package/development/core/mixins/disabled-mixin.js +124 -101
- package/development/core/mixins/element-internals-mixin.js +212 -225
- package/development/core/mixins/form-associated-checkbox-mixin.js +160 -141
- package/development/core/mixins/form-associated-input-mixin.js +334 -314
- package/development/core/mixins/form-associated-mixin.js +287 -279
- package/development/core/mixins/form-associated-radio-button-mixin.js +260 -247
- package/development/core/mixins/hydration-mixin.js +58 -55
- package/development/core/mixins/named-slot-list-mixin.js +116 -114
- package/development/core/mixins/negative-mixin.js +56 -41
- package/development/core/mixins/panel-mixin.js +142 -93
- package/development/core/mixins/readonly-mixin.js +54 -43
- package/development/core/mixins/required-mixin.js +65 -46
- package/development/core/mixins/selection-panel-mixin.js +50 -55
- package/development/core/mixins/update-scheduler-mixin.js +30 -25
- package/development/core/mixins.js +10 -29
- package/development/core/overlay/overlay-option-panel.js +34 -26
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +64 -60
- package/development/core/overlay/overlay-trigger-attributes.js +42 -39
- package/development/core/overlay/overlay.js +10 -5
- package/development/core/overlay/position.js +143 -117
- package/development/core/overlay.js +2 -16
- package/development/core/styles.js +6 -5
- package/development/core/testing/event-spy.js +66 -67
- package/development/core/testing/mocha-extensions.js +15 -13
- package/development/core/testing/wait-for-condition.js +14 -17
- package/development/core/testing/wait-for-image-ready.js +20 -27
- package/development/core/testing/wait-for-render.js +30 -18
- package/development/core/testing.js +1 -10
- package/development/date-input/date-input.component.js +2 -278
- package/development/date-input.component-CqsEOZfb.js +338 -0
- package/development/date-input.js +8 -5
- package/development/date-input.pure.js +2 -5
- package/development/datepicker/common/datepicker-button.js +2 -155
- package/development/datepicker/common.js +6 -7
- package/development/datepicker/datepicker/datepicker.component.js +2 -180
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +35 -30
- package/development/datepicker/datepicker-next-day.js +6 -4
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +35 -30
- package/development/datepicker/datepicker-previous-day.js +6 -4
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +79 -67
- package/development/datepicker/datepicker-toggle.js +6 -4
- package/development/datepicker/datepicker.js +7 -5
- package/development/datepicker-button-BORzfDaA.js +167 -0
- package/development/datepicker.component-CuFtPZg9.js +223 -0
- package/development/datepicker.js +9 -12
- package/development/datepicker.pure.js +3 -12
- package/development/dialog/dialog/dialog.component.js +2 -383
- package/development/dialog/dialog-actions/dialog-actions.component.js +2 -42
- package/development/dialog/dialog-actions.js +7 -5
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +2 -36
- package/development/dialog/dialog-close-button.js +7 -5
- package/development/dialog/dialog-content/dialog-content.component.js +2 -31
- package/development/dialog/dialog-content.js +7 -5
- package/development/dialog/dialog-title/dialog-title.component.js +2 -39
- package/development/dialog/dialog-title.js +7 -5
- package/development/dialog/dialog.js +7 -8
- package/development/dialog-actions.component-Mbx-Bs3t.js +55 -0
- package/development/dialog-close-button.component-B1dPHPy2.js +48 -0
- package/development/dialog-content.component-qP09Yo_N.js +42 -0
- package/development/dialog-title.component-B4u2w8h5.js +50 -0
- package/development/dialog.component-DaM1FSHB.js +403 -0
- package/development/dialog.js +12 -16
- package/development/dialog.pure.js +6 -16
- package/development/divider/divider.component.js +2 -73
- package/development/divider.component-Ddzlu6Fw.js +95 -0
- package/development/divider.js +8 -5
- package/development/divider.pure.js +2 -5
- package/development/error.component-C76eZnXo.js +93 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +2 -417
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -70
- package/development/expansion-panel/expansion-panel-content.js +7 -5
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -170
- package/development/expansion-panel/expansion-panel-header.js +7 -5
- package/development/expansion-panel/expansion-panel.js +7 -5
- package/development/expansion-panel-content.component-DTZk3ZKL.js +77 -0
- package/development/expansion-panel-header.component-C7ymZCux.js +175 -0
- package/development/expansion-panel.component-xUWTKeaC.js +489 -0
- package/development/expansion-panel.js +10 -9
- package/development/expansion-panel.pure.js +4 -9
- package/development/file-selector/common/file-selector-common.js +2 -431
- package/development/file-selector/common.js +6 -6
- package/development/file-selector/file-selector/file-selector.component.js +27 -18
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -126
- package/development/file-selector/file-selector-dropzone.js +7 -5
- package/development/file-selector/file-selector.js +6 -4
- package/development/file-selector-common-qMfAccOd.js +512 -0
- package/development/file-selector-dropzone.component-HDUIUSQI.js +154 -0
- package/development/file-selector.js +9 -9
- package/development/file-selector.pure.js +3 -9
- package/development/flip-card/flip-card/flip-card.component.js +2 -306
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -69
- package/development/flip-card/flip-card-details.js +7 -5
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -124
- package/development/flip-card/flip-card-summary.js +7 -5
- package/development/flip-card/flip-card.js +7 -5
- package/development/flip-card-details.component-BilGh5Yb.js +85 -0
- package/development/flip-card-summary.component-DDDnvs_c.js +151 -0
- package/development/flip-card.component-CdRzb7IT.js +334 -0
- package/development/flip-card.js +10 -9
- package/development/flip-card.pure.js +4 -9
- package/development/footer/footer.component.js +2 -251
- package/development/footer.component-C057PwF1.js +310 -0
- package/development/footer.js +8 -5
- package/development/footer.pure.js +2 -5
- package/development/form-field/error/error.component.js +2 -83
- package/development/form-field/error.js +7 -5
- package/development/form-field/form-field/form-field.component.js +2 -892
- package/development/form-field/form-field-clear/form-field-clear.component.js +49 -41
- package/development/form-field/form-field-clear.js +6 -4
- package/development/form-field/form-field.js +7 -7
- package/development/form-field.component-D4dQ8sCh.js +1009 -0
- package/development/form-field.js +9 -10
- package/development/form-field.pure.js +3 -9
- package/development/header/common/header-action-common.js +2 -329
- package/development/header/common.js +6 -5
- package/development/header/header/header.component.js +2 -385
- package/development/header/header-button/header-button.component.js +15 -7
- package/development/header/header-button.js +6 -4
- package/development/header/header-environment/header-environment.component.js +2 -88
- package/development/header/header-environment.js +7 -5
- package/development/header/header-link/header-link.component.js +15 -7
- package/development/header/header-link.js +6 -4
- package/development/header/header.js +7 -5
- package/development/header-action-common-Dff8K0RB.js +346 -0
- package/development/header-environment.component-DYnJkxCZ.js +101 -0
- package/development/header.component-DYls7wGO.js +446 -0
- package/development/header.js +10 -11
- package/development/header.pure.js +4 -11
- package/development/icon/icon-base.js +2 -174
- package/development/icon/icon-name-mixin.js +75 -59
- package/development/icon/icon-request.js +31 -38
- package/development/icon/icon-validate.js +36 -45
- package/development/icon/icon.component.js +119 -94
- package/development/icon-base-CcQCgmqX.js +206 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -74
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-button.js +6 -4
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -30
- package/development/icon-sidebar/icon-sidebar-container.js +7 -5
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -22
- package/development/icon-sidebar/icon-sidebar-content.js +7 -5
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-link.js +6 -4
- package/development/icon-sidebar/icon-sidebar.js +7 -5
- package/development/icon-sidebar-container.component-BJHjpF-Q.js +41 -0
- package/development/icon-sidebar-content.component-C2wreczL.js +33 -0
- package/development/icon-sidebar.component-PcmjRlDp.js +100 -0
- package/development/icon-sidebar.js +10 -11
- package/development/icon-sidebar.pure.js +4 -11
- package/development/icon.js +10 -12
- package/development/icon.pure.js +4 -12
- package/development/image/image.component.js +2 -648
- package/development/image.component-fvsSR3Df.js +820 -0
- package/development/image.js +8 -5
- package/development/image.pure.js +2 -5
- package/development/inline-link-common-CyTcO5MN.js +52 -0
- package/development/journey-header/journey-header.component.js +2 -158
- package/development/journey-header.component-BB8WYOqH.js +217 -0
- package/development/journey-header.js +8 -5
- package/development/journey-header.pure.js +2 -5
- package/development/lead-container/lead-container.component.js +2 -108
- package/development/lead-container.component-BGf8oqw7.js +122 -0
- package/development/lead-container.js +8 -5
- package/development/lead-container.pure.js +2 -5
- package/development/link/block-link/block-link.component.js +15 -7
- package/development/link/block-link-button/block-link-button.component.js +15 -7
- package/development/link/block-link-button.js +9 -7
- package/development/link/block-link-static/block-link-static.component.js +15 -7
- package/development/link/block-link-static.js +9 -7
- package/development/link/block-link.js +9 -7
- package/development/link/common/block-link-common.js +3 -124
- package/development/link/common/inline-link-common.js +3 -44
- package/development/link/common/link-common.js +2 -10
- package/development/link/common.js +4 -9
- package/development/link/link/link.component.js +14 -7
- package/development/link/link-button/link-button.component.js +14 -7
- package/development/link/link-button.js +9 -7
- package/development/link/link-static/link-static.component.js +14 -7
- package/development/link/link-static.js +9 -7
- package/development/link/link.js +9 -7
- package/development/link-common-5ob2nFyv.js +124 -0
- package/development/link-list/common/link-list-base.js +2 -131
- package/development/link-list/common.js +6 -6
- package/development/link-list/link-list-anchor.js +8 -5
- package/development/link-list/link-list.component.js +3 -152
- package/development/link-list/link-list.js +8 -5
- package/development/link-list-anchor/link-list-anchor.component.js +2 -61
- package/development/link-list-anchor.component-rAMp5_jH.js +77 -0
- package/development/link-list-anchor.js +8 -5
- package/development/link-list-anchor.pure.js +2 -5
- package/development/link-list-base-DxYNcAX7.js +172 -0
- package/development/link-list.component-DD6UjlwD.js +194 -0
- package/development/link-list.js +11 -9
- package/development/link-list.pure.js +3 -8
- package/development/link.js +10 -15
- package/development/link.pure.js +5 -15
- package/development/loading-indicator/loading-indicator.component.js +2 -243
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +2 -120
- package/development/loading-indicator-circle.component-CS32gPvE.js +144 -0
- package/development/loading-indicator-circle.js +8 -5
- package/development/loading-indicator-circle.pure.js +2 -5
- package/development/loading-indicator.component-CTRZkUdX.js +278 -0
- package/development/loading-indicator.js +8 -5
- package/development/loading-indicator.pure.js +2 -5
- package/development/logo/logo.component.js +2 -129
- package/development/logo.component-Cp-EyVpA.js +166 -0
- package/development/logo.js +8 -5
- package/development/logo.pure.js +2 -5
- package/development/map-container/map-container.component.js +2 -264
- package/development/map-container.component-BEAIuo5H.js +307 -0
- package/development/map-container.js +8 -5
- package/development/map-container.pure.js +2 -5
- package/development/menu/common/menu-action-common.js +2 -144
- package/development/menu/common.js +6 -5
- package/development/menu/menu/menu.component.js +2 -683
- package/development/menu/menu-button/menu-button.component.js +20 -8
- package/development/menu/menu-button.js +6 -4
- package/development/menu/menu-link/menu-link.component.js +21 -11
- package/development/menu/menu-link.js +6 -4
- package/development/menu/menu.js +7 -5
- package/development/menu-action-common-CyBv0NwR.js +148 -0
- package/development/menu.component-GHJHhE9D.js +638 -0
- package/development/menu.js +9 -9
- package/development/menu.pure.js +3 -9
- package/development/message/message.component.js +2 -67
- package/development/message.component-uv9eI2gl.js +82 -0
- package/development/message.js +8 -5
- package/development/message.pure.js +2 -5
- package/development/mini-button-group.component-ytJZBjmr.js +174 -0
- package/development/mini-button-link.component-DZOOdeZt.js +47 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +2 -188
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -166
- package/development/mini-calendar/mini-calendar-day.js +7 -5
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -135
- package/development/mini-calendar/mini-calendar-month.js +7 -5
- package/development/mini-calendar/mini-calendar.js +7 -5
- package/development/mini-calendar-day.component-DLP7Pa6R.js +213 -0
- package/development/mini-calendar-month.component-C1jsGlJ2.js +150 -0
- package/development/mini-calendar.component-BzqjMchx.js +192 -0
- package/development/mini-calendar.js +10 -9
- package/development/mini-calendar.pure.js +4 -9
- package/development/navigation/common/navigation-action-common.js +2 -165
- package/development/navigation/common.js +6 -5
- package/development/navigation/navigation/navigation.component.js +2 -571
- package/development/navigation/navigation-button/navigation-button.component.js +14 -7
- package/development/navigation/navigation-button.js +6 -4
- package/development/navigation/navigation-link/navigation-link.component.js +14 -7
- package/development/navigation/navigation-link.js +6 -4
- package/development/navigation/navigation-list/navigation-list.component.js +2 -102
- package/development/navigation/navigation-list.js +7 -5
- package/development/navigation/navigation-marker/navigation-marker.component.js +2 -199
- package/development/navigation/navigation-marker.js +7 -5
- package/development/navigation/navigation-section/navigation-section.component.js +2 -588
- package/development/navigation/navigation-section.js +7 -5
- package/development/navigation/navigation.js +7 -5
- package/development/navigation-action-common-saGbvoji.js +178 -0
- package/development/navigation-list.component-AFM4omXQ.js +124 -0
- package/development/navigation-marker.component-BvC73IoI.js +207 -0
- package/development/navigation-section.component-B-6XU2X5.js +600 -0
- package/development/navigation.component-_gUhpPyO.js +585 -0
- package/development/navigation.js +12 -15
- package/development/navigation.pure.js +6 -15
- package/development/notification/notification.component.js +2 -496
- package/development/notification.component-B5EBKKf8.js +530 -0
- package/development/notification.js +8 -5
- package/development/notification.pure.js +2 -5
- package/development/optgroup-base-element-CjwAXrC5.js +181 -0
- package/development/option/optgroup/optgroup-base-element.js +2 -159
- package/development/option/optgroup/optgroup.component.js +40 -37
- package/development/option/optgroup.js +7 -6
- package/development/option/option/option-base-element.js +349 -276
- package/development/option/option/option.component.js +2 -241
- package/development/option/option-hint/option-hint.component.js +2 -44
- package/development/option/option-hint.js +7 -5
- package/development/option/option.js +7 -6
- package/development/option-hint.component-CHS5Z_sK.js +55 -0
- package/development/option.component-BvOsW8Gn.js +248 -0
- package/development/option.js +10 -11
- package/development/option.pure.js +4 -11
- package/development/overlay/overlay-base-element.js +238 -247
- package/development/overlay/overlay.component.js +2 -374
- package/development/overlay.component-RS_v3xaA.js +411 -0
- package/development/overlay.js +8 -9
- package/development/overlay.pure.js +2 -9
- package/development/paginator/common/paginator-common.js +376 -272
- package/development/paginator/common.js +5 -4
- package/development/paginator/compact-paginator/compact-paginator.component.js +2 -87
- package/development/paginator/compact-paginator.js +7 -5
- package/development/paginator/paginator/paginator.component.js +2 -444
- package/development/paginator/paginator.js +7 -5
- package/development/paginator.component-cRqJW9bc.js +492 -0
- package/development/paginator.js +9 -8
- package/development/paginator.pure.js +3 -8
- package/development/popover/popover.component.js +2 -718
- package/development/popover.component-BTfbUEzF.js +745 -0
- package/development/popover.js +8 -7
- package/development/popover.pure.js +2 -6
- package/development/radio-button/common/radio-button-common.js +2 -203
- package/development/radio-button/common.js +6 -6
- package/development/radio-button/radio-button-group.js +5 -1
- package/development/radio-button/radio-button-panel.js +5 -1
- package/development/radio-button/radio-button.component.js +3 -97
- package/development/radio-button/radio-button.js +8 -5
- package/development/radio-button-common-CjbP9yKf.js +231 -0
- package/development/radio-button-group/radio-button-group.component.js +2 -308
- package/development/radio-button-group.component-5jDkRqSJ.js +404 -0
- package/development/radio-button-group.js +8 -5
- package/development/radio-button-group.pure.js +2 -5
- package/development/radio-button-panel/radio-button-panel.component.js +106 -82
- package/development/radio-button-panel.js +7 -4
- package/development/radio-button-panel.pure.js +1 -4
- package/development/radio-button.component-CVATlwTb.js +137 -0
- package/development/radio-button.js +12 -11
- package/development/radio-button.pure.js +3 -8
- package/development/sbb-tokens-Dajio3u-.js +13 -0
- package/development/screen-reader-only/screen-reader-only.component.js +2 -25
- package/development/screen-reader-only.component-D-KOAjrF.js +36 -0
- package/development/screen-reader-only.js +8 -5
- package/development/screen-reader-only.pure.js +2 -5
- package/development/select/select.component.js +2 -1087
- package/development/select.component-DyF5Tw3J.js +1084 -0
- package/development/select.js +8 -5
- package/development/select.pure.js +2 -5
- package/development/selection-action-panel/selection-action-panel.component.js +2 -125
- package/development/selection-action-panel.component-elyz1Xsb.js +134 -0
- package/development/selection-action-panel.js +8 -5
- package/development/selection-action-panel.pure.js +2 -5
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +2 -306
- package/development/selection-expansion-panel.component-hL2jyaAT.js +326 -0
- package/development/selection-expansion-panel.js +8 -5
- package/development/selection-expansion-panel.pure.js +2 -5
- package/development/sidebar/common/styles.js +2 -7
- package/development/sidebar/common.js +6 -7
- package/development/sidebar/sidebar/sidebar.component.js +2 -473
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -36
- package/development/sidebar/sidebar-close-button.js +7 -5
- package/development/sidebar/sidebar-container/sidebar-container.component.js +2 -147
- package/development/sidebar/sidebar-container.js +7 -5
- package/development/sidebar/sidebar-content/sidebar-content.component.js +2 -25
- package/development/sidebar/sidebar-content.js +7 -5
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -53
- package/development/sidebar/sidebar-title.js +7 -5
- package/development/sidebar/sidebar.js +7 -5
- package/development/sidebar-close-button.component-j4wY_hAt.js +48 -0
- package/development/sidebar-container.component-CToGMqKH.js +136 -0
- package/development/sidebar-content.component-s3GsQtNv.js +37 -0
- package/development/sidebar-title.component-Htm_hqKX.js +76 -0
- package/development/sidebar.component-Ct6TAsph.js +506 -0
- package/development/sidebar.js +12 -13
- package/development/sidebar.pure.js +6 -13
- package/development/signet/signet.component.js +2 -151
- package/development/signet.component-COqrcZqk.js +188 -0
- package/development/signet.js +8 -5
- package/development/signet.pure.js +2 -5
- package/development/skiplink-list/skiplink-list.component.js +2 -160
- package/development/skiplink-list.component-_SDkIoHp.js +198 -0
- package/development/skiplink-list.js +8 -5
- package/development/skiplink-list.pure.js +2 -5
- package/development/slider/slider.component.js +2 -399
- package/development/slider.component-B7EFECZk.js +479 -0
- package/development/slider.js +8 -5
- package/development/slider.pure.js +2 -5
- package/development/status/status.component.js +2 -144
- package/development/status.component-CE3e9OIO.js +171 -0
- package/development/status.js +8 -5
- package/development/status.pure.js +2 -5
- package/development/step-label.component-BH28AI5Z.js +298 -0
- package/development/step.component-WY7qdrR8.js +220 -0
- package/development/stepper/step/step.component.js +2 -216
- package/development/stepper/step-label/step-label.component.js +2 -298
- package/development/stepper/step-label.js +7 -5
- package/development/stepper/step.js +7 -5
- package/development/stepper/stepper/stepper.component.js +2 -465
- package/development/stepper/stepper.js +7 -7
- package/development/stepper.component-D1tAcpWs.js +508 -0
- package/development/stepper.js +10 -11
- package/development/stepper.pure.js +4 -10
- package/development/sticky-bar.component-BlgfxSRo.js +382 -0
- package/development/styles-CIZBf9Yc.js +173 -0
- package/development/styles-CYlzu-f2.js +96 -0
- package/development/tab-group.component-DZPKWjI7.js +292 -0
- package/development/tab-label.component-BJgr4u6Z.js +420 -0
- package/development/tab-nav-bar.component-rNmuMIsv.js +123 -0
- package/development/tab.component-C8jaB2_O.js +101 -0
- package/development/table/table-wrapper/table-wrapper.component.js +2 -120
- package/development/table/table-wrapper.js +7 -5
- package/development/table-wrapper.component-6WtB_fHq.js +133 -0
- package/development/table.js +8 -5
- package/development/table.pure.js +2 -5
- package/development/tabs/common/styles.js +2 -6
- package/development/tabs/common.js +6 -6
- package/development/tabs/tab/tab.component.js +2 -87
- package/development/tabs/tab-group/tab-group.component.js +2 -236
- package/development/tabs/tab-group.js +7 -5
- package/development/tabs/tab-label/tab-label.component.js +2 -369
- package/development/tabs/tab-label.js +7 -5
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -99
- package/development/tabs/tab-nav-bar.js +7 -5
- package/development/tabs/tab.js +7 -5
- package/development/tabs.js +12 -14
- package/development/tabs.pure.js +6 -14
- package/development/tag/tag/tag.component.js +2 -351
- package/development/tag/tag-group/tag-group.component.js +2 -179
- package/development/tag/tag-group.js +7 -5
- package/development/tag/tag.js +7 -5
- package/development/tag-group.component-C-EXr8Rq.js +219 -0
- package/development/tag.component-B7RY4cfx.js +419 -0
- package/development/tag.js +9 -7
- package/development/tag.pure.js +3 -7
- package/development/teaser/teaser.component.js +2 -224
- package/development/teaser-hero/teaser-hero.component.js +2 -172
- package/development/teaser-hero.component-5vVIZZ9L.js +202 -0
- package/development/teaser-hero.js +8 -5
- package/development/teaser-hero.pure.js +2 -5
- package/development/teaser-product/common/teaser-product-common.js +2 -210
- package/development/teaser-product/common.js +6 -6
- package/development/teaser-product/teaser-product/teaser-product.component.js +2 -63
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +21 -8
- package/development/teaser-product/teaser-product-static.js +6 -4
- package/development/teaser-product/teaser-product.js +7 -5
- package/development/teaser-product-common-DgnRgO6O.js +223 -0
- package/development/teaser-product.component-BsdU2W2T.js +75 -0
- package/development/teaser-product.js +9 -9
- package/development/teaser-product.pure.js +3 -9
- package/development/teaser.component-KRkFbP9-.js +243 -0
- package/development/teaser.js +8 -5
- package/development/teaser.pure.js +2 -5
- package/development/time-input/time-input.component.js +2 -213
- package/development/time-input.component-Cf6cXrIN.js +222 -0
- package/development/time-input.js +8 -5
- package/development/time-input.pure.js +2 -5
- package/development/timetable-form/timetable-form/timetable-form.component.js +2 -22
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -39
- package/development/timetable-form/timetable-form-details.js +7 -5
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -112
- package/development/timetable-form/timetable-form-field.js +7 -5
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -63
- package/development/timetable-form/timetable-form-swap-button.js +7 -5
- package/development/timetable-form/timetable-form.js +7 -5
- package/development/timetable-form-details.component-B--aGycf.js +50 -0
- package/development/timetable-form-field.component-9jwIZzIm.js +119 -0
- package/development/timetable-form-swap-button.component-Ne1-XwSf.js +74 -0
- package/development/timetable-form.component-BYHhDRXE.js +34 -0
- package/development/timetable-form.js +11 -11
- package/development/timetable-form.pure.js +5 -11
- package/development/timetable-occupancy/timetable-occupancy.component.js +2 -140
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -89
- package/development/timetable-occupancy-icon.component-BbW73Fqd.js +101 -0
- package/development/timetable-occupancy-icon.js +8 -5
- package/development/timetable-occupancy-icon.pure.js +2 -5
- package/development/timetable-occupancy.component-C3nWG5Vg.js +172 -0
- package/development/timetable-occupancy.js +8 -5
- package/development/timetable-occupancy.pure.js +2 -5
- package/development/title/title-base.js +2 -109
- package/development/title/title.component.js +3 -89
- package/development/title-base-BUQgNaUI.js +142 -0
- package/development/title.component-DgFvxLIt.js +115 -0
- package/development/title.js +9 -7
- package/development/title.pure.js +3 -7
- package/development/toast/toast.component.js +2 -401
- package/development/toast.component-Csifrfnq.js +430 -0
- package/development/toast.js +8 -5
- package/development/toast.pure.js +2 -5
- package/development/toggle/toggle/toggle.component.js +2 -331
- package/development/toggle/toggle-option/toggle-option.component.js +2 -179
- package/development/toggle/toggle-option.js +7 -5
- package/development/toggle/toggle.js +7 -5
- package/development/toggle-check/toggle-check.component.js +2 -274
- package/development/toggle-check.component-CEYmGCDZ.js +326 -0
- package/development/toggle-check.js +8 -5
- package/development/toggle-check.pure.js +2 -5
- package/development/toggle-option.component--wHdeFI6.js +216 -0
- package/development/toggle.component-CGNDEU9B.js +367 -0
- package/development/toggle.js +9 -7
- package/development/toggle.pure.js +3 -7
- package/development/tooltip/tooltip.component.js +2 -440
- package/development/tooltip.component-bVPXm6Pu.js +480 -0
- package/development/tooltip.js +8 -5
- package/development/tooltip.pure.js +2 -5
- package/development/train/train/train.component.js +2 -229
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +2 -70
- package/development/train/train-blocked-passage.js +7 -5
- package/development/train/train-formation/train-formation.component.js +2 -274
- package/development/train/train-formation.js +7 -5
- package/development/train/train-wagon/train-wagon.component.js +2 -387
- package/development/train/train-wagon.js +7 -5
- package/development/train/train.js +7 -5
- package/development/train-blocked-passage.component-CYnTeq7k.js +79 -0
- package/development/train-formation.component-QmoA0u6E.js +303 -0
- package/development/train-wagon.component-CWlRDq-Z.js +485 -0
- package/development/train.component-DcMyi7HP.js +294 -0
- package/development/train.js +11 -11
- package/development/train.pure.js +5 -11
- package/development/visual-checkbox/visual-checkbox.component.js +2 -164
- package/development/visual-checkbox.component-DtEIq9rH.js +213 -0
- package/development/visual-checkbox.js +8 -5
- package/development/visual-checkbox.pure.js +2 -5
- package/dialog/dialog/dialog.component.js +2 -148
- package/dialog/dialog-actions/dialog-actions.component.js +2 -13
- package/dialog/dialog-actions.js +4 -7
- package/dialog/dialog-close-button/dialog-close-button.component.js +2 -23
- package/dialog/dialog-close-button.js +4 -7
- package/dialog/dialog-content/dialog-content.component.js +2 -15
- package/dialog/dialog-content.js +4 -7
- package/dialog/dialog-title/dialog-title.component.js +2 -13
- package/dialog/dialog-title.js +4 -7
- package/dialog/dialog.js +4 -10
- package/dialog-actions.component-B4JYi2Ym.js +17 -0
- package/dialog-close-button.component-BtxXASCn.js +27 -0
- package/dialog-content.component-CNhoC-NZ.js +19 -0
- package/dialog-title.component-C8Jsbuqt.js +17 -0
- package/dialog.component-BHsekf9B.js +170 -0
- package/dialog.js +9 -20
- package/dialog.pure.js +6 -15
- package/divider/divider.component.js +2 -44
- package/divider.component-DFw-P_dA.js +61 -0
- package/divider.js +5 -4
- package/divider.pure.js +2 -4
- package/error.component-DL9hm4i9.js +44 -0
- package/expansion-panel/expansion-panel/expansion-panel.component.js +2 -156
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -24
- package/expansion-panel/expansion-panel-content.js +4 -7
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -57
- package/expansion-panel/expansion-panel-header.js +4 -7
- package/expansion-panel/expansion-panel.js +4 -7
- package/expansion-panel-content.component-CbWIxgH4.js +29 -0
- package/expansion-panel-header.component-CxLeXeGi.js +56 -0
- package/expansion-panel.component-Bs4icI9T.js +226 -0
- package/expansion-panel.js +7 -11
- package/expansion-panel.pure.js +4 -8
- package/file-selector/common/file-selector-common.js +2 -245
- package/file-selector/common.js +5 -7
- package/file-selector/file-selector/file-selector.component.js +25 -20
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -75
- package/file-selector/file-selector-dropzone.js +4 -7
- package/file-selector/file-selector.js +3 -6
- package/file-selector-common-C-gZH55c.js +313 -0
- package/file-selector-dropzone.component-LHNtOZPr.js +94 -0
- package/file-selector.js +7 -11
- package/file-selector.pure.js +4 -9
- package/flip-card/flip-card/flip-card.component.js +2 -120
- package/flip-card/flip-card-details/flip-card-details.component.js +2 -36
- package/flip-card/flip-card-details.js +4 -7
- package/flip-card/flip-card-summary/flip-card-summary.component.js +2 -48
- package/flip-card/flip-card-summary.js +4 -7
- package/flip-card/flip-card.js +4 -7
- package/flip-card-details.component-CiiCNjd2.js +45 -0
- package/flip-card-summary.component-nO7zKRiB.js +65 -0
- package/flip-card.component-uSdokrC9.js +138 -0
- package/flip-card.js +7 -11
- package/flip-card.pure.js +4 -8
- package/footer/footer.component.js +2 -89
- package/footer.component-Cdsiwn4D.js +129 -0
- package/footer.js +5 -4
- package/footer.pure.js +2 -4
- package/form-field/error/error.component.js +2 -42
- package/form-field/error.js +4 -7
- package/form-field/form-field/form-field.component.js +2 -344
- package/form-field/form-field-clear/form-field-clear.component.js +35 -28
- package/form-field/form-field-clear.js +3 -6
- package/form-field/form-field.js +4 -9
- package/form-field.component-CZzQYOSP.js +447 -0
- package/form-field.js +7 -13
- package/form-field.pure.js +4 -9
- package/header/common/header-action-common.js +2 -51
- package/header/common.js +5 -6
- package/header/header/header.component.js +2 -154
- package/header/header-button/header-button.component.js +9 -8
- package/header/header-button.js +3 -6
- package/header/header-environment/header-environment.component.js +2 -29
- package/header/header-environment.js +4 -7
- package/header/header-link/header-link.component.js +9 -8
- package/header/header-link.js +3 -6
- package/header/header.js +4 -7
- package/header-action-common-C2YPvOxq.js +62 -0
- package/header-environment.component-KqUmsOPQ.js +36 -0
- package/header.component-BssLZ6b7.js +203 -0
- package/header.js +9 -16
- package/header.pure.js +6 -12
- package/icon/icon-base.js +2 -105
- package/icon/icon-name-mixin.js +59 -50
- package/icon/icon-request.js +23 -29
- package/icon/icon-validate.js +19 -25
- package/icon/icon.component.js +88 -76
- package/icon-base-BYJzaEDb.js +127 -0
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -46
- package/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +19 -15
- package/icon-sidebar/icon-sidebar-button.js +3 -6
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -25
- package/icon-sidebar/icon-sidebar-container.js +4 -7
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -16
- package/icon-sidebar/icon-sidebar-content.js +4 -7
- package/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +19 -15
- package/icon-sidebar/icon-sidebar-link.js +3 -6
- package/icon-sidebar/icon-sidebar.js +4 -7
- package/icon-sidebar-container.component-BcoT4uhN.js +26 -0
- package/icon-sidebar-content.component-toRpXgxi.js +20 -0
- package/icon-sidebar.component-B5xCvDvj.js +62 -0
- package/icon-sidebar.js +8 -16
- package/icon-sidebar.pure.js +6 -12
- package/icon.js +10 -14
- package/icon.pure.js +6 -13
- package/image/image.component.js +2 -455
- package/image.component-Cq2t-XZu.js +413 -0
- package/image.js +5 -4
- package/image.pure.js +2 -4
- package/inline-link-common-Dgdi7qpI.js +18 -0
- package/journey-header/journey-header.component.js +2 -95
- package/journey-header.component-CR8AO0b2.js +143 -0
- package/journey-header.js +5 -4
- package/journey-header.pure.js +2 -4
- package/lead-container/lead-container.component.js +2 -23
- package/lead-container.component-CXKHfBiS.js +27 -0
- package/lead-container.js +5 -4
- package/lead-container.pure.js +2 -4
- package/link/block-link/block-link.component.js +9 -8
- package/link/block-link-button/block-link-button.component.js +10 -9
- package/link/block-link-button.js +6 -6
- package/link/block-link-static/block-link-static.component.js +10 -9
- package/link/block-link-static.js +4 -4
- package/link/block-link.js +6 -6
- package/link/common/block-link-common.js +3 -44
- package/link/common/inline-link-common.js +3 -13
- package/link/common/link-common.js +2 -9
- package/link/common.js +4 -8
- package/link/link/link.component.js +10 -9
- package/link/link-button/link-button.component.js +10 -9
- package/link/link-button.js +4 -4
- package/link/link-static/link-static.component.js +10 -9
- package/link/link-static.js +4 -4
- package/link/link.js +6 -6
- package/link-common-CYxyP4XZ.js +52 -0
- package/link-list/common/link-list-base.js +2 -90
- package/link-list/common.js +5 -7
- package/link-list/link-list-anchor.js +6 -8
- package/link-list/link-list.component.js +3 -47
- package/link-list/link-list.js +5 -7
- package/link-list-anchor/link-list-anchor.component.js +2 -10
- package/link-list-anchor.component--u5j_aqv.js +18 -0
- package/link-list-anchor.js +5 -4
- package/link-list-anchor.pure.js +2 -4
- package/link-list-base-CzFYpTOG.js +115 -0
- package/link-list.component-9ndHNGPS.js +78 -0
- package/link-list.js +8 -10
- package/link-list.pure.js +3 -7
- package/link.js +12 -25
- package/link.pure.js +11 -20
- package/loading-indicator/loading-indicator.component.js +2 -65
- package/loading-indicator-circle/loading-indicator-circle.component.js +2 -45
- package/loading-indicator-circle.component-CfbXpYX6.js +62 -0
- package/loading-indicator-circle.js +5 -4
- package/loading-indicator-circle.pure.js +2 -4
- package/loading-indicator.component-CoU9mwN8.js +92 -0
- package/loading-indicator.js +5 -4
- package/loading-indicator.pure.js +2 -4
- package/logo/logo.component.js +2 -67
- package/logo.component-nxragzaC.js +94 -0
- package/logo.js +5 -4
- package/logo.pure.js +2 -4
- package/map-container/map-container.component.js +2 -108
- package/map-container.component-C2W_7Xiw.js +128 -0
- package/map-container.js +5 -4
- package/map-container.pure.js +2 -4
- package/menu/common/menu-action-common.js +2 -28
- package/menu/common.js +5 -6
- package/menu/menu/menu.component.js +2 -274
- package/menu/menu-button/menu-button.component.js +13 -9
- package/menu/menu-button.js +3 -6
- package/menu/menu-link/menu-link.component.js +13 -12
- package/menu/menu-link.js +3 -6
- package/menu/menu.js +4 -7
- package/menu-action-common-BcB_Tyvl.js +29 -0
- package/menu.component-BdqUbvww.js +252 -0
- package/menu.js +7 -12
- package/menu.pure.js +5 -10
- package/message/message.component.js +2 -23
- package/message.component-DbmXg6DI.js +27 -0
- package/message.js +5 -4
- package/message.pure.js +2 -4
- package/mini-button-group.component-D5Dph1Z7.js +89 -0
- package/mini-button-link.component-BYK_EUud.js +31 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +2 -131
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -66
- package/mini-calendar/mini-calendar-day.js +4 -7
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -63
- package/mini-calendar/mini-calendar-month.js +4 -7
- package/mini-calendar/mini-calendar.js +4 -7
- package/mini-calendar-day.component-cAawa9Gr.js +106 -0
- package/mini-calendar-month.component-DiYSVb-Y.js +74 -0
- package/mini-calendar.component-DpPMb47Y.js +144 -0
- package/mini-calendar.js +7 -11
- package/mini-calendar.pure.js +4 -8
- package/navigation/common/navigation-action-common.js +2 -57
- package/navigation/common.js +5 -6
- package/navigation/navigation/navigation.component.js +2 -188
- package/navigation/navigation-button/navigation-button.component.js +9 -8
- package/navigation/navigation-button.js +3 -6
- package/navigation/navigation-link/navigation-link.component.js +9 -8
- package/navigation/navigation-link.js +3 -6
- package/navigation/navigation-list/navigation-list.component.js +2 -59
- package/navigation/navigation-list.js +4 -7
- package/navigation/navigation-marker/navigation-marker.component.js +2 -82
- package/navigation/navigation-marker.js +4 -7
- package/navigation/navigation-section/navigation-section.component.js +2 -224
- package/navigation/navigation-section.js +4 -7
- package/navigation/navigation.js +4 -7
- package/navigation-action-common-Dcb95pqU.js +64 -0
- package/navigation-list.component-BhV-uAfU.js +71 -0
- package/navigation-marker.component-CIUu5VVZ.js +88 -0
- package/navigation-section.component-DwEXj603.js +237 -0
- package/navigation.component-BYqJ9Cqt.js +208 -0
- package/navigation.js +11 -22
- package/navigation.pure.js +8 -16
- package/notification/notification.component.js +2 -165
- package/notification.component-DZS8z1oa.js +197 -0
- package/notification.js +5 -4
- package/notification.pure.js +2 -4
- package/optgroup-base-element-DWKHCat8.js +107 -0
- package/option/optgroup/optgroup-base-element.js +2 -83
- package/option/optgroup/optgroup.component.js +29 -30
- package/option/optgroup.js +5 -9
- package/option/option/option-base-element.js +257 -201
- package/option/option/option.component.js +2 -87
- package/option/option-hint/option-hint.component.js +2 -19
- package/option/option-hint.js +4 -7
- package/option/option.js +5 -9
- package/option-hint.component-Goyhv5ss.js +23 -0
- package/option.component-uzmmREt4.js +98 -0
- package/option.js +9 -15
- package/option.pure.js +6 -12
- package/overlay/overlay-base-element.js +154 -149
- package/overlay/overlay.component.js +2 -138
- package/overlay.component-r0Rp_b-3.js +163 -0
- package/overlay.js +7 -10
- package/overlay.pure.js +3 -9
- package/package.json +2 -2
- package/paginator/common/paginator-common.js +268 -201
- package/paginator/common.js +5 -6
- package/paginator/compact-paginator/compact-paginator.component.js +2 -40
- package/paginator/compact-paginator.js +4 -7
- package/paginator/paginator/paginator.component.js +2 -175
- package/paginator/paginator.js +4 -7
- package/paginator.component-D_fV260x.js +206 -0
- package/paginator.js +7 -10
- package/paginator.pure.js +3 -7
- package/popover/popover.component.js +2 -316
- package/popover.component-Dh9vbuDG.js +353 -0
- package/popover.js +5 -6
- package/popover.pure.js +2 -5
- package/radio-button/common/radio-button-common.js +2 -63
- package/radio-button/common.js +5 -7
- package/radio-button/radio-button-group.js +2 -3
- package/radio-button/radio-button-panel.js +2 -3
- package/radio-button/radio-button.component.js +3 -71
- package/radio-button/radio-button.js +5 -7
- package/radio-button-common-CCQ3bJPI.js +77 -0
- package/radio-button-group/radio-button-group.component.js +2 -167
- package/radio-button-group.component-Cf8r6Whf.js +232 -0
- package/radio-button-group.js +6 -5
- package/radio-button-group.pure.js +2 -4
- package/radio-button-panel/radio-button-panel.component.js +78 -68
- package/radio-button-panel.js +4 -3
- package/radio-button-panel.pure.js +2 -4
- package/radio-button.component-B5b5OhBw.js +93 -0
- package/radio-button.js +9 -13
- package/radio-button.pure.js +3 -7
- package/sbb-tokens-BJzKBCf8.js +4 -0
- package/screen-reader-only/screen-reader-only.component.js +2 -12
- package/screen-reader-only.component-B06hVxPg.js +16 -0
- package/screen-reader-only.js +5 -4
- package/screen-reader-only.pure.js +2 -4
- package/select/select.component.js +2 -498
- package/select.component-BZbDGrv8.js +522 -0
- package/select.js +5 -4
- package/select.pure.js +2 -4
- package/selection-action-panel/selection-action-panel.component.js +2 -33
- package/selection-action-panel.component-_kh6l2sj.js +35 -0
- package/selection-action-panel.js +5 -4
- package/selection-action-panel.pure.js +2 -4
- package/selection-expansion-panel/selection-expansion-panel.component.js +2 -116
- package/selection-expansion-panel.component-ChMYCw38.js +144 -0
- package/selection-expansion-panel.js +5 -4
- package/selection-expansion-panel.pure.js +2 -4
- package/sidebar/common/styles.js +2 -6
- package/sidebar/common.js +5 -8
- package/sidebar/sidebar/sidebar.component.js +2 -182
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -26
- package/sidebar/sidebar-close-button.js +4 -7
- package/sidebar/sidebar-container/sidebar-container.component.js +2 -76
- package/sidebar/sidebar-container.js +4 -7
- package/sidebar/sidebar-content/sidebar-content.component.js +2 -16
- package/sidebar/sidebar-content.js +4 -7
- package/sidebar/sidebar-title/sidebar-title.component.js +2 -39
- package/sidebar/sidebar-title.js +4 -7
- package/sidebar/sidebar.js +4 -7
- package/sidebar-close-button.component-B9QGnQLs.js +30 -0
- package/sidebar-container.component-BW24Ap9F.js +63 -0
- package/sidebar-content.component-DSTp9Iu6.js +20 -0
- package/sidebar-title.component-COjEsAkk.js +53 -0
- package/sidebar.component-C2YYQj-Q.js +238 -0
- package/sidebar.js +9 -17
- package/sidebar.pure.js +6 -12
- package/signet/signet.component.js +2 -74
- package/signet.component-CixiIpLj.js +101 -0
- package/signet.js +5 -4
- package/signet.pure.js +2 -4
- package/skiplink-list/skiplink-list.component.js +2 -77
- package/skiplink-list.component-CINJgt_l.js +102 -0
- package/skiplink-list.js +5 -4
- package/skiplink-list.pure.js +2 -4
- package/slider/slider.component.js +2 -200
- package/slider.component-BhtuB-8p.js +249 -0
- package/slider.js +5 -4
- package/slider.pure.js +2 -4
- package/status/status.component.js +2 -69
- package/status.component-BZ8zajOL.js +83 -0
- package/status.js +5 -4
- package/status.pure.js +2 -4
- package/step-label.component-COJYo-MI.js +82 -0
- package/step.component-BIOQdZVR.js +94 -0
- package/stepper/step/step.component.js +2 -111
- package/stepper/step-label/step-label.component.js +2 -96
- package/stepper/step-label.js +4 -7
- package/stepper/step.js +4 -7
- package/stepper/stepper/stepper.component.js +2 -236
- package/stepper/stepper.js +4 -9
- package/stepper.component-D2vhtDCy.js +286 -0
- package/stepper.js +7 -13
- package/stepper.pure.js +4 -9
- package/sticky-bar.component-CYCOEGz7.js +141 -0
- package/styles-DpIXFSVm.js +5 -0
- package/styles-uZGSPqgK.js +5 -0
- package/tab-group.component-nprcnwFB.js +185 -0
- package/tab-label.component-BeLuYRBg.js +165 -0
- package/tab-nav-bar.component-Du1JyNtu.js +81 -0
- package/tab.component-D8Rz05Fo.js +48 -0
- package/table/table-wrapper/table-wrapper.component.js +2 -70
- package/table/table-wrapper.js +4 -7
- package/table-wrapper.component-DkaL4T5V.js +83 -0
- package/table.js +5 -4
- package/table.pure.js +2 -4
- package/tabs/common/styles.js +2 -5
- package/tabs/common.js +5 -7
- package/tabs/tab/tab.component.js +2 -46
- package/tabs/tab-group/tab-group.component.js +2 -167
- package/tabs/tab-group.js +4 -7
- package/tabs/tab-label/tab-label.component.js +2 -128
- package/tabs/tab-label.js +4 -7
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -67
- package/tabs/tab-nav-bar.js +4 -7
- package/tabs/tab.js +4 -7
- package/tabs.js +9 -17
- package/tabs.pure.js +6 -13
- package/tag/tag/tag.component.js +2 -128
- package/tag/tag-group/tag-group.component.js +2 -119
- package/tag/tag-group.js +4 -7
- package/tag/tag.js +4 -7
- package/tag-group.component-CW6Z9-P6.js +143 -0
- package/tag.component-CvZpvIuw.js +170 -0
- package/tag.js +6 -8
- package/tag.pure.js +3 -6
- package/teaser/teaser.component.js +2 -80
- package/teaser-hero/teaser-hero.component.js +2 -62
- package/teaser-hero.component-Dolg4-Yz.js +80 -0
- package/teaser-hero.js +5 -4
- package/teaser-hero.pure.js +2 -4
- package/teaser-product/common/teaser-product-common.js +2 -54
- package/teaser-product/common.js +5 -7
- package/teaser-product/teaser-product/teaser-product.component.js +2 -28
- package/teaser-product/teaser-product-static/teaser-product-static.component.js +13 -9
- package/teaser-product/teaser-product-static.js +3 -6
- package/teaser-product/teaser-product.js +4 -7
- package/teaser-product-common-q2IZHbkr.js +62 -0
- package/teaser-product.component-DVdyKe6h.js +29 -0
- package/teaser-product.js +7 -11
- package/teaser-product.pure.js +4 -9
- package/teaser.component-DPvDVG6b.js +91 -0
- package/teaser.js +5 -4
- package/teaser.pure.js +2 -4
- package/time-input/time-input.component.js +2 -128
- package/time-input.component-ChWhDF5l.js +141 -0
- package/time-input.js +5 -4
- package/time-input.pure.js +2 -4
- package/timetable-form/timetable-form/timetable-form.component.js +2 -12
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -12
- package/timetable-form/timetable-form-details.js +4 -7
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -26
- package/timetable-form/timetable-form-field.js +4 -7
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -33
- package/timetable-form/timetable-form-swap-button.js +4 -7
- package/timetable-form/timetable-form.js +4 -7
- package/timetable-form-details.component-Du6WPn3y.js +16 -0
- package/timetable-form-field.component-Cb3FYKL7.js +32 -0
- package/timetable-form-swap-button.component-ByQDf7oy.js +37 -0
- package/timetable-form.component-BqokC_4S.js +16 -0
- package/timetable-form.js +8 -14
- package/timetable-form.pure.js +5 -10
- package/timetable-occupancy/timetable-occupancy.component.js +2 -77
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -61
- package/timetable-occupancy-icon.component-BhXQSFZR.js +72 -0
- package/timetable-occupancy-icon.js +5 -4
- package/timetable-occupancy-icon.pure.js +2 -4
- package/timetable-occupancy.component-DnaQ0TIW.js +101 -0
- package/timetable-occupancy.js +5 -4
- package/timetable-occupancy.pure.js +2 -4
- package/title/title-base.js +2 -53
- package/title/title.component.js +3 -37
- package/title-base-D4nE41tH.js +80 -0
- package/title.component-DNBy2mIm.js +54 -0
- package/title.js +7 -7
- package/title.pure.js +3 -6
- package/toast/toast.component.js +2 -180
- package/toast.component-B9Gm8Kls.js +189 -0
- package/toast.js +5 -4
- package/toast.pure.js +2 -4
- package/toggle/toggle/toggle.component.js +2 -147
- package/toggle/toggle-option/toggle-option.component.js +2 -90
- package/toggle/toggle-option.js +4 -7
- package/toggle/toggle.js +4 -7
- package/toggle-check/toggle-check.component.js +2 -85
- package/toggle-check.component-BcxMe5Zi.js +119 -0
- package/toggle-check.js +5 -4
- package/toggle-check.pure.js +2 -4
- package/toggle-option.component-DvdEjT2c.js +123 -0
- package/toggle.component-Lnj5TugJ.js +161 -0
- package/toggle.js +6 -8
- package/toggle.pure.js +3 -6
- package/tooltip/tooltip.component.js +2 -197
- package/tooltip.component-B5fKuZdI.js +228 -0
- package/tooltip.js +5 -4
- package/tooltip.pure.js +2 -4
- package/train/train/train.component.js +2 -123
- package/train/train-blocked-passage/train-blocked-passage.component.js +2 -19
- package/train/train-blocked-passage.js +4 -7
- package/train/train-formation/train-formation.component.js +2 -93
- package/train/train-formation.js +4 -7
- package/train/train-wagon/train-wagon.component.js +2 -174
- package/train/train-wagon.js +4 -7
- package/train/train.js +4 -7
- package/train-blocked-passage.component-Dz7lD_V1.js +23 -0
- package/train-formation.component-CGTqQgp7.js +121 -0
- package/train-wagon.component-BW-JxcK6.js +259 -0
- package/train.component-B_Nlu8Kh.js +176 -0
- package/train.js +8 -14
- package/train.pure.js +5 -10
- package/visual-checkbox/visual-checkbox.component.js +2 -81
- package/visual-checkbox.component-bB_pG0vn.js +118 -0
- package/visual-checkbox.js +5 -4
- package/visual-checkbox.pure.js +2 -4
- package/development/icon-sidebar-button-common-DR6eQvkq.js +0 -93
- package/development/link-common-d27fHmQw.js +0 -111
- package/development/mini-button-label-common-BaMSfSTe.js +0 -558
- package/development/sbb-tokens-DQT_xEIZ.js +0 -19
- package/development/tab-label-common-Mfl36Rsa.js +0 -171
- package/icon-sidebar-button-common-ffAscVDk.js +0 -7
- package/link-common-7IiqjmPD.js +0 -45
- package/mini-button-label-common-Dx9JhmQ6.js +0 -11
- package/sbb-tokens-HiNSQasB.js +0 -11
- package/tab-label-common-D6k40yRU.js +0 -6
package/clock/clock.component.js
CHANGED
|
@@ -1,153 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var u = (s, n, i) => n.has(s) || m("Cannot " + i);
|
|
5
|
-
var b = (s, n, i) => (u(s, n, "read from private field"), i ? i.call(s) : n.get(s)), v = (s, n, i) => n.has(s) ? m("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(s) : n.set(s, i), h = (s, n, i, d) => (u(s, n, "write to private field"), d ? d.call(s, i) : n.set(s, i), i);
|
|
6
|
-
import { __runInitializers as k, __esDecorate as z } from "tslib";
|
|
7
|
-
import { css as S, isServer as M, html as w } from "lit";
|
|
8
|
-
import { property as C } from "lit/decorators.js";
|
|
9
|
-
import { ref as _ } from "lit/directives/ref.js";
|
|
10
|
-
import { SbbElement as L } from "../core/base-elements.js";
|
|
11
|
-
import { boxSizingStyles as E } from "../core/styles.js";
|
|
12
|
-
const A = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><g class="face"><circle fill="var(--sbb-clock-background-color)" cx="52.5" cy="52.5" r="52.5"/><path d="M50.75 4h3.5v12h-3.5zM50.75 89h3.5v12h-3.5zM75.233 9.623l3.03 1.75-6 10.392-3.03-1.75zM32.734 83.233l3.03 1.75-6 10.392-3.03-1.75zM93.628 26.732l1.75 3.031-10.392 6-1.75-3.03zM20.017 69.234l1.75 3.031-10.392 6-1.75-3.03zM101 50.75v3.5H89v-3.5zM16 50.75v3.5H4v-3.5zM95.379 75.232l-1.75 3.031-10.392-6 1.75-3.03zM21.766 32.734l-1.75 3.031-10.392-6 1.75-3.03zM78.267 93.63l-3.03 1.75-6-10.393 3.03-1.75zM35.766 20.015l-3.03 1.75-6-10.392 3.03-1.75z"/><g><path d="M56.873 4.19l1.392.147-.366 3.48-1.392-.145zM47.101 97.177l1.393.146-.366 3.481-1.392-.146zM61.896 4.914l1.37.29-.728 3.424-1.37-.29zM42.458 96.366l1.37.29-.728 3.424-1.37-.291zM66.825 6.157l1.332.432-1.082 3.33-1.331-.434zM37.931 95.085l1.332.432-1.082 3.33-1.331-.433zM71.584 7.906l1.28.569-1.424 3.197-1.28-.57zM33.56 93.32l1.278.569-1.423 3.197-1.28-.57zM80.44 12.852l1.133.823-2.058 2.831-1.132-.823zM25.481 88.494l1.133.822-2.057 2.832-1.133-.823zM84.43 15.986l1.04.937-2.342 2.6-1.04-.936zM21.87 85.469l1.04.936-2.341 2.601-1.04-.937zM88.072 19.522l.937 1.04-2.6 2.343-.937-1.04zM18.593 82.088l.937 1.04-2.601 2.342-.937-1.04zM91.328 23.425l.823 1.133-2.832 2.057-.823-1.132zM15.684 78.385l.823 1.132-2.832 2.058-.822-1.133zM96.52 32.128l.57 1.279-3.198 1.423-.57-1.278zM11.109 70.161l.569 1.279-3.197 1.423-.57-1.279zM98.407 36.85l.433 1.332-3.33 1.081-.432-1.331zM9.483 65.74l.432 1.33-3.329 1.082-.432-1.331zM99.795 41.726l.291 1.37-3.423.727-.29-1.37zM8.34 61.17l.292 1.37-3.424.728-.29-1.37zM100.66 46.73l.146 1.393-3.48.366-.147-1.392zM7.674 56.506l.146 1.392-3.48.366-.147-1.392zM100.811 56.873l-.146 1.392-3.48-.365.145-1.393zM7.821 47.101l-.146 1.392-3.48-.365.145-1.393zM100.09 61.895l-.291 1.369-3.424-.728.291-1.369zM8.631 42.46l-.291 1.37-3.423-.728.29-1.37zM98.84 66.827l-.432 1.331-3.329-1.081.433-1.332zM9.918 37.93l-.433 1.331-3.329-1.082.433-1.331zM97.098 71.585l-.569 1.28-3.197-1.424.57-1.28zM11.677 33.558l-.57 1.28-3.197-1.424.57-1.279zM92.149 80.439l-.823 1.133-2.832-2.058.823-1.132zM16.506 25.482l-.823 1.133-2.831-2.057.823-1.133zM89.017 84.431l-.937 1.04-2.6-2.341.936-1.04zM19.528 21.869l-.936 1.04-2.601-2.342.936-1.04zM85.48 88.076l-1.041.936-2.342-2.6 1.04-.937zM22.91 18.59l-1.04.937-2.341-2.601 1.04-.937zM81.574 91.328l-1.133.823-2.057-2.831 1.132-.823zM26.617 15.684l-1.133.823-2.057-2.832 1.132-.823zM72.873 96.524l-1.279.57-1.423-3.198 1.278-.57zM34.838 11.105l-1.279.57-1.423-3.198 1.279-.57zM68.151 98.405l-1.331.432-1.082-3.329 1.332-.432zM39.259 9.485l-1.332.433-1.081-3.33 1.331-.432zM63.272 99.799l-1.369.29-.728-3.422 1.37-.291zM43.83 8.337l-1.369.291-.727-3.423 1.37-.291zM58.27 100.662l-1.393.146-.366-3.48 1.393-.147zM48.494 7.672l-1.392.147-.366-3.481 1.392-.147z"/></g></g></svg>
|
|
13
|
-
`, O = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path id="mod_clock_svg_hours" d="M55.7 64.5h-6.4l.6-44h5.2z"/></svg>
|
|
14
|
-
`, T = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M55.1,64.5h-5.2l0.8-58h3.6L55.1,64.5z"/></svg>
|
|
15
|
-
`, I = `<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 105 105"><path d="M57.8,21.3c0-2.9-2.4-5.2-5.2-5.2s-5.3,2.3-5.3,5.2c0,2.7,2,4.8,4.5,5.2V69h1.5V26.5C55.8,26.2,57.8,24,57.8,21.3z"/></svg>
|
|
16
|
-
`, N = S`:host{display:block;position:relative;aspect-ratio:1/1;overflow:hidden;contain:content}.sbb-clock__face,.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds{position:absolute;inset:0;transform-origin:center center;transform:rotate(0);transform-style:preserve-3d;backface-visibility:hidden}.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__face{fill:var(--sbb-clock-face-color)}.sbb-clock__hand-minutes{transition:transform var(--sbb-disable-animation-duration, .2s) cubic-bezier(.4,2.08,.55,.44)}@supports not (aspect-ratio: 1/1){.sbb-clock__hand-minutes{transform-origin:50% 49.625%}}.sbb-clock__hand-hours{animation-name:rotate;animation-duration:43200s;animation-iteration-count:infinite;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state, "paused")}.sbb-clock__hand-hours--initial-hour{animation-name:hand-hours-animation-initial-hour;animation-duration:var(--sbb-clock-hours-animation-duration, 0s);animation-play-state:var(--sbb-clock-animation-play-state, "paused");animation-iteration-count:1}.sbb-clock__hand-minutes--no-transition{transition:none}.sbb-clock__hand-seconds{animation-name:hand-seconds-animation;animation-duration:60s;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state, "paused");animation-iteration-count:infinite;fill:var(--sbb-clock-seconds-hand-color)}.sbb-clock__hand-seconds--initial-minute{animation-name:hand-seconds-animation-initial-minute;animation-duration:var(--sbb-clock-seconds-animation-duration, 0s);animation-play-state:var(--sbb-clock-animation-play-state, "paused");animation-iteration-count:1}:host(:not(:is(:state(initialized),[state--initialized]))) :is(.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds){display:none}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes hand-hours-animation-initial-hour{0%{transform:rotate(var(--sbb-clock-hours-animation-start-angle, 0deg))}to{transform:rotate(360deg)}}@keyframes hand-seconds-animation{0%{transform:rotate(0)}97.5%,to{transform:rotate(360deg)}}@keyframes hand-seconds-animation-initial-minute{0%{transform:rotate(var(--sbb-clock-seconds-animation-start-angle, 0deg))}97.5%,to{transform:rotate(360deg)}}`, P = 12, F = 60, p = 60, x = 50, H = 360, g = 30, U = 6, $ = 360 / 58.5, V = 60, y = 3600, D = y / 2, f = {
|
|
17
|
-
once: !0,
|
|
18
|
-
passive: !0
|
|
19
|
-
};
|
|
20
|
-
let Q = (() => {
|
|
21
|
-
var o, a;
|
|
22
|
-
let s = L, n, i = [], d = [];
|
|
23
|
-
return a = class extends s {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
v(this, o);
|
|
27
|
-
h(this, o, k(this, i, null)), this._state = (k(this, d), "paused"), this._moveHoursHandFn = () => this._moveHoursHand(), this._moveMinutesHandFn = () => this._moveMinutesHand(), this._handlePageVisibilityChange = async () => {
|
|
28
|
-
this.now || (document.visibilityState === "hidden" ? await this._stopClock() : await this._startClock());
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Define a specific time which the clock should show statically.
|
|
33
|
-
* @param value HH:MM:ss
|
|
34
|
-
*/
|
|
35
|
-
get now() {
|
|
36
|
-
return b(this, o);
|
|
37
|
-
}
|
|
38
|
-
set now(t) {
|
|
39
|
-
h(this, o, t);
|
|
40
|
-
}
|
|
41
|
-
connectedCallback() {
|
|
42
|
-
super.connectedCallback(), this._resetIntervalId = setInterval(() => this._resetClock(), D * 1e3);
|
|
43
|
-
}
|
|
44
|
-
willUpdate(t) {
|
|
45
|
-
super.willUpdate(t), !M && t.has("now") && this._startOrConfigureClock();
|
|
46
|
-
}
|
|
47
|
-
firstUpdated(t) {
|
|
48
|
-
super.firstUpdated(t), M || (document.addEventListener("visibilitychange", this._handlePageVisibilityChange, !1), this._startOrConfigureClock());
|
|
49
|
-
}
|
|
50
|
-
disconnectedCallback() {
|
|
51
|
-
super.disconnectedCallback(), this._removeEventListeners(), clearInterval(this._resetIntervalId);
|
|
52
|
-
}
|
|
53
|
-
async _startOrConfigureClock() {
|
|
54
|
-
this.now ? (await this._stopClock(), this._resetSecondsHandAnimation(), this._setHandsStartingPosition()) : await this._startClock();
|
|
55
|
-
}
|
|
56
|
-
/** Starts the clock by defining the hands starting position then starting the animations. */
|
|
57
|
-
async _startClock() {
|
|
58
|
-
this._clockHandHours?.addEventListener("animationend", this._moveHoursHandFn, f), this._clockHandSeconds?.addEventListener("animationend", this._moveMinutesHandFn, f), await new Promise((t) => setTimeout(() => {
|
|
59
|
-
this._setHandsStartingPosition(), this.style?.setProperty("--sbb-clock-animation-play-state", "running"), this._state = "running", t();
|
|
60
|
-
}, x));
|
|
61
|
-
}
|
|
62
|
-
/** Stops the clock by removing all the animations. */
|
|
63
|
-
async _stopClock() {
|
|
64
|
-
clearInterval(this._handMovement), this._removeSecondsAnimationStyles(), this._removeHoursAnimationStyles(), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._clockHandMinutes?.classList.add("sbb-clock__hand-minutes--no-transition"), this.style?.setProperty("--sbb-clock-animation-play-state", "paused"), this._state = "paused";
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* As a fallback measure to prevent de-sync, reset the clock to the system time.
|
|
68
|
-
*/
|
|
69
|
-
async _resetClock() {
|
|
70
|
-
this._state === "running" && (await this._stopClock(), await this._startClock());
|
|
71
|
-
}
|
|
72
|
-
/** Set the starting position for the three hands on the clock face. */
|
|
73
|
-
_setHandsStartingPosition() {
|
|
74
|
-
this._assignCurrentTime();
|
|
75
|
-
const t = p - this._seconds, e = F - this._minutes, c = P - this._hours;
|
|
76
|
-
let r = 0, l = 0;
|
|
77
|
-
t > 0 && (r += t, l = 1), e > 0 && (r += (e - l) * V, l = 1), c > 0 && (r += (c - l) * y), this.style?.setProperty("--sbb-clock-hours-animation-start-angle", `${Math.ceil(this._hours * g + this._minutes / 2)}deg`), this.style?.setProperty("--sbb-clock-hours-animation-duration", `${r}s`), this.style?.setProperty("--sbb-clock-seconds-animation-start-angle", `${Math.ceil(this._seconds * $)}deg`), this.style?.setProperty("--sbb-clock-seconds-animation-duration", `${t}s`), this._setMinutesHand(), this._clockHandSeconds?.classList.add("sbb-clock__hand-seconds--initial-minute"), this._clockHandHours?.classList.add("sbb-clock__hand-hours--initial-hour"), this.internals.states.add("initialized");
|
|
78
|
-
}
|
|
79
|
-
/** Given the current date, calculates the hh/mm/ss values and the hh/mm/ss left to the next midnight. */
|
|
80
|
-
_assignCurrentTime() {
|
|
81
|
-
const t = this.now ? null : /* @__PURE__ */ new Date(), [e, c, r] = t ? [t.getHours(), t.getMinutes(), t.getSeconds()] : this.now.split(":").map((l) => +l);
|
|
82
|
-
this._hours = e % 12, this._minutes = c, this._seconds = r;
|
|
83
|
-
}
|
|
84
|
-
/** Set the starting position for the minutes hand. */
|
|
85
|
-
_setMinutesHand() {
|
|
86
|
-
this._clockHandMinutes?.style.setProperty("transform", `rotateZ(${Math.ceil(this._minutes * U)}deg)`);
|
|
87
|
-
}
|
|
88
|
-
/** Move the hours hand to the next value. */
|
|
89
|
-
_moveHoursHand() {
|
|
90
|
-
this._removeHoursAnimationStyles();
|
|
91
|
-
let t = Math.ceil(this._hours * g + this._minutes / 2);
|
|
92
|
-
t >= H && (t -= H), this._clockHandHours?.style.setProperty("transform", `rotateZ(${t}deg)`);
|
|
93
|
-
}
|
|
94
|
-
/** Move the minutes hand to the next value. */
|
|
95
|
-
_moveMinutesHand() {
|
|
96
|
-
this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(), p * 1e3);
|
|
97
|
-
}
|
|
98
|
-
_addMinutesAndSetHands() {
|
|
99
|
-
this._minutes++, this._setMinutesHand();
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Removing animation by overriding with empty string,
|
|
103
|
-
* then triggering a reflow and re add original animation by removing override.
|
|
104
|
-
* @private
|
|
105
|
-
*/
|
|
106
|
-
_resetSecondsHandAnimation() {
|
|
107
|
-
this._clockHandSeconds && (this._clockHandSeconds.style.animation = "", this._clockHandSeconds.offsetHeight, this._clockHandSeconds.style.removeProperty("animation"));
|
|
108
|
-
}
|
|
109
|
-
_removeEventListeners() {
|
|
110
|
-
document?.removeEventListener("visibilitychange", this._handlePageVisibilityChange), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), clearInterval(this._handMovement);
|
|
111
|
-
}
|
|
112
|
-
_removeHoursAnimationStyles() {
|
|
113
|
-
this._clockHandHours?.classList.remove("sbb-clock__hand-hours--initial-hour"), this.style.removeProperty("--sbb-clock-hours-animation-start-angle"), this.style.removeProperty("--sbb-clock-hours-animation-duration");
|
|
114
|
-
}
|
|
115
|
-
_removeSecondsAnimationStyles() {
|
|
116
|
-
this._clockHandSeconds?.classList.remove("sbb-clock__hand-seconds--initial-minute"), this._clockHandMinutes?.classList.remove("sbb-clock__hand-minutes--no-transition"), this.style.removeProperty("--sbb-clock-seconds-animation-start-angle"), this.style.removeProperty("--sbb-clock-seconds-animation-duration");
|
|
117
|
-
}
|
|
118
|
-
render() {
|
|
119
|
-
return w`
|
|
120
|
-
<span class="sbb-clock__face" .innerHTML=${A}></span>
|
|
121
|
-
<span
|
|
122
|
-
class="sbb-clock__hand-hours"
|
|
123
|
-
.innerHTML=${O}
|
|
124
|
-
${_((t) => {
|
|
125
|
-
this._clockHandHours = t;
|
|
126
|
-
})}
|
|
127
|
-
></span>
|
|
128
|
-
<span
|
|
129
|
-
class="sbb-clock__hand-minutes sbb-clock__hand-minutes--no-transition"
|
|
130
|
-
.innerHTML=${T}
|
|
131
|
-
${_((t) => {
|
|
132
|
-
this._clockHandMinutes = t;
|
|
133
|
-
})}
|
|
134
|
-
></span>
|
|
135
|
-
<span
|
|
136
|
-
class="sbb-clock__hand-seconds"
|
|
137
|
-
.innerHTML=${I}
|
|
138
|
-
${_((t) => {
|
|
139
|
-
this._clockHandSeconds = t;
|
|
140
|
-
})}
|
|
141
|
-
></span>
|
|
142
|
-
`;
|
|
143
|
-
}
|
|
144
|
-
}, o = new WeakMap(), (() => {
|
|
145
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(s[Symbol.metadata] ?? null) : void 0;
|
|
146
|
-
n = [C()], z(a, null, n, { kind: "accessor", name: "now", static: !1, private: !1, access: { has: (e) => "now" in e, get: (e) => e.now, set: (e, c) => {
|
|
147
|
-
e.now = c;
|
|
148
|
-
} }, metadata: t }, i, d), t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
149
|
-
})(), a.elementName = "sbb-clock", a.styles = [E, N], a;
|
|
150
|
-
})();
|
|
151
|
-
export {
|
|
152
|
-
Q as SbbClockElement
|
|
153
|
-
};
|
|
1
|
+
import { t as e } from "../clock.component-DDaWbXHW.js";
|
|
2
|
+
export { e as SbbClockElement };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { css as n, html as r, isServer as i } from "lit";
|
|
3
|
+
import { property as a } from "lit/decorators.js";
|
|
4
|
+
import { SbbElement as o } from "./core/base-elements.js";
|
|
5
|
+
import { boxSizingStyles as s } from "./core/styles.js";
|
|
6
|
+
import { ref as c } from "lit/directives/ref.js";
|
|
7
|
+
//#region src/elements/clock/assets/sbb_clock_face.svg?raw
|
|
8
|
+
var l = "<svg focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 105 105\"><g class=\"face\"><circle fill=\"var(--sbb-clock-background-color)\" cx=\"52.5\" cy=\"52.5\" r=\"52.5\"/><path d=\"M50.75 4h3.5v12h-3.5zM50.75 89h3.5v12h-3.5zM75.233 9.623l3.03 1.75-6 10.392-3.03-1.75zM32.734 83.233l3.03 1.75-6 10.392-3.03-1.75zM93.628 26.732l1.75 3.031-10.392 6-1.75-3.03zM20.017 69.234l1.75 3.031-10.392 6-1.75-3.03zM101 50.75v3.5H89v-3.5zM16 50.75v3.5H4v-3.5zM95.379 75.232l-1.75 3.031-10.392-6 1.75-3.03zM21.766 32.734l-1.75 3.031-10.392-6 1.75-3.03zM78.267 93.63l-3.03 1.75-6-10.393 3.03-1.75zM35.766 20.015l-3.03 1.75-6-10.392 3.03-1.75z\"/><g><path d=\"M56.873 4.19l1.392.147-.366 3.48-1.392-.145zM47.101 97.177l1.393.146-.366 3.481-1.392-.146zM61.896 4.914l1.37.29-.728 3.424-1.37-.29zM42.458 96.366l1.37.29-.728 3.424-1.37-.291zM66.825 6.157l1.332.432-1.082 3.33-1.331-.434zM37.931 95.085l1.332.432-1.082 3.33-1.331-.433zM71.584 7.906l1.28.569-1.424 3.197-1.28-.57zM33.56 93.32l1.278.569-1.423 3.197-1.28-.57zM80.44 12.852l1.133.823-2.058 2.831-1.132-.823zM25.481 88.494l1.133.822-2.057 2.832-1.133-.823zM84.43 15.986l1.04.937-2.342 2.6-1.04-.936zM21.87 85.469l1.04.936-2.341 2.601-1.04-.937zM88.072 19.522l.937 1.04-2.6 2.343-.937-1.04zM18.593 82.088l.937 1.04-2.601 2.342-.937-1.04zM91.328 23.425l.823 1.133-2.832 2.057-.823-1.132zM15.684 78.385l.823 1.132-2.832 2.058-.822-1.133zM96.52 32.128l.57 1.279-3.198 1.423-.57-1.278zM11.109 70.161l.569 1.279-3.197 1.423-.57-1.279zM98.407 36.85l.433 1.332-3.33 1.081-.432-1.331zM9.483 65.74l.432 1.33-3.329 1.082-.432-1.331zM99.795 41.726l.291 1.37-3.423.727-.29-1.37zM8.34 61.17l.292 1.37-3.424.728-.29-1.37zM100.66 46.73l.146 1.393-3.48.366-.147-1.392zM7.674 56.506l.146 1.392-3.48.366-.147-1.392zM100.811 56.873l-.146 1.392-3.48-.365.145-1.393zM7.821 47.101l-.146 1.392-3.48-.365.145-1.393zM100.09 61.895l-.291 1.369-3.424-.728.291-1.369zM8.631 42.46l-.291 1.37-3.423-.728.29-1.37zM98.84 66.827l-.432 1.331-3.329-1.081.433-1.332zM9.918 37.93l-.433 1.331-3.329-1.082.433-1.331zM97.098 71.585l-.569 1.28-3.197-1.424.57-1.28zM11.677 33.558l-.57 1.28-3.197-1.424.57-1.279zM92.149 80.439l-.823 1.133-2.832-2.058.823-1.132zM16.506 25.482l-.823 1.133-2.831-2.057.823-1.133zM89.017 84.431l-.937 1.04-2.6-2.341.936-1.04zM19.528 21.869l-.936 1.04-2.601-2.342.936-1.04zM85.48 88.076l-1.041.936-2.342-2.6 1.04-.937zM22.91 18.59l-1.04.937-2.341-2.601 1.04-.937zM81.574 91.328l-1.133.823-2.057-2.831 1.132-.823zM26.617 15.684l-1.133.823-2.057-2.832 1.132-.823zM72.873 96.524l-1.279.57-1.423-3.198 1.278-.57zM34.838 11.105l-1.279.57-1.423-3.198 1.279-.57zM68.151 98.405l-1.331.432-1.082-3.329 1.332-.432zM39.259 9.485l-1.332.433-1.081-3.33 1.331-.432zM63.272 99.799l-1.369.29-.728-3.422 1.37-.291zM43.83 8.337l-1.369.291-.727-3.423 1.37-.291zM58.27 100.662l-1.393.146-.366-3.48 1.393-.147zM48.494 7.672l-1.392.147-.366-3.481 1.392-.147z\"/></g></g></svg>\n", u = "<svg focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 105 105\"><path id=\"mod_clock_svg_hours\" d=\"M55.7 64.5h-6.4l.6-44h5.2z\"/></svg>\n", d = "<svg focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 105 105\"><path d=\"M55.1,64.5h-5.2l0.8-58h3.6L55.1,64.5z\"/></svg>\n", f = "<svg focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 105 105\"><path d=\"M57.8,21.3c0-2.9-2.4-5.2-5.2-5.2s-5.3,2.3-5.3,5.2c0,2.7,2,4.8,4.5,5.2V69h1.5V26.5C55.8,26.2,57.8,24,57.8,21.3z\"/></svg>\n", p = n`:host{aspect-ratio:1;contain:content;display:block;position:relative;overflow:hidden}.sbb-clock__face,.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds{transform-origin:50%;transform-style:preserve-3d;backface-visibility:hidden;position:absolute;inset:0;transform:rotate(0)}.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__face{fill:var(--sbb-clock-face-color)}.sbb-clock__hand-minutes{transition:transform var(--sbb-disable-animation-duration,.2s) cubic-bezier(.4, 2.08, .55, .44)}@supports not (aspect-ratio:1/1){.sbb-clock__hand-minutes{transform-origin:50% 49.625%}}.sbb-clock__hand-hours{animation-name:rotate;animation-duration:43200s;animation-timing-function:linear;animation-iteration-count:infinite;animation-play-state:var(--sbb-clock-animation-play-state,"paused")}.sbb-clock__hand-hours--initial-hour{animation-name:hand-hours-animation-initial-hour;animation-duration:var(--sbb-clock-hours-animation-duration,0s);animation-play-state:var(--sbb-clock-animation-play-state,"paused");animation-iteration-count:1}.sbb-clock__hand-minutes--no-transition{transition:none}.sbb-clock__hand-seconds{animation-name:hand-seconds-animation;animation-duration:60s;animation-timing-function:linear;animation-play-state:var(--sbb-clock-animation-play-state,"paused");fill:var(--sbb-clock-seconds-hand-color);animation-iteration-count:infinite}.sbb-clock__hand-seconds--initial-minute{animation-name:hand-seconds-animation-initial-minute;animation-duration:var(--sbb-clock-seconds-animation-duration,0s);animation-play-state:var(--sbb-clock-animation-play-state,"paused");animation-iteration-count:1}:host(:not(:is(:state(initialized),[state--initialized]))) :is(.sbb-clock__hand-hours,.sbb-clock__hand-minutes,.sbb-clock__hand-seconds){display:none}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes hand-hours-animation-initial-hour{0%{transform:rotateZ(var(--sbb-clock-hours-animation-start-angle,0deg))}to{transform:rotate(360deg)}}@keyframes hand-seconds-animation{0%{transform:rotate(0)}97.5%,to{transform:rotate(360deg)}}@keyframes hand-seconds-animation-initial-minute{0%{transform:rotateZ(var(--sbb-clock-seconds-animation-start-angle,0deg))}97.5%,to{transform:rotate(360deg)}}`, m = 12, h = 60, g = 60, _ = 50, v = 360, y = 30, b = 6, x = 360 / 58.5, S = 60, C = 3600, w = C / 2, T = {
|
|
9
|
+
once: !0,
|
|
10
|
+
passive: !0
|
|
11
|
+
}, E = (() => {
|
|
12
|
+
let n = o, E, D = [], O = [];
|
|
13
|
+
return class extends n {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.#e = t(this, D, null), this._state = (t(this, O), "paused"), this._moveHoursHandFn = () => this._moveHoursHand(), this._moveMinutesHandFn = () => this._moveMinutesHand(), this._handlePageVisibilityChange = async () => {
|
|
16
|
+
this.now || (document.visibilityState === "hidden" ? await this._stopClock() : await this._startClock());
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
21
|
+
E = [a()], e(this, null, E, {
|
|
22
|
+
kind: "accessor",
|
|
23
|
+
name: "now",
|
|
24
|
+
static: !1,
|
|
25
|
+
private: !1,
|
|
26
|
+
access: {
|
|
27
|
+
has: (e) => "now" in e,
|
|
28
|
+
get: (e) => e.now,
|
|
29
|
+
set: (e, t) => {
|
|
30
|
+
e.now = t;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
metadata: t
|
|
34
|
+
}, D, O), t && Object.defineProperty(this, Symbol.metadata, {
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
configurable: !0,
|
|
37
|
+
writable: !0,
|
|
38
|
+
value: t
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.elementName = "sbb-clock";
|
|
43
|
+
}
|
|
44
|
+
static {
|
|
45
|
+
this.styles = [s, p];
|
|
46
|
+
}
|
|
47
|
+
#e;
|
|
48
|
+
get now() {
|
|
49
|
+
return this.#e;
|
|
50
|
+
}
|
|
51
|
+
set now(e) {
|
|
52
|
+
this.#e = e;
|
|
53
|
+
}
|
|
54
|
+
connectedCallback() {
|
|
55
|
+
super.connectedCallback(), this._resetIntervalId = setInterval(() => this._resetClock(), w * 1e3);
|
|
56
|
+
}
|
|
57
|
+
willUpdate(e) {
|
|
58
|
+
super.willUpdate(e), !i && e.has("now") && this._startOrConfigureClock();
|
|
59
|
+
}
|
|
60
|
+
firstUpdated(e) {
|
|
61
|
+
super.firstUpdated(e), i || (document.addEventListener("visibilitychange", this._handlePageVisibilityChange, !1), this._startOrConfigureClock());
|
|
62
|
+
}
|
|
63
|
+
disconnectedCallback() {
|
|
64
|
+
super.disconnectedCallback(), this._removeEventListeners(), clearInterval(this._resetIntervalId);
|
|
65
|
+
}
|
|
66
|
+
async _startOrConfigureClock() {
|
|
67
|
+
this.now ? (await this._stopClock(), this._resetSecondsHandAnimation(), this._setHandsStartingPosition()) : await this._startClock();
|
|
68
|
+
}
|
|
69
|
+
async _startClock() {
|
|
70
|
+
this._clockHandHours?.addEventListener("animationend", this._moveHoursHandFn, T), this._clockHandSeconds?.addEventListener("animationend", this._moveMinutesHandFn, T), await new Promise((e) => setTimeout(() => {
|
|
71
|
+
this._setHandsStartingPosition(), this.style?.setProperty("--sbb-clock-animation-play-state", "running"), this._state = "running", e();
|
|
72
|
+
}, _));
|
|
73
|
+
}
|
|
74
|
+
async _stopClock() {
|
|
75
|
+
clearInterval(this._handMovement), this._removeSecondsAnimationStyles(), this._removeHoursAnimationStyles(), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._clockHandMinutes?.classList.add("sbb-clock__hand-minutes--no-transition"), this.style?.setProperty("--sbb-clock-animation-play-state", "paused"), this._state = "paused";
|
|
76
|
+
}
|
|
77
|
+
async _resetClock() {
|
|
78
|
+
this._state === "running" && (await this._stopClock(), await this._startClock());
|
|
79
|
+
}
|
|
80
|
+
_setHandsStartingPosition() {
|
|
81
|
+
this._assignCurrentTime();
|
|
82
|
+
let e = g - this._seconds, t = h - this._minutes, n = m - this._hours, r = 0, i = 0;
|
|
83
|
+
e > 0 && (r += e, i = 1), t > 0 && (r += (t - i) * S, i = 1), n > 0 && (r += (n - i) * C), this.style?.setProperty("--sbb-clock-hours-animation-start-angle", `${Math.ceil(this._hours * y + this._minutes / 2)}deg`), this.style?.setProperty("--sbb-clock-hours-animation-duration", `${r}s`), this.style?.setProperty("--sbb-clock-seconds-animation-start-angle", `${Math.ceil(this._seconds * x)}deg`), this.style?.setProperty("--sbb-clock-seconds-animation-duration", `${e}s`), this._setMinutesHand(), this._clockHandSeconds?.classList.add("sbb-clock__hand-seconds--initial-minute"), this._clockHandHours?.classList.add("sbb-clock__hand-hours--initial-hour"), this.internals.states.add("initialized");
|
|
84
|
+
}
|
|
85
|
+
_assignCurrentTime() {
|
|
86
|
+
let e = this.now ? null : /* @__PURE__ */ new Date(), [t, n, r] = e ? [
|
|
87
|
+
e.getHours(),
|
|
88
|
+
e.getMinutes(),
|
|
89
|
+
e.getSeconds()
|
|
90
|
+
] : this.now.split(":").map((e) => +e);
|
|
91
|
+
this._hours = t % 12, this._minutes = n, this._seconds = r;
|
|
92
|
+
}
|
|
93
|
+
_setMinutesHand() {
|
|
94
|
+
this._clockHandMinutes?.style.setProperty("transform", `rotateZ(${Math.ceil(this._minutes * b)}deg)`);
|
|
95
|
+
}
|
|
96
|
+
_moveHoursHand() {
|
|
97
|
+
this._removeHoursAnimationStyles();
|
|
98
|
+
let e = Math.ceil(this._hours * y + this._minutes / 2);
|
|
99
|
+
e >= v && (e -= v), this._clockHandHours?.style.setProperty("transform", `rotateZ(${e}deg)`);
|
|
100
|
+
}
|
|
101
|
+
_moveMinutesHand() {
|
|
102
|
+
this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), this._removeSecondsAnimationStyles(), this._addMinutesAndSetHands(), this._handMovement = setInterval(() => this._addMinutesAndSetHands(), g * 1e3);
|
|
103
|
+
}
|
|
104
|
+
_addMinutesAndSetHands() {
|
|
105
|
+
this._minutes++, this._setMinutesHand();
|
|
106
|
+
}
|
|
107
|
+
_resetSecondsHandAnimation() {
|
|
108
|
+
this._clockHandSeconds && (this._clockHandSeconds.style.animation = "", this._clockHandSeconds.offsetHeight, this._clockHandSeconds.style.removeProperty("animation"));
|
|
109
|
+
}
|
|
110
|
+
_removeEventListeners() {
|
|
111
|
+
document?.removeEventListener("visibilitychange", this._handlePageVisibilityChange), this._clockHandHours?.removeEventListener("animationend", this._moveHoursHandFn), this._clockHandSeconds?.removeEventListener("animationend", this._moveMinutesHandFn), clearInterval(this._handMovement);
|
|
112
|
+
}
|
|
113
|
+
_removeHoursAnimationStyles() {
|
|
114
|
+
this._clockHandHours?.classList.remove("sbb-clock__hand-hours--initial-hour"), this.style.removeProperty("--sbb-clock-hours-animation-start-angle"), this.style.removeProperty("--sbb-clock-hours-animation-duration");
|
|
115
|
+
}
|
|
116
|
+
_removeSecondsAnimationStyles() {
|
|
117
|
+
this._clockHandSeconds?.classList.remove("sbb-clock__hand-seconds--initial-minute"), this._clockHandMinutes?.classList.remove("sbb-clock__hand-minutes--no-transition"), this.style.removeProperty("--sbb-clock-seconds-animation-start-angle"), this.style.removeProperty("--sbb-clock-seconds-animation-duration");
|
|
118
|
+
}
|
|
119
|
+
render() {
|
|
120
|
+
return r`
|
|
121
|
+
<span class="sbb-clock__face" .innerHTML=${l}></span>
|
|
122
|
+
<span
|
|
123
|
+
class="sbb-clock__hand-hours"
|
|
124
|
+
.innerHTML=${u}
|
|
125
|
+
${c((e) => {
|
|
126
|
+
this._clockHandHours = e;
|
|
127
|
+
})}
|
|
128
|
+
></span>
|
|
129
|
+
<span
|
|
130
|
+
class="sbb-clock__hand-minutes sbb-clock__hand-minutes--no-transition"
|
|
131
|
+
.innerHTML=${d}
|
|
132
|
+
${c((e) => {
|
|
133
|
+
this._clockHandMinutes = e;
|
|
134
|
+
})}
|
|
135
|
+
></span>
|
|
136
|
+
<span
|
|
137
|
+
class="sbb-clock__hand-seconds"
|
|
138
|
+
.innerHTML=${f}
|
|
139
|
+
${c((e) => {
|
|
140
|
+
this._clockHandSeconds = e;
|
|
141
|
+
})}
|
|
142
|
+
></span>
|
|
143
|
+
`;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
})();
|
|
147
|
+
//#endregion
|
|
148
|
+
export { E as t };
|
package/clock.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./clock.component-DDaWbXHW.js";
|
|
2
|
+
import "./clock.pure.js";
|
|
3
|
+
//#region src/elements/clock.ts
|
|
2
4
|
e.define();
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SbbClockElement };
|
package/clock.pure.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
//#region src/elements/button/common/button-common.scss?lit&inline
|
|
3
|
+
var t = e`:host{--sbb-button-transition-duration:var(--sbb-disable-animation-duration,var(--sbb-animation-duration-2x));--sbb-button-box-shadow-definition:var(--sbb-shadow-elevation-level-3-shadow-2-offset-x) var(--sbb-button-shadow-2-offset-y) var(--sbb-button-shadow-2-blur) var(--sbb-shadow-elevation-level-3-shadow-2-spread) var(--sbb-button-shadow-2-color), var(--sbb-shadow-elevation-level-3-shadow-1-offset-x) var(--sbb-button-shadow-1-offset-y) var(--sbb-button-shadow-1-blur) var(--sbb-shadow-elevation-level-3-shadow-1-spread) var(--sbb-button-shadow-1-color);--_width:unset;--_min-height-modifier:0rem;--_border-color:var(--sbb-button-color-default-border);--_background-color:var(--sbb-button-color-default-background);--_color:var(--sbb-button-color-default-text);--_button-inset:0;--_border:calc(var(--sbb-button-border-width) + var(--sbb-button-border-overlap-fix,1px)) solid var(--_border-color);display:inline-block;outline:none!important}@media (forced-colors:active){:host{--sbb-button-border-overlap-fix:0rem;--sbb-button-color-default-border:CanvasText!important;--sbb-button-color-active-border:Highlight!important;--sbb-button-color-default-background:Canvas!important;--sbb-button-color-hover-background:Canvas!important;--sbb-button-color-active-background:Canvas!important;--sbb-button-color-disabled-background:Canvas!important;--sbb-button-color-disabled-text:GrayText!important;--sbb-button-color-loading-border:Highlight!important;--sbb-button-color-default-text:CanvasText!important;--sbb-button-color-hover-text:CanvasText!important;--sbb-button-color-active-text:CanvasText!important}:host(:is(:state(button),[state--button])){--sbb-button-color-default-text:ButtonText!important;--sbb-button-color-hover-text:ButtonText!important;--sbb-button-color-active-text:ButtonText!important}:host(:is(:state(link),[state--link])){--sbb-button-color-default-text:LinkText!important;--sbb-button-color-hover-text:LinkText!important;--sbb-button-color-active-text:LinkText!important}}:host([negative]){--sbb-button-color-disabled-background:var(--sbb-background-color-3-negative);--sbb-button-color-disabled-text:var(--sbb-color-aluminium)}:host([size=l]){--sbb-button-min-height:var(--sbb-button-min-height-size-l);--sbb-button-padding-inline:var(--sbb-button-padding-inline-size-l)}:host([size=m]){--sbb-button-min-height:var(--sbb-button-min-height-size-m);--sbb-button-padding-inline:var(--sbb-button-padding-inline-size-m)}:host([size=s]){--sbb-button-min-height:var(--sbb-button-min-height-size-s);--sbb-button-padding-inline:var(--sbb-button-padding-inline-size-s);--sbb-button-gap:var(--sbb-spacing-fixed-1x)}:host(:where(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name])):not(:is(:state(slotted),[state--slotted]))){--sbb-button-padding-inline:0;--_width:calc(var(--sbb-button-min-height) + var(--_min-height-modifier))}@media (any-hover:hover){:host(:not([disabled],:disabled,[disabled-interactive],:active,:is(:state(active),[state--active]),[loading]):is(:hover,:is(:state(force-hover),[state--force-hover]))){--sbb-button-translate-y-content-hover:-.0625rem;--sbb-button-shadow-1-offset-y:calc(.5 * var(--sbb-shadow-elevation-level-3-shadow-1-offset-y));--sbb-button-shadow-1-blur:calc(.5 * var(--sbb-shadow-elevation-level-3-shadow-1-blur));--sbb-button-shadow-2-blur:calc(.5 * var(--sbb-shadow-elevation-level-3-shadow-2-blur));--sbb-button-cursor:var(--sbb-cursor-pointer);--_border-color:var(--sbb-button-color-hover-border);--_color:var(--sbb-button-color-hover-text);--_background-color:var(--sbb-button-color-hover-background);--_button-inset:calc(var(--sbb-button-border-width) * -1)}}@media (forced-colors:active){:host(:not([disabled],:disabled,[disabled-interactive],:active,:is(:state(active),[state--active]),[loading]):is(:hover,:is(:state(force-hover),[state--force-hover]))){--sbb-button-color-hover-border:Highlight!important}}:host(:is([disabled],:disabled,[disabled-interactive])){--sbb-button-cursor:var(--sbb-cursor-default);--_color:var(--sbb-button-color-disabled-text);--_background-color:var(--sbb-button-color-disabled-background);--_border-color:var(--sbb-button-color-disabled-border);--_border:var(--sbb-button-border-disabled-width) var(--sbb-button-border-disabled-style) var(--_border-color)}:host(:not([disabled],:disabled,[disabled-interactive]):is(:active,:is(:state(active),[state--active]),[loading])){--_color:var(--sbb-button-color-active-text);--_background-color:var(--sbb-button-color-active-background);--_border-color:var(--sbb-button-color-active-border)}:host([loading]:not([disabled],:disabled,[disabled-interactive])){--_min-height-modifier:calc(-2 * var(--sbb-button-loading-border-width));--sbb-button-focus-outline-offset-override:calc(var(--sbb-focus-outline-offset) + var(--sbb-button-loading-border-width));--_border:none;--_transform-style:preserve-3d}.sbb-action-base{gap:var(--sbb-button-gap);font-size:var(--sbb-text-font-size-xs);letter-spacing:var(--sbb-typo-letter-spacing-text);text-align:left;white-space:nowrap;min-height:calc(var(--sbb-button-min-height) + var(--_min-height-modifier));width:var(--_width);border-radius:var(--sbb-button-border-radius);color:var(--_color);cursor:var(--sbb-button-cursor);-webkit-user-select:none;user-select:none;background-color:var(--_background-color);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transform-style:var(--_transform-style,flat);padding-block:var(--sbb-button-padding-block-min);padding-inline:var(--sbb-button-padding-inline);outline:none;justify-content:center;align-items:center;font-weight:700;text-decoration:none;transition-property:color,background-color;display:flex;position:relative}.sbb-action-base:before{content:"";inset:var(--_button-inset);border:var(--_border);border-radius:var(--sbb-button-border-radius);pointer-events:none;box-shadow:var(--sbb-button-box-shadow);transition-duration:var(--sbb-button-transition-duration);transition-timing-function:var(--sbb-button-transition-easing-function);transition-property:inset,border,box-shadow;position:absolute}:host([loading]:not([disabled],:disabled,[disabled-interactive])) .sbb-action-base{margin:var(--sbb-button-loading-border-width);padding-inline:calc(var(--sbb-button-padding-inline) - var(--sbb-button-loading-border-width));transition-property:none}:host(:is(:state(focus-visible),[state--focus-visible])) .sbb-action-base:before,:host(:focus-visible) .sbb-action-base:before,.sbb-action-base:focus-visible:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style,solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-button-focus-outline-offset-override,var(--sbb-focus-outline-offset))}.sbb-button__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host(:where(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name])):not(:is(:state(slotted),[state--slotted]))) .sbb-button__label{display:none}.sbb-button__label,::slotted([slot=icon]),sbb-icon{transition:translate var(--sbb-button-transition-duration) var(--sbb-button-transition-easing-function);translate:0 var(--sbb-button-translate-y-content-hover,0)}.sbb-button-loading-border{inset:calc(-1 * var(--sbb-button-loading-border-width));clip-path:border-box;border-radius:var(--sbb-button-border-radius);background:var(--_background-color);z-index:-1;contain:paint;animation:background-fade-in var(--sbb-disable-animation-duration,var(--sbb-animation-duration-6x)) var(--sbb-disable-animation-duration,var(--sbb-button-loading-delay)) linear;animation-fill-mode:forwards;position:absolute;transform:translateZ(-1px);container-type:inline-size}.sbb-button-loading-border:before{content:"";width:64cqmin;max-height:var(--sbb-button-min-height);aspect-ratio:2;background:radial-gradient(100% 100% at right, var(--sbb-button-color-active-text), transparent 50%);offset-path:border-box;offset-anchor:100% 50%;opacity:0;animation:snake-fade-in var(--sbb-disable-animation-duration,calc(var(--sbb-animation-duration-12x) * 2)) var(--sbb-disable-animation-duration,calc(var(--sbb-button-loading-delay) + var(--sbb-animation-duration-5x))) var(--sbb-animation-easing), snake-position var(--sbb-disable-animation-duration,calc(max(tan(atan2(var(--sbb-button-width), 1px)) / 136, .5) * 3s)) infinite linear;transform-style:preserve-3d;animation-fill-mode:forwards;display:block;position:absolute}@keyframes snake-position{to{offset-distance:100%}}@keyframes snake-fade-in{to{opacity:1}}@keyframes background-fade-in{to{background:var(--sbb-button-color-loading-border)}}`, n = e`:host{--sbb-button-color-active-background:var(--sbb-color-primary150);--sbb-button-color-active-border:var(--sbb-color-primary150);--sbb-button-color-active-text:var(--sbb-color-4-negative);--sbb-button-color-default-background:var(--sbb-color-primary);--sbb-button-color-default-border:var(--sbb-color-primary);--sbb-button-color-default-text:var(--sbb-color-1-negative);--sbb-button-color-hover-background:var(--sbb-color-primary125);--sbb-button-color-hover-border:var(--sbb-color-primary125);--sbb-button-color-hover-text:var(--sbb-color-3-negative);--sbb-button-color-loading-border:var(--lightningcss-light,color-mix(in srgb, var(--sbb-button-color-active-background) 50%, var(--sbb-button-color-default-text)))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-button-color-active-background) 70%, var(--sbb-button-color-default-text)));--sbb-button-shadow-1-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-primary) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-primary) 40%, transparent));--sbb-button-shadow-2-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-primary125) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-primary125) 40%, transparent))}:host([negative]){--sbb-button-color-active-background:var(--sbb-color-primary150);--sbb-button-color-active-border:var(--sbb-color-primary150);--sbb-button-color-active-text:var(--sbb-color-4-negative);--sbb-button-color-default-background:var(--sbb-color-primary);--sbb-button-color-default-border:var(--sbb-color-primary);--sbb-button-color-default-text:var(--sbb-color-1-negative);--sbb-button-color-hover-background:var(--sbb-color-primary125);--sbb-button-color-hover-border:var(--sbb-color-primary125);--sbb-button-color-hover-text:var(--sbb-color-3-negative);--sbb-button-color-loading-border:color-mix(in srgb, var(--sbb-button-color-active-background) 70%, var(--sbb-button-color-default-text));--sbb-button-shadow-1-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-primary) 60%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-primary) 40%, transparent));--sbb-button-shadow-2-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-primary125) 60%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-primary125) 40%, transparent))}:host(:not([disabled],:disabled,[disabled-interactive],:active,:is(:state(active),[state--active]),[loading])){--sbb-button-box-shadow:var(--sbb-button-box-shadow-definition)}`, r = e`:host{--sbb-button-color-active-background:var(--sbb-background-color-3);--sbb-button-color-active-border:var(--sbb-border-color-4-inverted);--sbb-button-color-active-text:var(--lightningcss-light,var(--sbb-color-anthracite))var(--lightningcss-dark,var(--sbb-color-graphite));--sbb-button-color-default-background:var(--sbb-background-color-1);--sbb-button-color-default-border:var(--sbb-border-color-4-inverted);--sbb-button-color-default-text:var(--sbb-color-3);--sbb-button-color-hover-background:var(--sbb-background-color-1);--sbb-button-color-hover-border:var(--sbb-border-color-4-inverted);--sbb-button-color-hover-text:var(--sbb-color-4);--sbb-button-color-loading-border:var(--sbb-border-color-4-inverted);--sbb-button-shadow-1-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-platinum) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-black) 30%, transparent));--sbb-button-shadow-2-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-cement) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-black) 30%, transparent));--sbb-button-border-overlap-fix:0rem}:host([negative]){--sbb-button-color-active-background:var(--sbb-background-color-2-negative);--sbb-button-color-active-border:var(--sbb-border-color-4-negative-inverted);--sbb-button-color-active-text:var(--sbb-color-graphite);--sbb-button-color-default-background:var(--sbb-background-color-1-negative);--sbb-button-color-default-border:var(--sbb-border-color-4-negative-inverted);--sbb-button-color-default-text:var(--sbb-color-3-negative);--sbb-button-color-hover-background:var(--sbb-background-color-1-negative);--sbb-button-color-hover-border:var(--sbb-border-color-4-negative-inverted);--sbb-button-color-hover-text:var(--sbb-color-4-negative);--sbb-button-color-loading-border:var(--sbb-border-color-4-negative-inverted);--sbb-button-shadow-1-color:color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-button-shadow-2-color:color-mix(in srgb, var(--sbb-color-black) 30%, transparent)}:host(:not([disabled],:disabled,[disabled-interactive],:active,:is(:state(active),[state--active]))){--sbb-button-box-shadow:var(--sbb-button-box-shadow-definition)}`, i = e`:host{--sbb-button-color-active-background:var(--sbb-background-color-1-inverted);--sbb-button-color-active-border:var(--sbb-border-color-1);--sbb-button-color-active-text:var(--lightningcss-light,var(--sbb-color-cloud))var(--lightningcss-dark,var(--sbb-color-anthracite));--sbb-button-color-default-background:var(--sbb-background-color-3-inverted);--sbb-button-color-default-border:var(--sbb-border-color-3);--sbb-button-color-default-text:var(--sbb-color-1-inverted);--sbb-button-color-hover-background:var(--sbb-background-color-3-inverted);--sbb-button-color-hover-border:var(--sbb-border-color-3);--sbb-button-color-hover-text:var(--sbb-color-3-inverted);--sbb-button-color-loading-border:var(--lightningcss-light,var(--sbb-color-iron))var(--lightningcss-dark,var(--sbb-color-silver));--sbb-button-shadow-1-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-platinum) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-black) 30%, transparent));--sbb-button-shadow-2-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-color-cement) 20%, transparent))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-color-black) 30%, transparent))}:host([negative]){--sbb-button-color-active-background:var(--sbb-background-color-1-negative-inverted);--sbb-button-color-active-border:var(--sbb-border-color-1-negative);--sbb-button-color-active-text:var(--sbb-color-anthracite);--sbb-button-color-default-background:var(--sbb-background-color-3-negative-inverted);--sbb-button-color-default-border:var(--sbb-border-color-3-negative);--sbb-button-color-default-text:var(--sbb-color-1-negative-inverted);--sbb-button-color-hover-background:var(--sbb-background-color-3-negative-inverted);--sbb-button-color-hover-border:var(--sbb-border-color-3-negative);--sbb-button-color-hover-text:var(--sbb-color-4-negative-inverted);--sbb-button-color-loading-border:var(--sbb-color-silver);--sbb-button-shadow-1-color:color-mix(in srgb, var(--sbb-color-black) 30%, transparent);--sbb-button-shadow-2-color:color-mix(in srgb, var(--sbb-color-black) 30%, transparent)}:host(:not([disabled],:disabled,[disabled-interactive],:active,:is(:state(active),[state--active]),[loading])){--sbb-button-box-shadow:var(--sbb-button-box-shadow-definition)}`, a = e`:host{--sbb-button-color-active-background:var(--sbb-background-color-4);--sbb-button-color-active-border:var(--sbb-border-color-4-inverted);--sbb-button-color-active-text:var(--sbb-color-1);--sbb-button-color-default-background:transparent;--sbb-button-color-default-border:transparent;--sbb-button-color-default-text:var(--sbb-color-1);--sbb-button-color-hover-background:var(--sbb-background-color-3);--sbb-button-color-hover-border:var(--sbb-border-color-3-inverted);--sbb-button-color-hover-text:var(--sbb-color-1);--sbb-button-color-loading-border:var(--lightningcss-light,var(--sbb-color-silver))var(--lightningcss-dark,var(--sbb-color-granite))}:host([negative]){--sbb-button-color-active-background:var(--sbb-background-color-4-negative);--sbb-button-color-active-border:var(--sbb-border-color-4-negative-inverted);--sbb-button-color-active-text:var(--sbb-color-1-negative);--sbb-button-color-default-background:transparent;--sbb-button-color-default-border:transparent;--sbb-button-color-default-text:var(--sbb-color-1-negative);--sbb-button-color-hover-background:var(--sbb-background-color-3-negative);--sbb-button-color-hover-border:var(--sbb-border-color-3-negative-inverted);--sbb-button-color-hover-text:var(--sbb-color-1-negative);--sbb-button-color-loading-border:var(--sbb-color-granite)}`, o = e`:host{-webkit-tap-highlight-color:transparent;--sbb-mini-button-transition-duration:var(--sbb-disable-animation-duration,var(--sbb-animation-duration-2x));--sbb-mini-button-color-background:var(--sbb-mini-button-color-default-background);--sbb-mini-button-color:var(--sbb-mini-button-color-text);height:fit-content;display:inline-block;outline:none!important}@media (forced-colors:active){:host{--sbb-mini-button-color-text:ButtonText!important;--sbb-mini-button-color-hover-background:Highlight!important;--sbb-mini-button-color-active-background:Highlight!important;--sbb-mini-button-color-disabled-background:Canvas!important;--sbb-mini-button-color-disabled-border:GrayText!important;--sbb-mini-button-color-disabled-text:GrayText!important}}:host([negative]){--sbb-mini-button-color-text:var(--sbb-color-3-negative);--sbb-mini-button-color-default-background:transparent;--sbb-mini-button-color-hover-background:var(--sbb-background-color-3-negative);--sbb-mini-button-color-active-background:var(--sbb-background-color-4-negative);--sbb-mini-button-color-disabled-background:var(--sbb-background-color-3-negative);--sbb-mini-button-color-disabled-border:var(--sbb-border-color-5);--sbb-mini-button-color-disabled-text:var(--sbb-color-5)}@media (any-hover:hover){:host(:is(:hover,:is(:state(force-hover),[state--force-hover])):not([disabled],:disabled,[disabled-interactive],:is(:state(disabled),[state--disabled]),:active,:is(:state(active),[state--active]))){--sbb-mini-button-translate-y-content-hover:-.0625rem;--sbb-mini-button-color-background:var(--sbb-mini-button-color-hover-background)}}:host(:is(:active,:is(:state(active),[state--active])):not([disabled],:disabled,[disabled-interactive],:is(:state(disabled),[state--disabled]))){--sbb-mini-button-color-background:var(--sbb-mini-button-color-active-background)}:host(:is([disabled],:disabled,[disabled-interactive],:is(:state(disabled),[state--disabled]))){--sbb-mini-button-color-background:var(--sbb-mini-button-color-disabled-background);--sbb-mini-button-border:var(--sbb-border-width-1x) dashed var(--sbb-mini-button-color-disabled-border);--sbb-mini-button-color:var(--sbb-mini-button-color-disabled-text);--sbb-mini-button-pointer-events:none;--sbb-mini-button-cursor:var(--sbb-cursor-default)}:host(:is(:state(focus-visible),[state--focus-visible])){--sbb-focus-outline-style:initial}.sbb-action-base{color:var(--sbb-mini-button-color);border-radius:var(--sbb-mini-button-border-radius);-webkit-user-select:none;user-select:none;pointer-events:var(--sbb-mini-button-pointer-events,auto);cursor:var(--sbb-mini-button-cursor,var(--sbb-cursor-pointer));transition:color var(--sbb-mini-button-transition-duration) var(--sbb-mini-button-transition-easing-function);outline:none;text-decoration:none;display:flex;position:relative}.sbb-action-base:before{content:"";border-radius:var(--sbb-mini-button-border-radius);background-color:var(--sbb-mini-button-color-background);transition-duration:var(--sbb-mini-button-transition-duration);transition-timing-function:var(--sbb-mini-button-transition-easing-function);border:var(--sbb-mini-button-border);transition-property:inset,background-color;position:absolute;inset:0}.sbb-action-base:focus-visible:before,:host(:is(:is(:state(focus-visible),[state--focus-visible]),:focus-visible)) .sbb-action-base:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style,solid) var(--sbb-focus-outline-width)}::slotted(sbb-icon),sbb-icon{transition:translate var(--sbb-mini-button-transition-duration) var(--sbb-mini-button-transition-easing-function);translate:0 var(--sbb-mini-button-translate-y-content-hover,0rem);min-width:var(--_sbb-mini-button-image-size,var(--sbb-size-icon-ui-small));min-height:var(--_sbb-mini-button-image-size,var(--sbb-size-icon-ui-small));justify-content:center;align-items:center;display:flex}`, s = e`:host{--sbb-mini-button-gap:.125rem;--sbb-mini-button-padding-inline:var(--sbb-spacing-fixed-2x);--sbb-mini-button-label-display:block;--sbb-mini-button-label-height:var(--sbb-size-icon-ui-small)}:host(:where(:is(:state(slotted-icon),[state--slotted-icon]),:is(:state(has-icon-name),[state--has-icon-name])):not(:is(:state(slotted),[state--slotted]))){--sbb-mini-button-padding-inline:0;--sbb-mini-button-label-display:none;--sbb-mini-button-label-height:unset}.sbb-action-base{height:var(--sbb-mini-button-label-height);gap:var(--sbb-mini-button-gap);padding-inline:var(--sbb-mini-button-padding-inline);justify-content:center;align-items:center}.sbb-mini-button__label{white-space:nowrap;text-overflow:ellipsis;font-size:var(--sbb-text-font-size-xxs);letter-spacing:var(--sbb-typo-letter-spacing-text);display:var(--sbb-mini-button-label-display);transition:translate var(--sbb-mini-button-transition-duration) var(--sbb-mini-button-transition-easing-function);translate:0 var(--sbb-mini-button-translate-y-content-hover,0);overflow:hidden}`;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { r as a, i, o as n, n as o, a as r, t as s, s as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { css as e, html as t } from "lit";
|
|
2
|
+
import { SbbElement as n } from "./core/base-elements.js";
|
|
3
|
+
import { boxSizingStyles as r } from "./core/styles.js";
|
|
4
|
+
import { i18nPage as i, i18nPaginatorOf as a } from "./core/i18n.js";
|
|
5
|
+
import "./divider.js";
|
|
6
|
+
import "./screen-reader-only.js";
|
|
7
|
+
import { styleMap as o } from "lit/directives/style-map.js";
|
|
8
|
+
import { SbbPaginatorCommonElementMixin as s } from "./paginator/common/paginator-common.js";
|
|
9
|
+
//#region src/elements/paginator/compact-paginator/compact-paginator.scss?lit&inline
|
|
10
|
+
var c = e`:host{--sbb-compact-paginator-height:var(--sbb-size-element-m);--sbb-compact-paginator-color:var(--lightningcss-light,var(--sbb-color-metal))var(--lightningcss-dark,var(--sbb-color-smoke));--sbb-paginator-compact-justify-content:start;display:block}:host([size=s]){--sbb-compact-paginator-height:var(--sbb-size-element-xs)}:host([negative]){--sbb-compact-paginator-color:var(--sbb-color-5)}:host([pager-position=end]){--sbb-paginator-compact-justify-content:end}.sbb-compact-paginator{gap:var(--sbb-spacing-fixed-5x);justify-content:var(--sbb-paginator-compact-justify-content);min-height:var(--sbb-compact-paginator-height);display:flex}.sbb-paginator__pages{--sbb-text-font-size:var(--sbb-text-font-size-m);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);justify-content:center;align-items:center;gap:var(--sbb-spacing-fixed-2x);color:var(--sbb-compact-paginator-color);display:flex}.sbb-compact-paginator__divider{height:1rem}`, l = class extends s(n) {
|
|
11
|
+
static {
|
|
12
|
+
this.elementName = "sbb-compact-paginator";
|
|
13
|
+
}
|
|
14
|
+
static {
|
|
15
|
+
this.styles = [r, c];
|
|
16
|
+
}
|
|
17
|
+
static {
|
|
18
|
+
this.events = { page: "page" };
|
|
19
|
+
}
|
|
20
|
+
_renderPageNumbers() {
|
|
21
|
+
return t`
|
|
22
|
+
<span class="sbb-paginator__pages" aria-hidden="true"
|
|
23
|
+
>${this.pageIndex + 1}<sbb-divider
|
|
24
|
+
orientation="vertical"
|
|
25
|
+
class="sbb-compact-paginator__divider"
|
|
26
|
+
style=${o({ "--sbb-divider-color": "currentcolor" })}
|
|
27
|
+
?negative=${this.negative}
|
|
28
|
+
></sbb-divider
|
|
29
|
+
>${this.numberOfPages()}</span
|
|
30
|
+
>
|
|
31
|
+
<sbb-screen-reader-only>
|
|
32
|
+
${`${this.accessibilityPageLabel ? this.accessibilityPageLabel : i[this.language.current]} ${this.pageIndex + 1} ${a[this.language.current]} ${this.numberOfPages()}`}
|
|
33
|
+
</sbb-screen-reader-only>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
renderPaginator() {
|
|
37
|
+
return t`
|
|
38
|
+
<div class="sbb-compact-paginator">
|
|
39
|
+
${this.pagerPosition === "start" ? t`${this.renderPrevNextButtons()} ${this._renderPageNumbers()}` : t`${this._renderPageNumbers()} ${this.renderPrevNextButtons()}`}
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { l as t };
|
|
@@ -1,76 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var z = (t, a, s) => a.has(t) || w("Cannot " + s);
|
|
5
|
-
var p = (t, a, s) => (z(t, a, "read from private field"), s ? s.call(t) : a.get(t)), g = (t, a, s) => a.has(t) ? w("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s), u = (t, a, s, i) => (z(t, a, "write to private field"), i ? i.call(t, s) : a.set(t, s), s);
|
|
6
|
-
import { __esDecorate as h, __runInitializers as n } from "tslib";
|
|
7
|
-
import { css as S, html as I } from "lit";
|
|
8
|
-
import { property as m } from "lit/decorators.js";
|
|
9
|
-
import { SbbElement as B } from "../../core/base-elements.js";
|
|
10
|
-
import { forceType as E } from "../../core/decorators.js";
|
|
11
|
-
import { ɵstateController as U } from "../../core/mixins.js";
|
|
12
|
-
import { boxSizingStyles as j } from "../../core/styles.js";
|
|
13
|
-
const O = S`@charset "UTF-8";:host{display:block}:host(:is(:not([color]),[color=white])){--sbb-container-background-color: var(--sbb-background-color-1)}:host([color=milk]){--sbb-container-background-color: var(--sbb-background-color-3)}:host([color=midnight]),:host([color=charcoal]){--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-container-color: var(--sbb-color-1-negative)}:host([color=midnight]){--sbb-container-background-color: var(--sbb-background-color-1-negative)}:host([color=charcoal]){--sbb-container-background-color: var(--sbb-background-color-2-negative)}:host(:is(:state(slotted-image),[state--slotted-image])){--sbb-container-background-color: transparent;--sbb-container-padding: var(--sbb-spacing-responsive-xxl)}:host([background-expanded]:not([expanded])){background-color:var(--sbb-container-background-color)}:host(:is(:state(slotted-image),[state--slotted-image])[background-expanded]){position:relative}@media(min-width:90rem){:host(:not([expanded],[background-expanded])){--sbb-container-background-border-radius: var(--sbb-border-radius-4x)}}.sbb-container{color:var(--sbb-container-color);background-color:var(--sbb-container-background-color);padding:var(--sbb-container-padding)}.sbb-container:after,.sbb-container:before{content:" ";display:block;visibility:hidden;height:0;overflow:hidden}:host([color=transparent]) .sbb-container{background-color:transparent}:host(:not([expanded])) .sbb-container{padding-inline:var(--sbb-page-spacing-padding, var(--sbb-layout-base-offset-responsive));margin-inline:auto;width:100%}@media(min-width:90rem){:host(:not([expanded])) .sbb-container{max-width:var(--sbb-spacing-max-width, calc(var(--sbb-layout-base-page-max-width) + 2 * var(--sbb-layout-base-offset-responsive)))}}:host([expanded]) .sbb-container{padding-inline:var(--sbb-page-spacing-padding, var(--sbb-spacing-responsive-xxs))}:host(:is(:state(slotted-image),[state--slotted-image]):not([background-expanded])) .sbb-container{position:relative}:host(:is(:state(slotted-image),[state--slotted-image])) .sbb-container__content{position:relative}::slotted([slot=image]){position:absolute;inset:0;height:100%;width:100%}`;
|
|
14
|
-
let K = (() => {
|
|
15
|
-
var d, c, l, r;
|
|
16
|
-
let t = B, a, s = [], i = [], x, k = [], v = [], f, _ = [], y = [];
|
|
17
|
-
return r = class extends t {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
g(this, d, n(this, s, !1));
|
|
21
|
-
g(this, c, (n(this, i), n(this, k, !1)));
|
|
22
|
-
g(this, l, (n(this, v), n(this, _, "white")));
|
|
23
|
-
n(this, y);
|
|
24
|
-
}
|
|
25
|
-
/** Whether the container is expanded. */
|
|
26
|
-
get expanded() {
|
|
27
|
-
return p(this, d);
|
|
28
|
-
}
|
|
29
|
-
set expanded(o) {
|
|
30
|
-
u(this, d, o);
|
|
31
|
-
}
|
|
32
|
-
/** Whether the background color is shown on full container width on large screens. */
|
|
33
|
-
get backgroundExpanded() {
|
|
34
|
-
return p(this, c);
|
|
35
|
-
}
|
|
36
|
-
set backgroundExpanded(o) {
|
|
37
|
-
u(this, c, o);
|
|
38
|
-
}
|
|
39
|
-
/** Color of the container, like transparent, white etc. */
|
|
40
|
-
get color() {
|
|
41
|
-
return p(this, l);
|
|
42
|
-
}
|
|
43
|
-
set color(o) {
|
|
44
|
-
u(this, l, o);
|
|
45
|
-
}
|
|
46
|
-
willUpdate(o) {
|
|
47
|
-
if (super.willUpdate(o), o.has("expanded")) {
|
|
48
|
-
const e = this.querySelector?.("sbb-sticky-bar");
|
|
49
|
-
U(e)?.toggle("expanded", this.expanded);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return I`
|
|
54
|
-
<div class="sbb-container">
|
|
55
|
-
<slot name="image"></slot>
|
|
56
|
-
<div class="sbb-container__content">
|
|
57
|
-
<slot></slot>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
<slot name="sticky-bar"></slot>
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
}, d = new WeakMap(), c = new WeakMap(), l = new WeakMap(), (() => {
|
|
64
|
-
const o = typeof Symbol == "function" && Symbol.metadata ? Object.create(t[Symbol.metadata] ?? null) : void 0;
|
|
65
|
-
a = [E(), m({ type: Boolean, reflect: !0 })], x = [E(), m({ type: Boolean, reflect: !0, attribute: "background-expanded" })], f = [m({ reflect: !0 })], h(r, null, a, { kind: "accessor", name: "expanded", static: !1, private: !1, access: { has: (e) => "expanded" in e, get: (e) => e.expanded, set: (e, b) => {
|
|
66
|
-
e.expanded = b;
|
|
67
|
-
} }, metadata: o }, s, i), h(r, null, x, { kind: "accessor", name: "backgroundExpanded", static: !1, private: !1, access: { has: (e) => "backgroundExpanded" in e, get: (e) => e.backgroundExpanded, set: (e, b) => {
|
|
68
|
-
e.backgroundExpanded = b;
|
|
69
|
-
} }, metadata: o }, k, v), h(r, null, f, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (e) => "color" in e, get: (e) => e.color, set: (e, b) => {
|
|
70
|
-
e.color = b;
|
|
71
|
-
} }, metadata: o }, _, y), o && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: o });
|
|
72
|
-
})(), r.elementName = "sbb-container", r.styles = [j, O], r;
|
|
73
|
-
})();
|
|
74
|
-
export {
|
|
75
|
-
K as SbbContainerElement
|
|
76
|
-
};
|
|
1
|
+
import { t as e } from "../../container.component-DXFIvseq.js";
|
|
2
|
+
export { e as SbbContainerElement };
|
package/container/container.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
e.define();
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
e as SbbContainerElement
|
|
7
|
-
};
|
|
1
|
+
import { t as e } from "../container.component-DXFIvseq.js";
|
|
2
|
+
e.define(), console.warn("The entrypoint '@sbb-esta/elements/container/container.js' has been deprecated.\nUse either '@sbb-esta/elements/container.js' or '@sbb-esta/elements/container.pure.js' instead.");
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as SbbContainerElement };
|