Releases: sbb-design-systems/lyne-components
Releases · sbb-design-systems/lyne-components
v2.0.1
2.0.1 (2024-12-12)
Features
Bug Fixes
- sbb-message: support the use of
figure
as image (#3294) (1d64853) - sbb-radio-button-panel: remove extension clause in mixin which cause incorrect manifest generation (#3288) (b5457a7)
- sbb-teaser: fix image related issues (#3293) (e6f517b)
Miscellaneous Chores
- release 2.0.1 (2a43d06)
v2.0.0
2.0.0 (2024-12-11)
⚠ BREAKING CHANGES
- Previously the
disabledInteractive
property had to be used along with thedisabled
property. With this change, eitherdisabled
ordisabledInteractive
should be used. This affects all button components (primarilysbb-button
) and we strongly recommend checking all current usages ofdisabledInteractive
. willOpen
,didOpen
,willClose
,didClose
,willStick
,didStick
,willUnstick
anddidUnstick
events no longer bubble.- Remove deprecated
didChange
events fromsbb-checkbox
,sbb-checkbox-panel
,sbb-toggle-check
,sbb-select
,sbb-toggle
andsbb-datepicker
. Usechange
event as alternative. - react is now a peer dependency of our react package.
- sbb-image: Removed
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). - sbb-image: Removed
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. - sbb-teaser-hero: Removed
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). - sbb-alert: The link properties (
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: The
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:
sbb-tertiary-button
was renamed tosbb-accent-button
- sbb-header: removed the
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. - sbb-mini-button: the
SbbMiniButtonBaseElement
is used only in thesbb-mini-button-component
, so it can be safely removed to avoid redundant code. - sbb-datepicker: This refactoring introduces multiple breaking changes to the datepicker:
- DateAdapter: return value for invalid dates changed from undefined to
null - Datepicker: removed functions
getAvailableDate()
and
isDateAvailable()
- Datepicker: moved functions
findPreviousAvailableDate()
and
findNextAvailableDate()
intoSbbDatepickerElement
and removed all
params butdate
- Datepicker: removed properties
dateParser
andformat
, as
alternative use custom DateAdapter - Datepicker:
now
property newly acceptsnull
instead ofundefined
- Datepicker: removed methods
getValueAsDate()
andsetValueAsDate()
.
Use getter/settervalueAsDate
instead.
- DateAdapter: return value for invalid dates changed from undefined to
- sbb-dialog, sbb-link: Removed the
word-break: break-word;
CSS rule from lyne components. They will follow the default break rules. Impacted components are:sbb-dialog-content
,sbb-link
,sbb-link-button
,sbb-link-static
,sbb-block-link
,sbb-block-link-button
andsbb-block-link-static
. - sbb-file-selector: The
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:- the
variant
property has been removed from thesbb-file-selector
component; - the
sbb-file-selector
now corresponds to the olddefault
variant; - a new component named
sbb-file-selector-dropzone
has been created; it corresponds to the olddropzone
variant; - the 'titleContent' property has been removed from the
sbb-file-selector
(since it refers only to dropzone case); - the
files
property now returns aReadonly<File>[]
; - the deprecated
getFiles()
method has been removed.
- the
- sbb-time-input:
getValueAsDate()
andsetValueAsDate()
methods of thesbb-time-input
have been replaced by getter/settervalueAsDate
. - sbb-alert, sbb-alert-group: The deprecated
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
. - sbb-form-field: The
getInputElement()
method of thesbb-form-field
has been removed. UseinputElement
property as alternative. - sbb-option,sbb-autocomplete-grid-option:
active
property fromsbb-option
andsbb-autocomplete-grid-option
has been removed - sbb-train-formation: The
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 tonull
. Please replace the currently undefined occupancy
property with the valuenone
.sbb-train-wagon
: Previously for the locomotive the label was not
displayed, but now it would, as soon as there is one providedsbb-train-formation
: The inline padding (left / right) was removed
but can be set by CSS variable. See documentation.
- sbb-radio-button, sbb-radio-button-panel: Removed
SbbRadioButtonGroupEventDetail
from thechange
,input
anddidChange
events of thesbb-radio-button-group
. As an alternative toevent.detail.value
useradioButtonGroup.value
- sbb-chip-label: sbb-chip has been renamed to sbb-chip-label.
- sbb-teaser-hero, sbb-teaser-paid:
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. - Several deprecated core functionalities have been removed.
- dom.js
getDocumentWritingMode()
removed - dom.js
getLocalName()
removed - eventing.js
formElementHandlerAspect()
removed - eventing.js
HandlerRepository
,HandlerAspectParams
and
HandlerAspect
removed - mixins.js
SbbFocusableDisabledActionMixin
removed - observers.js completely removed (containing
NodeIntersectionObserver
,AgnosticIntersectionObserver
,
NodeMutationObserver
,AgnosticMutationObserver
,NodeResizeObserver
andAgnosticResizeObserver
) - waitForEvent() method was removed in favor of using EventSpy class
- dom.js
Features
- introduce button form support (#3170) (eeb7a0a)
- provide lean context config (#3233) (0e2a847)
- sbb-file-selector: split file-selector variants in separate components (#3198) (7527030)
- sbb-image: support overlapping
sbb-chip-label
(#3200) (a59064e) - sbb-radio-button, sbb-radio-button-panel: implement native form support (#3160) (e113c6a)
- sbb-sticky-bar: introduce controllable slide in and out animation (11884da), closes #3072
- sbb-train-formation: introduce new types and refactoring (#3199) (8eb7ae6)
Bug Fixes
v1.16.0
v1.15.1
v1.15.0
1.15.0 (2024-11-28)
Features
Bug Fixes
- fix type of form associated controls (#3242) (c925c64)
- fix width breakpoints of SbbMediaMatcherController (#3226) (edb639b)
- sbb-autocomplete, sbb-autocomplete-grid: avoid form submission on enter press (#3243) (cbf81ec), closes #3239
- sbb-flip-card: fix card summary image position (#3254) (214a57e)
- sbb-map-container: improve support for tablet devices (#3214) (53711bf), closes #3091
- sbb-select: improve connected label handling (#3229) (4d66d32)
v1.14.1
v1.14.0
v1.13.0
v1.12.1
1.12.1 (2024-10-03)
Bug Fixes
- fix list colors (#3126) (44c2810), closes #3123
- sbb-image: fix skipLqip mode (#3131) (4519006)
- sbb-image: introduce css property to configure object-fit (#3134) (5a4ae41), closes #3133
- sbb-radio-group: avoid focusing disabled radios (#3125) (e4745c4)
- sbb-teaser: allow teaser usage in flexible layouts (#3140) (a51507b), closes #3136