@sbb-esta/lyne-elements-dev 4.7.0-dev.1773648103 → 4.7.0-dev.1773648656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.component.js +2 -98
- package/accordion.component-DmaGQH3Q.js +127 -0
- package/accordion.js +5 -4
- package/accordion.pure.js +2 -4
- package/action-group/action-group.component.js +2 -107
- package/action-group.component-KWugkMGf.js +158 -0
- package/action-group.js +5 -4
- package/action-group.pure.js +2 -4
- package/alert/alert/alert.component.js +2 -143
- package/alert/alert-group/alert-group.component.js +2 -103
- package/alert/alert-group.js +4 -7
- package/alert/alert.js +4 -7
- package/alert-group.component-RV1M1OKy.js +141 -0
- package/alert.component-PPR7hfTi.js +165 -0
- package/alert.js +6 -8
- package/alert.pure.js +3 -6
- package/autocomplete/autocomplete-base-element.js +2 -373
- package/autocomplete/autocomplete.component.js +51 -50
- package/autocomplete-base-element-DVFCZ4lt.js +425 -0
- package/autocomplete.js +7 -7
- package/autocomplete.pure.js +3 -6
- package/block-link-common-D4aizuV-.js +63 -0
- package/breadcrumb/breadcrumb/breadcrumb.component.js +2 -20
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -135
- package/breadcrumb/breadcrumb-group.js +4 -7
- package/breadcrumb/breadcrumb.js +4 -7
- package/breadcrumb-group.component-BA8KK3Om.js +145 -0
- package/breadcrumb.component-DjkZzGJD.js +24 -0
- package/breadcrumb.js +6 -8
- package/breadcrumb.pure.js +3 -6
- package/button/accent-button/accent-button.component.js +18 -14
- package/button/accent-button-link/accent-button-link.component.js +18 -14
- package/button/accent-button-link.js +4 -4
- package/button/accent-button-static/accent-button-static.component.js +17 -13
- package/button/accent-button-static.js +4 -4
- package/button/accent-button.js +4 -4
- package/button/button/button.component.js +18 -14
- package/button/button-link/button-link.component.js +18 -14
- package/button/button-link.js +4 -4
- package/button/button-static/button-static.component.js +18 -14
- package/button/button-static.js +4 -4
- package/button/button.js +4 -4
- package/button/common/button-common.js +81 -67
- package/button/common.js +3 -12
- package/button/mini-button/mini-button.component.js +22 -18
- package/button/mini-button-group/mini-button-group.component.js +2 -68
- package/button/mini-button-group.js +6 -6
- package/button/mini-button-link/mini-button-link.component.js +2 -27
- package/button/mini-button-link.js +6 -6
- package/button/mini-button.js +4 -4
- package/button/secondary-button/secondary-button.component.js +18 -14
- package/button/secondary-button-link/secondary-button-link.component.js +18 -14
- package/button/secondary-button-link.js +6 -6
- package/button/secondary-button-static/secondary-button-static.component.js +18 -14
- package/button/secondary-button-static.js +4 -4
- package/button/secondary-button.js +6 -6
- package/button/transparent-button/transparent-button.component.js +18 -14
- package/button/transparent-button-link/transparent-button-link.component.js +18 -14
- package/button/transparent-button-link.js +6 -6
- package/button/transparent-button-static/transparent-button-static.component.js +18 -14
- package/button/transparent-button-static.js +4 -4
- package/button/transparent-button.js +4 -4
- package/button.js +20 -56
- package/button.pure.js +18 -42
- package/calendar/calendar/calendar.component.js +2 -1227
- package/calendar/calendar-day/calendar-day.component.js +2 -98
- package/calendar/calendar-day.js +4 -7
- package/calendar/calendar.js +4 -9
- package/calendar-day.component-DqAXvoP3.js +113 -0
- package/calendar.component-BgZDy-rX.js +1246 -0
- package/calendar.js +6 -10
- package/calendar.pure.js +3 -7
- package/card/card/card.component.js +2 -48
- package/card/card-badge/card-badge.component.js +2 -48
- package/card/card-badge.js +4 -7
- package/card/card-button/card-button.component.js +11 -10
- package/card/card-button.js +3 -6
- package/card/card-link/card-link.component.js +11 -10
- package/card/card-link.js +3 -6
- package/card/card.js +4 -7
- package/card/common/card-action-common.js +2 -63
- package/card/common.js +5 -6
- package/card-action-common-GpkaNYtV.js +88 -0
- package/card-badge.component-D_PI9Ega.js +65 -0
- package/card.component-Dt2YFmd3.js +62 -0
- package/card.js +9 -16
- package/card.pure.js +5 -11
- package/carousel/carousel/carousel.component.js +2 -88
- package/carousel/carousel-item/carousel-item.component.js +2 -18
- package/carousel/carousel-item.js +4 -7
- package/carousel/carousel-list/carousel-list.component.js +2 -90
- package/carousel/carousel-list.js +4 -7
- package/carousel/carousel.js +4 -7
- package/carousel-item.component-kv3rY8B-.js +25 -0
- package/carousel-list.component-DMMk66SP.js +91 -0
- package/carousel.component-Bd0iGUbf.js +97 -0
- package/carousel.js +7 -11
- package/carousel.pure.js +4 -8
- package/checkbox/checkbox-group.js +2 -3
- package/checkbox/checkbox-panel.js +2 -3
- package/checkbox/checkbox.component.js +3 -91
- package/checkbox/checkbox.js +5 -7
- package/checkbox/common/checkbox-common.js +2 -57
- package/checkbox/common.js +5 -7
- package/checkbox-common-D9htxWLZ.js +68 -0
- package/checkbox-group/checkbox-group.component.js +2 -101
- package/checkbox-group.component-CNAwwaS0.js +146 -0
- package/checkbox-group.js +5 -4
- package/checkbox-group.pure.js +2 -4
- package/checkbox-panel/checkbox-panel.component.js +63 -48
- package/checkbox-panel.js +4 -3
- package/checkbox-panel.pure.js +2 -4
- package/checkbox.component-CJcC5JnN.js +125 -0
- package/checkbox.js +10 -14
- package/checkbox.pure.js +3 -7
- package/chip/chip/chip.component.js +2 -73
- package/chip/chip-group/chip-group.component.js +2 -267
- package/chip/chip-group.js +4 -9
- package/chip/chip.js +4 -7
- package/chip-group.component-D2AZqL3m.js +290 -0
- package/chip-label/chip-label.component.js +2 -56
- package/chip-label.component-DBN4jfW7.js +80 -0
- package/chip-label.js +5 -4
- package/chip-label.pure.js +2 -4
- package/chip.component-BNOs8T6O.js +94 -0
- package/chip.js +6 -10
- package/chip.pure.js +3 -7
- package/clock/clock.component.js +2 -153
- package/clock.component-DDaWbXHW.js +148 -0
- package/clock.js +5 -4
- package/clock.pure.js +2 -4
- package/common-CI_BB6sF.js +5 -0
- package/compact-paginator.component-BxSy5YXY.js +45 -0
- package/container/container/container.component.js +2 -76
- package/container/container.js +4 -7
- package/container/sticky-bar/sticky-bar.component.js +2 -122
- package/container/sticky-bar.js +4 -7
- package/container.component-DXFIvseq.js +117 -0
- package/container.js +6 -8
- package/container.pure.js +3 -6
- package/core/a11y/arrow-navigation.js +45 -33
- package/core/a11y/fake-event-detection.js +8 -9
- package/core/a11y/focus-trap-controller.js +69 -91
- package/core/a11y/focus-visible-within-controller.js +18 -18
- package/core/a11y/focus.js +13 -13
- package/core/a11y/input-modality-detector.js +42 -47
- package/core/a11y/interactivity-checker.js +61 -96
- package/core/a11y/live-announcer.js +29 -40
- package/core/a11y.js +9 -26
- package/core/base-elements/action-base-element.js +29 -37
- package/core/base-elements/button-base-element.js +165 -145
- package/core/base-elements/element.js +28 -63
- package/core/base-elements/link-base-element.js +186 -119
- package/core/base-elements/open-close-base-element.js +40 -42
- package/core/base-elements.js +6 -13
- package/core/config/config.js +8 -9
- package/core/config.js +2 -5
- package/core/controllers/escapable-overlay-controller.js +23 -25
- package/core/controllers/id-reference-controller.js +50 -59
- package/core/controllers/inert-controller.js +55 -57
- package/core/controllers/language-controller.js +53 -38
- package/core/controllers/media-matchers-controller.js +82 -96
- package/core/controllers/overlay-position-controller.js +215 -222
- package/core/controllers/property-watcher-controller.js +55 -59
- package/core/controllers/slot-state-controller.js +34 -36
- package/core/controllers.js +7 -28
- package/core/datetime/date-adapter.js +61 -135
- package/core/datetime/native-date-adapter.js +91 -140
- package/core/datetime/temporal-date-adapter.js +108 -144
- package/core/datetime.js +4 -16
- package/core/decorators/base.js +0 -1
- package/core/decorators/force-type.js +12 -16
- package/core/decorators/get-override.js +10 -13
- package/core/decorators/handle-distinct-change.js +12 -15
- package/core/decorators/host-attributes.js +15 -16
- package/core/decorators/id-reference.js +65 -75
- package/core/decorators/omit-empty-converter.js +7 -9
- package/core/decorators/plain-date.js +21 -25
- package/core/decorators.js +8 -17
- package/core/dom/animation.js +8 -9
- package/core/dom/contains-pierce-shadow-dom.js +10 -11
- package/core/dom/lean-context.js +4 -4
- package/core/dom/platform.js +8 -18
- package/core/dom/queue-dom-content-loaded.js +6 -6
- package/core/dom/scroll.js +14 -16
- package/core/dom/set-or-remove-attribute.js +5 -5
- package/core/dom.js +6 -25
- package/core/eventing/composed-path-has-attribute.js +6 -7
- package/core/eventing/event-target.js +5 -5
- package/core/eventing/form-element-handlers.js +5 -5
- package/core/eventing/forward-event.js +6 -6
- package/core/eventing/is-event-prevented.js +5 -5
- package/core/eventing/throttle.js +10 -10
- package/core/eventing.js +7 -14
- package/core/i18n/i18n.js +634 -738
- package/core/i18n.js +2 -104
- package/core/images.js +14 -14
- package/core/interfaces.js +0 -1
- package/core/mixins/animation-complete-mixin.js +34 -42
- package/core/mixins/constructor.js +0 -1
- package/core/mixins/disabled-mixin.js +91 -74
- package/core/mixins/element-internals-mixin.js +149 -155
- package/core/mixins/form-associated-checkbox-mixin.js +106 -93
- package/core/mixins/form-associated-input-mixin.js +202 -193
- package/core/mixins/form-associated-mixin.js +168 -226
- package/core/mixins/form-associated-radio-button-mixin.js +152 -168
- package/core/mixins/hydration-mixin.js +27 -37
- package/core/mixins/named-slot-list-mixin.js +77 -95
- package/core/mixins/negative-mixin.js +45 -33
- package/core/mixins/panel-mixin.js +109 -70
- package/core/mixins/readonly-mixin.js +40 -34
- package/core/mixins/required-mixin.js +48 -35
- package/core/mixins/selection-panel-mixin.js +36 -39
- package/core/mixins/update-scheduler-mixin.js +20 -21
- package/core/mixins.js +21 -41
- package/core/overlay/overlay-option-panel.js +15 -16
- package/core/overlay/overlay-outside-pointer-event-listener.js +34 -37
- package/core/overlay/overlay-trigger-attributes.js +11 -14
- package/core/overlay/overlay.js +6 -6
- package/core/overlay/position.js +53 -49
- package/core/overlay.js +6 -19
- package/core/styles.js +5 -5
- package/core/testing/event-spy.js +46 -50
- package/core/testing/mocha-extensions.js +7 -10
- package/core/testing/wait-for-condition.js +10 -12
- package/core/testing/wait-for-image-ready.js +15 -16
- package/core/testing/wait-for-render.js +12 -13
- package/core/testing.js +6 -14
- package/custom-elements.json +746 -746
- package/date-input/date-input.component.js +2 -166
- package/date-input.component-zZtnd9Og.js +205 -0
- package/date-input.js +5 -4
- package/date-input.pure.js +2 -4
- package/datepicker/common/datepicker-button.js +2 -102
- package/datepicker/common.js +5 -8
- package/datepicker/datepicker/datepicker.component.js +2 -120
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +27 -23
- package/datepicker/datepicker-next-day.js +3 -6
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +27 -23
- package/datepicker/datepicker-previous-day.js +3 -6
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +66 -51
- package/datepicker/datepicker-toggle.js +3 -6
- package/datepicker/datepicker.js +4 -7
- package/datepicker-button-C1TrzFl-.js +109 -0
- package/datepicker.component-cmdnlVgf.js +156 -0
- package/datepicker.js +9 -18
- package/datepicker.pure.js +5 -13
- package/development/accordion/accordion.component.js +2 -132
- package/development/accordion.component-BIFcgIa0.js +172 -0
- package/development/accordion.js +8 -5
- package/development/accordion.pure.js +2 -5
- package/development/action-group/action-group.component.js +2 -305
- package/development/action-group.component-CuhO6yb9.js +379 -0
- package/development/action-group.js +8 -5
- package/development/action-group.pure.js +2 -5
- package/development/alert/alert/alert.component.js +2 -385
- package/development/alert/alert-group/alert-group.component.js +2 -166
- package/development/alert/alert-group.js +7 -5
- package/development/alert/alert.js +7 -5
- package/development/alert-group.component-BlrlsRB8.js +219 -0
- package/development/alert.component-CJ2yLyOY.js +411 -0
- package/development/alert.js +9 -7
- package/development/alert.pure.js +3 -7
- package/development/autocomplete/autocomplete-base-element.js +2 -897
- package/development/autocomplete/autocomplete.component.js +82 -72
- package/development/autocomplete-base-element-DCfmuVY6.js +960 -0
- package/development/autocomplete.js +8 -6
- package/development/autocomplete.pure.js +2 -6
- package/development/block-link-common-FvD8So7p.js +145 -0
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +2 -77
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +2 -263
- package/development/breadcrumb/breadcrumb-group.js +7 -5
- package/development/breadcrumb/breadcrumb.js +7 -5
- package/development/breadcrumb-group.component-DjsoMTPI.js +278 -0
- package/development/breadcrumb.component-DvOf-PiO.js +89 -0
- package/development/breadcrumb.js +9 -7
- package/development/breadcrumb.pure.js +3 -7
- package/development/button/accent-button/accent-button.component.js +24 -13
- package/development/button/accent-button-link/accent-button-link.component.js +24 -13
- package/development/button/accent-button-link.js +9 -7
- package/development/button/accent-button-static/accent-button-static.component.js +24 -13
- package/development/button/accent-button-static.js +9 -7
- package/development/button/accent-button.js +9 -7
- package/development/button/button/button.component.js +23 -12
- package/development/button/button-link/button-link.component.js +23 -12
- package/development/button/button-link.js +9 -7
- package/development/button/button-static/button-static.component.js +23 -12
- package/development/button/button-static.js +9 -7
- package/development/button/button.js +9 -7
- package/development/button/common/button-common.js +104 -85
- package/development/button/common.js +2 -12
- package/development/button/mini-button/mini-button.component.js +28 -17
- package/development/button/mini-button-group/mini-button-group.component.js +2 -141
- package/development/button/mini-button-group.js +9 -7
- package/development/button/mini-button-link/mini-button-link.component.js +2 -34
- package/development/button/mini-button-link.js +9 -7
- package/development/button/mini-button.js +9 -7
- package/development/button/secondary-button/secondary-button.component.js +23 -12
- package/development/button/secondary-button-link/secondary-button-link.component.js +23 -12
- package/development/button/secondary-button-link.js +9 -7
- package/development/button/secondary-button-static/secondary-button-static.component.js +23 -12
- package/development/button/secondary-button-static.js +9 -7
- package/development/button/secondary-button.js +9 -7
- package/development/button/transparent-button/transparent-button.component.js +23 -12
- package/development/button/transparent-button-link/transparent-button-link.component.js +23 -12
- package/development/button/transparent-button-link.js +9 -7
- package/development/button/transparent-button-static/transparent-button-static.component.js +23 -12
- package/development/button/transparent-button-static.js +9 -7
- package/development/button/transparent-button.js +9 -7
- package/development/button.js +10 -29
- package/development/button.pure.js +4 -29
- package/development/calendar/calendar/calendar.component.js +2 -1984
- package/development/calendar/calendar-day/calendar-day.component.js +2 -248
- package/development/calendar/calendar-day.js +7 -5
- package/development/calendar/calendar.js +7 -7
- package/development/calendar-day.component-De9Xn3-q.js +283 -0
- package/development/calendar.component-PHpgLc0z.js +2458 -0
- package/development/calendar.js +9 -9
- package/development/calendar.pure.js +3 -8
- package/development/card/card/card.component.js +2 -233
- package/development/card/card-badge/card-badge.component.js +2 -119
- package/development/card/card-badge.js +7 -5
- package/development/card/card-button/card-button.component.js +19 -11
- package/development/card/card-button.js +6 -4
- package/development/card/card-link/card-link.component.js +19 -11
- package/development/card/card-link.js +6 -4
- package/development/card/card.js +7 -5
- package/development/card/common/card-action-common.js +2 -121
- package/development/card/common.js +6 -5
- package/development/card-action-common-DqBn3bPy.js +147 -0
- package/development/card-badge.component-Cs4dow18.js +146 -0
- package/development/card.component-CeOZXXWU.js +258 -0
- package/development/card.js +10 -11
- package/development/card.pure.js +4 -11
- package/development/carousel/carousel/carousel.component.js +2 -160
- package/development/carousel/carousel-item/carousel-item.component.js +2 -32
- package/development/carousel/carousel-item.js +7 -5
- package/development/carousel/carousel-list/carousel-list.component.js +2 -157
- package/development/carousel/carousel-list.js +7 -5
- package/development/carousel/carousel.js +7 -5
- package/development/carousel-item.component-DOIXA2QK.js +47 -0
- package/development/carousel-list.component-7Z3dYtAF.js +160 -0
- package/development/carousel.component-b4C-hxkj.js +169 -0
- package/development/carousel.js +10 -9
- package/development/carousel.pure.js +4 -9
- package/development/checkbox/checkbox-group.js +5 -1
- package/development/checkbox/checkbox-panel.js +5 -1
- package/development/checkbox/checkbox.component.js +3 -141
- package/development/checkbox/checkbox.js +8 -5
- package/development/checkbox/common/checkbox-common.js +2 -137
- package/development/checkbox/common.js +6 -6
- package/development/checkbox-common-DD7r8g0_.js +147 -0
- package/development/checkbox-group/checkbox-group.component.js +2 -212
- package/development/checkbox-group.component-CRZO7CEc.js +265 -0
- package/development/checkbox-group.js +8 -5
- package/development/checkbox-group.pure.js +2 -5
- package/development/checkbox-panel/checkbox-panel.component.js +81 -54
- package/development/checkbox-panel.js +7 -4
- package/development/checkbox-panel.pure.js +1 -4
- package/development/checkbox.component-B43Akyck.js +193 -0
- package/development/checkbox.js +12 -11
- package/development/checkbox.pure.js +3 -8
- package/development/chip/chip/chip.component.js +2 -164
- package/development/chip/chip-group/chip-group.component.js +2 -464
- package/development/chip/chip-group.js +7 -7
- package/development/chip/chip.js +7 -5
- package/development/chip-group.component-DzCCcoOw.js +506 -0
- package/development/chip-label/chip-label.component.js +2 -131
- package/development/chip-label.component-jN_Fulv_.js +165 -0
- package/development/chip-label.js +8 -5
- package/development/chip-label.pure.js +2 -5
- package/development/chip.component-Bn7ffNEr.js +191 -0
- package/development/chip.js +9 -9
- package/development/chip.pure.js +3 -8
- package/development/clock/clock.component.js +2 -362
- package/development/clock.component-btjeVAaa.js +392 -0
- package/development/clock.js +8 -5
- package/development/clock.pure.js +2 -5
- package/development/common-Da_cep8M.js +565 -0
- package/development/compact-paginator.component-CCDP0TMd.js +96 -0
- package/development/container/container/container.component.js +2 -182
- package/development/container/container.js +7 -5
- package/development/container/sticky-bar/sticky-bar.component.js +2 -357
- package/development/container/sticky-bar.js +7 -5
- package/development/container.component-CVm8-HZ4.js +238 -0
- package/development/container.js +9 -7
- package/development/container.pure.js +3 -7
- package/development/core/a11y/arrow-navigation.js +67 -28
- package/development/core/a11y/fake-event-detection.js +10 -8
- package/development/core/a11y/focus-trap-controller.js +104 -120
- package/development/core/a11y/focus-visible-within-controller.js +25 -24
- package/development/core/a11y/focus.js +14 -13
- package/development/core/a11y/input-modality-detector.js +128 -75
- package/development/core/a11y/interactivity-checker.js +115 -108
- package/development/core/a11y/live-announcer.js +76 -80
- package/development/core/a11y.js +3 -21
- package/development/core/base-elements/action-base-element.js +37 -42
- package/development/core/base-elements/button-base-element.js +247 -205
- package/development/core/base-elements/element.js +69 -67
- package/development/core/base-elements/link-base-element.js +226 -150
- package/development/core/base-elements/open-close-base-element.js +54 -49
- package/development/core/base-elements.js +2 -10
- package/development/core/config/config.js +9 -11
- package/development/core/config.js +1 -5
- package/development/core/controllers/escapable-overlay-controller.js +34 -36
- package/development/core/controllers/id-reference-controller.js +76 -81
- package/development/core/controllers/inert-controller.js +99 -105
- package/development/core/controllers/language-controller.js +76 -66
- package/development/core/controllers/media-matchers-controller.js +145 -138
- package/development/core/controllers/overlay-position-controller.js +297 -283
- package/development/core/controllers/property-watcher-controller.js +94 -119
- package/development/core/controllers/slot-state-controller.js +75 -63
- package/development/core/controllers.js +1 -23
- package/development/core/datetime/date-adapter.js +143 -166
- package/development/core/datetime/native-date-adapter.js +142 -148
- package/development/core/datetime/temporal-date-adapter.js +162 -149
- package/development/core/datetime.js +1 -14
- package/development/core/decorators/base.js +0 -2
- package/development/core/decorators/force-type.js +24 -27
- package/development/core/decorators/get-override.js +17 -17
- package/development/core/decorators/handle-distinct-change.js +20 -21
- package/development/core/decorators/host-attributes.js +37 -26
- package/development/core/decorators/id-reference.js +115 -114
- package/development/core/decorators/omit-empty-converter.js +13 -9
- package/development/core/decorators/plain-date.js +36 -31
- package/development/core/decorators.js +1 -11
- package/development/core/dom/animation.js +8 -9
- package/development/core/dom/contains-pierce-shadow-dom.js +12 -12
- package/development/core/dom/lean-context.js +9 -5
- package/development/core/dom/platform.js +35 -28
- package/development/core/dom/queue-dom-content-loaded.js +11 -10
- package/development/core/dom/scroll.js +34 -34
- package/development/core/dom/set-or-remove-attribute.js +13 -9
- package/development/core/dom.js +1 -21
- package/development/core/eventing/composed-path-has-attribute.js +17 -10
- package/development/core/eventing/event-target.js +7 -5
- package/development/core/eventing/form-element-handlers.js +10 -7
- package/development/core/eventing/forward-event.js +12 -7
- package/development/core/eventing/is-event-prevented.js +8 -6
- package/development/core/eventing/throttle.js +16 -17
- package/development/core/eventing.js +1 -9
- package/development/core/i18n/i18n.js +770 -875
- package/development/core/i18n.js +1 -104
- package/development/core/images.js +20 -15
- package/development/core/interfaces.js +0 -2
- package/development/core/mixins/animation-complete-mixin.js +55 -51
- package/development/core/mixins/constructor.js +0 -2
- package/development/core/mixins/disabled-mixin.js +124 -101
- package/development/core/mixins/element-internals-mixin.js +212 -225
- package/development/core/mixins/form-associated-checkbox-mixin.js +160 -141
- package/development/core/mixins/form-associated-input-mixin.js +334 -314
- package/development/core/mixins/form-associated-mixin.js +287 -279
- package/development/core/mixins/form-associated-radio-button-mixin.js +260 -247
- package/development/core/mixins/hydration-mixin.js +58 -55
- package/development/core/mixins/named-slot-list-mixin.js +116 -114
- package/development/core/mixins/negative-mixin.js +56 -41
- package/development/core/mixins/panel-mixin.js +142 -93
- package/development/core/mixins/readonly-mixin.js +54 -43
- package/development/core/mixins/required-mixin.js +65 -46
- package/development/core/mixins/selection-panel-mixin.js +50 -55
- package/development/core/mixins/update-scheduler-mixin.js +30 -25
- package/development/core/mixins.js +10 -29
- package/development/core/overlay/overlay-option-panel.js +34 -26
- package/development/core/overlay/overlay-outside-pointer-event-listener.js +64 -60
- package/development/core/overlay/overlay-trigger-attributes.js +42 -39
- package/development/core/overlay/overlay.js +10 -5
- package/development/core/overlay/position.js +143 -117
- package/development/core/overlay.js +2 -16
- package/development/core/styles.js +6 -5
- package/development/core/testing/event-spy.js +66 -67
- package/development/core/testing/mocha-extensions.js +15 -13
- package/development/core/testing/wait-for-condition.js +14 -17
- package/development/core/testing/wait-for-image-ready.js +20 -27
- package/development/core/testing/wait-for-render.js +30 -18
- package/development/core/testing.js +1 -10
- package/development/date-input/date-input.component.js +2 -278
- package/development/date-input.component-CqsEOZfb.js +338 -0
- package/development/date-input.js +8 -5
- package/development/date-input.pure.js +2 -5
- package/development/datepicker/common/datepicker-button.js +2 -155
- package/development/datepicker/common.js +6 -7
- package/development/datepicker/datepicker/datepicker.component.js +2 -180
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +35 -30
- package/development/datepicker/datepicker-next-day.js +6 -4
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +35 -30
- package/development/datepicker/datepicker-previous-day.js +6 -4
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +79 -67
- package/development/datepicker/datepicker-toggle.js +6 -4
- package/development/datepicker/datepicker.js +7 -5
- package/development/datepicker-button-BORzfDaA.js +167 -0
- package/development/datepicker.component-CuFtPZg9.js +223 -0
- package/development/datepicker.js +9 -12
- package/development/datepicker.pure.js +3 -12
- package/development/dialog/dialog/dialog.component.js +2 -383
- package/development/dialog/dialog-actions/dialog-actions.component.js +2 -42
- package/development/dialog/dialog-actions.js +7 -5
- package/development/dialog/dialog-close-button/dialog-close-button.component.js +2 -36
- package/development/dialog/dialog-close-button.js +7 -5
- package/development/dialog/dialog-content/dialog-content.component.js +2 -31
- package/development/dialog/dialog-content.js +7 -5
- package/development/dialog/dialog-title/dialog-title.component.js +2 -39
- package/development/dialog/dialog-title.js +7 -5
- package/development/dialog/dialog.js +7 -8
- package/development/dialog-actions.component-Mbx-Bs3t.js +55 -0
- package/development/dialog-close-button.component-B1dPHPy2.js +48 -0
- package/development/dialog-content.component-qP09Yo_N.js +42 -0
- package/development/dialog-title.component-B4u2w8h5.js +50 -0
- package/development/dialog.component-DaM1FSHB.js +403 -0
- package/development/dialog.js +12 -16
- package/development/dialog.pure.js +6 -16
- package/development/divider/divider.component.js +2 -73
- package/development/divider.component-Ddzlu6Fw.js +95 -0
- package/development/divider.js +8 -5
- package/development/divider.pure.js +2 -5
- package/development/error.component-C76eZnXo.js +93 -0
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +2 -417
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -70
- package/development/expansion-panel/expansion-panel-content.js +7 -5
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -170
- package/development/expansion-panel/expansion-panel-header.js +7 -5
- package/development/expansion-panel/expansion-panel.js +7 -5
- package/development/expansion-panel-content.component-DTZk3ZKL.js +77 -0
- package/development/expansion-panel-header.component-C7ymZCux.js +175 -0
- package/development/expansion-panel.component-xUWTKeaC.js +489 -0
- package/development/expansion-panel.js +10 -9
- package/development/expansion-panel.pure.js +4 -9
- package/development/file-selector/common/file-selector-common.js +2 -431
- package/development/file-selector/common.js +6 -6
- package/development/file-selector/file-selector/file-selector.component.js +27 -18
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -126
- package/development/file-selector/file-selector-dropzone.js +7 -5
- package/development/file-selector/file-selector.js +6 -4
- package/development/file-selector-common-qMfAccOd.js +512 -0
- package/development/file-selector-dropzone.component-HDUIUSQI.js +154 -0
- package/development/file-selector.js +9 -9
- package/development/file-selector.pure.js +3 -9
- package/development/flip-card/flip-card/flip-card.component.js +2 -306
- package/development/flip-card/flip-card-details/flip-card-details.component.js +2 -69
- package/development/flip-card/flip-card-details.js +7 -5
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +2 -124
- package/development/flip-card/flip-card-summary.js +7 -5
- package/development/flip-card/flip-card.js +7 -5
- package/development/flip-card-details.component-BilGh5Yb.js +85 -0
- package/development/flip-card-summary.component-DDDnvs_c.js +151 -0
- package/development/flip-card.component-CdRzb7IT.js +334 -0
- package/development/flip-card.js +10 -9
- package/development/flip-card.pure.js +4 -9
- package/development/footer/footer.component.js +2 -251
- package/development/footer.component-C057PwF1.js +310 -0
- package/development/footer.js +8 -5
- package/development/footer.pure.js +2 -5
- package/development/form-field/error/error.component.js +2 -83
- package/development/form-field/error.js +7 -5
- package/development/form-field/form-field/form-field.component.js +2 -892
- package/development/form-field/form-field-clear/form-field-clear.component.js +49 -41
- package/development/form-field/form-field-clear.js +6 -4
- package/development/form-field/form-field.js +7 -7
- package/development/form-field.component-D4dQ8sCh.js +1009 -0
- package/development/form-field.js +9 -10
- package/development/form-field.pure.js +3 -9
- package/development/header/common/header-action-common.js +2 -329
- package/development/header/common.js +6 -5
- package/development/header/header/header.component.js +2 -385
- package/development/header/header-button/header-button.component.js +15 -7
- package/development/header/header-button.js +6 -4
- package/development/header/header-environment/header-environment.component.js +2 -88
- package/development/header/header-environment.js +7 -5
- package/development/header/header-link/header-link.component.js +15 -7
- package/development/header/header-link.js +6 -4
- package/development/header/header.js +7 -5
- package/development/header-action-common-Dff8K0RB.js +346 -0
- package/development/header-environment.component-DYnJkxCZ.js +101 -0
- package/development/header.component-DYls7wGO.js +446 -0
- package/development/header.js +10 -11
- package/development/header.pure.js +4 -11
- package/development/icon/icon-base.js +2 -174
- package/development/icon/icon-name-mixin.js +75 -59
- package/development/icon/icon-request.js +31 -38
- package/development/icon/icon-validate.js +36 -45
- package/development/icon/icon.component.js +119 -94
- package/development/icon-base-CcQCgmqX.js +206 -0
- package/development/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -74
- package/development/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-button.js +6 -4
- package/development/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -30
- package/development/icon-sidebar/icon-sidebar-container.js +7 -5
- package/development/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -22
- package/development/icon-sidebar/icon-sidebar-content.js +7 -5
- package/development/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +25 -15
- package/development/icon-sidebar/icon-sidebar-link.js +6 -4
- package/development/icon-sidebar/icon-sidebar.js +7 -5
- package/development/icon-sidebar-container.component-BJHjpF-Q.js +41 -0
- package/development/icon-sidebar-content.component-C2wreczL.js +33 -0
- package/development/icon-sidebar.component-PcmjRlDp.js +100 -0
- package/development/icon-sidebar.js +10 -11
- package/development/icon-sidebar.pure.js +4 -11
- package/development/icon.js +10 -12
- package/development/icon.pure.js +4 -12
- package/development/image/image.component.js +2 -648
- package/development/image.component-fvsSR3Df.js +820 -0
- package/development/image.js +8 -5
- package/development/image.pure.js +2 -5
- package/development/inline-link-common-CyTcO5MN.js +52 -0
- package/development/journey-header/journey-header.component.js +2 -158
- package/development/journey-header.component-BB8WYOqH.js +217 -0
- package/development/journey-header.js +8 -5
- package/development/journey-header.pure.js +2 -5
- package/development/lead-container/lead-container.component.js +2 -108
- package/development/lead-container.component-BGf8oqw7.js +122 -0
- package/development/lead-container.js +8 -5
- package/development/lead-container.pure.js +2 -5
- package/development/link/block-link/block-link.component.js +15 -7
- package/development/link/block-link-button/block-link-button.component.js +15 -7
- package/development/link/block-link-button.js +9 -7
- package/development/link/block-link-static/block-link-static.component.js +15 -7
- package/development/link/block-link-static.js +9 -7
- package/development/link/block-link.js +9 -7
- package/development/link/common/block-link-common.js +3 -124
- package/development/link/common/inline-link-common.js +3 -44
- package/development/link/common/link-common.js +2 -10
- package/development/link/common.js +4 -9
- package/development/link/link/link.component.js +14 -7
- package/development/link/link-button/link-button.component.js +14 -7
- package/development/link/link-button.js +9 -7
- package/development/link/link-static/link-static.component.js +14 -7
- package/development/link/link-static.js +9 -7
- package/development/link/link.js +9 -7
- package/development/link-common-5ob2nFyv.js +124 -0
- package/development/link-list/common/link-list-base.js +2 -131
- package/development/link-list/common.js +6 -6
- package/development/link-list/link-list-anchor.js +8 -5
- package/development/link-list/link-list.component.js +3 -152
- package/development/link-list/link-list.js +8 -5
- package/development/link-list-anchor/link-list-anchor.component.js +2 -61
- package/development/link-list-anchor.component-rAMp5_jH.js +77 -0
- package/development/link-list-anchor.js +8 -5
- package/development/link-list-anchor.pure.js +2 -5
- package/development/link-list-base-DxYNcAX7.js +172 -0
- package/development/link-list.component-DD6UjlwD.js +194 -0
- package/development/link-list.js +11 -9
- package/development/link-list.pure.js +3 -8
- package/development/link.js +10 -15
- package/development/link.pure.js +5 -15
- package/development/loading-indicator/loading-indicator.component.js +2 -243
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +2 -120
- package/development/loading-indicator-circle.component-CS32gPvE.js +144 -0
- package/development/loading-indicator-circle.js +8 -5
- package/development/loading-indicator-circle.pure.js +2 -5
- package/development/loading-indicator.component-CTRZkUdX.js +278 -0
- package/development/loading-indicator.js +8 -5
- package/development/loading-indicator.pure.js +2 -5
- package/development/logo/logo.component.js +2 -129
- package/development/logo.component-Cp-EyVpA.js +166 -0
- package/development/logo.js +8 -5
- package/development/logo.pure.js +2 -5
- package/development/map-container/map-container.component.js +2 -264
- package/development/map-container.component-BEAIuo5H.js +307 -0
- package/development/map-container.js +8 -5
- package/development/map-container.pure.js +2 -5
- package/development/menu/common/menu-action-common.js +2 -144
- package/development/menu/common.js +6 -5
- package/development/menu/menu/menu.component.js +2 -683
- package/development/menu/menu-button/menu-button.component.js +20 -8
- package/development/menu/menu-button.js +6 -4
- package/development/menu/menu-link/menu-link.component.js +21 -11
- package/development/menu/menu-link.js +6 -4
- package/development/menu/menu.js +7 -5
- package/development/menu-action-common-CyBv0NwR.js +148 -0
- package/development/menu.component-GHJHhE9D.js +638 -0
- package/development/menu.js +9 -9
- package/development/menu.pure.js +3 -9
- package/development/message/message.component.js +2 -67
- package/development/message.component-uv9eI2gl.js +82 -0
- package/development/message.js +8 -5
- package/development/message.pure.js +2 -5
- package/development/mini-button-group.component-ytJZBjmr.js +174 -0
- package/development/mini-button-link.component-DZOOdeZt.js +47 -0
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +2 -188
- package/development/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -166
- package/development/mini-calendar/mini-calendar-day.js +7 -5
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -135
- package/development/mini-calendar/mini-calendar-month.js +7 -5
- package/development/mini-calendar/mini-calendar.js +7 -5
- package/development/mini-calendar-day.component-DLP7Pa6R.js +213 -0
- package/development/mini-calendar-month.component-C1jsGlJ2.js +150 -0
- package/development/mini-calendar.component-BzqjMchx.js +192 -0
- package/development/mini-calendar.js +10 -9
- package/development/mini-calendar.pure.js +4 -9
- package/development/navigation/common/navigation-action-common.js +2 -165
- package/development/navigation/common.js +6 -5
- package/development/navigation/navigation/navigation.component.js +2 -571
- package/development/navigation/navigation-button/navigation-button.component.js +14 -7
- package/development/navigation/navigation-button.js +6 -4
- package/development/navigation/navigation-link/navigation-link.component.js +14 -7
- package/development/navigation/navigation-link.js +6 -4
- package/development/navigation/navigation-list/navigation-list.component.js +2 -102
- package/development/navigation/navigation-list.js +7 -5
- package/development/navigation/navigation-marker/navigation-marker.component.js +2 -199
- package/development/navigation/navigation-marker.js +7 -5
- package/development/navigation/navigation-section/navigation-section.component.js +2 -588
- package/development/navigation/navigation-section.js +7 -5
- package/development/navigation/navigation.js +7 -5
- package/development/navigation-action-common-saGbvoji.js +178 -0
- package/development/navigation-list.component-AFM4omXQ.js +124 -0
- package/development/navigation-marker.component-BvC73IoI.js +207 -0
- package/development/navigation-section.component-B-6XU2X5.js +600 -0
- package/development/navigation.component-_gUhpPyO.js +585 -0
- package/development/navigation.js +12 -15
- package/development/navigation.pure.js +6 -15
- package/development/notification/notification.component.js +2 -496
- package/development/notification.component-B5EBKKf8.js +530 -0
- package/development/notification.js +8 -5
- package/development/notification.pure.js +2 -5
- package/development/optgroup-base-element-CjwAXrC5.js +181 -0
- package/development/option/optgroup/optgroup-base-element.js +2 -159
- package/development/option/optgroup/optgroup.component.js +40 -37
- package/development/option/optgroup.js +7 -6
- package/development/option/option/option-base-element.js +349 -276
- package/development/option/option/option.component.js +2 -241
- package/development/option/option-hint/option-hint.component.js +2 -44
- package/development/option/option-hint.js +7 -5
- package/development/option/option.js +7 -6
- package/development/option-hint.component-CHS5Z_sK.js +55 -0
- package/development/option.component-BvOsW8Gn.js +248 -0
- package/development/option.js +10 -11
- package/development/option.pure.js +4 -11
- package/development/overlay/overlay-base-element.js +238 -247
- package/development/overlay/overlay.component.js +2 -374
- package/development/overlay.component-RS_v3xaA.js +411 -0
- package/development/overlay.js +8 -9
- package/development/overlay.pure.js +2 -9
- package/development/paginator/common/paginator-common.js +376 -272
- package/development/paginator/common.js +5 -4
- package/development/paginator/compact-paginator/compact-paginator.component.js +2 -87
- package/development/paginator/compact-paginator.js +7 -5
- package/development/paginator/paginator/paginator.component.js +2 -444
- package/development/paginator/paginator.js +7 -5
- package/development/paginator.component-cRqJW9bc.js +492 -0
- package/development/paginator.js +9 -8
- package/development/paginator.pure.js +3 -8
- package/development/popover/popover.component.js +2 -718
- package/development/popover.component-BTfbUEzF.js +745 -0
- package/development/popover.js +8 -7
- package/development/popover.pure.js +2 -6
- package/development/radio-button/common/radio-button-common.js +2 -203
- package/development/radio-button/common.js +6 -6
- package/development/radio-button/radio-button-group.js +5 -1
- package/development/radio-button/radio-button-panel.js +5 -1
- package/development/radio-button/radio-button.component.js +3 -97
- package/development/radio-button/radio-button.js +8 -5
- package/development/radio-button-common-CjbP9yKf.js +231 -0
- package/development/radio-button-group/radio-button-group.component.js +2 -308
- package/development/radio-button-group.component-5jDkRqSJ.js +404 -0
- package/development/radio-button-group.js +8 -5
- package/development/radio-button-group.pure.js +2 -5
- package/development/radio-button-panel/radio-button-panel.component.js +106 -82
- package/development/radio-button-panel.js +7 -4
- package/development/radio-button-panel.pure.js +1 -4
- package/development/radio-button.component-CVATlwTb.js +137 -0
- package/development/radio-button.js +12 -11
- package/development/radio-button.pure.js +3 -8
- package/development/sbb-tokens-Dajio3u-.js +13 -0
- package/development/screen-reader-only/screen-reader-only.component.js +2 -25
- package/development/screen-reader-only.component-D-KOAjrF.js +36 -0
- package/development/screen-reader-only.js +8 -5
- package/development/screen-reader-only.pure.js +2 -5
- package/development/select/select.component.js +2 -1087
- package/development/select.component-DyF5Tw3J.js +1084 -0
- package/development/select.js +8 -5
- package/development/select.pure.js +2 -5
- package/development/selection-action-panel/selection-action-panel.component.js +2 -125
- package/development/selection-action-panel.component-elyz1Xsb.js +134 -0
- package/development/selection-action-panel.js +8 -5
- package/development/selection-action-panel.pure.js +2 -5
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +2 -306
- package/development/selection-expansion-panel.component-hL2jyaAT.js +326 -0
- package/development/selection-expansion-panel.js +8 -5
- package/development/selection-expansion-panel.pure.js +2 -5
- package/development/sidebar/common/styles.js +2 -7
- package/development/sidebar/common.js +6 -7
- package/development/sidebar/sidebar/sidebar.component.js +2 -473
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -36
- package/development/sidebar/sidebar-close-button.js +7 -5
- package/development/sidebar/sidebar-container/sidebar-container.component.js +2 -147
- package/development/sidebar/sidebar-container.js +7 -5
- package/development/sidebar/sidebar-content/sidebar-content.component.js +2 -25
- package/development/sidebar/sidebar-content.js +7 -5
- package/development/sidebar/sidebar-title/sidebar-title.component.js +2 -53
- package/development/sidebar/sidebar-title.js +7 -5
- package/development/sidebar/sidebar.js +7 -5
- package/development/sidebar-close-button.component-j4wY_hAt.js +48 -0
- package/development/sidebar-container.component-CToGMqKH.js +136 -0
- package/development/sidebar-content.component-s3GsQtNv.js +37 -0
- package/development/sidebar-title.component-Htm_hqKX.js +76 -0
- package/development/sidebar.component-Ct6TAsph.js +506 -0
- package/development/sidebar.js +12 -13
- package/development/sidebar.pure.js +6 -13
- package/development/signet/signet.component.js +2 -151
- package/development/signet.component-COqrcZqk.js +188 -0
- package/development/signet.js +8 -5
- package/development/signet.pure.js +2 -5
- package/development/skiplink-list/skiplink-list.component.js +2 -160
- package/development/skiplink-list.component-_SDkIoHp.js +198 -0
- package/development/skiplink-list.js +8 -5
- package/development/skiplink-list.pure.js +2 -5
- package/development/slider/slider.component.js +2 -399
- package/development/slider.component-B7EFECZk.js +479 -0
- package/development/slider.js +8 -5
- package/development/slider.pure.js +2 -5
- package/development/status/status.component.js +2 -144
- package/development/status.component-CE3e9OIO.js +171 -0
- package/development/status.js +8 -5
- package/development/status.pure.js +2 -5
- package/development/step-label.component-BH28AI5Z.js +298 -0
- package/development/step.component-WY7qdrR8.js +220 -0
- package/development/stepper/step/step.component.js +2 -216
- package/development/stepper/step-label/step-label.component.js +2 -298
- package/development/stepper/step-label.js +7 -5
- package/development/stepper/step.js +7 -5
- package/development/stepper/stepper/stepper.component.js +2 -465
- package/development/stepper/stepper.js +7 -7
- package/development/stepper.component-D1tAcpWs.js +508 -0
- package/development/stepper.js +10 -11
- package/development/stepper.pure.js +4 -10
- package/development/sticky-bar.component-BlgfxSRo.js +382 -0
- package/development/styles-CIZBf9Yc.js +173 -0
- package/development/styles-CYlzu-f2.js +96 -0
- package/development/tab-group.component-DZPKWjI7.js +292 -0
- package/development/tab-label.component-BJgr4u6Z.js +420 -0
- package/development/tab-nav-bar.component-rNmuMIsv.js +123 -0
- package/development/tab.component-C8jaB2_O.js +101 -0
- package/development/table/table-wrapper/table-wrapper.component.js +2 -120
- package/development/table/table-wrapper.js +7 -5
- package/development/table-wrapper.component-6WtB_fHq.js +133 -0
- package/development/table.js +8 -5
- package/development/table.pure.js +2 -5
- package/development/tabs/common/styles.js +2 -6
- package/development/tabs/common.js +6 -6
- package/development/tabs/tab/tab.component.js +2 -87
- package/development/tabs/tab-group/tab-group.component.js +2 -236
- package/development/tabs/tab-group.js +7 -5
- package/development/tabs/tab-label/tab-label.component.js +2 -369
- package/development/tabs/tab-label.js +7 -5
- package/development/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -99
- package/development/tabs/tab-nav-bar.js +7 -5
- package/development/tabs/tab.js +7 -5
- package/development/tabs.js +12 -14
- package/development/tabs.pure.js +6 -14
- package/development/tag/tag/tag.component.js +2 -351
- package/development/tag/tag-group/tag-group.component.js +2 -179
- package/development/tag/tag-group.js +7 -5
- package/development/tag/tag.js +7 -5
- package/development/tag-group.component-C-EXr8Rq.js +219 -0
- package/development/tag.component-B7RY4cfx.js +419 -0
- package/development/tag.js +9 -7
- package/development/tag.pure.js +3 -7
- package/development/teaser/teaser.component.js +2 -224
- package/development/teaser-hero/teaser-hero.component.js +2 -172
- package/development/teaser-hero.component-5vVIZZ9L.js +202 -0
- package/development/teaser-hero.js +8 -5
- package/development/teaser-hero.pure.js +2 -5
- package/development/teaser-product/common/teaser-product-common.js +2 -210
- package/development/teaser-product/common.js +6 -6
- package/development/teaser-product/teaser-product/teaser-product.component.js +2 -63
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +21 -8
- package/development/teaser-product/teaser-product-static.js +6 -4
- package/development/teaser-product/teaser-product.js +7 -5
- package/development/teaser-product-common-DgnRgO6O.js +223 -0
- package/development/teaser-product.component-BsdU2W2T.js +75 -0
- package/development/teaser-product.js +9 -9
- package/development/teaser-product.pure.js +3 -9
- package/development/teaser.component-KRkFbP9-.js +243 -0
- package/development/teaser.js +8 -5
- package/development/teaser.pure.js +2 -5
- package/development/time-input/time-input.component.js +2 -213
- package/development/time-input.component-Cf6cXrIN.js +222 -0
- package/development/time-input.js +8 -5
- package/development/time-input.pure.js +2 -5
- package/development/timetable-form/timetable-form/timetable-form.component.js +2 -22
- package/development/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -39
- package/development/timetable-form/timetable-form-details.js +7 -5
- package/development/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -112
- package/development/timetable-form/timetable-form-field.js +7 -5
- package/development/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -63
- package/development/timetable-form/timetable-form-swap-button.js +7 -5
- package/development/timetable-form/timetable-form.js +7 -5
- package/development/timetable-form-details.component-B--aGycf.js +50 -0
- package/development/timetable-form-field.component-9jwIZzIm.js +119 -0
- package/development/timetable-form-swap-button.component-Ne1-XwSf.js +74 -0
- package/development/timetable-form.component-BYHhDRXE.js +34 -0
- package/development/timetable-form.js +11 -11
- package/development/timetable-form.pure.js +5 -11
- package/development/timetable-occupancy/timetable-occupancy.component.js +2 -140
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -89
- package/development/timetable-occupancy-icon.component-BbW73Fqd.js +101 -0
- package/development/timetable-occupancy-icon.js +8 -5
- package/development/timetable-occupancy-icon.pure.js +2 -5
- package/development/timetable-occupancy.component-C3nWG5Vg.js +172 -0
- package/development/timetable-occupancy.js +8 -5
- package/development/timetable-occupancy.pure.js +2 -5
- package/development/title/title-base.js +2 -109
- package/development/title/title.component.js +3 -89
- package/development/title-base-BUQgNaUI.js +142 -0
- package/development/title.component-DgFvxLIt.js +115 -0
- package/development/title.js +9 -7
- package/development/title.pure.js +3 -7
- package/development/toast/toast.component.js +2 -401
- package/development/toast.component-Csifrfnq.js +430 -0
- package/development/toast.js +8 -5
- package/development/toast.pure.js +2 -5
- package/development/toggle/toggle/toggle.component.js +2 -331
- package/development/toggle/toggle-option/toggle-option.component.js +2 -179
- package/development/toggle/toggle-option.js +7 -5
- package/development/toggle/toggle.js +7 -5
- package/development/toggle-check/toggle-check.component.js +2 -274
- package/development/toggle-check.component-CEYmGCDZ.js +326 -0
- package/development/toggle-check.js +8 -5
- package/development/toggle-check.pure.js +2 -5
- package/development/toggle-option.component--wHdeFI6.js +216 -0
- package/development/toggle.component-CGNDEU9B.js +367 -0
- package/development/toggle.js +9 -7
- package/development/toggle.pure.js +3 -7
- package/development/tooltip/tooltip.component.js +2 -440
- package/development/tooltip.component-bVPXm6Pu.js +480 -0
- package/development/tooltip.js +8 -5
- package/development/tooltip.pure.js +2 -5
- package/development/train/train/train.component.js +2 -229
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +2 -70
- package/development/train/train-blocked-passage.js +7 -5
- package/development/train/train-formation/train-formation.component.js +2 -274
- package/development/train/train-formation.js +7 -5
- package/development/train/train-wagon/train-wagon.component.js +2 -387
- package/development/train/train-wagon.js +7 -5
- package/development/train/train.js +7 -5
- package/development/train-blocked-passage.component-CYnTeq7k.js +79 -0
- package/development/train-formation.component-QmoA0u6E.js +303 -0
- package/development/train-wagon.component-CWlRDq-Z.js +485 -0
- package/development/train.component-DcMyi7HP.js +294 -0
- package/development/train.js +11 -11
- package/development/train.pure.js +5 -11
- package/development/visual-checkbox/visual-checkbox.component.js +2 -164
- package/development/visual-checkbox.component-DtEIq9rH.js +213 -0
- package/development/visual-checkbox.js +8 -5
- package/development/visual-checkbox.pure.js +2 -5
- package/dialog/dialog/dialog.component.js +2 -148
- package/dialog/dialog-actions/dialog-actions.component.js +2 -13
- package/dialog/dialog-actions.js +4 -7
- package/dialog/dialog-close-button/dialog-close-button.component.js +2 -23
- package/dialog/dialog-close-button.js +4 -7
- package/dialog/dialog-content/dialog-content.component.js +2 -15
- package/dialog/dialog-content.js +4 -7
- package/dialog/dialog-title/dialog-title.component.js +2 -13
- package/dialog/dialog-title.js +4 -7
- package/dialog/dialog.js +4 -10
- package/dialog-actions.component-B4JYi2Ym.js +17 -0
- package/dialog-close-button.component-BtxXASCn.js +27 -0
- package/dialog-content.component-CNhoC-NZ.js +19 -0
- package/dialog-title.component-C8Jsbuqt.js +17 -0
- package/dialog.component-BHsekf9B.js +170 -0
- package/dialog.js +9 -20
- package/dialog.pure.js +6 -15
- package/divider/divider.component.js +2 -44
- package/divider.component-DFw-P_dA.js +61 -0
- package/divider.js +5 -4
- package/divider.pure.js +2 -4
- package/error.component-DL9hm4i9.js +44 -0
- package/expansion-panel/expansion-panel/expansion-panel.component.js +2 -156
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -24
- package/expansion-panel/expansion-panel-content.js +4 -7
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +2 -57
- package/expansion-panel/expansion-panel-header.js +4 -7
- package/expansion-panel/expansion-panel.js +4 -7
- package/expansion-panel-content.component-CbWIxgH4.js +29 -0
- package/expansion-panel-header.component-CxLeXeGi.js +56 -0
- package/expansion-panel.component-Bs4icI9T.js +226 -0
- package/expansion-panel.js +7 -11
- package/expansion-panel.pure.js +4 -8
- package/file-selector/common/file-selector-common.js +2 -245
- package/file-selector/common.js +5 -7
- package/file-selector/file-selector/file-selector.component.js +25 -20
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -75
- package/file-selector/file-selector-dropzone.js +4 -7
- package/file-selector/file-selector.js +3 -6
- package/file-selector-common-C-gZH55c.js +313 -0
- package/file-selector-dropzone.component-LHNtOZPr.js +94 -0
- package/file-selector.js +7 -11
- package/file-selector.pure.js +4 -9
- package/flip-card/flip-card/flip-card.component.js +2 -120
- package/flip-card/flip-card-details/flip-card-details.component.js +2 -36
- package/flip-card/flip-card-details.js +4 -7
- package/flip-card/flip-card-summary/flip-card-summary.component.js +2 -48
- package/flip-card/flip-card-summary.js +4 -7
- package/flip-card/flip-card.js +4 -7
- package/flip-card-details.component-CiiCNjd2.js +45 -0
- package/flip-card-summary.component-nO7zKRiB.js +65 -0
- package/flip-card.component-uSdokrC9.js +138 -0
- package/flip-card.js +7 -11
- package/flip-card.pure.js +4 -8
- package/footer/footer.component.js +2 -89
- package/footer.component-Cdsiwn4D.js +129 -0
- package/footer.js +5 -4
- package/footer.pure.js +2 -4
- package/form-field/error/error.component.js +2 -42
- package/form-field/error.js +4 -7
- package/form-field/form-field/form-field.component.js +2 -344
- package/form-field/form-field-clear/form-field-clear.component.js +35 -28
- package/form-field/form-field-clear.js +3 -6
- package/form-field/form-field.js +4 -9
- package/form-field.component-CZzQYOSP.js +447 -0
- package/form-field.js +7 -13
- package/form-field.pure.js +4 -9
- package/header/common/header-action-common.js +2 -51
- package/header/common.js +5 -6
- package/header/header/header.component.js +2 -154
- package/header/header-button/header-button.component.js +9 -8
- package/header/header-button.js +3 -6
- package/header/header-environment/header-environment.component.js +2 -29
- package/header/header-environment.js +4 -7
- package/header/header-link/header-link.component.js +9 -8
- package/header/header-link.js +3 -6
- package/header/header.js +4 -7
- package/header-action-common-C2YPvOxq.js +62 -0
- package/header-environment.component-KqUmsOPQ.js +36 -0
- package/header.component-BssLZ6b7.js +203 -0
- package/header.js +9 -16
- package/header.pure.js +6 -12
- package/icon/icon-base.js +2 -105
- package/icon/icon-name-mixin.js +59 -50
- package/icon/icon-request.js +23 -29
- package/icon/icon-validate.js +19 -25
- package/icon/icon.component.js +88 -76
- package/icon-base-BYJzaEDb.js +127 -0
- package/icon-sidebar/icon-sidebar/icon-sidebar.component.js +2 -46
- package/icon-sidebar/icon-sidebar-button/icon-sidebar-button.component.js +19 -15
- package/icon-sidebar/icon-sidebar-button.js +3 -6
- package/icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js +2 -25
- package/icon-sidebar/icon-sidebar-container.js +4 -7
- package/icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js +2 -16
- package/icon-sidebar/icon-sidebar-content.js +4 -7
- package/icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js +19 -15
- package/icon-sidebar/icon-sidebar-link.js +3 -6
- package/icon-sidebar/icon-sidebar.js +4 -7
- package/icon-sidebar-container.component-BcoT4uhN.js +26 -0
- package/icon-sidebar-content.component-toRpXgxi.js +20 -0
- package/icon-sidebar.component-B5xCvDvj.js +62 -0
- package/icon-sidebar.js +8 -16
- package/icon-sidebar.pure.js +6 -12
- package/icon.js +10 -14
- package/icon.pure.js +6 -13
- package/image/image.component.js +2 -455
- package/image.component-Cq2t-XZu.js +413 -0
- package/image.js +5 -4
- package/image.pure.js +2 -4
- package/inline-link-common-Dgdi7qpI.js +18 -0
- package/journey-header/journey-header.component.js +2 -95
- package/journey-header.component-CR8AO0b2.js +143 -0
- package/journey-header.js +5 -4
- package/journey-header.pure.js +2 -4
- package/lead-container/lead-container.component.js +2 -23
- package/lead-container.component-CXKHfBiS.js +27 -0
- package/lead-container.js +5 -4
- package/lead-container.pure.js +2 -4
- package/link/block-link/block-link.component.js +9 -8
- package/link/block-link-button/block-link-button.component.js +10 -9
- package/link/block-link-button.js +6 -6
- package/link/block-link-static/block-link-static.component.js +10 -9
- package/link/block-link-static.js +4 -4
- package/link/block-link.js +6 -6
- package/link/common/block-link-common.js +3 -44
- package/link/common/inline-link-common.js +3 -13
- package/link/common/link-common.js +2 -9
- package/link/common.js +4 -8
- package/link/link/link.component.js +10 -9
- package/link/link-button/link-button.component.js +10 -9
- package/link/link-button.js +4 -4
- package/link/link-static/link-static.component.js +10 -9
- package/link/link-static.js +4 -4
- package/link/link.js +6 -6
- package/link-common-CYxyP4XZ.js +52 -0
- package/link-list/common/link-list-base.js +2 -90
- package/link-list/common.js +5 -7
- package/link-list/link-list-anchor.js +6 -8
- package/link-list/link-list.component.js +3 -47
- package/link-list/link-list.js +5 -7
- package/link-list-anchor/link-list-anchor.component.js +2 -10
- package/link-list-anchor.component--u5j_aqv.js +18 -0
- package/link-list-anchor.js +5 -4
- package/link-list-anchor.pure.js +2 -4
- package/link-list-base-CzFYpTOG.js +115 -0
- package/link-list.component-9ndHNGPS.js +78 -0
- package/link-list.js +8 -10
- package/link-list.pure.js +3 -7
- package/link.js +12 -25
- package/link.pure.js +11 -20
- package/loading-indicator/loading-indicator.component.js +2 -65
- package/loading-indicator-circle/loading-indicator-circle.component.js +2 -45
- package/loading-indicator-circle.component-CfbXpYX6.js +62 -0
- package/loading-indicator-circle.js +5 -4
- package/loading-indicator-circle.pure.js +2 -4
- package/loading-indicator.component-CoU9mwN8.js +92 -0
- package/loading-indicator.js +5 -4
- package/loading-indicator.pure.js +2 -4
- package/logo/logo.component.js +2 -67
- package/logo.component-nxragzaC.js +94 -0
- package/logo.js +5 -4
- package/logo.pure.js +2 -4
- package/map-container/map-container.component.js +2 -108
- package/map-container.component-C2W_7Xiw.js +128 -0
- package/map-container.js +5 -4
- package/map-container.pure.js +2 -4
- package/menu/common/menu-action-common.js +2 -28
- package/menu/common.js +5 -6
- package/menu/menu/menu.component.js +2 -274
- package/menu/menu-button/menu-button.component.js +13 -9
- package/menu/menu-button.js +3 -6
- package/menu/menu-link/menu-link.component.js +13 -12
- package/menu/menu-link.js +3 -6
- package/menu/menu.js +4 -7
- package/menu-action-common-BcB_Tyvl.js +29 -0
- package/menu.component-BdqUbvww.js +252 -0
- package/menu.js +7 -12
- package/menu.pure.js +5 -10
- package/message/message.component.js +2 -23
- package/message.component-DbmXg6DI.js +27 -0
- package/message.js +5 -4
- package/message.pure.js +2 -4
- package/mini-button-group.component-D5Dph1Z7.js +89 -0
- package/mini-button-link.component-BYK_EUud.js +31 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.js +2 -131
- package/mini-calendar/mini-calendar-day/mini-calendar-day.component.js +2 -66
- package/mini-calendar/mini-calendar-day.js +4 -7
- package/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +2 -63
- package/mini-calendar/mini-calendar-month.js +4 -7
- package/mini-calendar/mini-calendar.js +4 -7
- package/mini-calendar-day.component-cAawa9Gr.js +106 -0
- package/mini-calendar-month.component-DiYSVb-Y.js +74 -0
- package/mini-calendar.component-DpPMb47Y.js +144 -0
- package/mini-calendar.js +7 -11
- package/mini-calendar.pure.js +4 -8
- package/navigation/common/navigation-action-common.js +2 -57
- package/navigation/common.js +5 -6
- package/navigation/navigation/navigation.component.js +2 -188
- package/navigation/navigation-button/navigation-button.component.js +9 -8
- package/navigation/navigation-button.js +3 -6
- package/navigation/navigation-link/navigation-link.component.js +9 -8
- package/navigation/navigation-link.js +3 -6
- package/navigation/navigation-list/navigation-list.component.js +2 -59
- package/navigation/navigation-list.js +4 -7
- package/navigation/navigation-marker/navigation-marker.component.js +2 -82
- package/navigation/navigation-marker.js +4 -7
- package/navigation/navigation-section/navigation-section.component.js +2 -224
- package/navigation/navigation-section.js +4 -7
- package/navigation/navigation.js +4 -7
- package/navigation-action-common-Dcb95pqU.js +64 -0
- package/navigation-list.component-BhV-uAfU.js +71 -0
- package/navigation-marker.component-CIUu5VVZ.js +88 -0
- package/navigation-section.component-DwEXj603.js +237 -0
- package/navigation.component-BYqJ9Cqt.js +208 -0
- package/navigation.js +11 -22
- package/navigation.pure.js +8 -16
- package/notification/notification.component.js +2 -165
- package/notification.component-DZS8z1oa.js +197 -0
- package/notification.js +5 -4
- package/notification.pure.js +2 -4
- package/optgroup-base-element-DWKHCat8.js +107 -0
- package/option/optgroup/optgroup-base-element.js +2 -83
- package/option/optgroup/optgroup.component.js +29 -30
- package/option/optgroup.js +5 -9
- package/option/option/option-base-element.js +257 -201
- package/option/option/option.component.js +2 -87
- package/option/option-hint/option-hint.component.js +2 -19
- package/option/option-hint.js +4 -7
- package/option/option.js +5 -9
- package/option-hint.component-Goyhv5ss.js +23 -0
- package/option.component-uzmmREt4.js +98 -0
- package/option.js +9 -15
- package/option.pure.js +6 -12
- package/overlay/overlay-base-element.js +154 -149
- package/overlay/overlay.component.js +2 -138
- package/overlay.component-r0Rp_b-3.js +163 -0
- package/overlay.js +7 -10
- package/overlay.pure.js +3 -9
- package/package.json +2 -2
- package/paginator/common/paginator-common.js +268 -201
- package/paginator/common.js +5 -6
- package/paginator/compact-paginator/compact-paginator.component.js +2 -40
- package/paginator/compact-paginator.js +4 -7
- package/paginator/paginator/paginator.component.js +2 -175
- package/paginator/paginator.js +4 -7
- package/paginator.component-D_fV260x.js +206 -0
- package/paginator.js +7 -10
- package/paginator.pure.js +3 -7
- package/popover/popover.component.js +2 -316
- package/popover.component-Dh9vbuDG.js +353 -0
- package/popover.js +5 -6
- package/popover.pure.js +2 -5
- package/radio-button/common/radio-button-common.js +2 -63
- package/radio-button/common.js +5 -7
- package/radio-button/radio-button-group.js +2 -3
- package/radio-button/radio-button-panel.js +2 -3
- package/radio-button/radio-button.component.js +3 -71
- package/radio-button/radio-button.js +5 -7
- package/radio-button-common-CCQ3bJPI.js +77 -0
- package/radio-button-group/radio-button-group.component.js +2 -167
- package/radio-button-group.component-Cf8r6Whf.js +232 -0
- package/radio-button-group.js +6 -5
- package/radio-button-group.pure.js +2 -4
- package/radio-button-panel/radio-button-panel.component.js +78 -68
- package/radio-button-panel.js +4 -3
- package/radio-button-panel.pure.js +2 -4
- package/radio-button.component-B5b5OhBw.js +93 -0
- package/radio-button.js +9 -13
- package/radio-button.pure.js +3 -7
- package/sbb-tokens-BJzKBCf8.js +4 -0
- package/screen-reader-only/screen-reader-only.component.js +2 -12
- package/screen-reader-only.component-B06hVxPg.js +16 -0
- package/screen-reader-only.js +5 -4
- package/screen-reader-only.pure.js +2 -4
- package/select/select.component.js +2 -498
- package/select.component-BZbDGrv8.js +522 -0
- package/select.js +5 -4
- package/select.pure.js +2 -4
- package/selection-action-panel/selection-action-panel.component.js +2 -33
- package/selection-action-panel.component-_kh6l2sj.js +35 -0
- package/selection-action-panel.js +5 -4
- package/selection-action-panel.pure.js +2 -4
- package/selection-expansion-panel/selection-expansion-panel.component.js +2 -116
- package/selection-expansion-panel.component-ChMYCw38.js +144 -0
- package/selection-expansion-panel.js +5 -4
- package/selection-expansion-panel.pure.js +2 -4
- package/sidebar/common/styles.js +2 -6
- package/sidebar/common.js +5 -8
- package/sidebar/sidebar/sidebar.component.js +2 -182
- package/sidebar/sidebar-close-button/sidebar-close-button.component.js +2 -26
- package/sidebar/sidebar-close-button.js +4 -7
- package/sidebar/sidebar-container/sidebar-container.component.js +2 -76
- package/sidebar/sidebar-container.js +4 -7
- package/sidebar/sidebar-content/sidebar-content.component.js +2 -16
- package/sidebar/sidebar-content.js +4 -7
- package/sidebar/sidebar-title/sidebar-title.component.js +2 -39
- package/sidebar/sidebar-title.js +4 -7
- package/sidebar/sidebar.js +4 -7
- package/sidebar-close-button.component-B9QGnQLs.js +30 -0
- package/sidebar-container.component-BW24Ap9F.js +63 -0
- package/sidebar-content.component-DSTp9Iu6.js +20 -0
- package/sidebar-title.component-COjEsAkk.js +53 -0
- package/sidebar.component-C2YYQj-Q.js +238 -0
- package/sidebar.js +9 -17
- package/sidebar.pure.js +6 -12
- package/signet/signet.component.js +2 -74
- package/signet.component-CixiIpLj.js +101 -0
- package/signet.js +5 -4
- package/signet.pure.js +2 -4
- package/skiplink-list/skiplink-list.component.js +2 -77
- package/skiplink-list.component-CINJgt_l.js +102 -0
- package/skiplink-list.js +5 -4
- package/skiplink-list.pure.js +2 -4
- package/slider/slider.component.js +2 -200
- package/slider.component-BhtuB-8p.js +249 -0
- package/slider.js +5 -4
- package/slider.pure.js +2 -4
- package/status/status.component.js +2 -69
- package/status.component-BZ8zajOL.js +83 -0
- package/status.js +5 -4
- package/status.pure.js +2 -4
- package/step-label.component-COJYo-MI.js +82 -0
- package/step.component-BIOQdZVR.js +94 -0
- package/stepper/step/step.component.js +2 -111
- package/stepper/step-label/step-label.component.js +2 -96
- package/stepper/step-label.js +4 -7
- package/stepper/step.js +4 -7
- package/stepper/stepper/stepper.component.js +2 -236
- package/stepper/stepper.js +4 -9
- package/stepper.component-D2vhtDCy.js +286 -0
- package/stepper.js +7 -13
- package/stepper.pure.js +4 -9
- package/sticky-bar.component-CYCOEGz7.js +141 -0
- package/styles-DpIXFSVm.js +5 -0
- package/styles-uZGSPqgK.js +5 -0
- package/tab-group.component-nprcnwFB.js +185 -0
- package/tab-label.component-BeLuYRBg.js +165 -0
- package/tab-nav-bar.component-Du1JyNtu.js +81 -0
- package/tab.component-D8Rz05Fo.js +48 -0
- package/table/table-wrapper/table-wrapper.component.js +2 -70
- package/table/table-wrapper.js +4 -7
- package/table-wrapper.component-DkaL4T5V.js +83 -0
- package/table.js +5 -4
- package/table.pure.js +2 -4
- package/tabs/common/styles.js +2 -5
- package/tabs/common.js +5 -7
- package/tabs/tab/tab.component.js +2 -46
- package/tabs/tab-group/tab-group.component.js +2 -167
- package/tabs/tab-group.js +4 -7
- package/tabs/tab-label/tab-label.component.js +2 -128
- package/tabs/tab-label.js +4 -7
- package/tabs/tab-nav-bar/tab-nav-bar.component.js +2 -67
- package/tabs/tab-nav-bar.js +4 -7
- package/tabs/tab.js +4 -7
- package/tabs.js +9 -17
- package/tabs.pure.js +6 -13
- package/tag/tag/tag.component.js +2 -128
- package/tag/tag-group/tag-group.component.js +2 -119
- package/tag/tag-group.js +4 -7
- package/tag/tag.js +4 -7
- package/tag-group.component-CW6Z9-P6.js +143 -0
- package/tag.component-CvZpvIuw.js +170 -0
- package/tag.js +6 -8
- package/tag.pure.js +3 -6
- package/teaser/teaser.component.js +2 -80
- package/teaser-hero/teaser-hero.component.js +2 -62
- package/teaser-hero.component-Dolg4-Yz.js +80 -0
- package/teaser-hero.js +5 -4
- package/teaser-hero.pure.js +2 -4
- package/teaser-product/common/teaser-product-common.js +2 -54
- package/teaser-product/common.js +5 -7
- package/teaser-product/teaser-product/teaser-product.component.js +2 -28
- package/teaser-product/teaser-product-static/teaser-product-static.component.js +13 -9
- package/teaser-product/teaser-product-static.js +3 -6
- package/teaser-product/teaser-product.js +4 -7
- package/teaser-product-common-q2IZHbkr.js +62 -0
- package/teaser-product.component-DVdyKe6h.js +29 -0
- package/teaser-product.js +7 -11
- package/teaser-product.pure.js +4 -9
- package/teaser.component-DPvDVG6b.js +91 -0
- package/teaser.js +5 -4
- package/teaser.pure.js +2 -4
- package/time-input/time-input.component.js +2 -128
- package/time-input.component-ChWhDF5l.js +141 -0
- package/time-input.js +5 -4
- package/time-input.pure.js +2 -4
- package/timetable-form/timetable-form/timetable-form.component.js +2 -12
- package/timetable-form/timetable-form-details/timetable-form-details.component.js +2 -12
- package/timetable-form/timetable-form-details.js +4 -7
- package/timetable-form/timetable-form-field/timetable-form-field.component.js +2 -26
- package/timetable-form/timetable-form-field.js +4 -7
- package/timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js +2 -33
- package/timetable-form/timetable-form-swap-button.js +4 -7
- package/timetable-form/timetable-form.js +4 -7
- package/timetable-form-details.component-Du6WPn3y.js +16 -0
- package/timetable-form-field.component-Cb3FYKL7.js +32 -0
- package/timetable-form-swap-button.component-ByQDf7oy.js +37 -0
- package/timetable-form.component-BqokC_4S.js +16 -0
- package/timetable-form.js +8 -14
- package/timetable-form.pure.js +5 -10
- package/timetable-occupancy/timetable-occupancy.component.js +2 -77
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -61
- package/timetable-occupancy-icon.component-BhXQSFZR.js +72 -0
- package/timetable-occupancy-icon.js +5 -4
- package/timetable-occupancy-icon.pure.js +2 -4
- package/timetable-occupancy.component-DnaQ0TIW.js +101 -0
- package/timetable-occupancy.js +5 -4
- package/timetable-occupancy.pure.js +2 -4
- package/title/title-base.js +2 -53
- package/title/title.component.js +3 -37
- package/title-base-D4nE41tH.js +80 -0
- package/title.component-DNBy2mIm.js +54 -0
- package/title.js +7 -7
- package/title.pure.js +3 -6
- package/toast/toast.component.js +2 -180
- package/toast.component-B9Gm8Kls.js +189 -0
- package/toast.js +5 -4
- package/toast.pure.js +2 -4
- package/toggle/toggle/toggle.component.js +2 -147
- package/toggle/toggle-option/toggle-option.component.js +2 -90
- package/toggle/toggle-option.js +4 -7
- package/toggle/toggle.js +4 -7
- package/toggle-check/toggle-check.component.js +2 -85
- package/toggle-check.component-BcxMe5Zi.js +119 -0
- package/toggle-check.js +5 -4
- package/toggle-check.pure.js +2 -4
- package/toggle-option.component-DvdEjT2c.js +123 -0
- package/toggle.component-Lnj5TugJ.js +161 -0
- package/toggle.js +6 -8
- package/toggle.pure.js +3 -6
- package/tooltip/tooltip.component.js +2 -197
- package/tooltip.component-B5fKuZdI.js +228 -0
- package/tooltip.js +5 -4
- package/tooltip.pure.js +2 -4
- package/train/train/train.component.js +2 -123
- package/train/train-blocked-passage/train-blocked-passage.component.js +2 -19
- package/train/train-blocked-passage.js +4 -7
- package/train/train-formation/train-formation.component.js +2 -93
- package/train/train-formation.js +4 -7
- package/train/train-wagon/train-wagon.component.js +2 -174
- package/train/train-wagon.js +4 -7
- package/train/train.js +4 -7
- package/train-blocked-passage.component-Dz7lD_V1.js +23 -0
- package/train-formation.component-CGTqQgp7.js +121 -0
- package/train-wagon.component-BW-JxcK6.js +259 -0
- package/train.component-B_Nlu8Kh.js +176 -0
- package/train.js +8 -14
- package/train.pure.js +5 -10
- package/visual-checkbox/visual-checkbox.component.js +2 -81
- package/visual-checkbox.component-bB_pG0vn.js +118 -0
- package/visual-checkbox.js +5 -4
- package/visual-checkbox.pure.js +2 -4
- package/development/icon-sidebar-button-common-DR6eQvkq.js +0 -93
- package/development/link-common-d27fHmQw.js +0 -111
- package/development/mini-button-label-common-BaMSfSTe.js +0 -558
- package/development/sbb-tokens-DQT_xEIZ.js +0 -19
- package/development/tab-label-common-Mfl36Rsa.js +0 -171
- package/icon-sidebar-button-common-ffAscVDk.js +0 -7
- package/link-common-7IiqjmPD.js +0 -45
- package/mini-button-label-common-Dx9JhmQ6.js +0 -11
- package/sbb-tokens-HiNSQasB.js +0 -11
- package/tab-label-common-D6k40yRU.js +0 -6
|
@@ -1,165 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var k = (o, n, a) => n.has(o) || z("Cannot " + a);
|
|
5
|
-
var h = (o, n, a) => (k(o, n, "read from private field"), a ? a.call(o) : n.get(o)), p = (o, n, a) => n.has(o) ? z("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, a), s = (o, n, a, d) => (k(o, n, "write to private field"), d ? d.call(o, a) : n.set(o, a), a);
|
|
6
|
-
import { __esDecorate as m, __runInitializers as l } from "tslib";
|
|
7
|
-
import { ResizeController as I } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
-
import { css as O, nothing as T, html as E } from "lit";
|
|
9
|
-
import { property as v } from "lit/decorators.js";
|
|
10
|
-
import { SbbElement as N } from "../core/base-elements.js";
|
|
11
|
-
import { SbbLanguageController as S } from "../core/controllers.js";
|
|
12
|
-
import { isLean as $, isZeroAnimationDuration as C } from "../core/dom.js";
|
|
13
|
-
import { i18nCloseNotification as R } from "../core/i18n.js";
|
|
14
|
-
import { SbbReadonlyMixin as A } from "../core/mixins.js";
|
|
15
|
-
import { boxSizingStyles as D } from "../core/styles.js";
|
|
16
|
-
import { SbbIconNameMixin as H } from "../icon.js";
|
|
17
|
-
import "../button/secondary-button.js";
|
|
18
|
-
import "../divider.js";
|
|
19
|
-
const U = O`:host{--sbb-notification-margin: 0;--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xs);--sbb-notification-color: var(--sbb-color-2-negative-inverted);--sbb-notification-background-color: color-mix(in srgb, var(--sbb-notification-type-color) 5%, white);--sbb-notification-background-color: light-dark( color-mix(in srgb, var(--sbb-notification-type-color) 5%, white), color-mix(in srgb, var(--sbb-notification-type-color) 35%, white) );--sbb-notification-icon-color: var(--sbb-notification-type-color);--sbb-notification-border-width: var(--sbb-border-width-1x);--sbb-notification-border: var(--sbb-notification-border-width) solid var(--sbb-notification-type-color);--sbb-notification-base-border-radius: var(--sbb-border-radius-4x);--sbb-notification-border-radius-start: calc(var(--sbb-notification-base-border-radius) / 2);--sbb-notification-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-notification-timing-function: ease-in;--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xs);--_sbb-notification-icon-authoritative-font-size: 1em;--_sbb-notification-icon-authoritative-line-height: var(--sbb-typo-line-height-text);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:block}:host(:is(:state(state-opening),[state--state-opening]):not([animation=open],[animation=all])){--sbb-disable-animation-duration: 0s}:host(:is(:state(state-closing),[state--state-closing]):not([animation=close],[animation=all])){--sbb-disable-animation-duration: 0s}:host(:is(:state(resize-disable-animation),[state--resize-disable-animation])){--sbb-disable-animation-duration: 0s}:host(:is(:not([type]),[type=info])){--sbb-notification-type-color: var(--sbb-color-smoke);--sbb-notification-icon-color: var(--sbb-notification-color);--sbb-notification-divider-opacity-light: 20%;--sbb-notification-divider-opacity-dark: 20%}:host([type=note]){--sbb-notification-type-color: var(--sbb-color-sky);--sbb-notification-divider-opacity-light: 20%;--sbb-notification-divider-opacity-dark: 20%}:host([type=success]){--sbb-notification-type-color: var(--sbb-color-success);--sbb-notification-divider-opacity-light: 15%;--sbb-notification-divider-opacity-dark: 30%}:host([type=warn]){--sbb-notification-type-color: var(--sbb-color-warning);--sbb-notification-icon-color: var(--sbb-notification-color);--sbb-notification-divider-opacity-light: 25%;--sbb-notification-divider-opacity-dark: 40%}:host([type=error]){--sbb-notification-type-color: var(--sbb-color-error);--sbb-notification-divider-opacity-light: 10%;--sbb-notification-divider-opacity-dark: 25%}:host([size=s]){--sbb-notification-padding-block: var(--sbb-spacing-responsive-xxxs);--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs);--sbb-notification-content-padding-inline: var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xxs)}@media(min-width:37.5rem){:host([size=s]){--sbb-notification-padding-inline: var(--sbb-spacing-responsive-xxs)}}.sbb-notification__wrapper{position:relative;inset-inline-start:calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width));width:calc(100% - (var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius-start) var(--sbb-notification-base-border-radius) var(--sbb-notification-base-border-radius) var(--sbb-notification-border-radius-start);opacity:0;max-height:0;margin:0}.sbb-notification__wrapper:before{content:"";position:absolute;inset:calc(var(--sbb-notification-border-width) * -1) var(--sbb-notification-base-border-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-border-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-border-radius)}:host(:is(:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-notification__wrapper{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}:host(:is(:state(state-opening),[state--state-opening])) .sbb-notification__wrapper{animation-name:open;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-notification__wrapper{animation-name:close,close-height;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function);animation-delay:0s,var(--sbb-disable-animation-duration, var(--sbb-animation-duration-2x))}.sbb-notification{--sbb-text-font-size: var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;padding-block:var(--sbb-notification-padding-block);padding-inline:var(--sbb-notification-padding-inline);color:var(--sbb-notification-color);border-radius:var(--sbb-notification-border-radius-start) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) var(--sbb-notification-border-radius-start);overflow:hidden;background-color:var(--sbb-notification-background-color)}@media(min-width:37.5rem){.sbb-notification{grid-template-columns:auto 1fr auto;align-items:flex-start}}:host([size=s]) .sbb-notification{--sbb-text-font-size: var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}.sbb-notification__icon,::slotted(sbb-icon){color:var(--sbb-notification-icon-color);--sbb-icon-svg-width: var(--sbb-notification-icon-size)}@media(min-width:37.5rem){.sbb-notification__icon,::slotted(sbb-icon){margin-block-start:max(0rem,(var(--_sbb-notification-icon-authoritative-font-size) * var(--_sbb-notification-icon-authoritative-line-height) - var(--sbb-size-icon-ui-small)) / 2)}}.sbb-notification__content{color-scheme:only light;order:3;grid-area:2/1/3/3;margin-block-start:var(--sbb-spacing-fixed-2x)}@media(min-width:37.5rem){.sbb-notification__content{order:initial;grid-area:initial;margin-block-start:0;padding-inline:var(--sbb-notification-content-padding-inline)}}.sbb-notification__text{display:inline;margin:0;padding:0}.sbb-notification__close-wrapper{display:flex;align-items:center;gap:var(--sbb-spacing-responsive-xxs);height:100%}.sbb-notification__divider{--sbb-divider-color: color-mix( in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-light), var(--sbb-notification-background-color) );--sbb-divider-color: light-dark( color-mix( in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-light), var(--sbb-notification-background-color) ), color-mix( in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-dark), var(--sbb-notification-background-color) ) );display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x)}@media(min-width:37.5rem){.sbb-notification__divider{display:block;height:calc(100% - var(--sbb-spacing-fixed-1x) * 2)}}@keyframes open{0%{opacity:0;max-height:0;margin:0}to{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin, 0)}}@keyframes close{0%{opacity:1;margin:var(--sbb-notification-margin, 0)}to{opacity:0;margin:0}}@keyframes close-height{0%{max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2)}to{max-height:0}}::slotted(sbb-title){margin:0}`, M = /* @__PURE__ */ new Map([
|
|
20
|
-
["info", "circle-information-small"],
|
|
21
|
-
["note", "circle-information-small"],
|
|
22
|
-
["success", "circle-tick-small"],
|
|
23
|
-
["warn", "circle-exclamation-point-small"],
|
|
24
|
-
["error", "circle-cross-small"]
|
|
25
|
-
]), Z = 150;
|
|
26
|
-
let ti = (() => {
|
|
27
|
-
var r, b, c, e;
|
|
28
|
-
let o = H(A(N)), n, a = [], d = [], g, u = [], _ = [], y, x = [], w = [];
|
|
29
|
-
return e = class extends o {
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
p(this, r);
|
|
33
|
-
p(this, b);
|
|
34
|
-
p(this, c);
|
|
35
|
-
s(this, r, l(this, a, "info")), s(this, b, (l(this, d), l(this, u, $() ? "s" : "m"))), s(this, c, (l(this, _), l(this, x, "all"))), this._stateInternal = l(this, w), this._resizeObserverTimeout = null, this._language = new S(this), this._notificationResizeObserver = new I(this, {
|
|
36
|
-
target: null,
|
|
37
|
-
skipInitial: !0,
|
|
38
|
-
callback: () => this._onNotificationResize()
|
|
39
|
-
}), this._state = "closed";
|
|
40
|
-
}
|
|
41
|
-
/** The type of the notification. */
|
|
42
|
-
get type() {
|
|
43
|
-
return h(this, r);
|
|
44
|
-
}
|
|
45
|
-
set type(i) {
|
|
46
|
-
s(this, r, i);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Size variant, either s or m.
|
|
50
|
-
* @default 'm' / 's' (lean)
|
|
51
|
-
*/
|
|
52
|
-
get size() {
|
|
53
|
-
return h(this, b);
|
|
54
|
-
}
|
|
55
|
-
set size(i) {
|
|
56
|
-
s(this, b, i);
|
|
57
|
-
}
|
|
58
|
-
/** The enabled animations. */
|
|
59
|
-
get animation() {
|
|
60
|
-
return h(this, c);
|
|
61
|
-
}
|
|
62
|
-
set animation(i) {
|
|
63
|
-
s(this, c, i);
|
|
64
|
-
}
|
|
65
|
-
/** The state of the component. */
|
|
66
|
-
set _state(i) {
|
|
67
|
-
this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = i, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
|
|
68
|
-
}
|
|
69
|
-
get _state() {
|
|
70
|
-
return this._stateInternal;
|
|
71
|
-
}
|
|
72
|
-
willUpdate(i) {
|
|
73
|
-
super.willUpdate(i), i.has("size") && this._configureTitle();
|
|
74
|
-
}
|
|
75
|
-
_open() {
|
|
76
|
-
this._state === "closed" && (this._state = "opening", this.dispatchEvent(new Event("beforeopen")), this._isZeroAnimationDuration() && this._handleOpening());
|
|
77
|
-
}
|
|
78
|
-
close() {
|
|
79
|
-
this._state === "opened" && this._dispatchBeforeCloseEvent() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
|
|
80
|
-
}
|
|
81
|
-
_dispatchBeforeCloseEvent() {
|
|
82
|
-
return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
|
|
83
|
-
}
|
|
84
|
-
firstUpdated(i) {
|
|
85
|
-
super.firstUpdated(i), this._notificationElement = this.shadowRoot?.querySelector(".sbb-notification__wrapper"), this.updateComplete.then(() => {
|
|
86
|
-
this._setNotificationHeight(), this._open();
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
_isZeroAnimationDuration() {
|
|
90
|
-
return C(this, "--sbb-notification-animation-duration");
|
|
91
|
-
}
|
|
92
|
-
_setNotificationHeight() {
|
|
93
|
-
if (!this._notificationElement?.scrollHeight)
|
|
94
|
-
return;
|
|
95
|
-
const i = `${this._notificationElement.scrollHeight}px`;
|
|
96
|
-
this.style.setProperty("--sbb-notification-height", i);
|
|
97
|
-
}
|
|
98
|
-
_onNotificationResize() {
|
|
99
|
-
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.internals.states.add("resize-disable-animation"), this._resizeObserverTimeout = setTimeout(() => this.internals.states.delete("resize-disable-animation"), Z), setTimeout(() => this._setNotificationHeight()));
|
|
100
|
-
}
|
|
101
|
-
_onNotificationAnimationEnd(i) {
|
|
102
|
-
this._state === "opening" && i.animationName === "open" && this._handleOpening(), this._state === "closing" && i.animationName === "close-height" && this._handleClosing();
|
|
103
|
-
}
|
|
104
|
-
_handleOpening() {
|
|
105
|
-
this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.dispatchEvent(new Event("open"));
|
|
106
|
-
}
|
|
107
|
-
_handleClosing() {
|
|
108
|
-
this._state = "closed", this.dispatchEvent(new Event("close")), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
|
|
109
|
-
}
|
|
110
|
-
_handleSlotchange() {
|
|
111
|
-
const i = Array.from(this.children).find((t) => t.localName === "sbb-title");
|
|
112
|
-
i && (i.slot = "title");
|
|
113
|
-
}
|
|
114
|
-
_configureTitle() {
|
|
115
|
-
const i = this.querySelector?.("sbb-title");
|
|
116
|
-
i && (customElements.upgrade(i), i.visualLevel = this.size === "m" ? "5" : "6");
|
|
117
|
-
}
|
|
118
|
-
renderIconName() {
|
|
119
|
-
return super.renderIconName() || M.get(this.type);
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
return E`
|
|
123
|
-
<div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
|
|
124
|
-
<div class="sbb-notification">
|
|
125
|
-
${this.renderIconSlot("sbb-notification__icon")}
|
|
126
|
-
<span class="sbb-notification__content">
|
|
127
|
-
<slot name="title" @slotchange=${this._configureTitle}></slot>
|
|
128
|
-
<p class="sbb-notification__text">
|
|
129
|
-
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
130
|
-
</p>
|
|
131
|
-
</span>
|
|
132
|
-
|
|
133
|
-
${this.readOnly ? T : E`<span class="sbb-notification__close-wrapper">
|
|
134
|
-
<sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
|
|
135
|
-
<sbb-secondary-button
|
|
136
|
-
size=${this.size}
|
|
137
|
-
icon-name="cross-small"
|
|
138
|
-
@click=${() => this.close()}
|
|
139
|
-
aria-label=${R[this._language.current]}
|
|
140
|
-
class="sbb-notification__close"
|
|
141
|
-
></sbb-secondary-button>
|
|
142
|
-
</span>`}
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
`;
|
|
146
|
-
}
|
|
147
|
-
}, r = new WeakMap(), b = new WeakMap(), c = new WeakMap(), (() => {
|
|
148
|
-
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(o[Symbol.metadata] ?? null) : void 0;
|
|
149
|
-
n = [v({ reflect: !0 })], g = [v({ reflect: !0 })], y = [v({ reflect: !0 })], m(e, null, n, { kind: "accessor", name: "type", static: !1, private: !1, access: { has: (t) => "type" in t, get: (t) => t.type, set: (t, f) => {
|
|
150
|
-
t.type = f;
|
|
151
|
-
} }, metadata: i }, a, d), m(e, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, f) => {
|
|
152
|
-
t.size = f;
|
|
153
|
-
} }, metadata: i }, u, _), m(e, null, y, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, f) => {
|
|
154
|
-
t.animation = f;
|
|
155
|
-
} }, metadata: i }, x, w), i && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
156
|
-
})(), e.elementName = "sbb-notification", e.styles = [D, U], e.events = {
|
|
157
|
-
beforeopen: "beforeopen",
|
|
158
|
-
open: "open",
|
|
159
|
-
beforeclose: "beforeclose",
|
|
160
|
-
close: "close"
|
|
161
|
-
}, e;
|
|
162
|
-
})();
|
|
163
|
-
export {
|
|
164
|
-
ti as SbbNotificationElement
|
|
165
|
-
};
|
|
1
|
+
import { t as e } from "../notification.component-DZS8z1oa.js";
|
|
2
|
+
export { e as SbbNotificationElement };
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { css as n, html as r, nothing 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 { isLean as s, isZeroAnimationDuration as c } from "./core/dom.js";
|
|
6
|
+
import { SbbReadonlyMixin as l } from "./core/mixins.js";
|
|
7
|
+
import { boxSizingStyles as u } from "./core/styles.js";
|
|
8
|
+
import { SbbLanguageController as d } from "./core/controllers.js";
|
|
9
|
+
import { i18nCloseNotification as f } from "./core/i18n.js";
|
|
10
|
+
import { SbbIconNameMixin as p } from "./icon.js";
|
|
11
|
+
import "./divider.js";
|
|
12
|
+
import { ResizeController as m } from "@lit-labs/observers/resize-controller.js";
|
|
13
|
+
import "./button/secondary-button.js";
|
|
14
|
+
//#region src/elements/notification/notification.scss?lit&inline
|
|
15
|
+
var h = n`:host{--sbb-notification-margin:0;--sbb-notification-padding-block:var(--sbb-spacing-responsive-xxs);--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xs);--sbb-notification-color:var(--sbb-color-2-negative-inverted);--sbb-notification-background-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-notification-type-color) 5%, white))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-notification-type-color) 35%, white));--sbb-notification-icon-color:var(--sbb-notification-type-color);--sbb-notification-border-width:var(--sbb-border-width-1x);--sbb-notification-border:var(--sbb-notification-border-width) solid var(--sbb-notification-type-color);--sbb-notification-base-border-radius:var(--sbb-border-radius-4x);--sbb-notification-border-radius-start:calc(var(--sbb-notification-base-border-radius) / 2);--sbb-notification-animation-duration:var(--sbb-disable-animation-duration,var(--sbb-animation-duration-4x));--sbb-notification-timing-function:ease-in;--sbb-notification-content-padding-inline:var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xs);--_sbb-notification-icon-authoritative-font-size:1em;--_sbb-notification-icon-authoritative-line-height:var(--sbb-typo-line-height-text);--sbb-focus-outline-color:var(--sbb-focus-outline-color-default);display:block}:host(:is(:state(state-opening),[state--state-opening]):not([animation=open],[animation=all])),:host(:is(:state(state-closing),[state--state-closing]):not([animation=close],[animation=all])),:host(:is(:state(resize-disable-animation),[state--resize-disable-animation])){--sbb-disable-animation-duration:0s}:host(:is(:not([type]),[type=info])){--sbb-notification-type-color:var(--sbb-color-smoke);--sbb-notification-icon-color:var(--sbb-notification-color);--sbb-notification-divider-opacity-light:20%;--sbb-notification-divider-opacity-dark:20%}:host([type=note]){--sbb-notification-type-color:var(--sbb-color-sky);--sbb-notification-divider-opacity-light:20%;--sbb-notification-divider-opacity-dark:20%}:host([type=success]){--sbb-notification-type-color:var(--sbb-color-success);--sbb-notification-divider-opacity-light:15%;--sbb-notification-divider-opacity-dark:30%}:host([type=warn]){--sbb-notification-type-color:var(--sbb-color-warning);--sbb-notification-icon-color:var(--sbb-notification-color);--sbb-notification-divider-opacity-light:25%;--sbb-notification-divider-opacity-dark:40%}:host([type=error]){--sbb-notification-type-color:var(--sbb-color-error);--sbb-notification-divider-opacity-light:10%;--sbb-notification-divider-opacity-dark:25%}:host([size=s]){--sbb-notification-padding-block:var(--sbb-spacing-responsive-xxxs);--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xxs) var(--sbb-spacing-responsive-xxxs);--sbb-notification-content-padding-inline:var(--sbb-spacing-responsive-xxxs) var(--sbb-spacing-responsive-xxs)}@media (width>=37.5rem){:host([size=s]){--sbb-notification-padding-inline:var(--sbb-spacing-responsive-xxs)}}.sbb-notification__wrapper{width:calc(100% - (var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius-start) var(--sbb-notification-base-border-radius) var(--sbb-notification-base-border-radius) var(--sbb-notification-border-radius-start);opacity:0;max-height:0;margin:0;position:relative;inset-inline-start:calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width))}.sbb-notification__wrapper:before{content:"";inset:calc(var(--sbb-notification-border-width) * -1) var(--sbb-notification-base-border-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-border-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-border-radius);position:absolute}:host(:is(:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-notification__wrapper{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin,0)}:host(:is(:state(state-opening),[state--state-opening])) .sbb-notification__wrapper{animation-name:open;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-notification__wrapper{animation-name:close,close-height;animation-fill-mode:forwards;animation-duration:var(--sbb-notification-animation-duration);animation-timing-function:var(--sbb-notification-timing-function);animation-delay:0s, var(--sbb-disable-animation-duration,var(--sbb-animation-duration-2x))}.sbb-notification{--sbb-text-font-size:var(--sbb-text-font-size-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size);padding-block:var(--sbb-notification-padding-block);padding-inline:var(--sbb-notification-padding-inline);color:var(--sbb-notification-color);border-radius:var(--sbb-notification-border-radius-start) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) calc(var(--sbb-notification-base-border-radius) - var(--sbb-notification-border-width)) var(--sbb-notification-border-radius-start);background-color:var(--sbb-notification-background-color);grid-template-columns:1fr auto;align-items:center;display:grid;position:relative;overflow:hidden}@media (width>=37.5rem){.sbb-notification{grid-template-columns:auto 1fr auto;align-items:flex-start}}:host([size=s]) .sbb-notification{--sbb-text-font-size:var(--sbb-text-font-size-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-text);letter-spacing:var(--sbb-typo-letter-spacing-text);font-size:var(--sbb-text-font-size)}.sbb-notification__icon,::slotted(sbb-icon){color:var(--sbb-notification-icon-color);--sbb-icon-svg-width:var(--sbb-notification-icon-size)}@media (width>=37.5rem){.sbb-notification__icon,::slotted(sbb-icon){margin-block-start:max(0rem, (var(--_sbb-notification-icon-authoritative-font-size) * var(--_sbb-notification-icon-authoritative-line-height) - var(--sbb-size-icon-ui-small)) / 2)}}.sbb-notification__content{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;order:3;grid-area:2/1/3/3;margin-block-start:var(--sbb-spacing-fixed-2x)}@media (width>=37.5rem){.sbb-notification__content{order:initial;grid-area:initial;padding-inline:var(--sbb-notification-content-padding-inline);margin-block-start:0}}.sbb-notification__text{margin:0;padding:0;display:inline}.sbb-notification__close-wrapper{align-items:center;gap:var(--sbb-spacing-responsive-xxs);height:100%;display:flex}.sbb-notification__divider{--sbb-divider-color:var(--lightningcss-light,color-mix(in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-light), var(--sbb-notification-background-color)))var(--lightningcss-dark,color-mix(in srgb, var(--sbb-notification-type-color) var(--sbb-notification-divider-opacity-dark), var(--sbb-notification-background-color)));display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x)}@media (width>=37.5rem){.sbb-notification__divider{height:calc(100% - var(--sbb-spacing-fixed-1x) * 2);display:block}}@keyframes open{0%{opacity:0;max-height:0;margin:0}to{opacity:1;max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2);margin:var(--sbb-notification-margin,0)}}@keyframes close{0%{opacity:1;margin:var(--sbb-notification-margin,0)}to{opacity:0;margin:0}}@keyframes close-height{0%{max-height:calc(var(--sbb-notification-height) + var(--sbb-notification-border-width) * 2)}to{max-height:0}}::slotted(sbb-title){margin:0}`, g = new Map([
|
|
16
|
+
["info", "circle-information-small"],
|
|
17
|
+
["note", "circle-information-small"],
|
|
18
|
+
["success", "circle-tick-small"],
|
|
19
|
+
["warn", "circle-exclamation-point-small"],
|
|
20
|
+
["error", "circle-cross-small"]
|
|
21
|
+
]), _ = 150, v = (() => {
|
|
22
|
+
let n = p(l(o)), v, y = [], b = [], x, S = [], C = [], w, T = [], E = [];
|
|
23
|
+
return class extends n {
|
|
24
|
+
static {
|
|
25
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
26
|
+
v = [a({ reflect: !0 })], x = [a({ reflect: !0 })], w = [a({ reflect: !0 })], e(this, null, v, {
|
|
27
|
+
kind: "accessor",
|
|
28
|
+
name: "type",
|
|
29
|
+
static: !1,
|
|
30
|
+
private: !1,
|
|
31
|
+
access: {
|
|
32
|
+
has: (e) => "type" in e,
|
|
33
|
+
get: (e) => e.type,
|
|
34
|
+
set: (e, t) => {
|
|
35
|
+
e.type = t;
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
metadata: t
|
|
39
|
+
}, y, b), e(this, null, x, {
|
|
40
|
+
kind: "accessor",
|
|
41
|
+
name: "size",
|
|
42
|
+
static: !1,
|
|
43
|
+
private: !1,
|
|
44
|
+
access: {
|
|
45
|
+
has: (e) => "size" in e,
|
|
46
|
+
get: (e) => e.size,
|
|
47
|
+
set: (e, t) => {
|
|
48
|
+
e.size = t;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
metadata: t
|
|
52
|
+
}, S, C), e(this, null, w, {
|
|
53
|
+
kind: "accessor",
|
|
54
|
+
name: "animation",
|
|
55
|
+
static: !1,
|
|
56
|
+
private: !1,
|
|
57
|
+
access: {
|
|
58
|
+
has: (e) => "animation" in e,
|
|
59
|
+
get: (e) => e.animation,
|
|
60
|
+
set: (e, t) => {
|
|
61
|
+
e.animation = t;
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
metadata: t
|
|
65
|
+
}, T, E), t && Object.defineProperty(this, Symbol.metadata, {
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0,
|
|
69
|
+
value: t
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
static {
|
|
73
|
+
this.elementName = "sbb-notification";
|
|
74
|
+
}
|
|
75
|
+
static {
|
|
76
|
+
this.styles = [u, h];
|
|
77
|
+
}
|
|
78
|
+
static {
|
|
79
|
+
this.events = {
|
|
80
|
+
beforeopen: "beforeopen",
|
|
81
|
+
open: "open",
|
|
82
|
+
beforeclose: "beforeclose",
|
|
83
|
+
close: "close"
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
#e;
|
|
87
|
+
get type() {
|
|
88
|
+
return this.#e;
|
|
89
|
+
}
|
|
90
|
+
set type(e) {
|
|
91
|
+
this.#e = e;
|
|
92
|
+
}
|
|
93
|
+
#t;
|
|
94
|
+
get size() {
|
|
95
|
+
return this.#t;
|
|
96
|
+
}
|
|
97
|
+
set size(e) {
|
|
98
|
+
this.#t = e;
|
|
99
|
+
}
|
|
100
|
+
#n;
|
|
101
|
+
get animation() {
|
|
102
|
+
return this.#n;
|
|
103
|
+
}
|
|
104
|
+
set animation(e) {
|
|
105
|
+
this.#n = e;
|
|
106
|
+
}
|
|
107
|
+
set _state(e) {
|
|
108
|
+
this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = e, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
|
|
109
|
+
}
|
|
110
|
+
get _state() {
|
|
111
|
+
return this._stateInternal;
|
|
112
|
+
}
|
|
113
|
+
constructor() {
|
|
114
|
+
super(), this.#e = t(this, y, "info"), this.#t = (t(this, b), t(this, S, s() ? "s" : "m")), this.#n = (t(this, C), t(this, T, "all")), this._stateInternal = t(this, E), this._resizeObserverTimeout = null, this._language = new d(this), this._notificationResizeObserver = new m(this, {
|
|
115
|
+
target: null,
|
|
116
|
+
skipInitial: !0,
|
|
117
|
+
callback: () => this._onNotificationResize()
|
|
118
|
+
}), this._state = "closed";
|
|
119
|
+
}
|
|
120
|
+
willUpdate(e) {
|
|
121
|
+
super.willUpdate(e), e.has("size") && this._configureTitle();
|
|
122
|
+
}
|
|
123
|
+
_open() {
|
|
124
|
+
this._state === "closed" && (this._state = "opening", this.dispatchEvent(new Event("beforeopen")), this._isZeroAnimationDuration() && this._handleOpening());
|
|
125
|
+
}
|
|
126
|
+
close() {
|
|
127
|
+
this._state === "opened" && this._dispatchBeforeCloseEvent() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
|
|
128
|
+
}
|
|
129
|
+
_dispatchBeforeCloseEvent() {
|
|
130
|
+
return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
|
|
131
|
+
}
|
|
132
|
+
firstUpdated(e) {
|
|
133
|
+
super.firstUpdated(e), this._notificationElement = this.shadowRoot?.querySelector(".sbb-notification__wrapper"), this.updateComplete.then(() => {
|
|
134
|
+
this._setNotificationHeight(), this._open();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
_isZeroAnimationDuration() {
|
|
138
|
+
return c(this, "--sbb-notification-animation-duration");
|
|
139
|
+
}
|
|
140
|
+
_setNotificationHeight() {
|
|
141
|
+
if (!this._notificationElement?.scrollHeight) return;
|
|
142
|
+
let e = `${this._notificationElement.scrollHeight}px`;
|
|
143
|
+
this.style.setProperty("--sbb-notification-height", e);
|
|
144
|
+
}
|
|
145
|
+
_onNotificationResize() {
|
|
146
|
+
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.internals.states.add("resize-disable-animation"), this._resizeObserverTimeout = setTimeout(() => this.internals.states.delete("resize-disable-animation"), _), setTimeout(() => this._setNotificationHeight()));
|
|
147
|
+
}
|
|
148
|
+
_onNotificationAnimationEnd(e) {
|
|
149
|
+
this._state === "opening" && e.animationName === "open" && this._handleOpening(), this._state === "closing" && e.animationName === "close-height" && this._handleClosing();
|
|
150
|
+
}
|
|
151
|
+
_handleOpening() {
|
|
152
|
+
this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.dispatchEvent(new Event("open"));
|
|
153
|
+
}
|
|
154
|
+
_handleClosing() {
|
|
155
|
+
this._state = "closed", this.dispatchEvent(new Event("close")), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
|
|
156
|
+
}
|
|
157
|
+
_handleSlotchange() {
|
|
158
|
+
let e = Array.from(this.children).find((e) => e.localName === "sbb-title");
|
|
159
|
+
e && (e.slot = "title");
|
|
160
|
+
}
|
|
161
|
+
_configureTitle() {
|
|
162
|
+
let e = this.querySelector?.("sbb-title");
|
|
163
|
+
e && (customElements.upgrade(e), e.visualLevel = this.size === "m" ? "5" : "6");
|
|
164
|
+
}
|
|
165
|
+
renderIconName() {
|
|
166
|
+
return super.renderIconName() || g.get(this.type);
|
|
167
|
+
}
|
|
168
|
+
render() {
|
|
169
|
+
return r`
|
|
170
|
+
<div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
|
|
171
|
+
<div class="sbb-notification">
|
|
172
|
+
${this.renderIconSlot("sbb-notification__icon")}
|
|
173
|
+
<span class="sbb-notification__content">
|
|
174
|
+
<slot name="title" @slotchange=${this._configureTitle}></slot>
|
|
175
|
+
<p class="sbb-notification__text">
|
|
176
|
+
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
177
|
+
</p>
|
|
178
|
+
</span>
|
|
179
|
+
|
|
180
|
+
${this.readOnly ? i : r`<span class="sbb-notification__close-wrapper">
|
|
181
|
+
<sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
|
|
182
|
+
<sbb-secondary-button
|
|
183
|
+
size=${this.size}
|
|
184
|
+
icon-name="cross-small"
|
|
185
|
+
@click=${() => this.close()}
|
|
186
|
+
aria-label=${f[this._language.current]}
|
|
187
|
+
class="sbb-notification__close"
|
|
188
|
+
></sbb-secondary-button>
|
|
189
|
+
</span>`}
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
`;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
})();
|
|
196
|
+
//#endregion
|
|
197
|
+
export { v as t };
|
package/notification.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./notification.component-DZS8z1oa.js";
|
|
2
|
+
import "./notification.pure.js";
|
|
3
|
+
//#region src/elements/notification.ts
|
|
2
4
|
e.define();
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as SbbNotificationElement };
|
package/notification.pure.js
CHANGED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { __esDecorate as e, __runInitializers as t } from "tslib";
|
|
2
|
+
import { css as n, html as r, nothing as i } from "lit";
|
|
3
|
+
import { property as a, state as o } from "lit/decorators.js";
|
|
4
|
+
import { SbbElement as s } from "./core/base-elements.js";
|
|
5
|
+
import { forceType as c } from "./core/decorators.js";
|
|
6
|
+
import { isSafari as l } from "./core/dom.js";
|
|
7
|
+
import { SbbDisabledMixin as u } from "./core/mixins.js";
|
|
8
|
+
import { boxSizingStyles as d } from "./core/styles.js";
|
|
9
|
+
import "./divider.js";
|
|
10
|
+
//#region src/elements/option/optgroup/optgroup-base-element.scss?lit&inline
|
|
11
|
+
var f = n`:host{display:block}:host(:first-child){--sbb-optgroup-divider-display:none}:host(:is(:state(negative),[state--negative])){--sbb-optgroup-label-color:var(--sbb-color-5)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{column-gap:var(--sbb-spacing-responsive-xxxs);font-size:var(--sbb-optgroup-label-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block-end:var(--sbb-optgroup-label-padding-end);display:flex}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display,block);padding-block:var(--sbb-options-panel-divider-margin-block)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display,none);min-width:var(--sbb-size-icon-ui-small)}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}`, p = l, m = (() => {
|
|
12
|
+
let n = u(s), l, m = [], h = [], g, _ = [], v = [];
|
|
13
|
+
return class extends n {
|
|
14
|
+
static {
|
|
15
|
+
let t = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
16
|
+
l = [c(), a()], g = [o()], e(this, null, l, {
|
|
17
|
+
kind: "accessor",
|
|
18
|
+
name: "label",
|
|
19
|
+
static: !1,
|
|
20
|
+
private: !1,
|
|
21
|
+
access: {
|
|
22
|
+
has: (e) => "label" in e,
|
|
23
|
+
get: (e) => e.label,
|
|
24
|
+
set: (e, t) => {
|
|
25
|
+
e.label = t;
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
metadata: t
|
|
29
|
+
}, m, h), e(this, null, g, {
|
|
30
|
+
kind: "accessor",
|
|
31
|
+
name: "_inertAriaGroups",
|
|
32
|
+
static: !1,
|
|
33
|
+
private: !1,
|
|
34
|
+
access: {
|
|
35
|
+
has: (e) => "_inertAriaGroups" in e,
|
|
36
|
+
get: (e) => e._inertAriaGroups,
|
|
37
|
+
set: (e, t) => {
|
|
38
|
+
e._inertAriaGroups = t;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
metadata: t
|
|
42
|
+
}, _, v), t && Object.defineProperty(this, Symbol.metadata, {
|
|
43
|
+
enumerable: !0,
|
|
44
|
+
configurable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
value: t
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static {
|
|
50
|
+
this.role = p ? null : "group";
|
|
51
|
+
}
|
|
52
|
+
static {
|
|
53
|
+
this.styles = [d, f];
|
|
54
|
+
}
|
|
55
|
+
#e = t(this, m, "");
|
|
56
|
+
get label() {
|
|
57
|
+
return this.#e;
|
|
58
|
+
}
|
|
59
|
+
set label(e) {
|
|
60
|
+
this.#e = e;
|
|
61
|
+
}
|
|
62
|
+
#t = (t(this, h), t(this, _, !1));
|
|
63
|
+
get _inertAriaGroups() {
|
|
64
|
+
return this.#t;
|
|
65
|
+
}
|
|
66
|
+
set _inertAriaGroups(e) {
|
|
67
|
+
this.#t = e;
|
|
68
|
+
}
|
|
69
|
+
constructor() {
|
|
70
|
+
super(), t(this, v), p && (this.hydrationRequired ? this.hydrationComplete.then(() => this._inertAriaGroups = p) : this._inertAriaGroups = p);
|
|
71
|
+
}
|
|
72
|
+
connectedCallback() {
|
|
73
|
+
super.connectedCallback(), this._updateAriaLabel();
|
|
74
|
+
}
|
|
75
|
+
willUpdate(e) {
|
|
76
|
+
super.willUpdate(e), e.has("disabled") && (this._inertAriaGroups || (this.internals.ariaDisabled = this.disabled ? "true" : null)), e.has("label") && this._updateAriaLabel();
|
|
77
|
+
}
|
|
78
|
+
_handleSlotchange() {
|
|
79
|
+
this._updateAriaLabel(), this._highlightOptions(), this.dispatchEvent(new Event("ɵoptgroupslotchange"));
|
|
80
|
+
}
|
|
81
|
+
_updateAriaLabel() {
|
|
82
|
+
this.internals.ariaLabel = this._inertAriaGroups ? null : this.label;
|
|
83
|
+
}
|
|
84
|
+
_highlightOptions() {
|
|
85
|
+
let e = this.getAutocompleteParent();
|
|
86
|
+
if (!e) return;
|
|
87
|
+
let t = e.triggerElement?.value;
|
|
88
|
+
t && this.options.forEach((e) => e.highlight(t));
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
return r`
|
|
92
|
+
<div class="sbb-optgroup__divider">
|
|
93
|
+
<sbb-divider ?negative=${this.matches?.(":is(:state(negative),[state--negative])")}></sbb-divider>
|
|
94
|
+
</div>
|
|
95
|
+
${this.label ? r`
|
|
96
|
+
<div class="sbb-optgroup__label" aria-hidden="true">
|
|
97
|
+
<div class="sbb-optgroup__icon-space"></div>
|
|
98
|
+
<span>${this.label}</span>
|
|
99
|
+
</div>
|
|
100
|
+
` : i}
|
|
101
|
+
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
102
|
+
`;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
})();
|
|
106
|
+
//#endregion
|
|
107
|
+
export { m as t };
|
|
@@ -1,83 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
var f = (i, t, s) => t.has(i) || m("Cannot " + s);
|
|
5
|
-
var c = (i, t, s) => (f(i, t, "read from private field"), s ? s.call(i) : t.get(i)), u = (i, t, s) => t.has(i) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, l) => (f(i, t, "write to private field"), l ? l.call(i, s) : t.set(i, s), s);
|
|
6
|
-
import { __esDecorate as y, __runInitializers as p } from "tslib";
|
|
7
|
-
import { css as x, nothing as G, html as A } from "lit";
|
|
8
|
-
import { property as k, state as z } from "lit/decorators.js";
|
|
9
|
-
import { SbbElement as S } from "../../core/base-elements.js";
|
|
10
|
-
import { forceType as w } from "../../core/decorators.js";
|
|
11
|
-
import { isSafari as L } from "../../core/dom.js";
|
|
12
|
-
import { SbbDisabledMixin as $ } from "../../core/mixins.js";
|
|
13
|
-
import { boxSizingStyles as C } from "../../core/styles.js";
|
|
14
|
-
import "../../divider.js";
|
|
15
|
-
const D = x`:host{display:block}:host(:first-child){--sbb-optgroup-divider-display: none}:host(:is(:state(negative),[state--negative])){--sbb-optgroup-label-color: var(--sbb-color-5)}.sbb-optgroup{margin-block:var(--sbb-spacing-fixed-4x);margin-inline:var(--sbb-spacing-fixed-4x)}.sbb-optgroup__label{display:flex;column-gap:var(--sbb-spacing-responsive-xxxs);font-size:var(--sbb-optgroup-label-font-size);letter-spacing:var(--sbb-typo-letter-spacing-text);color:var(--sbb-optgroup-label-color);-webkit-text-fill-color:var(--sbb-optgroup-label-color);padding-inline:var(--sbb-optgroup-label-padding-inline);padding-block-end:var(--sbb-optgroup-label-padding-end)}.sbb-optgroup__divider{display:var(--sbb-optgroup-divider-display, block);padding-block:var(--sbb-options-panel-divider-margin-block)}.sbb-optgroup__icon-space{display:var(--sbb-option-icon-container-display, none);min-width:var(--sbb-size-icon-ui-small)}::slotted(sbb-divider){margin-block:var(--sbb-options-panel-divider-margin-block)}`, d = L;
|
|
16
|
-
let J = (() => {
|
|
17
|
-
var o, n, r;
|
|
18
|
-
let i = $(S), t, s = [], l = [], g, _ = [], v = [];
|
|
19
|
-
return r = class extends i {
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
u(this, o, p(this, s, ""));
|
|
23
|
-
u(this, n, (p(this, l), p(this, _, !1)));
|
|
24
|
-
p(this, v), d && (this.hydrationRequired ? this.hydrationComplete.then(() => this._inertAriaGroups = d) : this._inertAriaGroups = d);
|
|
25
|
-
}
|
|
26
|
-
/** Option group label. */
|
|
27
|
-
get label() {
|
|
28
|
-
return c(this, o);
|
|
29
|
-
}
|
|
30
|
-
set label(e) {
|
|
31
|
-
h(this, o, e);
|
|
32
|
-
}
|
|
33
|
-
get _inertAriaGroups() {
|
|
34
|
-
return c(this, n);
|
|
35
|
-
}
|
|
36
|
-
set _inertAriaGroups(e) {
|
|
37
|
-
h(this, n, e);
|
|
38
|
-
}
|
|
39
|
-
connectedCallback() {
|
|
40
|
-
super.connectedCallback(), this._updateAriaLabel();
|
|
41
|
-
}
|
|
42
|
-
willUpdate(e) {
|
|
43
|
-
super.willUpdate(e), e.has("disabled") && (this._inertAriaGroups || (this.internals.ariaDisabled = this.disabled ? "true" : null)), e.has("label") && this._updateAriaLabel();
|
|
44
|
-
}
|
|
45
|
-
_handleSlotchange() {
|
|
46
|
-
this._updateAriaLabel(), this._highlightOptions(), this.dispatchEvent(new Event("ɵoptgroupslotchange"));
|
|
47
|
-
}
|
|
48
|
-
_updateAriaLabel() {
|
|
49
|
-
this.internals.ariaLabel = this._inertAriaGroups ? null : this.label;
|
|
50
|
-
}
|
|
51
|
-
_highlightOptions() {
|
|
52
|
-
const e = this.getAutocompleteParent();
|
|
53
|
-
if (!e)
|
|
54
|
-
return;
|
|
55
|
-
const a = e.triggerElement?.value;
|
|
56
|
-
a && this.options.forEach((b) => b.highlight(a));
|
|
57
|
-
}
|
|
58
|
-
render() {
|
|
59
|
-
return A`
|
|
60
|
-
<div class="sbb-optgroup__divider">
|
|
61
|
-
<sbb-divider ?negative=${this.matches?.(":is(:state(negative),[state--negative])")}></sbb-divider>
|
|
62
|
-
</div>
|
|
63
|
-
${this.label ? A`
|
|
64
|
-
<div class="sbb-optgroup__label" aria-hidden="true">
|
|
65
|
-
<div class="sbb-optgroup__icon-space"></div>
|
|
66
|
-
<span>${this.label}</span>
|
|
67
|
-
</div>
|
|
68
|
-
` : G}
|
|
69
|
-
<slot @slotchange=${this._handleSlotchange}></slot>
|
|
70
|
-
`;
|
|
71
|
-
}
|
|
72
|
-
}, o = new WeakMap(), n = new WeakMap(), (() => {
|
|
73
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
74
|
-
t = [w(), k()], g = [z()], y(r, null, t, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (a) => "label" in a, get: (a) => a.label, set: (a, b) => {
|
|
75
|
-
a.label = b;
|
|
76
|
-
} }, metadata: e }, s, l), y(r, null, g, { kind: "accessor", name: "_inertAriaGroups", static: !1, private: !1, access: { has: (a) => "_inertAriaGroups" in a, get: (a) => a._inertAriaGroups, set: (a, b) => {
|
|
77
|
-
a._inertAriaGroups = b;
|
|
78
|
-
} }, metadata: e }, _, v), e && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
79
|
-
})(), r.role = d ? null : "group", r.styles = [C, D], r;
|
|
80
|
-
})();
|
|
81
|
-
export {
|
|
82
|
-
J as SbbOptgroupBaseElement
|
|
83
|
-
};
|
|
1
|
+
import { t as e } from "../../optgroup-base-element-DWKHCat8.js";
|
|
2
|
+
export { e as SbbOptgroupBaseElement };
|