@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
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
var
|
|
1
|
+
var we = (b) => {
|
|
2
2
|
throw TypeError(b);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var w = (b, _, f) => (
|
|
4
|
+
var ye = (b, _, f) => _.has(b) || we("Cannot " + f);
|
|
5
|
+
var w = (b, _, f) => (ye(b, _, "read from private field"), f ? f.call(b) : _.get(b)), y = (b, _, f) => _.has(b) ? we("Cannot add the same private member more than once") : _ instanceof WeakSet ? _.add(b) : _.set(b, f), c = (b, _, f, D) => (ye(b, _, "write to private field"), D ? D.call(b, f) : _.set(b, f), f);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as d } from "tslib";
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { classMap as
|
|
10
|
-
import { sbbInputModalityDetector as
|
|
11
|
-
import { readConfig as
|
|
12
|
-
import { SbbLanguageController as
|
|
13
|
-
import { defaultDateAdapter as
|
|
14
|
-
import { forceType as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { SbbHydrationMixin as Ue } from "../core/mixins.js";
|
|
7
|
+
import { css as ke, LitElement as $e, isServer as De, nothing as m, html as l } from "lit";
|
|
8
|
+
import { customElement as Me, property as A, state as C } from "lit/decorators.js";
|
|
9
|
+
import { classMap as T } from "lit/directives/class-map.js";
|
|
10
|
+
import { sbbInputModalityDetector as Ye, isArrowKeyOrPageKeysPressed as ze } from "../core/a11y.js";
|
|
11
|
+
import { readConfig as Fe } from "../core/config.js";
|
|
12
|
+
import { SbbLanguageController as Re, SbbMediaMatcherController as Ie, SbbMediaQueryBreakpointMediumAndAbove as Ae } from "../core/controllers.js";
|
|
13
|
+
import { defaultDateAdapter as Oe, YEARS_PER_PAGE as v, DAYS_PER_ROW as u, MONTHS_PER_ROW as S, YEARS_PER_ROW as P, MONTHS_PER_PAGE as Ne } from "../core/datetime.js";
|
|
14
|
+
import { forceType as Ce, plainDate as xe } from "../core/decorators.js";
|
|
15
|
+
import { i18nPreviousMonth as Te, i18nNextMonth as Se, i18nYearMonthSelection as Pe, i18nPreviousYear as We, i18nNextYear as Ee, i18nCalendarDateSelection as Ve, i18nPreviousYearRange as Le, i18nNextYearRange as Be } from "../core/i18n.js";
|
|
16
|
+
import { SbbHydrationMixin as qe } from "../core/mixins.js";
|
|
18
17
|
import "../button/secondary-button.js";
|
|
19
18
|
import "../icon.js";
|
|
20
19
|
import "../screen-reader-only.js";
|
|
21
|
-
const
|
|
22
|
-
let
|
|
20
|
+
const Ke = ke`*,:before,:after{box-sizing:border-box}:host{display:block;width:max-content;--sbb-calendar-cell-size: 2.5rem;--sbb-calendar-hover-shift: .0625rem;--sbb-calendar-wide-cell-size: 4.375rem;--sbb-calendar-cell-disabled-color: var(--sbb-color-granite);--sbb-calendar-header-color: var(--sbb-color-granite);--sbb-calendar-cell-background-color: transparent;--sbb-calendar-cell-padding: .125rem;--sbb-calendar-cell-color: var(--sbb-color-charcoal);--sbb-calendar-cell-selected-color: var(--sbb-color-white);--sbb-calendar-cell-selected-background-color: var(--sbb-color-charcoal);--sbb-calendar-cell-disabled-height: .09375rem;--sbb-calendar-cell-disabled-width: 1.59375rem;--sbb-calendar-cell-transition-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-2x) );--sbb-calendar-cell-transition-easing-function: var(--sbb-animation-easing);--sbb-calendar-tables-gap: var(--sbb-spacing-fixed-10x);--sbb-calendar-table-animation-shift: .00625rem;--sbb-calendar-table-animation-duration: .1ms;--sbb-calendar-table-column-spaces: 12;--sbb-calendar-control-view-change-height: 2.75rem;--sbb-calendar-control-view-change-color: var(--sbb-color-charcoal);--sbb-calendar-control-view-change-background: var(--sbb-color-white)}@media (min-width: 22.5rem){:host{--sbb-calendar-cell-size: 2.75rem;--sbb-calendar-wide-cell-size: 4.8125rem;--sbb-calendar-control-view-change-height: 3rem}}.sbb-calendar__wrapper{width:100%;display:block;transition-duration:var(--sbb-calendar-cell-transition-duration)}.sbb-calendar__controls{width:100%;display:inline-flex;align-items:center;gap:var(--sbb-spacing-fixed-2x);margin-block-end:var(--sbb-spacing-fixed-4x)}.sbb-calendar__controls-month{width:100%;display:flex;gap:var(--sbb-calendar-tables-gap)}#sbb-calendar__controls-previous,#sbb-calendar__controls-next{-webkit-tap-highlight-color:transparent}.sbb-calendar__controls-change-date{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--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);display:flex;align-items:center;margin:auto;height:var(--sbb-calendar-control-view-change-height);text-transform:capitalize;cursor:pointer;padding-inline:var(--sbb-spacing-fixed-5x) var(--sbb-spacing-fixed-2x);border-radius:var(--sbb-border-radius-infinity);background-color:var(--sbb-calendar-control-view-change-background);color:var(--sbb-calendar-control-view-change-color);transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color,padding-block-end}.sbb-calendar__controls-change-date:disabled{--sbb-calendar-control-view-change-background: var(--sbb-color-milk);--sbb-calendar-control-view-change-color: var(--sbb-calendar-cell-disabled-color);cursor:unset}.sbb-calendar__controls-change-date:focus-visible{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);outline-offset:var(--sbb-spacing-fixed-1x)}@media (any-hover: hover){.sbb-calendar__controls-change-date:not(:active,:disabled):hover{padding-block-end:var(--sbb-calendar-hover-shift)}}.sbb-calendar__controls-change-date:not(:disabled):active{--sbb-calendar-control-view-change-background: var(--sbb-color-milk)}.sbb-calendar__table-month-view,.sbb-calendar__table-year-view{--sbb-calendar-table-column-spaces: 6}.sbb-calendar__table-container{display:flex;gap:var(--sbb-calendar-tables-gap);margin-inline:var(--sbb-calendar-margin);--sbb-calendar-min-width: calc(7 * var(--sbb-calendar-cell-size));--sbb-calendar-overflow: calc(100% - var(--sbb-calendar-min-width));--sbb-calendar-start-offset: min( 0px, -1 * (var(--sbb-calendar-overflow) / var(--sbb-calendar-table-column-spaces)) );--sbb-calendar-margin: var(--sbb-calendar-start-offset)}:host([data-wide]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 2 * 7 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) );--sbb-calendar-margin: calc(.5 * var(--sbb-calendar-start-offset))}:host([orientation=vertical]) .sbb-calendar__table-container{min-width:var(--sbb-calendar-min-width);--sbb-calendar-start-offset: 0}:host([orientation=vertical][data-wide]) .sbb-calendar__table-container{--sbb-calendar-min-width: calc( 13 * var(--sbb-calendar-cell-size) + var(--sbb-calendar-tables-gap) )}.sbb-calendar__table{width:100%;border-collapse:collapse;height:max-content;animation-name:show;animation-duration:var(--sbb-calendar-table-animation-duration)}.sbb-calendar__table.sbb-calendar__table-hide{--sbb-calendar-cell-transition-duration: 0ms;animation-name:hide;animation-duration:var(--sbb-calendar-table-animation-duration)}:host(:not([data-wide])) .sbb-calendar__table{min-width:100%}.sbb-calendar__table-header{--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);color:var(--sbb-calendar-header-color);width:var(--sbb-calendar-cell-size);padding:0;text-align:center}:host([orientation=horizontal]) .sbb-calendar__table-header{padding-block-end:var(--sbb-spacing-fixed-4x)}:host([orientation=vertical]) .sbb-calendar__table-header{padding-inline-end:var(--sbb-spacing-fixed-1x)}.sbb-calendar__table-data{position:relative;padding:0;text-align:center}.sbb-calendar__cell{-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box;margin:0;outline:none;border:none;border-radius:0;padding:0;background:none;-webkit-tap-highlight-color:transparent;color:inherit;--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);height:var(--sbb-calendar-cell-size);color:var(--sbb-calendar-cell-color);cursor:pointer;position:relative;z-index:0}.sbb-calendar__cell:before{content:"";position:absolute;inset:var(--sbb-calendar-cell-padding);background-color:var(--sbb-calendar-cell-background-color);border-radius:50%;z-index:-1;transition-duration:var(--sbb-calendar-cell-transition-duration);transition-timing-function:var(--sbb-calendar-cell-transition-easing-function);transition-property:background-color}@media (any-hover: hover){.sbb-calendar__cell:not(.sbb-calendar__selected,:active,:disabled):hover{--sbb-calendar-cell-background-color: var(--sbb-color-milk);padding-block-end:var(--sbb-calendar-hover-shift)}}@media (any-hover: hover) and (forced-colors: active){.sbb-calendar__cell:not(.sbb-calendar__selected,:active,:disabled):hover:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial}}.sbb-calendar__cell:disabled{--sbb-calendar-cell-color: var(--sbb-calendar-cell-disabled-color);cursor:unset}.sbb-calendar__cell:focus-visible:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width)}.sbb-calendar__cell:not(.sbb-calendar__selected,:disabled):active{--sbb-calendar-cell-background-color: var(--sbb-color-cloud)}@media (forced-colors: active){.sbb-calendar__cell:not(.sbb-calendar__selected,:disabled):active:before{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);--sbb-focus-outline-style: initial}}.sbb-calendar__day{border-radius:50%;width:var(--sbb-calendar-cell-size)}.sbb-calendar__day:before{border-radius:50%}.sbb-calendar__pill{width:var(--sbb-calendar-wide-cell-size);border-radius:var(--sbb-border-radius-infinity)}.sbb-calendar__pill:before{border-radius:var(--sbb-border-radius-infinity)}.sbb-calendar__crossed-out:after{content:"";height:var(--sbb-calendar-cell-disabled-height);width:var(--sbb-calendar-cell-disabled-width);position:absolute;background-color:var(--sbb-calendar-cell-disabled-color);top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg)}.sbb-calendar__cell-current{--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);font-weight:700}.sbb-calendar__selected{--sbb-calendar-cell-color: var(--sbb-calendar-cell-selected-color);--sbb-calendar-cell-background-color: var(--sbb-calendar-cell-selected-background-color)}@media (forced-colors: active){.sbb-calendar__selected{--sbb-calendar-cell-background-color: ButtonText !important}}@keyframes show{0%{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}to{opacity:1;transform:translateY(0)}}@keyframes hide{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--sbb-calendar-table-animation-shift))}}`;
|
|
21
|
+
let ot = (() => {
|
|
23
22
|
var x, V, k, $, M, Y, z, F, R, I, h;
|
|
24
|
-
let b = [
|
|
25
|
-
|
|
23
|
+
let b = [Me("sbb-calendar")], _, f = [], D, E = qe($e), W = [], L, B = [], q = [], K, U = [], H = [], j, G = [], Q = [], J, X = [], Z = [], ee, te, ae = [], se = [], ie, re = [], ne = [], le, oe = [], de = [], ce, he = [], be = [], _e, ue, fe = [], ge = [], pe, me = [], ve = [];
|
|
24
|
+
return h = class extends E {
|
|
26
25
|
constructor() {
|
|
27
26
|
super();
|
|
28
27
|
y(this, x);
|
|
@@ -35,16 +34,16 @@ let ht = (() => {
|
|
|
35
34
|
y(this, F);
|
|
36
35
|
y(this, R);
|
|
37
36
|
y(this, I);
|
|
38
|
-
c(this, x, (d(this, W), d(this,
|
|
37
|
+
c(this, x, (d(this, W), d(this, B, !1))), c(this, V, (d(this, q), d(this, U, "day"))), c(this, k, (d(this, H), d(this, G, null))), c(this, $, (d(this, Q), d(this, X, null))), this._selectedDate = d(this, Z), c(this, M, d(this, ae, null)), c(this, Y, (d(this, se), d(this, re, "horizontal"))), this._dateAdapter = (d(this, ne), Fe().datetime?.dateAdapter ?? Oe), c(this, z, d(this, oe, this._dateAdapter.today())), c(this, F, (d(this, de), d(this, he, void 0))), c(this, R, (d(this, be), d(this, fe, "day"))), this._nextCalendarView = (d(this, ge), "day"), this._keyboardNavigationDayViewParameters = {
|
|
39
38
|
firstDayInView: null,
|
|
40
39
|
lastDayInView: null,
|
|
41
40
|
firstMonthOffset: 0,
|
|
42
41
|
firstMonthLength: 0,
|
|
43
42
|
secondMonthOffset: 0
|
|
44
|
-
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._resetFocus = !1, c(this, I, d(this,
|
|
43
|
+
}, this._weeks = [], this._monthNames = this._dateAdapter.getMonthNames("long"), this._resetFocus = !1, c(this, I, d(this, me, !1)), this._language = (d(this, ve), new Re(this).withHandler(() => {
|
|
45
44
|
this._monthNames = this._dateAdapter.getMonthNames("long"), this._createMonthRows();
|
|
46
|
-
})), this._mediaMatcher = new
|
|
47
|
-
[
|
|
45
|
+
})), this._mediaMatcher = new Ie(this, {
|
|
46
|
+
[Ae]: () => this._init()
|
|
48
47
|
}), this._createMonthRows(), this._setWeekdays();
|
|
49
48
|
}
|
|
50
49
|
/** If set to true, two months are displayed */
|
|
@@ -157,16 +156,16 @@ let ht = (() => {
|
|
|
157
156
|
super.willUpdate(e), this._initialized && ((e.has("wide") || e.has("orientation")) && this.resetPosition(), e.has("view") && (this._setChosenYear(), this._chosenMonth = void 0, this._nextCalendarView = this._calendarView = this.view));
|
|
158
157
|
}
|
|
159
158
|
updated(e) {
|
|
160
|
-
super.updated(e), this._setTabIndex(),
|
|
159
|
+
super.updated(e), this._setTabIndex(), Ye.mostRecentModality === "keyboard" && this._focusCell();
|
|
161
160
|
}
|
|
162
161
|
/** Initializes the component. */
|
|
163
162
|
_init(e) {
|
|
164
|
-
if (!
|
|
163
|
+
if (!De) {
|
|
165
164
|
if (this.hydrationRequired) {
|
|
166
165
|
this.hydrationComplete.then(() => this._init());
|
|
167
166
|
return;
|
|
168
167
|
}
|
|
169
|
-
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(
|
|
168
|
+
if (e && this._assignActiveDate(e), this._wide = (this._mediaMatcher.matches(Ae) ?? !1) && this.wide, this._weeks = this._createWeekRows(this._activeDate), this._years = this._createYearRows(), this._nextMonthWeeks = [[]], this._nextMonthYears = [[]], this._wide) {
|
|
170
169
|
const t = this._dateAdapter.addCalendarMonths(this._activeDate, 1);
|
|
171
170
|
this._nextMonthWeeks = this._createWeekRows(t, !0), this._nextMonthYears = this._createYearRows(v);
|
|
172
171
|
}
|
|
@@ -248,9 +247,9 @@ let ht = (() => {
|
|
|
248
247
|
value: e[r],
|
|
249
248
|
longValue: this._monthNames[r],
|
|
250
249
|
monthValue: r + 1
|
|
251
|
-
})), a = 12 /
|
|
250
|
+
})), a = 12 / S, s = [];
|
|
252
251
|
for (let i = 0; i < a; i++)
|
|
253
|
-
s.push(t.slice(
|
|
252
|
+
s.push(t.slice(S * i, S * (i + 1)));
|
|
254
253
|
this._months = s;
|
|
255
254
|
}
|
|
256
255
|
/** Creates the rows for the year selection view. */
|
|
@@ -319,7 +318,11 @@ let ht = (() => {
|
|
|
319
318
|
}
|
|
320
319
|
/** Emits the selected date and sets it internally. */
|
|
321
320
|
_selectDate(e) {
|
|
322
|
-
this._chosenMonth = void 0, this._setChosenYear(), this._selected !== e && (this._selected = e, this.
|
|
321
|
+
this._chosenMonth = void 0, this._setChosenYear(), this._selected !== e && (this._selected = e, this.dispatchEvent(new CustomEvent("dateselected", {
|
|
322
|
+
detail: this._dateAdapter.deserialize(e),
|
|
323
|
+
composed: !0,
|
|
324
|
+
bubbles: !0
|
|
325
|
+
})));
|
|
323
326
|
}
|
|
324
327
|
_setChosenYear() {
|
|
325
328
|
this.view === "month" ? this._chosenYear = this._dateAdapter.getYear(this._dateAdapter.deserialize(this._selected) ?? this.selected ?? this._dateAdapter.today()) : this._chosenYear = void 0;
|
|
@@ -412,7 +415,7 @@ let ht = (() => {
|
|
|
412
415
|
}
|
|
413
416
|
}
|
|
414
417
|
_handleKeyboardEvent(e, t) {
|
|
415
|
-
|
|
418
|
+
ze(e) && e.preventDefault();
|
|
416
419
|
const a = this._cells, s = a.findIndex((n) => n === e.target);
|
|
417
420
|
let i;
|
|
418
421
|
t ? i = this._navigateByKeyboardDayView(e, s, a, t) : i = this._navigateByKeyboard(e, s, a);
|
|
@@ -522,9 +525,9 @@ let ht = (() => {
|
|
|
522
525
|
* @param isYearView Whether the displayed `view` is the year one.
|
|
523
526
|
*/
|
|
524
527
|
_calculateParametersForKeyboardNavigation(e, t) {
|
|
525
|
-
const a = t ? v :
|
|
528
|
+
const a = t ? v : Ne, s = Math.trunc(e / a) * a, i = s === 0 ? e : e - a;
|
|
526
529
|
return {
|
|
527
|
-
verticalOffset: t ? P :
|
|
530
|
+
verticalOffset: t ? P : S,
|
|
528
531
|
elementIndexForWideMode: i,
|
|
529
532
|
offsetForWideMode: e - i,
|
|
530
533
|
lastElementIndexForWideMode: s === 0 ? a : a * 2
|
|
@@ -566,7 +569,7 @@ let ht = (() => {
|
|
|
566
569
|
const e = this._wide ? this._dateAdapter.addCalendarMonths(this._activeDate, 1) : void 0;
|
|
567
570
|
return l`
|
|
568
571
|
<div class="sbb-calendar__controls">
|
|
569
|
-
${this._getArrow("left", () => this._goToDifferentMonth(-1),
|
|
572
|
+
${this._getArrow("left", () => this._goToDifferentMonth(-1), Te[this._language.current], this._previousMonthDisabled())}
|
|
570
573
|
<div class="sbb-calendar__controls-month">
|
|
571
574
|
${this._createLabelForDayView(this._activeDate)}
|
|
572
575
|
${this._wide ? this._createLabelForDayView(e) : m}
|
|
@@ -574,7 +577,7 @@ let ht = (() => {
|
|
|
574
577
|
${this._createAriaLabelForDayView(this._activeDate, e)}
|
|
575
578
|
</sbb-screen-reader-only>
|
|
576
579
|
</div>
|
|
577
|
-
${this._getArrow("right", () => this._goToDifferentMonth(1),
|
|
580
|
+
${this._getArrow("right", () => this._goToDifferentMonth(1), Se[this._language.current], this._nextMonthDisabled())}
|
|
578
581
|
</div>
|
|
579
582
|
<div class="sbb-calendar__table-container sbb-calendar__table-day-view">
|
|
580
583
|
${this.orientation === "horizontal" ? l`
|
|
@@ -594,7 +597,7 @@ let ht = (() => {
|
|
|
594
597
|
<button
|
|
595
598
|
type="button"
|
|
596
599
|
class="sbb-calendar__date-selection sbb-calendar__controls-change-date"
|
|
597
|
-
aria-label="${
|
|
600
|
+
aria-label="${Pe[this._language.current]} ${t}"
|
|
598
601
|
@click=${() => {
|
|
599
602
|
this._resetFocus = !0, this._nextCalendarView = "year", this._startTableTransition();
|
|
600
603
|
}}
|
|
@@ -679,13 +682,13 @@ let ht = (() => {
|
|
|
679
682
|
const s = !this._isDayInRange(a.value), i = !this._dateFilter(this._dateAdapter.deserialize(a.value)), r = !!this._selected && a.value === this._selected, n = a.value === t;
|
|
680
683
|
return l`
|
|
681
684
|
<td
|
|
682
|
-
class=${
|
|
685
|
+
class=${T({
|
|
683
686
|
"sbb-calendar__table-data": !0,
|
|
684
687
|
"sbb-calendar__table-data-selected": r
|
|
685
688
|
})}
|
|
686
689
|
>
|
|
687
690
|
<button
|
|
688
|
-
class=${
|
|
691
|
+
class=${T({
|
|
689
692
|
"sbb-calendar__cell": !0,
|
|
690
693
|
"sbb-calendar__day": !0,
|
|
691
694
|
"sbb-calendar__cell-current": n,
|
|
@@ -714,9 +717,9 @@ let ht = (() => {
|
|
|
714
717
|
_renderMonthView() {
|
|
715
718
|
return l`
|
|
716
719
|
<div class="sbb-calendar__controls">
|
|
717
|
-
${this._getArrow("left", () => this._goToDifferentYear(-1),
|
|
720
|
+
${this._getArrow("left", () => this._goToDifferentYear(-1), We[this._language.current], this._previousYearDisabled())}
|
|
718
721
|
<div class="sbb-calendar__controls-month">${this._createLabelForMonthView()}</div>
|
|
719
|
-
${this._getArrow("right", () => this._goToDifferentYear(1),
|
|
722
|
+
${this._getArrow("right", () => this._goToDifferentYear(1), Ee[this._language.current], this._nextYearDisabled())}
|
|
720
723
|
</div>
|
|
721
724
|
<div class="sbb-calendar__table-container sbb-calendar__table-month-view">
|
|
722
725
|
${this._createMonthTable(this._months, this._chosenYear)}
|
|
@@ -730,7 +733,7 @@ let ht = (() => {
|
|
|
730
733
|
type="button"
|
|
731
734
|
id="sbb-calendar__month-selection"
|
|
732
735
|
class="sbb-calendar__controls-change-date"
|
|
733
|
-
aria-label=${`${
|
|
736
|
+
aria-label=${`${Ve[this._language.current]} ${this._chosenYear}`}
|
|
734
737
|
@click=${() => this._resetCalendarView(!0)}
|
|
735
738
|
>
|
|
736
739
|
${this._chosenYear} ${this._wide ? ` - ${this._chosenYear + 1}` : m}
|
|
@@ -747,7 +750,7 @@ let ht = (() => {
|
|
|
747
750
|
>
|
|
748
751
|
${this._wide ? l`<thead class="sbb-calendar__table-header" aria-hidden="true">
|
|
749
752
|
<tr class="sbb-calendar__table-header-row">
|
|
750
|
-
<th class="sbb-calendar__table-header" colspan=${
|
|
753
|
+
<th class="sbb-calendar__table-header" colspan=${S}>${t}</th>
|
|
751
754
|
</tr>
|
|
752
755
|
</thead>` : m}
|
|
753
756
|
<tbody class="sbb-calendar__table-body">
|
|
@@ -756,13 +759,13 @@ let ht = (() => {
|
|
|
756
759
|
${a.map((s) => {
|
|
757
760
|
const i = !this._isMonthInRange(s.monthValue, t), r = !this._isMonthFilteredOut(s.monthValue, t), n = this._selected ? this._dateAdapter.getMonth(this._dateAdapter.deserialize(this._selected)) : void 0, o = this._selected ? this._dateAdapter.getYear(this._dateAdapter.deserialize(this._selected)) : void 0, g = !!this._selected && t === o && s.monthValue === n, O = t === this._dateAdapter.getYear(this._dateAdapter.today()) && this._dateAdapter.getMonth(this._dateAdapter.today()) === s.monthValue;
|
|
758
761
|
return l` <td
|
|
759
|
-
class=${
|
|
762
|
+
class=${T({
|
|
760
763
|
"sbb-calendar__table-data": !0,
|
|
761
764
|
"sbb-calendar__table-month": !0
|
|
762
765
|
})}
|
|
763
766
|
>
|
|
764
767
|
<button
|
|
765
|
-
class=${
|
|
768
|
+
class=${T({
|
|
766
769
|
"sbb-calendar__cell": !0,
|
|
767
770
|
"sbb-calendar__pill": !0,
|
|
768
771
|
"sbb-calendar__cell-current": O,
|
|
@@ -796,9 +799,9 @@ let ht = (() => {
|
|
|
796
799
|
_renderYearView() {
|
|
797
800
|
return l`
|
|
798
801
|
<div class="sbb-calendar__controls">
|
|
799
|
-
${this._getArrow("left", () => this._goToDifferentYearRange(-v),
|
|
802
|
+
${this._getArrow("left", () => this._goToDifferentYearRange(-v), Le(v)[this._language.current], this._previousYearRangeDisabled())}
|
|
800
803
|
<div class="sbb-calendar__controls-month">${this._createLabelForYearView()}</div>
|
|
801
|
-
${this._getArrow("right", () => this._goToDifferentYearRange(v),
|
|
804
|
+
${this._getArrow("right", () => this._goToDifferentYearRange(v), Be(v)[this._language.current], this._nextYearRangeDisabled())}
|
|
802
805
|
</div>
|
|
803
806
|
<div class="sbb-calendar__table-container sbb-calendar__table-year-view">
|
|
804
807
|
${this._createYearTable(this._years)}
|
|
@@ -825,7 +828,7 @@ let ht = (() => {
|
|
|
825
828
|
type="button"
|
|
826
829
|
id="sbb-calendar__year-selection"
|
|
827
830
|
class="sbb-calendar__controls-change-date"
|
|
828
|
-
aria-label="${
|
|
831
|
+
aria-label="${Ve[this._language.current]} ${s}"
|
|
829
832
|
@click=${() => this._resetCalendarView(!0)}
|
|
830
833
|
>
|
|
831
834
|
${s}
|
|
@@ -847,7 +850,7 @@ let ht = (() => {
|
|
|
847
850
|
const r = !this._isYearInRange(i), n = !this._isYearFilteredOut(i), o = this._selected ? this._dateAdapter.getYear(this._dateAdapter.deserialize(this._selected)) : void 0, g = !!this._selected && i === o, O = this._dateAdapter.getYear(a) === i;
|
|
848
851
|
return l` <td class="sbb-calendar__table-data sbb-calendar__table-year">
|
|
849
852
|
<button
|
|
850
|
-
class=${
|
|
853
|
+
class=${T({
|
|
851
854
|
"sbb-calendar__cell": !0,
|
|
852
855
|
"sbb-calendar__pill": !0,
|
|
853
856
|
"sbb-calendar__cell-current": O,
|
|
@@ -876,7 +879,7 @@ let ht = (() => {
|
|
|
876
879
|
this._chosenYear = t ? e - 1 : e, this._nextCalendarView = "month", this._assignActiveDate(this._dateAdapter.createDate(this._chosenYear, this._dateAdapter.getMonth(this._activeDate), this._dateAdapter.getDate(this._activeDate))), this._startTableTransition();
|
|
877
880
|
}
|
|
878
881
|
_getView() {
|
|
879
|
-
if (
|
|
882
|
+
if (De || this.hydrationRequired)
|
|
880
883
|
return l`${m}`;
|
|
881
884
|
switch (this._calendarView) {
|
|
882
885
|
case "year":
|
|
@@ -899,37 +902,36 @@ let ht = (() => {
|
|
|
899
902
|
return l`<div class="sbb-calendar__wrapper">${this._getView()}</div>`;
|
|
900
903
|
}
|
|
901
904
|
}, x = new WeakMap(), V = new WeakMap(), k = new WeakMap(), $ = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), z = new WeakMap(), F = new WeakMap(), R = new WeakMap(), I = new WeakMap(), D = h, (() => {
|
|
902
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
903
|
-
|
|
905
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(E[Symbol.metadata] ?? null) : void 0;
|
|
906
|
+
L = [Ce(), A({ type: Boolean })], K = [A()], j = [xe(), A()], J = [xe(), A()], ee = [A()], te = [A({ attribute: "date-filter" })], ie = [A({ reflect: !0 })], le = [C()], ce = [C()], _e = [C()], ue = [C()], pe = [C()], p(h, null, L, { kind: "accessor", name: "wide", static: !1, private: !1, access: { has: (t) => "wide" in t, get: (t) => t.wide, set: (t, a) => {
|
|
904
907
|
t.wide = a;
|
|
905
|
-
} }, metadata: e },
|
|
908
|
+
} }, metadata: e }, B, q), p(h, null, K, { kind: "accessor", name: "view", static: !1, private: !1, access: { has: (t) => "view" in t, get: (t) => t.view, set: (t, a) => {
|
|
906
909
|
t.view = a;
|
|
907
|
-
} }, metadata: e },
|
|
910
|
+
} }, metadata: e }, U, H), p(h, null, j, { kind: "accessor", name: "min", static: !1, private: !1, access: { has: (t) => "min" in t, get: (t) => t.min, set: (t, a) => {
|
|
908
911
|
t.min = a;
|
|
909
|
-
} }, metadata: e },
|
|
912
|
+
} }, metadata: e }, G, Q), p(h, null, J, { kind: "accessor", name: "max", static: !1, private: !1, access: { has: (t) => "max" in t, get: (t) => t.max, set: (t, a) => {
|
|
910
913
|
t.max = a;
|
|
911
|
-
} }, metadata: e },
|
|
914
|
+
} }, metadata: e }, X, Z), p(h, null, ee, { kind: "setter", name: "selected", static: !1, private: !1, access: { has: (t) => "selected" in t, set: (t, a) => {
|
|
912
915
|
t.selected = a;
|
|
913
|
-
} }, metadata: e }, null, W), p(h, null,
|
|
916
|
+
} }, metadata: e }, null, W), p(h, null, te, { kind: "accessor", name: "dateFilter", static: !1, private: !1, access: { has: (t) => "dateFilter" in t, get: (t) => t.dateFilter, set: (t, a) => {
|
|
914
917
|
t.dateFilter = a;
|
|
915
|
-
} }, metadata: e },
|
|
918
|
+
} }, metadata: e }, ae, se), p(h, null, ie, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, a) => {
|
|
916
919
|
t.orientation = a;
|
|
917
|
-
} }, metadata: e },
|
|
920
|
+
} }, metadata: e }, re, ne), p(h, null, le, { kind: "accessor", name: "_activeDate", static: !1, private: !1, access: { has: (t) => "_activeDate" in t, get: (t) => t._activeDate, set: (t, a) => {
|
|
918
921
|
t._activeDate = a;
|
|
919
|
-
} }, metadata: e },
|
|
922
|
+
} }, metadata: e }, oe, de), p(h, null, ce, { kind: "accessor", name: "_selected", static: !1, private: !1, access: { has: (t) => "_selected" in t, get: (t) => t._selected, set: (t, a) => {
|
|
920
923
|
t._selected = a;
|
|
921
|
-
} }, metadata: e },
|
|
924
|
+
} }, metadata: e }, he, be), p(h, null, _e, { kind: "setter", name: "_wide", static: !1, private: !1, access: { has: (t) => "_wide" in t, set: (t, a) => {
|
|
922
925
|
t._wide = a;
|
|
923
|
-
} }, metadata: e }, null, W), p(h, null,
|
|
926
|
+
} }, metadata: e }, null, W), p(h, null, ue, { kind: "accessor", name: "_calendarView", static: !1, private: !1, access: { has: (t) => "_calendarView" in t, get: (t) => t._calendarView, set: (t, a) => {
|
|
924
927
|
t._calendarView = a;
|
|
925
|
-
} }, metadata: e },
|
|
928
|
+
} }, metadata: e }, fe, ge), p(h, null, pe, { kind: "accessor", name: "_initialized", static: !1, private: !1, access: { has: (t) => "_initialized" in t, get: (t) => t._initialized, set: (t, a) => {
|
|
926
929
|
t._initialized = a;
|
|
927
|
-
} }, metadata: e },
|
|
928
|
-
})(), h.styles =
|
|
929
|
-
|
|
930
|
-
}, d(D, f),
|
|
931
|
-
return E = D;
|
|
930
|
+
} }, metadata: e }, me, ve), p(null, _ = { value: D }, b, { kind: "class", name: D.name, metadata: e }, null, f), D = _.value, e && Object.defineProperty(D, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
931
|
+
})(), h.styles = Ke, h.events = {
|
|
932
|
+
dateselected: "dateselected"
|
|
933
|
+
}, d(D, f), D;
|
|
932
934
|
})();
|
|
933
935
|
export {
|
|
934
|
-
|
|
936
|
+
ot as SbbCalendarElement
|
|
935
937
|
};
|
|
@@ -5,7 +5,6 @@ declare const SbbCardButtonElement_base: import('../../core/mixins.js').Abstract
|
|
|
5
5
|
*
|
|
6
6
|
* @slot - Use the unnamed slot to add a descriptive label / title of the button (important!).
|
|
7
7
|
* This is relevant for SEO and screen readers.
|
|
8
|
-
* @overrideType value - string
|
|
9
8
|
*/
|
|
10
9
|
export declare class SbbCardButtonElement extends SbbCardButtonElement_base {
|
|
11
10
|
protected actionRole: 'link' | 'button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/card/card-button/card-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE
|
|
1
|
+
{"version":3,"file":"card-button.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/card/card-button/card-button.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;AAGnE;;;;;GAKG;AACH,qBAEM,oBAAqB,SAAQ,yBAAqD;IACtF,UAAmB,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAY;CAC7D;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,iBAAiB,EAAE,oBAAoB,CAAC;KACzC;CACF"}
|
|
@@ -7,8 +7,8 @@ declare const SbbCheckboxElement_base: import('../../core/mixins.js').Constructo
|
|
|
7
7
|
*
|
|
8
8
|
* @slot - Use the unnamed slot to add content to the `sbb-checkbox`.
|
|
9
9
|
* @slot icon - Slot used to render the checkbox icon (disabled inside a selection panel).
|
|
10
|
-
* @event {Event} change -
|
|
11
|
-
* @event {InputEvent} input -
|
|
10
|
+
* @event {Event} change - The change event is fired when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.
|
|
11
|
+
* @event {InputEvent} input - The input event fires when the value has been changed as a direct result of a user action.
|
|
12
12
|
* @overrideType value - (T = string) | null
|
|
13
13
|
*/
|
|
14
14
|
export declare class SbbCheckboxElement<T = string> extends SbbCheckboxElement_base {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CSSResultGroup, LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
-
import { EventEmitter } from '../../core/eventing.js';
|
|
3
2
|
import { SbbCheckedStateChange, SbbDisabledStateChange, SbbStateChange } from '../../core/interfaces/types.js';
|
|
4
3
|
import { SbbPanelSize } from '../../core/mixins.js';
|
|
5
4
|
export type SbbCheckboxPanelStateChange = Extract<SbbStateChange, SbbDisabledStateChange | SbbCheckedStateChange>;
|
|
@@ -11,16 +10,12 @@ declare const SbbCheckboxPanelElement_base: import('../../core/mixins.js').Abstr
|
|
|
11
10
|
* @slot subtext - Slot used to render a subtext under the label (only visible within a selection panel).
|
|
12
11
|
* @slot suffix - Slot used to render additional content after the label (only visible within a selection panel).
|
|
13
12
|
* @slot badge - Use this slot to provide a `sbb-card-badge` (optional).
|
|
14
|
-
* @event {Event} change -
|
|
15
|
-
* @event {InputEvent} input -
|
|
13
|
+
* @event {Event} change - The change event is fired when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.
|
|
14
|
+
* @event {InputEvent} input - The input event fires when the value has been changed as a direct result of a user action.
|
|
16
15
|
* @overrideType value - (T = string) | null
|
|
17
16
|
*/
|
|
18
17
|
export declare class SbbCheckboxPanelElement<T = string> extends SbbCheckboxPanelElement_base {
|
|
19
18
|
static styles: CSSResultGroup;
|
|
20
|
-
static readonly events: {
|
|
21
|
-
readonly stateChange: "stateChange";
|
|
22
|
-
readonly panelConnected: "panelConnected";
|
|
23
|
-
};
|
|
24
19
|
/** Value of the form element. */
|
|
25
20
|
accessor value: T | null;
|
|
26
21
|
/**
|
|
@@ -28,12 +23,7 @@ export declare class SbbCheckboxPanelElement<T = string> extends SbbCheckboxPane
|
|
|
28
23
|
* @default 'm' / 's' (lean)
|
|
29
24
|
*/
|
|
30
25
|
accessor size: SbbPanelSize;
|
|
31
|
-
|
|
32
|
-
* @internal
|
|
33
|
-
* Internal event that emits whenever the state of the checkbox
|
|
34
|
-
* in relation to the parent selection panel changes.
|
|
35
|
-
*/
|
|
36
|
-
protected stateChange: EventEmitter<SbbCheckboxPanelStateChange>;
|
|
26
|
+
private _dispatchStateChange;
|
|
37
27
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
38
28
|
protected render(): TemplateResult;
|
|
39
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-panel/checkbox-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,
|
|
1
|
+
{"version":3,"file":"checkbox-panel.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/checkbox/checkbox-panel/checkbox-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EAEV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAKb,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAElC,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,cAAc,EACd,sBAAsB,GAAG,qBAAqB,CAC/C,CAAC;;AAEF;;;;;;;;;;GAUG;AACH,qBAGM,uBAAuB,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,4BAEjD;IACC,OAAuB,MAAM,EAAE,cAAc,CAA2C;IAExF,iCAAiC;IACjC,SACgB,KAAK,EAAE,CAAC,GAAG,IAAI,CAAQ;IAEvC;;;OAGG;IACH,SAEgB,IAAI,EAAE,YAAY,CAAwB;IAE1D,OAAO,CAAC,oBAAoB;cAST,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAkBzD,MAAM,IAAI,cAAc;CA8B5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,oBAAoB,EAAE,uBAAuB,CAAC;KAC/C;CACF"}
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
var
|
|
1
|
+
var z = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import {
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { slotState as
|
|
10
|
-
import { isLean as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { SbbCheckboxCommonElementMixin as T, checkboxCommonStyle as q } from "../common.js";
|
|
4
|
+
var S = (e, s, i) => s.has(e) || z("Cannot " + i);
|
|
5
|
+
var h = (e, s, i) => (S(e, s, "read from private field"), i ? i.call(e) : s.get(e)), d = (e, s, i) => s.has(e) ? z("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, i), m = (e, s, i, l) => (S(e, s, "write to private field"), l ? l.call(e, i) : s.set(e, i), i);
|
|
6
|
+
import { __esDecorate as u, __runInitializers as b } from "tslib";
|
|
7
|
+
import { LitElement as E, nothing as w, html as y } from "lit";
|
|
8
|
+
import { customElement as $, property as C } from "lit/decorators.js";
|
|
9
|
+
import { slotState as D, getOverride as I } from "../../core/decorators.js";
|
|
10
|
+
import { isLean as M } from "../../core/dom.js";
|
|
11
|
+
import { SbbPanelMixin as O, SbbUpdateSchedulerMixin as U, panelCommonStyle as j } from "../../core/mixins.js";
|
|
12
|
+
import { SbbCheckboxCommonElementMixin as L, checkboxCommonStyle as A } from "../common.js";
|
|
14
13
|
import "../../screen-reader-only.js";
|
|
15
14
|
import "../../visual-checkbox.js";
|
|
16
|
-
let
|
|
17
|
-
var
|
|
18
|
-
let e = [
|
|
19
|
-
|
|
15
|
+
let V = (() => {
|
|
16
|
+
var n, r, c;
|
|
17
|
+
let e = [$("sbb-checkbox-panel"), D()], s, i = [], l, p = O(L(U(E))), _, f = [], k = [], x, v = [], g = [];
|
|
18
|
+
return c = class extends p {
|
|
20
19
|
constructor() {
|
|
21
20
|
super(...arguments);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
b(this,
|
|
21
|
+
d(this, n, b(this, f, null));
|
|
22
|
+
d(this, r, (b(this, k), b(this, v, M() ? "s" : "m")));
|
|
23
|
+
b(this, g);
|
|
25
24
|
}
|
|
26
25
|
/** Value of the form element. */
|
|
27
26
|
get value() {
|
|
28
|
-
return
|
|
27
|
+
return h(this, n);
|
|
29
28
|
}
|
|
30
|
-
set value(
|
|
31
|
-
|
|
29
|
+
set value(t) {
|
|
30
|
+
m(this, n, t);
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
34
33
|
* Size variant, either m or s.
|
|
35
34
|
* @default 'm' / 's' (lean)
|
|
36
35
|
*/
|
|
37
36
|
get size() {
|
|
38
|
-
return
|
|
37
|
+
return h(this, r);
|
|
39
38
|
}
|
|
40
|
-
set size(
|
|
41
|
-
|
|
39
|
+
set size(t) {
|
|
40
|
+
m(this, r, t);
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
_dispatchStateChange(t) {
|
|
43
|
+
return this.dispatchEvent(new CustomEvent("statechange", { detail: t, bubbles: !0 }));
|
|
44
|
+
}
|
|
45
|
+
willUpdate(t) {
|
|
46
|
+
super.willUpdate(t), t.has("checked") && (this.toggleAttribute("data-checked", this.checked), this.checked !== t.get("checked") && this._dispatchStateChange({ type: "checked", checked: this.checked })), t.has("disabled") && this.disabled !== t.get("disabled") && this._dispatchStateChange({ type: "disabled", disabled: this.disabled });
|
|
45
47
|
}
|
|
46
48
|
render() {
|
|
47
|
-
return
|
|
49
|
+
return y`
|
|
48
50
|
<span class="sbb-selection-panel">
|
|
49
51
|
<div class="sbb-selection-panel__badge">
|
|
50
52
|
<slot name="badge"></slot>
|
|
@@ -65,25 +67,21 @@ let X = (() => {
|
|
|
65
67
|
</span>
|
|
66
68
|
</span>
|
|
67
69
|
<slot name="subtext"></slot>
|
|
68
|
-
${this.expansionState ?
|
|
70
|
+
${this.expansionState ? y`<sbb-screen-reader-only>${this.expansionState}</sbb-screen-reader-only>` : w}
|
|
69
71
|
</span>
|
|
70
72
|
</span>
|
|
71
73
|
</span>
|
|
72
74
|
`;
|
|
73
75
|
}
|
|
74
|
-
},
|
|
75
|
-
const
|
|
76
|
-
|
|
76
|
+
}, n = new WeakMap(), r = new WeakMap(), l = c, (() => {
|
|
77
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(p[Symbol.metadata] ?? null) : void 0;
|
|
78
|
+
_ = [C()], x = [C({ reflect: !0 }), I((a, o) => a.group?.size ? a.group.size === "xs" ? "s" : a.group.size : o)], u(c, null, _, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (a) => "value" in a, get: (a) => a.value, set: (a, o) => {
|
|
77
79
|
a.value = o;
|
|
78
|
-
} }, metadata:
|
|
80
|
+
} }, metadata: t }, f, k), u(c, null, x, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (a) => "size" in a, get: (a) => a.size, set: (a, o) => {
|
|
79
81
|
a.size = o;
|
|
80
|
-
} }, metadata:
|
|
81
|
-
})(),
|
|
82
|
-
stateChange: "stateChange",
|
|
83
|
-
panelConnected: "panelConnected"
|
|
84
|
-
}, h(l, i), n);
|
|
85
|
-
return m = l;
|
|
82
|
+
} }, metadata: t }, v, g), u(null, s = { value: l }, e, { kind: "class", name: l.name, metadata: t }, null, i), l = s.value, t && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
83
|
+
})(), c.styles = [A, j], b(l, i), l;
|
|
86
84
|
})();
|
|
87
85
|
export {
|
|
88
|
-
|
|
86
|
+
V as SbbCheckboxPanelElement
|
|
89
87
|
};
|
|
@@ -10,16 +10,15 @@ export declare class SbbChipElement<T = string> extends SbbChipElement_base {
|
|
|
10
10
|
static readonly role = "option";
|
|
11
11
|
static styles: CSSResultGroup;
|
|
12
12
|
static readonly events: {
|
|
13
|
-
readonly
|
|
13
|
+
readonly requestdelete: "requestdelete";
|
|
14
14
|
};
|
|
15
15
|
/** The value of chip. Will be used as label if nothing is slotted. */
|
|
16
16
|
accessor value: T | null;
|
|
17
|
-
/** @internal */
|
|
18
|
-
private _requestDelete;
|
|
19
17
|
private _language;
|
|
20
18
|
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
21
19
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
22
20
|
private _deleteButton;
|
|
21
|
+
private _handleDeleteButtonClick;
|
|
23
22
|
protected render(): TemplateResult;
|
|
24
23
|
}
|
|
25
24
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/chip/chip/chip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"chip.component.d.ts","sourceRoot":"","sources":["../../../../src/elements/chip/chip/chip.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,KAAK,CAAC;AAYb,OAAO,6BAA6B,CAAC;AACrC,OAAO,6BAA6B,CAAC;;AAIrC;;;;;GAKG;AACH,qBAEM,cAAc,CAAC,CAAC,GAAG,MAAM,CAAE,SAAQ,mBAExC;IACC,gBAAgC,IAAI,YAAY;IAChD,OAAuB,MAAM,EAAE,cAAc,CAAS;IACtD,gBAAuB,MAAM;;MAElB;IAEX,sEAAsE;IACtE,SAA4B,KAAK,EAAE,CAAC,GAAG,IAAI,CAAQ;IAEnD,OAAO,CAAC,SAAS,CAAmC;cAEjC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAYzD,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAQzE,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,wBAAwB;cAKb,MAAM,IAAI,cAAc;CAmB5C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAE7B,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF"}
|