@openui5/sap.f 1.141.2 → 1.142.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/REUSE.toml +39 -1
- package/THIRDPARTY.txt +36 -3
- package/package.json +19 -4
- package/src/sap/f/.library +34 -3
- package/src/sap/f/Avatar.js +1 -1
- package/src/sap/f/AvatarGroup.js +1 -1
- package/src/sap/f/AvatarGroupItem.js +1 -1
- package/src/sap/f/CalendarAppointmentInCard.js +1 -1
- package/src/sap/f/CalendarInCard.js +1 -1
- package/src/sap/f/Card.js +1 -1
- package/src/sap/f/CardBase.js +1 -1
- package/src/sap/f/DynamicPage.js +30 -12
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +1 -1
- package/src/sap/f/DynamicPageTitle.js +1 -1
- package/src/sap/f/FlexibleColumnLayout.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutRenderer.js +2 -0
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +1 -1
- package/src/sap/f/GridContainerItemLayoutData.js +1 -1
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridList.js +1 -1
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/IllustratedMessage.js +1 -1
- package/src/sap/f/Illustration.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
- package/src/sap/f/ProductSwitch.js +1 -1
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/SearchManager.js +1 -1
- package/src/sap/f/ShellBar.js +1 -1
- package/src/sap/f/SidePanel.js +1 -1
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +1 -1
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericIndicators.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +1 -1
- package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
- package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
- package/src/sap/f/delegate/GridItemNavigation.js +1 -1
- package/src/sap/f/dnd/GridDragOver.js +1 -1
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/Avatar.js +238 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +339 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +125 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItem.js +140 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItemBase.js +64 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +207 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +280 -0
- package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +347 -0
- package/src/sap/f/gen/ui5/webcomponents.js +2819 -0
- package/src/sap/f/gen/ui5/webcomponents_base.js +572 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +211 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +204 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +164 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +243 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItemBase.js +87 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +248 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +125 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +60 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +88 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +76 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +81 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +655 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +122 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +139 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +232 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +74 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +279 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +129 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +83 -0
- package/src/sap/f/gen/ui5/webcomponents_fiori.js +1648 -0
- package/src/sap/f/library.js +2 -2
- package/src/sap/f/semantic/AddAction.js +1 -1
- package/src/sap/f/semantic/CloseAction.js +1 -1
- package/src/sap/f/semantic/CopyAction.js +1 -1
- package/src/sap/f/semantic/DeleteAction.js +1 -1
- package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/f/semantic/EditAction.js +1 -1
- package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
- package/src/sap/f/semantic/FavoriteAction.js +1 -1
- package/src/sap/f/semantic/FlagAction.js +1 -1
- package/src/sap/f/semantic/FooterMainAction.js +1 -1
- package/src/sap/f/semantic/FullScreenAction.js +1 -1
- package/src/sap/f/semantic/MainAction.js +1 -1
- package/src/sap/f/semantic/MessagesIndicator.js +1 -1
- package/src/sap/f/semantic/NegativeAction.js +1 -1
- package/src/sap/f/semantic/PositiveAction.js +1 -1
- package/src/sap/f/semantic/PrintAction.js +1 -1
- package/src/sap/f/semantic/SemanticButton.js +1 -1
- package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/f/semantic/SemanticControl.js +1 -1
- package/src/sap/f/semantic/SemanticPage.js +1 -1
- package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/f/semantic/SendEmailAction.js +1 -1
- package/src/sap/f/semantic/SendMessageAction.js +1 -1
- package/src/sap/f/semantic/ShareInJamAction.js +1 -1
- package/src/sap/f/semantic/TitleMainAction.js +1 -1
- package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
- package/src/sap/f/shellBar/CoPilot.js +1 -1
- package/src/sap/f/shellBar/ControlSpacer.js +1 -1
- package/src/sap/f/shellBar/Search.js +1 -1
- package/src/sap/f/themes/base/Card.less +8 -2
- package/src/sap/f/themes/base/CardHeaders.less +25 -3
- package/src/sap/f/themes/base/DynamicPage.less +6 -1
- package/src/sap/f/thirdparty/AccessibilityTextsHelper.js +13 -0
- package/src/sap/f/thirdparty/Avatar.js +453 -0
- package/src/sap/f/thirdparty/BusyIndicator.js +233 -0
- package/src/sap/f/thirdparty/Button.js +7 -0
- package/src/sap/f/thirdparty/Button2.js +656 -0
- package/src/sap/f/thirdparty/FocusableElements.js +10 -0
- package/src/sap/f/thirdparty/Icon.js +313 -0
- package/src/sap/f/thirdparty/Icons.js +234 -0
- package/src/sap/f/thirdparty/IllustratedMessage.js +1297 -0
- package/src/sap/f/thirdparty/Label.js +115 -0
- package/src/sap/f/thirdparty/Link.js +316 -0
- package/src/sap/f/thirdparty/List.js +1253 -0
- package/src/sap/f/thirdparty/ListBoxItemGroupTemplate.js +14 -0
- package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +10 -0
- package/src/sap/f/thirdparty/ListItemBase.js +251 -0
- package/src/sap/f/thirdparty/ListItemCustom.js +1689 -0
- package/src/sap/f/thirdparty/ListItemGroup.js +637 -0
- package/src/sap/f/thirdparty/Menu.js +389 -0
- package/src/sap/f/thirdparty/MenuItem.js +10 -0
- package/src/sap/f/thirdparty/MenuItem2.js +762 -0
- package/src/sap/f/thirdparty/NotificationList.js +291 -0
- package/src/sap/f/thirdparty/NotificationListGroupItem.js +310 -0
- package/src/sap/f/thirdparty/NotificationListItem.js +534 -0
- package/src/sap/f/thirdparty/NotificationListItemBase.js +98 -0
- package/src/sap/f/thirdparty/ResponsivePopover.js +2312 -0
- package/src/sap/f/thirdparty/SearchItem.css.js +10 -0
- package/src/sap/f/thirdparty/SearchItem.js +152 -0
- package/src/sap/f/thirdparty/SearchItemGroup.js +44 -0
- package/src/sap/f/thirdparty/SearchItemShowMore.js +86 -0
- package/src/sap/f/thirdparty/SearchMessageArea.js +49 -0
- package/src/sap/f/thirdparty/SearchScope.js +39 -0
- package/src/sap/f/thirdparty/ShellBar.js +1809 -0
- package/src/sap/f/thirdparty/ShellBarBranding.js +119 -0
- package/src/sap/f/thirdparty/ShellBarItem.js +89 -0
- package/src/sap/f/thirdparty/ShellBarSearch.js +7 -0
- package/src/sap/f/thirdparty/ShellBarSearch2.js +3453 -0
- package/src/sap/f/thirdparty/ShellBarSpacer.js +40 -0
- package/src/sap/f/thirdparty/Tag.js +302 -0
- package/src/sap/f/thirdparty/Text.js +127 -0
- package/src/sap/f/thirdparty/Title.js +167 -0
- package/src/sap/f/thirdparty/UserMenu.js +950 -0
- package/src/sap/f/thirdparty/UserMenuAccount.js +114 -0
- package/src/sap/f/thirdparty/UserMenuItem.js +61 -0
- package/src/sap/f/thirdparty/ValueState.js +7 -0
- package/src/sap/f/thirdparty/WrappingType.js +24 -0
- package/src/sap/f/thirdparty/_dynamics/InputComposition.js +35 -0
- package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +397 -0
- package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +193 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT.js +585 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT2.js +585 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite.js +1194 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite2.js +1194 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons.js +2509 -0
- package/src/sap/f/thirdparty/_dynamics/SAP-icons2.js +2509 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ar.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ar2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_bg.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_bg2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ca.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ca2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cs.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cs2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cy.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cy2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_da.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_da2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_de.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_de2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_el.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_el2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_et.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_et2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fi.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fi2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hi.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hi2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hr.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hr2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hu.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hu2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_id.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_id2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_it.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_it2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_iw.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_iw2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ja.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ja2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_kk.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_kk2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ko.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ko2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lt.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lt2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lv.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lv2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_mk.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_mk2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ms.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ms2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_nl.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_nl2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_no.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_no2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pl.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pl2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ro.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ro2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ru.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ru2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sh.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sh2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sk.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sk2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sl.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sl2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sr.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sr2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sv.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sv2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_th.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_th2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_tr.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_tr2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_uk.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_uk2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_vi.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_vi2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW.js +866 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW2.js +611 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css10.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css11.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css12.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css13.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css14.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css15.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css16.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css17.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css18.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css19.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css20.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css21.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css22.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css23.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css24.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css25.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css26.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css27.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css4.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css5.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css6.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css7.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css8.js +7 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css9.js +7 -0
- package/src/sap/f/thirdparty/encodeXML.js +87 -0
- package/src/sap/f/thirdparty/event-strict.js +7 -0
- package/src/sap/f/thirdparty/generateHighlightedMarkup.js +9 -0
- package/src/sap/f/thirdparty/i18n-defaults.js +119 -0
- package/src/sap/f/thirdparty/i18n-defaults2.js +159 -0
- package/src/sap/f/thirdparty/information.js +100 -0
- package/src/sap/f/thirdparty/information2.js +13 -0
- package/src/sap/f/thirdparty/overflow.js +25 -0
- package/src/sap/f/thirdparty/parameters-bundle.css.js +11 -0
- package/src/sap/f/thirdparty/parameters-bundle.css2.js +44 -0
- package/src/sap/f/thirdparty/parameters-bundle.css3.js +8 -0
- package/src/sap/f/thirdparty/query.js +7 -0
- package/src/sap/f/thirdparty/slim-arrow-down.js +44 -0
- package/src/sap/f/thirdparty/sys-enter-2.js +7 -0
- package/src/sap/f/thirdparty/toLowercaseEnumValue.js +7 -0
- package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +26 -0
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +26 -0
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +26 -0
- package/src/sap/f/thirdparty/webcomponents-base.js +7 -0
- package/src/sap/f/thirdparty/webcomponents-fiori.js +5 -0
- package/src/sap/f/thirdparty/webcomponents.js +4611 -0
- package/src/sap/f/thirdparty/willShowContent.js +7 -0
- package/ui5-build.yaml +55 -0
- package/ui5.yaml +46 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
sap.ui.define(['sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/i18n-defaults2'], (function (webcomponentsBase, eventStrict, parametersBundle_css$1, parametersBundle_css, Icons, Icon, i18nDefaults) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function AvatarTemplate() {
|
|
4
|
+
return (parametersBundle_css.jsxs("div", { class: "ui5-avatar-root", tabindex: this.tabindex, "data-sap-focus-ref": true, role: this._role, "aria-haspopup": this._ariaHasPopup, "aria-label": this.accessibleNameText, onKeyUp: this._onkeyup, onKeyDown: this._onkeydown, onClick: this._onclick, children: [this._hasImage ?
|
|
5
|
+
parametersBundle_css.jsx("slot", {})
|
|
6
|
+
: parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this.icon && parametersBundle_css.jsx(Icon.Icon, { class: "ui5-avatar-icon", name: this.icon, accessibleName: this.accessibleName }), this.initials ? (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsx("span", { class: "ui5-avatar-initials ui5-avatar-initials-hidden", children: this.validInitials }), parametersBundle_css.jsx(Icon.Icon, { name: this.fallbackIcon, class: "ui5-avatar-icon ui5-avatar-icon-fallback ui5-avatar-fallback-icon-hidden" })] })) : (
|
|
7
|
+
// Show fallback icon only
|
|
8
|
+
parametersBundle_css.jsx(Icon.Icon, { name: this.fallbackIcon, class: "ui5-avatar-icon ui5-avatar-icon-fallback" }))] }), parametersBundle_css.jsx("slot", { name: "badge" })] }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
12
|
+
Icons.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
|
|
13
|
+
var AvatarCss = `:host(:not([hidden])){display:inline-block;box-sizing:border-box;position:relative;font-family:var(--sapFontFamily)}:host(:not([hidden]).ui5_hovered){opacity:.7}:host([interactive]:not([disabled])){cursor:pointer}:host([interactive]:not([hidden]):active){background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([interactive]:not([hidden]):not([disabled]):not(:active):not([focused]):hover){box-shadow:var(--ui5-v2-15-0-avatar-hover-box-shadow-offset)}:host([interactive][desktop]:not([hidden])) .ui5-avatar-root:focus,:host([interactive]:not([hidden])) .ui5-avatar-root:focus-visible{outline:var(--_ui5-v2-15-0_avatar_outline);outline-offset:var(--_ui5-v2-15-0_avatar_focus_offset)}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:none}:host{height:3rem;width:3rem;border-radius:50%;border:var(--ui5-v2-15-0-avatar-initials-border);outline:none;color:var(--ui5-v2-15-0-avatar-initials-color)}.ui5-avatar-root{display:flex;align-items:center;justify-content:center;outline:none;height:100%;width:100%;border-radius:inherit}:host([_size="XS"]),:host([size="XS"]){height:2rem;width:2rem;min-height:2rem;min-width:2rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_XS)}:host(:not([size])),:host([_size="S"]),:host([size="S"]){min-height:3rem;min-width:3rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_S)}:host([_size="M"]),:host([size="M"]){min-height:4rem;min-width:4rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_M)}:host([_size="L"]),:host([size="L"]){min-height:5rem;min-width:5rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_L)}:host([_size="XL"]),:host([size="XL"]){min-height:7rem;min-width:7rem;font-size:var(--_ui5-v2-15-0_avatar_fontsize_XL)}:host .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_fontsize_S);width:var(--_ui5-v2-15-0_avatar_fontsize_S);color:inherit}:host([_size="XS"]) .ui5-avatar-icon,:host([size="XS"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_XS);width:var(--_ui5-v2-15-0_avatar_icon_XS)}:host([_size="S"]) .ui5-avatar-icon,:host([size="S"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_S);width:var(--_ui5-v2-15-0_avatar_icon_S)}:host([_size="M"]) .ui5-avatar-icon,:host([size="M"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_M);width:var(--_ui5-v2-15-0_avatar_icon_M)}:host([_size="L"]) .ui5-avatar-icon,:host([size="L"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_L);width:var(--_ui5-v2-15-0_avatar_icon_L)}:host([_size="XL"]) .ui5-avatar-icon,:host([size="XL"]) .ui5-avatar-icon{height:var(--_ui5-v2-15-0_avatar_icon_XL);width:var(--_ui5-v2-15-0_avatar_icon_XL)}::slotted(*){border-radius:50%;width:100%;height:100%;pointer-events:none}:host([shape="Square"]){border-radius:var(--ui5-v2-15-0-avatar-border-radius)}:host([shape="Square"]) ::slotted(*){border-radius:calc(var(--ui5-v2-15-0-avatar-border-radius) - var(--ui5-v2-15-0-avatar-border-radius-img-deduction))}:host(:not([color-scheme])),:host(:not([_has-image])),:host([color-scheme="Auto"]),:host([_color-scheme="Accent6"]),:host([ui5-avatar][color-scheme="Accent6"]){background-color:var(--ui5-v2-15-0-avatar-accent6);color:var(--ui5-v2-15-0-avatar-accent6-color);border-color:var(--ui5-v2-15-0-avatar-accent6-border-color)}:host([_color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent6"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_6_Hover_Background)}:host([_color-scheme="Accent1"]),:host([ui5-avatar][color-scheme="Accent1"]){background-color:var(--ui5-v2-15-0-avatar-accent1);color:var(--ui5-v2-15-0-avatar-accent1-color);border-color:var(--ui5-v2-15-0-avatar-accent1-border-color)}:host([_color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent1"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_1_Hover_Background)}:host([_color-scheme="Accent2"]),:host([ui5-avatar][color-scheme="Accent2"]){background-color:var(--ui5-v2-15-0-avatar-accent2);color:var(--ui5-v2-15-0-avatar-accent2-color);border-color:var(--ui5-v2-15-0-avatar-accent2-border-color)}:host([_color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent2"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_2_Hover_Background)}:host([_color-scheme="Accent3"]),:host([ui5-avatar][color-scheme="Accent3"]){background-color:var(--ui5-v2-15-0-avatar-accent3);color:var(--ui5-v2-15-0-avatar-accent3-color);border-color:var(--ui5-v2-15-0-avatar-accent3-border-color)}:host([_color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent3"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_3_Hover_Background)}:host([_color-scheme="Accent4"]),:host([ui5-avatar][color-scheme="Accent4"]){background-color:var(--ui5-v2-15-0-avatar-accent4);color:var(--ui5-v2-15-0-avatar-accent4-color);border-color:var(--ui5-v2-15-0-avatar-accent4-border-color)}:host([_color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent4"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_4_Hover_Background)}:host([_color-scheme="Accent5"]),:host([ui5-avatar][color-scheme="Accent5"]){background-color:var(--ui5-v2-15-0-avatar-accent5);color:var(--ui5-v2-15-0-avatar-accent5-color);border-color:var(--ui5-v2-15-0-avatar-accent5-border-color)}:host([_color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent5"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_5_Hover_Background)}:host([_color-scheme="Accent7"]),:host([ui5-avatar][color-scheme="Accent7"]){background-color:var(--ui5-v2-15-0-avatar-accent7);color:var(--ui5-v2-15-0-avatar-accent7-color);border-color:var(--ui5-v2-15-0-avatar-accent7-border-color)}:host([_color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent7"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_7_Hover_Background)}:host([_color-scheme="Accent8"]),:host([ui5-avatar][color-scheme="Accent8"]){background-color:var(--ui5-v2-15-0-avatar-accent8);color:var(--ui5-v2-15-0-avatar-accent8-color);border-color:var(--ui5-v2-15-0-avatar-accent8-border-color)}:host([_color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent8"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_8_Hover_Background)}:host([_color-scheme="Accent9"]),:host([ui5-avatar][color-scheme="Accent9"]){background-color:var(--ui5-v2-15-0-avatar-accent9);color:var(--ui5-v2-15-0-avatar-accent9-color);border-color:var(--ui5-v2-15-0-avatar-accent9-border-color)}:host([_color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent9"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_9_Hover_Background)}:host([_color-scheme="Accent10"]),:host([ui5-avatar][color-scheme="Accent10"]){background-color:var(--ui5-v2-15-0-avatar-accent10);color:var(--ui5-v2-15-0-avatar-accent10-color);border-color:var(--ui5-v2-15-0-avatar-accent10-border-color)}:host([_color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover),:host([ui5-avatar][color-scheme="Accent10"][interactive]:not([hidden]):not([disabled]):not(:active):hover){background-color:var(--sapAvatar_10_Hover_Background)}:host([_color-scheme="Placeholder"]),:host([ui5-avatar][color-scheme="Placeholder"]){background-color:var(--ui5-v2-15-0-avatar-placeholder);color:var(--ui5-v2-15-0-avatar-placeholder-color);border-color:var(--sapAvatar_Lite_BorderColor)}:host([_color-scheme="Transparent"]),:host([ui5-avatar][color-scheme="Transparent"]){background-color:transparent;border-color:transparent}:host([_has-image]){color:var(--ui5-v2-15-0-avatar-accent10-color);border:var(--ui5-v2-15-0-avatar-optional-border);background-color:transparent}.ui5-avatar-initials{color:inherit}.ui5-avatar-icon~.ui5-avatar-initials,.ui5-avatar-icon~.ui5-avatar-icon-fallback{display:none}.ui5-avatar-fallback-icon-hidden{display:none}.ui5-avatar-initials-hidden{position:absolute;visibility:hidden;z-index:0;pointer-events:none}::slotted([slot="badge"]){position:absolute;bottom:0;right:0;width:1.125rem;height:1.125rem;font-family:var(--sapFontFamily);font-size:var(--sapFontSmallSize);color:var(--sapBackgroundColor);--_ui5-v2-15-0-tag-height: 1.125rem}:host(:not([disabled])) ::slotted([slot="badge"]){pointer-events:initial}:host([_size="L"]) ::slotted([slot="badge"]),:host([size="L"]) ::slotted([slot="badge"]){width:1.25rem;height:1.25rem;--_ui5-v2-15-0-tag-height: 1.25rem;--_ui5-v2-15-0-tag-icon-width: .875rem}:host([_size="XL"]) ::slotted([slot="badge"]),:host([size="XL"]) ::slotted([slot="badge"]){width:1.75rem;height:1.75rem;--_ui5-v2-15-0-tag-height: 1.75rem;--_ui5-v2-15-0-tag-icon-width: 1rem}:host([shape="Square"]) ::slotted([slot="badge"]){bottom:-.125rem;right:-.125rem}:host([_size="L"][shape="Square"]) ::slotted([slot="badge"]),:host([size="L"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.1875rem;right:-.1875rem}:host([_size="XL"][shape="Square"]) ::slotted([slot="badge"]),:host([size="XL"][shape="Square"]) ::slotted([slot="badge"]){bottom:-.25rem;right:-.25rem}
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Different types of AvatarSize.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
var AvatarSize;
|
|
21
|
+
(function (AvatarSize) {
|
|
22
|
+
/**
|
|
23
|
+
* component size - 2rem
|
|
24
|
+
* font size - 1rem
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
AvatarSize["XS"] = "XS";
|
|
28
|
+
/**
|
|
29
|
+
* component size - 3rem
|
|
30
|
+
* font size - 1.5rem
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
AvatarSize["S"] = "S";
|
|
34
|
+
/**
|
|
35
|
+
* component size - 4rem
|
|
36
|
+
* font size - 2rem
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
AvatarSize["M"] = "M";
|
|
40
|
+
/**
|
|
41
|
+
* component size - 5rem
|
|
42
|
+
* font size - 2.5rem
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
AvatarSize["L"] = "L";
|
|
46
|
+
/**
|
|
47
|
+
* component size - 7rem
|
|
48
|
+
* font size - 3rem
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
AvatarSize["XL"] = "XL";
|
|
52
|
+
})(AvatarSize || (AvatarSize = {}));
|
|
53
|
+
var AvatarSize$1 = AvatarSize;
|
|
54
|
+
|
|
55
|
+
const name$1 = "employee";
|
|
56
|
+
const pathData$1 = "M448 512H64V384q0-26 10-49.5t27.5-41T142 266t50-10h64q-27 0-50-10t-40.5-27.5T138 178t-10-50q0-26 10-49.5t27.5-41T206 10t50-10q26 0 49.5 10t41 27.5 27.5 41 10 49.5q0 27-10 50t-27.5 40.5-41 27.5-49.5 10h64q26 0 49.5 10t41 27.5 27.5 41 10 49.5v128zM96 384v96h320v-96q0-40-28-68t-68-28H192q-40 0-68 28t-28 68zm160-160q40 0 68-28t28-68-28-68-68-28-68 28-28 68 28 68 68 28zm32 192v-32h96v32h-96z";
|
|
57
|
+
const ltr$1 = false;
|
|
58
|
+
const collection$1 = "SAP-icons-v4";
|
|
59
|
+
const packageName$1 = "@ui5/webcomponents-icons";
|
|
60
|
+
|
|
61
|
+
Icons.y(name$1, { pathData: pathData$1, ltr: ltr$1, collection: collection$1, packageName: packageName$1 });
|
|
62
|
+
|
|
63
|
+
const name = "employee";
|
|
64
|
+
const pathData = "M342 255q48 23 77 67.5t29 99.5v32q0 11-7.5 18.5T422 480H90q-11 0-18.5-7.5T64 454v-32q0-55 29-99.5t77-67.5l-4-5q-19-17-28.5-40.5T128 160q0-27 10-50t27.5-40.5 41-27.5T256 32t49.5 10.5 41 28T374 111t10 49q0 27-11 52t-31 43zm-163-95q0 32 22.5 54.5T256 237t54.5-22.5T333 160t-22.5-54.5T256 83t-54.5 22.5T179 160zm51 181l-25-15q-13-7-13-19v-6q-34 17-55.5 49T115 422v7h115v-88zm167 81q0-40-21-72t-56-49v6q0 12-13 19l-26 15v88h116v-7zm-71-70q11 0 18.5 7.5T352 378t-7.5 18-18.5 7h-12q-11 0-18.5-7t-7.5-18 7.5-18.5T314 352h12z";
|
|
65
|
+
const ltr = false;
|
|
66
|
+
const collection = "SAP-icons-v5";
|
|
67
|
+
const packageName = "@ui5/webcomponents-icons";
|
|
68
|
+
|
|
69
|
+
Icons.y(name, { pathData, ltr, collection, packageName });
|
|
70
|
+
|
|
71
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
72
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
73
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
74
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
75
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
76
|
+
};
|
|
77
|
+
var Avatar_1;
|
|
78
|
+
/**
|
|
79
|
+
* @class
|
|
80
|
+
* ### Overview
|
|
81
|
+
*
|
|
82
|
+
* An image-like component that has different display options for representing images and icons
|
|
83
|
+
* in different shapes and sizes, depending on the use case.
|
|
84
|
+
*
|
|
85
|
+
* The shape can be circular or square. There are several predefined sizes, as well as an option to
|
|
86
|
+
* set a custom size.
|
|
87
|
+
*
|
|
88
|
+
* ### Keyboard Handling
|
|
89
|
+
*
|
|
90
|
+
* - [Space] / [Enter] or [Return] - Fires the `click` event if the `interactive` property is set to true.
|
|
91
|
+
* - [Shift] - If [Space] is pressed, pressing [Shift] releases the component without triggering the click event.
|
|
92
|
+
*
|
|
93
|
+
* ### ES6 Module Import
|
|
94
|
+
* `import "@ui5/webcomponents/dist/Avatar.js";`
|
|
95
|
+
* @constructor
|
|
96
|
+
* @extends UI5Element
|
|
97
|
+
* @since 1.0.0-rc.6
|
|
98
|
+
* @implements {IAvatarGroupItem}
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
let Avatar = Avatar_1 = class Avatar extends webcomponentsBase.b {
|
|
102
|
+
constructor() {
|
|
103
|
+
super();
|
|
104
|
+
/**
|
|
105
|
+
* Defines whether the component is disabled.
|
|
106
|
+
* A disabled component can't be pressed or
|
|
107
|
+
* focused, and it is not in the tab chain.
|
|
108
|
+
* @default false
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
this.disabled = false;
|
|
112
|
+
/**
|
|
113
|
+
* Defines if the avatar is interactive (focusable and pressable).
|
|
114
|
+
*
|
|
115
|
+
* **Note:** This property won't have effect if the `disabled`
|
|
116
|
+
* property is set to `true`.
|
|
117
|
+
* @default false
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
this.interactive = false;
|
|
121
|
+
/**
|
|
122
|
+
* Defines the name of the fallback icon, which should be displayed in the following cases:
|
|
123
|
+
*
|
|
124
|
+
* - If the initials are not valid (more than 3 letters, unsupported languages or empty initials).
|
|
125
|
+
* - If there are three initials and they do not fit in the shape (e.g. WWW for some of the sizes).
|
|
126
|
+
* - If the image src is wrong.
|
|
127
|
+
*
|
|
128
|
+
* **Note:** If not set, a default fallback icon "employee" is displayed.
|
|
129
|
+
*
|
|
130
|
+
* **Note:** You should import the desired icon first, then use its name as "fallback-icon".
|
|
131
|
+
*
|
|
132
|
+
* `import "@ui5/webcomponents-icons/dist/{icon_name}.js"`
|
|
133
|
+
*
|
|
134
|
+
* `<ui5-avatar fallback-icon="alert">`
|
|
135
|
+
*
|
|
136
|
+
* See all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).
|
|
137
|
+
* @default "employee"
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
this.fallbackIcon = "employee";
|
|
141
|
+
/**
|
|
142
|
+
* Defines the shape of the component.
|
|
143
|
+
* @default "Circle"
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.shape = "Circle";
|
|
147
|
+
/**
|
|
148
|
+
* Defines predefined size of the component.
|
|
149
|
+
* @default "S"
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
this.size = "S";
|
|
153
|
+
/**
|
|
154
|
+
* Defines the background color of the desired image.
|
|
155
|
+
* If `colorScheme` is set to `Auto`, the avatar will be displayed with the `Accent6` color.
|
|
156
|
+
*
|
|
157
|
+
* @default "Auto"
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
this.colorScheme = "Auto";
|
|
161
|
+
/**
|
|
162
|
+
* @private
|
|
163
|
+
*/
|
|
164
|
+
this._colorScheme = "Auto";
|
|
165
|
+
/**
|
|
166
|
+
* Defines the additional accessibility attributes that will be applied to the component.
|
|
167
|
+
* The following field is supported:
|
|
168
|
+
*
|
|
169
|
+
* - **hasPopup**: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button.
|
|
170
|
+
* Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
|
|
171
|
+
*
|
|
172
|
+
* @public
|
|
173
|
+
* @since 2.0.0
|
|
174
|
+
* @default {}
|
|
175
|
+
*/
|
|
176
|
+
this.accessibilityAttributes = {};
|
|
177
|
+
/**
|
|
178
|
+
* @private
|
|
179
|
+
*/
|
|
180
|
+
this._hasImage = false;
|
|
181
|
+
/**
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
this._imageLoadError = false;
|
|
185
|
+
this._handleResizeBound = this.handleResize.bind(this);
|
|
186
|
+
this._onImageLoadBound = this._onImageLoad.bind(this);
|
|
187
|
+
this._onImageErrorBound = this._onImageError.bind(this);
|
|
188
|
+
}
|
|
189
|
+
onBeforeRendering() {
|
|
190
|
+
this._attachImageEventHandlers();
|
|
191
|
+
this._hasImage = this.hasImage;
|
|
192
|
+
}
|
|
193
|
+
get tabindex() {
|
|
194
|
+
if (this.forcedTabIndex) {
|
|
195
|
+
return parseInt(this.forcedTabIndex);
|
|
196
|
+
}
|
|
197
|
+
return this._interactive ? 0 : undefined;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Returns the effective avatar size.
|
|
201
|
+
* @default "S"
|
|
202
|
+
* @private
|
|
203
|
+
*/
|
|
204
|
+
get effectiveSize() {
|
|
205
|
+
// we read the attribute, because the "size" property will always have a default value
|
|
206
|
+
return this.getAttribute("size") || AvatarSize$1.S;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns the effective background color.
|
|
210
|
+
* @default "Auto"
|
|
211
|
+
* @private
|
|
212
|
+
*/
|
|
213
|
+
get effectiveBackgroundColor() {
|
|
214
|
+
// we read the attribute, because the "background-color" property will always have a default value
|
|
215
|
+
return this.getAttribute("color-scheme") || this._colorScheme;
|
|
216
|
+
}
|
|
217
|
+
get _role() {
|
|
218
|
+
return this._interactive ? "button" : "img";
|
|
219
|
+
}
|
|
220
|
+
get _ariaHasPopup() {
|
|
221
|
+
return this._getAriaHasPopup();
|
|
222
|
+
}
|
|
223
|
+
get _interactive() {
|
|
224
|
+
return this.interactive && !this.disabled;
|
|
225
|
+
}
|
|
226
|
+
get validInitials() {
|
|
227
|
+
// initials should consist of only 1,2 or 3 latin letters
|
|
228
|
+
const validInitials = /^[a-zA-Zà-üÀ-Ü]{1,3}$/, areInitialsValid = this.initials && validInitials.test(this.initials);
|
|
229
|
+
if (areInitialsValid) {
|
|
230
|
+
return this.initials;
|
|
231
|
+
}
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
get accessibleNameText() {
|
|
235
|
+
if (this.accessibleName) {
|
|
236
|
+
return this.accessibleName;
|
|
237
|
+
}
|
|
238
|
+
const defaultLabel = Avatar_1.i18nBundle.getText(i18nDefaults.AVATAR_TOOLTIP);
|
|
239
|
+
return this.initials ? `${defaultLabel} ${this.initials}`.trim() : defaultLabel;
|
|
240
|
+
}
|
|
241
|
+
get hasImage() {
|
|
242
|
+
return !!this.image.length && !this._imageLoadError;
|
|
243
|
+
}
|
|
244
|
+
get imageEl() {
|
|
245
|
+
return this.image?.[0] instanceof HTMLImageElement ? this.image[0] : null;
|
|
246
|
+
}
|
|
247
|
+
get initialsContainer() {
|
|
248
|
+
return this.getDomRef().querySelector(".ui5-avatar-initials");
|
|
249
|
+
}
|
|
250
|
+
get fallBackIconDomRef() {
|
|
251
|
+
return this.getDomRef().querySelector(".ui5-avatar-icon-fallback");
|
|
252
|
+
}
|
|
253
|
+
async onAfterRendering() {
|
|
254
|
+
await Icons.f$1();
|
|
255
|
+
if (this.initials && !this.icon) {
|
|
256
|
+
this._checkInitials();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
onEnterDOM() {
|
|
260
|
+
if (Icons.f()) {
|
|
261
|
+
this.setAttribute("desktop", "");
|
|
262
|
+
}
|
|
263
|
+
this.initialsContainer && webcomponentsBase.f.register(this.initialsContainer, this._handleResizeBound);
|
|
264
|
+
}
|
|
265
|
+
onExitDOM() {
|
|
266
|
+
this.initialsContainer && webcomponentsBase.f.deregister(this.initialsContainer, this._handleResizeBound);
|
|
267
|
+
this._detachImageEventHandlers();
|
|
268
|
+
}
|
|
269
|
+
handleResize() {
|
|
270
|
+
if (this.initials && !this.icon) {
|
|
271
|
+
this._checkInitials();
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
_checkInitials() {
|
|
275
|
+
const avatar = this.getDomRef();
|
|
276
|
+
const avatarInitials = avatar.querySelector(".ui5-avatar-initials");
|
|
277
|
+
const validInitials = this.validInitials && avatarInitials && avatarInitials.scrollWidth <= avatar.scrollWidth;
|
|
278
|
+
if (validInitials) {
|
|
279
|
+
this.showInitials();
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
this.showFallbackIcon();
|
|
283
|
+
}
|
|
284
|
+
showFallbackIcon() {
|
|
285
|
+
this.initialsContainer?.classList.add("ui5-avatar-initials-hidden");
|
|
286
|
+
this.fallBackIconDomRef?.classList.remove("ui5-avatar-fallback-icon-hidden");
|
|
287
|
+
}
|
|
288
|
+
showInitials() {
|
|
289
|
+
this.initialsContainer?.classList.remove("ui5-avatar-initials-hidden");
|
|
290
|
+
this.fallBackIconDomRef?.classList.add("ui5-avatar-fallback-icon-hidden");
|
|
291
|
+
}
|
|
292
|
+
_onclick(e) {
|
|
293
|
+
e.stopPropagation();
|
|
294
|
+
this._fireClick();
|
|
295
|
+
}
|
|
296
|
+
_onkeydown(e) {
|
|
297
|
+
if (!this._interactive) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (webcomponentsBase.b$1(e)) {
|
|
301
|
+
this._fireClick();
|
|
302
|
+
}
|
|
303
|
+
if (webcomponentsBase.A(e)) {
|
|
304
|
+
e.preventDefault(); // prevent scrolling
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
_onkeyup(e) {
|
|
308
|
+
if (this._interactive && !e.shiftKey && webcomponentsBase.A(e)) {
|
|
309
|
+
this._fireClick();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
_fireClick() {
|
|
313
|
+
this.fireDecoratorEvent("click");
|
|
314
|
+
}
|
|
315
|
+
_getAriaHasPopup() {
|
|
316
|
+
const ariaHaspopup = this.accessibilityAttributes.hasPopup;
|
|
317
|
+
if (!this._interactive || !ariaHaspopup) {
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
return ariaHaspopup;
|
|
321
|
+
}
|
|
322
|
+
_attachImageEventHandlers() {
|
|
323
|
+
const imgEl = this.imageEl;
|
|
324
|
+
if (!imgEl) {
|
|
325
|
+
this._imageLoadError = false;
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
// Remove previous handlers to avoid duplicates
|
|
329
|
+
imgEl.removeEventListener("load", this._onImageLoadBound);
|
|
330
|
+
imgEl.removeEventListener("error", this._onImageErrorBound);
|
|
331
|
+
// Attach new handlers
|
|
332
|
+
imgEl.addEventListener("load", this._onImageLoadBound);
|
|
333
|
+
imgEl.addEventListener("error", this._onImageErrorBound);
|
|
334
|
+
// Check existing image state
|
|
335
|
+
this._checkExistingImageState();
|
|
336
|
+
}
|
|
337
|
+
_checkExistingImageState() {
|
|
338
|
+
const imgEl = this.imageEl;
|
|
339
|
+
if (!imgEl) {
|
|
340
|
+
this._imageLoadError = false;
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
if (imgEl.complete && imgEl.naturalWidth === 0) {
|
|
344
|
+
this._imageLoadError = true; // Already broken
|
|
345
|
+
}
|
|
346
|
+
else if (imgEl.complete && imgEl.naturalWidth > 0) {
|
|
347
|
+
this._imageLoadError = false; // Already loaded
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
this._imageLoadError = false; // Pending load
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
_detachImageEventHandlers() {
|
|
354
|
+
const imgEl = this.imageEl;
|
|
355
|
+
if (!imgEl) {
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
imgEl.removeEventListener("load", this._onImageLoadBound);
|
|
359
|
+
imgEl.removeEventListener("error", this._onImageErrorBound);
|
|
360
|
+
}
|
|
361
|
+
_onImageLoad(e) {
|
|
362
|
+
if (e.target !== this.imageEl) {
|
|
363
|
+
e.target?.removeEventListener("load", this._onImageLoadBound);
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
this._imageLoadError = false;
|
|
367
|
+
}
|
|
368
|
+
_onImageError(e) {
|
|
369
|
+
if (e.target !== this.imageEl) {
|
|
370
|
+
e.target?.removeEventListener("error", this._onImageErrorBound);
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this._imageLoadError = true;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
__decorate([
|
|
377
|
+
webcomponentsBase.s({ type: Boolean })
|
|
378
|
+
], Avatar.prototype, "disabled", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
webcomponentsBase.s({ type: Boolean })
|
|
381
|
+
], Avatar.prototype, "interactive", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
webcomponentsBase.s()
|
|
384
|
+
], Avatar.prototype, "icon", void 0);
|
|
385
|
+
__decorate([
|
|
386
|
+
webcomponentsBase.s()
|
|
387
|
+
], Avatar.prototype, "fallbackIcon", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
webcomponentsBase.s()
|
|
390
|
+
], Avatar.prototype, "initials", void 0);
|
|
391
|
+
__decorate([
|
|
392
|
+
webcomponentsBase.s()
|
|
393
|
+
], Avatar.prototype, "shape", void 0);
|
|
394
|
+
__decorate([
|
|
395
|
+
webcomponentsBase.s()
|
|
396
|
+
], Avatar.prototype, "size", void 0);
|
|
397
|
+
__decorate([
|
|
398
|
+
webcomponentsBase.s()
|
|
399
|
+
], Avatar.prototype, "colorScheme", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
webcomponentsBase.s()
|
|
402
|
+
], Avatar.prototype, "_colorScheme", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
webcomponentsBase.s()
|
|
405
|
+
], Avatar.prototype, "accessibleName", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
webcomponentsBase.s({ type: Object })
|
|
408
|
+
], Avatar.prototype, "accessibilityAttributes", void 0);
|
|
409
|
+
__decorate([
|
|
410
|
+
webcomponentsBase.s({ noAttribute: true })
|
|
411
|
+
], Avatar.prototype, "forcedTabIndex", void 0);
|
|
412
|
+
__decorate([
|
|
413
|
+
webcomponentsBase.s({ type: Boolean })
|
|
414
|
+
], Avatar.prototype, "_hasImage", void 0);
|
|
415
|
+
__decorate([
|
|
416
|
+
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
417
|
+
], Avatar.prototype, "_imageLoadError", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
webcomponentsBase.d({ type: HTMLElement, "default": true })
|
|
420
|
+
], Avatar.prototype, "image", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
webcomponentsBase.d()
|
|
423
|
+
], Avatar.prototype, "badge", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
parametersBundle_css$1.i("@ui5/webcomponents")
|
|
426
|
+
], Avatar, "i18nBundle", void 0);
|
|
427
|
+
Avatar = Avatar_1 = __decorate([
|
|
428
|
+
webcomponentsBase.m({
|
|
429
|
+
tag: "ui5-avatar",
|
|
430
|
+
languageAware: true,
|
|
431
|
+
renderer: parametersBundle_css.y,
|
|
432
|
+
styles: AvatarCss,
|
|
433
|
+
template: AvatarTemplate,
|
|
434
|
+
})
|
|
435
|
+
/**
|
|
436
|
+
* Fired on mouseup, space and enter if avatar is interactive
|
|
437
|
+
*
|
|
438
|
+
* **Note:** The event will not be fired if the `disabled`
|
|
439
|
+
* property is set to `true`.
|
|
440
|
+
* @public
|
|
441
|
+
* @since 2.11.0
|
|
442
|
+
*/
|
|
443
|
+
,
|
|
444
|
+
eventStrict.l("click", {
|
|
445
|
+
bubbles: true,
|
|
446
|
+
})
|
|
447
|
+
], Avatar);
|
|
448
|
+
Avatar.define();
|
|
449
|
+
var Avatar$1 = Avatar;
|
|
450
|
+
|
|
451
|
+
return Avatar$1;
|
|
452
|
+
|
|
453
|
+
}));
|