@sbb-esta/lyne-elements 3.0.0-next.0 → 3.0.0-next.2
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 +19 -22
- package/action-group/action-group.component.js +3 -5
- package/alert/alert/alert.component.d.ts +5 -7
- package/alert/alert/alert.component.d.ts.map +1 -1
- package/alert/alert/alert.component.js +69 -84
- package/alert/alert-group/alert-group.component.js +2 -3
- package/autocomplete/autocomplete-base-element.js +83 -95
- package/autocomplete/autocomplete.component.js +28 -33
- package/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +42 -50
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -1
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +4 -5
- package/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +17 -20
- package/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
- 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 +21 -24
- package/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +5 -5
- package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +27 -31
- package/button/mini-button/mini-button.component.js +1 -1
- package/button/mini-button-group/mini-button-group.component.js +1 -2
- package/calendar/calendar.component.d.ts +0 -5
- package/calendar/calendar.component.d.ts.map +1 -1
- package/calendar/calendar.component.js +129 -147
- package/card/card/card.component.js +12 -12
- package/card/card-badge/card-badge.component.js +17 -17
- package/card/common/card-action-common.js +20 -22
- package/checkbox/checkbox/checkbox.component.js +17 -20
- package/checkbox/checkbox-group/checkbox-group.component.js +39 -52
- package/checkbox/checkbox-panel/checkbox-panel.component.js +18 -21
- package/checkbox/common/checkbox-common.js +13 -15
- package/chip/chip-group/chip-group.component.js +66 -80
- package/clock/clock.component.js +50 -60
- package/container/container/container.component.js +28 -29
- package/container/sticky-bar/sticky-bar.component.js +25 -26
- package/core/a11y/focus-trap-controller.js +11 -14
- package/core/a11y/input-modality-detector.js +15 -16
- package/core/a11y/interactivity-checker.js +10 -10
- package/core/a11y/live-announcer.js +12 -14
- package/core/base-elements/button-base-element.js +58 -63
- package/core/base-elements/link-base-element.js +3 -6
- package/core/base-elements/open-close-base-element.js +1 -1
- package/core/config/config.d.ts.map +1 -1
- package/core/controllers/escapable-overlay-controller.js +10 -12
- package/core/controllers/id-reference-controller.js +13 -14
- package/core/controllers/inert-controller.js +8 -10
- package/core/controllers/slot-state-controller.js +16 -26
- package/core/datetime/date-adapter.d.ts +1 -1
- package/core/datetime/date-adapter.d.ts.map +1 -1
- package/core/datetime/date-adapter.js +21 -21
- package/core/datetime/native-date-adapter.d.ts +1 -1
- package/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/core/datetime/native-date-adapter.js +28 -28
- package/core/decorators/force-type.js +4 -5
- package/core/decorators/id-reference.js +34 -37
- package/core/decorators/plain-date.js +16 -19
- package/core/dom/breakpoint.js +8 -8
- package/core/eventing/event-emitter.js +4 -5
- package/core/i18n/i18n.js +41 -41
- package/core/mixins/element-internals-mixin.d.ts +21 -0
- package/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/core/mixins/element-internals-mixin.js +109 -23
- package/core/mixins/form-associated-checkbox-mixin.js +32 -37
- package/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/core/mixins/form-associated-input-mixin.js +69 -93
- package/core/mixins/form-associated-mixin.js +32 -35
- package/core/mixins/form-associated-radio-button-mixin.js +3 -5
- package/core/mixins/hydration-mixin.js +12 -13
- package/core/mixins/named-slot-list-mixin.js +32 -37
- package/core/mixins/panel-mixin.js +26 -27
- package/core/mixins/readonly-mixin.d.ts.map +1 -1
- package/core/mixins/readonly-mixin.js +10 -11
- package/core/mixins.js +27 -25
- package/core/overlay/position.js +23 -23
- package/core/styles/core/mediaqueries.scss +1 -1
- package/core/styles/core.scss +70 -37
- package/core/styles/mixins/table.scss +1 -24
- package/core/styles/mixins/typo.scss +0 -1
- package/core/testing/event-spy.js +2 -4
- package/core/testing/wait-for-image-ready.js +8 -9
- package/core/testing/wait-for-render.js +8 -9
- package/core.css +29 -1
- package/custom-elements.json +5804 -3207
- package/date-input/date-input.component.d.ts +16 -1
- package/date-input/date-input.component.d.ts.map +1 -1
- package/date-input/date-input.component.js +71 -58
- package/datepicker/common/datepicker-button.d.ts +31 -20
- package/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/datepicker/common/datepicker-button.js +79 -74
- package/datepicker/common.d.ts +0 -1
- package/datepicker/common.d.ts.map +1 -1
- package/datepicker/common.js +3 -5
- package/datepicker/datepicker/datepicker.component.d.ts +23 -102
- package/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/datepicker/datepicker/datepicker.component.js +91 -233
- package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -2
- package/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts.map +1 -1
- package/datepicker/datepicker-next-day/datepicker-next-day.component.js +27 -18
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -2
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts.map +1 -1
- package/datepicker/datepicker-previous-day/datepicker-previous-day.component.js +27 -18
- package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +6 -26
- package/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
- package/datepicker/datepicker-toggle/datepicker-toggle.component.js +36 -145
- package/datepicker.js +9 -11
- package/development/accordion/accordion.component.js +4 -7
- package/development/action-group/action-group.component.js +3 -5
- package/development/alert/alert/alert.component.d.ts +5 -7
- package/development/alert/alert/alert.component.d.ts.map +1 -1
- package/development/alert/alert/alert.component.js +34 -52
- package/development/alert/alert-group/alert-group.component.js +2 -3
- package/development/autocomplete/autocomplete-base-element.js +20 -32
- package/development/autocomplete/autocomplete.component.js +7 -12
- package/development/autocomplete-grid/autocomplete-grid/autocomplete-grid.component.js +10 -18
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button/autocomplete-grid-button.component.js +4 -9
- package/development/autocomplete-grid/autocomplete-grid-cell/autocomplete-grid-cell.component.js +1 -1
- package/development/autocomplete-grid/autocomplete-grid-optgroup/autocomplete-grid-optgroup.component.js +4 -7
- package/development/autocomplete-grid/autocomplete-grid-option/autocomplete-grid-option.component.d.ts +1 -1
- 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 +4 -7
- package/development/autocomplete-grid/autocomplete-grid-row/autocomplete-grid-row.component.js +2 -2
- package/development/breadcrumb/breadcrumb/breadcrumb.component.js +1 -1
- package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +5 -9
- package/development/button/accent-button/accent-button.component.js +1 -1
- package/development/button/accent-button-link/accent-button-link.component.js +1 -1
- package/development/button/accent-button-static/accent-button-static.component.js +1 -1
- package/development/button/button/button.component.js +1 -1
- package/development/button/button-link/button-link.component.js +1 -1
- package/development/button/button-static/button-static.component.js +1 -1
- package/development/button/common/button-common.js +1 -1
- package/development/button/mini-button/mini-button.component.js +1 -1
- package/development/button/mini-button-group/mini-button-group.component.js +2 -3
- package/development/button/secondary-button/secondary-button.component.js +1 -1
- package/development/button/secondary-button-link/secondary-button-link.component.js +1 -1
- package/development/button/secondary-button-static/secondary-button-static.component.js +1 -1
- package/development/button/transparent-button/transparent-button.component.js +1 -1
- package/development/button/transparent-button-link/transparent-button-link.component.js +1 -1
- package/development/button/transparent-button-static/transparent-button-static.component.js +1 -1
- package/development/calendar/calendar.component.d.ts +0 -5
- package/development/calendar/calendar.component.d.ts.map +1 -1
- package/development/calendar/calendar.component.js +20 -44
- package/development/card/card/card.component.js +1 -1
- package/development/card/card-badge/card-badge.component.js +2 -2
- package/development/card/card-button/card-button.component.js +1 -1
- package/development/card/card-link/card-link.component.js +1 -1
- package/development/card/common/card-action-common.js +4 -6
- package/development/checkbox/checkbox/checkbox.component.js +2 -5
- package/development/checkbox/checkbox-group/checkbox-group.component.js +8 -21
- package/development/checkbox/checkbox-panel/checkbox-panel.component.js +2 -5
- package/development/checkbox/common/checkbox-common.js +3 -5
- package/development/chip/chip/chip.component.js +1 -1
- package/development/chip/chip-group/chip-group.component.js +18 -32
- package/development/chip-label/chip-label.component.js +1 -1
- package/development/clock/clock.component.js +23 -33
- package/development/container/container/container.component.js +2 -3
- package/development/container/sticky-bar/sticky-bar.component.js +3 -4
- package/development/core/a11y/arrow-navigation.js +1 -1
- package/development/core/a11y/fake-event-detection.js +1 -1
- package/development/core/a11y/focus-trap-controller.js +6 -9
- package/development/core/a11y/focus-visible-within-controller.js +1 -1
- package/development/core/a11y/input-modality-detector.js +2 -3
- package/development/core/a11y/interactivity-checker.js +2 -2
- package/development/core/a11y/live-announcer.js +6 -8
- package/development/core/base-elements/action-base-element.js +2 -3
- package/development/core/base-elements/button-base-element.js +6 -11
- package/development/core/base-elements/link-base-element.js +4 -7
- package/development/core/base-elements/open-close-base-element.js +2 -2
- package/development/core/config/config.d.ts.map +1 -1
- package/development/core/config/config.js +1 -1
- package/development/core/controllers/escapable-overlay-controller.js +3 -5
- package/development/core/controllers/id-reference-controller.js +2 -3
- package/development/core/controllers/inert-controller.js +4 -6
- package/development/core/controllers/language-controller.js +1 -1
- package/development/core/controllers/media-matchers-controller.js +1 -1
- package/development/core/controllers/slot-state-controller.js +8 -18
- package/development/core/datetime/date-adapter.d.ts +1 -1
- package/development/core/datetime/date-adapter.d.ts.map +1 -1
- package/development/core/datetime/date-adapter.js +5 -5
- package/development/core/datetime/native-date-adapter.d.ts +1 -1
- package/development/core/datetime/native-date-adapter.d.ts.map +1 -1
- package/development/core/datetime/native-date-adapter.js +4 -4
- package/development/core/decorators/force-type.js +3 -4
- package/development/core/decorators/get-override.js +1 -1
- package/development/core/decorators/handle-distinct-change.js +1 -1
- package/development/core/decorators/host-attributes.js +1 -1
- package/development/core/decorators/id-reference.js +4 -7
- package/development/core/decorators/plain-date.js +5 -8
- package/development/core/decorators/slot-state.js +1 -1
- package/development/core/dom/animation.js +1 -1
- package/development/core/dom/breakpoint.js +2 -2
- package/development/core/dom/host-context.js +1 -1
- package/development/core/dom/platform.js +1 -1
- package/development/core/dom/scroll.js +1 -1
- package/development/core/dom/set-or-remove-attribute.js +1 -1
- package/development/core/eventing/composed-path-has-attribute.js +1 -1
- package/development/core/eventing/event-emitter.js +2 -3
- package/development/core/eventing/form-element-handlers.js +1 -1
- package/development/core/eventing/forward-event.js +1 -1
- package/development/core/eventing/throttle.js +1 -1
- package/development/core/i18n/i18n.js +18 -18
- package/development/core/mixins/animation-complete-mixin.js +1 -1
- package/development/core/mixins/disabled-mixin.js +1 -1
- package/development/core/mixins/element-internals-mixin.d.ts +21 -0
- package/development/core/mixins/element-internals-mixin.d.ts.map +1 -1
- package/development/core/mixins/element-internals-mixin.js +123 -2
- package/development/core/mixins/form-associated-checkbox-mixin.js +6 -9
- package/development/core/mixins/form-associated-input-mixin.d.ts.map +1 -1
- package/development/core/mixins/form-associated-input-mixin.js +29 -59
- package/development/core/mixins/form-associated-mixin.js +6 -9
- package/development/core/mixins/form-associated-radio-button-mixin.js +7 -9
- package/development/core/mixins/hydration-mixin.js +3 -4
- package/development/core/mixins/named-slot-list-mixin.js +4 -7
- package/development/core/mixins/negative-mixin.js +1 -1
- package/development/core/mixins/panel-mixin.js +2 -3
- package/development/core/mixins/readonly-mixin.d.ts.map +1 -1
- package/development/core/mixins/readonly-mixin.js +4 -6
- package/development/core/mixins/required-mixin.js +1 -1
- package/development/core/mixins/update-scheduler-mixin.js +1 -1
- package/development/core/mixins.js +4 -2
- package/development/core/overlay/overlay-option-panel.js +1 -1
- package/development/core/overlay/overlay-trigger-attributes.js +1 -1
- package/development/core/overlay/overlay.js +1 -1
- package/development/core/overlay/position.js +5 -5
- package/development/core/testing/event-spy.js +3 -5
- package/development/core/testing/mocha-extensions.js +1 -1
- package/development/core/testing/wait-for-condition.js +1 -1
- package/development/core/testing/wait-for-image-ready.js +2 -3
- package/development/core/testing/wait-for-render.js +2 -3
- package/development/date-input/date-input.component.d.ts +16 -1
- package/development/date-input/date-input.component.d.ts.map +1 -1
- package/development/date-input/date-input.component.js +28 -11
- package/development/datepicker/common/datepicker-button.d.ts +31 -20
- package/development/datepicker/common/datepicker-button.d.ts.map +1 -1
- package/development/datepicker/common/datepicker-button.js +103 -90
- package/development/datepicker/common.d.ts +0 -1
- package/development/datepicker/common.d.ts.map +1 -1
- package/development/datepicker/common.js +4 -6
- package/development/datepicker/datepicker/datepicker.component.d.ts +23 -102
- package/development/datepicker/datepicker/datepicker.component.d.ts.map +1 -1
- package/development/datepicker/datepicker/datepicker.component.js +94 -337
- package/development/datepicker/datepicker-next-day/datepicker-next-day.component.d.ts +2 -2
- 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 +18 -6
- package/development/datepicker/datepicker-previous-day/datepicker-previous-day.component.d.ts +2 -2
- 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 +18 -6
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts +6 -26
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.d.ts.map +1 -1
- package/development/datepicker/datepicker-toggle/datepicker-toggle.component.js +137 -224
- package/development/datepicker.js +3 -5
- package/development/dialog/dialog/dialog.component.d.ts +7 -16
- package/development/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/development/dialog/dialog/dialog.component.js +78 -149
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts +2 -2
- package/development/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/development/dialog/dialog-actions/dialog-actions.component.js +20 -17
- package/development/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
- package/development/dialog/dialog-content/dialog-content.component.js +5 -46
- package/development/dialog/dialog-title/dialog-title.component.d.ts +2 -26
- package/development/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/development/dialog/dialog-title/dialog-title.component.js +12 -179
- package/development/divider/divider.component.js +2 -2
- package/development/expansion-panel/expansion-panel/expansion-panel.component.js +9 -13
- package/development/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +2 -2
- package/development/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +5 -6
- package/development/file-selector/common/file-selector-common.js +2 -3
- package/development/file-selector/file-selector/file-selector.component.js +1 -1
- package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
- package/development/flip-card/flip-card/flip-card.component.js +7 -13
- package/development/flip-card/flip-card-details/flip-card-details.component.js +3 -4
- package/development/flip-card/flip-card-summary/flip-card-summary.component.js +3 -4
- package/development/footer/footer.component.js +1 -1
- package/development/form-error/form-error.component.js +3 -4
- package/development/form-field/form-field/form-field.component.d.ts +1 -1
- package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/development/form-field/form-field/form-field.component.js +39 -67
- 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 +6 -8
- package/development/header/common/header-action-common.js +1 -1
- package/development/header/header/header.component.js +5 -8
- package/development/header/header-button/header-button.component.js +1 -1
- package/development/header/header-link/header-link.component.js +1 -1
- package/development/icon/icon-base.d.ts +5 -3
- package/development/icon/icon-base.d.ts.map +1 -1
- package/development/icon/icon-base.js +4 -7
- package/development/icon/icon-name-mixin.js +1 -1
- package/development/icon/icon-request.js +2 -3
- package/development/icon/icon-validate.js +1 -1
- package/development/icon/icon.component.d.ts +1 -2
- package/development/icon/icon.component.d.ts.map +1 -1
- package/development/icon/icon.component.js +8 -19
- package/development/image/image.component.js +7 -9
- package/development/journey-header/journey-header.component.d.ts +5 -5
- package/development/journey-header/journey-header.component.d.ts.map +1 -1
- package/development/journey-header/journey-header.component.js +26 -40
- package/development/lead-container/lead-container.component.js +1 -1
- package/development/link/block-link/block-link.component.js +1 -1
- package/development/link/block-link-button/block-link-button.component.js +1 -1
- package/development/link/block-link-static/block-link-static.component.js +1 -1
- package/development/link/common/block-link-common.js +1 -1
- package/development/link/common/inline-link-common.js +1 -1
- package/development/link/link/link.component.js +1 -1
- package/development/link/link-button/link-button.component.js +1 -1
- package/development/link/link-static/link-static.component.js +1 -1
- package/development/link-common-DPLJx5Uo.js +1 -1
- package/development/link-list/common/link-list-base.js +1 -1
- package/development/link-list/link-list/link-list.component.js +1 -1
- package/development/link-list/link-list-anchor/link-list-anchor.component.js +1 -1
- package/development/loading-indicator/loading-indicator.component.js +1 -1
- package/development/loading-indicator-circle/loading-indicator-circle.component.js +1 -1
- package/development/logo/logo.component.js +1 -1
- package/development/map-container/map-container.component.js +2 -3
- package/development/menu/common/menu-action-common.js +1 -1
- package/development/menu/menu/menu.component.js +17 -25
- package/development/menu/menu-button/menu-button.component.js +1 -1
- package/development/menu/menu-link/menu-link.component.js +1 -1
- package/development/message/message.component.d.ts +4 -8
- package/development/message/message.component.d.ts.map +1 -1
- package/development/message/message.component.js +12 -54
- package/development/navigation/common/navigation-action-common.js +3 -5
- package/development/navigation/navigation/navigation.component.js +19 -35
- package/development/navigation/navigation-button/navigation-button.component.js +1 -1
- package/development/navigation/navigation-link/navigation-link.component.js +1 -1
- package/development/navigation/navigation-list/navigation-list.component.js +1 -1
- package/development/navigation/navigation-marker/navigation-marker.component.js +4 -6
- package/development/navigation/navigation-section/navigation-section.component.d.ts +1 -1
- package/development/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/development/navigation/navigation-section/navigation-section.component.js +27 -37
- package/development/notification/notification.component.d.ts +7 -9
- package/development/notification/notification.component.d.ts.map +1 -1
- package/development/notification/notification.component.js +47 -77
- package/development/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/development/option/optgroup/optgroup-base-element.js +8 -14
- package/development/option/optgroup/optgroup.component.js +6 -10
- package/development/option/option/option-base-element.js +3 -4
- package/development/option/option/option.component.js +7 -10
- package/development/overlay/overlay-base-element.d.ts +24 -6
- package/development/overlay/overlay-base-element.d.ts.map +1 -1
- package/development/overlay/overlay-base-element.js +114 -15
- package/development/overlay/overlay.component.d.ts +2 -12
- package/development/overlay/overlay.component.d.ts.map +1 -1
- package/development/overlay/overlay.component.js +33 -98
- package/development/paginator/common/paginator-common.js +1 -1
- package/development/paginator/compact-paginator/compact-paginator.component.js +1 -1
- package/development/paginator/paginator/paginator.component.js +2 -3
- package/development/popover/popover/popover.component.d.ts +45 -34
- package/development/popover/popover/popover.component.d.ts.map +1 -1
- package/development/popover/popover/popover.component.js +215 -172
- package/development/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/development/popover/popover.js +2 -1
- package/development/popover.js +2 -1
- package/development/radio-button/common/radio-button-common.js +6 -10
- package/development/radio-button/radio-button/radio-button.component.js +2 -5
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/development/radio-button/radio-button-group/radio-button-group.component.js +8 -24
- package/development/radio-button/radio-button-panel/radio-button-panel.component.js +3 -7
- package/development/screen-reader-only/screen-reader-only.component.js +1 -1
- package/development/select/select.component.js +26 -49
- package/development/selection-expansion-panel/selection-expansion-panel.component.js +7 -11
- package/development/sidebar/icon-sidebar/icon-sidebar.component.js +1 -1
- package/development/sidebar/icon-sidebar-button/icon-sidebar-button.component.js +1 -1
- package/development/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +4 -7
- package/development/sidebar/icon-sidebar-content/icon-sidebar-content.component.js +1 -1
- package/development/sidebar/icon-sidebar-link/icon-sidebar-link.component.js +1 -1
- package/development/sidebar/sidebar/sidebar.component.js +9 -16
- 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 +3 -8
- package/development/sidebar/sidebar-container/sidebar-container.component.js +9 -13
- package/development/sidebar/sidebar-content/sidebar-content.component.js +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.d.ts +2 -0
- package/development/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
- package/development/sidebar/sidebar-title/sidebar-title.component.js +3 -9
- package/development/signet/signet.component.js +1 -1
- package/development/skiplink-list/skiplink-list.component.d.ts.map +1 -1
- package/development/skiplink-list/skiplink-list.component.js +19 -10
- package/development/slider/slider.component.js +4 -6
- package/development/status/status.component.d.ts +4 -7
- package/development/status/status.component.d.ts.map +1 -1
- package/development/status/status.component.js +23 -56
- package/development/stepper/step/step.component.d.ts +2 -1
- package/development/stepper/step/step.component.d.ts.map +1 -1
- package/development/stepper/step/step.component.js +16 -15
- package/development/stepper/step-label/step-label.component.d.ts +3 -3
- package/development/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/development/stepper/step-label/step-label.component.js +16 -17
- package/development/stepper/stepper/stepper.component.js +16 -29
- package/development/table/table-wrapper/table-wrapper.component.js +2 -7
- package/development/tabs/tab/tab.component.js +1 -1
- package/development/tabs/tab-group/tab-group.component.js +23 -38
- package/development/tabs/tab-label/tab-label.component.js +1 -1
- package/development/tag/tag/tag.component.js +7 -13
- package/development/tag/tag-group/tag-group.component.js +5 -13
- package/development/teaser/teaser.component.d.ts +6 -10
- package/development/teaser/teaser.component.d.ts.map +1 -1
- package/development/teaser/teaser.component.js +48 -76
- package/development/teaser-hero/teaser-hero.component.js +1 -1
- package/development/teaser-product/common/teaser-product-common.js +1 -1
- package/development/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/development/teaser-product/teaser-product-static/teaser-product-static.component.js +1 -1
- package/development/time-input/time-input.component.js +10 -14
- package/development/timetable-occupancy/timetable-occupancy.component.js +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
- package/development/timetable-occupancy-icon/timetable-occupancy-icon.component.js +2 -5
- package/development/title/title-base.d.ts +0 -8
- package/development/title/title-base.d.ts.map +1 -1
- package/development/title/title-base.js +17 -50
- package/development/title/title.component.d.ts +2 -0
- package/development/title/title.component.d.ts.map +1 -1
- package/development/title/title.component.js +9 -14
- package/development/toast/toast.component.d.ts.map +1 -1
- package/development/toast/toast.component.js +7 -16
- package/development/toggle/toggle/toggle.component.js +28 -30
- package/development/toggle/toggle-option/toggle-option.component.d.ts +1 -1
- package/development/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/development/toggle/toggle-option/toggle-option.component.js +12 -19
- package/development/toggle-check/toggle-check.component.js +1 -1
- package/development/train/train/train.component.js +1 -1
- package/development/train/train-blocked-passage/train-blocked-passage.component.js +1 -1
- package/development/train/train-formation/train-formation.component.js +5 -7
- package/development/train/train-wagon/train-wagon.component.js +1 -1
- package/development/visual-checkbox/visual-checkbox.component.js +1 -1
- package/dialog/dialog/dialog.component.d.ts +7 -16
- package/dialog/dialog/dialog.component.d.ts.map +1 -1
- package/dialog/dialog/dialog.component.js +57 -87
- package/dialog/dialog-actions/dialog-actions.component.d.ts +2 -2
- package/dialog/dialog-actions/dialog-actions.component.d.ts.map +1 -1
- package/dialog/dialog-actions/dialog-actions.component.js +16 -16
- package/dialog/dialog-content/dialog-content.component.d.ts.map +1 -1
- package/dialog/dialog-content/dialog-content.component.js +14 -19
- package/dialog/dialog-title/dialog-title.component.d.ts +2 -26
- package/dialog/dialog-title/dialog-title.component.d.ts.map +1 -1
- package/dialog/dialog-title/dialog-title.component.js +16 -111
- package/divider/divider.component.js +3 -3
- package/expansion-panel/expansion-panel/expansion-panel.component.js +5 -9
- package/expansion-panel/expansion-panel-content/expansion-panel-content.component.js +1 -1
- package/expansion-panel/expansion-panel-header/expansion-panel-header.component.js +30 -31
- package/file-selector/common/file-selector-common.js +1 -2
- package/flip-card/flip-card/flip-card.component.js +48 -54
- package/flip-card/flip-card-details/flip-card-details.component.js +15 -16
- package/flip-card/flip-card-summary/flip-card-summary.component.js +19 -20
- package/form-error/form-error.component.js +13 -14
- package/form-field/form-field/form-field.component.d.ts +1 -1
- package/form-field/form-field/form-field.component.d.ts.map +1 -1
- package/form-field/form-field/form-field.component.js +149 -168
- package/form-field/form-field-clear/form-field-clear.component.d.ts.map +1 -1
- package/form-field/form-field-clear/form-field-clear.component.js +19 -21
- package/header/header/header.component.js +26 -29
- package/icon/icon-base.d.ts +5 -3
- package/icon/icon-base.d.ts.map +1 -1
- package/icon/icon-base.js +32 -34
- package/icon/icon-request.js +10 -11
- package/icon/icon.component.d.ts +1 -2
- package/icon/icon.component.d.ts.map +1 -1
- package/icon/icon.component.js +37 -37
- package/icon-sidebar-button-common-CM-ueEhH.js +7 -0
- package/image/image.component.js +4 -6
- package/journey-header/journey-header.component.d.ts +5 -5
- package/journey-header/journey-header.component.d.ts.map +1 -1
- package/journey-header/journey-header.component.js +50 -63
- package/map-container/map-container.component.js +1 -2
- package/menu/menu/menu.component.js +47 -55
- package/message/message.component.d.ts +4 -8
- package/message/message.component.d.ts.map +1 -1
- package/message/message.component.js +18 -47
- package/navigation/common/navigation-action-common.js +19 -21
- package/navigation/navigation/navigation.component.js +73 -92
- package/navigation/navigation-marker/navigation-marker.component.js +26 -28
- package/navigation/navigation-section/navigation-section.component.d.ts +1 -1
- package/navigation/navigation-section/navigation-section.component.d.ts.map +1 -1
- package/navigation/navigation-section/navigation-section.component.js +72 -82
- package/notification/notification.component.d.ts +7 -9
- package/notification/notification.component.d.ts.map +1 -1
- package/notification/notification.component.js +77 -95
- package/option/optgroup/optgroup-base-element.d.ts.map +1 -1
- package/option/optgroup/optgroup-base-element.js +36 -38
- package/option/optgroup/optgroup.component.js +16 -20
- package/option/option/option-base-element.js +3 -4
- package/option/option/option.component.js +26 -29
- package/overlay/overlay-base-element.d.ts +24 -6
- package/overlay/overlay-base-element.d.ts.map +1 -1
- package/overlay/overlay-base-element.js +98 -51
- package/overlay/overlay.component.d.ts +2 -12
- package/overlay/overlay.component.d.ts.map +1 -1
- package/overlay/overlay.component.js +57 -95
- package/package.json +1 -1
- package/paginator/paginator/paginator.component.js +3 -4
- package/popover/popover/popover.component.d.ts +45 -34
- package/popover/popover/popover.component.d.ts.map +1 -1
- package/popover/popover/popover.component.js +194 -168
- package/popover/popover-trigger/popover-trigger.component.js +1 -1
- package/popover/popover.js +2 -1
- package/popover.js +5 -4
- package/radio-button/common/radio-button-common.js +11 -15
- package/radio-button/radio-button/radio-button.component.js +16 -19
- package/radio-button/radio-button-group/radio-button-group.component.d.ts +1 -1
- package/radio-button/radio-button-group/radio-button-group.component.d.ts.map +1 -1
- package/radio-button/radio-button-group/radio-button-group.component.js +27 -43
- package/radio-button/radio-button-panel/radio-button-panel.component.js +33 -37
- package/select/select.component.js +94 -117
- package/selection-expansion-panel/selection-expansion-panel.component.js +35 -39
- package/sidebar/common.js +1 -1
- package/sidebar/icon-sidebar-container/icon-sidebar-container.component.js +10 -13
- package/sidebar/sidebar/sidebar.component.js +62 -69
- 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/sidebar/sidebar-close-button/sidebar-close-button.component.js +18 -18
- package/sidebar/sidebar-container/sidebar-container.component.js +29 -33
- package/sidebar/sidebar-title/sidebar-title.component.d.ts +2 -0
- package/sidebar/sidebar-title/sidebar-title.component.d.ts.map +1 -1
- package/sidebar/sidebar-title/sidebar-title.component.js +16 -16
- package/sidebar.js +1 -1
- package/skiplink-list/skiplink-list.component.d.ts.map +1 -1
- package/skiplink-list/skiplink-list.component.js +36 -39
- package/slider/slider.component.js +11 -13
- package/standard-theme.css +29 -26
- package/status/status.component.d.ts +4 -7
- package/status/status.component.d.ts.map +1 -1
- package/status/status.component.js +34 -50
- package/stepper/step/step.component.d.ts +2 -1
- package/stepper/step/step.component.d.ts.map +1 -1
- package/stepper/step/step.component.js +26 -24
- package/stepper/step-label/step-label.component.d.ts +3 -3
- package/stepper/step-label/step-label.component.d.ts.map +1 -1
- package/stepper/step-label/step-label.component.js +15 -15
- package/stepper/stepper/stepper.component.js +72 -86
- package/table/table-wrapper/table-wrapper.component.js +17 -18
- package/table.css +0 -25
- package/tabs/tab-group/tab-group.component.js +77 -92
- package/tabs/tab-label/tab-label.component.js +12 -12
- package/tag/tag/tag.component.js +49 -55
- package/tag/tag-group/tag-group.component.js +37 -45
- package/teaser/teaser.component.d.ts +6 -10
- package/teaser/teaser.component.d.ts.map +1 -1
- package/teaser/teaser.component.js +45 -68
- package/teaser-product/common.js +1 -1
- package/teaser-product/teaser-product/teaser-product.component.js +1 -1
- package/teaser-product-common-C8oSkIxy.js +5 -0
- package/teaser-product.js +1 -1
- package/time-input/time-input.component.js +29 -33
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.d.ts.map +1 -1
- package/timetable-occupancy-icon/timetable-occupancy-icon.component.js +22 -25
- package/title/title-base.d.ts +0 -8
- package/title/title-base.d.ts.map +1 -1
- package/title/title-base.js +34 -53
- package/title/title.component.d.ts +2 -0
- package/title/title.component.d.ts.map +1 -1
- package/title/title.component.js +9 -9
- package/toast/toast.component.d.ts.map +1 -1
- package/toast/toast.component.js +6 -9
- package/toggle/toggle/toggle.component.js +36 -40
- package/toggle/toggle-option/toggle-option.component.d.ts +1 -1
- package/toggle/toggle-option/toggle-option.component.d.ts.map +1 -1
- package/toggle/toggle-option/toggle-option.component.js +44 -51
- package/train/train-formation/train-formation.component.js +41 -43
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables.scss +0 -530
- package/core/styles/node_modules_@sbb-esta_lyne-design-tokens_dist_scss_sbb-variables_css--mixin.scss +0 -1123
- package/datepicker/common/datepicker-association-controllers.d.ts +0 -21
- package/datepicker/common/datepicker-association-controllers.d.ts.map +0 -1
- package/datepicker/common/datepicker-association-controllers.js +0 -58
- package/development/datepicker/common/datepicker-association-controllers.d.ts +0 -21
- package/development/datepicker/common/datepicker-association-controllers.d.ts.map +0 -1
- package/development/datepicker/common/datepicker-association-controllers.js +0 -82
- package/icon-sidebar-button-common-DG8bnrBu.js +0 -7
- package/teaser-product-common-CpMAlYEp.js +0 -5
|
@@ -7,14 +7,14 @@ import { __esDecorate as h, __runInitializers as c } from "tslib";
|
|
|
7
7
|
import { css as S, LitElement as E, html as I } from "lit";
|
|
8
8
|
import { customElement as T, property as y } from "lit/decorators.js";
|
|
9
9
|
import { isLean as D } from "../../core/dom.js";
|
|
10
|
-
const L = S`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-card-background-color: var(--sbb-color-white);--sbb-card-border-radius: var(--sbb-border-radius-4x);--sbb-card-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-1x) );--sbb-card-animation-easing: var(--sbb-animation-easing);--sbb-card-border-color: transparent;--sbb-card-border-style: solid;--sbb-card-hover-shift: 0;--sbb-focus-outline-color: var(--sbb-focus-outline-color-default)}@media (forced-colors: active){:host{--sbb-card-border-color: CanvasText;--sbb-card-border-width: var(--sbb-border-width-2x)}}:host([color=milk]){--sbb-card-background-color: var(--sbb-color-milk);--sbb-card-border-color: transparent}:host([color=transparent-bordered]){--sbb-card-background-color: transparent;--sbb-card-border-color: var(--sbb-color-cloud);--sbb-card-border-width: var(--sbb-border-width-1x);--sbb-focus-outline-color: inherit}:host([color=transparent-bordered-dashed]){--sbb-card-background-color: transparent;--sbb-card-border-color: var(--sbb-color-cement);--sbb-card-border-width: var(--sbb-border-width-1x);--sbb-card-border-style: dashed;--sbb-focus-outline-color: inherit}:host([data-has-active-action]){--sbb-card-border-color: var(--sbb-color-charcoal);--sbb-card-border-width: var(--sbb-border-width-2x);--sbb-card-border-style: solid}@media (forced-colors: active){:host([data-has-active-action]){--sbb-card-border-color: Highlight}}:host([size=xs]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-fixed-3x);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=s]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=m]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=m][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-responsive-xxxs)}:host([size=l]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-fixed-4x);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=l][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-fixed-4x)}:host([size=xl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=xl][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-responsive-xxs)}:host([size=xxl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=xxxl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-l);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-l);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}@media (forced-colors: active){:host([data-has-action]){--sbb-title-text-color-normal-override: var(--sbb-card-color)}}@media (any-hover: hover){:host([data-has-action]:not([data-has-active-action]):hover){--sbb-card-hover-shift: -.125rem}:host([data-has-action]:not([data-has-active-action]):hover) .sbb-card{box-shadow:var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-hard-2-color),var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-hard-1-color)}}@media (any-hover: hover) and (forced-colors: active){:host([data-has-action]:not([data-has-active-action]):hover){--sbb-card-border-color: Highlight}}@media (forced-colors: active){:host([data-has-action][data-action-role=button]){--sbb-card-color: ButtonText}}@media (forced-colors: active){:host([data-has-action][data-action-role=link]){--sbb-card-color: LinkText}}.sbb-card{width:100%;height:100%;display:block;position:relative;padding-inline:var(--sbb-card-padding-inline);padding-block:var(--sbb-card-padding-block-start) var(--sbb-card-padding-block-end);border-radius:var(--sbb-card-border-radius);background-color:var(--sbb-card-background-color);box-shadow:none;transition:box-shadow var(--sbb-card-animation-duration) var(--sbb-card-animation-easing);color:var(--sbb-card-color)}.sbb-card:after{content:"";position:absolute;
|
|
10
|
+
const L = S`*,:before,:after{box-sizing:border-box}:host{display:block;--sbb-card-background-color: var(--sbb-color-white);--sbb-card-border-radius: var(--sbb-border-radius-4x);--sbb-card-animation-duration: var( --sbb-disable-animation-duration, var(--sbb-animation-duration-1x) );--sbb-card-animation-easing: var(--sbb-animation-easing);--sbb-card-border-color: transparent;--sbb-card-border-style: solid;--sbb-card-hover-shift: 0;--sbb-focus-outline-color: var(--sbb-focus-outline-color-default)}@media (forced-colors: active){:host{--sbb-card-border-color: CanvasText;--sbb-card-border-width: var(--sbb-border-width-2x)}}:host([color=milk]){--sbb-card-background-color: var(--sbb-color-milk);--sbb-card-border-color: transparent}:host([color=transparent-bordered]){--sbb-card-background-color: transparent;--sbb-card-border-color: var(--sbb-color-cloud);--sbb-card-border-width: var(--sbb-border-width-1x);--sbb-focus-outline-color: inherit}:host([color=transparent-bordered-dashed]){--sbb-card-background-color: transparent;--sbb-card-border-color: var(--sbb-color-cement);--sbb-card-border-width: var(--sbb-border-width-1x);--sbb-card-border-style: dashed;--sbb-focus-outline-color: inherit}:host([data-has-active-action]){--sbb-card-border-color: var(--sbb-color-charcoal);--sbb-card-border-width: var(--sbb-border-width-2x);--sbb-card-border-style: solid}@media (forced-colors: active){:host([data-has-active-action]){--sbb-card-border-color: Highlight}}:host([size=xs]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-fixed-3x);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=s]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=m]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=m][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-responsive-xxxs)}:host([size=l]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-fixed-4x);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=l][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-fixed-4x)}:host([size=xl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-xxs);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=xl][data-has-card-badge]){--sbb-card-padding-block-start: var(--sbb-spacing-fixed-6x);--sbb-card-padding-block-end: var(--sbb-spacing-responsive-xxs)}:host([size=xxl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-s);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}:host([size=xxxl]){--sbb-card-padding-inline: var(--sbb-spacing-responsive-l);--sbb-card-padding-block-start: var(--sbb-spacing-responsive-l);--sbb-card-padding-block-end: var(--sbb-card-padding-block-start)}@media (forced-colors: active){:host([data-has-action]){--sbb-title-text-color-normal-override: var(--sbb-card-color)}}@media (any-hover: hover){:host([data-has-action]:not([data-has-active-action]):hover){--sbb-card-hover-shift: -.125rem}:host([data-has-action]:not([data-has-active-action]):hover) .sbb-card{box-shadow:var(--sbb-shadow-elevation-level-9-shadow-2-offset-x) var(--sbb-shadow-elevation-level-9-shadow-2-offset-y) var(--sbb-shadow-elevation-level-9-shadow-2-blur) var(--sbb-shadow-elevation-level-9-shadow-2-spread) var(--sbb-shadow-elevation-level-9-hard-2-color),var(--sbb-shadow-elevation-level-9-shadow-1-offset-x) var(--sbb-shadow-elevation-level-9-shadow-1-offset-y) var(--sbb-shadow-elevation-level-9-shadow-1-blur) var(--sbb-shadow-elevation-level-9-shadow-1-spread) var(--sbb-shadow-elevation-level-9-hard-1-color)}}@media (any-hover: hover) and (forced-colors: active){:host([data-has-action]:not([data-has-active-action]):hover){--sbb-card-border-color: Highlight}}@media (forced-colors: active){:host([data-has-action][data-action-role=button]){--sbb-card-color: ButtonText}}@media (forced-colors: active){:host([data-has-action][data-action-role=link]){--sbb-card-color: LinkText}}.sbb-card{width:100%;height:100%;display:block;position:relative;padding-inline:var(--sbb-card-padding-inline);padding-block:var(--sbb-card-padding-block-start) var(--sbb-card-padding-block-end);border-radius:var(--sbb-card-border-radius);background-color:var(--sbb-card-background-color);box-shadow:none;transition:box-shadow var(--sbb-card-animation-duration) var(--sbb-card-animation-easing);color:var(--sbb-card-color)}.sbb-card:after{content:"";position:absolute;inset:0;background-color:transparent;border:var(--sbb-card-border-width) var(--sbb-card-border-style) var(--sbb-card-border-color);border-radius:var(--sbb-card-border-radius);pointer-events:none}.sbb-card__wrapper{display:block;height:100%}:host([data-has-action]) .sbb-card__wrapper{pointer-events:none;transform:translateY(var(--sbb-card-hover-shift));transition:transform var(--sbb-card-animation-duration) var(--sbb-card-animation-easing)}.sbb-card__badge-wrapper{overflow:hidden;position:absolute;inset:0;inset-block-end:unset;border-start-start-radius:var(--sbb-card-border-radius);border-start-end-radius:var(--sbb-card-border-radius)}:host([data-has-action]) .sbb-card__badge-wrapper{pointer-events:none}:host(:not([data-has-card-badge])) .sbb-card__badge-wrapper{display:none}::slotted(sbb-title){margin-block-start:0}`;
|
|
11
11
|
let Y = (() => {
|
|
12
|
-
var
|
|
12
|
+
var t, i, b;
|
|
13
13
|
let a = [T("sbb-card")], r, s = [], e, g = E, u, x = [], m = [], f, k = [], w = [];
|
|
14
14
|
return b = class extends g {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
v(this,
|
|
17
|
+
v(this, t, c(this, x, D() ? "xs" : "m"));
|
|
18
18
|
v(this, i, (c(this, m), c(this, k, "white")));
|
|
19
19
|
c(this, w);
|
|
20
20
|
}
|
|
@@ -23,17 +23,17 @@ let Y = (() => {
|
|
|
23
23
|
* @default 'm' / 'xs' (lean)
|
|
24
24
|
*/
|
|
25
25
|
get size() {
|
|
26
|
-
return l(this,
|
|
26
|
+
return l(this, t);
|
|
27
27
|
}
|
|
28
|
-
set size(
|
|
29
|
-
p(this,
|
|
28
|
+
set size(d) {
|
|
29
|
+
p(this, t, d);
|
|
30
30
|
}
|
|
31
31
|
/** Option to set the component's background color. */
|
|
32
32
|
get color() {
|
|
33
33
|
return l(this, i);
|
|
34
34
|
}
|
|
35
|
-
set color(
|
|
36
|
-
p(this, i,
|
|
35
|
+
set color(d) {
|
|
36
|
+
p(this, i, d);
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
return I`
|
|
@@ -48,13 +48,13 @@ let Y = (() => {
|
|
|
48
48
|
</span>
|
|
49
49
|
`;
|
|
50
50
|
}
|
|
51
|
-
},
|
|
52
|
-
const
|
|
51
|
+
}, t = new WeakMap(), i = new WeakMap(), e = b, (() => {
|
|
52
|
+
const d = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
53
53
|
u = [y({ reflect: !0 })], f = [y({ reflect: !0 })], h(b, null, u, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (o) => "size" in o, get: (o) => o.size, set: (o, n) => {
|
|
54
54
|
o.size = n;
|
|
55
|
-
} }, metadata:
|
|
55
|
+
} }, metadata: d }, x, m), h(b, null, f, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (o) => "color" in o, get: (o) => o.color, set: (o, n) => {
|
|
56
56
|
o.color = n;
|
|
57
|
-
} }, metadata:
|
|
57
|
+
} }, metadata: d }, k, w), h(null, r = { value: e }, a, { kind: "class", name: e.name, metadata: d }, null, s), e = r.value, d && Object.defineProperty(e, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: d });
|
|
58
58
|
})(), b.styles = L, c(e, s), e;
|
|
59
59
|
})();
|
|
60
60
|
export {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var m = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
import { __runInitializers as
|
|
4
|
+
var u = (e, a, r) => a.has(e) || m("Cannot " + r);
|
|
5
|
+
var h = (e, a, r) => (u(e, a, "read from private field"), r ? r.call(e) : a.get(e)), f = (e, a, r) => a.has(e) ? m("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, r), i = (e, a, r, t) => (u(e, a, "write to private field"), t ? t.call(e, r) : a.set(e, r), r);
|
|
6
|
+
import { __runInitializers as l, __esDecorate as v } from "tslib";
|
|
7
7
|
import { css as _, LitElement as k, html as y } from "lit";
|
|
8
8
|
import { customElement as w, property as E } from "lit/decorators.js";
|
|
9
9
|
import { SbbElementInternalsMixin as z } from "../../core/mixins.js";
|
|
10
|
-
const S = _`*,:before,:after{box-sizing:border-box}:host{--sbb-card-badge-gap: var(--sbb-spacing-fixed-2x);display:block}:host([color=white]){--sbb-card-badge-color: var(--sbb-color-charcoal);--sbb-card-badge-background-color: var(--sbb-color-white);--sbb-card-badge-border-color: var(--sbb-color-aluminium)}:host([color=charcoal]){--sbb-card-badge-color: var(--sbb-color-white);--sbb-card-badge-background-color: var(--sbb-color-charcoal);--sbb-card-badge-border-color: transparent}.sbb-card-badge-wrapper{display:flex;position:relative;height:fit-content;justify-content:end}@media (forced-colors: active){.sbb-card-badge-wrapper:after{content:"";display:block;position:absolute;
|
|
10
|
+
const S = _`*,:before,:after{box-sizing:border-box}:host{--sbb-card-badge-gap: var(--sbb-spacing-fixed-2x);display:block}:host([color=white]){--sbb-card-badge-color: var(--sbb-color-charcoal);--sbb-card-badge-background-color: var(--sbb-color-white);--sbb-card-badge-border-color: var(--sbb-color-aluminium)}:host([color=charcoal]){--sbb-card-badge-color: var(--sbb-color-white);--sbb-card-badge-background-color: var(--sbb-color-charcoal);--sbb-card-badge-border-color: transparent}.sbb-card-badge-wrapper{display:flex;position:relative;height:fit-content;justify-content:end}@media (forced-colors: active){.sbb-card-badge-wrapper:after{content:"";display:block;position:absolute;inset:0;border-block-end:var(--sbb-border-width-1x) solid CanvasText}}.sbb-card-badge{position:relative;display:flex;inset-block-start:0;inset-inline-end:0;padding-inline:var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-3x)}.sbb-card-badge-content{--sbb-text-font-size: var(--sbb-font-size-text-xxs);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;position:relative;display:flex;align-items:center;gap:var(--sbb-card-badge-gap);color:var(--sbb-card-badge-color)}.sbb-card-badge-background{content:"";display:block;position:absolute;inset:0;background-color:var(--sbb-card-badge-background-color);border-end-start-radius:var(--sbb-border-radius-4x);margin-inline-end:calc(var(--sbb-spacing-fixed-3x) * -1);transform:skew(16deg)}:host(:dir(rtl)) .sbb-card-badge-background{transform:skew(-16deg)}.sbb-card-badge-background:before{content:"";display:block;position:absolute;inset:0;border-block-end:var(--sbb-border-width-1x) solid var(--sbb-card-badge-border-color);border-inline-start:var(--sbb-border-width-1x) solid var(--sbb-card-badge-border-color);border-end-start-radius:var(--sbb-border-radius-4x)}@media (forced-colors: active){.sbb-card-badge-background:before{border:none}}`;
|
|
11
11
|
let T = (() => {
|
|
12
|
-
var
|
|
13
|
-
let e = [w("sbb-card-badge")], a,
|
|
14
|
-
return
|
|
12
|
+
var o, s;
|
|
13
|
+
let e = [w("sbb-card-badge")], a, r = [], t, n = z(k), d, g = [], p = [];
|
|
14
|
+
return s = class extends n {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
17
|
-
f(this,
|
|
18
|
-
|
|
17
|
+
f(this, o);
|
|
18
|
+
i(this, o, l(this, g, "charcoal")), this._parentElement = l(this, p);
|
|
19
19
|
}
|
|
20
20
|
/** Color of the card badge. */
|
|
21
21
|
get color() {
|
|
22
|
-
return
|
|
22
|
+
return h(this, o);
|
|
23
23
|
}
|
|
24
24
|
set color(b) {
|
|
25
|
-
|
|
25
|
+
i(this, o, b);
|
|
26
26
|
}
|
|
27
27
|
connectedCallback() {
|
|
28
|
-
super.connectedCallback(), this.slot
|
|
28
|
+
super.connectedCallback(), this.slot ||= "badge", this._parentElement = this.parentElement, this._parentElement && this._parentElement.toggleAttribute("data-has-card-badge", !0);
|
|
29
29
|
}
|
|
30
30
|
disconnectedCallback() {
|
|
31
31
|
super.disconnectedCallback(), this._parentElement && this._parentElement.removeAttribute("data-has-card-badge"), this._parentElement = void 0;
|
|
@@ -42,12 +42,12 @@ let T = (() => {
|
|
|
42
42
|
</span>
|
|
43
43
|
`;
|
|
44
44
|
}
|
|
45
|
-
},
|
|
46
|
-
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
47
|
-
|
|
45
|
+
}, o = new WeakMap(), t = s, (() => {
|
|
46
|
+
const b = typeof Symbol == "function" && Symbol.metadata ? Object.create(n[Symbol.metadata] ?? null) : void 0;
|
|
47
|
+
d = [E({ reflect: !0 })], v(s, null, d, { kind: "accessor", name: "color", static: !1, private: !1, access: { has: (c) => "color" in c, get: (c) => c.color, set: (c, x) => {
|
|
48
48
|
c.color = x;
|
|
49
|
-
} }, metadata: b }, g, p), v(null, a = { value:
|
|
50
|
-
})(),
|
|
49
|
+
} }, metadata: b }, g, p), v(null, a = { value: t }, e, { kind: "class", name: t.name, metadata: b }, null, r), t = a.value, b && Object.defineProperty(t, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: b });
|
|
50
|
+
})(), s.role = "text", s.styles = S, l(t, r), t;
|
|
51
51
|
})();
|
|
52
52
|
export {
|
|
53
53
|
T as SbbCardBadgeElement
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { __runInitializers as
|
|
2
|
-
import { MutationController as
|
|
3
|
-
import { property as
|
|
4
|
-
import { html as
|
|
5
|
-
import { IS_FOCUSABLE_QUERY as
|
|
6
|
-
import { css as
|
|
1
|
+
import { __runInitializers as l, __esDecorate as n } from "tslib";
|
|
2
|
+
import { MutationController as b } from "@lit-labs/observers/mutation-controller.js";
|
|
3
|
+
import { property as d } from "lit/decorators.js";
|
|
4
|
+
import { html as u } from "lit/static-html.js";
|
|
5
|
+
import { IS_FOCUSABLE_QUERY as h } from "../../core/a11y.js";
|
|
6
|
+
import { css as f } from "lit";
|
|
7
7
|
import "../../screen-reader-only.js";
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
let
|
|
11
|
-
return
|
|
8
|
+
const m = f`*,:before,:after{box-sizing:border-box}:host{display:block;outline:none!important;position:absolute;inset:0}:is(.sbb-card-button,.sbb-card-link){display:block;position:absolute;inset:0;border-radius:var(--sbb-card-border-radius);cursor:pointer;outline:none}:host(:focus-visible) :is(.sbb-card-button,.sbb-card-link),:is(.sbb-card-button,.sbb-card-link):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)}`, C = (o) => (() => {
|
|
9
|
+
var a;
|
|
10
|
+
let r = o, i = [], s;
|
|
11
|
+
return a = class extends r {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this._active = (
|
|
13
|
+
super(...arguments), this._active = (l(this, i), !1), this._card = null, this._cardMutationObserver = new b(this, {
|
|
14
14
|
target: null,
|
|
15
15
|
config: { childList: !0, subtree: !0 },
|
|
16
16
|
callback: () => this._checkForSlottedActions()
|
|
@@ -27,31 +27,29 @@ const _ = m`*,:before,:after{box-sizing:border-box}:host{display:block;outline:n
|
|
|
27
27
|
this._card && this._card.toggleAttribute("data-has-active-action", this.active);
|
|
28
28
|
}
|
|
29
29
|
_checkForSlottedActions() {
|
|
30
|
-
var a, i;
|
|
31
30
|
const t = "data-card-focusable";
|
|
32
|
-
Array.from(
|
|
31
|
+
Array.from(this._card?.querySelectorAll?.(h) ?? []).filter((e) => e.localName !== "sbb-card-link" && e.localName !== "sbb-card-button" && !e.hasAttribute(t)).forEach((e) => e.setAttribute(t, ""));
|
|
33
32
|
}
|
|
34
33
|
connectedCallback() {
|
|
35
|
-
|
|
36
|
-
super.connectedCallback(), this._card = (t = this.closest) == null ? void 0 : t.call(this, "sbb-card"), this._card && (this.slot || (this.slot = "action"), this._card.toggleAttribute("data-has-action", !0), this._card.toggleAttribute("data-has-active-action", this.active), this._card.setAttribute("data-action-role", this.actionRole), this._checkForSlottedActions(), this._cardMutationObserver.observe(this._card));
|
|
34
|
+
super.connectedCallback(), this._card = this.closest?.("sbb-card"), this._card && (this.slot ||= "action", this._card.toggleAttribute("data-has-action", !0), this._card.toggleAttribute("data-has-active-action", this.active), this._card.setAttribute("data-action-role", this.actionRole), this._checkForSlottedActions(), this._cardMutationObserver.observe(this._card));
|
|
37
35
|
}
|
|
38
36
|
disconnectedCallback() {
|
|
39
37
|
super.disconnectedCallback(), this._card && (["data-has-action", "data-has-active-action", "data-action-role"].forEach((t) => this._card.removeAttribute(t)), this._card.querySelectorAll("[data-card-focusable]").forEach((t) => t.removeAttribute("data-card-focusable")), this._card = null);
|
|
40
38
|
}
|
|
41
39
|
renderTemplate() {
|
|
42
|
-
return
|
|
40
|
+
return u`
|
|
43
41
|
<sbb-screen-reader-only>
|
|
44
42
|
<slot></slot>
|
|
45
43
|
</sbb-screen-reader-only>
|
|
46
44
|
`;
|
|
47
45
|
}
|
|
48
46
|
}, (() => {
|
|
49
|
-
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} }, metadata: t }, null,
|
|
53
|
-
})(),
|
|
47
|
+
const t = typeof Symbol == "function" && Symbol.metadata ? Object.create(r[Symbol.metadata] ?? null) : void 0;
|
|
48
|
+
s = [d({ reflect: !0, type: Boolean })], n(a, null, s, { kind: "setter", name: "active", static: !1, private: !1, access: { has: (e) => "active" in e, set: (e, c) => {
|
|
49
|
+
e.active = c;
|
|
50
|
+
} }, metadata: t }, null, i), t && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: t });
|
|
51
|
+
})(), a.styles = m, a;
|
|
54
52
|
})();
|
|
55
53
|
export {
|
|
56
|
-
|
|
54
|
+
C as SbbCardActionCommonElementMixin
|
|
57
55
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
1
|
+
var w = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (t, s, a) => (
|
|
4
|
+
var E = (t, s, a) => s.has(t) || w("Cannot " + a);
|
|
5
|
+
var h = (t, s, a) => (E(t, s, "read from private field"), a ? a.call(t) : s.get(t)), u = (t, s, a) => s.has(t) ? w("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, a), _ = (t, s, a, c) => (E(t, s, "write to private field"), c ? c.call(t, a) : s.set(t, a), a);
|
|
6
6
|
import { __esDecorate as d, __runInitializers as l } from "tslib";
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { slotState as
|
|
10
|
-
import { isLean as
|
|
11
|
-
import { SbbIconNameMixin as
|
|
12
|
-
import { SbbCheckboxCommonElementMixin as
|
|
7
|
+
import { css as $, LitElement as j, html as C } from "lit";
|
|
8
|
+
import { customElement as D, property as p } from "lit/decorators.js";
|
|
9
|
+
import { slotState as O, getOverride as L } from "../../core/decorators.js";
|
|
10
|
+
import { isLean as M } from "../../core/dom.js";
|
|
11
|
+
import { SbbIconNameMixin as N } from "../../icon.js";
|
|
12
|
+
import { SbbCheckboxCommonElementMixin as T, checkboxCommonStyle as q } from "../common.js";
|
|
13
13
|
import "../../visual-checkbox.js";
|
|
14
|
-
const
|
|
15
|
-
let
|
|
14
|
+
const A = $`:host{outline:none!important;display:inline-block}.sbb-checkbox__label--icon{color:var(--sbb-checkbox-label-icon-color)}:host([icon-placement=end]) .sbb-checkbox__label--icon{margin-inline-start:auto}:host(:not([icon-name],[data-slot-names~=icon])) .sbb-checkbox__label--icon{display:none}:host(:is([icon-name],[data-slot-names~=icon]):not([icon-placement=end])) .sbb-checkbox__label--icon{padding-inline-end:var(--sbb-spacing-fixed-2x)}:host(:is([icon-name],[data-slot-names~=icon])[icon-placement=end]) .sbb-checkbox__label--icon{padding-inline-start:var(--sbb-spacing-fixed-2x)}:host(:focus-visible) .sbb-checkbox-wrapper{outline-offset:var(--sbb-focus-outline-offset);outline:var(--sbb-focus-outline-color) var(--sbb-focus-outline-style, solid) var(--sbb-focus-outline-width);border-radius:calc(var(--sbb-border-radius-4x) - var(--sbb-focus-outline-offset))}:host([icon-placement=start]) .sbb-checkbox__label{flex-direction:row-reverse;justify-content:flex-end}:host([icon-placement=end]) .sbb-checkbox__label{justify-content:flex-start;flex-grow:1}`;
|
|
15
|
+
let W = (() => {
|
|
16
16
|
var r, b, m, n;
|
|
17
|
-
let t = [
|
|
17
|
+
let t = [D("sbb-checkbox"), O()], s, a = [], c, f = T(N(j)), x, v = [], k = [], g, z = [], y = [], S, P = [], I = [];
|
|
18
18
|
return n = class extends f {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
u(this, r, l(this, v, null));
|
|
22
|
-
u(this, b, (l(this, k), l(this, z,
|
|
22
|
+
u(this, b, (l(this, k), l(this, z, M() ? "xs" : "m")));
|
|
23
23
|
u(this, m, (l(this, y), l(this, P, "end")));
|
|
24
24
|
l(this, I);
|
|
25
25
|
}
|
|
@@ -48,7 +48,7 @@ let X = (() => {
|
|
|
48
48
|
_(this, m, i);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return
|
|
51
|
+
return C`
|
|
52
52
|
<span class="sbb-checkbox-wrapper">
|
|
53
53
|
<span class="sbb-checkbox">
|
|
54
54
|
<span class="sbb-checkbox__inner">
|
|
@@ -73,18 +73,15 @@ let X = (() => {
|
|
|
73
73
|
}
|
|
74
74
|
}, r = new WeakMap(), b = new WeakMap(), m = new WeakMap(), c = n, (() => {
|
|
75
75
|
const i = typeof Symbol == "function" && Symbol.metadata ? Object.create(f[Symbol.metadata] ?? null) : void 0;
|
|
76
|
-
x = [p()], g = [p({ reflect: !0 }),
|
|
77
|
-
var w;
|
|
78
|
-
return ((w = e.group) == null ? void 0 : w.size) ?? o;
|
|
79
|
-
})], S = [p({ attribute: "icon-placement", reflect: !0 })], d(n, null, x, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, get: (e) => e.value, set: (e, o) => {
|
|
76
|
+
x = [p()], g = [p({ reflect: !0 }), L((e, o) => e.group?.size ?? o)], S = [p({ attribute: "icon-placement", reflect: !0 })], d(n, null, x, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (e) => "value" in e, get: (e) => e.value, set: (e, o) => {
|
|
80
77
|
e.value = o;
|
|
81
78
|
} }, metadata: i }, v, k), d(n, null, g, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (e) => "size" in e, get: (e) => e.size, set: (e, o) => {
|
|
82
79
|
e.size = o;
|
|
83
80
|
} }, metadata: i }, z, y), d(n, null, S, { kind: "accessor", name: "iconPlacement", static: !1, private: !1, access: { has: (e) => "iconPlacement" in e, get: (e) => e.iconPlacement, set: (e, o) => {
|
|
84
81
|
e.iconPlacement = o;
|
|
85
82
|
} }, metadata: i }, P, I), d(null, s = { value: c }, t, { kind: "class", name: c.name, metadata: i }, null, a), c = s.value, i && Object.defineProperty(c, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: i });
|
|
86
|
-
})(), n.styles = [
|
|
83
|
+
})(), n.styles = [q, A], l(c, a), c;
|
|
87
84
|
})();
|
|
88
85
|
export {
|
|
89
|
-
|
|
86
|
+
W as SbbCheckboxElement
|
|
90
87
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var C = (o) => {
|
|
2
|
+
throw TypeError(o);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var m = (i, r
|
|
4
|
+
var U = (o, i, r) => i.has(o) || C("Cannot " + r);
|
|
5
|
+
var m = (o, i, r) => (U(o, i, "read from private field"), r ? r.call(o) : i.get(o)), u = (o, i, r) => i.has(o) ? C("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(o) : i.set(o, r), x = (o, i, r, n) => (U(o, i, "write to private field"), n ? n.call(o, r) : i.set(o, r), r);
|
|
6
6
|
import { __esDecorate as p, __runInitializers as c } from "tslib";
|
|
7
|
-
import { css as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { interactivityChecker as
|
|
10
|
-
import { slotState as
|
|
11
|
-
import { isLean as
|
|
12
|
-
import { SbbDisabledMixin as
|
|
13
|
-
const
|
|
14
|
-
let
|
|
7
|
+
import { css as L, LitElement as j, html as N } from "lit";
|
|
8
|
+
import { customElement as O, property as k } from "lit/decorators.js";
|
|
9
|
+
import { interactivityChecker as T, isArrowKeyPressed as B, getNextElementIndex as G } from "../../core/a11y.js";
|
|
10
|
+
import { slotState as M, forceType as V } from "../../core/decorators.js";
|
|
11
|
+
import { isLean as H } from "../../core/dom.js";
|
|
12
|
+
import { SbbDisabledMixin as J } from "../../core/mixins.js";
|
|
13
|
+
const Q = L`*,:before,:after{box-sizing:border-box}:host{--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto;--sbb-checkbox-group-width: max-content;--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-3x) var(--sbb-spacing-fixed-6x);display:block}:host([orientation=vertical]){--sbb-checkbox-group-orientation: column;--sbb-checkbox-group-width: 100%;--sbb-checkbox-group-checkbox-width: 100%}:host([orientation=vertical]) ::slotted(sbb-checkbox-panel){width:100%}:host([data-has-panel]){--sbb-checkbox-group-width: 100%}:host([data-has-panel]) ::slotted(sbb-checkbox-panel){flex:auto}:host([data-has-panel][orientation=vertical]){--sbb-checkbox-group-gap: var(--sbb-spacing-fixed-2x) var(--sbb-spacing-fixed-4x)}@media (min-width: 0rem){:host([orientation=vertical][horizontal-from=zero]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=zero]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=zero]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 22.5rem){:host([orientation=vertical][horizontal-from=micro]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=micro]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=micro]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 37.5rem){:host([orientation=vertical][horizontal-from=small]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=small]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=small]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 52.5rem){:host([orientation=vertical][horizontal-from=medium]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=medium]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=medium]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 64rem){:host([orientation=vertical][horizontal-from=large]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=large]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=large]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 80rem){:host([orientation=vertical][horizontal-from=wide]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=wide]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=wide]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}@media (min-width: 90rem){:host([orientation=vertical][horizontal-from=ultra]){--sbb-checkbox-group-orientation: row;--sbb-checkbox-group-checkbox-width: auto}:host([orientation=vertical][horizontal-from=ultra]) ::slotted(sbb-checkbox-panel){width:initial}:host([orientation=vertical][horizontal-from=ultra]:not([data-has-panel])){--sbb-checkbox-group-width: max-content}}.sbb-checkbox-group{display:flex;flex-direction:var(--sbb-checkbox-group-orientation);gap:var(--sbb-checkbox-group-gap);align-items:flex-start;width:var(--sbb-checkbox-group-width)}.sbb-checkbox-group__error{display:inline-block;margin-block-start:var(--sbb-spacing-fixed-1x)}:host(:not([data-slot-names~=error])) .sbb-checkbox-group__error{display:none}::slotted(sbb-checkbox){width:var(--sbb-checkbox-group-checkbox-width)}`;
|
|
14
|
+
let ot = (() => {
|
|
15
15
|
var l, h, b, d, s;
|
|
16
|
-
let
|
|
17
|
-
return s = class extends
|
|
16
|
+
let o = [O("sbb-checkbox-group"), M()], i, r = [], n, g = J(j), f, z = [], w = [], _, v = [], y = [], q, E = [], F = [], S, I = [], D = [];
|
|
17
|
+
return s = class extends g {
|
|
18
18
|
constructor() {
|
|
19
|
-
var e;
|
|
20
19
|
super();
|
|
21
|
-
u(this, l, c(this,
|
|
22
|
-
u(this, h, (c(this,
|
|
23
|
-
u(this, b, (c(this,
|
|
24
|
-
u(this, d, (c(this,
|
|
25
|
-
c(this,
|
|
20
|
+
u(this, l, c(this, z, !1));
|
|
21
|
+
u(this, h, (c(this, w), c(this, v, H() ? "xs" : "m")));
|
|
22
|
+
u(this, b, (c(this, y), c(this, E, null)));
|
|
23
|
+
u(this, d, (c(this, F), c(this, I, "horizontal")));
|
|
24
|
+
c(this, D), this.addEventListener?.("keydown", (e) => this._handleKeyDown(e));
|
|
26
25
|
}
|
|
27
26
|
/** Whether the checkbox group is required. */
|
|
28
27
|
get required() {
|
|
@@ -57,36 +56,24 @@ let it = (() => {
|
|
|
57
56
|
}
|
|
58
57
|
/** List of contained checkbox elements. */
|
|
59
58
|
get checkboxes() {
|
|
60
|
-
|
|
61
|
-
return Array.from(((e = this.querySelectorAll) == null ? void 0 : e.call(this, "sbb-checkbox, sbb-checkbox-panel")) ?? []).filter((t) => t.closest("sbb-checkbox-group") === this);
|
|
59
|
+
return Array.from(this.querySelectorAll?.("sbb-checkbox, sbb-checkbox-panel") ?? []).filter((e) => e.closest("sbb-checkbox-group") === this);
|
|
62
60
|
}
|
|
63
61
|
connectedCallback() {
|
|
64
|
-
|
|
65
|
-
super.connectedCallback(), this.toggleAttribute("data-has-panel", !!((e = this.querySelector) != null && e.call(this, "sbb-checkbox-panel")));
|
|
62
|
+
super.connectedCallback(), this.toggleAttribute("data-has-panel", !!this.querySelector?.("sbb-checkbox-panel"));
|
|
66
63
|
}
|
|
67
64
|
willUpdate(e) {
|
|
68
|
-
super.willUpdate(e), e.has("disabled") && this.checkboxes.forEach((t) =>
|
|
69
|
-
var o;
|
|
70
|
-
return (o = t.requestUpdate) == null ? void 0 : o.call(t, "disabled");
|
|
71
|
-
}), e.has("required") && this.checkboxes.forEach((t) => {
|
|
72
|
-
var o;
|
|
73
|
-
return (o = t.requestUpdate) == null ? void 0 : o.call(t, "required");
|
|
74
|
-
}), e.has("size") && this.checkboxes.forEach((t) => {
|
|
75
|
-
var o;
|
|
76
|
-
return (o = t.requestUpdate) == null ? void 0 : o.call(t, "size");
|
|
77
|
-
});
|
|
65
|
+
super.willUpdate(e), e.has("disabled") && this.checkboxes.forEach((t) => t.requestUpdate?.("disabled")), e.has("required") && this.checkboxes.forEach((t) => t.requestUpdate?.("required")), e.has("size") && this.checkboxes.forEach((t) => t.requestUpdate?.("size"));
|
|
78
66
|
}
|
|
79
67
|
_handleKeyDown(e) {
|
|
80
|
-
|
|
81
|
-
const t = this.checkboxes.filter((k) => !k.disabled && B.isVisible(k));
|
|
68
|
+
const t = this.checkboxes.filter((a) => !a.disabled && T.isVisible(a));
|
|
82
69
|
if (!(!t || // don't trap nested handling
|
|
83
|
-
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel") &&
|
|
84
|
-
const
|
|
85
|
-
|
|
70
|
+
e.target !== this && e.target.parentElement !== this && e.target.parentElement.localName !== "sbb-selection-expansion-panel") && B(e)) {
|
|
71
|
+
const a = t.findIndex((K) => K === e.target), A = G(e, a, t.length);
|
|
72
|
+
t[A]?.focus();
|
|
86
73
|
}
|
|
87
74
|
}
|
|
88
75
|
render() {
|
|
89
|
-
return
|
|
76
|
+
return N`
|
|
90
77
|
<div class="sbb-checkbox-group">
|
|
91
78
|
<slot></slot>
|
|
92
79
|
</div>
|
|
@@ -96,18 +83,18 @@ let it = (() => {
|
|
|
96
83
|
`;
|
|
97
84
|
}
|
|
98
85
|
}, l = new WeakMap(), h = new WeakMap(), b = new WeakMap(), d = new WeakMap(), n = s, (() => {
|
|
99
|
-
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(
|
|
100
|
-
|
|
101
|
-
t.required =
|
|
102
|
-
} }, metadata: e },
|
|
103
|
-
t.size =
|
|
104
|
-
} }, metadata: e },
|
|
105
|
-
t.horizontalFrom =
|
|
106
|
-
} }, metadata: e },
|
|
107
|
-
t.orientation =
|
|
108
|
-
} }, metadata: e },
|
|
109
|
-
})(), s.styles =
|
|
86
|
+
const e = typeof Symbol == "function" && Symbol.metadata ? Object.create(g[Symbol.metadata] ?? null) : void 0;
|
|
87
|
+
f = [V(), k({ reflect: !0, type: Boolean })], _ = [k()], q = [k({ attribute: "horizontal-from", reflect: !0 })], S = [k({ reflect: !0 })], p(s, null, f, { kind: "accessor", name: "required", static: !1, private: !1, access: { has: (t) => "required" in t, get: (t) => t.required, set: (t, a) => {
|
|
88
|
+
t.required = a;
|
|
89
|
+
} }, metadata: e }, z, w), p(s, null, _, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (t) => "size" in t, get: (t) => t.size, set: (t, a) => {
|
|
90
|
+
t.size = a;
|
|
91
|
+
} }, metadata: e }, v, y), p(s, null, q, { kind: "accessor", name: "horizontalFrom", static: !1, private: !1, access: { has: (t) => "horizontalFrom" in t, get: (t) => t.horizontalFrom, set: (t, a) => {
|
|
92
|
+
t.horizontalFrom = a;
|
|
93
|
+
} }, metadata: e }, E, F), p(s, null, S, { kind: "accessor", name: "orientation", static: !1, private: !1, access: { has: (t) => "orientation" in t, get: (t) => t.orientation, set: (t, a) => {
|
|
94
|
+
t.orientation = a;
|
|
95
|
+
} }, metadata: e }, I, D), p(null, i = { value: n }, o, { kind: "class", name: n.name, metadata: e }, null, r), n = i.value, e && Object.defineProperty(n, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: e });
|
|
96
|
+
})(), s.styles = Q, c(n, r), n;
|
|
110
97
|
})();
|
|
111
98
|
export {
|
|
112
|
-
|
|
99
|
+
ot as SbbCheckboxGroupElement
|
|
113
100
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
1
|
+
var S = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var d = (e, t, i) => (
|
|
4
|
+
var y = (e, t, i) => t.has(e) || S("Cannot " + i);
|
|
5
|
+
var d = (e, t, i) => (y(e, t, "read from private field"), i ? i.call(e) : t.get(e)), u = (e, t, i) => t.has(e) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), b = (e, t, i, l) => (y(e, t, "write to private field"), l ? l.call(e, i) : t.set(e, i), i);
|
|
6
6
|
import { __runInitializers as h, __esDecorate as p } from "tslib";
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { customElement as
|
|
9
|
-
import { slotState as
|
|
10
|
-
import { isLean as
|
|
11
|
-
import { EventEmitter as
|
|
12
|
-
import { SbbPanelMixin as
|
|
13
|
-
import { SbbCheckboxCommonElementMixin as
|
|
7
|
+
import { LitElement as w, nothing as $, html as C } from "lit";
|
|
8
|
+
import { customElement as D, property as E } from "lit/decorators.js";
|
|
9
|
+
import { slotState as I, getOverride as M } from "../../core/decorators.js";
|
|
10
|
+
import { isLean as O } from "../../core/dom.js";
|
|
11
|
+
import { EventEmitter as U } from "../../core/eventing.js";
|
|
12
|
+
import { SbbPanelMixin as j, SbbUpdateSchedulerMixin as L, panelCommonStyle as A } from "../../core/mixins.js";
|
|
13
|
+
import { SbbCheckboxCommonElementMixin as T, checkboxCommonStyle as q } from "../common.js";
|
|
14
14
|
import "../../screen-reader-only.js";
|
|
15
15
|
import "../../visual-checkbox.js";
|
|
16
|
-
let
|
|
16
|
+
let X = (() => {
|
|
17
17
|
var c, r, n;
|
|
18
|
-
let e = [
|
|
18
|
+
let e = [D("sbb-checkbox-panel"), I()], t, i = [], l, _ = j(T(L(w))), f, k = [], v = [], x, g = [], z = [];
|
|
19
19
|
var m = (n = class extends _ {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
u(this, c);
|
|
23
23
|
u(this, r);
|
|
24
|
-
b(this, c, h(this, k, null)), b(this, r, (h(this, v), h(this, g,
|
|
24
|
+
b(this, c, h(this, k, null)), b(this, r, (h(this, v), h(this, g, O() ? "s" : "m"))), this.stateChange = (h(this, z), new U(this, m.events.stateChange, { bubbles: !0 }));
|
|
25
25
|
}
|
|
26
26
|
/** Value of the form element. */
|
|
27
27
|
get value() {
|
|
@@ -44,7 +44,7 @@ let Y = (() => {
|
|
|
44
44
|
super.willUpdate(s), s.has("checked") && (this.toggleAttribute("data-checked", this.checked), this.checked !== s.get("checked") && this.stateChange.emit({ type: "checked", checked: this.checked })), s.has("disabled") && this.disabled !== s.get("disabled") && this.stateChange.emit({ type: "disabled", disabled: this.disabled });
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return
|
|
47
|
+
return C`
|
|
48
48
|
<span class="sbb-selection-panel">
|
|
49
49
|
<div class="sbb-selection-panel__badge">
|
|
50
50
|
<slot name="badge"></slot>
|
|
@@ -65,7 +65,7 @@ let Y = (() => {
|
|
|
65
65
|
</span>
|
|
66
66
|
</span>
|
|
67
67
|
<slot name="subtext"></slot>
|
|
68
|
-
${this.expansionState ?
|
|
68
|
+
${this.expansionState ? C`<sbb-screen-reader-only>${this.expansionState}</sbb-screen-reader-only>` : $}
|
|
69
69
|
</span>
|
|
70
70
|
</span>
|
|
71
71
|
</span>
|
|
@@ -73,20 +73,17 @@ let Y = (() => {
|
|
|
73
73
|
}
|
|
74
74
|
}, c = new WeakMap(), r = new WeakMap(), l = n, (() => {
|
|
75
75
|
const s = typeof Symbol == "function" && Symbol.metadata ? Object.create(_[Symbol.metadata] ?? null) : void 0;
|
|
76
|
-
f = [
|
|
77
|
-
var S;
|
|
78
|
-
return (S = a.group) != null && S.size ? a.group.size === "xs" ? "s" : a.group.size : o;
|
|
79
|
-
})], p(n, null, f, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (a) => "value" in a, get: (a) => a.value, set: (a, o) => {
|
|
76
|
+
f = [E()], x = [E({ reflect: !0 }), M((a, o) => a.group?.size ? a.group.size === "xs" ? "s" : a.group.size : o)], p(n, null, f, { kind: "accessor", name: "value", static: !1, private: !1, access: { has: (a) => "value" in a, get: (a) => a.value, set: (a, o) => {
|
|
80
77
|
a.value = o;
|
|
81
78
|
} }, metadata: s }, k, v), p(n, null, x, { kind: "accessor", name: "size", static: !1, private: !1, access: { has: (a) => "size" in a, get: (a) => a.size, set: (a, o) => {
|
|
82
79
|
a.size = o;
|
|
83
80
|
} }, metadata: s }, g, z), p(null, t = { value: l }, e, { kind: "class", name: l.name, metadata: s }, null, i), m = l = t.value, s && Object.defineProperty(l, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: s });
|
|
84
|
-
})(), n.styles = [
|
|
81
|
+
})(), n.styles = [q, A], n.events = {
|
|
85
82
|
stateChange: "stateChange",
|
|
86
83
|
panelConnected: "panelConnected"
|
|
87
84
|
}, h(l, i), n);
|
|
88
85
|
return m = l;
|
|
89
86
|
})();
|
|
90
87
|
export {
|
|
91
|
-
|
|
88
|
+
X as SbbCheckboxPanelElement
|
|
92
89
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var d = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var u = (e,
|
|
5
|
-
var h = (e,
|
|
4
|
+
var u = (e, t, i) => t.has(e) || d("Cannot " + i);
|
|
5
|
+
var h = (e, t, i) => (u(e, t, "read from private field"), i ? i.call(e) : t.get(e)), b = (e, t, i) => t.has(e) ? d("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), l = (e, t, i, s) => (u(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
6
6
|
import { __runInitializers as p, __esDecorate as _ } from "tslib";
|
|
7
7
|
import { property as x } from "lit/decorators.js";
|
|
8
8
|
import { forceType as g } from "../../core/decorators.js";
|
|
9
9
|
import { SbbFormAssociatedCheckboxMixin as y } from "../../core/mixins.js";
|
|
10
10
|
const z = (e) => (() => {
|
|
11
11
|
var n, a;
|
|
12
|
-
let
|
|
13
|
-
return a = class extends
|
|
12
|
+
let i = y(e), s, m = [], c = [];
|
|
13
|
+
return a = class extends i {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
b(this, n);
|
|
@@ -20,35 +20,33 @@ const z = (e) => (() => {
|
|
|
20
20
|
get indeterminate() {
|
|
21
21
|
return h(this, n);
|
|
22
22
|
}
|
|
23
|
-
set indeterminate(
|
|
24
|
-
l(this, n,
|
|
23
|
+
set indeterminate(r) {
|
|
24
|
+
l(this, n, r);
|
|
25
25
|
}
|
|
26
26
|
/** Reference to the connected checkbox group. */
|
|
27
27
|
get group() {
|
|
28
28
|
return this._group;
|
|
29
29
|
}
|
|
30
30
|
connectedCallback() {
|
|
31
|
-
super.connectedCallback(), this._group = this.closest("sbb-checkbox-group"), ["disabled", "required", "size"].forEach((
|
|
31
|
+
super.connectedCallback(), this._group = this.closest("sbb-checkbox-group"), ["disabled", "required", "size"].forEach((r) => this.requestUpdate(r));
|
|
32
32
|
}
|
|
33
|
-
willUpdate(
|
|
34
|
-
super.willUpdate(
|
|
33
|
+
willUpdate(r) {
|
|
34
|
+
super.willUpdate(r), (r.has("checked") || r.has("indeterminate")) && (this.internals.ariaChecked = this.indeterminate ? "mixed" : `${this.checked}`);
|
|
35
35
|
}
|
|
36
36
|
isDisabledExternally() {
|
|
37
|
-
|
|
38
|
-
return ((t = this.group) == null ? void 0 : t.disabled) ?? !1;
|
|
37
|
+
return this.group?.disabled ?? !1;
|
|
39
38
|
}
|
|
40
39
|
isRequiredExternally() {
|
|
41
|
-
|
|
42
|
-
return ((t = this.group) == null ? void 0 : t.required) ?? !1;
|
|
40
|
+
return this.group?.required ?? !1;
|
|
43
41
|
}
|
|
44
42
|
withUserInteraction() {
|
|
45
43
|
this.indeterminate && (this.indeterminate = !1);
|
|
46
44
|
}
|
|
47
45
|
}, n = new WeakMap(), (() => {
|
|
48
|
-
const
|
|
46
|
+
const r = typeof Symbol == "function" && Symbol.metadata ? Object.create(i[Symbol.metadata] ?? null) : void 0;
|
|
49
47
|
s = [g(), x({ type: Boolean })], _(a, null, s, { kind: "accessor", name: "indeterminate", static: !1, private: !1, access: { has: (o) => "indeterminate" in o, get: (o) => o.indeterminate, set: (o, f) => {
|
|
50
48
|
o.indeterminate = f;
|
|
51
|
-
} }, metadata:
|
|
49
|
+
} }, metadata: r }, m, c), r && Object.defineProperty(a, Symbol.metadata, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
52
50
|
})(), a;
|
|
53
51
|
})();
|
|
54
52
|
export {
|