Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
2.0.0 (2024-12-11)
⚠ BREAKING CHANGES
caption
,copyright
,copyrightHolder
attributes; We removed the caption and the copyright from the component to improve the usage flexibility of thesbb-image
. The consumer is now responsible for providing them (see thesbb-image
readme to know more).borderRadius
,aspectRatio
attributes. Use the utility classes instead (see thesbb-image
readme to know more). Removed the--sbb-image-border-radius
CSS var from thesbb-image
. Alternatively, use theborder-radius
CSS property.image-src
,image-alt
attributes. Removedchip
slot. Consumers can slot ansbb-image
and add overlay elements on top of it (see thesbb-teaser-hero
readme to know more).willOpen
,didOpen
,willClose
,didClose
,willStick
,didStick
,willUnstick
anddidUnstick
events no longer bubble.linkContent
,href
,target
,rel
,accessibilityLabel
) of thesbb-alert
have been removed. Consumers have to slot a<sbb-link>
into the unnamed content slot.sbb-loading-indicator
component no longer supports thecircle
variant, to achieve this look usesbb-loading-indicator-circle
instead. For any other case where it is used in itswindow
variant just remove thevariant
property as it is no longer needed.sbb-tertiary-button
was renamed tosbb-accent-button
logo
slot and the defaultsbb-logo
from thesbb-header
. Alternatively, add thesbb-header-logo
CSS class to the logo or to an<a>
-element containing the logo and use the default slot. To align the logo to the right, use a spacer element with thesbb-header-spacer
CSS class applied. For more information, seesbb-header
docs.didChange
events fromsbb-checkbox
,sbb-checkbox-panel
,sbb-toggle-check
,sbb-select
,sbb-toggle
andsbb-datepicker
. Usechange
event as alternative.SbbMiniButtonBaseElement
is used only in thesbb-mini-button-component
, so it can be safely removed to avoid redundant code.null
getAvailableDate()
andisDateAvailable()
findPreviousAvailableDate()
andfindNextAvailableDate()
intoSbbDatepickerElement
and removed allparams but
date
dateParser
andformat
, asalternative use custom DateAdapter
now
property newly acceptsnull
instead ofundefined
getValueAsDate()
andsetValueAsDate()
.Use getter/setter
valueAsDate
instead.word-break: break-word;
CSS rule from lyne components. They will follow the default break rules. Impacted components are:sbb-dialog-content
,sbb-link
and variants;sbb-file-selector
has been split into two components based on the values of thevariant
property. Thefiles
property has nowReadonly<File>[]
type instead thanFile[]
to not allow the direct modification of the innerFile
properties. Changes:variant
property has been removed from thesbb-file-selector
component;sbb-file-selector
now corresponds to the olddefault
variant;sbb-file-selector-dropzone
has been created; it corresponds to the olddropzone
variant;sbb-file-selector
(since it refers only to dropzone case);files
property now returns aReadonly<File>[]
;getFiles()
method has been removed.getValueAsDate()
andsetValueAsDate()
methods of thesbb-time-input
have been replaced by getter/settervalueAsDate
.dismissalRequested
event andrequestDismissal()
method ofsbb-alert
have been removed. Thesbb-alert
handles its closing and DOM removal on his own. If the closing should be prevented, thewillClose
event can be canceled. ThedidDismissAlert
of thesbb-alert-group
has been removed. As alternative, consumers can listen to thedidClose
event of ansbb-alert
.getInputElement()
method of thesbb-form-field
has been removed. UseinputElement
property as alternative.active
property fromsbb-option
andsbb-autocomplete-grid-option
has been removedgetDocumentWritingMode()
removedgetLocalName()
removedformElementHandlerAspect()
removedHandlerRepository
,HandlerAspectParams
andHandlerAspect
removedSbbFocusableDisabledActionMixin
removedNodeIntersectionObserver
,AgnosticIntersectionObserver
,NodeMutationObserver
,AgnosticMutationObserver
,NodeResizeObserver
and
AgnosticResizeObserver
)hide-wagen-label
property of thesbb-train-formation
was removed. Now it automatically doesn't show the label if no label is set on all the wagons. The i18ni18nClosedCompartmentLabel()
method doesn't takewagonNumber
as an argument anymore but is a constant now. Additionally, there are some visual changes:sbb-train-wagon
: Theouccpancy
property doesn't default tonone
anymore but to
null
. Please replace the currently undefined occupancyproperty with the value
none
.sbb-train-wagon
: Previously for the locomotive the label was notdisplayed, but now it would, as soon as there is one provided
sbb-train-formation
: The inline padding (left / right) was removedbut can be set by CSS variable. See documentation.
SbbRadioButtonGroupEventDetail
from thechange
,input
anddidChange
events of thesbb-radio-button-group
. As an alternative toevent.detail.value
useradioButtonGroup.value
disabledInteractive
property had to be used along with thedisabled
property. With this change, eitherdisabled
ordisabledInteractive
should be used.sbb-teaser-paid
was removed and integrated insbb-teaser-hero
. Replacing the component / selector should be enough, as the API remains the same.sbb-teaser-hero
moved from@sbb-esta/experimental
into@sbb-esta/elements
package, therefore imports need to be adapted.Features
sbb-chip-label
(#3200) (a59064e)Bug Fixes
didChange
events where possible (#3253) (da64d5d)getInputElement()
method (#3221) (23d1fea)active
property (#3220) (bb62e75)Documentation
Code Refactoring
getLocalName()
(#3110) (f349463)sbb-image
usage (#3200) (a59064e)sbb-image
usage (#3200) (a59064e)Styles
break-word
css rule (#3231) (edcdec1)Miscellaneous Chores
Tests
This PR was generated with Release Please. See documentation.