@sbb-esta/lyne-elements 3.0.0-next.2 → 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 +17460 -16560
- 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 +3 -12
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +25 -26
- package/development/stepper/step-label/step-label.component.d.ts +1 -3
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/development/stepper/step-label/step-label.component.js +13 -16
- 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 +3 -12
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/step/step.component.js +34 -34
- package/stepper/step-label/step-label.component.d.ts +1 -3
- package/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/stepper/step-label/step-label.component.js +15 -18
- 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
|
@@ -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,4CA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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"}
|
|
@@ -2,7 +2,7 @@ var P = (s) => {
|
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
4
|
var V = (s, a, n) => a.has(s) || P("Cannot " + n);
|
|
5
|
-
var g = (s, a, n) => (V(s, a, "read from private field"), n ? n.call(s) : a.get(s)),
|
|
5
|
+
var g = (s, a, n) => (V(s, a, "read from private field"), n ? n.call(s) : a.get(s)), c = (s, a, n) => a.has(s) ? P("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(s) : a.set(s, n), h = (s, a, n, o) => (V(s, a, "write to private field"), o ? o.call(s, n) : a.set(s, n), n);
|
|
6
6
|
import { __esDecorate as d, __runInitializers as r } from "tslib";
|
|
7
7
|
import { MutationController as K } from "@lit-labs/observers/mutation-controller.js";
|
|
8
8
|
import { LitElement as Q, html as v, nothing as G } from "lit";
|
|
@@ -21,18 +21,18 @@ const x = Y, rt = {
|
|
|
21
21
|
characterData: !0
|
|
22
22
|
};
|
|
23
23
|
let ft = (() => {
|
|
24
|
-
var
|
|
25
|
-
let s = [W()], a, n = [], o, L = et(at(it(st(Q)))), S = [], y, H, k,
|
|
24
|
+
var b, u, _, p, m, f, l;
|
|
25
|
+
let s = [W()], a, n = [], o, L = et(at(it(st(Q)))), S = [], y, H, k, E = [], I = [], C, $ = [], z = [], F, D = [], N = [], w, M = [], O = [], T, U = [], j = [], B, R = [], q = [];
|
|
26
26
|
return l = class extends L {
|
|
27
27
|
constructor() {
|
|
28
28
|
super();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this._value = (r(this, S), null), h(this,
|
|
29
|
+
c(this, b);
|
|
30
|
+
c(this, u);
|
|
31
|
+
c(this, _);
|
|
32
|
+
c(this, p);
|
|
33
|
+
c(this, m);
|
|
34
|
+
c(this, f);
|
|
35
|
+
this._value = (r(this, S), null), h(this, b, r(this, E, !1)), h(this, u, (r(this, I), r(this, $, !1))), h(this, _, (r(this, z), r(this, D, void 0))), h(this, p, (r(this, N), r(this, M, !1))), h(this, m, (r(this, O), r(this, U, null))), h(this, f, (r(this, j), r(this, R, !1))), r(this, q), this.addEventListener?.("click", (t) => this.selectByClick(t), {
|
|
36
36
|
passive: !0
|
|
37
37
|
}), this.addController(new K(this, {
|
|
38
38
|
config: rt,
|
|
@@ -60,10 +60,10 @@ let ft = (() => {
|
|
|
60
60
|
}
|
|
61
61
|
/** Whether to apply the negative styling */
|
|
62
62
|
get negative() {
|
|
63
|
-
return g(this,
|
|
63
|
+
return g(this, b);
|
|
64
64
|
}
|
|
65
65
|
set negative(t) {
|
|
66
|
-
h(this,
|
|
66
|
+
h(this, b, t);
|
|
67
67
|
}
|
|
68
68
|
/** Whether the component must be set disabled due disabled attribute on sbb-optgroup. */
|
|
69
69
|
get disabledFromGroup() {
|
|
@@ -110,7 +110,7 @@ let ft = (() => {
|
|
|
110
110
|
this._highlightString = t;
|
|
111
111
|
}
|
|
112
112
|
selectViaUserInteraction(t) {
|
|
113
|
-
this.selected = t, this.selected && this.
|
|
113
|
+
this.selected = t, this.selected && this.dispatchEvent(new Event("optionselected", { bubbles: !0, composed: !0 }));
|
|
114
114
|
}
|
|
115
115
|
connectedCallback() {
|
|
116
116
|
super.connectedCallback(), this.id ||= `${this.optionId}-${lt++}`, this.hydrationRequired ? this.hydrationComplete.then(() => this.init()) : this.init();
|
|
@@ -193,26 +193,28 @@ let ft = (() => {
|
|
|
193
193
|
</div>
|
|
194
194
|
`;
|
|
195
195
|
}
|
|
196
|
-
},
|
|
196
|
+
}, b = new WeakMap(), u = new WeakMap(), _ = new WeakMap(), p = new WeakMap(), m = new WeakMap(), f = new WeakMap(), o = l, (() => {
|
|
197
197
|
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(L[Symbol.metadata] ?? null) : void 0;
|
|
198
|
-
y = [X()], H = [X({ type: Boolean })], k = [A()],
|
|
198
|
+
y = [X()], H = [X({ type: Boolean })], k = [A()], C = [A()], F = [A()], w = [A()], T = [A()], B = [A()], d(l, null, y, { kind: "setter", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, set: (e, i) => {
|
|
199
199
|
e.value = i;
|
|
200
200
|
} }, metadata: t }, null, S), d(l, null, H, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (e) => "selected" in e, set: (e, i) => {
|
|
201
201
|
e.selected = i;
|
|
202
202
|
} }, metadata: t }, null, S), d(l, null, k, { kind: "accessor", name: "negative", static: !1, private: !1, access: { has: (e) => "negative" in e, get: (e) => e.negative, set: (e, i) => {
|
|
203
203
|
e.negative = i;
|
|
204
|
-
} }, metadata: t },
|
|
204
|
+
} }, metadata: t }, E, I), d(l, null, C, { kind: "accessor", name: "disabledFromGroup", static: !1, private: !1, access: { has: (e) => "disabledFromGroup" in e, get: (e) => e.disabledFromGroup, set: (e, i) => {
|
|
205
205
|
e.disabledFromGroup = i;
|
|
206
206
|
} }, metadata: t }, $, z), d(l, null, F, { kind: "accessor", name: "label", static: !1, private: !1, access: { has: (e) => "label" in e, get: (e) => e.label, set: (e, i) => {
|
|
207
207
|
e.label = i;
|
|
208
|
-
} }, metadata: t }, D, N), d(l, null,
|
|
208
|
+
} }, metadata: t }, D, N), d(l, null, w, { kind: "accessor", name: "disableLabelHighlight", static: !1, private: !1, access: { has: (e) => "disableLabelHighlight" in e, get: (e) => e.disableLabelHighlight, set: (e, i) => {
|
|
209
209
|
e.disableLabelHighlight = i;
|
|
210
|
-
} }, metadata: t },
|
|
210
|
+
} }, metadata: t }, M, O), d(l, null, T, { kind: "accessor", name: "_highlightString", static: !1, private: !1, access: { has: (e) => "_highlightString" in e, get: (e) => e._highlightString, set: (e, i) => {
|
|
211
211
|
e._highlightString = i;
|
|
212
212
|
} }, metadata: t }, U, j), d(l, null, B, { kind: "accessor", name: "_inertAriaGroups", static: !1, private: !1, access: { has: (e) => "_inertAriaGroups" in e, get: (e) => e._inertAriaGroups, set: (e, i) => {
|
|
213
213
|
e._inertAriaGroups = i;
|
|
214
|
-
} }, metadata: t }, R, q), d(null, a = { value: o }, s, { kind: "class", name: o.name, metadata: t }, null, n), o = a.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t })
|
|
215
|
-
})(),
|
|
214
|
+
} }, metadata: t }, R, q), d(null, a = { value: o }, s, { kind: "class", name: o.name, metadata: t }, null, n), o = a.value, t && Object.defineProperty(o, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
215
|
+
})(), l.events = {
|
|
216
|
+
optionselected: "optionselected"
|
|
217
|
+
}, r(o, n), o;
|
|
216
218
|
})();
|
|
217
219
|
export {
|
|
218
220
|
ft as SbbOptionBaseElement
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CSSResultGroup, TemplateResult, nothing } from 'lit';
|
|
2
|
-
import { EventEmitter } from '../../core/eventing.js';
|
|
3
2
|
import { SbbOptionBaseElement } from './option-base-element.js';
|
|
4
3
|
export type SbbOptionVariant = 'autocomplete' | 'select' | null;
|
|
5
4
|
/**
|
|
@@ -7,8 +6,6 @@ export type SbbOptionVariant = 'autocomplete' | 'select' | null;
|
|
|
7
6
|
*
|
|
8
7
|
* @slot - Use the unnamed slot to add content to the option label.
|
|
9
8
|
* @slot icon - Use this slot to provide an icon. If `icon-name` is set, a sbb-icon will be used.
|
|
10
|
-
* @event {CustomEvent<void>} optionSelectionChange - Emits when the option selection status changes.
|
|
11
|
-
* @event {CustomEvent<void>} optionSelected - Emits when an option was selected by user.
|
|
12
9
|
* @cssprop [--sbb-option-icon-container-display=none] - Can be used to reserve space even
|
|
13
10
|
* when preserve-icon-space on autocomplete is not set or iconName is not set.
|
|
14
11
|
* @overrideType value - (T = string) | null
|
|
@@ -17,14 +14,10 @@ export declare class SbbOptionElement<T = string> extends SbbOptionBaseElement<T
|
|
|
17
14
|
static readonly role = "option";
|
|
18
15
|
static styles: CSSResultGroup;
|
|
19
16
|
static readonly events: {
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
17
|
+
readonly optionselectionchange: "optionselectionchange";
|
|
18
|
+
readonly optionselected: "optionselected";
|
|
22
19
|
};
|
|
23
20
|
protected optionId: string;
|
|
24
|
-
/** Emits when the option selection status changes. */
|
|
25
|
-
protected selectionChange: EventEmitter;
|
|
26
|
-
/** Emits when an option was selected by user. */
|
|
27
|
-
protected optionSelected: EventEmitter;
|
|
28
21
|
private set _variant(value);
|
|
29
22
|
private get _variant();
|
|
30
23
|
private set _isMultiple(value);
|
|
@@ -44,8 +37,7 @@ declare global {
|
|
|
44
37
|
'sbb-option': SbbOptionElement;
|
|
45
38
|
}
|
|
46
39
|
interface GlobalEventHandlersEventMap {
|
|
47
|
-
|
|
48
|
-
optionSelected: CustomEvent<void>;
|
|
40
|
+
optionselectionchange: CustomEvent<void>;
|
|
49
41
|
}
|
|
50
42
|
}
|
|
51
43
|
//# sourceMappingURL=option.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option/option.component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"option.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/option/option/option.component.ts"],"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3
|
-
import { customElement as
|
|
4
|
-
import {
|
|
5
|
-
import { SbbOptionBaseElement as g } from "./option-base-element.js";
|
|
1
|
+
import { __esDecorate as l, __runInitializers as c } from "tslib";
|
|
2
|
+
import { css as d, nothing as e, html as s } from "lit";
|
|
3
|
+
import { customElement as p } from "lit/decorators.js";
|
|
4
|
+
import { SbbOptionBaseElement as u } from "./option-base-element.js";
|
|
6
5
|
import "../../visual-checkbox.js";
|
|
7
|
-
const
|
|
8
|
-
let
|
|
6
|
+
const h = d`*,:before,:after{box-sizing:border-box}:host{--sbb-option-color: var(--sbb-color-charcoal);--sbb-option-background-color: inherit;--sbb-option-background-color-hover: var(--sbb-color-milk);--sbb-option-background-color-active: var(--sbb-color-cloud);--sbb-option-disabled-border-color: var(--sbb-color-graphite);--sbb-option-disabled-background-color: var(--sbb-color-milk);--sbb-option-padding-inline: var(--sbb-spacing-responsive-xxxs);--sbb-option-min-height: var(--sbb-size-element-s);--sbb-option-column-gap: var(--sbb-spacing-responsive-xxxs);--sbb-option-justify-content: start;--sbb-option-cursor: pointer;--sbb-option-border-radius: var(--sbb-border-radius-4x);--sbb-option-icon-color: var(--sbb-color-metal);--sbb-option-focus-outline-color: transparent;--sbb-option-focus-outline-inset: var(--sbb-spacing-fixed-1x);display:block}:host([data-negative]){--sbb-option-color: var(--sbb-color-milk);--sbb-option-icon-color: var(--sbb-color-smoke);--sbb-option-background-color-hover: var(--sbb-color-charcoal);--sbb-option-background-color-active: var(--sbb-color-iron);--sbb-option-disabled-border-color: var(--sbb-color-smoke);--sbb-option-disabled-background-color: var(--sbb-color-charcoal);--sbb-focus-outline-color: var(--sbb-focus-outline-color-dark)}@media (any-hover: hover){:host(:hover:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-hover)}}:host(:active:not([disabled],[data-group-disabled])){--sbb-option-background-color: var(--sbb-option-background-color-active)}:host(:not([data-disable-highlight])) .sbb-option__label slot{display:none}:host(:is([data-group-disabled],[disabled])){--sbb-option-cursor: default}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled])){--sbb-option-color: GrayText}}:host([data-variant=select]){--sbb-option-column-gap: var(--sbb-spacing-fixed-2x);--sbb-option-justify-content: space-between}:host([data-variant=select][data-multiple]){--sbb-option-justify-content: start}:host([data-active]){--sbb-option-focus-outline-color: var(--sbb-focus-outline-color)}:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{font-weight:700}@media (forced-colors: active){:host(:not(:is([disabled],[data-group-disabled]))) .sbb-option__label--highlight{color:Highlight}}.sbb-option__container{background-color:var(--sbb-option-background-color)}.sbb-option{--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:flex;min-height:var(--sbb-option-min-height);align-items:center;column-gap:var(--sbb-option-column-gap);padding-inline:var(--sbb-option-padding-inline);justify-content:var(--sbb-option-justify-content);color:var(--sbb-option-color);cursor:var(--sbb-option-cursor);-webkit-tap-highlight-color:transparent;-webkit-text-fill-color:var(--sbb-option-color)}.sbb-option:after{content:"";display:block;position:absolute;inset:var(--sbb-option-focus-outline-inset);pointer-events:none;border:var(--sbb-focus-outline-width) solid var(--sbb-option-focus-outline-color);border-radius:var(--sbb-option-border-radius)}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option{position:relative;z-index:0}:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{content:"";display:block;position:absolute;inset:.375rem;border:var(--sbb-border-width-1x) dashed var(--sbb-option-disabled-border-color);border-radius:var(--sbb-border-radius-2x);background-color:var(--sbb-option-disabled-background-color);z-index:-1}@media (forced-colors: active){:host(:is([data-group-disabled],[disabled]):not([data-multiple])) .sbb-option:before{border-color:GrayText}}.sbb-option__icon{display:flex;min-width:var(--sbb-size-icon-ui-small);min-height:var(--sbb-size-icon-ui-small);color:var(--sbb-option-icon-color)}:host(:not([data-slot-names~=icon],[icon-name])) .sbb-option__icon{display:var(--sbb-option-icon-container-display, none)}.sbb-option__label{white-space:initial}`;
|
|
7
|
+
let x = (() => {
|
|
9
8
|
var o;
|
|
10
|
-
let
|
|
11
|
-
|
|
9
|
+
let n = [p("sbb-option")], a, b = [], i, r = u;
|
|
10
|
+
return o = class extends r {
|
|
12
11
|
constructor() {
|
|
13
|
-
super(...arguments), this.optionId = "sbb-option"
|
|
12
|
+
super(...arguments), this.optionId = "sbb-option";
|
|
14
13
|
}
|
|
15
14
|
set _variant(t) {
|
|
16
15
|
t && this.setAttribute("data-variant", t);
|
|
@@ -39,7 +38,7 @@ let S = (() => {
|
|
|
39
38
|
this._isMultiple ? (t.stopPropagation(), this.selectViaUserInteraction(!this.selected)) : this.selectViaUserInteraction(!0);
|
|
40
39
|
}
|
|
41
40
|
selectViaUserInteraction(t) {
|
|
42
|
-
super.selectViaUserInteraction(t), this.
|
|
41
|
+
super.selectViaUserInteraction(t), this.dispatchEvent(new Event("optionselectionchange", { bubbles: !0, composed: !0 }));
|
|
43
42
|
}
|
|
44
43
|
init() {
|
|
45
44
|
super.init(), this._setVariantByContext(), this.handleHighlightState();
|
|
@@ -55,35 +54,34 @@ let S = (() => {
|
|
|
55
54
|
super.handleHighlightState();
|
|
56
55
|
}
|
|
57
56
|
renderIcon() {
|
|
58
|
-
return
|
|
57
|
+
return s`
|
|
59
58
|
<!-- Icon -->
|
|
60
|
-
${this._isMultiple ?
|
|
59
|
+
${this._isMultiple ? e : s` <span class="sbb-option__icon"> ${this.renderIconSlot()} </span>`}
|
|
61
60
|
|
|
62
61
|
<!-- Checkbox -->
|
|
63
|
-
${this._isMultiple ?
|
|
62
|
+
${this._isMultiple ? s`
|
|
64
63
|
<sbb-visual-checkbox
|
|
65
64
|
?checked=${this.selected}
|
|
66
65
|
?disabled=${this.disabled || this.disabledFromGroup}
|
|
67
66
|
?negative=${this.negative}
|
|
68
67
|
></sbb-visual-checkbox>
|
|
69
|
-
` :
|
|
68
|
+
` : e}
|
|
70
69
|
`;
|
|
71
70
|
}
|
|
72
71
|
renderLabel() {
|
|
73
|
-
return this._variant === "autocomplete" && this.label && !this.disableLabelHighlight ? this.getHighlightedLabel() :
|
|
72
|
+
return this._variant === "autocomplete" && this.label && !this.disableLabelHighlight ? this.getHighlightedLabel() : e;
|
|
74
73
|
}
|
|
75
74
|
renderTick() {
|
|
76
|
-
return this._variant === "select" && !this._isMultiple && this.selected ?
|
|
75
|
+
return this._variant === "select" && !this._isMultiple && this.selected ? s`<sbb-icon name="tick-small"></sbb-icon>` : e;
|
|
77
76
|
}
|
|
78
77
|
}, i = o, (() => {
|
|
79
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
80
|
-
|
|
81
|
-
})(), o.role = "option", o.styles =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
return e = i;
|
|
78
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
79
|
+
l(null, a = { value: i }, n, { kind: "class", name: i.name, metadata: t }, null, b), i = a.value, t && Object.defineProperty(i, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
80
|
+
})(), o.role = "option", o.styles = h, o.events = {
|
|
81
|
+
optionselectionchange: "optionselectionchange",
|
|
82
|
+
optionselected: "optionselected"
|
|
83
|
+
}, c(i, b), i;
|
|
86
84
|
})();
|
|
87
85
|
export {
|
|
88
|
-
|
|
86
|
+
x as SbbOptionElement
|
|
89
87
|
};
|
|
@@ -3,7 +3,6 @@ import { SbbFocusTrapController } from '../core/a11y.js';
|
|
|
3
3
|
import { SbbOpenCloseBaseElement } from '../core/base-elements.js';
|
|
4
4
|
import { SbbEscapableOverlayController, SbbInertController, SbbLanguageController } from '../core/controllers.js';
|
|
5
5
|
import { SbbScrollHandler } from '../core/dom.js';
|
|
6
|
-
import { EventEmitter } from '../core/eventing.js';
|
|
7
6
|
import { SbbOverlayCloseEventDetails } from '../core/interfaces.js';
|
|
8
7
|
export declare const overlayRefs: SbbOverlayBaseElement[];
|
|
9
8
|
declare const SbbOverlayBaseElement_base: import('../core/mixins.js').AbstractConstructor<import('../core/mixins.js').SbbNegativeMixinType> & typeof SbbOpenCloseBaseElement;
|
|
@@ -22,8 +21,6 @@ export declare abstract class SbbOverlayBaseElement extends SbbOverlayBaseElemen
|
|
|
22
21
|
* you provide your own equivalent, if you decide to turn it off.
|
|
23
22
|
*/
|
|
24
23
|
accessor skipFocusRestoration: boolean;
|
|
25
|
-
/** Emits whenever the component is closed. */
|
|
26
|
-
protected didClose: EventEmitter<SbbOverlayCloseEventDetails>;
|
|
27
24
|
protected lastFocusedElement?: HTMLElement;
|
|
28
25
|
protected overlayCloseElement?: HTMLElement;
|
|
29
26
|
protected openOverlayController: AbortController;
|
|
@@ -56,6 +53,8 @@ export declare abstract class SbbOverlayBaseElement extends SbbOverlayBaseElemen
|
|
|
56
53
|
protected removeAriaLiveRefContent(): void;
|
|
57
54
|
protected setAriaLiveRefContent(label?: string): void;
|
|
58
55
|
protected onOverlayAnimationEnd(event: AnimationEvent): void;
|
|
56
|
+
protected dispatchBeforeCloseEvent(detail?: SbbOverlayCloseEventDetails): boolean;
|
|
57
|
+
protected dispatchCloseEvent(detail?: SbbOverlayCloseEventDetails): boolean;
|
|
59
58
|
}
|
|
60
59
|
export {};
|
|
61
60
|
//# sourceMappingURL=overlay-base-element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-base-element.d.ts","sourceRoot":"","sources":["../../../src/elements/overlay/overlay-base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA6B,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC9F,OAAO,EACL,6BAA6B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