@stenajs-webui/calendar
Advanced tools
Changelog
2.0.2
TravelCalendarTheme
has been removed.Changelog
2.0.1
Banner
New component for showing information and errors.
StandardTable
Column configs itemLabelFormatter
now gets item
as second argument.
DateRangeDualTextInput
YearPicker
no longer scrolls to new year in focus.useGridCell
Popover
Changelog
2.0.0
DateRangeDualTextInput
New component DateRangeDualTextInput
which has the same functionality as DateRangeInput
.
It does not replace it though, since they are not API compatible.
CenterModal
New modal which is centered and not draggable.
LoadingModal
New modal for showing loading/saving state.
revertEditableEntity
action to editable-entity-reducer
.ActionMenuItem
now has white background.Months
enum have been renamed to Month
.WeekDays
enum have been renamed to WeekDay
.Popover
Popover
now uses Tippy, and Tippy's props. This means that some props have changed.
Most importantly, content and children can no longer be functions. If you need the hide and show functions, implement
them using local state and the Popover visible
props.
Changelog
1.2.0
entity-list-reducer
has new action actionOnAll
, which applies child action to all items.editable-entity-reducer
which contains persisted and editable instances of entity.Select
has been updated according to design system. Resulting in removal of its theme property.Select
now has a variant property that can be either light or dark.Changelog
1.1.1
Changelog
1.1.0
StandardTable
state when new data is fetched.This caused prefilled checkboxes to be cleared.
This must now be handled manually when there is new data in the table without it being unmounted between renders.
Previously, it would switch start date and end date if start date was after end date. Instead, it now highlights the inputs with error highlight.
This means that you are no longer guaranteed that the range is valid.
Changelog
1.0.8
onChange did not properly use latest value in editor cells.
Changelog
1.0.7
reducerIdGate
did not handle actions with unexpected form. Such actions can be dispatched by Redux itself, or
middlewares. Such actions are now just passed down to the internal reducer, which can handle the actions as they see
fit.
Changelog
1.0.6
It now uses type Reducer
type from redux
instead of react
. This makes it compatible with combineReducers
from
Redux.
Changelog
1.0.5
Select
component now has the same focused box shadow that is used in input fields.Link
component now uses an 1px outline instead of border.StandardTableConfig
now infers column names from row object automatically.StandardTableConfig
now supports expand collapse button in header row (set showHeaderExpandCollapse
to true
)StandardTable
StandardTable
is now using new higher order reducers, which require composing nested actions. This made it harder to
create actions in the apps, and these new actions help.
New actions are exposed by useLocalStateTableContext
hook, and can be created manually
using createStandardTableActions
function.
useLocalStateTableContext
.useLocalStateTableContext
now accepts an initialState
parameter instead of initialSortOrder
and initialSortOrderDesc
.
createStandardTableInitialState
to maintain compatibility.