@sbb-esta/lyne-elements 4.0.0-next.3 → 4.0.0-next.4
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.d.ts.map +1 -1
- package/accordion/accordion.component.js +29 -27
- package/action-group/action-group.component.js +1 -1
- package/alert/alert/alert.component.js +7 -7
- package/alert/alert-group/alert-group.component.d.ts +1 -1
- package/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/alert/alert-group/alert-group.component.js +23 -23
- package/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +58 -56
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +12 -12
- package/breadcrumb/breadcrumb/breadcrumb.component.js +5 -5
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +2 -3
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +53 -47
- package/button/common/button-common.d.ts.map +1 -1
- package/button/common/button-common.js +40 -42
- package/button/common.js +1 -1
- package/button.js +1 -1
- package/calendar/calendar.component.d.ts +4 -4
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +183 -183
- package/card/card/card.component.d.ts +3 -6
- package/card/card/card.component.d.ts.map +1 -1
- package/card/card/card.component.js +32 -47
- package/card/card-badge/card-badge.component.d.ts +0 -2
- package/card/card-badge/card-badge.component.d.ts.map +1 -1
- package/card/card-badge/card-badge.component.js +29 -36
- package/card/common/card-action-common.d.ts.map +1 -1
- package/card/common/card-action-common.js +36 -24
- package/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox/checkbox.component.js +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -2
- package/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -38
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +1 -14
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/checkbox/checkbox-panel/checkbox-panel.component.js +35 -55
- package/checkbox/common.js +1 -1
- package/checkbox-common-t04WeA36.js +5 -0
- package/checkbox.js +1 -1
- package/chip/chip-group/chip-group.component.d.ts +1 -0
- package/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/chip/chip-group/chip-group.component.js +23 -23
- package/clock/clock.component.d.ts +3 -1
- package/clock/clock.component.d.ts.map +1 -1
- package/clock/clock.component.js +40 -39
- package/container/container/container.component.d.ts.map +1 -1
- package/container/container/container.component.js +27 -24
- package/container/sticky-bar/sticky-bar.component.d.ts +3 -1
- package/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/container/sticky-bar/sticky-bar.component.js +41 -41
- package/core/a11y/focus-visible-within-controller.d.ts +2 -1
- package/core/a11y/focus-visible-within-controller.d.ts.map +1 -1
- package/core/a11y/focus-visible-within-controller.js +8 -7
- package/core/base-elements/action-base-element.d.ts +1 -0
- package/core/base-elements/action-base-element.d.ts.map +1 -1
- package/core/base-elements/action-base-element.js +37 -45
- package/core/base-elements/button-base-element.d.ts +1 -1
- package/core/base-elements/button-base-element.d.ts.map +1 -1
- package/core/base-elements/button-base-element.js +55 -56
- package/core/base-elements/link-base-element.d.ts.map +1 -1
- package/core/base-elements/link-base-element.js +62 -64
- package/core/base-elements/open-close-base-element.d.ts +2 -1
- package/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/core/base-elements/open-close-base-element.js +8 -8
- package/core/controllers/media-matchers-controller.d.ts +4 -1
- package/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/core/controllers/media-matchers-controller.js +30 -26
- package/core/controllers/overlay-position-controller.d.ts +3 -2
- package/core/controllers/overlay-position-controller.d.ts.map +1 -1
- package/core/controllers/overlay-position-controller.js +35 -35
- package/core/controllers/property-watcher-controller.d.ts +16 -0
- package/core/controllers/property-watcher-controller.d.ts.map +1 -0
- package/core/controllers/property-watcher-controller.js +58 -0
- package/core/controllers.d.ts +1 -1
- package/core/controllers.js +21 -18
- package/core/datetime/date-adapter.d.ts +1 -3
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/dom/animation.d.ts.map +1 -1
- package/core/dom/animation.js +2 -2
- package/core/dom/set-or-remove-attribute.d.ts +0 -14
- package/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/core/dom/set-or-remove-attribute.js +3 -11
- package/core/dom.d.ts +0 -2
- package/core/dom.d.ts.map +1 -1
- package/core/dom.js +25 -33
- package/core/i18n/i18n.d.ts +0 -2
- package/core/i18n/i18n.d.ts.map +1 -1
- package/core/i18n/i18n.js +60 -66
- package/core/i18n.js +53 -54
- package/core/interfaces/types.d.ts +0 -14
- package/core/interfaces/types.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.d.ts +14 -1
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +102 -75
- package/core/mixins/form-associated-mixin.js +1 -1
- package/core/mixins/form-associated-radio-button-mixin.js +16 -16
- package/core/mixins/panel-mixin.d.ts +10 -2
- package/core/mixins/panel-mixin.d.ts.map +1 -1
- package/core/mixins/panel-mixin.js +51 -37
- package/core/mixins/selection-panel-mixin.d.ts +5 -11
- package/core/mixins/selection-panel-mixin.d.ts.map +1 -1
- package/core/mixins/selection-panel-mixin.js +35 -83
- package/core/mixins.js +28 -27
- package/core/overlay/overlay-option-panel.d.ts +2 -1
- package/core/overlay/overlay-option-panel.d.ts.map +1 -1
- package/core/overlay/overlay-option-panel.js +9 -6
- package/core/styles/core.scss +32 -11
- package/core/styles/mixins/card.scss +71 -55
- package/core/testing/wait-for-render.d.ts +1 -1
- package/core.css +151 -26
- package/custom-elements.json +8452 -8203
- package/date-input/date-input.component.d.ts +0 -5
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +0 -7
- package/development/accordion/accordion.component.d.ts.map +1 -1
- package/development/accordion/accordion.component.js +5 -4
- package/development/action-group/action-group.component.js +2 -2
- package/development/alert/alert/alert.component.js +5 -5
- package/development/alert/alert-group/alert-group.component.d.ts +1 -1
- package/development/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/development/alert/alert-group/alert-group.component.js +5 -5
- package/development/autocomplete/autocomplete-base-element.d.ts +1 -0
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +28 -32
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -3
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts +2 -3
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.d.ts.map +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +33 -24
- package/development/button/common/button-common.d.ts.map +1 -1
- package/development/button/common/button-common.js +8 -17
- package/development/button/common.js +1 -1
- package/development/button.js +1 -1
- package/development/calendar/calendar.component.d.ts +4 -4
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +11 -11
- package/development/card/card/card.component.d.ts +3 -6
- package/development/card/card/card.component.d.ts.map +1 -1
- package/development/card/card/card.component.js +91 -146
- package/development/card/card-badge/card-badge.component.d.ts +0 -2
- package/development/card/card-badge/card-badge.component.d.ts.map +1 -1
- package/development/card/card-badge/card-badge.component.js +34 -71
- package/development/card/common/card-action-common.d.ts.map +1 -1
- package/development/card/common/card-action-common.js +21 -10
- package/development/checkbox/checkbox/checkbox.component.d.ts +1 -1
- package/development/checkbox/checkbox/checkbox.component.js +2 -2
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -2
- package/development/checkbox/checkbox-group/checkbox-group.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-group/checkbox-group.component.js +13 -15
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +1 -14
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +6 -41
- package/development/checkbox/common.js +1 -1
- package/development/{checkbox-common-CX17vF7q.js → checkbox-common-D2-QcV8n.js} +4 -1
- package/development/checkbox.js +1 -1
- package/development/chip/chip-group/chip-group.component.d.ts +1 -0
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +11 -5
- package/development/clock/clock.component.d.ts +3 -1
- package/development/clock/clock.component.d.ts.map +1 -1
- package/development/clock/clock.component.js +5 -4
- package/development/container/container/container.component.d.ts.map +1 -1
- package/development/container/container/container.component.js +4 -3
- package/development/container/sticky-bar/sticky-bar.component.d.ts +3 -1
- package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +40 -34
- package/development/core/a11y/focus-visible-within-controller.d.ts +2 -1
- package/development/core/a11y/focus-visible-within-controller.d.ts.map +1 -1
- package/development/core/a11y/focus-visible-within-controller.js +4 -3
- package/development/core/a11y/interactivity-checker.js +1 -1
- package/development/core/base-elements/action-base-element.d.ts +1 -0
- package/development/core/base-elements/action-base-element.d.ts.map +1 -1
- package/development/core/base-elements/action-base-element.js +41 -56
- package/development/core/base-elements/button-base-element.d.ts +1 -1
- package/development/core/base-elements/button-base-element.d.ts.map +1 -1
- package/development/core/base-elements/button-base-element.js +7 -7
- package/development/core/base-elements/link-base-element.d.ts.map +1 -1
- package/development/core/base-elements/link-base-element.js +6 -15
- package/development/core/base-elements/open-close-base-element.d.ts +2 -1
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/development/core/base-elements/open-close-base-element.js +12 -6
- package/development/core/controllers/media-matchers-controller.d.ts +4 -1
- package/development/core/controllers/media-matchers-controller.d.ts.map +1 -1
- package/development/core/controllers/media-matchers-controller.js +12 -5
- package/development/core/controllers/overlay-position-controller.d.ts +3 -2
- package/development/core/controllers/overlay-position-controller.d.ts.map +1 -1
- package/development/core/controllers/overlay-position-controller.js +3 -3
- package/development/core/controllers/property-watcher-controller.d.ts +16 -0
- package/development/core/controllers/property-watcher-controller.d.ts.map +1 -0
- package/development/core/controllers/property-watcher-controller.js +101 -0
- package/development/core/controllers.d.ts +1 -1
- package/development/core/controllers.js +6 -3
- package/development/core/datetime/date-adapter.d.ts +1 -3
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +1 -1
- package/development/core/dom/animation.d.ts.map +1 -1
- package/development/core/dom/animation.js +2 -2
- package/development/core/dom/set-or-remove-attribute.d.ts +0 -14
- package/development/core/dom/set-or-remove-attribute.d.ts.map +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -9
- package/development/core/dom.d.ts +0 -2
- package/development/core/dom.d.ts.map +1 -1
- package/development/core/dom.js +2 -10
- package/development/core/i18n/i18n.d.ts +0 -2
- package/development/core/i18n/i18n.d.ts.map +1 -1
- package/development/core/i18n/i18n.js +1 -8
- package/development/core/i18n.js +1 -2
- package/development/core/interfaces/types.d.ts +0 -14
- package/development/core/interfaces/types.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.d.ts +14 -1
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +58 -10
- package/development/core/mixins/form-associated-input-mixin.js +1 -1
- package/development/core/mixins/form-associated-mixin.js +2 -2
- package/development/core/mixins/form-associated-radio-button-mixin.js +2 -2
- package/development/core/mixins/panel-mixin.d.ts +10 -2
- package/development/core/mixins/panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/panel-mixin.js +24 -6
- package/development/core/mixins/selection-panel-mixin.d.ts +5 -11
- package/development/core/mixins/selection-panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/selection-panel-mixin.js +47 -111
- package/development/core/mixins.js +18 -9
- package/development/core/overlay/overlay-option-panel.d.ts +2 -1
- package/development/core/overlay/overlay-option-panel.d.ts.map +1 -1
- package/development/core/overlay/overlay-option-panel.js +10 -2
- package/development/core/overlay/position.js +1 -1
- package/development/core/testing/wait-for-render.d.ts +1 -1
- package/development/core/testing/wait-for-render.js +1 -1
- package/development/date-input/date-input.component.d.ts +0 -5
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +1 -8
- package/development/dialog/dialog/dialog.component.js +7 -7
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -6
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +30 -33
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +2 -0
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +17 -2
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -0
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +17 -6
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +5 -5
- package/development/flip-card/flip-card/flip-card.component.d.ts +2 -1
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +25 -14
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts +3 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-details/flip-card-details.component.js +7 -6
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -2
- package/development/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +1 -7
- package/development/form-field/error/error.component.js +2 -2
- package/development/form-field/form-field/form-field.component.d.ts +1 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +2 -2
- package/development/form-field/form-field-clear/form-field-clear.component.js +2 -2
- package/development/header/common/header-action-common.js +5 -5
- package/development/header/header/header.component.d.ts +1 -1
- package/development/header/header/header.component.d.ts.map +1 -1
- package/development/header/header/header.component.js +14 -14
- package/development/header/header-environment/header-environment.component.d.ts +1 -0
- package/development/header/header-environment/header-environment.component.d.ts.map +1 -1
- package/development/header/header-environment/header-environment.component.js +8 -5
- package/development/icon/icon-base.d.ts +1 -0
- package/development/icon/icon-base.d.ts.map +1 -1
- package/development/icon/icon-base.js +21 -25
- package/development/icon/icon-validate.js +2 -2
- package/development/{icon-sidebar-button-common-C6QChtaa.js → icon-sidebar-button-common-DR6eQvkq.js} +4 -4
- package/development/image/image.component.d.ts +5 -3
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +10 -9
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/common/link-common.d.ts.map +1 -1
- package/development/link/common/link-common.js +2 -3
- package/development/link/common.js +1 -1
- package/development/{link-common-DYZHRSSJ.js → link-common-CYr3PeRf.js} +9 -16
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +6 -6
- package/development/link.js +1 -1
- package/development/map-container/map-container.component.d.ts +3 -1
- package/development/map-container/map-container.component.d.ts.map +1 -1
- package/development/map-container/map-container.component.js +5 -4
- package/development/menu/common/menu-action-common.js +2 -2
- package/development/menu/menu/menu.component.d.ts +1 -1
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +29 -23
- package/development/{mini-button-common-TSDaMUCP.js → mini-button-common-CWTMR_Lu.js} +15 -15
- package/development/mini-calendar/mini-calendar/mini-calendar.component.d.ts.map +1 -1
- package/development/mini-calendar/mini-calendar/mini-calendar.component.js +7 -6
- package/development/mini-calendar/mini-calendar-month/mini-calendar-month.component.js +4 -4
- package/development/navigation/common/navigation-action-common.js +7 -7
- package/development/navigation/navigation/navigation.component.d.ts +0 -1
- package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.component.js +26 -38
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.d.ts.map +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +8 -8
- package/development/navigation/navigation-section/navigation-section.component.d.ts +8 -7
- package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +48 -45
- package/development/notification/notification.component.d.ts +3 -2
- package/development/notification/notification.component.d.ts.map +1 -1
- package/development/notification/notification.component.js +22 -19
- package/development/option/optgroup/optgroup-base-element.d.ts +0 -3
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +6 -32
- package/development/option/optgroup/optgroup.component.d.ts +2 -2
- package/development/option/optgroup/optgroup.component.d.ts.map +1 -1
- package/development/option/optgroup/optgroup.component.js +21 -13
- package/development/option/option/option-base-element.d.ts +0 -5
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +8 -41
- package/development/option/option/option.component.d.ts +5 -4
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +52 -39
- package/development/overlay/overlay-base-element.d.ts +1 -1
- package/development/overlay/overlay-base-element.js +2 -2
- package/development/overlay/overlay.component.js +7 -7
- package/development/paginator/common/paginator-common.d.ts +0 -1
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/paginator/paginator.component.d.ts +1 -1
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +8 -14
- package/development/popover/{popover/popover.component.d.ts → popover.component.d.ts} +2 -2
- package/development/popover/popover.component.d.ts.map +1 -0
- package/development/popover/popover.component.js +720 -0
- package/development/popover.d.ts +1 -1
- package/development/popover.d.ts.map +1 -1
- package/development/popover.js +1 -1
- package/development/radio-button/common.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +0 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
- package/development/radio-button/radio-button/radio-button.component.js +1 -2
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.js +28 -43
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +0 -12
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +5 -37
- package/development/{radio-button-common-BPrInmpg.js → radio-button-common-B3kVD7QV.js} +19 -42
- package/development/radio-button.js +1 -1
- package/development/{sbb-tokens-DZrHvErO.js → sbb-tokens-CZCt5L4q.js} +9 -9
- package/development/select/select.component.d.ts +1 -1
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +31 -36
- package/development/selection-action-panel/selection-action-panel.component.d.ts +0 -1
- package/development/selection-action-panel/selection-action-panel.component.d.ts.map +1 -1
- package/development/selection-action-panel/selection-action-panel.component.js +22 -9
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +5 -6
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +35 -30
- package/development/sidebar/common.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +13 -14
- package/development/sidebar/sidebar-container/sidebar-container.component.d.ts.map +1 -1
- package/development/sidebar/sidebar-container/sidebar-container.component.js +10 -8
- package/development/sidebar.js +1 -1
- package/development/skiplink-list/skiplink-list.component.js +1 -1
- package/development/stepper/step/step.component.d.ts +3 -1
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +25 -12
- package/development/stepper/step-label/step-label.component.d.ts +4 -1
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/development/stepper/step-label/step-label.component.js +40 -17
- package/development/stepper/stepper/stepper.component.d.ts +2 -2
- package/development/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/development/stepper/stepper/stepper.component.js +21 -22
- package/development/tabs/tab/tab.component.d.ts +0 -5
- package/development/tabs/tab/tab.component.d.ts.map +1 -1
- package/development/tabs/tab/tab.component.js +3 -9
- package/development/tabs/tab-group/tab-group.component.d.ts +1 -25
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +19 -23
- package/development/tabs/tab-label/tab-label.component.d.ts +1 -0
- package/development/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/development/tabs/tab-label/tab-label.component.js +20 -7
- package/development/tag/tag/tag.component.js +9 -9
- package/development/teaser/teaser.component.js +2 -2
- package/development/teaser-product/common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +2 -2
- package/development/{teaser-product-common-v3BvyFdH.js → teaser-product-common-CJfmvweQ.js} +2 -2
- package/development/teaser-product.js +1 -1
- package/development/time-input/time-input.component.d.ts +0 -5
- package/development/time-input/time-input.component.d.ts.map +1 -1
- package/development/time-input/time-input.component.js +1 -8
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.js +4 -4
- package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +2 -3
- package/development/toggle-check/toggle-check.component.js +4 -4
- package/development/tooltip/tooltip.component.d.ts.map +1 -1
- package/development/tooltip/tooltip.component.js +7 -7
- package/development/visual-checkbox/visual-checkbox.component.js +8 -4
- package/dialog/dialog/dialog.component.js +20 -20
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -6
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel/expansion-panel.component.js +51 -56
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts +2 -0
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +21 -13
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -0
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +24 -20
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/file-selector/common/file-selector-common.js +28 -28
- package/flip-card/flip-card/flip-card.component.d.ts +2 -1
- package/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/flip-card/flip-card/flip-card.component.js +44 -40
- package/flip-card/flip-card-details/flip-card-details.component.d.ts +3 -1
- package/flip-card/flip-card-details/flip-card-details.component.d.ts.map +1 -1
- package/flip-card/flip-card-details/flip-card-details.component.js +15 -14
- package/flip-card/flip-card-summary/flip-card-summary.component.d.ts +1 -2
- package/flip-card/flip-card-summary/flip-card-summary.component.d.ts.map +1 -1
- package/flip-card/flip-card-summary/flip-card-summary.component.js +23 -26
- package/form-field/error/error.component.js +3 -3
- package/form-field/form-field/form-field.component.d.ts +1 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +1 -1
- package/form-field/form-field-clear/form-field-clear.component.js +7 -7
- package/header/common/header-action-common.js +14 -14
- package/header/header/header.component.d.ts +1 -1
- package/header/header/header.component.d.ts.map +1 -1
- package/header/header/header.component.js +40 -40
- package/header/header-environment/header-environment.component.d.ts +1 -0
- package/header/header-environment/header-environment.component.d.ts.map +1 -1
- package/header/header-environment/header-environment.component.js +8 -9
- package/icon/icon-base.d.ts +1 -0
- package/icon/icon-base.d.ts.map +1 -1
- package/icon/icon-base.js +45 -48
- package/icon/icon-validate.js +3 -3
- package/{icon-sidebar-button-common-W6GYJbVt.js → icon-sidebar-button-common-ffAscVDk.js} +1 -1
- package/image/image.component.d.ts +5 -3
- package/image/image.component.d.ts.map +1 -1
- package/image/image.component.js +31 -30
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/link/common/block-link-common.js +1 -1
- package/link/common/inline-link-common.js +1 -1
- package/link/common/link-common.d.ts.map +1 -1
- package/link/common/link-common.js +2 -3
- package/link/common.js +1 -1
- package/link-common-D9TmX32v.js +45 -0
- package/link-list/link-list-anchor/link-list-anchor.component.js +9 -9
- package/link.js +1 -1
- package/map-container/map-container.component.d.ts +3 -1
- package/map-container/map-container.component.d.ts.map +1 -1
- package/map-container/map-container.component.js +18 -17
- package/menu/common/menu-action-common.js +5 -5
- package/menu/menu/menu.component.d.ts +1 -1
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +29 -28
- package/mini-button-common-Bb4ri3Rn.js +10 -0
- package/mini-calendar/mini-calendar/mini-calendar.component.d.ts.map +1 -1
- package/mini-calendar/mini-calendar/mini-calendar.component.js +22 -21
- package/navigation/common/navigation-action-common.js +10 -10
- package/navigation/navigation/navigation.component.d.ts +0 -1
- package/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/navigation/navigation/navigation.component.js +46 -55
- package/navigation/navigation-marker/navigation-marker.component.d.ts +1 -1
- package/navigation/navigation-marker/navigation-marker.component.d.ts.map +1 -1
- package/navigation/navigation-marker/navigation-marker.component.js +20 -20
- package/navigation/navigation-section/navigation-section.component.d.ts +8 -7
- package/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/navigation/navigation-section/navigation-section.component.js +65 -65
- package/notification/notification.component.d.ts +3 -2
- package/notification/notification.component.d.ts.map +1 -1
- package/notification/notification.component.js +22 -25
- package/off-brand-theme.css +151 -26
- package/option/optgroup/optgroup-base-element.d.ts +0 -3
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +45 -64
- package/option/optgroup/optgroup.component.d.ts +2 -2
- package/option/optgroup/optgroup.component.d.ts.map +1 -1
- package/option/optgroup/optgroup.component.js +27 -19
- package/option/option/option-base-element.d.ts +0 -5
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +58 -74
- package/option/option/option.component.d.ts +5 -4
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +40 -36
- package/overlay/overlay-base-element.d.ts +1 -1
- package/overlay/overlay-base-element.js +1 -1
- package/overlay/overlay.component.js +28 -28
- package/package.json +1 -6
- package/paginator/common/paginator-common.d.ts +0 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.d.ts +1 -1
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.js +17 -20
- package/popover/{popover/popover.component.d.ts → popover.component.d.ts} +2 -2
- package/popover/popover.component.d.ts.map +1 -0
- package/popover/popover.component.js +316 -0
- package/popover.d.ts +1 -1
- package/popover.d.ts.map +1 -1
- package/popover.js +1 -1
- package/radio-button/common.js +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +0 -1
- package/radio-button/radio-button/radio-button.component.d.ts.map +1 -1
- package/radio-button/radio-button/radio-button.component.js +4 -5
- package/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -1
- package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.component.js +45 -46
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +0 -12
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts.map +1 -1
- package/radio-button/radio-button-panel/radio-button-panel.component.js +36 -54
- package/radio-button-common-1Yg7p8dc.js +5 -0
- package/radio-button.js +1 -1
- package/safety-theme.css +151 -26
- package/{sbb-tokens-BNWpZrLn.js → sbb-tokens-DruExozg.js} +8 -8
- package/select/select.component.d.ts +1 -1
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +52 -52
- package/selection-action-panel/selection-action-panel.component.d.ts +0 -1
- package/selection-action-panel/selection-action-panel.component.d.ts.map +1 -1
- package/selection-action-panel/selection-action-panel.component.js +9 -13
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +5 -6
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +49 -55
- package/sidebar/common.js +1 -1
- package/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/sidebar/sidebar/sidebar.component.js +26 -32
- package/sidebar/sidebar-container/sidebar-container.component.d.ts.map +1 -1
- package/sidebar/sidebar-container/sidebar-container.component.js +33 -32
- package/sidebar.js +1 -1
- package/skiplink-list/skiplink-list.component.js +1 -1
- package/standard-theme.css +151 -26
- package/stepper/step/step.component.d.ts +3 -1
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/step/step.component.js +28 -20
- package/stepper/step-label/step-label.component.d.ts +4 -1
- package/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/stepper/step-label/step-label.component.js +35 -23
- package/stepper/stepper/stepper.component.d.ts +2 -2
- package/stepper/stepper/stepper.component.d.ts.map +1 -1
- package/stepper/stepper/stepper.component.js +49 -48
- package/tabs/tab/tab.component.d.ts +0 -5
- package/tabs/tab/tab.component.d.ts.map +1 -1
- package/tabs/tab/tab.component.js +12 -18
- package/tabs/tab-group/tab-group.component.d.ts +1 -25
- package/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/tabs/tab-group/tab-group.component.js +48 -50
- package/tabs/tab-label/tab-label.component.d.ts +1 -0
- package/tabs/tab-label/tab-label.component.d.ts.map +1 -1
- package/tabs/tab-label/tab-label.component.js +34 -29
- package/tag/tag/tag.component.js +12 -12
- package/teaser/teaser.component.js +1 -1
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product-common-DwaWdQEh.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.d.ts +0 -5
- package/time-input/time-input.component.d.ts.map +1 -1
- package/time-input/time-input.component.js +3 -10
- package/toast/toast.component.js +23 -23
- package/toggle/toggle/toggle.component.js +13 -13
- package/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.component.js +20 -21
- package/toggle-check/toggle-check.component.js +8 -8
- package/tooltip/tooltip.component.d.ts.map +1 -1
- package/tooltip/tooltip.component.js +39 -39
- package/visual-checkbox/visual-checkbox.component.js +15 -15
- package/checkbox-common-DK5WsQPi.js +0 -5
- package/core/controllers/ancestor-watcher-controller.d.ts +0 -14
- package/core/controllers/ancestor-watcher-controller.d.ts.map +0 -1
- package/core/controllers/ancestor-watcher-controller.js +0 -51
- package/core/dom/breakpoint.d.ts +0 -16
- package/core/dom/breakpoint.d.ts.map +0 -1
- package/core/dom/breakpoint.js +0 -12
- package/core/dom/host-context.d.ts +0 -11
- package/core/dom/host-context.d.ts.map +0 -1
- package/core/dom/host-context.js +0 -17
- package/development/core/controllers/ancestor-watcher-controller.d.ts +0 -14
- package/development/core/controllers/ancestor-watcher-controller.d.ts.map +0 -1
- package/development/core/controllers/ancestor-watcher-controller.js +0 -87
- package/development/core/dom/breakpoint.d.ts +0 -16
- package/development/core/dom/breakpoint.d.ts.map +0 -1
- package/development/core/dom/breakpoint.js +0 -19
- package/development/core/dom/host-context.d.ts +0 -11
- package/development/core/dom/host-context.d.ts.map +0 -1
- package/development/core/dom/host-context.js +0 -21
- package/development/popover/popover/popover.component.d.ts.map +0 -1
- package/development/popover/popover/popover.component.js +0 -722
- package/development/popover/popover.d.ts +0 -5
- package/development/popover/popover.d.ts.map +0 -1
- package/development/popover/popover.js +0 -6
- package/link-common-CdQBSga7.js +0 -46
- package/mini-button-common-C3-aFB4L.js +0 -10
- package/popover/popover/popover.component.d.ts.map +0 -1
- package/popover/popover/popover.component.js +0 -321
- package/popover/popover.d.ts +0 -5
- package/popover/popover.d.ts.map +0 -1
- package/popover/popover.js +0 -5
- package/radio-button-common-chJrmIBn.js +0 -5
- package/teaser-product-common-a4NenpSA.js +0 -5
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
var I = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var U = (e,
|
|
5
|
-
var h = (e,
|
|
6
|
-
import { __esDecorate as
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { SbbFocusTrapController as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
var U = (e, s, a) => s.has(e) || I("Cannot " + a);
|
|
5
|
+
var h = (e, s, a) => (U(e, s, "read from private field"), a ? a.call(e) : s.get(e)), p = (e, s, a) => s.has(e) ? I("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, a), l = (e, s, a, r) => (U(e, s, "write to private field"), r ? r.call(e, a) : s.set(e, a), a);
|
|
6
|
+
import { __esDecorate as _, __runInitializers as b } from "tslib";
|
|
7
|
+
import { css as K, isServer as q, nothing as O, html as $ } from "lit";
|
|
8
|
+
import { customElement as P, property as m } from "lit/decorators.js";
|
|
9
|
+
import { SbbFocusTrapController as R, sbbInputModalityDetector as Z, IS_FOCUSABLE_QUERY as H } from "../../core/a11y.js";
|
|
10
|
+
import { SbbOpenCloseBaseElement as j } from "../../core/base-elements/open-close-base-element.js";
|
|
11
|
+
import { SbbLanguageController as F, SbbMediaMatcherController as Q, SbbMediaQueryBreakpointLargeAndBelow as M } from "../../core/controllers.js";
|
|
12
|
+
import { forceType as f, omitEmptyConverter as W, idReference as G } from "../../core/decorators.js";
|
|
13
|
+
import { isZeroAnimationDuration as Y } from "../../core/dom.js";
|
|
13
14
|
import { i18nGoBack as J } from "../../core/i18n.js";
|
|
14
|
-
import { SbbUpdateSchedulerMixin as V,
|
|
15
|
-
import { removeAriaOverlayTriggerAttributes as
|
|
16
|
-
import { boxSizingStyles as
|
|
15
|
+
import { SbbUpdateSchedulerMixin as V, ɵstateController as D } from "../../core/mixins.js";
|
|
16
|
+
import { removeAriaOverlayTriggerAttributes as X, setAriaOverlayTriggerAttributes as tt } from "../../core/overlay.js";
|
|
17
|
+
import { boxSizingStyles as it } from "../../core/styles.js";
|
|
17
18
|
import "../../button/transparent-button.js";
|
|
18
19
|
import "../../divider.js";
|
|
19
|
-
const
|
|
20
|
-
let
|
|
20
|
+
const et = K`:host{--sbb-navigation-section-display: none;--sbb-navigation-section-column: 1 / -1;--sbb-navigation-section-position: fixed;--sbb-navigation-section-pointer-events: none;--sbb-navigation-section-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-3x) );--sbb-navigation-section-animation-easing: ease-out;--sbb-navigation-section-padding-inline: var(--sbb-layout-base-offset-responsive);--sbb-navigation-section-padding-block: var(--sbb-spacing-responsive-l);--sbb-navigation-section-translate: 100%;--sbb-navigation-section-content-padding-inline-start: var(--sbb-spacing-fixed-12x);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark);--sbb-navigation-section-width: 100dvw;--sbb-navigation-section-height: 100dvh;display:var(--sbb-navigation-section-display);position:var(--sbb-navigation-section-position);grid-column:var(--sbb-navigation-section-column);inset-inline-start:0;inset-block-start:0;width:var(--sbb-navigation-section-width);height:var(--sbb-navigation-section-height);z-index:var(--sbb-navigation-z-index, var(--sbb-overlay-default-z-index))}@media(min-width:64rem){:host{--sbb-navigation-section-column: 5 / 13;--sbb-navigation-section-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-4x) );--sbb-navigation-section-padding-block: var(--sbb-spacing-responsive-xl);--sbb-navigation-section-padding-inline: var(--sbb-spacing-fixed-8x) var(--sbb-layout-base-offset-responsive);--sbb-navigation-section-position: relative;--sbb-navigation-section-translate: 0;--sbb-navigation-section-content-padding-inline-start: 0;--sbb-navigation-section-width: calc( 100% + var(--sbb-layout-base-offset-responsive) + var(--sbb-grid-base-gutter-responsive) );translate:calc(var(--sbb-grid-base-gutter-responsive) * -1) 0}}@media(min-width:90rem){:host{--sbb-navigation-section-column: 6 / 17;--sbb-navigation-section-padding-block: var(--sbb-spacing-responsive-xxl) var(--sbb-spacing-responsive-l)}}:host(:is(:state(state-opened),[state--state-opened])){--sbb-navigation-section-pointer-events: all}:host(:is(:state(state-opening),[state--state-opening])){--sbb-navigation-section-position: absolute}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-closing),[state--state-closing]))){--sbb-navigation-section-pointer-events: none}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))){--sbb-navigation-section-display: block}::slotted(*){padding-inline-start:var(--sbb-navigation-section-content-padding-inline-start)}::slotted(:is(:state(sbb-button),[state--sbb-button])){grid-column-start:1}.sbb-navigation-section__container{pointer-events:var(--sbb-navigation-section-pointer-events);height:var(--sbb-navigation-section-height)}.sbb-navigation-section{display:none;border:none;margin:0;width:100%;height:100%;color:var(--sbb-navigation-color, var(--sbb-color-1-negative));background-color:transparent;padding:0;overflow:hidden}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-opened),[state--state-opened]),:is(:state(state-closing),[state--state-closing]))) .sbb-navigation-section{display:block;animation-name:open;animation-duration:var(--sbb-navigation-section-animation-duration);animation-timing-function:var(--sbb-navigation-section-animation-easing)}:host(:is(:state(state-closing),[state--state-closing])) .sbb-navigation-section{animation-name:close}@media(forced-colors:active){.sbb-navigation-section{outline:var(--sbb-border-width-1x) solid CanvasText}}.sbb-navigation-section__wrapper{--sbb-scrollbar-thumb-width: .125rem;--sbb-scrollbar-thumb-width-hover: .25rem;--sbb-scrollbar-width-firefox: thin;--sbb-scrollbar-color: color-mix(in srgb, var(--sbb-color-white) 30%, transparent);--sbb-scrollbar-color-hover: color-mix(in srgb, var(--sbb-color-white) 60%, transparent);--sbb-scrollbar-track-color: transparent;--sbb-scrollbar-width: var(--sbb-spacing-fixed-3x)}.sbb-navigation-section__wrapper::-webkit-scrollbar{width:var(--sbb-scrollbar-width);height:var(--sbb-scrollbar-width);background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-navigation-section__wrapper::-webkit-scrollbar-corner{background-color:var(--sbb-scrollbar-track-color, transparent)}.sbb-navigation-section__wrapper::-webkit-scrollbar-thumb{background-color:var(--sbb-scrollbar-color, currentcolor);border:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width))) solid transparent;border-radius:var(--sbb-border-radius-4x);background-clip:padding-box}.sbb-navigation-section__wrapper::-webkit-scrollbar-thumb:hover{background-color:var(--sbb-scrollbar-color-hover, currentcolor);border-width:calc(.5 * (var(--sbb-scrollbar-width) - var(--sbb-scrollbar-thumb-width-hover)))}.sbb-navigation-section__wrapper::-webkit-scrollbar-button,.sbb-navigation-section__wrapper::-webkit-scrollbar-corner{display:none}@supports not selector(::-webkit-scrollbar){.sbb-navigation-section__wrapper{scrollbar-width:var(--sbb-scrollbar-width-firefox);scrollbar-color:var(--sbb-scrollbar-color, currentcolor) var(--sbb-scrollbar-track-color, transparent)}}.sbb-navigation-section__wrapper{height:100%;padding-block:var(--sbb-navigation-section-padding-block);outline:none;overflow-y:auto}:host(:is(:is(:state(state-opening),[state--state-opening]),:is(:state(state-closing),[state--state-closing]))) .sbb-navigation-section__wrapper{--sbb-scrollbar-color: transparent;scrollbar-color:transparent transparent}.sbb-navigation-section__header{position:relative;display:flex;align-items:center;gap:var(--sbb-spacing-fixed-1x);margin-block-start:var(--sbb-spacing-responsive-xxl);padding-inline-start:var(--sbb-navigation-section-content-padding-inline-start)}@media(min-width:64rem){.sbb-navigation-section__header{margin-block-start:0;padding-inline-start:0}}@media(min-width:90rem){.sbb-navigation-section__header{grid-column:1/4}}.sbb-navigation-section__back{position:absolute;translate:calc((100% + var(--sbb-spacing-fixed-1x)) * -1) 0}@media(min-width:64rem){.sbb-navigation-section__back{display:none}}.sbb-navigation-section__title{margin-block:var(--sbb-title-margin-block, 0);margin-inline:0;font-family:var(--sbb-typo-font-family);font-weight:700;line-height:var(--sbb-title-line-height, var(--sbb-typo-line-height-heading));letter-spacing:var(--sbb-typo-letter-spacing-heading);font-size:var(--sbb-title-font-size);--sbb-title-font-size: var(--sbb-title-font-size-level-4-lean, var(--sbb-heading-font-size-4))}@media(min-width:64rem){.sbb-navigation-section__title{--sbb-title-font-size: var(--sbb-title-font-size-level-2-lean, var(--sbb-heading-font-size-2))}}.sbb-navigation-section__content{display:grid;grid-template-columns:1fr;gap:var(--sbb-spacing-responsive-l) var(--sbb-grid-base-gutter-responsive);padding-inline:var(--sbb-navigation-section-padding-inline)}@media(min-width:64rem){.sbb-navigation-section__content{opacity:0;translate:0 var(--sbb-spacing-fixed-3x);transition-duration:var(--sbb-navigation-section-animation-duration);transition-delay:var(--sbb-navigation-section-animation-duration);transition-timing-function:var(--sbb-navigation-section-animation-easing);transition-property:opacity,translate}:host(:is(:state(state-opened),[state--state-opened])) .sbb-navigation-section__content{opacity:1;translate:0 0}}@media(min-width:90rem){.sbb-navigation-section__content{grid-template-columns:repeat(3,1fr)}}:host(:is(:state(state-closing),[state--state-closing])) .sbb-navigation-section__content{transition-delay:0s}@keyframes open{0%{translate:var(--sbb-navigation-section-translate) 0}to{translate:0 0}}@keyframes close{0%{translate:0 0}to{translate:var(--sbb-navigation-section-translate) 0}}`;
|
|
21
|
+
let st = 0, yt = (() => {
|
|
21
22
|
var c, g, d, v, o;
|
|
22
|
-
let e = [
|
|
23
|
+
let e = [P("sbb-navigation-section")], s, a = [], r, y = V(j), w, k = [], E = [], C, x = [], L = [], A, S = [], B = [], z, N = [], T = [];
|
|
23
24
|
return o = class extends y {
|
|
24
25
|
constructor() {
|
|
25
26
|
super();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
l(this, c, b(this, k, "")), l(this, g, (b(this, E), b(this,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
[F]: (t) => {
|
|
34
|
-
this._state !== "closed" && this._setNavigationInert(t);
|
|
27
|
+
p(this, c);
|
|
28
|
+
p(this, g);
|
|
29
|
+
p(this, d);
|
|
30
|
+
p(this, v);
|
|
31
|
+
l(this, c, b(this, k, "")), l(this, g, (b(this, E), b(this, x, null))), l(this, d, (b(this, L), b(this, S, ""))), l(this, v, (b(this, B), b(this, N, ""))), this._firstLevelNavigation = (b(this, T), null), this._triggerElement = null, this._language = new F(this), this._focusTrapController = new R(this), this._lastKeydownEvent = null, this._mediaMatcherController = new Q(this, {
|
|
32
|
+
[M]: (t) => {
|
|
33
|
+
this.state !== "closed" && this._setNavigationInert(t);
|
|
35
34
|
}
|
|
36
|
-
})
|
|
35
|
+
}), this._handleNavigationSectionClose = (t) => {
|
|
36
|
+
t.composedPath().filter((i) => i instanceof HTMLElement).some((i) => this._isCloseElement(i)) && this.close();
|
|
37
|
+
}, this.addEventListener?.("keydown", (t) => {
|
|
37
38
|
this._lastKeydownEvent = t;
|
|
38
39
|
}), this.addEventListener?.("focusout", (t) => {
|
|
39
|
-
if (t.relatedTarget instanceof HTMLElement && !this.contains(t.relatedTarget) &&
|
|
40
|
-
const i = this.closest("sbb-navigation"),
|
|
41
|
-
if (this._lastKeydownEvent.shiftKey || !
|
|
40
|
+
if (t.relatedTarget instanceof HTMLElement && !this.contains(t.relatedTarget) && Z.mostRecentModality === "keyboard" && this._lastKeydownEvent?.key === "Tab" && this._triggerElement) {
|
|
41
|
+
const i = this.closest("sbb-navigation"), n = Array.from(i?.querySelectorAll(H) ?? []).filter((u) => !this.contains(u));
|
|
42
|
+
if (this._lastKeydownEvent.shiftKey || !n.length)
|
|
42
43
|
this._triggerElement?.focus();
|
|
43
44
|
else {
|
|
44
|
-
const u =
|
|
45
|
-
(
|
|
45
|
+
const u = n.indexOf(this._triggerElement);
|
|
46
|
+
(n[u + 1] ?? i.closeButton)?.focus();
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
});
|
|
@@ -85,29 +86,27 @@ let nt = 0, yt = (() => {
|
|
|
85
86
|
set accessibilityBackLabel(t) {
|
|
86
87
|
l(this, v, t);
|
|
87
88
|
}
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
set _state(t) {
|
|
92
|
-
this.setAttribute("data-state", t), this.ariaHidden = this._state !== "opened" ? "true" : null;
|
|
89
|
+
/** The state of the component. */
|
|
90
|
+
set state(t) {
|
|
91
|
+
super.state = t, this.internals.ariaHidden = this.state !== "opened" ? "true" : null;
|
|
93
92
|
}
|
|
94
|
-
get
|
|
95
|
-
return
|
|
93
|
+
get state() {
|
|
94
|
+
return super.state;
|
|
96
95
|
}
|
|
97
96
|
/**
|
|
98
97
|
* Opens the navigation section on trigger click.
|
|
99
98
|
*/
|
|
100
99
|
open() {
|
|
101
|
-
this.
|
|
100
|
+
this.state !== "closed" || !this.hasUpdated || !this.dispatchBeforeOpenEvent() || (this._isNavigationButton(this._triggerElement) && this._triggerElement?.marker?.select(this._triggerElement), this._closePreviousNavigationSection(), this.state = "opening", this.dispatchEvent(new Event("ɵnavigationsectionopening")), this.startUpdate(), this.inert = !0, this._triggerElement?.setAttribute("aria-expanded", "true"), this._isZeroAnimationDuration() && this._handleOpening());
|
|
102
101
|
}
|
|
103
102
|
_isZeroAnimationDuration() {
|
|
104
|
-
return
|
|
103
|
+
return Y(this, "--sbb-navigation-section-animation-duration");
|
|
105
104
|
}
|
|
106
105
|
_handleOpening() {
|
|
107
|
-
this.
|
|
106
|
+
this.state = "opened", this.inert = !1, this._attachWindowEvents(), this._setNavigationInert(), this._focusTrapController.focusInitialElement(), this._checkActiveAction(), this.completeUpdate(), this.dispatchOpenEvent();
|
|
108
107
|
}
|
|
109
108
|
_handleClosing() {
|
|
110
|
-
this.
|
|
109
|
+
this.state = "closed", this.shadowRoot?.querySelector(".sbb-navigation-section__container")?.scrollTo(0, 0), this._windowEventsController?.abort(), this._resetLists(), this._setNavigationInert(), this._isBelowLarge() && this._triggerElement && this._triggerElement.focus(), this.completeUpdate(), this.dispatchCloseEvent();
|
|
111
110
|
}
|
|
112
111
|
_closePreviousNavigationSection() {
|
|
113
112
|
this._firstLevelNavigation?.activeNavigationSection?.close();
|
|
@@ -116,11 +115,11 @@ let nt = 0, yt = (() => {
|
|
|
116
115
|
* Closes the navigation section.
|
|
117
116
|
*/
|
|
118
117
|
close() {
|
|
119
|
-
this.
|
|
118
|
+
this.state !== "opened" || !this.dispatchBeforeCloseEvent() || (this.dispatchEvent(new Event("ɵnavigationsectionclosing")), this.state = "closing", this.startUpdate(), this.inert = !0, this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
|
|
120
119
|
}
|
|
121
120
|
// Check if the trigger is valid and attach click event listeners.
|
|
122
121
|
_configureTrigger() {
|
|
123
|
-
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(),
|
|
122
|
+
this.trigger !== this._triggerElement && (this._triggerAbortController?.abort(), X(this._triggerElement), this._triggerElement = this.trigger, this._triggerElement && (tt(this._triggerElement, "menu", this.id, this.state), this._triggerAbortController = new AbortController(), this._isNavigationButton(this._triggerElement) && (this._triggerElement.connectedSection = this), this._triggerElement.addEventListener("click", () => this.open(), {
|
|
124
123
|
signal: this._triggerAbortController.signal
|
|
125
124
|
}), this._firstLevelNavigation = this._triggerElement?.closest?.("sbb-navigation")));
|
|
126
125
|
}
|
|
@@ -129,15 +128,15 @@ let nt = 0, yt = (() => {
|
|
|
129
128
|
}
|
|
130
129
|
_setNavigationInert(t = this._isBelowLarge()) {
|
|
131
130
|
const i = this._firstLevelNavigation?.navigationContent;
|
|
132
|
-
i && (i.inert = t && this.
|
|
131
|
+
i && (i.inert = t && this.state !== "closed");
|
|
133
132
|
}
|
|
134
133
|
// In rare cases it can be that the animationEnd event is triggered twice.
|
|
135
134
|
// To avoid entering a corrupt state, exit when state is not expected.
|
|
136
135
|
_onAnimationEnd(t) {
|
|
137
|
-
t.animationName === "open" && this.
|
|
136
|
+
t.animationName === "open" && this.state === "opening" ? this._handleOpening() : t.animationName === "close" && this.state === "closing" && this._handleClosing();
|
|
138
137
|
}
|
|
139
138
|
_resetLists() {
|
|
140
|
-
Array.from(this.querySelectorAll("[
|
|
139
|
+
Array.from(this.querySelectorAll(":is(:state(section-action),[state--section-action]):is(:state(action-active),[state--action-active])") ?? []).forEach((t) => D(t).delete("action-active"));
|
|
141
140
|
}
|
|
142
141
|
_attachWindowEvents() {
|
|
143
142
|
this._windowEventsController = new AbortController(), window.addEventListener("keydown", (t) => this._onKeydownEvent(t), {
|
|
@@ -150,35 +149,36 @@ let nt = 0, yt = (() => {
|
|
|
150
149
|
return t.nodeName === "A" || !t.hasAttribute("disabled") && (t.hasAttribute("sbb-navigation-close") || t.hasAttribute("sbb-navigation-section-close"));
|
|
151
150
|
}
|
|
152
151
|
_isBelowLarge() {
|
|
153
|
-
return
|
|
152
|
+
return this._mediaMatcherController.matches(M) ?? !1;
|
|
154
153
|
}
|
|
155
154
|
// Closes the navigation on "Esc" key pressed.
|
|
156
155
|
_onKeydownEvent(t) {
|
|
157
|
-
this.
|
|
156
|
+
this.state === "opened" && t.key === "Escape" && this.close();
|
|
158
157
|
}
|
|
159
158
|
_checkActiveAction() {
|
|
160
|
-
this.querySelector(":is(sbb-navigation-button, sbb-navigation-link).sbb-active")
|
|
159
|
+
const t = this.querySelector(":is(sbb-navigation-button, sbb-navigation-link).sbb-active");
|
|
160
|
+
D(t)?.toggle("action-active", !0);
|
|
161
161
|
}
|
|
162
162
|
connectedCallback() {
|
|
163
|
-
super.connectedCallback(), this.slot ||= "navigation-section", this.id ||= `sbb-navigation-section-${
|
|
163
|
+
super.connectedCallback(), this.slot ||= "navigation-section", this.id ||= `sbb-navigation-section-${st++}`, this.hasUpdated && this._configureTrigger();
|
|
164
164
|
}
|
|
165
165
|
disconnectedCallback() {
|
|
166
166
|
super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._windowEventsController?.abort();
|
|
167
167
|
}
|
|
168
|
-
requestUpdate(t, i,
|
|
169
|
-
super.requestUpdate(t, i,
|
|
168
|
+
requestUpdate(t, i, n) {
|
|
169
|
+
super.requestUpdate(t, i, n), !q && (!t || t === "trigger") && this.hasUpdated && this._configureTrigger();
|
|
170
170
|
}
|
|
171
171
|
firstUpdated(t) {
|
|
172
172
|
super.firstUpdated(t), this._configureTrigger();
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return
|
|
175
|
+
return $`
|
|
176
176
|
<div class="sbb-navigation-section__container">
|
|
177
177
|
<nav
|
|
178
178
|
@animationend=${this._onAnimationEnd}
|
|
179
179
|
class="sbb-navigation-section"
|
|
180
|
-
aria-labelledby=${this.accessibilityLabel ?
|
|
181
|
-
aria-label=${this.accessibilityLabel ? this.accessibilityLabel :
|
|
180
|
+
aria-labelledby=${this.accessibilityLabel ? O : "title"}
|
|
181
|
+
aria-label=${this.accessibilityLabel ? this.accessibilityLabel : O}
|
|
182
182
|
>
|
|
183
183
|
<div class="sbb-navigation-section__wrapper">
|
|
184
184
|
<div class="sbb-navigation-section__content">
|
|
@@ -208,16 +208,16 @@ let nt = 0, yt = (() => {
|
|
|
208
208
|
}
|
|
209
209
|
}, c = new WeakMap(), g = new WeakMap(), d = new WeakMap(), v = new WeakMap(), r = o, (() => {
|
|
210
210
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(y[Symbol.metadata] ?? null) : void 0;
|
|
211
|
-
w = [f(), m({ attribute: "title-content", reflect: !0, converter:
|
|
212
|
-
i.titleContent =
|
|
213
|
-
} }, metadata: t }, k, E),
|
|
214
|
-
i.trigger =
|
|
215
|
-
} }, metadata: t },
|
|
216
|
-
i.accessibilityLabel =
|
|
217
|
-
} }, metadata: t }, S,
|
|
218
|
-
i.accessibilityBackLabel =
|
|
219
|
-
} }, metadata: t }, N, T),
|
|
220
|
-
})(), o.styles = [
|
|
211
|
+
w = [f(), m({ attribute: "title-content", reflect: !0, converter: W })], C = [G(), m()], A = [f(), m({ attribute: "accessibility-label" })], z = [f(), m({ attribute: "accessibility-back-label" })], _(o, null, w, { kind: "accessor", name: "titleContent", static: !1, private: !1, access: { has: (i) => "titleContent" in i, get: (i) => i.titleContent, set: (i, n) => {
|
|
212
|
+
i.titleContent = n;
|
|
213
|
+
} }, metadata: t }, k, E), _(o, null, C, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (i) => "trigger" in i, get: (i) => i.trigger, set: (i, n) => {
|
|
214
|
+
i.trigger = n;
|
|
215
|
+
} }, metadata: t }, x, L), _(o, null, A, { kind: "accessor", name: "accessibilityLabel", static: !1, private: !1, access: { has: (i) => "accessibilityLabel" in i, get: (i) => i.accessibilityLabel, set: (i, n) => {
|
|
216
|
+
i.accessibilityLabel = n;
|
|
217
|
+
} }, metadata: t }, S, B), _(o, null, z, { kind: "accessor", name: "accessibilityBackLabel", static: !1, private: !1, access: { has: (i) => "accessibilityBackLabel" in i, get: (i) => i.accessibilityBackLabel, set: (i, n) => {
|
|
218
|
+
i.accessibilityBackLabel = n;
|
|
219
|
+
} }, metadata: t }, N, T), _(null, s = { value: r }, e, { kind: "class", name: r.name, metadata: t }, null, a), r = s.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
220
|
+
})(), o.styles = [it, et], b(r, a), r;
|
|
221
221
|
})();
|
|
222
222
|
export {
|
|
223
223
|
yt as SbbNavigationSectionElement
|
|
@@ -26,18 +26,19 @@ export declare class SbbNotificationElement extends SbbNotificationElement_base
|
|
|
26
26
|
accessor size: 's' | 'm';
|
|
27
27
|
/** The enabled animations. */
|
|
28
28
|
accessor animation: 'open' | 'close' | 'all' | 'none';
|
|
29
|
-
/** The state of the
|
|
29
|
+
/** The state of the component. */
|
|
30
30
|
private set _state(value);
|
|
31
31
|
private get _state();
|
|
32
|
+
private _stateInternal;
|
|
32
33
|
private _notificationElement;
|
|
33
34
|
private _resizeObserverTimeout;
|
|
34
35
|
private _language;
|
|
35
36
|
private _notificationResizeObserver;
|
|
37
|
+
constructor();
|
|
36
38
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
37
39
|
private _open;
|
|
38
40
|
close(): void;
|
|
39
41
|
private _dispatchBeforeCloseEvent;
|
|
40
|
-
connectedCallback(): void;
|
|
41
42
|
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
42
43
|
private _isZeroAnimationDuration;
|
|
43
44
|
private _setNotificationHeight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.component.d.ts","sourceRoot":"","sources":["../../../src/elements/notification/notification.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAcb,OAAO,+BAA+B,CAAC;AACvC,OAAO,eAAe,CAAC;;AAYvB;;;;;;;;GAQG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;
|
|
1
|
+
{"version":3,"file":"notification.component.d.ts","sourceRoot":"","sources":["../../../src/elements/notification/notification.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAcb,OAAO,+BAA+B,CAAC;AACvC,OAAO,eAAe,CAAC;;AAYvB;;;;;;;;GAQG;AACH,qBAEM,sBAAuB,SAAQ,2BAEpC;IACC,OAAuB,MAAM,EAAE,cAAc,CAA4B;IACzE,gBAAuB,MAAM;;;;;MAKlB;IAEX,oCAAoC;IACpC,SAA6C,IAAI,EAC7C,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,CAAU;IAErB;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,8BAA8B;IAC9B,SAA6C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAS;IAElG,kCAAkC;IAClC,OAAO,KAAK,MAAM,QAQjB;IACD,OAAO,KAAK,MAAM,GAEjB;IACD,OAAO,CAAC,cAAc,CAAwB;IAE9C,OAAO,CAAC,oBAAoB,CAAe;IAC3C,OAAO,CAAC,sBAAsB,CAA8C;IAC5E,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,2BAA2B,CAIhC;;cAOgB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,KAAK;IAcN,KAAK,IAAI,IAAI;IAYpB,OAAO,CAAC,yBAAyB;cAKd,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAc9E,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,2BAA2B;IAUnC,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,eAAe;cAQJ,cAAc,IAAI,MAAM;cAIxB,MAAM,IAAI,cAAc;CA4B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var S = (o) => {
|
|
2
2
|
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (o, n, a) => (
|
|
6
|
-
import {
|
|
7
|
-
import { ResizeController as
|
|
8
|
-
import { css as
|
|
9
|
-
import { customElement as
|
|
10
|
-
import { SbbLanguageController as
|
|
4
|
+
var N = (o, n, a) => n.has(o) || S("Cannot " + a);
|
|
5
|
+
var h = (o, n, a) => (N(o, n, "read from private field"), a ? a.call(o) : n.get(o)), p = (o, n, a) => n.has(o) ? S("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(o) : n.set(o, a), r = (o, n, a, s) => (N(o, n, "write to private field"), s ? s.call(o, a) : n.set(o, a), a);
|
|
6
|
+
import { __esDecorate as m, __runInitializers as b } from "tslib";
|
|
7
|
+
import { ResizeController as T } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
+
import { css as $, LitElement as C, nothing as D, html as O } from "lit";
|
|
9
|
+
import { customElement as R, property as v } from "lit/decorators.js";
|
|
10
|
+
import { SbbLanguageController as A } from "../core/controllers.js";
|
|
11
11
|
import { isLean as H, isZeroAnimationDuration as M } from "../core/dom.js";
|
|
12
12
|
import { i18nCloseNotification as U } from "../core/i18n.js";
|
|
13
13
|
import { SbbReadonlyMixin as L, SbbElementInternalsMixin as Z } from "../core/mixins.js";
|
|
@@ -15,7 +15,7 @@ import { boxSizingStyles as B } from "../core/styles.js";
|
|
|
15
15
|
import { SbbIconNameMixin as j } from "../icon.js";
|
|
16
16
|
import "../button/secondary-button.js";
|
|
17
17
|
import "../divider.js";
|
|
18
|
-
const q =
|
|
18
|
+
const q = $`: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-radius: var(--sbb-border-radius-4x);--sbb-notification-border-radius: calc(var(--sbb-notification-base-radius) / 2) var(--sbb-notification-base-radius) var(--sbb-notification-base-radius) calc(var(--sbb-notification-base-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-radius) - var(--sbb-notification-border-width));width:calc(100% - (var(--sbb-notification-base-radius) - var(--sbb-notification-border-width)));border:var(--sbb-notification-border);border-radius:var(--sbb-notification-border-radius);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-radius) calc(var(--sbb-notification-border-width) * -1) calc(var(--sbb-notification-base-radius) * -1);background-color:var(--sbb-notification-type-color);border:var(--sbb-notification-border);border-radius:var(--sbb-notification-base-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);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}`, P = /* @__PURE__ */ new Map([
|
|
19
19
|
["info", "circle-information-small"],
|
|
20
20
|
["note", "circle-information-small"],
|
|
21
21
|
["success", "circle-tick-small"],
|
|
@@ -24,18 +24,18 @@ const q = I`:host{--sbb-notification-margin: 0;--sbb-notification-padding-block:
|
|
|
24
24
|
]), F = 150;
|
|
25
25
|
let si = (() => {
|
|
26
26
|
var c, l, d, e;
|
|
27
|
-
let o = [
|
|
27
|
+
let o = [R("sbb-notification")], n, a = [], s, g = j(L(Z(C))), _, u = [], y = [], x, z = [], w = [], k, E = [], I = [];
|
|
28
28
|
return e = class extends g {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(
|
|
30
|
+
super();
|
|
31
31
|
p(this, c);
|
|
32
32
|
p(this, l);
|
|
33
33
|
p(this, d);
|
|
34
|
-
r(this, c, b(this,
|
|
34
|
+
r(this, c, b(this, u, "info")), r(this, l, (b(this, y), b(this, z, H() ? "s" : "m"))), r(this, d, (b(this, w), b(this, E, "all"))), this._stateInternal = b(this, I), this._resizeObserverTimeout = null, this._language = new A(this), this._notificationResizeObserver = new T(this, {
|
|
35
35
|
target: null,
|
|
36
36
|
skipInitial: !0,
|
|
37
37
|
callback: () => this._onNotificationResize()
|
|
38
|
-
});
|
|
38
|
+
}), this._state = "closed";
|
|
39
39
|
}
|
|
40
40
|
/** The type of the notification. */
|
|
41
41
|
get type() {
|
|
@@ -61,12 +61,12 @@ let si = (() => {
|
|
|
61
61
|
set animation(i) {
|
|
62
62
|
r(this, d, i);
|
|
63
63
|
}
|
|
64
|
-
/** The state of the
|
|
64
|
+
/** The state of the component. */
|
|
65
65
|
set _state(i) {
|
|
66
|
-
this.
|
|
66
|
+
this._stateInternal && this.internals.states.delete(`state-${this._stateInternal}`), this._stateInternal = i, this._stateInternal && this.internals.states.add(`state-${this._stateInternal}`);
|
|
67
67
|
}
|
|
68
68
|
get _state() {
|
|
69
|
-
return this.
|
|
69
|
+
return this._stateInternal;
|
|
70
70
|
}
|
|
71
71
|
willUpdate(i) {
|
|
72
72
|
super.willUpdate(i), i.has("size") && this._configureTitle();
|
|
@@ -80,9 +80,6 @@ let si = (() => {
|
|
|
80
80
|
_dispatchBeforeCloseEvent() {
|
|
81
81
|
return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
|
|
82
82
|
}
|
|
83
|
-
connectedCallback() {
|
|
84
|
-
this._state ||= "closed", super.connectedCallback();
|
|
85
|
-
}
|
|
86
83
|
firstUpdated(i) {
|
|
87
84
|
super.firstUpdated(i), this._notificationElement = this.shadowRoot?.querySelector(".sbb-notification__wrapper"), this.updateComplete.then(() => {
|
|
88
85
|
this._setNotificationHeight(), this._open();
|
|
@@ -98,7 +95,7 @@ let si = (() => {
|
|
|
98
95
|
this.style.setProperty("--sbb-notification-height", i);
|
|
99
96
|
}
|
|
100
97
|
_onNotificationResize() {
|
|
101
|
-
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.
|
|
98
|
+
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"), F), setTimeout(() => this._setNotificationHeight()));
|
|
102
99
|
}
|
|
103
100
|
_onNotificationAnimationEnd(i) {
|
|
104
101
|
this._state === "opening" && i.animationName === "open" && this._handleOpening(), this._state === "closing" && i.animationName === "close-height" && this._handleClosing();
|
|
@@ -121,7 +118,7 @@ let si = (() => {
|
|
|
121
118
|
return super.renderIconName() || P.get(this.type);
|
|
122
119
|
}
|
|
123
120
|
render() {
|
|
124
|
-
return
|
|
121
|
+
return O`
|
|
125
122
|
<div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
|
|
126
123
|
<div class="sbb-notification">
|
|
127
124
|
${this.renderIconSlot("sbb-notification__icon")}
|
|
@@ -132,7 +129,7 @@ let si = (() => {
|
|
|
132
129
|
</p>
|
|
133
130
|
</span>
|
|
134
131
|
|
|
135
|
-
${this.readOnly ?
|
|
132
|
+
${this.readOnly ? D : O`<span class="sbb-notification__close-wrapper">
|
|
136
133
|
<sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
|
|
137
134
|
<sbb-secondary-button
|
|
138
135
|
size=${this.size}
|
|
@@ -148,13 +145,13 @@ let si = (() => {
|
|
|
148
145
|
}
|
|
149
146
|
}, c = new WeakMap(), l = new WeakMap(), d = new WeakMap(), s = e, (() => {
|
|
150
147
|
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
151
|
-
|
|
148
|
+
_ = [v({ reflect: !0 })], x = [v({ reflect: !0 })], k = [v({ reflect: !0 })], m(e, null, _, { kind: "accessor", name: "type", static: !1, private: !1, access: { has: (t) => "type" in t, get: (t) => t.type, set: (t, f) => {
|
|
152
149
|
t.type = f;
|
|
153
|
-
} }, metadata: i },
|
|
150
|
+
} }, metadata: i }, u, y), m(e, null, x, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, f) => {
|
|
154
151
|
t.size = f;
|
|
155
152
|
} }, metadata: i }, z, w), m(e, null, k, { kind: "accessor", name: "animation", static: !1, private: !1, access: { has: (t) => "animation" in t, get: (t) => t.animation, set: (t, f) => {
|
|
156
153
|
t.animation = f;
|
|
157
|
-
} }, metadata: i }, E,
|
|
154
|
+
} }, metadata: i }, E, I), m(null, n = { value: s }, o, { kind: "class", name: s.name, metadata: i }, null, a), s = n.value, i && Object.defineProperty(s, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
158
155
|
})(), e.styles = [B, q], e.events = {
|
|
159
156
|
beforeopen: "beforeopen",
|
|
160
157
|
open: "open",
|