@epam/cra-template-uui
Advanced tools
Changelog
5.8.3 - 19.07.2024
What's New
ResponseType
generic type for processRequest
function, which defines the returned type of the functionWhat's Fixed
processRequest
functionundefined
value instead of null
on clear action in numeric filter.Changelog
5.8.2 - 11.07.2024
What's New
renderFooter
callback params.What's Fixed
offset
value for left-start
placement optionChangelog
5.8.1 - 21.06.2024
What's Fixed
Changelog
5.8.0 - 06.06.2024
What's New
[Breaking change]: removed previously deprecated components:
SnackbarCard
component in Loveship, use NotificationCard
instead;ControlWrapper
component in Loveship and Promo;[Breaking change][Loveship]: removed previously deprecated props:
DropdownMenu items
must be wrapped into DropdownMenuBody
;Tag
component instead;LazyLoadedMap
, browser
, Debouncer
, parseIconViewbox
, parseStringToCSSProperties
, getScreenSize
, urlParser
, batch
[useTree]: useTree hook is added.
IDataSourceView.getSelectedRows
method. Currently, a new property, showSelectedOnly
, was added. If this flag is turned on, selected rows are returned from IDataSourceView.getVisibleRows
.patch
map.getNewItemPosition
function may be provided. If not provided, new items will be placed at the top of the list. It can return a various of position configurations:
PatchOrdering.TOP
- moves an element to the top of the children list;PatchOrdering.BOTTOM
- moves an element to the bottom of the children list;BaseListViewProps.getItemTemporaryOrder
returns some value for current item, that item is placed to the specific place and will not be included to the list of top/bottom children.BaseListViewProps.getItemTemporaryOrder
function. This order can be placed to the patched item and generated by using getOrderBetween
of the previous item temporary order or index and next item temporary order or index.patch
property, described above.rows
prop was added, along with getRows
.onValueChange
type was changed. Currently, it should support a state update callback((prevState: DataSourceState) => DataSourceState), instead of a new state value.IDataSource.getView
is deprecated. Use IDataSource.useView
instead.IDataSourceView.activate
is deprecated. This functionality is built in IDataSourceView.useView
hook.IDataSourceView.deactivate
is deprecated. This functionality is built in IDataSourceView.useView
hook.IDataSourceView.getSelectedRows
is deprecated. Pass showSelectedOnly = true
to IDataSourceView.useView
options and access selected rows via IDataSourceView.getVisibleRows()
.IDataSourceView.loadData
is deprecated.LazyListViewProps.legacyLoadDataBehavior
is deprecated.[useForm]:
setServerValidationState
callback to externally change server validation statebeforeLeave
callback. In this case, the form will perform the redirect and then lock again afterward.[Modals]: added property maxHeight
that equals 80dvh
in desktop mode and 100dvh
in mobile.
[ColumnsConfigurationModal]: set height
and maxHeight
equals to 95dvh
and mobile breakpoint changed from 640px
to 720px
as in all other modals.
[DatePicker][RangeDatePicker]: renderDay
prop callback signature updated
[PickerInput]: added property renderTag
which can be used for rendering custom Tags in PickerInput toggler. Exposed PickerTogglerTag
component, which is used in PickerInput
for default for tag rendering.
[PickerInput]: when using maxItems
prop, selected values are only partially collapsed. Some(equal maxItems
value) items remain visible, and the rest are collapsed into the "+N" view. Added tooltip with list of collapsed items to the "+N" tag
[DataTable]:
column.fix
prop for such column, 'left' value will be used by default.
Also, if you have a few isAlwaysVisible columns, it's necessary to place it together in the start or end(depends on fix
prop) of columns array.columnsGap?: '12' | '24'
[uui-editor]:
plugins
prop now typed as PlatePlugin[]
. YOu might need to change invocation of baseMarksPlugin()
to ...baseMarksPlugin()
el.data.colSpan
and el.data.rowSpan
removed from table cell node as it has duplicates: el.colSpan
and el.rowSpan
data.cellSizes
removed from table element as it has duplicate: el.colSizes
data.align
removed from image element as it has duplicate: el.align
separatorPlugin
[AdaptivePanel]: added property itemsGap
to set gap between items in the AdaptivePanel. You can set any number or select a predefined value.
[Avatar]: added 'number' type for size
prop
[LinkButton]:
[Button]: added 'white' color
[IconButton]: added semantic Primary, Accent and Critical colors. Colors info, success, error, warning is deprecated, use new one instead.
What's Fixed
beforeLeave
callback invocation in case of redirect at onSuccess callbackisInvalid
, validationMessage
and validationProps
value returned from hook in case of server validation. Before they have only client validation value, now it's merged with server validation