Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@ui5/webcomponents
Advanced tools
Provides general purpose UI building blocks such as buttons, labels, inputs and popups.
Web Component | Tag name | Module import |
---|---|---|
Avatar | ui5-avatar | import "@ui5/webcomponents/dist/Avatar.js"; |
Avatar Group | ui5-avatar-group | import "@ui5/webcomponents/dist/AvatarGroup.js"; |
Tag | ui5-tag | import "@ui5/webcomponents/dist/Tag.js"; |
Bar | ui5-bar | import "@ui5/webcomponents/dist/Bar.js"; |
Breadcrumbs | ui5-breadcrumbs | import "@ui5/webcomponents/dist/Breadcrumbs.js"; |
Breadcrumbs Item | ui5-breadcrumbs-item | comes with ui5-breadcrumbs |
Tag | ui5-tag | import "@ui5/webcomponents/dist/Tag.js"; |
Busy Indicator | ui5-busy-indicator | import "@ui5/webcomponents/dist/BusyIndicator.js"; |
Button | ui5-button | import "@ui5/webcomponents/dist/Button.js"; |
Calendar | ui5-calendar | import "@ui5/webcomponents/dist/Calendar.js"; |
Calendar Date | ui5-calendar-date | comes with ui5-calendar |
Card | ui5-card | import "@ui5/webcomponents/dist/Card.js"; |
CardHeader | ui5-card-header | import "@ui5/webcomponents/dist/CardHeader.js"; |
Carousel | ui5-carousel | import "@ui5/webcomponents/dist/Carousel.js"; |
Checkbox | ui5-checkbox | import "@ui5/webcomponents/dist/CheckBox.js"; |
Color Palette | ui5-color-palette | import "@ui5/webcomponents/dist/ColorPalette.js"; |
Color Palette Item | ui5-color-palette-item | comes with ui5-color-palette |
Color Palette Popover | ui5-color-palette-popover | comes with ui5-color-palette-popover |
Color Picker | ui5-color-picker | import "@ui5/webcomponents/dist/ComboPicker.js"; |
ComboBox | ui5-combobox | import "@ui5/webcomponents/dist/ComboBox.js"; |
ComboBox Item | ui5-cb-item | comes with ui5-combobox |
ComboBox Group Item | ui5-cb-group-item | comes with ui5-combobox |
Date Picker | ui5-date-picker | import "@ui5/webcomponents/dist/DatePicker.js"; |
Date Range Picker | ui5-daterange-picker | import "@ui5/webcomponents/dist/DateRangePicker.js"; |
Date Time Picker | ui5-datetime-picker | import "@ui5/webcomponents/dist/DateTimePicker.js"; |
Dialog | ui5-dialog | import "@ui5/webcomponents/dist/Dialog.js"; |
File Uploader | ui5-file-uploader | import "@ui5/webcomponents/dist/FileUploader.js"; |
Icon | ui5-icon | import "@ui5/webcomponents/dist/Icon.js"; |
Input | ui5-input | import "@ui5/webcomponents/dist/Input.js"; |
Label | ui5-label | import "@ui5/webcomponents/dist/Label.js"; |
Link | ui5-link | import "@ui5/webcomponents/dist/Link.js"; |
List | ui5-list | import "@ui5/webcomponents/dist/List.js"; |
List - Standard Item | ui5-li | import "@ui5/webcomponents/dist/StandardListItem.js"; |
List - Custom Item | ui5-li-custom | import "@ui5/webcomponents/dist/CustomListItem.js"; |
List - Group Item | ui5-li-group | import "@ui5/webcomponents/dist/ListItemGroup.js"; |
Menu | ui5-menu | import "@ui5/webcomponents/dist/Menu.js"; |
Message Strip | ui5-message-strip | import "@ui5/webcomponents/dist/MessageStrip.js"; |
Multi ComboBox | ui5-multi-combobox | import "@ui5/webcomponents/dist/MultiComboBox.js"; |
Multi ComboBox Item | ui5-mcb-item | comes with ui5-multi-combobox |
Multi ComboBox Group Item | ui5-mcb-group-item | comes with ui5-multi-combobox |
Multi Input | ui5-multi-input | import "@ui5/webcomponents/dist/MultiInput.js"; |
Panel | ui5-panel | import "@ui5/webcomponents/dist/Panel.js"; |
Popover | ui5-popover | import "@ui5/webcomponents/dist/Popover.js"; |
ProgressIndicator | ui5-progress-indicator | import "@ui5/webcomponents/dist/ProgressIndicator.js"; |
Radio Button | ui5-radio-button | import "@ui5/webcomponents/dist/RadioButton.js"; |
Range Slider | ui5-range-slider | import "@ui5/webcomponents/dist/RangeSlider.js"; |
Rating Indicator | ui5-rating-indicator | import "@ui5/webcomponents/dist/RatingIndicator.js"; |
Responsive Popover | ui5-responsive-popover | import "@ui5/webcomponents/dist/ResponsivePopover.js"; |
Segmented Button | ui5-segmented-button | import "@ui5/webcomponents/dist/SegmentedButton.js"; |
Segmented Button Item | ui5-segmented-button-item | comes with ui5-segmented-button |
Select | ui5-select | import "@ui5/webcomponents/dist/Select.js"; |
Select Option | ui5-option | comes with ui5-select |
Slider | ui5-slider | import "@ui5/webcomponents/dist/Slider.js"; |
Split Button | ui5-split-button | import "@ui5/webcomponents/dist/SplitButton.js"; |
Step Input | ui5-step-input | import "@ui5/webcomponents/dist/StepInput.js"; |
Suggestion Item | ui5-suggestion-item | comes with InputSuggestions.js feature - see below |
Switch | ui5-switch | import "@ui5/webcomponents/dist/Switch.js"; |
Tab Container | ui5-tabcontainer | import "@ui5/webcomponents/dist/TabContainer.js"; |
Tab | ui5-tab | import "@ui5/webcomponents/dist/Tab.js"; |
Tab Separator | ui5-tab-separator | import "@ui5/webcomponents/dist/TabSeparator.js"; |
Textarea | ui5-textarea | import "@ui5/webcomponents/dist/TextArea.js"; |
TimePicker | ui5-time-picker | import "@ui5/webcomponents/dist/TimePicker.js"; |
Title | ui5-title | import "@ui5/webcomponents/dist/Title.js"; |
Toast | ui5-toast | import "@ui5/webcomponents/dist/Toast.js"; |
Toggle Button | ui5-toggle-button | import "@ui5/webcomponents/dist/ToggleButton.js"; |
Token | ui5-token | comes with ui5-multi-input |
Tree | ui5-tree | import "@ui5/webcomponents/dist/Tree.js"; |
Tree Item | ui5-tree-item | comes with ui5-tree |
import "@ui5/webcomponents/dist/Assets.js";
Assets | Module | Notes |
---|---|---|
i18n , themes | @ui5/webcomponents/dist/Assets.js | Theming parameters and translations for the components Automatically imports also: @ui5/webcomponents-localization/dist/Assets.js and @ui5/webcomponents-theming/dist/Assets.js |
import "@ui5/webcomponents/dist/features/<FEATURE-NAME>.js
Affects | Feature Import | Description |
---|---|---|
ui5-color-palette | @ui5/webcomponents/dist/features/ColorPaletteMoreColors.js | Support for "more colors dialog" for the color palette component |
ui5-input | @ui5/webcomponents/dist/features/InputSuggestions.js | Support for input suggestions while typing |
import "@ui5/webcomponents/dist/features/ColorPaletteMoreColors.js";
The ui5-color-palette
component has a showMoreColors
property, that, when set to true
, enables a "More colors" dialog.
Since this is not always needed, in order to use this dialog, you must import the above feature.
import "@ui5/webcomponents/dist/features/InputSuggestions.js";
The <ui5-input>
element acts as an <input>
with the Fiori design and added functionality, such as value state.
The so-called "input suggestions" is an advanced feature that allows the user to choose from a list of predefined options while typing.
Since input suggestions may not always be needed, they do not come as part of the <ui5-input>
itself.
To enable the functionality, import the above module into your app. This will also automatically import ui5-suggestion-item
for your convenience.
We welcome all comments, suggestions, questions, and bug reports. Please follow our Support Guidelines on how to report an issue, or chat with us in the #webcomponents
channel of the OpenUI5 Community Slack.
Please check our Contribution Guidelines.
Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the LICENSE file.
2.0.0-rc.4 (2024-05-29)
after-close
to close
(#8967) (d05839d)open
property (#9001) (1c1cea6)Before the ui5-input suggestions popover could be opened by calling openPicker()
:
const input = document.getElementById("exampleID");
input.openPicker();
Now the suggestions popover is opened by setting the open
property to true:
const input = document.getElementById("exampleID");
input.open = true;
Highlight
enum should be imported differently.
Before:import HighlightTypes from "@ui5/webcomponents-base/dist/types/HighlightTypes.js";
Now:
import Highlight from "@ui5/webcomponents-base/dist/types/Highlight.js";
Before:
<ui5-toolbar-button icon="home" icon-end>Button</ui5-toolbar-button>
Now:
<ui5-toolbar-button end-icon="home">Button</ui5-toolbar-button>
or
<ui5-toolbar-button icon="employee" end-icon="home">Button</ui5-toolbar-button>
ui5-list
, ui5-notification-list
should be used as a container for ui5-li-notification-group
and ui5-li-notification
components.Previously the application developers were defining notifications in this way:
<ui5-list>
<ui5-li-notification-group title-text="Group Title" >
<ui5-li-notification..
To support accessibility, developers should now use the ui5-notification-list
as seen below:
<ui5-notification-list>
<ui5-li-notification-group title-text="Group Title" >
<ui5-li-notification..
showCoPilot
property of the ui5-shellbar
is removed.If you have previously used the showCoPilot
property:
<ui5-shellbar show-co-pilot></ui5-shellbar>
it will no longer work for the component.
CoPilotAnimation
feature of the ui5-shellbar
is removed.If you have previously used the CoPilotAnimation
feature:
import CoPilotAnimation from "@ui5/webcomponents-fiori/dist/features/CoPilotAnimation.js"
it will no longer work for the component.
copilotDomRef
getter of the ui5-shellbar
is removed.If you have previously used the copilotDomRef
public getter:
shellbar.copilotDomRef
it will no longer work for the component.
co-pilot-click
event of the ui5-shellbar
is removed.
If you have previously used the co-pilot-click
public event:shellbar.addEventListener("ui5-co-pilot-click", function(event) {
...
});
it will no longer work for the component.
You can achieve similar functionality with the new slot:
HTML:
<ui5-shellbar>
<ui5-toggle-button id="assistant" icon="sap-icon://da" slot="assistant"></ui5-toggle-button>
</ui5-shellbar>
JavaScript:
assistant.addEventListener("click", function (event) {
const toggleButton = event.target;
toggleButton.icon = toggleButton.pressed ? "sap-icon://da-2" : "sap-icon://da";
});
SelectMenu & SelectMenuOption Changed item Old New SelectMenu ui5-select-menu removed SelectMenuOption ui5-select-menu-option ui5-option-custom If you have previously used the ui5-select-menu and ui5-select-menu-option:
<ui5-select menu="selectMenu"></ui5-select>
<ui5-select-menu id="selectMenu"> <ui5-select-menu-option> <div class="optionContent">custom</div> </ui5-select-menu-option> </ui5-select-menu> Now use just ui5-select and ui5-option-custom instead: <ui5-select> <ui5-option-custom> <div class="optionContent">custom</div> </ui5-option-custom> </ui5-select> Select Changed item Old New property menu removed The menu property of the ui5-select is removed. * **ui5-button:** iconEnd property is changed from boolean to string type and now can accept name for second/end icon.Before:
<ui5-button icon="home" icon-end>Button</ui5-button>
Now:
<ui5-button end-icon="home">Button</ui5-button>
or
<ui5-button icon="employee" end-icon="home">Button</ui5-button>
after-close
event has been renamed to close
. If you previously used it like:toast.addEventListener("after-close", (event) => {
});
Now you have to use it like:
toast.addEventListener("close", (event) => {
});
Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
features/InputElementsFormSupport.js
feature has been deleted and now, form elements works natively in form elements.Previously date ranges were declared as follows:
<ui5-calendar selection-mode="Range"> <ui5-date value="Jan 20, 2021"></ui5-date> <ui5-date value="Jan 30, 2021"></ui5-date> </ui5-calendar>Now they are declared using a ui5-date-range:
<ui5-calendar selection-mode="Range"> <ui5-date-range start-value="Jan 20, 2021" end-value="Jan 30, 2021"></ui5-date-range> </ui5-calendar> * **ui5-popup:** Event names `after-close` and `after-open` are now named `close` and `open`. Previously the application developers could subscribe to the events as follows: ```ts popup.addEventListener("after-open", function() { //... }); popup.addEventListener("after-close", function() { //... }); ```Now the application developers should include the ui5-bar as follows:
popup.addEventListener("open", function() {
//...
});
popup.addEventListener("close", function() {
//...
});
hideBackdrop
is removed.Previously the application developers could define a modal popover without visible backdrop as follows:
<ui5-popover modal hide-backdrop>
Now the application developers can use the standard ::backdrop
CSS selector
<style>
.transparentBackdrop::backdrop {
background: transparent;
}
</style>
...
<ui5-popover modal class="transparentBackdrop">
FAQs
UI5 Web Components: webcomponents.main
The npm package @ui5/webcomponents receives a total of 25,490 weekly downloads. As such, @ui5/webcomponents popularity was classified as popular.
We found that @ui5/webcomponents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.