This documentation will assist you in seamlessly transitioning from UI5 Web Components v1.x to the latest version, UI5 Web Components 2.0.
Changed item | Old | New |
---|---|---|
Method | UI5Element#render |
UI5Element#renderer |
Method | Device#isIE |
N/A (removed) |
Module | CSP.js |
N/A (removed) |
npm init Option |
JavaScript |
N/A (removed) |
Code Documentation | API.json |
custom-elements-manifest.json |
Assets file | Assets-static.js |
Assets.js (dynamic) |
- Removed
UI5Element#render
method in favour ofUI5Element#renderer
. If you previously used "render"
class MyClass extends UI5Element {
static get render() {
return litRenderer;
}
}
start using "renderer"
class MyClass extends UI5Element {
static get renderer() {
return litRenderer;
}
}
Device#isIE
method has been removed and no longer available- Removed the
CSP.js
module and the creation of<style>
and<link>
tags, as all browsers now support adoptedStyleSheets. The following APIs are not available any more and should not be used:
import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"
import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"
import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"
-
Removed the JavaScript template option from @ui5/create-webcomponents-package Previously
npm init @ui5/webcomponents-package
used to create JS-based project, however now it will be TypeScript-based project. If you previously usednpm init @ui5/webcomponents-package --enable-typescript
to create TypeScript-based project, now it's by default, e.gnpm init @ui5/webcomponents-package
and--enable-typescript
is removed. -
The JSDoc plugin has been removed, and the generation of
api.json
has stopped. If you previously relied on theui5-package/dist/api.json file
, you can now useui5-package/dist/custom-elements.json
-
All
Assets-static.js
modules are removed. If you previously imported anyAssets-static.js
module from any package:
import "@ui5/webcomponents/dist/Assets-static.js";
import "@ui5/webcomponents-icons/dist/Assets-static.js"
import "@ui5/webcomponents-icons-tnt/dist/Assets-static.js"
import "@ui5/webcomponents-icons-business-suite/dist/Assets-static.js"
import "@ui5/webcomponents-localization/dist/Assets-static.js"
import "@ui5/webcomponents-theming/dist/Assets-static.js"
use the dynamic equivalent of it:
import "@ui5/webcomponents/dist/Assets.js";
import "@ui5/webcomponents-icons/dist/Assets.js";
import "@ui5/webcomponents-icons-tnt/dist/Assets.js";
import "@ui5/webcomponents-icons-business-suite/dist/Assets.js";
import "@ui5/webcomponents-localization/dist/Assets.js";
import "@ui5/webcomponents-theming/dist/Assets.js"
Changed item | Old | New |
---|---|---|
tag | ui5-badge |
ui5-tag |
- The Badge
ui5-badge
has been renamed to Tagui5-tag
. If you have previously used theui5-badge
:
<ui5-badge></ui5-badge>
Now use ui5-tag
instead:
<ui5-tag></ui5-tag>
Changed item | Old | New |
---|---|---|
Property | separator-style |
separators |
separators type enumeration |
BreadcrumbsSeparatorStyle |
BreadcrumbsSeparator |
- The
separator-style
property is renamed toseparators
and theBreadcrumbsSeparatorStyle
enum is renamed toBreadcrumbsSeparator
. If you have previously used theseparator-style
property:
<ui5-breadcrumbs separator-style="Slash">
Now use separators
instead:
<ui5-breadcrumbs separators="Slash">
Changed item | Old | New |
---|---|---|
Property | size |
values have changed, f.e. Small to S |
- The
size
property now accepts different values. If you previously used it like:
<ui5-busy-indicator size="Small"></ui5-busy-indicator>
Now use the new values instead:
<ui5-busy-indicator size="S"></ui5-busy-indicator>
Changed item | Old | New |
---|---|---|
Event | selected-dates-change |
selection-change |
- The event
selected-dates-change
is renamed toselection-change
. In addition the event detailsvalues
anddates
are renamed toselectedValues
andselectedDateValues
. If you previously used the Calendar event as follows:
myCalendar.addEventListener("selected-dates-change", () => {
const values = e.detail.values;
const dates = e.detail.dates;
})
Now you have to use the new event name and details:
myCalendar.addEventListener("selection-change", () => {
const values = event.detail.selectedValues;
const dates = event.detail.selectedDateValues;
})
Changed item | Old | New |
---|---|---|
TS Interface | ICardHeader |
CardHeader type |
- Removed the
ICardHeader
interface. If you previously used the interface
import type { ICardHeader } from "@ui5/webcomponents-base/dist/Card.js"
Use the CardHeader type instead:
import type CardHeader from "@ui5/webcomponents-base/dist/CardHeader.js"
Changed item | Old | New |
---|---|---|
Property | status |
additional-text |
CSS Shadow part | status |
additional-text |
- The
status
property and its shadow part have been renamed. If you previously used them:
<style>
.cardHeader::part(status) { ... }
</style>
<ui5-card-header status="3 of 10"></ui5-popover>
Now use additionalText
instead:
<style>
.cardHeader::part(additional-text) { ... }
</style>
<ui5-card-header class="cardHeader" additional-text="3 of 10"></ui5-card-header>
Changed item | Old | New |
---|---|---|
Property | pageIndicatorStyle |
pageIndicatorType |
- The
pageIndicatorStyle
no longer exists. If you previously used it like:
<ui5-carousel page-indicator-style="Numeric"></ui5-carousel>
Now you should use pageIndicatorType
instead:
<ui5-carousel page-indicator-type="Numeric"></ui5-carousel>
Changed item | Old | New |
---|---|---|
Method | openPopover |
N/A (removed) |
Method | showAt |
N/A (removed) |
- The
openPopover
andshowAt
methods are removed in favor ofopen
andopener
properties. If you previously used the imperative API:
button.addEventListener("click", function(event) {
colorPalettePopover.showAt(this);
});
Now the declarative API should be used instead:
<ui5-button id="opener">Open</ui5-button>
<ui5-color-palette-popover opener="opener">
button.addEventListener("click", function(event) {
colorPalettePopover.open = !colorPalettePopover.open;
});
Changed item | Old | New |
---|---|---|
Property | color |
value |
- The property
color
is renamed tovalue
. If you previously used the change event of the ColorPicker as follows:
<ui5-color-picker color="red"></ui5-color-picker>
Now you have to use it like this:
<ui5-color-picker value="red"></ui5-color-picker>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-checkbox value-state="Error"></ui5-checkbox>
<ui5-checkbox value-state="Warning"></ui5-checkbox>
<ui5-checkbox value-state="Success"></ui5-checkbox>
Now you have to use it like:
<ui5-checkbox value-state="Negative"></ui5-checkbox>
<ui5-checkbox value-state="Critical"></ui5-checkbox>
<ui5-checkbox value-state="Positive"></ui5-checkbox>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-combobox value-state="Error"></ui5-combobox>
<ui5-combobox value-state="Warning"></ui5-combobox>
<ui5-combobox value-state="Success"></ui5-combobox>
Now you have to use it like:
<ui5-combobox value-state="Negative"></ui5-combobox>
<ui5-combobox value-state="Critical"></ui5-combobox>
<ui5-combobox value-state="Success"></ui5-combobox>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-date-picker value-state="Error"></ui5-date-picker>
<ui5-date-picker value-state="Warning"></ui5-date-picker>
<ui5-date-picker value-state="Success"></ui5-date-picker>
Now you have to use it like:
<ui5-date-picker value-state="Negative"></date-picker>
<ui5-date-picker value-state="Critical"></date-picker>
<ui5-date-picker value-state="Success"></ui5-date-picker>
Changed item | Old | New |
---|---|---|
method | openPicker, closePicker, isOpen | open |
- The methods
openPicker()
,closePicker()
andisOpen()
are replaced byopen
property.
If you previously used openPicker()
, closePicker()
or isOpen
:
const datePicker = document.getElementById("exampleID");
datePicker.openPicker();
datePicker.closePicker();
Now use the open
property respectively:
const datePicker = document.getElementById("exampleID");
datePicker.open = true;
datePicker.open = false;
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-datetime-picker value-state="Error"></ui5-datetime-picker>
<ui5-datetime-picker value-state="Warning"></ui5-datetime-picker>
<ui5-datetime-picker value-state="Success"></ui5-datetime-picker>
Now you have to use it like:
<ui5-datetime-picker value-state="Negative"></ui5-datetime-picker>
<ui5-datetime-picker value-state="Critical"></ui5-datetime-picker>
<ui5-datetime-picker value-state="Success"></ui5-datetime-picker>
Changed item | Old | New |
---|---|---|
method | openPicker, closePicker, isOpen | open |
- The methods
openPicker()
,closePicker()
andisOpen()
are replaced byopen
property.
If you previously used openPicker()
, closePicker()
or isOpen
:
const datetimePicker = document.getElementById("exampleID");
datetimePicker.openPicker();
datetimePicker.closePicker();
Now use the open
property respectively:
const datetimePicker = document.getElementById("exampleID");
datetimePicker.open = true;
datetimePicker.open = false;
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-daterange-picker value-state="Error"></ui5-daterange-picker>
<ui5-daterange-picker value-state="Warning"></ui5-daterange-picker>
<ui5-daterange-picker value-state="Success"></ui5-daterange-picker>
Now you have to use it like:
<ui5-daterange-picker value-state="Negative"></ui5-daterange-picker>
<ui5-daterange-picker value-state="Critical"></ui5-daterange-picker>
<ui5-daterange-picker value-state="Success"></ui5-daterange-picker>
Changed item | Old | New |
---|---|---|
method | openPicker, closePicker, isOpen | open |
- The methods
openPicker()
,closePicker()
andisOpen()
are replaced byopen
property.
If you previously used openPicker()
, closePicker()
or isOpen
:
const dateRangePicker = document.getElementById("exampleID");
dateRangePicker.openPicker();
dateRangePicker.closePicker();
Now use the open
property respectively:
const dateRangePicker = document.getElementById("exampleID");
dateRangePicker.open = true;
dateRangePicker.open = false;
Changed item | Old | New |
---|---|---|
Property | state="Error/Warning/Success" | state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-dialog state="Error"></ui5-dialog>
<ui5-dialog state="Warning"></ui5-dialog>
<ui5-dialog state="Success"></ui5-dialog>
Now you have to use it like:
<ui5-dialog state="Negative"></ui5-dialog>
<ui5-dialog state="Critical"></ui5-dialog>
<ui5-dialog state="Success"></ui5-dialog>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-file-uploader value-state="Error"></ui5-file-uploader>
<ui5-file-uploader value-state="Warning"></ui5-file-uploader>
<ui5-file-uploader value-state="Success"></ui5-file-uploader>
Now you have to use it like:
<ui5-file-uploader value-state="Negative"></ui5-file-uploader>
<ui5-file-uploader value-state="Critical"></ui5-file-uploader>
<ui5-file-uploader value-state="Success"></ui5-file-uploader>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-input value-state="Error"></ui5-input>
<ui5-input value-state="Warning"></ui5-input>
<ui5-input value-state="Success"></ui5-input>
Now you have to use it like:
<ui5-input value-state="Negative"></ui5-input>
<ui5-input value-state="Critical"></ui5-input>
<ui5-input value-state="Success"></ui5-input>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-multi-input value-state="Error"></ui5-multi-input>
<ui5-multi-input value-state="Warning"></ui5-multi-input>
<ui5-multi-input value-state="Success"></ui5-multi-input>
Now you have to use it like:
<ui5-multi-input value-state="Negative"></ui5-multi-input>
<ui5-multi-input value-state="Critical"></ui5-multi-input>
<ui5-multi-input value-state="Success"></ui5-multi-input>
Changed item | Old | New |
---|---|---|
Property | design="Warning" | design="Critical" |
- The property values
Warning
are renamed toCritical
. If you previously used it like:
<ui5-message-strip design="Warning"></ui5-message-strip>
Now you have to use it like:
<ui5-message-strip design="Critical"></ui5-message-strip>
Changed item | Old | New |
---|---|---|
class | StandardListItem | ListItemStandard |
If you previously imported the class as follows:
import StandardListItem from "@ui5/webcomponents/StandardListItem.js";
now you must change the import to:
import ListItemStandard from "@ui5/webcomponents/ListItemStandard.js";
Changed item | Old | New |
---|---|---|
Property | highlight="Error/Warning/Success" | highlight="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-li highlight="Warning"></ui5-li>
<ui5-li highlight="Warning"></ui5-li>
<ui5-li highlight="Success"></ui5-li>
Now you have to use it like:
<ui5-li highlight="Critical"></ui5-li>
<ui5-li highlight="Critical"></ui5-li>
<ui5-li highlight="Success"></ui5-li>
Changed item | Old | New |
---|---|---|
Property | additionalTextState="Error/Warning/Success" | additional-text-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-li additional-text-state="Warning"></ui5-li>
<ui5-li additional-text-state="Warning"></ui5-li>
<ui5-li additional-text-state="Success"></ui5-li>
Now you have to use it like:
<ui5-li additional-text-state="Critical"></ui5-li>
<ui5-li additional-text-state="Critical"></ui5-li>
<ui5-li additional-text-state="Success"></ui5-li>
Changed item | Old | New |
---|---|---|
class | CustomListItem | ListItemCustom |
If you previously imported the class as follows:
import CustomListItem from "@ui5/webcomponents/CustomListItem.js";
now you must change the import to:
import ListItemCustom from "@ui5/webcomponents/ListItemCustom.js";
Changed item | Old | New |
---|---|---|
Property | busy |
loading |
Property | busyDelay |
loadingDelay |
Property | mode |
selectionMode + additionally the values of ListMode have changed |
- If you have previously used the
busy
,busyDelay
properties:
<ui5-list busy busy-delay="500"></ui5-list>
now you must use loading
and loadingDelay
properties:
<ui5-list loading loading-delay="500"></ui5-list>
- If you have previously used the
mode
property and theListMode
values:
<ui5-list mode="SingleSelect">
<ui5-list mode="MultiSelect">
Now use selectionMode
and Single
, Multiple
instead:
<ui5-list selection-mode="Single">
<ui5-list selection-mode="Multiple">
Changed item | Old | New |
---|---|---|
Property | design="Warning" | design="Critical" |
- The property values
Warning
are renamed toCritical
. If you previously used it like:
<ui5-message-strip design="Warning"></ui5-message-strip>
Now you have to use it like:
<ui5-message-strip design="Critical"></ui5-message-strip>
Changed item | Old | New |
---|---|---|
Property | allowCustomValues |
noValidation |
- The
allowCustomValues
property has been renamed tonoValidation
. If you have previously used theallowCustomValues
property<ui5-multi-combobox allow-custom-values></ui5-multi-combobox>
Now use noValidation instead:<ui5-multi-combobox no-validation></ui5-multi-combobox>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-multi-combobox value-state="Error"></ui5-multi-combobox>
<ui5-multi-combobox value-state="Warning"></ui5-multi-combobox>
<ui5-multi-combobox value-state="Success"></ui5-multi-combobox>
Now you have to use it like:
<ui5-multi-combobox value-state="Negative"></ui5-multi-combobox>
<ui5-multi-combobox value-state="Critical"></ui5-multi-combobox>
<ui5-multi-combobox value-state="Success"></ui5-multi-combobox>
Changed item | Old | New |
---|---|---|
Property | disabled |
N/A (removed) |
- The
disabled
property of theui5-option
is removed. If you have previously used thedisabled
property:
<ui5-option disabled>Option</ui5-option>
it will no longer work for the component. Instead, do not render disabled options in the first place.
Changed item | Old | New |
---|---|---|
Property | horizontalAlign |
values have changed, f.e. Left to Start |
Property | placementType |
placement |
placement type enumeration |
PopoverPlacementType |
PopoverPlacement |
Event | after-open | open |
Event | after-close | close |
- The
Left
andRight
options have been renamed. If you previously used them to set the placement or the alignment of the popover:
<ui5-popover horizontal-align="Left" placement-type="Left"></ui5-popover>
Now use Start
or End
instead:
<ui5-popover horizontal-align="Start" placement-type="Start"></ui5-popover>
- The
placementType
property and thePopoverPlacementType
enum have been renamed. If you have previously used theplacementType
property and thePopoverPlacementType
<ui5-popover placement-type="Bottom"></ui5-popover>
import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacementType.js";
Now use placement
instead:
<ui5-placement="Bottom"></ui5-popover>
import PopoverPlacement from "@ui5/webcomponents/dist/types/PopoverPlacement.js";
- The events
after-close
andafter-open
have been renamed toopen
andclose
respectively. If you previously used the events like:
poover.addEventListener("after-open", (event) => {
});
poover.addEventListener("after-close", (event) => {
});
Now you have to use it like:
poover.addEventListener("open", (event) => {
});
poover.addEventListener("close", (event) => {
});
Changed item | Old | New |
---|---|---|
Property | disabled |
N/A |
- The
disabled
property of theui5-progress-indicator
is removed. If you have previously used thedisabled
property, it won't take effect:
<ui5-progress-indicator disabled value="60"></ui5-progress-indicator>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-rogress-indicator value-state="Error"></ui5-rogress-indicator>
<ui5-rogress-indicator value-state="Warning"></ui5-rogress-indicator>
<ui5-rogress-indicator value-state="Success"></ui5-rogress-indicator>
Now you have to use it like:
<ui5-rogress-indicator value-state="Negative"></ui5-rogress-indicator>
<ui5-rogress-indicator value-state="Critical"></ui5-rogress-indicator>
<ui5-rogress-indicator value-state="Success"></ui5-rogress-indicator>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-radio-button value-state="Error"></ui5-radio-button>
<ui5-radio-button value-state="Warning"></ui5-radio-button>
<ui5-radio-button value-state="Success"></ui5-radio-button>
Now you have to use it like:
<ui5-radio-button value-state="Negative"></ui5-radio-button>
<ui5-radio-button value-state="Critical"></ui5-radio-button>
<ui5-radio-button value-state="Success"></ui5-radio-button>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-select value-state="Error"></ui5-select>
<ui5-select value-state="Warning"></ui5-select>
<ui5-select value-state="Success"></ui5-select>
Now you have to use it like:
<ui5-select value-state="Negative"></ui5-select>
<ui5-select value-state="Critical"></ui5-select>
<ui5-select value-state="Success"></ui5-select>
Changed item | Old | New |
---|---|---|
Property | mode | selectionMode |
Readonly Property | selectedItem | selectedItems |
- The property
mode
has been renamed toselectionMode
. The selection modes are renamed fromSingleSelect
andMultiSelect
toSingle
andMultiple
.
If you previously used it as follows:
<ui5-segmented-button mode="SingleSelect"></ui5-segmented-button>
<ui5-segmented-button mode="MultiSelect"></ui5-segmented-button>
Now you have to use:
<ui5-segmented-button selection-mode="Single"></ui5-segmented-button>
<ui5-segmented-button selection-mode="Multiple"><ui5-segmented-button>
- The read-only getter
selectedItem
has been replaced byselectedItems
as multiple items can be selected.
Changed item | Old | New |
---|---|---|
Property | pressed | selected |
Property | design | ---- |
Property | iconEnd | ---- |
Property | submits | ---- |
Property | type | ---- |
Property | accessibilityAttributes | ---- |
Property | accessibleRole | ---- |
- The property
pressed
has been renamed toselected
.
If you previously used it as follows:
<ui5-segmented-button id="segButton1">
<ui5-segmented-button-item>Item 1</ui5-segmented-button-item>
<ui5-segmented-button-item pressed>Item 2</ui5-segmented-button-item>
</ui5-segmented-button>
Now you have to use it as follows:
<ui5-segmented-button id="segButton1">
<ui5-segmented-button-item>Item 1</ui5-segmented-button-item>
<ui5-segmented-button-item selected>Item 2</ui5-segmented-button-item>
</ui5-segmented-button>
- The property
design
has been inherited but never had effect and it's now removed. - The property
iconEnd
has been inherited but never had effect and it's now removed. - The property
submits
has been inherited but never had effect and it's now removed. - The property
type
has been inherited but never had effect and it's now removed. - The property
accessibilityAttributes
has been inherited but never had effect and it's now removed. - The property
accessibleRole
has been inherited but never had effect and it's now removed.
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-step-input value-state="Error"></ui5-step-input>
<ui5-step-input value-state="Warning"></ui5-step-input>
<ui5-step-input value-state="Success"></ui5-step-input>
Now you have to use it like:
<ui5-step-input value-state="Negative"></ui5-step-input>
<ui5-step-input value-state="Critical"></ui5-step-input>
<ui5-step-input value-state="Success"></ui5-step-input>
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-time-picker value-state="Error"></ui5-time-picker>
<ui5-time-picker value-state="Warning"></ui5-time-picker>
<ui5-time-picker value-state="Success"></ui5-time-picker>
Now you have to use it like:
<ui5-time-picker value-state="Negative"></ui5-time-picker>
<ui5-time-picker value-state="Critical"></ui5-time-picker>
<ui5-time-picker value-state="Success"></ui5-time-picker>
Changed item | Old | New |
---|---|---|
Property | fixed |
N/A (removed) |
Property | tabsOverflowMode |
overflowMode |
Type for backgroundDesign |
TabContainerBackgroundDesign |
BackgroundDesign |
Property | showOverflow |
overflowButton slot |
TS interface | ITab |
N/A (removed) |
-
Property "fixed" is removed and there is no alternative provided. The TabContainer is no longer expandable/collapsible via use interaction. You can still show the TabContainer collapsed via the "collapsed" property.
-
If you have previously used:
<ui5-tabcontainer tabs-overflow-mode="StartAndEnd"></ui5-tabcontainer>
Now use:
<ui5-tabcontainer overflow-mode="StartAndEnd"></ui5-tabcontainer>
-
If you previously imported
TabContainerBackgroundDesign
, useBackgroundDesign
instead. -
The
showOverflow
property is removed. If previously you have used:
<ui5-tabcontainer show-overflow></ui5-tabcontainer>
now use the overflowButton
slot:
<ui5-tabcontainer>
<ui5-button slot="startOverflowButton" id="startOverflowButton">Start</ui5-button>
<ui5-button slot="overflowButton" id="endOverflowButton">End</ui5-button>
</ui5-tabcontainer>
- You can no longer import and implement the
ITab
interface. TabContainer is designed to work only with Tab and TabSeparator classes, so the interface was obsolete.
Changed item | Old | New |
---|---|---|
Public method | getTabInStripDomRef |
getDomRefInStrip |
Slot | subTabs |
items |
- If previously you have used:
someTab.getTabInStripDomRef();
Now use:
someTab.getDomRefInStrip();
- If you have previously used:
<ui5-tab id="nestedTab" slot="subTabs"></ui5-tab>
Now use:
<ui5-tab id="nestedTab" slot="items"></ui5-tab>
Changed item | Old | New |
---|---|---|
Public method | getTabInStripDomRef |
getDomRefInStrip |
- If previously you have used:
someTabSeparator.getTabInStripDomRef();
Now use:
someTabSeparator.getDomRefInStrip();
Changed item | Old | New |
---|---|---|
Property | growingMaxLines |
growingMaxRows |
- The
growingMaxLines
property has been renamed togrowingMaxRows
.
Changed item | Old | New |
---|---|---|
Property | value-state="Error/Warning/Success" | value-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-textarea value-state="Error"></ui5-textarea>
<ui5-textarea value-state="Warning"></ui5-textarea>
<ui5-textarea value-state="Success"></ui5-textarea>
Now you have to use it like:
<ui5-textarea value-state="Negative"></ui5-textarea>
<ui5-textarea value-state="Critical"></ui5-textarea>
<ui5-textarea value-state="Success"></ui5-textarea>
Changed item | Old | New |
---|---|---|
wrappingType default value |
None |
Normal |
- The defualt value of the wrappingType property has been changed from
None
toNormal
.
Previously long texts would truncate if there is not enough space:
<ui5-title>some very very very long title</ui5-title> <!-- text will truncate if there is not enough space -->
Now, long texts would wrap:
<ui5-title>some very very very long title</ui5-title> <!-- text will wrap if there is not enough space -->
And you need to set wrapping-type="None"
explicitly to make it truncate as before:
<ui5-title wrapping-type="None">some very very very long title</ui5-title> <!-- will truncate the text -->
Changed item | Old | New |
---|---|---|
Property | mode |
selectionMode + additionally the values of ListMode have changed |
- If you have previously used the
mode
property and theListMode
values:
<ui5-tree mode="SingleSelect">
<ui5-tree mode="MultiSelect">
Now use selectionMode
and Single
, Multiple
instead:
<ui5-tree selection-mode="Single">
<ui5-tree selection-mode="Multiple">
Changed item | Old | New |
---|---|---|
Property | highlight="Error/Warning/Success" | highlight="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-tree-item highlight="Error"></ui5-tree-item>
<ui5-tree-item highlight="Warning"></ui5-tree-item>
<ui5-tree-item highlight="Success"></ui5-tree-item>
Now you have to use it like:
<ui5-tree-item highlight="Negative"></ui5-tree-item>
<ui5-tree-item highlight="Critical"></ui5-tree-item>
<ui5-tree-item highlight="Success"></ui5-tree-item>
Changed item | Old | New |
---|---|---|
Property | additional-text-state="Error/Warning/Success" | additional-text-state="Negative/Critical/Positive" |
- The property values
Error/Warning/Success
are renamed toNegative/Critical/Positive
. If you previously used it like:
<ui5-tree-item additional-text-state="Error"></ui5-tree-item>
<ui5-tree-item additional-text-state="Warning"></ui5-tree-item>
<ui5-tree-item additional-text-state="Success"></ui5-tree-item>
Now you have to use it like:
<ui5-tree-item additional-text-state="Negative"></ui5-tree-item>
<ui5-tree-item additional-text-state="Critical"></ui5-tree-item>
<ui5-tree-item additional-text-state="Success"></ui5-tree-item>
Changed item | Old | New |
---|---|---|
Event | after-close | close |
- The event
after-close
has been renamed toclose
. If you previously used it like:
toast.addEventListener("after-close", (event) => {
});
Now you have to use it like:
toast.addEventListener("close", (event) => {
});
- The
ui5-bar
component is now inmain
library. If you previously imported theui5-bar
fromfiori
:
import "@ui5/webcomponents-fiori/dist/Bar.js;
Now, import the ui5-bar
from main
:
import "@ui5/webcomponents/dist/Bar.js";
Changed item | Old | New |
---|---|---|
Public method | show() |
open property |
Public method | close() |
open property |
- The
show
andclose
public methods have been removed. Use the public propertyopen
instead.
For example, if you used:
d.show();
...
d.close();
use:
d.open = true;
...
d.open = false;
instead.
Changed item | Old | New |
---|---|---|
Property | accessibilityTexts |
removed |
Property | accessibilityRoles |
removed |
- The
accessibilityTexts
andaccessibilityRoles
properties of theui5-flexible-column-layout
are removed. If you have previously used theaccessibilityTexts
oraccessibilityRoles
properties:
fcl.accessibilityTexts = {
startColumnAccessibleName: "Products list",
midColumnAccessibleName: "Product information",
endColumnAccessibleName: "Product detailed information",
startArrowLeftText: "Collapse products list",
startArrowRightText: "Expand products list",
endArrowLeftText: "Expand product detailed information",
endArrowRightText: "Collapse product detailed information",
startArrowContainerAccessibleName: "Start Arrow Container",
endArrowContainerAccessibleName: "End Arrow Container",
}
fclAccRoles.accessibilityRoles = {
startColumnRole: "complementary",
startArrowContainerRole: "navigation",
midColumnRole: "main",
endArrowContainerRole: "navigation",
endColumnRole: "complementary".
}
Now use accessibilityAttributes
instead:
fcl.accessibilityAttributes = {
startColumn: {
role: "complementary"
name: "Products list",
},
midColumn: {
role: "complementary"
name: "Product information",
},
endColumn: {
role: "complementary"
name: "Product detailed information",
},
startArrowLeft: {
name: "Collapse products list",
},
startArrowRight: {
name: "Expand products list",
},
endArrowLeft: {
name: "Expand product detailed information",
},
endArrowRight: {
name: "Collapse product detailed information",
},
startArrowContainer: {
role: "navigation"
name: "Start Arrow Container",
},
endArrowContainer: {
role: "navigation"
name: "End Arrow Container",
},
};
Changed item | Old | New |
---|---|---|
Property | size |
design |
- The
size
property of theui5-illustrated-message
is renamed todesign
. If you have previously used thesize
property:
<ui5-illustrated-message size="Dialog">
Now use design
instead:
<ui5-illustrated-message design="Dialog">
Changed item | Old | New |
---|---|---|
Property | accessibilityTexts |
removed |
Property | accessibilityRoles |
removed |
- The
accessibilityTexts
andaccessibilityRoles
properties of theui5-shellbar
are removed. If you have previously used theaccessibilityTexts
oraccessibilityRoles
properties:
shellbar.accessibilityTexts = {
profileButtonTitle: "John Dow",
logoTitle: "Custom logo title",
}
shellbar.accessibilityRoles = {
logoRole: "link"
};
Now use accessibilityAttributes
instead:
shellbar.accessibilityAttributes = {
profile: {
name: "John Dow",
},
logo: {
role: "link"
name: "Custom logo title"
},
};
Changed item | Old | New |
---|---|---|
Property | priority |
state |
Property | busy |
loading |
Property | busyDelay |
loadingDelay |
Property | N/A | importance |
Slot | actions |
menu |
- The
priority
property of theui5-li-notification
is replaced by the new propertystate
. If you have previously used thepriority
property:
<ui5-li-notification priority="Medium">
Now use state
instead:
<ui5-li-notification state="Critical">
- If you have previously used the
busy
,busyDelay
properties:
<ui5-li-notification busy busy-delay="500"></ui5-li-notification>
now you must use loading
and loadingDelay
properties:
<ui5-li-notification loading loading-delay="500"></ui5-li-notification>
- The
actions
slot of theui5-li-notification
is replaced by the new slotmenu
. If you have previously used theactions
slot:
<ui5-li-notification>
<ui5-notification-action slot="actions" icon="message-error" text="Reject">
</ui5-notification-action>
Now use menu
instead:
<ui5-li-notification>
<ui5-menu slot="menu">
<ui5-menu-item icon="message-error" text="Reject"></ui5-menu-item>
</ui5-menu>
- Instead of
ui5-list
,ui5-notification-list
should be used as a container forui5-li-notification
component. Previously the application developers were defining notifications in this way:
<ui5-list>
<ui5-li-notification>
To support accessibility, developers should now use the ui5-notification-list
as seen below:
<ui5-notification-list>
<ui5-li-notification>
Changed item | Old | New |
---|---|---|
Property | showClose |
N/A (removed) |
Property | showCounter |
N/A (removed) |
Property | priority |
N/A (removed) |
Property | busy |
loading |
Property | busyDelay |
loadingDelay |
Event | close |
N/A (removed) |
Slot | actions |
N/A (removed) |
- Properties "showClose", "showCounter", "priority", event "close" and slot "actions" are removed and there is no alternatives provided. The NotificationGroup no longer shows "Close" button, counter text, priority and actions.
- If you have previously used the
busy
,busyDelay
properties:
<ui5-li-notification-group busy busy-delay="500"></ui5-li-notification-group>
now you must use loading
and loadingDelay
properties:
<ui5-li-notification-group loading loading-delay="500"></ui5-li-notification-group>
- Instead of
ui5-list
,ui5-notification-list
should be used as a container forui5-li-notification-group
component. Previously the application developers were defining notifications in this way:
<ui5-list>
<ui5-li-notification-group>
<ui5-li-notification>
To support accessibility, developers should now use the ui5-notification-list
as seen below:
<ui5-notification-list>
<ui5-li-notification-group>
<ui5-li-notification>
Changed item | Old | New |
---|---|---|
Property | mode |
selectionMode |
mode type enumeration |
values: SingleSelect , MultiSelect , etc. |
values: Single , Multiple , etc. |
Property | selectionMode |
no longer accepts Delete as value in favor of hide-delete-button |
TS Interface | IUploadCollectionItem |
UploadCollectionItem type |
- If you have previously used the
mode
property and theListMode
values:
<ui5-upload-collection mode="SingleSelect">
<ui5-upload-collection mode="MultiSelect">
Now use selectionMode
and Single
, Multiple
instead:
<ui5-upload-collection selection-mode="Single">
<ui5-upload-collection selection-mode="Multiple">
- The
selectionMode
property no longer accepts "Delete" as value. If you have previously used it:
<ui5-upload-collection selection-mode="Delete"></ui5-upload-collection>
Now omit it completely and use hide-delete-button
onto the ui5-upload-collection:
<ui5-upload-collection>
<ui5-upload-collection-item hide-delete-button> </ui5-upload-collection-item>
</ui5-upload-collection>
- Removed the
IUploadCollectionItem
interface. If you previously used the interface:
import type { IUploadCollectionItem} from "@ui5/webcomponents-fiori/dist/UploadCollection.js"
Use the UploadCollectionItem
type instead:
import type UploadCollectionItem from "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js"
Changed item | Old | New |
---|---|---|
Icon | soccor |
soccer |
Icon | add-polygone |
add-polygon |
- Removed
soccor
icon. Usesoccer
instead. - Removed
add-polygone
icon. Useadd-polygon
instead.