@epam/cra-template-uui
Advanced tools
Changelog
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 validationChangelog
5.7.2 - 12.04.2024
What's Fixed
isDropdown
prop with showDropdownIcon
to prevent the automatic appearance of the dropdown icon when using IconButton
as the Dropdown
target.localStorage
, due to old mechanism with window.opener.postMessage
was broken on SSO side by security reasons .
localStorage
replace code of /auth/login
endpoint to <html><script>window.localStorage.setItem("uui-auth-recovery-success", "true"); window.close();</script></html>
Changelog
5.7.1 - 29.03.2024
What's Fixed
Changelog
5.7.0 - 25.03.2024
What's New
props.size
value. You no longer need to pass an icon with an appropriate size for the component's size. The provided icon will now be scaled by the component itself.showFoldAll={ true }
to the DataTable props.onFocus
propdisableCloseOnRouterChange={true}
prop to ModalBlocker component.maxHeight
propisDisabled
propertysize
disableClear
to disable inputs' clear crossspacing
, it will be removed in future releases. Please use columnGap
instead. spacing
prop now works via columnGap
.topBorder
to add border on the top of the FlexRowWhat's Fixed
onValueChange
calls on dataSourceState
change(search, focusedIndex change) in single select with valueType=entity
.isDropdown
;isReadonly
;readonly
or disable
;