@sbb-esta/lyne-elements 3.0.0-next.3 → 3.0.0
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 +10 -10
- package/alert/alert/alert.component.d.ts +4 -8
- package/alert/alert/alert.component.d.ts.map +1 -1
- package/alert/alert/alert.component.js +33 -33
- package/alert/alert-group/alert-group.component.d.ts +0 -3
- package/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/alert/alert-group/alert-group.component.js +44 -45
- package/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/autocomplete/autocomplete-base-element.js +9 -9
- package/autocomplete/autocomplete.component.d.ts +0 -4
- package/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/autocomplete/autocomplete.component.js +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +0 -4
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +11 -11
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +0 -10
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +14 -18
- package/button/accent-button/accent-button.component.d.ts +0 -1
- package/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/button/button/button.component.d.ts +0 -1
- package/button/button/button.component.d.ts.map +1 -1
- package/button/mini-button/mini-button.component.d.ts +0 -1
- package/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/button/secondary-button/secondary-button.component.d.ts +0 -1
- package/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/button/transparent-button/transparent-button.component.d.ts +0 -1
- package/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/calendar/calendar.component.d.ts +1 -5
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +68 -66
- package/card/card-button/card-button.component.d.ts +0 -1
- package/card/card-button/card-button.component.d.ts.map +1 -1
- package/checkbox/checkbox/checkbox.component.d.ts +2 -2
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -13
- package/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/checkbox/checkbox-panel/checkbox-panel.component.js +37 -39
- package/chip/chip/chip.component.d.ts +2 -3
- package/chip/chip/chip.component.d.ts.map +1 -1
- package/chip/chip/chip.component.js +31 -30
- package/chip/chip-group/chip-group.component.d.ts +4 -12
- package/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/chip/chip-group/chip-group.component.js +52 -46
- package/container/sticky-bar/sticky-bar.component.d.ts +6 -12
- package/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/container/sticky-bar/sticky-bar.component.js +49 -49
- package/core/base-elements/open-close-base-element.d.ts +12 -22
- package/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/core/base-elements/open-close-base-element.js +23 -17
- package/core/eventing.d.ts +0 -1
- package/core/eventing.d.ts.map +1 -1
- package/core/eventing.js +10 -12
- package/core/interfaces/types.d.ts +0 -5
- package/core/interfaces/types.d.ts.map +1 -1
- package/core/interfaces.d.ts +0 -1
- package/core/interfaces.d.ts.map +1 -1
- package/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/core/mixins/disabled-mixin.js +43 -40
- package/core/mixins/panel-mixin.d.ts.map +1 -1
- package/core/mixins/panel-mixin.js +35 -38
- package/core/mixins/readonly-mixin.d.ts.map +1 -1
- package/core/mixins/readonly-mixin.js +25 -19
- package/custom-elements.json +17450 -16552
- package/date-input/date-input.component.d.ts +0 -1
- package/date-input/date-input.component.d.ts.map +1 -1
- package/datepicker/datepicker/datepicker.component.d.ts +0 -6
- package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/datepicker/datepicker/datepicker.component.js +9 -9
- package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +0 -1
- package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +0 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
- package/development/accordion/accordion.component.js +3 -3
- package/development/alert/alert/alert.component.d.ts +4 -8
- package/development/alert/alert/alert.component.d.ts.map +1 -1
- package/development/alert/alert/alert.component.js +11 -9
- package/development/alert/alert-group/alert-group.component.d.ts +0 -3
- package/development/alert/alert-group/alert-group.component.d.ts.map +1 -1
- package/development/alert/alert-group/alert-group.component.js +14 -18
- package/development/autocomplete/autocomplete-base-element.d.ts.map +1 -1
- package/development/autocomplete/autocomplete-base-element.js +5 -8
- package/development/autocomplete/autocomplete.component.d.ts +0 -4
- package/development/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/development/autocomplete/autocomplete.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts +0 -4
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +2 -2
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +0 -10
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.js +5 -9
- package/development/button/accent-button/accent-button.component.d.ts +0 -1
- package/development/button/accent-button/accent-button.component.d.ts.map +1 -1
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/button/button.component.d.ts +0 -1
- package/development/button/button/button.component.d.ts.map +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/mini-button/mini-button.component.d.ts +0 -1
- package/development/button/mini-button/mini-button.component.d.ts.map +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/secondary-button/secondary-button.component.d.ts +0 -1
- package/development/button/secondary-button/secondary-button.component.d.ts.map +1 -1
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.d.ts +0 -1
- package/development/button/transparent-button/transparent-button.component.d.ts.map +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/calendar/calendar.component.d.ts +1 -5
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +11 -9
- package/development/card/card-button/card-button.component.d.ts +0 -1
- package/development/card/card-button/card-button.component.d.ts.map +1 -1
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/checkbox/checkbox/checkbox.component.d.ts +2 -2
- package/development/checkbox/checkbox/checkbox.component.js +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts +3 -13
- package/development/checkbox/checkbox-panel/checkbox-panel.component.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +14 -17
- package/development/chip/chip/chip.component.d.ts +2 -3
- package/development/chip/chip/chip.component.d.ts.map +1 -1
- package/development/chip/chip/chip.component.js +11 -10
- package/development/chip/chip-group/chip-group.component.d.ts +4 -12
- package/development/chip/chip-group/chip-group.component.d.ts.map +1 -1
- package/development/chip/chip-group/chip-group.component.js +20 -16
- package/development/container/sticky-bar/sticky-bar.component.d.ts +6 -12
- package/development/container/sticky-bar/sticky-bar.component.d.ts.map +1 -1
- package/development/container/sticky-bar/sticky-bar.component.js +20 -22
- package/development/core/base-elements/open-close-base-element.d.ts +12 -22
- package/development/core/base-elements/open-close-base-element.d.ts.map +1 -1
- package/development/core/base-elements/open-close-base-element.js +17 -15
- package/development/core/eventing.d.ts +0 -1
- package/development/core/eventing.d.ts.map +1 -1
- package/development/core/eventing.js +1 -3
- package/development/core/interfaces/types.d.ts +0 -5
- package/development/core/interfaces/types.d.ts.map +1 -1
- package/development/core/interfaces.d.ts +0 -1
- package/development/core/interfaces.d.ts.map +1 -1
- package/development/core/mixins/disabled-mixin.d.ts.map +1 -1
- package/development/core/mixins/disabled-mixin.js +20 -17
- package/development/core/mixins/panel-mixin.d.ts.map +1 -1
- package/development/core/mixins/panel-mixin.js +8 -14
- package/development/core/mixins/readonly-mixin.d.ts.map +1 -1
- package/development/core/mixins/readonly-mixin.js +17 -9
- package/development/date-input/date-input.component.d.ts +0 -1
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +1 -1
- package/development/datepicker/datepicker/datepicker.component.d.ts +0 -6
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.js +3 -3
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +0 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.js +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +0 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +1 -1
- package/development/dialog/dialog/dialog.component.d.ts +0 -4
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +3 -3
- package/development/dialog/dialog-title/dialog-title.component.js +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -16
- package/development/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +15 -20
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -5
- 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 +7 -11
- package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/development/file-selector/common/file-selector-common.js +16 -7
- package/development/file-selector/file-selector/file-selector.component.d.ts +1 -5
- package/development/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
- package/development/file-selector/file-selector/file-selector.component.js +2 -2
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -5
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +2 -2
- package/development/flip-card/flip-card/flip-card.component.d.ts +0 -4
- package/development/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +7 -9
- package/development/form-field/form-field/form-field.component.js +2 -2
- package/development/form-field/form-field-clear/form-field-clear.component.d.ts +0 -1
- package/development/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
- package/development/form-field/form-field-clear/form-field-clear.component.js +1 -1
- package/development/header/header-button/header-button.component.d.ts +0 -1
- package/development/header/header-button/header-button.component.d.ts.map +1 -1
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/image/image.component.d.ts +0 -2
- package/development/image/image.component.d.ts.map +1 -1
- package/development/image/image.component.js +4 -2
- package/development/journey-header/journey-header.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.d.ts +0 -1
- package/development/link/block-link-button/block-link-button.component.d.ts.map +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/link-button/link-button.component.d.ts +0 -1
- package/development/link/link-button/link-button.component.d.ts.map +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/menu/menu/menu.component.d.ts +0 -4
- package/development/menu/menu/menu.component.d.ts.map +1 -1
- package/development/menu/menu/menu.component.js +5 -8
- package/development/menu/menu-button/menu-button.component.d.ts +0 -1
- package/development/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/navigation/navigation/navigation.component.d.ts +0 -4
- package/development/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/development/navigation/navigation/navigation.component.js +5 -8
- package/development/navigation/navigation-button/navigation-button.component.d.ts +0 -1
- package/development/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/notification/notification.component.d.ts +5 -16
- package/development/notification/notification.component.d.ts.map +1 -1
- package/development/notification/notification.component.js +16 -18
- package/development/option/option/option-base-element.d.ts +8 -3
- package/development/option/option/option-base-element.d.ts.map +1 -1
- package/development/option/option/option-base-element.js +5 -4
- package/development/option/option/option.component.d.ts +3 -11
- package/development/option/option/option.component.d.ts.map +1 -1
- package/development/option/option/option.component.js +8 -11
- package/development/overlay/overlay-base-element.d.ts +2 -3
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +10 -5
- package/development/overlay/overlay.component.d.ts +4 -8
- package/development/overlay/overlay.component.d.ts.map +1 -1
- package/development/overlay/overlay.component.js +7 -7
- package/development/paginator/common/paginator-common.d.ts.map +1 -1
- package/development/paginator/common/paginator-common.js +12 -10
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts +0 -2
- package/development/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.d.ts +0 -2
- package/development/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/development/paginator/paginator/paginator.component.js +1 -1
- package/development/popover/popover/popover.component.d.ts +6 -14
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +16 -8
- package/development/popover/popover-trigger/popover-trigger.component.d.ts +0 -1
- package/development/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/radio-button/radio-button/radio-button.component.d.ts +3 -3
- package/development/radio-button/radio-button/radio-button.component.js +2 -2
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -6
- 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 +7 -8
- package/development/radio-button/radio-button-panel/radio-button-panel.component.d.ts +3 -10
- 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 +11 -12
- package/development/select/select.component.d.ts +6 -19
- package/development/select/select.component.d.ts.map +1 -1
- package/development/select/select.component.js +31 -44
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts +6 -13
- package/development/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +16 -21
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +0 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.d.ts +0 -4
- package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +5 -5
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
- package/development/sidebar/sidebar-close-button/sidebar-close-button.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +1 -1
- package/development/slider/slider.component.d.ts +2 -7
- package/development/slider/slider.component.d.ts.map +1 -1
- package/development/slider/slider.component.js +10 -14
- package/development/stepper/step/step.component.d.ts +2 -10
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +13 -11
- package/development/stepper/step-label/step-label.component.d.ts +0 -1
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/development/stepper/step-label/step-label.component.js +1 -1
- package/development/stepper/stepper/stepper.component.js +2 -2
- package/development/tabs/tab-group/tab-group.component.d.ts +1 -4
- package/development/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/development/tabs/tab-group/tab-group.component.js +21 -18
- package/development/tag/tag/tag.component.d.ts +0 -9
- package/development/tag/tag/tag.component.d.ts.map +1 -1
- package/development/tag/tag/tag.component.js +11 -19
- package/development/time-input/time-input.component.d.ts +0 -1
- package/development/time-input/time-input.component.d.ts.map +1 -1
- package/development/time-input/time-input.component.js +1 -1
- package/development/toast/toast.component.d.ts +0 -4
- package/development/toast/toast.component.d.ts.map +1 -1
- package/development/toast/toast.component.js +5 -5
- package/development/toggle/toggle/toggle.component.d.ts +0 -3
- package/development/toggle/toggle/toggle.component.d.ts.map +1 -1
- package/development/toggle/toggle/toggle.component.js +6 -11
- package/development/toggle-check/toggle-check.component.d.ts +2 -2
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.d.ts +1 -6
- package/development/train/train/train.component.d.ts.map +1 -1
- package/development/train/train/train.component.js +7 -12
- package/development/train/train-formation/train-formation.component.js +3 -3
- package/development/train/train-wagon/train-wagon.component.d.ts +1 -6
- package/development/train/train-wagon/train-wagon.component.d.ts.map +1 -1
- package/development/train/train-wagon/train-wagon.component.js +7 -12
- package/dialog/dialog/dialog.component.d.ts +0 -4
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +2 -2
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts +4 -16
- package/expansion-panel/expansion-panel/expansion-panel.component.d.ts.map +1 -1
- package/expansion-panel/expansion-panel/expansion-panel.component.js +48 -50
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.d.ts +1 -5
- 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 +26 -30
- package/file-selector/common/file-selector-common.d.ts.map +1 -1
- package/file-selector/common/file-selector-common.js +47 -37
- package/file-selector/file-selector/file-selector.component.d.ts +1 -5
- package/file-selector/file-selector/file-selector.component.d.ts.map +1 -1
- package/file-selector/file-selector/file-selector.component.js +3 -3
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts +1 -5
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
- package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +5 -5
- package/flip-card/flip-card/flip-card.component.d.ts +0 -4
- package/flip-card/flip-card/flip-card.component.d.ts.map +1 -1
- package/flip-card/flip-card/flip-card.component.js +35 -37
- package/form-field/form-field/form-field.component.js +1 -1
- package/form-field/form-field-clear/form-field-clear.component.d.ts +0 -1
- package/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
- package/header/header-button/header-button.component.d.ts +0 -1
- package/header/header-button/header-button.component.d.ts.map +1 -1
- package/image/image.component.d.ts +0 -2
- package/image/image.component.d.ts.map +1 -1
- package/link/block-link-button/block-link-button.component.d.ts +0 -1
- package/link/block-link-button/block-link-button.component.d.ts.map +1 -1
- package/link/link-button/link-button.component.d.ts +0 -1
- package/link/link-button/link-button.component.d.ts.map +1 -1
- package/menu/menu/menu.component.d.ts +0 -4
- package/menu/menu/menu.component.d.ts.map +1 -1
- package/menu/menu/menu.component.js +8 -8
- package/menu/menu-button/menu-button.component.d.ts +0 -1
- package/menu/menu-button/menu-button.component.d.ts.map +1 -1
- package/navigation/navigation/navigation.component.d.ts +0 -4
- package/navigation/navigation/navigation.component.d.ts.map +1 -1
- package/navigation/navigation/navigation.component.js +17 -17
- package/navigation/navigation-button/navigation-button.component.d.ts +0 -1
- package/navigation/navigation-button/navigation-button.component.d.ts.map +1 -1
- package/notification/notification.component.d.ts +5 -16
- package/notification/notification.component.d.ts.map +1 -1
- package/notification/notification.component.js +54 -53
- package/option/option/option-base-element.d.ts +8 -3
- package/option/option/option-base-element.d.ts.map +1 -1
- package/option/option/option-base-element.js +22 -20
- package/option/option/option.component.d.ts +3 -11
- package/option/option/option.component.d.ts.map +1 -1
- package/option/option/option.component.js +23 -25
- package/overlay/overlay-base-element.d.ts +2 -3
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay-base-element.js +42 -37
- package/overlay/overlay.component.d.ts +4 -8
- package/overlay/overlay.component.d.ts.map +1 -1
- package/overlay/overlay.component.js +11 -11
- package/package.json +1 -1
- package/paginator/common/paginator-common.d.ts.map +1 -1
- package/paginator/common/paginator-common.js +37 -34
- package/paginator/compact-paginator/compact-paginator.component.d.ts +0 -2
- package/paginator/compact-paginator/compact-paginator.component.d.ts.map +1 -1
- package/paginator/paginator/paginator.component.d.ts +0 -2
- package/paginator/paginator/paginator.component.d.ts.map +1 -1
- package/popover/popover/popover.component.d.ts +6 -14
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +76 -67
- package/popover/popover-trigger/popover-trigger.component.d.ts +0 -1
- package/popover/popover-trigger/popover-trigger.component.d.ts.map +1 -1
- package/radio-button/radio-button/radio-button.component.d.ts +3 -3
- package/radio-button/radio-button/radio-button.component.js +10 -10
- package/radio-button/radio-button-group/radio-button-group.component.d.ts +0 -6
- 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 +24 -26
- package/radio-button/radio-button-panel/radio-button-panel.component.d.ts +3 -10
- 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 +39 -40
- package/select/select.component.d.ts +6 -19
- package/select/select.component.d.ts.map +1 -1
- package/select/select.component.js +99 -101
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts +6 -13
- package/selection-expansion-panel/selection-expansion-panel.component.d.ts.map +1 -1
- package/selection-expansion-panel/selection-expansion-panel.component.js +49 -51
- package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts +0 -1
- package/sidebar/icon-sidebar-button/icon-sidebar-button.component.d.ts.map +1 -1
- package/sidebar/sidebar/sidebar.component.d.ts +0 -4
- package/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
- package/sidebar/sidebar/sidebar.component.js +28 -28
- package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts +0 -1
- package/sidebar/sidebar-close-button/sidebar-close-button.component.d.ts.map +1 -1
- package/slider/slider.component.d.ts +2 -7
- package/slider/slider.component.d.ts.map +1 -1
- package/slider/slider.component.js +38 -43
- package/stepper/step/step.component.d.ts +2 -10
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/step/step.component.js +26 -23
- package/stepper/step-label/step-label.component.d.ts +0 -1
- package/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/stepper/stepper/stepper.component.js +6 -6
- package/tabs/tab-group/tab-group.component.d.ts +1 -4
- package/tabs/tab-group/tab-group.component.d.ts.map +1 -1
- package/tabs/tab-group/tab-group.component.js +55 -52
- package/tag/tag/tag.component.d.ts +0 -9
- package/tag/tag/tag.component.d.ts.map +1 -1
- package/tag/tag/tag.component.js +34 -40
- package/time-input/time-input.component.d.ts +0 -1
- package/time-input/time-input.component.d.ts.map +1 -1
- package/toast/toast.component.d.ts +0 -4
- package/toast/toast.component.d.ts.map +1 -1
- package/toast/toast.component.js +19 -19
- package/toggle/toggle/toggle.component.d.ts +0 -3
- package/toggle/toggle/toggle.component.d.ts.map +1 -1
- package/toggle/toggle/toggle.component.js +35 -40
- package/toggle-check/toggle-check.component.d.ts +2 -2
- package/train/train/train.component.d.ts +1 -6
- package/train/train/train.component.d.ts.map +1 -1
- package/train/train/train.component.js +33 -38
- package/train/train-formation/train-formation.component.js +1 -1
- package/train/train-wagon/train-wagon.component.d.ts +1 -6
- package/train/train-wagon/train-wagon.component.d.ts.map +1 -1
- package/train/train-wagon/train-wagon.component.js +48 -53
- package/core/eventing/event-emitter.d.ts +0 -23
- package/core/eventing/event-emitter.d.ts.map +0 -1
- package/core/eventing/event-emitter.js +0 -22
- package/core/interfaces/validation-change.d.ts +0 -4
- package/core/interfaces/validation-change.d.ts.map +0 -1
- package/development/core/eventing/event-emitter.d.ts +0 -23
- package/development/core/eventing/event-emitter.d.ts.map +0 -1
- package/development/core/eventing/event-emitter.js +0 -25
- package/development/core/interfaces/validation-change.d.ts +0 -4
- package/development/core/interfaces/validation-change.d.ts.map +0 -1
|
@@ -4,8 +4,8 @@ var C = (i) => {
|
|
|
4
4
|
var A = (i, s, r) => s.has(i) || C("Cannot " + r);
|
|
5
5
|
var u = (i, s, r) => (A(i, s, "read from private field"), r ? r.call(i) : s.get(i)), g = (i, s, r) => s.has(i) ? C("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, r), d = (i, s, r, n) => (A(i, s, "write to private field"), n ? n.call(i, r) : s.set(i, r), r);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as m } from "tslib";
|
|
7
|
-
import { css as T, isServer as
|
|
8
|
-
import { customElement as
|
|
7
|
+
import { css as T, isServer as B, html as L } from "lit";
|
|
8
|
+
import { customElement as N, property as S } from "lit/decorators.js";
|
|
9
9
|
import { ref as I } from "lit/directives/ref.js";
|
|
10
10
|
import { SbbFocusTrapController as P, isArrowKeyOrPageKeysPressed as M, interactivityChecker as D, getNextElementIndex as U } from "../../core/a11y.js";
|
|
11
11
|
import { SbbOpenCloseBaseElement as z } from "../../core/base-elements.js";
|
|
@@ -27,7 +27,7 @@ const G = T`*,:before,:after{box-sizing:border-box}:host{display:contents;--sbb-
|
|
|
27
27
|
];
|
|
28
28
|
let ee = 0, ge = (() => {
|
|
29
29
|
var l, b, o;
|
|
30
|
-
let i = [
|
|
30
|
+
let i = [N("sbb-menu")], s, r = [], n, v = j(z), f, w = [], y = [], k, x = [], E = [];
|
|
31
31
|
return o = class extends v {
|
|
32
32
|
constructor() {
|
|
33
33
|
super();
|
|
@@ -68,25 +68,25 @@ let ee = 0, ge = (() => {
|
|
|
68
68
|
* Opens the menu on trigger click.
|
|
69
69
|
*/
|
|
70
70
|
open() {
|
|
71
|
-
this.state === "closing" || !this._menu || this.
|
|
71
|
+
this.state === "closing" || !this._menu || this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._setMenuPosition(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._mediaMatcher.matches(_) && this._scrollHandler.disableScroll(), this._isZeroAnimationDuration() && this._handleOpening());
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Closes the menu.
|
|
75
75
|
*/
|
|
76
76
|
close() {
|
|
77
|
-
this.state
|
|
77
|
+
this.state === "opening" || !this.dispatchBeforeCloseEvent() || (this.state = "closing", this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
|
|
78
78
|
}
|
|
79
79
|
_isZeroAnimationDuration() {
|
|
80
80
|
return Z(this, "--sbb-menu-animation-duration");
|
|
81
81
|
}
|
|
82
82
|
_handleOpening() {
|
|
83
|
-
this.state = "opened", this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this._attachWindowEvents(), this.
|
|
83
|
+
this.state = "opened", this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this._attachWindowEvents(), this.dispatchOpenEvent();
|
|
84
84
|
}
|
|
85
85
|
_handleClosing() {
|
|
86
86
|
this.state = "closed", this.hidePopover?.(), this._menu?.firstElementChild?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus({
|
|
87
87
|
// When inside the sbb-header, we prevent the scroll to avoid the snapping to the top of the page
|
|
88
88
|
preventScroll: this._triggerElement.localName === "sbb-header-button" || this._triggerElement.localName === "sbb-header-link"
|
|
89
|
-
}), this._escapableOverlayController.disconnect(), this.
|
|
89
|
+
}), this._escapableOverlayController.disconnect(), this.dispatchCloseEvent(), this._windowEventsController?.abort(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll();
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Handles click and checks if its target is a sbb-menu-button/sbb-menu-link.
|
|
@@ -136,7 +136,7 @@ let ee = 0, ge = (() => {
|
|
|
136
136
|
super.disconnectedCallback(), this._triggerElement = null, this._triggerAbortController?.abort(), this._windowEventsController?.abort(), this._scrollHandler.enableScroll();
|
|
137
137
|
}
|
|
138
138
|
requestUpdate(e, t, a) {
|
|
139
|
-
super.requestUpdate(e, t, a), !
|
|
139
|
+
super.requestUpdate(e, t, a), !B && (!e || e === "trigger") && this.hasUpdated && this._configureTrigger();
|
|
140
140
|
}
|
|
141
141
|
firstUpdated(e) {
|
|
142
142
|
super.firstUpdated(e), this._configureTrigger();
|
|
@@ -7,7 +7,6 @@ declare const SbbMenuButtonElement_base: import('../../core/mixins.js').Abstract
|
|
|
7
7
|
* @slot icon - Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.
|
|
8
8
|
* @cssprop [--sbb-menu-action-outer-horizontal-padding=var(--sbb-spacing-fixed-3x)] - Can be used
|
|
9
9
|
* to modify horizontal padding.
|
|
10
|
-
* @overrideType value - string
|
|
11
10
|
*/
|
|
12
11
|
export declare class SbbMenuButtonElement extends SbbMenuButtonElement_base {
|
|
13
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu-button/menu-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE
|
|
1
|
+
{"version":3,"file":"menu-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/menu/menu-button/menu-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAInE;;;;;;;GAOG;AACH,qBAEM,oBAAqB,SAAQ,yBAElC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -6,10 +6,6 @@ declare const SbbNavigationElement_base: import('../../core/mixins.js').Abstract
|
|
|
6
6
|
* It displays a navigation menu, wrapping one or more `sbb-navigation-*` components.
|
|
7
7
|
*
|
|
8
8
|
* @slot - Use the unnamed slot to add `sbb-navigation-button`/`sbb-navigation-link` elements into the sbb-navigation menu.
|
|
9
|
-
* @event {CustomEvent<void>} willOpen - Emits whenever the `sbb-navigation` begins the opening transition. Can be canceled.
|
|
10
|
-
* @event {CustomEvent<void>} didOpen - Emits whenever the `sbb-navigation` is opened.
|
|
11
|
-
* @event {CustomEvent<void>} willClose - Emits whenever the `sbb-navigation` begins the closing transition. Can be canceled.
|
|
12
|
-
* @event {CustomEvent<void>} didClose - Emits whenever the `sbb-navigation` is closed.
|
|
13
9
|
* @cssprop [--sbb-navigation-z-index=var(--sbb-overlay-default-z-index)] - To specify a custom stack order,
|
|
14
10
|
* the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the
|
|
15
11
|
* component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation/navigation.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAiBtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAI5E,OAAO,oCAAoC,CAAC;;AAW5C
|
|
1
|
+
{"version":3,"file":"navigation.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation/navigation.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAiBtE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAI5E,OAAO,oCAAoC,CAAC;;AAW5C;;;;;;;GAOG;AACH,qBAEM,oBAAqB,SAAQ,yBAAgD;IACjF,gBAAgC,IAAI,gBAAgB;IACpD,OAAuB,MAAM,EAAE,cAAc,CAAS;IAEtD;;;;OAIG;IACH,SAEgB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,wEAAwE;IACxE,SAEgB,uBAAuB,EAAE,MAAM,CAAM;IAErD,iDAAiD;IACxC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA4C;IAE9F,qDAAqD;IACrD,IAAW,uBAAuB,IAAI,2BAA2B,GAAG,IAAI,CAEvE;IAED,wCAAwC;IACxC,IAAW,WAAW,IAAI,WAAW,GAAG,IAAI,CAE3C;IAED,8CAA8C;IAC9C,IAAW,iBAAiB,IAAI,WAAW,GAAG,IAAI,CAEjD;IAED,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,eAAe,CAA4B;IACnD,OAAO,CAAC,uBAAuB,CAAmB;IAClD,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,2BAA2B,CAA2C;IAC9E,OAAO,CAAC,oBAAoB,CAAoC;IAChE,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,+BAA+B,CAAkB;IACzD,OAAO,CAAC,sBAAsB,CAA8C;IAC5E,OAAO,CAAC,yBAAyB,CAG9B;;IAkBH,4BAA4B;IACrB,IAAI,IAAI,IAAI;IAyBnB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAO3B,6BAA6B;IACtB,KAAK,IAAI,IAAI;IAgBpB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,oBAAoB,CAS1B;IAGF,OAAO,CAAC,qBAAqB,CAI3B;IAGF,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,mBAAmB;IAkBX,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAO5B,aAAa,CAC3B,IAAI,CAAC,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;cAQY,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAK3D,MAAM,IAAI,cAAc;CAkC5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,gBAAgB,EAAE,oBAAoB,CAAC;KACxC;CACF"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A = (a) => {
|
|
2
2
|
throw TypeError(a);
|
|
3
3
|
};
|
|
4
|
-
var N = (a, n, e) => n.has(a) ||
|
|
5
|
-
var d = (a, n, e) => (N(a, n, "read from private field"), e ? e.call(a) : n.get(a)), h = (a, n, e) => n.has(a) ?
|
|
4
|
+
var N = (a, n, e) => n.has(a) || A("Cannot " + e);
|
|
5
|
+
var d = (a, n, e) => (N(a, n, "read from private field"), e ? e.call(a) : n.get(a)), h = (a, n, e) => n.has(a) ? A("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(a) : n.set(a, e), b = (a, n, e, r) => (N(a, n, "write to private field"), r ? r.call(a, e) : n.set(a, e), e);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as l } from "tslib";
|
|
7
7
|
import { MutationController as T } from "@lit-labs/observers/mutation-controller.js";
|
|
8
8
|
import { ResizeController as L } from "@lit-labs/observers/resize-controller.js";
|
|
9
9
|
import { css as I, isServer as D, html as O } from "lit";
|
|
10
10
|
import { customElement as U, property as z, state as q } from "lit/decorators.js";
|
|
11
|
-
import { ref as
|
|
12
|
-
import { SbbFocusTrapController as
|
|
13
|
-
import { SbbOpenCloseBaseElement as
|
|
11
|
+
import { ref as B } from "lit/directives/ref.js";
|
|
12
|
+
import { SbbFocusTrapController as R } from "../../core/a11y.js";
|
|
13
|
+
import { SbbOpenCloseBaseElement as P } from "../../core/base-elements.js";
|
|
14
14
|
import { SbbLanguageController as H, SbbInertController as M, SbbEscapableOverlayController as X } from "../../core/controllers.js";
|
|
15
15
|
import { idReference as $, forceType as Z } from "../../core/decorators.js";
|
|
16
16
|
import { SbbScrollHandler as j, isZeroAnimationDuration as F } from "../../core/dom.js";
|
|
@@ -26,14 +26,14 @@ let Y = 0;
|
|
|
26
26
|
const tt = 150;
|
|
27
27
|
let _t = (() => {
|
|
28
28
|
var c, v, g, o;
|
|
29
|
-
let a = [U("sbb-navigation")], n, e = [], r, u = V(
|
|
29
|
+
let a = [U("sbb-navigation")], n, e = [], r, u = V(P), _, f = [], k = [], y, w = [], C = [], x, S = [], E = [];
|
|
30
30
|
return o = class extends u {
|
|
31
31
|
constructor() {
|
|
32
32
|
super();
|
|
33
33
|
h(this, c);
|
|
34
34
|
h(this, v);
|
|
35
35
|
h(this, g);
|
|
36
|
-
b(this, c, l(this, f, null)), b(this, v, (l(this, k), l(this,
|
|
36
|
+
b(this, c, l(this, f, null)), b(this, v, (l(this, k), l(this, w, ""))), b(this, g, (l(this, C), l(this, S, null))), this._navigation = l(this, E), this._triggerElement = null, this._language = new H(this), this._inertController = new M(this), this._escapableOverlayController = new X(this), this._focusTrapController = new R(this), this._scrollHandler = new j(), this._isPointerDownEventOnNavigation = !1, this._resizeObserverTimeout = null, this._navigationResizeObserver = new L(this, {
|
|
37
37
|
skipInitial: !0,
|
|
38
38
|
callback: () => this._onNavigationResize()
|
|
39
39
|
}), this._pointerDownListener = (t) => {
|
|
@@ -85,7 +85,7 @@ let _t = (() => {
|
|
|
85
85
|
}
|
|
86
86
|
/** Opens the navigation. */
|
|
87
87
|
open() {
|
|
88
|
-
this.state !== "closed" || !this.hasUpdated || this.
|
|
88
|
+
this.state !== "closed" || !this.hasUpdated || this.dispatchBeforeOpenEvent() && (this.showPopover?.(), this.state = "opening", this._checkActiveActions(), this._checkActiveSection(), this.startUpdate(), this._scrollHandler.disableScroll(), this._triggerElement?.setAttribute("aria-expanded", "true"), this._isZeroAnimationDuration() && this._handleOpening());
|
|
89
89
|
}
|
|
90
90
|
_checkActiveSection() {
|
|
91
91
|
this.querySelector("sbb-navigation-button.sbb-active")?.connectedSection?.open();
|
|
@@ -95,16 +95,16 @@ let _t = (() => {
|
|
|
95
95
|
}
|
|
96
96
|
/** Closes the navigation. */
|
|
97
97
|
close() {
|
|
98
|
-
this.state
|
|
98
|
+
this.state !== "opened" || !this.dispatchBeforeCloseEvent() || (this.state = "closing", this.startUpdate(), this._triggerElement?.setAttribute("aria-expanded", "false"), this._isZeroAnimationDuration() && this._handleClosing());
|
|
99
99
|
}
|
|
100
100
|
_isZeroAnimationDuration() {
|
|
101
101
|
return F(this, "--sbb-navigation-animation-duration");
|
|
102
102
|
}
|
|
103
103
|
_handleClosing() {
|
|
104
|
-
this.state = "closed", this.hidePopover?.(), this.navigationContent?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus(), this._escapableOverlayController.disconnect(), this.
|
|
104
|
+
this.state = "closed", this.hidePopover?.(), this.navigationContent?.scrollTo(0, 0), this._inertController.deactivate(), this._triggerElement?.focus(), this._escapableOverlayController.disconnect(), this.dispatchCloseEvent(), this._navigationResizeObserver.unobserve(this), this._resetMarkers(), this._focusTrapController.enabled = !1, this._scrollHandler.enableScroll(), this.completeUpdate();
|
|
105
105
|
}
|
|
106
106
|
_handleOpening() {
|
|
107
|
-
this.state = "opened", this._navigationResizeObserver.observe(this), this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this.completeUpdate(), this.
|
|
107
|
+
this.state = "opened", this._navigationResizeObserver.observe(this), this._inertController.activate(), this._escapableOverlayController.connect(), this._focusTrapController.focusInitialElement(), this._focusTrapController.enabled = !0, this.completeUpdate(), this.dispatchOpenEvent();
|
|
108
108
|
}
|
|
109
109
|
// Removes trigger click listener on trigger change.
|
|
110
110
|
// Check if the trigger is valid and attach click event listeners.
|
|
@@ -167,7 +167,7 @@ let _t = (() => {
|
|
|
167
167
|
id="sbb-navigation-overlay"
|
|
168
168
|
@animationend=${this._onAnimationEnd}
|
|
169
169
|
class="sbb-navigation"
|
|
170
|
-
${
|
|
170
|
+
${B((i) => this._navigation = i)}
|
|
171
171
|
>
|
|
172
172
|
<div class="sbb-navigation__header">${t}</div>
|
|
173
173
|
<div class="sbb-navigation__wrapper">
|
|
@@ -182,13 +182,13 @@ let _t = (() => {
|
|
|
182
182
|
}
|
|
183
183
|
}, c = new WeakMap(), v = new WeakMap(), g = new WeakMap(), r = o, (() => {
|
|
184
184
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(u[Symbol.metadata] ?? null) : void 0;
|
|
185
|
-
_ = [$(), z()],
|
|
185
|
+
_ = [$(), z()], y = [Z(), z({ attribute: "accessibility-close-label" })], x = [q()], p(o, null, _, { kind: "accessor", name: "trigger", static: !1, private: !1, access: { has: (i) => "trigger" in i, get: (i) => i.trigger, set: (i, s) => {
|
|
186
186
|
i.trigger = s;
|
|
187
|
-
} }, metadata: t }, f, k), p(o, null,
|
|
187
|
+
} }, metadata: t }, f, k), p(o, null, y, { kind: "accessor", name: "accessibilityCloseLabel", static: !1, private: !1, access: { has: (i) => "accessibilityCloseLabel" in i, get: (i) => i.accessibilityCloseLabel, set: (i, s) => {
|
|
188
188
|
i.accessibilityCloseLabel = s;
|
|
189
|
-
} }, metadata: t },
|
|
189
|
+
} }, metadata: t }, w, C), p(o, null, x, { kind: "accessor", name: "_activeNavigationSection", static: !1, private: !1, access: { has: (i) => "_activeNavigationSection" in i, get: (i) => i._activeNavigationSection, set: (i, s) => {
|
|
190
190
|
i._activeNavigationSection = s;
|
|
191
|
-
} }, metadata: t }, S,
|
|
191
|
+
} }, metadata: t }, S, E), p(null, n = { value: r }, a, { kind: "class", name: r.name, metadata: t }, null, e), r = n.value, t && Object.defineProperty(r, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
192
192
|
})(), o.role = "navigation", o.styles = Q, l(r, e), r;
|
|
193
193
|
})();
|
|
194
194
|
export {
|
|
@@ -4,7 +4,6 @@ declare const SbbNavigationButtonElement_base: import('../../core/mixins.js').Ab
|
|
|
4
4
|
* It displays a button element that can be used in the `sbb-navigation` component.
|
|
5
5
|
*
|
|
6
6
|
* @slot - Use the unnamed slot to add content to the `sbb-navigation-button`.
|
|
7
|
-
* @overrideType value - string
|
|
8
7
|
*/
|
|
9
8
|
export declare class SbbNavigationButtonElement extends SbbNavigationButtonElement_base {
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation-button/navigation-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE
|
|
1
|
+
{"version":3,"file":"navigation-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/navigation/navigation-button/navigation-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE;;;;GAIG;AACH,qBAEM,0BAA2B,SAAQ,+BAExC;CAAG;AAEJ,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,uBAAuB,EAAE,0BAA0B,CAAC;KACrD;CACF"}
|
|
@@ -5,20 +5,16 @@ declare const SbbNotificationElement_base: import('../core/mixins.js').AbstractC
|
|
|
5
5
|
*
|
|
6
6
|
* @slot - Use the unnamed slot to add content to the `sbb-notification`. Content should consist of an optional `sbb-title` element and text content.
|
|
7
7
|
* @slot title - Slot for the title. For the standard `sbb-title` element, the slot is automatically assigned when slotted in the unnamed slot.
|
|
8
|
-
* @event {CustomEvent<void>} willOpen - Emits when the opening animation starts.
|
|
9
|
-
* @event {CustomEvent<void>} didOpen - Emits when the opening animation ends.
|
|
10
|
-
* @event {CustomEvent<void>} willClose - Emits when the closing animation starts. Can be canceled.
|
|
11
|
-
* @event {CustomEvent<void>} didClose - Emits when the closing animation ends.
|
|
12
8
|
* @cssprop [--sbb-notification-margin=0] - Can be used to modify the margin in order to get a smoother animation.
|
|
13
9
|
* See style section for more information.
|
|
14
10
|
*/
|
|
15
11
|
export declare class SbbNotificationElement extends SbbNotificationElement_base {
|
|
16
12
|
static styles: CSSResultGroup;
|
|
17
13
|
static readonly events: {
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
14
|
+
readonly beforeopen: "beforeopen";
|
|
15
|
+
readonly open: "open";
|
|
16
|
+
readonly beforeclose: "beforeclose";
|
|
17
|
+
readonly close: "close";
|
|
22
18
|
};
|
|
23
19
|
/** The type of the notification. */
|
|
24
20
|
accessor type: 'info' | 'success' | 'warn' | 'error';
|
|
@@ -36,17 +32,10 @@ export declare class SbbNotificationElement extends SbbNotificationElement_base
|
|
|
36
32
|
private _resizeObserverTimeout;
|
|
37
33
|
private _language;
|
|
38
34
|
private _notificationResizeObserver;
|
|
39
|
-
/** Emits whenever the `sbb-notification` starts the opening transition. */
|
|
40
|
-
private _willOpen;
|
|
41
|
-
/** Emits whenever the `sbb-notification` is opened. */
|
|
42
|
-
private _didOpen;
|
|
43
|
-
/** Emits whenever the `sbb-notification` begins the closing transition. */
|
|
44
|
-
private _willClose;
|
|
45
|
-
/** Emits whenever the `sbb-notification` is closed. */
|
|
46
|
-
private _didClose;
|
|
47
35
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
48
36
|
private _open;
|
|
49
37
|
close(): void;
|
|
38
|
+
private _dispatchBeforeCloseEvent;
|
|
50
39
|
connectedCallback(): void;
|
|
51
40
|
protected firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
52
41
|
private _isZeroAnimationDuration;
|
|
@@ -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;
|
|
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;AAYb,OAAO,+BAA+B,CAAC;AACvC,OAAO,eAAe,CAAC;AACvB,OAAO,YAAY,CAAC;;AAWpB;;;;;;;GAOG;AACH,qBAEM,sBAAuB,SAAQ,2BAA4B;IAE/D,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;;;;MAKlB;IAEX,oCAAoC;IACpC,SAA6C,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAU;IAElG;;;OAGG;IACH,SAA6C,IAAI,EAAE,GAAG,GAAG,GAAG,CAAwB;IAEpF,8BAA8B;IAC9B,SAA6C,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAS;IAElG,qCAAqC;IACrC,OAAO,KAAK,MAAM,QAEjB;IACD,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,CAAC,oBAAoB,CAAe;IAC3C,OAAO,CAAC,sBAAsB,CAA8C;IAC5E,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,2BAA2B,CAIhC;cAEgB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAQ5E,OAAO,CAAC,KAAK;IAcN,KAAK,IAAI,IAAI;IAYpB,OAAO,CAAC,yBAAyB;IAKjB,iBAAiB,IAAI,IAAI;cAMtB,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,MAAM,IAAI,cAAc;CA+B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF"}
|
|
@@ -1,64 +1,63 @@
|
|
|
1
1
|
var T = (o) => {
|
|
2
2
|
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as b, __esDecorate as
|
|
7
|
-
import { ResizeController as
|
|
8
|
-
import { css as
|
|
9
|
-
import { customElement as
|
|
10
|
-
import { SbbLanguageController as
|
|
11
|
-
import { isLean as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { SbbReadonlyMixin as j } from "../core/mixins.js";
|
|
4
|
+
var N = (o, n, a) => n.has(o) || T("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) ? T("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 { __runInitializers as b, __esDecorate as m } from "tslib";
|
|
7
|
+
import { ResizeController as S } from "@lit-labs/observers/resize-controller.js";
|
|
8
|
+
import { css as A, LitElement as $, nothing as D, html as C } from "lit";
|
|
9
|
+
import { customElement as R, property as g } from "lit/decorators.js";
|
|
10
|
+
import { SbbLanguageController as I } from "../core/controllers.js";
|
|
11
|
+
import { isLean as H, isZeroAnimationDuration as U } from "../core/dom.js";
|
|
12
|
+
import { i18nCloseNotification as L } from "../core/i18n.js";
|
|
13
|
+
import { SbbReadonlyMixin as Z } from "../core/mixins.js";
|
|
15
14
|
import "../button/secondary-button.js";
|
|
16
15
|
import "../divider.js";
|
|
17
16
|
import "../icon.js";
|
|
18
|
-
const
|
|
17
|
+
const B = A`*,:before,:after{box-sizing:border-box}: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-charcoal);--sbb-notification-icon-color: var(--sbb-notification-type-color);--sbb-notification-icon-margin-block-start: 0;--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-body-text);--sbb-focus-outline-color: var(--sbb-focus-outline-color-default);display:block}:host([data-state=opening]:not([animation=open],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-state=closing]:not([animation=close],[animation=all])){--sbb-disable-animation-duration: 0s}:host([data-resize-disable-animation]){--sbb-disable-animation-duration: 0s}:host([type=info]){--sbb-notification-type-color: var(--sbb-color-smoke);--sbb-notification-type-color-sass: rgb(249.3, 249.3, 249.3);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=success]){--sbb-notification-type-color: var(--sbb-color-green);--sbb-notification-type-color-sass: rgb(242.25, 249.15, 244.95)}:host([type=warn]){--sbb-notification-type-color: var(--sbb-color-peach);--sbb-notification-type-color-sass: rgb(254.85, 251.6, 242.25);--sbb-notification-icon-color: var(--sbb-notification-color)}:host([type=error]){--sbb-notification-type-color: var(--sbb-color-red);--sbb-notification-type-color-sass: rgb(254, 242.25, 242.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([data-state=opened],[data-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([data-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([data-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-font-size-text-s);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-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-type-color-sass)}@supports (background-color: color-mix(in srgb,transparent 5%,white)){.sbb-notification{background-color:color-mix(in srgb,var(--sbb-notification-type-color) 5%,white)}}@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-font-size-text-xs);font-family:var(--sbb-typo-font-family);font-weight:400;line-height:var(--sbb-typo-line-height-body-text);letter-spacing:var(--sbb-typo-letter-spacing-body-text);font-size:var(--sbb-text-font-size)}.sbb-notification__icon{color:var(--sbb-notification-icon-color);--sbb-icon-svg-width: var(--sbb-notification-icon-size)}@media (min-width: 37.5rem){.sbb-notification__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{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: var(--sbb-notification-type-color);display:none;position:relative;inset-inline-start:var(--sbb-border-width-1x);opacity:.2}@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([
|
|
19
18
|
["info", "circle-information-small"],
|
|
20
19
|
["success", "circle-tick-small"],
|
|
21
20
|
["warn", "circle-exclamation-point-small"],
|
|
22
21
|
["error", "circle-cross-small"]
|
|
23
|
-
]),
|
|
24
|
-
let
|
|
25
|
-
var l, d,
|
|
26
|
-
let o = [
|
|
27
|
-
|
|
22
|
+
]), j = 150;
|
|
23
|
+
let oi = (() => {
|
|
24
|
+
var c, l, d, e;
|
|
25
|
+
let o = [R("sbb-notification")], n, a = [], s, v = Z($), _, u = [], y = [], x, z = [], w = [], k, E = [], O = [];
|
|
26
|
+
return e = class extends v {
|
|
28
27
|
constructor() {
|
|
29
28
|
super(...arguments);
|
|
29
|
+
p(this, c);
|
|
30
30
|
p(this, l);
|
|
31
31
|
p(this, d);
|
|
32
|
-
|
|
33
|
-
r(this, l, b(this, x, "info")), r(this, d, (b(this, w), b(this, k, L() ? "s" : "m"))), r(this, f, (b(this, O), b(this, E, "all"))), this._notificationElement = b(this, N), this._resizeObserverTimeout = null, this._language = new U(this), this._notificationResizeObserver = new $(this, {
|
|
32
|
+
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._notificationElement = b(this, O), this._resizeObserverTimeout = null, this._language = new I(this), this._notificationResizeObserver = new S(this, {
|
|
34
33
|
target: null,
|
|
35
34
|
skipInitial: !0,
|
|
36
35
|
callback: () => this._onNotificationResize()
|
|
37
|
-
})
|
|
36
|
+
});
|
|
38
37
|
}
|
|
39
38
|
/** The type of the notification. */
|
|
40
39
|
get type() {
|
|
41
|
-
return
|
|
40
|
+
return h(this, c);
|
|
42
41
|
}
|
|
43
42
|
set type(i) {
|
|
44
|
-
r(this,
|
|
43
|
+
r(this, c, i);
|
|
45
44
|
}
|
|
46
45
|
/**
|
|
47
46
|
* Size variant, either s or m.
|
|
48
47
|
* @default 'm' / 's' (lean)
|
|
49
48
|
*/
|
|
50
49
|
get size() {
|
|
51
|
-
return
|
|
50
|
+
return h(this, l);
|
|
52
51
|
}
|
|
53
52
|
set size(i) {
|
|
54
|
-
r(this,
|
|
53
|
+
r(this, l, i);
|
|
55
54
|
}
|
|
56
55
|
/** The enabled animations. */
|
|
57
56
|
get animation() {
|
|
58
|
-
return
|
|
57
|
+
return h(this, d);
|
|
59
58
|
}
|
|
60
59
|
set animation(i) {
|
|
61
|
-
r(this,
|
|
60
|
+
r(this, d, i);
|
|
62
61
|
}
|
|
63
62
|
/** The state of the notification. */
|
|
64
63
|
set _state(i) {
|
|
@@ -71,10 +70,13 @@ let ei = (() => {
|
|
|
71
70
|
super.willUpdate(i), i.has("size") && this._configureTitle();
|
|
72
71
|
}
|
|
73
72
|
_open() {
|
|
74
|
-
this._state === "closed" && (this._state = "opening", this.
|
|
73
|
+
this._state === "closed" && (this._state = "opening", this.dispatchEvent(new Event("beforeopen")), this._isZeroAnimationDuration() && this._handleOpening());
|
|
75
74
|
}
|
|
76
75
|
close() {
|
|
77
|
-
this._state === "opened" && this.
|
|
76
|
+
this._state === "opened" && this._dispatchBeforeCloseEvent() && (this._state = "closing", this._isZeroAnimationDuration() && this._handleClosing());
|
|
77
|
+
}
|
|
78
|
+
_dispatchBeforeCloseEvent() {
|
|
79
|
+
return this.dispatchEvent(new Event("beforeclose", { cancelable: !0 }));
|
|
78
80
|
}
|
|
79
81
|
connectedCallback() {
|
|
80
82
|
this._state ||= "closed", super.connectedCallback();
|
|
@@ -85,7 +87,7 @@ let ei = (() => {
|
|
|
85
87
|
});
|
|
86
88
|
}
|
|
87
89
|
_isZeroAnimationDuration() {
|
|
88
|
-
return
|
|
90
|
+
return U(this, "--sbb-notification-animation-duration");
|
|
89
91
|
}
|
|
90
92
|
_setNotificationHeight() {
|
|
91
93
|
if (!this._notificationElement?.scrollHeight)
|
|
@@ -94,16 +96,16 @@ let ei = (() => {
|
|
|
94
96
|
this.style.setProperty("--sbb-notification-height", i);
|
|
95
97
|
}
|
|
96
98
|
_onNotificationResize() {
|
|
97
|
-
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"),
|
|
99
|
+
this._state === "opened" && (this._resizeObserverTimeout && clearTimeout(this._resizeObserverTimeout), this.toggleAttribute("data-resize-disable-animation", !0), this._resizeObserverTimeout = setTimeout(() => this.removeAttribute("data-resize-disable-animation"), j), setTimeout(() => this._setNotificationHeight()));
|
|
98
100
|
}
|
|
99
101
|
_onNotificationAnimationEnd(i) {
|
|
100
102
|
this._state === "opening" && i.animationName === "open" && this._handleOpening(), this._state === "closing" && i.animationName === "close-height" && this._handleClosing();
|
|
101
103
|
}
|
|
102
104
|
_handleOpening() {
|
|
103
|
-
this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.
|
|
105
|
+
this._state = "opened", this._notificationResizeObserver.observe(this._notificationElement), this.dispatchEvent(new Event("open"));
|
|
104
106
|
}
|
|
105
107
|
_handleClosing() {
|
|
106
|
-
this._state = "closed", this.
|
|
108
|
+
this._state = "closed", this.dispatchEvent(new Event("close")), this._notificationResizeObserver.unobserve(this._notificationElement), setTimeout(() => this.remove());
|
|
107
109
|
}
|
|
108
110
|
_handleSlotchange() {
|
|
109
111
|
const i = Array.from(this.children).find((t) => t.localName === "sbb-title");
|
|
@@ -114,12 +116,12 @@ let ei = (() => {
|
|
|
114
116
|
i && (customElements.upgrade(i), i.visualLevel = this.size === "m" ? "5" : "6");
|
|
115
117
|
}
|
|
116
118
|
render() {
|
|
117
|
-
return
|
|
119
|
+
return C`
|
|
118
120
|
<div class="sbb-notification__wrapper" @animationend=${this._onNotificationAnimationEnd}>
|
|
119
121
|
<div class="sbb-notification">
|
|
120
122
|
<sbb-icon
|
|
121
123
|
class="sbb-notification__icon"
|
|
122
|
-
name=${
|
|
124
|
+
name=${M.get(this.type)}
|
|
123
125
|
></sbb-icon>
|
|
124
126
|
<span class="sbb-notification__content">
|
|
125
127
|
<slot name="title" @slotchange=${this._configureTitle}></slot>
|
|
@@ -128,13 +130,13 @@ let ei = (() => {
|
|
|
128
130
|
</p>
|
|
129
131
|
</span>
|
|
130
132
|
|
|
131
|
-
${this.readOnly ?
|
|
133
|
+
${this.readOnly ? D : C`<span class="sbb-notification__close-wrapper">
|
|
132
134
|
<sbb-divider class="sbb-notification__divider" orientation="vertical"></sbb-divider>
|
|
133
135
|
<sbb-secondary-button
|
|
134
136
|
size=${this.size}
|
|
135
137
|
icon-name="cross-small"
|
|
136
138
|
@click=${() => this.close()}
|
|
137
|
-
aria-label=${
|
|
139
|
+
aria-label=${L[this._language.current]}
|
|
138
140
|
class="sbb-notification__close"
|
|
139
141
|
></sbb-secondary-button>
|
|
140
142
|
</span>`}
|
|
@@ -142,23 +144,22 @@ let ei = (() => {
|
|
|
142
144
|
</div>
|
|
143
145
|
`;
|
|
144
146
|
}
|
|
145
|
-
},
|
|
146
|
-
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
147
|
-
|
|
148
|
-
t.type =
|
|
149
|
-
} }, metadata: i },
|
|
150
|
-
t.size =
|
|
151
|
-
} }, metadata: i },
|
|
152
|
-
t.animation =
|
|
153
|
-
} }, metadata: i }, E,
|
|
154
|
-
})(), e.styles =
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}, b(s, a),
|
|
160
|
-
return c = s;
|
|
147
|
+
}, c = new WeakMap(), l = new WeakMap(), d = new WeakMap(), s = e, (() => {
|
|
148
|
+
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(v[Symbol.metadata] ?? null) : void 0;
|
|
149
|
+
_ = [g({ reflect: !0 })], x = [g({ reflect: !0 })], k = [g({ 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) => {
|
|
150
|
+
t.type = f;
|
|
151
|
+
} }, 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) => {
|
|
152
|
+
t.size = f;
|
|
153
|
+
} }, 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) => {
|
|
154
|
+
t.animation = f;
|
|
155
|
+
} }, metadata: i }, E, O), 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 });
|
|
156
|
+
})(), e.styles = B, e.events = {
|
|
157
|
+
beforeopen: "beforeopen",
|
|
158
|
+
open: "open",
|
|
159
|
+
beforeclose: "beforeclose",
|
|
160
|
+
close: "close"
|
|
161
|
+
}, b(s, a), s;
|
|
161
162
|
})();
|
|
162
163
|
export {
|
|
163
|
-
|
|
164
|
+
oi as SbbNotificationElement
|
|
164
165
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { LitElement, nothing, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
-
import { EventEmitter } from '../../core/eventing.js';
|
|
3
2
|
declare const SbbOptionBaseElement_base: import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbDisabledMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../icon.js').SbbIconNameMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbElementInternalsMixinType> & import('../../core/mixins.js').AbstractConstructor<import('../../core/mixins.js').SbbHydrationMixinType> & typeof LitElement & import('../../core/mixins.js').SbbElementInternalsConstructor;
|
|
4
3
|
export declare abstract class SbbOptionBaseElement<T = string> extends SbbOptionBaseElement_base {
|
|
4
|
+
static readonly events: {
|
|
5
|
+
readonly optionselected: "optionselected";
|
|
6
|
+
};
|
|
5
7
|
protected abstract optionId: string;
|
|
6
8
|
/**
|
|
7
9
|
* Value of the option.
|
|
@@ -15,8 +17,6 @@ export declare abstract class SbbOptionBaseElement<T = string> extends SbbOption
|
|
|
15
17
|
/** Whether the option is selected. */
|
|
16
18
|
set selected(value: boolean);
|
|
17
19
|
get selected(): boolean;
|
|
18
|
-
/** Emits when an option was selected by user. */
|
|
19
|
-
protected abstract optionSelected: EventEmitter;
|
|
20
20
|
/** Whether to apply the negative styling */
|
|
21
21
|
protected accessor negative: boolean;
|
|
22
22
|
/** Whether the component must be set disabled due disabled attribute on sbb-optgroup. */
|
|
@@ -59,5 +59,10 @@ export declare abstract class SbbOptionBaseElement<T = string> extends SbbOption
|
|
|
59
59
|
protected renderTick(): TemplateResult | typeof nothing;
|
|
60
60
|
protected render(): TemplateResult;
|
|
61
61
|
}
|
|
62
|
+
declare global {
|
|
63
|
+
interface GlobalEventHandlersEventMap {
|
|
64
|
+
optionselected: CustomEvent<void>;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
62
67
|
export {};
|
|
63
68
|
//# sourceMappingURL=option-base-element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option/option-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"option-base-element.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option/option-base-element.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAY1F,OAAO,6BAA6B,CAAC;;AAoBrC,8BAEe,oBAAoB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,yBAEvD;IACC,gBAAuB,MAAM;;MAElB;IAEX,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAEpC;;;;;OAKG;IACH,IACW,KAAK,CAAC,KAAK,EAAE,CAAC,EAOxB;IACD,IAAW,KAAK,IAAI,CAAC,CAEpB;IACD,OAAO,CAAC,MAAM,CAAkB;IAEhC,sCAAsC;IACtC,IACW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAGjC;IACD,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,4CAA4C;IACnC,SAAS,CAAC,QAAQ,CAAC,QAAQ,UAAS;IAE7C,yFAAyF;IAChF,SAAS,CAAC,QAAQ,CAAC,iBAAiB,UAAS;IAE7C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IAE3C,0CAA0C;IACjC,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAS;IAEnE,4CAA4C;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAuB;IAExD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;;IAwBnC,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,IAAI;IAMP;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIrC,SAAS,CAAC,wBAAwB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAQ3C,iBAAiB,IAAI,IAAI;cAUtB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cASzD,YAAY,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAO9E,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IACzD,SAAS,CAAC,QAAQ,CAAC,sBAAsB,IAAI,IAAI;IAEjD,SAAS,CAAC,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAKzD;;;OAGG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAItC,SAAS,CAAC,IAAI,IAAI,IAAI;IAItB,SAAS,CAAC,kBAAkB,IAAI,IAAI;IAQpC,OAAO,CAAC,mBAAmB;IAI3B,2FAA2F;IAC3F,SAAS,CAAC,kBAAkB,CAAC,aAAa,EAAE,cAAc,EAAE,GAAG,IAAI;IAoBnE,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAuBtC,SAAS,CAAC,mBAAmB,IAAI,cAAc;IAwB/C,SAAS,CAAC,UAAU,IAAI,cAAc;IAItC,SAAS,CAAC,WAAW,IAAI,cAAc,GAAG,OAAO,OAAO;IAIxD,SAAS,CAAC,UAAU,IAAI,cAAc,GAAG,OAAO,OAAO;cAIpC,MAAM,IAAI,cAAc;CAmB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;KACnC;CACF"}
|