@stenajs-webui/grid-export
Advanced tools
Changelog
15.0.0-alpha.6
minDate
and maxDate
props to DateTextInput
.Changelog
15.0.0-alpha.5
TextInput
now automatically changes iconLeft
into a FlatButton
if onClickLeft
is set. Same for right side.DateRange
interface and DateStringRange
interface, including transformers.New props minDate
and maxDate
in Calendar
and all calendar input components.
Both are optional, and both are strings in format 2021-11-23
.
If maxDate
is not provided, 2999-12-31
is the default.
When set, all dates before (or after) will be disabled in the calendar.
DateRangeCalendarOnChangeValue
has been removed. Use DateRange
instead.DateRangeCalendar
now uses value
and onValueChange
props, with DateRange
as model, instead of setStartDate
, etc.DateRangeInput
now uses value
and onValueChange
props.wordBreak
prop.Modal
has new prop footer
. The footer is sticky by default, but can be turned off with disableStickyFooter
.Changelog
15.0.0-alpha.4
ChipMultiSelect
and SimpleCheckboxListSection
pass down section props to SearchFilterSection
.Changelog
15.0.0-alpha.3
ChipMultiSelectSection
always fill full width of filter section.Changelog
15.0.0-alpha.0
filter
This package contains new functionality, search filter.
It makes it easy to create a custom filter in a drawer, with a custom model for the search filter.
It also makes it easy to create an overview row containing chips.
Please see stories for an example.
core
truthyKeysAsList
, returns all keys that have a truthy value.PickByValue
, a type that returns a new type with picked fields that match a type.type StringFieldsOnUser = PickByValue<User, string>;
react-select
has been updated to v5.Changelog
14.2.0
hideYearPagination
prop to hide year pagination arrows.calendarProps
which will be passed along to the internal Calendar-component, and can be used to specify enabled dates and onDayClick
callback.HTMLTextAreaElement
through a generic element type.onChange
was called twice when pressing enter or the arrow keys.disableCloseOnClick
is no longer forwarded to the DOM.hoverIcon
and hoverColor
.ref
prop.display
prop so that you can e.g. display it inline.hoverIcon
and hoverColor
.Changelog
14.1.1
Changelog
14.1.0
bannerError
to StandardTable
props and is prioritized before error property if given. Error is now displayed in a ResultListBanner
.error
and errorLabel
are now displayed in a Banner
.onKeyDown
option.onKeyDown: (event, { item, columnId }) => {
if (event.key === " ") {
setActive(item, !item.active);
}
},
New column config: disableGridCellFocus
If this setting is enabled, the cell must add the focus highlight and onKeyDown on an element manually.
This makes it possible to let arrow navigation move focus to for example a checkbox in the cell, instead of the cell itself.
Adding this is easy, just spread requiredProps
from gridCell
into the HTML element.
active: createColumnConfig((item) => item.active, {
disableGridCellFocus: true,
renderCell: ({ item, gridCell: { requiredProps } }) => (
<Indent>
<Checkbox value={item.active} {...requiredProps} />
</Indent>
),
})