Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@ui5/webcomponents-icons
Advanced tools
Provides assets for the rich SAP-icons
icon collection.
Icon asset | Module import |
---|---|
All icons (~115KB zipped) | import "@ui5/webcomponents-icons/dist/AllIcons.js"; |
Accelerated icon | import "@ui5/webcomponents-icons/dist/accelerated.js"; |
Accept icon | import "@ui5/webcomponents-icons/dist/accept.js"; |
... | ... |
Zoom out icon | import "@ui5/webcomponents-icons/dist/zoom-out.js"; |
Note: The @ui5/webcomponents-icons
package does not provide any web components per se, but rather icon assets,
usable by other web components such as ui5-icon
. You could import all icons, but it's recommended to import
just the ones that your app will actually use.
Note: For a full list of the icons in the SAP-icons
collection, click here.
import "@ui5/webcomponents-fiori/dist/Assets.js";
Assets | Module | Notes |
---|---|---|
i18n | @ui5/webcomponents-icons/dist/Assets.js | Translations for the tooltips / "aria labels" of several icons |
As SAP Icons is the default icon collection, you can skip the collection name and just set the name of the icon:
<ui5-icon name="accept"></ui5-icon>
The package provides two versions of each icon (SAP Icons v4 and SAP Icons v5). If you don't specify a collection name like in the example above,
the framework will detect the current theme and render the corresponding icon - SAP Icons v5
for SAP Horizon theme family (sap_horizon, sap_horizon_dark, etc.), and SAP Icons v4
for all the rest (sap_fiori_3, sap_fiori_3_dark, etc.).
SAP-icon-v4
and SAP-icon-v5
In case you want to always display the SAP Icons v5
icons in all themes, you can set it explicitly via the SAP-icon-v5
collection name:
<ui5-icon name="SAP-icon-v5/accept"></ui5-icon>
The same applies if you want to always display the SAP Icons v4
icons. You can set it explicitly via the SAP-icon-v4
collection name:
<ui5-icon name="SAP-icon-v4/accept"></ui5-icon>
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 (2024-07-03)
end-icon
and text in long links (#9325) (b559431)ListSeparators
enum to ListSeparator
(#9308) (26bb513)image
property of the ui5-li
is removed and the imageContent
slot is renamed to image
.
If you have previously used the image
property:<ui5-li image="./img/HT-1022.jpg">Standard List Item</ui5-li>
or the imageContent
slot:
<ui5-li> Avatar inside imageContent slot
<ui5-avatar slot="imageContent" shape="Square" initials="ABC" color-scheme="Accent2"></ui5-avatar>
</ui5-li>
Now use image
slot instead:
<ui5-li> Avatar inside image slot
<ui5-avatar slot="image" shape="Square" initials="ABC" color-scheme="Accent2"></ui5-avatar>
</ui5-li>
Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887, https://github.com/SAP/ui5-webcomponents/issues/9200
Now, you must import the ListSeparator
enumeration as follows:
import ListSeparator from "@ui5/webcomponents/dist/types/ListSeparator.js";
import type ListSeparator from "@ui5/webcomponents/dist/types/ListSeparator.js";
Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
import IllustrationMessageSize from "@ui5/webcomponents-base/dist/types/IllustrationMessageSize.js"; Now import IllustrationMessageDesign instead:
import IllustrationMessageDesign from "@ui5/webcomponents-base/dist/types/IllustrationMessageDesign.js";
type
, description
, icon
, iconEnd
, image
from ui5-suggestion-item
and introduce ui5-suggestion-item-custom
ui5-suggestion-item
:
type
property is removed, use ui5-suggestion-item-custom
instead.description
property is removed, use ui5-suggestion-item-custom
instead.icon
property is removed, use ui5-suggestion-item-custom
instead.iconEnd
property is removed, use ui5-suggestion-item-custom
instead.image
property is removed, use ui5-suggestion-item-custom
instead.ui5-suggestion-group-item
:
ui5-suggestion-item-group
text
is removed, use headerText
insteadui5-suggestion-item-custom
:
ui5-li-custom
@ui5/webcomponents-base/dist/util/generateHighlightedMarkup.js
All suggestion items are now physical items and can be overstyled. Grouping now works with via nesting: e.g.
<ui5-input show-suggestions>
<ui5-suggestion-item-group header-text="Group 1">
<ui5-suggestion-item text="Group Item 1"></ui5-suggestion-item>
</ui5-suggestion-item-group>
</ui5-input>
show
and close
methods.Before, the ui5-view-settings-dialog could be opened and closed by calling show()
and close()
:
const viewSettingsDialog = document.getElementById("exampleID");
viewSettingsDialog.show();
viewSettingsDialog.close();
Now, the dialog is opened and closed by setting the open property to true or false:
const viewSettingsDialog = document.getElementById("exampleID");
viewSettingsDialog.open = true;
viewSettingsDialog.open = false;
fixes: https://github.com/SAP/ui5-webcomponents/issues/9240
startsSection
property removed from MenuItemsBefore:
<ui5-menu> <ui5-menu-item text="Item A"></ui5-menu-item> <ui5-menu-item text="Item B" starts-section></ui5-menu-item> </ui5-menu>Now:
<ui5-menu> <ui5-menu-item text="Item A"></ui5-menu-item> <ui5-menu-separator></ui5-menu-separator> <ui5-menu-item text="Item B"></ui5-menu-item> </ui5-menu>FAQs
UI5 Web Components: webcomponents.SAP-icons
The npm package @ui5/webcomponents-icons receives a total of 38,728 weekly downloads. As such, @ui5/webcomponents-icons popularity was classified as popular.
We found that @ui5/webcomponents-icons 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.