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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@sl-design-system/[email protected]
Major Changes
#2031
79c250d
- Breaking change:action
slot for action buttons. Theaction
slot has been removed due to accessibility reasons. We do not recommend using inline messages with interactive elements inside.Other changes:
role
- announcer (aria-live) is used in the component instead.announcer
to the component (for thedanger
variant there isaria-live="assertive"
used, for the rest:aria-live="polite"
).Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Minor Changes
#2034
1072075
- Big improvements to thedata-source
package:DataSource
abstract
class without any implementation detailsid
parameter forsetSort()
DataSourceSort
interface to be simpler:ListDataSource
Instead of
<sl-grid>
usingListDataSource
and having aGridViewModel
class and usingSelectionController
,ListDataSource
now is setup to handle all the view model logic internally. This means<sl-grid>
no longer needs a separate view model and selection controller.If you try to combine grouping with pagination, it will log a warning to the console. Grouping and pagination are not compatible with each other. You can either group or paginate, but not both at the same time.
ListDataSourceItem
,ListDataSourceDataItem
andListDataSourceGroupItem
view model typesgroupSortBy
andgroupSortDirection
optionsselects
property for single, multiple or no selection mode at allSelectionController
into this classsl-selection-change
event when the selection changescollapseGroup()
,expandGroup()
,toggleGroup()
andisGroupCollapsed()
abstract methodsreorder()
to be an abstract methodArrayListDataSource
ListDataSource
FetchListDataSource
ListDataSource
groups
constructor option when you want to use groups, but lazy load the datafetchPage()
method arguments as wellPatch Changes
#2072
77b348d
- Fix regression with basic drag and drop of rows within grid#1975
4a6f8ba
- Several bug fixes:DataSourceFilterFunction
to include the value in the function#2024
a343e29
- ExpandListDataSource.setGroupBy
by adding a parameter for the label pathUpdated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Minor Changes
#2034
1072075
- Big improvements:ListDataSource
class and view model typesSelectionController
since that logic is now part ofListDataSource
clickable-row
property withselects
; this new property combines the functionality ofclickable-row
and selection mode into a single propertysingle-row
: Only one row can be selected at a time, by clicking anywhere on the row.multiple
: Multiple rows can be selected, but just by clicking on the selection column.multiple-row
: Multiple rows can be selected by clicking anywhere on the row.sl-active-item-change
change event. Use thesl-selection-change
event in combination withselects="single-row"
to get the same behaviordataSource.update()
when the data source was not changed#2064
fbc2ba9
- AddactiveRow
property to grid with accompanying eventThis changes adds a new
activeRow
property to the<sl-grid>
component. This allows users to specify which row should be marked as active. The active row is marked using theactive
DOM part. It is styled similarly to a selected row. In order to enable the ability to activate a row, you need to add theactivatable-row
attribute to the<sl-grid>
component. When the active row changes, ansl-grid-active-row-change
event is dispatched.You can combine the
activatable-row
feature withselects="multiple"
feature to allow users to both activate and select a row.#2024
a343e29
- Grid improvements:column
argument toGridColumnHeaderRenderer
typeclass
attributesrole="columnheader"
on the header cells#1975
4a6f8ba
- Various improvements:waitForGridToRenderData
utility method to be used in tests; available through the@sl-design-system/grid/utils.js
importPatch Changes
#2072
77b348d
- Fix regression with basic drag and drop of rows within grid#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
d212503
,77b348d
,4943f52
,4a6f8ba
,4a6f8ba
,4a6f8ba
,1072075
,4a6f8ba
,4a6f8ba
,b411a41
,1072075
,4a6f8ba
,1072075
,a343e29
,094e4c7
]:@sl-design-system/[email protected]
Minor Changes
4a6f8ba
- Minor improvements:prefix
slotPatch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Minor Changes
#2034
1072075
- RemovedSelectionController
since it has been removed from grid and that was the only user.See the data-source changes for more details.
Patch Changes
4a6f8ba
- Use the defaultany
type for theSlSelectionChangeEvent
@sl-design-system/[email protected]
Minor Changes
14885b3
- Update dependencies@sl-design-system/[email protected]
Minor Changes
14885b3
- Update dependencies@sl-design-system/[email protected]
Patch Changes
4a6f8ba
,4a6f8ba
,4a6f8ba
,b411a41
,a343e29
,d115aa5
,094e4c7
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#1997
bfd34b7
- Fixes issue where name didn't wrapUpdated dependencies [
d212503
,1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
d212503
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies []:
@sl-design-system/[email protected]
Patch Changes
#1975
4a6f8ba
- Fix styling regression on checkboxes without a label#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2067
68ea3c8
- Fixes issue that showed incorrect validity when using multiple mode and the field was required.Updated dependencies [
b411a41
,0ce2293
,094e4c7
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
b411a41
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
79c250d
,1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
094e4c7
- Added overflow-wrap to force words to break when options are shown in a very narrow container.@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
b411a41
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2034
1072075
- Various fixes:pageSize
sometimes did not reflect thepageSize
property of the data sourceListDataSource
changesUpdated dependencies [
4a6f8ba
,1072075
,b411a41
,4a6f8ba
,094e4c7
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
4943f52
,1072075
,4a6f8ba
,b411a41
,4a6f8ba
,1072075
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2010
d115aa5
- Increases the gap between radio buttons when buttons are shown in horizontal modeUpdated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#1975
4a6f8ba
- Fix the size of the clearable icon in the select button#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2037
094e4c7
- Added overflow-wrap to force words to break when options are shown in a very narrow container.Updated dependencies [
1072075
,b411a41
,4a6f8ba
,094e4c7
]:@sl-design-system/[email protected]
Patch Changes
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2013
03717fb
- Fixes issue where the gradient overlay doesn't match the background color set on the tabs with a ::part(container) selector.#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2017
0ce2293
- Fixes tabindexes for hidden tags in the stacked variant ofsl-tag-list
.Updated dependencies [
d212503
,1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.Updated dependencies [
1072075
,b411a41
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
d212503
,1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#1998
4943f52
- Fixes incorrect margin when menu button is visible#1975
4a6f8ba
- Improve styling for use within grid#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2034
1072075
- Fix console warning when an<sl-tooltip>
is slottedUpdated dependencies []:
@sl-design-system/[email protected]
Patch Changes
#2030
d212503
- Fixes showing the tooltip. The tooltip should be shown only on hover and when it’s focused by keyboard.Updated dependencies [
1072075
,4a6f8ba
]:@sl-design-system/[email protected]
Patch Changes
#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2034
1072075
- UpdateTreeDataSource
types to match withDataSource
Updated dependencies [
77b348d
,4a6f8ba
,1072075
,4a6f8ba
,b411a41
,1072075
,4a6f8ba
,a343e29
]:@sl-design-system/[email protected]
Patch Changes
#1975
4a6f8ba
- Update translations for grid#2036
b411a41
- Improved translations by usingid
to prevent unnecessary overwriting, which will also help with adding translations in more languages in the future.#2024
a343e29
- New grid translations@sl-design-system/[email protected]
Patch Changes
4a6f8ba
- Minor fixes to dark theme colors@sl-design-system/[email protected]
Patch Changes
4a6f8ba
- Minor fixes to dark theme colors@sl-design-system/[email protected]
Patch Changes
4a6f8ba
- Minor fixes to dark theme colors