@openui5/sap.f 1.145.0 → 1.146.0
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/THIRDPARTY.txt +7 -7
- package/package.json +10 -10
- package/src/sap/f/.library +8 -8
- package/src/sap/f/Avatar.js +1 -1
- package/src/sap/f/AvatarGroup.js +8 -2
- 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 +3 -3
- package/src/sap/f/DynamicPage.js +1 -1
- 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 +8 -2
- 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/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 +5 -1
- package/src/sap/f/SidePanelItem.js +7 -1
- package/src/sap/f/cards/BaseHeader.js +39 -26
- package/src/sap/f/cards/Header.js +7 -7
- package/src/sap/f/cards/NumericHeader.js +22 -23
- package/src/sap/f/cards/NumericIndicators.js +1 -2
- package/src/sap/f/cards/NumericSideIndicator.js +2 -3
- 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 +2 -246
- package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +2 -349
- package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +2 -126
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItem.js +2 -141
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItemBase.js +2 -60
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +2 -208
- package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +2 -283
- package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +2 -357
- package/src/sap/f/gen/ui5/webcomponents.js +2 -3155
- package/src/sap/f/gen/ui5/webcomponents_base.js +2 -600
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +2 -214
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +2 -203
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +2 -167
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +2 -248
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItemBase.js +2 -86
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +2 -254
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +2 -128
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +2 -56
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +2 -87
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +2 -75
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +2 -80
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +2 -669
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +2 -123
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +2 -140
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +2 -236
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +2 -72
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +2 -282
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +2 -134
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +2 -79
- package/src/sap/f/gen/ui5/webcomponents_fiori.js +2 -1859
- package/src/sap/f/library.js +3 -4
- package/src/sap/f/routing/Target.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/AvatarGroup.less +2 -2
- package/src/sap/f/thirdparty/AccessibilityTextsHelper.js +2 -13
- package/src/sap/f/thirdparty/Avatar.js +2 -453
- package/src/sap/f/thirdparty/BusyIndicator.js +2 -233
- package/src/sap/f/thirdparty/Button.js +2 -7
- package/src/sap/f/thirdparty/Button2.js +2 -656
- package/src/sap/f/thirdparty/FocusableElements.js +2 -10
- package/src/sap/f/thirdparty/Icon.js +2 -313
- package/src/sap/f/thirdparty/Icons.js +2 -56
- package/src/sap/f/thirdparty/IllustratedMessage.js +2 -1295
- package/src/sap/f/thirdparty/Illustrations.js +2 -9
- package/src/sap/f/thirdparty/Label.js +2 -115
- package/src/sap/f/thirdparty/Link.js +2 -316
- package/src/sap/f/thirdparty/List.js +2 -1253
- package/src/sap/f/thirdparty/ListBoxItemGroupTemplate.js +2 -14
- package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +2 -10
- package/src/sap/f/thirdparty/ListItemBase.js +2 -251
- package/src/sap/f/thirdparty/ListItemGroup.js +2 -637
- package/src/sap/f/thirdparty/Menu.js +2 -389
- package/src/sap/f/thirdparty/MenuItem.js +2 -10
- package/src/sap/f/thirdparty/MenuItem2.js +2 -762
- package/src/sap/f/thirdparty/NotificationList.js +2 -291
- package/src/sap/f/thirdparty/NotificationListGroupItem.js +2 -310
- package/src/sap/f/thirdparty/NotificationListItem.js +2 -534
- package/src/sap/f/thirdparty/NotificationListItemBase.js +2 -98
- package/src/sap/f/thirdparty/ResponsivePopover.js +2 -2312
- package/src/sap/f/thirdparty/SearchItem.css.js +2 -10
- package/src/sap/f/thirdparty/SearchItem.js +2 -152
- package/src/sap/f/thirdparty/SearchItemGroup.js +2 -44
- package/src/sap/f/thirdparty/SearchItemShowMore.js +2 -86
- package/src/sap/f/thirdparty/SearchMessageArea.js +2 -49
- package/src/sap/f/thirdparty/SearchScope.js +2 -39
- package/src/sap/f/thirdparty/ShellBar.js +2 -1809
- package/src/sap/f/thirdparty/ShellBarBranding.js +2 -119
- package/src/sap/f/thirdparty/ShellBarItem.js +2 -89
- package/src/sap/f/thirdparty/ShellBarSearch.js +2 -7
- package/src/sap/f/thirdparty/ShellBarSearch2.js +2 -3453
- package/src/sap/f/thirdparty/ShellBarSpacer.js +2 -40
- package/src/sap/f/thirdparty/Tag.js +2 -302
- package/src/sap/f/thirdparty/Text.js +2 -127
- package/src/sap/f/thirdparty/Theme.js +2 -187
- package/src/sap/f/thirdparty/Title.js +2 -167
- package/src/sap/f/thirdparty/UserMenu.js +2 -950
- package/src/sap/f/thirdparty/UserMenuAccount.js +2 -114
- package/src/sap/f/thirdparty/UserMenuItem.js +2 -61
- package/src/sap/f/thirdparty/ValueState.js +2 -7
- package/src/sap/f/thirdparty/WrappingType.js +2 -24
- package/src/sap/f/thirdparty/_dynamics/InputComposition.js +2 -35
- package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +2 -397
- package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +2 -193
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT.js +2 -585
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-TNT2.js +2 -585
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite.js +2 -1194
- package/src/sap/f/thirdparty/_dynamics/SAP-icons-business-suite2.js +2 -1194
- package/src/sap/f/thirdparty/_dynamics/SAP-icons.js +2 -2509
- package/src/sap/f/thirdparty/_dynamics/SAP-icons2.js +2 -2509
- package/src/sap/f/thirdparty/_dynamics/ar.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ar_EG.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ar_SA.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/bg.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ca.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/cnr.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/cs.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/da.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/de.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/de_AT.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/de_CH.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/el.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/el_CY.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_AU.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_GB.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_HK.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_IE.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_IN.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_NZ.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_PG.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_SG.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/en_ZA.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_AR.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_BO.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_CL.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_CO.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_MX.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_PE.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_UY.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/es_VE.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/et.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fa.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fi.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fr.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fr_BE.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fr_CA.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fr_CH.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/fr_LU.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/he.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/hi.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/hr.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/hu.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/id.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/it.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/it_CH.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ja.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/kk.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ko.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/lt.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/lv.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ar.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ar2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_bg.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_bg2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ca.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ca2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cnr2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cs.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cs2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cy.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_cy2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_da.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_da2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_de.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_de2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_el.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_el2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_GB2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_sappsd2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saprigi2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_en_US_saptrc2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_es_MX2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_et.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_et2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fi.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fi2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_fr_CA2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hi.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hi2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hr.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hr2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hu.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_hu2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_id.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_id2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_it.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_it2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_iw.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_iw2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ja.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ja2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_kk.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_kk2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ko.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ko2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lt.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lt2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lv.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_lv2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_mk.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_mk2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ms.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ms2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_nl.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_nl2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_no.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_no2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pl.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pl2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_pt_PT2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ro.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ro2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ru.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_ru2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sh.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sh2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sk.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sk2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sl.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sl2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sr.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sr2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sv.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_sv2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_th.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_th2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_tr.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_tr2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_uk.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_uk2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_vi.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_vi2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_CN2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW.js +2 -866
- package/src/sap/f/thirdparty/_dynamics/messagebundle_zh_TW2.js +2 -611
- package/src/sap/f/thirdparty/_dynamics/mk.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ms.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/nb.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/nl.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/nl_BE.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css10.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css11.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css12.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css13.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css14.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css15.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css16.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css17.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css18.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css19.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css20.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css21.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css22.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css23.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css24.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css25.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css26.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css27.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css4.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css5.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css6.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css7.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css8.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/parameters-bundle.css9.js +2 -7
- package/src/sap/f/thirdparty/_dynamics/pl.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/pt.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/pt_PT.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ro.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ru.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/ru_UA.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/sk.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/sl.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/sr.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/sr_Latn.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/sv.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/th.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/tr.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/uk.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/vi.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/zh_CN.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/zh_HK.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/zh_SG.js +2 -0
- package/src/sap/f/thirdparty/_dynamics/zh_TW.js +2 -0
- package/src/sap/f/thirdparty/encodeXML.js +6 -81
- package/src/sap/f/thirdparty/event-strict.js +2 -7
- package/src/sap/f/thirdparty/generateHighlightedMarkup.js +2 -9
- package/src/sap/f/thirdparty/i18n-defaults.js +2 -123
- package/src/sap/f/thirdparty/i18n-defaults2.js +2 -159
- package/src/sap/f/thirdparty/information.js +2 -100
- package/src/sap/f/thirdparty/information2.js +2 -13
- package/src/sap/f/thirdparty/overflow.js +2 -25
- package/src/sap/f/thirdparty/parameters-bundle.css.js +2 -11
- package/src/sap/f/thirdparty/parameters-bundle.css2.js +2 -44
- package/src/sap/f/thirdparty/parameters-bundle.css3.js +2 -8
- package/src/sap/f/thirdparty/query.js +2 -7
- package/src/sap/f/thirdparty/slim-arrow-down.js +2 -44
- package/src/sap/f/thirdparty/sys-enter-2.js +2 -7
- package/src/sap/f/thirdparty/toLowercaseEnumValue.js +2 -7
- package/src/sap/f/thirdparty/ui5/webcomponents_fiori/dist/illustrations/UnableToUpload.js +2 -132
- package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +2 -26
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +2 -26
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +2 -26
- package/src/sap/f/thirdparty/webcomponents-base.js +2 -7
- package/src/sap/f/thirdparty/webcomponents-fiori.js +2 -5
- package/src/sap/f/thirdparty/webcomponents.js +51 -4589
- package/src/sap/f/thirdparty/willShowContent.js +2 -7
- package/src/sap/f/thirdparty/ListItemCustom.js +0 -1689
|
@@ -1,656 +1,2 @@
|
|
|
1
|
-
sap.ui.define(['exports', 'sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/AccessibilityTextsHelper', 'sap/f/thirdparty/Icons', 'sap/f/thirdparty/Theme', 'sap/f/thirdparty/willShowContent', 'sap/f/thirdparty/toLowercaseEnumValue', 'sap/f/thirdparty/Icon', 'sap/f/thirdparty/BusyIndicator', 'sap/f/thirdparty/i18n-defaults2'], (function (exports, webcomponentsBase, eventStrict, parametersBundle_css$1, parametersBundle_css, AccessibilityTextsHelper, Icons, Theme, willShowContent, toLowercaseEnumValue, Icon, BusyIndicator, i18nDefaults) { 'use strict';
|
|
2
|
-
|
|
3
|
-
let e;const l=()=>(e===void 0&&(e=Theme.b()),e);
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Different Button designs.
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
var ButtonDesign;
|
|
10
|
-
(function (ButtonDesign) {
|
|
11
|
-
/**
|
|
12
|
-
* default type (no special styling)
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
ButtonDesign["Default"] = "Default";
|
|
16
|
-
/**
|
|
17
|
-
* accept type (green button)
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
ButtonDesign["Positive"] = "Positive";
|
|
21
|
-
/**
|
|
22
|
-
* reject style (red button)
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
25
|
-
ButtonDesign["Negative"] = "Negative";
|
|
26
|
-
/**
|
|
27
|
-
* transparent type
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
ButtonDesign["Transparent"] = "Transparent";
|
|
31
|
-
/**
|
|
32
|
-
* emphasized type
|
|
33
|
-
* @public
|
|
34
|
-
*/
|
|
35
|
-
ButtonDesign["Emphasized"] = "Emphasized";
|
|
36
|
-
/**
|
|
37
|
-
* attention type
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
|
-
ButtonDesign["Attention"] = "Attention";
|
|
41
|
-
})(ButtonDesign || (ButtonDesign = {}));
|
|
42
|
-
var ButtonDesign$1 = ButtonDesign;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Determines if the button has special form-related functionality.
|
|
46
|
-
* @public
|
|
47
|
-
*/
|
|
48
|
-
var ButtonType;
|
|
49
|
-
(function (ButtonType) {
|
|
50
|
-
/**
|
|
51
|
-
* The button does not do anything special when inside a form
|
|
52
|
-
* @public
|
|
53
|
-
*/
|
|
54
|
-
ButtonType["Button"] = "Button";
|
|
55
|
-
/**
|
|
56
|
-
* The button acts as a submit button (submits a form)
|
|
57
|
-
* @public
|
|
58
|
-
*/
|
|
59
|
-
ButtonType["Submit"] = "Submit";
|
|
60
|
-
/**
|
|
61
|
-
* The button acts as a reset button (resets a form)
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
ButtonType["Reset"] = "Reset";
|
|
65
|
-
})(ButtonType || (ButtonType = {}));
|
|
66
|
-
var ButtonType$1 = ButtonType;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Determines where the badge will be placed and how it will be styled.
|
|
70
|
-
* @since 2.7.0
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
var ButtonBadgeDesign;
|
|
74
|
-
(function (ButtonBadgeDesign) {
|
|
75
|
-
/**
|
|
76
|
-
* The badge is displayed after the text, inside the button.
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
ButtonBadgeDesign["InlineText"] = "InlineText";
|
|
80
|
-
/**
|
|
81
|
-
* The badge is displayed at the top-end corner of the button.
|
|
82
|
-
*
|
|
83
|
-
* **Note:** According to design guidance, the OverlayText design mode is best used in cozy density to avoid potential visual issues in compact.
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
ButtonBadgeDesign["OverlayText"] = "OverlayText";
|
|
87
|
-
/**
|
|
88
|
-
* The badge is displayed as an attention dot.
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
ButtonBadgeDesign["AttentionDot"] = "AttentionDot";
|
|
92
|
-
})(ButtonBadgeDesign || (ButtonBadgeDesign = {}));
|
|
93
|
-
var ButtonBadgeDesign$1 = ButtonBadgeDesign;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Different BusyIndicator sizes.
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
var BusyIndicatorSize;
|
|
100
|
-
(function (BusyIndicatorSize) {
|
|
101
|
-
/**
|
|
102
|
-
* small size
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
BusyIndicatorSize["S"] = "S";
|
|
106
|
-
/**
|
|
107
|
-
* medium size
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
BusyIndicatorSize["M"] = "M";
|
|
111
|
-
/**
|
|
112
|
-
* large size
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
BusyIndicatorSize["L"] = "L";
|
|
116
|
-
})(BusyIndicatorSize || (BusyIndicatorSize = {}));
|
|
117
|
-
var BusyIndicatorSize$1 = BusyIndicatorSize;
|
|
118
|
-
|
|
119
|
-
function ButtonTemplate(injectedProps) {
|
|
120
|
-
return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [parametersBundle_css.jsxs("button", { type: "button", class: {
|
|
121
|
-
"ui5-button-root": true,
|
|
122
|
-
"ui5-button-badge-placement-end": this.badge[0]?.design === "InlineText",
|
|
123
|
-
"ui5-button-badge-placement-end-top": this.badge[0]?.design === "OverlayText",
|
|
124
|
-
"ui5-button-badge-dot": this.badge[0]?.design === "AttentionDot"
|
|
125
|
-
}, disabled: this.disabled, "data-sap-focus-ref": true, "aria-pressed": injectedProps?.ariaPressed, "aria-valuemin": injectedProps?.ariaValueMin, "aria-valuemax": injectedProps?.ariaValueMax, "aria-valuenow": injectedProps?.ariaValueNow, "aria-valuetext": injectedProps?.ariaValueText, onFocusOut: this._onfocusout, onClick: this._onclick, onMouseDown: this._onmousedown, onKeyDown: this._onkeydown, onKeyUp: this._onkeyup, onTouchStart: this._ontouchstart, onTouchEnd: this._ontouchend, tabindex: this.tabIndexValue, "aria-expanded": this._computedAccessibilityAttributes?.expanded, "aria-controls": this._computedAccessibilityAttributes?.controls, "aria-haspopup": this._computedAccessibilityAttributes?.hasPopup, "aria-label": this._computedAccessibilityAttributes?.ariaLabel, "aria-keyshortcuts": this._computedAccessibilityAttributes?.ariaKeyShortcuts, "aria-description": this.ariaDescriptionText, "aria-busy": this.loading ? "true" : undefined, title: this.buttonTitle, part: "button", role: this.effectiveAccRole, children: [this.icon &&
|
|
126
|
-
parametersBundle_css.jsx(Icon.Icon, { class: "ui5-button-icon", name: this.icon, mode: "Decorative", part: "icon" }), parametersBundle_css.jsx("span", { id: `${this._id}-content`, class: "ui5-button-text", children: parametersBundle_css.jsx("bdi", { children: parametersBundle_css.jsx("slot", {}) }) }), this.endIcon &&
|
|
127
|
-
parametersBundle_css.jsx(Icon.Icon, { class: "ui5-button-end-icon", name: this.endIcon, mode: "Decorative", part: "endIcon" }), this.shouldRenderBadge &&
|
|
128
|
-
parametersBundle_css.jsx("slot", { name: "badge" })] }), this.loading &&
|
|
129
|
-
parametersBundle_css.jsx(BusyIndicator.BusyIndicator, { id: `${this._id}-button-busy-indicator`, class: "ui5-button-busy-indicator", size: this.iconOnly ? BusyIndicatorSize$1.S : BusyIndicatorSize$1.M, active: true, delay: this.loadingDelay, inert: this.loading })] }));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
Theme.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
133
|
-
Theme.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", "sap_horizon", async () => parametersBundle_css$1.defaultTheme);
|
|
134
|
-
var buttonCss = `:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{min-width:var(--_ui5-v2-15-0_button_base_min_width);height:var(--_ui5-v2-15-0_button_base_height);line-height:normal;font-family:var(--_ui5-v2-15-0_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5-v2-15-0_button_text_shadow);border-radius:var(--_ui5-v2-15-0_button_border_radius);cursor:pointer;background-color:var(--sapButton_Background);border:var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);color:var(--sapButton_TextColor);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}.ui5-button-root{min-width:inherit;cursor:inherit;height:100%;width:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;outline:none;padding:0 var(--_ui5-v2-15-0_button_base_padding);position:relative;background:transparent;border:none;color:inherit;text-shadow:inherit;font:inherit;white-space:inherit;overflow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host(:not([hidden]):not([disabled]).ui5_hovered){background:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);color:var(--sapButton_Hover_TextColor)}.ui5-button-icon,.ui5-button-end-icon{color:inherit;flex-shrink:0}.ui5-button-end-icon{margin-inline-start:var(--_ui5-v2-15-0_button_base_icon_margin)}:host([icon-only]:not([has-end-icon])) .ui5-button-root{min-width:auto;padding:0}:host([icon-only]) .ui5-button-text{display:none}.ui5-button-text{outline:none;position:relative;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([has-icon]:not(:empty)) .ui5-button-text{margin-inline-start:var(--_ui5-v2-15-0_button_base_icon_margin)}:host([has-end-icon]:not([has-icon]):empty) .ui5-button-end-icon{margin-inline-start:0}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:unset;cursor:default}:host([has-icon]:not([icon-only]):not([has-end-icon])) .ui5-button-text{min-width:calc(var(--_ui5-v2-15-0_button_base_min_width) - var(--_ui5-v2-15-0_button_base_icon_margin) - 1rem)}:host([disabled]:active){pointer-events:none}:host([desktop]:not([loading])) .ui5-button-root:focus-within:after,:host(:not([active])) .ui5-button-root:focus-visible:after,:host([desktop][active][design="Emphasized"]) .ui5-button-root:focus-within:after,:host([active][design="Emphasized"]) .ui5-button-root:focus-visible:after,:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;pointer-events:none;inset:.0625rem;border:var(--_ui5-v2-15-0_button_focused_border);border-radius:var(--_ui5-v2-15-0_button_focused_border_radius)}:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{border-color:var(--_ui5-v2-15-0_button_pressed_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:before,:host([design="Emphasized"]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5-v2-15-0_button_emphasized_focused_border_before);border-radius:var(--_ui5-v2-15-0_button_focused_border_radius)}.ui5-button-root::-moz-focus-inner{border:0}bdi{display:block;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([ui5-button][active]:not([disabled]):not([non-interactive])){background-image:none;background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]){background-color:var(--sapButton_Accept_Background);border-color:var(--sapButton_Accept_BorderColor);color:var(--sapButton_Accept_TextColor)}:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Accept_Hover_Background);border-color:var(--sapButton_Accept_Hover_BorderColor);color:var(--sapButton_Accept_Hover_TextColor)}:host([ui5-button][design="Positive"][active]:not([non-interactive])){background-color:var(--sapButton_Accept_Active_Background);border-color:var(--sapButton_Accept_Active_BorderColor);color:var(--sapButton_Accept_Active_TextColor)}:host([design="Negative"]){background-color:var(--sapButton_Reject_Background);border-color:var(--sapButton_Reject_BorderColor);color:var(--sapButton_Reject_TextColor)}:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Reject_Hover_Background);border-color:var(--sapButton_Reject_Hover_BorderColor);color:var(--sapButton_Reject_Hover_TextColor)}:host([ui5-button][design="Negative"][active]:not([non-interactive])){background-color:var(--sapButton_Reject_Active_Background);border-color:var(--sapButton_Reject_Active_BorderColor);color:var(--sapButton_Reject_Active_TextColor)}:host([design="Attention"]){background-color:var(--sapButton_Attention_Background);border-color:var(--sapButton_Attention_BorderColor);color:var(--sapButton_Attention_TextColor)}:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Attention_Hover_Background);border-color:var(--sapButton_Attention_Hover_BorderColor);color:var(--sapButton_Attention_Hover_TextColor)}:host([ui5-button][design="Attention"][active]:not([non-interactive])){background-color:var(--sapButton_Attention_Active_Background);border-color:var(--sapButton_Attention_Active_BorderColor);color:var(--sapButton_Attention_Active_TextColor)}:host([design="Emphasized"]){background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);border-width:var(--_ui5-v2-15-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_TextColor);font-family:var(--sapButton_Emphasized_FontFamily)}:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Emphasized_Hover_Background);border-color:var(--sapButton_Emphasized_Hover_BorderColor);border-width:var(--_ui5-v2-15-0_button_emphasized_border_width);color:var(--sapButton_Emphasized_Hover_TextColor)}:host([ui5-button][design="Empasized"][active]:not([non-interactive])){background-color:var(--sapButton_Emphasized_Active_Background);border-color:var(--sapButton_Emphasized_Active_BorderColor);color:var(--sapButton_Emphasized_Active_TextColor)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_border_color);outline:none}:host([design="Emphasized"][desktop][active]:not([non-interactive])) .ui5-button-root:focus-within:after,:host([design="Emphasized"][active]:not([non-interactive])) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_emphasized_focused_active_border_color)}:host([design="Transparent"]){background-color:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor);border-color:var(--sapButton_Lite_BorderColor)}:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Lite_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapButton_Lite_Hover_TextColor)}:host([ui5-button][design="Transparent"][active]:not([non-interactive])){background-color:var(--sapButton_Lite_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([ui5-segmented-button-item][active][desktop]) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item][active]) .ui5-button-root:focus-visible:after,:host([pressed][desktop]) .ui5-button-root:focus-within:after,:host([pressed]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5-v2-15-0_button_pressed_focused_border_color);outline:none}:host([ui5-segmented-button-item][desktop]:not(:last-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:last-child)) .ui5-button-root:focus-visible:after{border-top-right-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius)}:host([ui5-segmented-button-item][desktop]:not(:first-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:first-child)) .ui5-button-root:focus-visible:after{border-top-left-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5-v2-15-0_button_focused_inner_border_radius)}::slotted([slot="badge"][design="InlineText"]){pointer-events:initial;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);padding-inline-start:.25rem;--_ui5-v2-15-0-tag-height: .625rem}::slotted([slot="badge"][design="OverlayText"]){pointer-events:initial;position:absolute;top:0;inset-inline-end:0;margin:-.5rem;z-index:1;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);--_ui5-v2-15-0-tag-height: .625rem}::slotted([slot="badge"][design="AttentionDot"]){pointer-events:initial;content:"";position:absolute;top:0;inset-inline-end:0;margin:-.25rem;z-index:1}:host(:state(has-overlay-badge)){overflow:visible;margin-inline-end:.3125rem}:host([loading]){position:relative;pointer-events:unset}:host([loading]) .ui5-button-root{opacity:var(--sapContent_DisabledOpacity)}:host([loading][design="Emphasized"]){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover) .ui5-button-root,:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered) .ui5-button-root{background-color:var(--sapButton_Emphasized_Hover_Background)}:host([loading][design="Emphasized"]) .ui5-button-root{background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor)}.ui5-button-busy-indicator{position:absolute;height:100%;width:100%;top:0}
|
|
135
|
-
`;
|
|
136
|
-
|
|
137
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
138
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
139
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
140
|
-
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;
|
|
141
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
142
|
-
};
|
|
143
|
-
var Button_1;
|
|
144
|
-
let isGlobalHandlerAttached = false;
|
|
145
|
-
let activeButton = null;
|
|
146
|
-
/**
|
|
147
|
-
* @class
|
|
148
|
-
*
|
|
149
|
-
* ### Overview
|
|
150
|
-
*
|
|
151
|
-
* The `ui5-button` component represents a simple push button.
|
|
152
|
-
* It enables users to trigger actions by clicking or tapping the `ui5-button`, or by pressing
|
|
153
|
-
* certain keyboard keys, such as Enter.
|
|
154
|
-
*
|
|
155
|
-
* ### Usage
|
|
156
|
-
*
|
|
157
|
-
* For the `ui5-button` UI, you can define text, icon, or both. You can also specify
|
|
158
|
-
* whether the text or the icon is displayed first.
|
|
159
|
-
*
|
|
160
|
-
* You can choose from a set of predefined types that offer different
|
|
161
|
-
* styling to correspond to the triggered action.
|
|
162
|
-
*
|
|
163
|
-
* You can set the `ui5-button` as enabled or disabled. An enabled
|
|
164
|
-
* `ui5-button` can be pressed by clicking or tapping it. The button changes
|
|
165
|
-
* its style to provide visual feedback to the user that it is pressed or hovered over with
|
|
166
|
-
* the mouse cursor. A disabled `ui5-button` appears inactive and cannot be pressed.
|
|
167
|
-
*
|
|
168
|
-
* ### ES6 Module Import
|
|
169
|
-
*
|
|
170
|
-
* `import "@ui5/webcomponents/dist/Button.js";`
|
|
171
|
-
* @csspart button - Used to style the native button element
|
|
172
|
-
* @csspart icon - Used to style the icon in the native button element
|
|
173
|
-
* @csspart endIcon - Used to style the end icon in the native button element
|
|
174
|
-
* @constructor
|
|
175
|
-
* @extends UI5Element
|
|
176
|
-
* @implements { IButton }
|
|
177
|
-
* @public
|
|
178
|
-
*/
|
|
179
|
-
let Button = Button_1 = class Button extends webcomponentsBase.b {
|
|
180
|
-
constructor() {
|
|
181
|
-
super();
|
|
182
|
-
/**
|
|
183
|
-
* Defines the component design.
|
|
184
|
-
* @default "Default"
|
|
185
|
-
* @public
|
|
186
|
-
*/
|
|
187
|
-
this.design = "Default";
|
|
188
|
-
/**
|
|
189
|
-
* Defines whether the component is disabled.
|
|
190
|
-
* A disabled component can't be pressed or
|
|
191
|
-
* focused, and it is not in the tab chain.
|
|
192
|
-
* @default false
|
|
193
|
-
* @public
|
|
194
|
-
*/
|
|
195
|
-
this.disabled = false;
|
|
196
|
-
/**
|
|
197
|
-
* When set to `true`, the component will
|
|
198
|
-
* automatically submit the nearest HTML form element on `press`.
|
|
199
|
-
*
|
|
200
|
-
* **Note:** This property is only applicable within the context of an HTML Form element.`
|
|
201
|
-
* @default false
|
|
202
|
-
* @public
|
|
203
|
-
* @deprecated Set the "type" property to "Submit" to achieve the same result. The "submits" property is ignored if "type" is set to any value other than "Button".
|
|
204
|
-
*/
|
|
205
|
-
this.submits = false;
|
|
206
|
-
/**
|
|
207
|
-
* Defines the additional accessibility attributes that will be applied to the component.
|
|
208
|
-
* The following fields are supported:
|
|
209
|
-
*
|
|
210
|
-
* - **expanded**: Indicates whether the button, or another grouping element it controls, is currently expanded or collapsed.
|
|
211
|
-
* Accepts the following string values: `true` or `false`
|
|
212
|
-
*
|
|
213
|
-
* - **hasPopup**: Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by the button.
|
|
214
|
-
* Accepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.
|
|
215
|
-
*
|
|
216
|
-
* - **ariaLabel**: Defines the accessible ARIA name of the component.
|
|
217
|
-
* Accepts any string value.
|
|
218
|
-
*
|
|
219
|
-
* - **ariaKeyShortcuts**: Defines keyboard shortcuts that activate or give focus to the button.
|
|
220
|
-
*
|
|
221
|
-
* - **controls**: Identifies the element (or elements) whose contents or presence are controlled by the button element.
|
|
222
|
-
* Accepts a lowercase string value.
|
|
223
|
-
*
|
|
224
|
-
* @public
|
|
225
|
-
* @since 1.2.0
|
|
226
|
-
* @default {}
|
|
227
|
-
*/
|
|
228
|
-
this.accessibilityAttributes = {};
|
|
229
|
-
/**
|
|
230
|
-
* Defines whether the button has special form-related functionality.
|
|
231
|
-
*
|
|
232
|
-
* **Note:** This property is only applicable within the context of an HTML Form element.
|
|
233
|
-
* @default "Button"
|
|
234
|
-
* @public
|
|
235
|
-
* @since 1.15.0
|
|
236
|
-
*/
|
|
237
|
-
this.type = "Button";
|
|
238
|
-
/**
|
|
239
|
-
* Describes the accessibility role of the button.
|
|
240
|
-
*
|
|
241
|
-
* **Note:** Use <code>ButtonAccessibleRole.Link</code> role only with a press handler, which performs a navigation. In all other scenarios the default button semantics are recommended.
|
|
242
|
-
*
|
|
243
|
-
* @default "Button"
|
|
244
|
-
* @public
|
|
245
|
-
* @since 1.23
|
|
246
|
-
*/
|
|
247
|
-
this.accessibleRole = "Button";
|
|
248
|
-
/**
|
|
249
|
-
* Used to switch the active state (pressed or not) of the component.
|
|
250
|
-
* @private
|
|
251
|
-
*/
|
|
252
|
-
this.active = false;
|
|
253
|
-
/**
|
|
254
|
-
* Defines if a content has been added to the default slot
|
|
255
|
-
* @private
|
|
256
|
-
*/
|
|
257
|
-
this.iconOnly = false;
|
|
258
|
-
/**
|
|
259
|
-
* Indicates if the elements has a slotted icon
|
|
260
|
-
* @private
|
|
261
|
-
*/
|
|
262
|
-
this.hasIcon = false;
|
|
263
|
-
/**
|
|
264
|
-
* Indicates if the elements has a slotted end icon
|
|
265
|
-
* @private
|
|
266
|
-
*/
|
|
267
|
-
this.hasEndIcon = false;
|
|
268
|
-
/**
|
|
269
|
-
* Indicates if the element is focusable
|
|
270
|
-
* @private
|
|
271
|
-
*/
|
|
272
|
-
this.nonInteractive = false;
|
|
273
|
-
/**
|
|
274
|
-
* Defines whether the button shows a loading indicator.
|
|
275
|
-
*
|
|
276
|
-
* **Note:** If set to `true`, a busy indicator component will be displayed on the related button.
|
|
277
|
-
* @default false
|
|
278
|
-
* @public
|
|
279
|
-
* @since 2.13.0
|
|
280
|
-
*/
|
|
281
|
-
this.loading = false;
|
|
282
|
-
/**
|
|
283
|
-
* Specifies the delay in milliseconds before the loading indicator appears within the associated button.
|
|
284
|
-
* @default 1000
|
|
285
|
-
* @public
|
|
286
|
-
* @since 2.13.0
|
|
287
|
-
*/
|
|
288
|
-
this.loadingDelay = 1000;
|
|
289
|
-
/**
|
|
290
|
-
* @private
|
|
291
|
-
*/
|
|
292
|
-
this._iconSettings = {};
|
|
293
|
-
/**
|
|
294
|
-
* Defines the tabIndex of the component.
|
|
295
|
-
* @private
|
|
296
|
-
*/
|
|
297
|
-
this.forcedTabIndex = "0";
|
|
298
|
-
/**
|
|
299
|
-
* @since 1.0.0-rc.13
|
|
300
|
-
* @private
|
|
301
|
-
*/
|
|
302
|
-
this._isTouch = false;
|
|
303
|
-
this._cancelAction = false;
|
|
304
|
-
this._clickHandlerAttached = false;
|
|
305
|
-
this._deactivate = () => {
|
|
306
|
-
if (activeButton) {
|
|
307
|
-
activeButton._setActiveState(false);
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
this._onclickBound = e => {
|
|
311
|
-
if (e instanceof CustomEvent) {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
this._onclick(e);
|
|
315
|
-
};
|
|
316
|
-
if (!this._clickHandlerAttached) {
|
|
317
|
-
this.addEventListener("click", this._onclickBound);
|
|
318
|
-
this._clickHandlerAttached = true;
|
|
319
|
-
}
|
|
320
|
-
if (!isGlobalHandlerAttached) {
|
|
321
|
-
document.addEventListener("mouseup", this._deactivate);
|
|
322
|
-
isGlobalHandlerAttached = true;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
_ontouchstart() {
|
|
326
|
-
if (this.nonInteractive) {
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
this._setActiveState(true);
|
|
330
|
-
}
|
|
331
|
-
onEnterDOM() {
|
|
332
|
-
if (Theme.f()) {
|
|
333
|
-
this.setAttribute("desktop", "");
|
|
334
|
-
}
|
|
335
|
-
if (!this._clickHandlerAttached) {
|
|
336
|
-
this.addEventListener("click", this._onclickBound);
|
|
337
|
-
this._clickHandlerAttached = true;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
onExitDOM() {
|
|
341
|
-
if (this._clickHandlerAttached) {
|
|
342
|
-
this.removeEventListener("click", this._onclickBound);
|
|
343
|
-
this._clickHandlerAttached = false;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
async onBeforeRendering() {
|
|
347
|
-
this._setBadgeOverlayStyle();
|
|
348
|
-
this.hasIcon = !!this.icon;
|
|
349
|
-
this.hasEndIcon = !!this.endIcon;
|
|
350
|
-
this.iconOnly = this.isIconOnly;
|
|
351
|
-
const defaultTooltip = await this.getDefaultTooltip();
|
|
352
|
-
this.buttonTitle = this.iconOnly ? this.tooltip ?? defaultTooltip : this.tooltip;
|
|
353
|
-
}
|
|
354
|
-
_setBadgeOverlayStyle() {
|
|
355
|
-
const needsOverflowVisible = this.badge.length && (this.badge[0].design === ButtonBadgeDesign$1.AttentionDot || this.badge[0].design === ButtonBadgeDesign$1.OverlayText);
|
|
356
|
-
if (needsOverflowVisible) {
|
|
357
|
-
this._internals.states.add("has-overlay-badge");
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
this._internals.states.delete("has-overlay-badge");
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
_onclick(e) {
|
|
364
|
-
e.stopImmediatePropagation();
|
|
365
|
-
if (this.nonInteractive) {
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
if (this.loading) {
|
|
369
|
-
e.preventDefault();
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
const { altKey, ctrlKey, metaKey, shiftKey, } = e;
|
|
373
|
-
const prevented = !this.fireDecoratorEvent("click", {
|
|
374
|
-
originalEvent: e,
|
|
375
|
-
altKey,
|
|
376
|
-
ctrlKey,
|
|
377
|
-
metaKey,
|
|
378
|
-
shiftKey,
|
|
379
|
-
});
|
|
380
|
-
if (prevented) {
|
|
381
|
-
e.preventDefault();
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
if (this._isSubmit) {
|
|
385
|
-
webcomponentsBase.i$1(this);
|
|
386
|
-
}
|
|
387
|
-
if (this._isReset) {
|
|
388
|
-
webcomponentsBase.m$1(this);
|
|
389
|
-
}
|
|
390
|
-
if (Theme.h()) {
|
|
391
|
-
this.getDomRef()?.focus();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
_onmousedown() {
|
|
395
|
-
if (this.nonInteractive) {
|
|
396
|
-
return;
|
|
397
|
-
}
|
|
398
|
-
this._setActiveState(true);
|
|
399
|
-
activeButton = this; // eslint-disable-line
|
|
400
|
-
}
|
|
401
|
-
_ontouchend(e) {
|
|
402
|
-
if (this.disabled || this.loading) {
|
|
403
|
-
e.preventDefault();
|
|
404
|
-
e.stopPropagation();
|
|
405
|
-
}
|
|
406
|
-
if (this.active) {
|
|
407
|
-
this._setActiveState(false);
|
|
408
|
-
}
|
|
409
|
-
if (activeButton) {
|
|
410
|
-
activeButton._setActiveState(false);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
_onkeydown(e) {
|
|
414
|
-
this._cancelAction = webcomponentsBase.Ko(e) || webcomponentsBase.m$2(e);
|
|
415
|
-
if (webcomponentsBase.A(e) || webcomponentsBase.b$1(e)) {
|
|
416
|
-
this._setActiveState(true);
|
|
417
|
-
}
|
|
418
|
-
else if (this._cancelAction) {
|
|
419
|
-
this._setActiveState(false);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
_onkeyup(e) {
|
|
423
|
-
if (this._cancelAction) {
|
|
424
|
-
e.preventDefault();
|
|
425
|
-
}
|
|
426
|
-
if (webcomponentsBase.A(e) || webcomponentsBase.b$1(e)) {
|
|
427
|
-
if (this.active) {
|
|
428
|
-
this._setActiveState(false);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
_onfocusout() {
|
|
433
|
-
if (this.nonInteractive) {
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
if (this.active) {
|
|
437
|
-
this._setActiveState(false);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
_setActiveState(active) {
|
|
441
|
-
const eventPrevented = !this.fireDecoratorEvent("active-state-change");
|
|
442
|
-
if (eventPrevented || this.loading) {
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
this.active = active;
|
|
446
|
-
}
|
|
447
|
-
get hasButtonType() {
|
|
448
|
-
return this.design !== ButtonDesign$1.Default && this.design !== ButtonDesign$1.Transparent;
|
|
449
|
-
}
|
|
450
|
-
get isIconOnly() {
|
|
451
|
-
return !willShowContent.t(this.text);
|
|
452
|
-
}
|
|
453
|
-
static typeTextMappings() {
|
|
454
|
-
return {
|
|
455
|
-
"Positive": i18nDefaults.BUTTON_ARIA_TYPE_ACCEPT,
|
|
456
|
-
"Negative": i18nDefaults.BUTTON_ARIA_TYPE_REJECT,
|
|
457
|
-
"Emphasized": i18nDefaults.BUTTON_ARIA_TYPE_EMPHASIZED,
|
|
458
|
-
"Attention": i18nDefaults.BUTTON_ARIA_TYPE_ATTENTION,
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
getDefaultTooltip() {
|
|
462
|
-
if (!l()) {
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
return Icons.A(this.icon);
|
|
466
|
-
}
|
|
467
|
-
get buttonTypeText() {
|
|
468
|
-
return Button_1.i18nBundle.getText(Button_1.typeTextMappings()[this.design]);
|
|
469
|
-
}
|
|
470
|
-
get effectiveAccRole() {
|
|
471
|
-
return toLowercaseEnumValue.n(this.accessibleRole);
|
|
472
|
-
}
|
|
473
|
-
get tabIndexValue() {
|
|
474
|
-
if (this.disabled) {
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
const tabindex = this.getAttribute("tabindex");
|
|
478
|
-
if (tabindex) {
|
|
479
|
-
return Number.parseInt(tabindex);
|
|
480
|
-
}
|
|
481
|
-
return this.nonInteractive ? -1 : Number.parseInt(this.forcedTabIndex);
|
|
482
|
-
}
|
|
483
|
-
get ariaLabelText() {
|
|
484
|
-
const textContent = this.textContent || "";
|
|
485
|
-
const ariaLabelText = AccessibilityTextsHelper.A(this) || "";
|
|
486
|
-
const typeLabelText = this.hasButtonType ? this.buttonTypeText : "";
|
|
487
|
-
const internalLabelText = this.effectiveBadgeDescriptionText || "";
|
|
488
|
-
const labelParts = [textContent, ariaLabelText, typeLabelText, internalLabelText].filter(part => part);
|
|
489
|
-
return labelParts.join(" ");
|
|
490
|
-
}
|
|
491
|
-
get ariaDescriptionText() {
|
|
492
|
-
return this.accessibleDescription === "" ? undefined : this.accessibleDescription;
|
|
493
|
-
}
|
|
494
|
-
get _computedAccessibilityAttributes() {
|
|
495
|
-
return {
|
|
496
|
-
expanded: this.accessibilityAttributes.expanded,
|
|
497
|
-
hasPopup: this.accessibilityAttributes.hasPopup,
|
|
498
|
-
controls: this.accessibilityAttributes.controls,
|
|
499
|
-
ariaKeyShortcuts: this.accessibilityAttributes.ariaKeyShortcuts,
|
|
500
|
-
ariaLabel: this.accessibilityAttributes.ariaLabel || this.ariaLabelText,
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
get effectiveBadgeDescriptionText() {
|
|
504
|
-
if (!this.shouldRenderBadge) {
|
|
505
|
-
return "";
|
|
506
|
-
}
|
|
507
|
-
const badgeEffectiveText = this.badge[0].effectiveText;
|
|
508
|
-
// Use distinct i18n keys for singular and plural badge values to ensure proper localization.
|
|
509
|
-
// Some languages have different grammatical rules for singular and plural forms,
|
|
510
|
-
// so separate keys (BUTTON_BADGE_ONE_ITEM and BUTTON_BADGE_MANY_ITEMS) are necessary.
|
|
511
|
-
switch (badgeEffectiveText) {
|
|
512
|
-
case "":
|
|
513
|
-
return badgeEffectiveText;
|
|
514
|
-
case "1":
|
|
515
|
-
return Button_1.i18nBundle.getText(i18nDefaults.BUTTON_BADGE_ONE_ITEM, badgeEffectiveText);
|
|
516
|
-
default:
|
|
517
|
-
return Button_1.i18nBundle.getText(i18nDefaults.BUTTON_BADGE_MANY_ITEMS, badgeEffectiveText);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
get _isSubmit() {
|
|
521
|
-
return this.type === ButtonType$1.Submit || this.submits;
|
|
522
|
-
}
|
|
523
|
-
get _isReset() {
|
|
524
|
-
return this.type === ButtonType$1.Reset;
|
|
525
|
-
}
|
|
526
|
-
get shouldRenderBadge() {
|
|
527
|
-
return !!this.badge.length && (!!this.badge[0].text.length || this.badge[0].design === ButtonBadgeDesign$1.AttentionDot);
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
|
-
__decorate([
|
|
531
|
-
webcomponentsBase.s()
|
|
532
|
-
], Button.prototype, "design", void 0);
|
|
533
|
-
__decorate([
|
|
534
|
-
webcomponentsBase.s({ type: Boolean })
|
|
535
|
-
], Button.prototype, "disabled", void 0);
|
|
536
|
-
__decorate([
|
|
537
|
-
webcomponentsBase.s()
|
|
538
|
-
], Button.prototype, "icon", void 0);
|
|
539
|
-
__decorate([
|
|
540
|
-
webcomponentsBase.s()
|
|
541
|
-
], Button.prototype, "endIcon", void 0);
|
|
542
|
-
__decorate([
|
|
543
|
-
webcomponentsBase.s({ type: Boolean })
|
|
544
|
-
], Button.prototype, "submits", void 0);
|
|
545
|
-
__decorate([
|
|
546
|
-
webcomponentsBase.s()
|
|
547
|
-
], Button.prototype, "tooltip", void 0);
|
|
548
|
-
__decorate([
|
|
549
|
-
webcomponentsBase.s()
|
|
550
|
-
], Button.prototype, "accessibleName", void 0);
|
|
551
|
-
__decorate([
|
|
552
|
-
webcomponentsBase.s()
|
|
553
|
-
], Button.prototype, "accessibleNameRef", void 0);
|
|
554
|
-
__decorate([
|
|
555
|
-
webcomponentsBase.s({ type: Object })
|
|
556
|
-
], Button.prototype, "accessibilityAttributes", void 0);
|
|
557
|
-
__decorate([
|
|
558
|
-
webcomponentsBase.s()
|
|
559
|
-
], Button.prototype, "accessibleDescription", void 0);
|
|
560
|
-
__decorate([
|
|
561
|
-
webcomponentsBase.s()
|
|
562
|
-
], Button.prototype, "type", void 0);
|
|
563
|
-
__decorate([
|
|
564
|
-
webcomponentsBase.s()
|
|
565
|
-
], Button.prototype, "accessibleRole", void 0);
|
|
566
|
-
__decorate([
|
|
567
|
-
webcomponentsBase.s({ type: Boolean })
|
|
568
|
-
], Button.prototype, "active", void 0);
|
|
569
|
-
__decorate([
|
|
570
|
-
webcomponentsBase.s({ type: Boolean })
|
|
571
|
-
], Button.prototype, "iconOnly", void 0);
|
|
572
|
-
__decorate([
|
|
573
|
-
webcomponentsBase.s({ type: Boolean })
|
|
574
|
-
], Button.prototype, "hasIcon", void 0);
|
|
575
|
-
__decorate([
|
|
576
|
-
webcomponentsBase.s({ type: Boolean })
|
|
577
|
-
], Button.prototype, "hasEndIcon", void 0);
|
|
578
|
-
__decorate([
|
|
579
|
-
webcomponentsBase.s({ type: Boolean })
|
|
580
|
-
], Button.prototype, "nonInteractive", void 0);
|
|
581
|
-
__decorate([
|
|
582
|
-
webcomponentsBase.s({ type: Boolean })
|
|
583
|
-
], Button.prototype, "loading", void 0);
|
|
584
|
-
__decorate([
|
|
585
|
-
webcomponentsBase.s({ type: Number })
|
|
586
|
-
], Button.prototype, "loadingDelay", void 0);
|
|
587
|
-
__decorate([
|
|
588
|
-
webcomponentsBase.s({ noAttribute: true })
|
|
589
|
-
], Button.prototype, "buttonTitle", void 0);
|
|
590
|
-
__decorate([
|
|
591
|
-
webcomponentsBase.s({ type: Object })
|
|
592
|
-
], Button.prototype, "_iconSettings", void 0);
|
|
593
|
-
__decorate([
|
|
594
|
-
webcomponentsBase.s({ noAttribute: true })
|
|
595
|
-
], Button.prototype, "forcedTabIndex", void 0);
|
|
596
|
-
__decorate([
|
|
597
|
-
webcomponentsBase.s({ type: Boolean })
|
|
598
|
-
], Button.prototype, "_isTouch", void 0);
|
|
599
|
-
__decorate([
|
|
600
|
-
webcomponentsBase.s({ type: Boolean, noAttribute: true })
|
|
601
|
-
], Button.prototype, "_cancelAction", void 0);
|
|
602
|
-
__decorate([
|
|
603
|
-
webcomponentsBase.d({ type: Node, "default": true })
|
|
604
|
-
], Button.prototype, "text", void 0);
|
|
605
|
-
__decorate([
|
|
606
|
-
webcomponentsBase.d({ type: HTMLElement, invalidateOnChildChange: true })
|
|
607
|
-
], Button.prototype, "badge", void 0);
|
|
608
|
-
__decorate([
|
|
609
|
-
parametersBundle_css$1.i("@ui5/webcomponents")
|
|
610
|
-
], Button, "i18nBundle", void 0);
|
|
611
|
-
Button = Button_1 = __decorate([
|
|
612
|
-
webcomponentsBase.m({
|
|
613
|
-
tag: "ui5-button",
|
|
614
|
-
formAssociated: true,
|
|
615
|
-
languageAware: true,
|
|
616
|
-
renderer: parametersBundle_css.y,
|
|
617
|
-
template: ButtonTemplate,
|
|
618
|
-
styles: buttonCss,
|
|
619
|
-
shadowRootOptions: { delegatesFocus: true },
|
|
620
|
-
})
|
|
621
|
-
/**
|
|
622
|
-
* Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.
|
|
623
|
-
*
|
|
624
|
-
* **Note:** The event will not be fired if the `disabled` property is set to `true`.
|
|
625
|
-
*
|
|
626
|
-
* @since 2.10.0
|
|
627
|
-
* @public
|
|
628
|
-
* @param {Event} originalEvent Returns original event that comes from user's **click** interaction
|
|
629
|
-
* @param {boolean} altKey Returns whether the "ALT" key was pressed when the event was triggered.
|
|
630
|
-
* @param {boolean} ctrlKey Returns whether the "CTRL" key was pressed when the event was triggered.
|
|
631
|
-
* @param {boolean} metaKey Returns whether the "META" key was pressed when the event was triggered.
|
|
632
|
-
* @param {boolean} shiftKey Returns whether the "SHIFT" key was pressed when the event was triggered.
|
|
633
|
-
*/
|
|
634
|
-
,
|
|
635
|
-
eventStrict.l("click", {
|
|
636
|
-
bubbles: true,
|
|
637
|
-
cancelable: true,
|
|
638
|
-
})
|
|
639
|
-
/**
|
|
640
|
-
* Fired whenever the active state of the component changes.
|
|
641
|
-
* @private
|
|
642
|
-
*/
|
|
643
|
-
,
|
|
644
|
-
eventStrict.l("active-state-change", {
|
|
645
|
-
bubbles: true,
|
|
646
|
-
cancelable: true,
|
|
647
|
-
})
|
|
648
|
-
], Button);
|
|
649
|
-
Button.define();
|
|
650
|
-
var Button$1 = Button;
|
|
651
|
-
|
|
652
|
-
exports.Button = Button$1;
|
|
653
|
-
exports.ButtonBadgeDesign = ButtonBadgeDesign$1;
|
|
654
|
-
exports.ButtonDesign = ButtonDesign$1;
|
|
655
|
-
|
|
656
|
-
}));
|
|
1
|
+
sap.ui.define(["exports","sap/f/thirdparty/webcomponents","sap/f/thirdparty/event-strict","sap/f/thirdparty/parameters-bundle.css","sap/f/thirdparty/parameters-bundle.css2","sap/f/thirdparty/AccessibilityTextsHelper","sap/f/thirdparty/Icons","sap/f/thirdparty/Theme","sap/f/thirdparty/willShowContent","sap/f/thirdparty/toLowercaseEnumValue","sap/f/thirdparty/Icon","sap/f/thirdparty/BusyIndicator","sap/f/thirdparty/i18n-defaults2"],function(t,e,o,i,n,s,r,a,c,d,u,l,h){"use strict";let _;const p=()=>(_===void 0&&(_=a.b()),_);var b;(function(t){t["Default"]="Default";t["Positive"]="Positive";t["Negative"]="Negative";t["Transparent"]="Transparent";t["Emphasized"]="Emphasized";t["Attention"]="Attention"})(b||(b={}));var v=b;var f;(function(t){t["Button"]="Button";t["Submit"]="Submit";t["Reset"]="Reset"})(f||(f={}));var g=f;var y;(function(t){t["InlineText"]="InlineText";t["OverlayText"]="OverlayText";t["AttentionDot"]="AttentionDot"})(y||(y={}));var m=y;var B;(function(t){t["Button"]="Button";t["Link"]="Link"})(B||(B={}));var A=B;var x;(function(t){t["S"]="S";t["M"]="M";t["L"]="L"})(x||(x={}));var T=x;function k(t){return n.jsxs(n.Fragment,{children:[n.jsxs("button",{type:"button",class:{"ui5-button-root":true,"ui5-button-badge-placement-end":this.badge[0]?.design==="InlineText","ui5-button-badge-placement-end-top":this.badge[0]?.design==="OverlayText","ui5-button-badge-dot":this.badge[0]?.design==="AttentionDot"},disabled:this.disabled,"data-sap-focus-ref":true,"aria-pressed":t?.ariaPressed,"aria-valuemin":t?.ariaValueMin,"aria-valuemax":t?.ariaValueMax,"aria-valuenow":t?.ariaValueNow,"aria-valuetext":t?.ariaValueText,onFocusOut:this._onfocusout,onClick:this._onclick,onMouseDown:this._onmousedown,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,onTouchStart:this._ontouchstart,onTouchEnd:this._ontouchend,tabindex:this.tabIndexValue,"aria-expanded":this._computedAccessibilityAttributes?.expanded,"aria-controls":this._computedAccessibilityAttributes?.controls,"aria-haspopup":this._computedAccessibilityAttributes?.hasPopup,"aria-label":this._computedAccessibilityAttributes?.ariaLabel,"aria-keyshortcuts":this._computedAccessibilityAttributes?.ariaKeyShortcuts,"aria-description":this.ariaDescriptionText,"aria-busy":this.loading?"true":undefined,title:this.buttonTitle,part:"button",role:this.effectiveAccRole,children:[this.icon&&n.jsx(u.Icon,{class:"ui5-button-icon",name:this.icon,mode:"Decorative",part:"icon"}),n.jsx("span",{id:`${this._id}-content`,class:"ui5-button-text",children:n.jsx("bdi",{children:n.jsx("slot",{})})}),this.endIcon&&n.jsx(u.Icon,{class:"ui5-button-end-icon",name:this.endIcon,mode:"Decorative",part:"endIcon"}),this.shouldRenderBadge&&n.jsx("slot",{name:"badge"})]}),this.loading&&n.jsx(l.BusyIndicator,{id:`${this._id}-button-busy-indicator`,class:"ui5-button-busy-indicator",size:this.iconOnly?T.S:T.M,active:true,delay:this.loadingDelay,inert:this.loading})]})}a.f("@"+"ui5"+"/"+"webcomponents-theming","sap_horizon",async()=>n.defaultThemeBase);a.f("@"+"u"+"i"+"5"+"/"+"w"+"e"+"b"+"c"+"o"+"m"+"p"+"o"+"n"+"e"+"n"+"t"+"s","sap_horizon",async()=>i.defaultTheme,"host");var E=`:host{vertical-align:middle}.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}:host(:not([hidden])){display:inline-block}:host{min-width:var(--_ui5_button_base_min_width);height:var(--_ui5_button_base_height);line-height:normal;font-family:var(--_ui5_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5_button_text_shadow);border-radius:var(--_ui5_button_border_radius);cursor:pointer;background-color:var(--sapButton_Background);border:var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);color:var(--sapButton_TextColor);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}.ui5-button-root{min-width:inherit;cursor:inherit;height:100%;width:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;outline:none;padding:0 var(--_ui5_button_base_padding);position:relative;background:transparent;border:none;color:inherit;text-shadow:inherit;font:inherit;white-space:inherit;overflow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host(:not([hidden]):not([disabled]).ui5_hovered){background:var(--sapButton_Hover_Background);border:1px solid var(--sapButton_Hover_BorderColor);color:var(--sapButton_Hover_TextColor)}.ui5-button-icon,.ui5-button-end-icon{color:inherit;flex-shrink:0}.ui5-button-end-icon{margin-inline-start:var(--_ui5_button_base_icon_margin)}:host([icon-only]:not([has-end-icon])) .ui5-button-root{min-width:auto;padding:0}:host([icon-only]) .ui5-button-text{display:none}.ui5-button-text{outline:none;position:relative;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([has-icon]:not(:empty)) .ui5-button-text{margin-inline-start:var(--_ui5_button_base_icon_margin)}:host([has-end-icon]:not([has-icon]):empty) .ui5-button-end-icon{margin-inline-start:0}:host([disabled]){opacity:var(--sapContent_DisabledOpacity);pointer-events:unset;cursor:default}:host([has-icon]:not([icon-only]):not([has-end-icon])) .ui5-button-text{min-width:calc(var(--_ui5_button_base_min_width) - var(--_ui5_button_base_icon_margin) - 1rem)}:host([disabled]:active){pointer-events:none}:host([desktop]:not([loading])) .ui5-button-root:focus-within:after,:host(:not([active])) .ui5-button-root:focus-visible:after,:host([desktop][active][design="Emphasized"]) .ui5-button-root:focus-within:after,:host([active][design="Emphasized"]) .ui5-button-root:focus-visible:after,:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;pointer-events:none;inset:.0625rem;border:var(--_ui5_button_focused_border);border-radius:var(--_ui5_button_focused_border_radius)}:host([desktop][active]) .ui5-button-root:focus-within:before,:host([active]) .ui5-button-root:focus-visible:before{border-color:var(--_ui5_button_pressed_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_border_color)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:before,:host([design="Emphasized"]) .ui5-button-root:focus-visible:before{content:"";position:absolute;box-sizing:border-box;inset:.0625rem;border:var(--_ui5_button_emphasized_focused_border_before);border-radius:var(--_ui5_button_focused_border_radius)}.ui5-button-root::-moz-focus-inner{border:0}bdi{display:block;white-space:inherit;overflow:inherit;text-overflow:inherit}:host([ui5-button][active]:not([disabled]):not([non-interactive])){background-image:none;background-color:var(--sapButton_Active_Background);border-color:var(--sapButton_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([design="Positive"]){background-color:var(--sapButton_Accept_Background);border-color:var(--sapButton_Accept_BorderColor);color:var(--sapButton_Accept_TextColor)}:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Positive"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Accept_Hover_Background);border-color:var(--sapButton_Accept_Hover_BorderColor);color:var(--sapButton_Accept_Hover_TextColor)}:host([ui5-button][design="Positive"][active]:not([non-interactive])){background-color:var(--sapButton_Accept_Active_Background);border-color:var(--sapButton_Accept_Active_BorderColor);color:var(--sapButton_Accept_Active_TextColor)}:host([design="Negative"]){background-color:var(--sapButton_Reject_Background);border-color:var(--sapButton_Reject_BorderColor);color:var(--sapButton_Reject_TextColor)}:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Negative"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Reject_Hover_Background);border-color:var(--sapButton_Reject_Hover_BorderColor);color:var(--sapButton_Reject_Hover_TextColor)}:host([ui5-button][design="Negative"][active]:not([non-interactive])){background-color:var(--sapButton_Reject_Active_Background);border-color:var(--sapButton_Reject_Active_BorderColor);color:var(--sapButton_Reject_Active_TextColor)}:host([design="Attention"]){background-color:var(--sapButton_Attention_Background);border-color:var(--sapButton_Attention_BorderColor);color:var(--sapButton_Attention_TextColor)}:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Attention"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Attention_Hover_Background);border-color:var(--sapButton_Attention_Hover_BorderColor);color:var(--sapButton_Attention_Hover_TextColor)}:host([ui5-button][design="Attention"][active]:not([non-interactive])){background-color:var(--sapButton_Attention_Active_Background);border-color:var(--sapButton_Attention_Active_BorderColor);color:var(--sapButton_Attention_Active_TextColor)}:host([design="Emphasized"]){background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor);border-width:var(--_ui5_button_emphasized_border_width);color:var(--sapButton_Emphasized_TextColor);font-family:var(--sapButton_Emphasized_FontFamily)}:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Emphasized_Hover_Background);border-color:var(--sapButton_Emphasized_Hover_BorderColor);border-width:var(--_ui5_button_emphasized_border_width);color:var(--sapButton_Emphasized_Hover_TextColor)}:host([ui5-button][design="Empasized"][active]:not([non-interactive])){background-color:var(--sapButton_Emphasized_Active_Background);border-color:var(--sapButton_Emphasized_Active_BorderColor);color:var(--sapButton_Emphasized_Active_TextColor)}:host([design="Emphasized"][desktop]) .ui5-button-root:focus-within:after,:host([design="Emphasized"]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_border_color);outline:none}:host([design="Emphasized"][desktop][active]:not([non-interactive])) .ui5-button-root:focus-within:after,:host([design="Emphasized"][active]:not([non-interactive])) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_emphasized_focused_active_border_color)}:host([design="Transparent"]){background-color:var(--sapButton_Lite_Background);color:var(--sapButton_Lite_TextColor);border-color:var(--sapButton_Lite_BorderColor)}:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Transparent"]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:var(--sapButton_Lite_Hover_Background);border-color:var(--sapButton_Lite_Hover_BorderColor);color:var(--sapButton_Lite_Hover_TextColor)}:host([ui5-button][design="Transparent"][active]:not([non-interactive])){background-color:var(--sapButton_Lite_Active_Background);border-color:var(--sapButton_Lite_Active_BorderColor);color:var(--sapButton_Active_TextColor)}:host([ui5-segmented-button-item][active][desktop]) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item][active]) .ui5-button-root:focus-visible:after,:host([pressed][desktop]) .ui5-button-root:focus-within:after,:host([pressed]) .ui5-button-root:focus-visible:after{border-color:var(--_ui5_button_pressed_focused_border_color);outline:none}:host([ui5-segmented-button-item][desktop]:not(:last-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:last-child)) .ui5-button-root:focus-visible:after{border-top-right-radius:var(--_ui5_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5_button_focused_inner_border_radius)}:host([ui5-segmented-button-item][desktop]:not(:first-child)) .ui5-button-root:focus-within:after,:host([ui5-segmented-button-item]:not(:first-child)) .ui5-button-root:focus-visible:after{border-top-left-radius:var(--_ui5_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5_button_focused_inner_border_radius)}::slotted([slot="badge"][design="InlineText"]){pointer-events:initial;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);padding-inline-start:.25rem;--_ui5-tag-height: .625rem}::slotted([slot="badge"][design="OverlayText"]){pointer-events:initial;position:absolute;top:0;inset-inline-end:0;margin:-.5rem;z-index:1;font-family:var(--sapButton_FontFamily);font-size:var(--sapFontSmallSize);--_ui5-tag-height: .625rem}::slotted([slot="badge"][design="AttentionDot"]){pointer-events:initial;content:"";position:absolute;top:0;inset-inline-end:0;margin:-.25rem;z-index:1}:host(:state(has-overlay-badge)){overflow:visible;margin-inline-end:.3125rem}:host([loading]){position:relative;pointer-events:unset}:host([loading]) .ui5-button-root{opacity:var(--sapContent_DisabledOpacity)}:host([loading][design="Emphasized"]){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover),:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered){background-color:inherit;border:inherit}:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]):hover) .ui5-button-root,:host([design="Emphasized"][loading]:not([active]):not([non-interactive]):not([_is-touch]):not([disabled]).ui5_hovered) .ui5-button-root{background-color:var(--sapButton_Emphasized_Hover_Background)}:host([loading][design="Emphasized"]) .ui5-button-root{background-color:var(--sapButton_Emphasized_Background);border-color:var(--sapButton_Emphasized_BorderColor)}.ui5-button-busy-indicator{position:absolute;height:100%;width:100%;top:0}:host([has-end-icon]:not([icon])) .ui5-button-root{justify-content:flex-start}:host([icon-only]) .ui5-button-root{justify-content:center}:host([has-end-icon]:not([icon]):not(:empty)) .ui5-button-end-icon{padding-inline-start:var(--_ui5_button_base_icon_margin);margin-inline-start:auto}\n`;var w=this&&this.__decorate||function(t,e,o,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)if(r=t[a])s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s;return n>3&&s&&Object.defineProperty(e,o,s),s};var z;let I=false;let C=null;let D=z=class t extends e.S{constructor(){super();this.design="Default";this.disabled=false;this.submits=false;this.accessibilityAttributes={};this.type="Button";this.accessibleRole="Button";this.active=false;this.iconOnly=false;this.hasIcon=false;this.hasEndIcon=false;this.nonInteractive=false;this.loading=false;this.loadingDelay=1e3;this._iconSettings={};this.forcedTabIndex="0";this._isTouch=false;this._cancelAction=false;this._isSpacePressed=false;this._clickHandlerAttached=false;this._deactivate=()=>{if(C){C._setActiveState(false)}};this._onclickBound=t=>{if(t instanceof CustomEvent){return}this._onclick(t)};if(!this._clickHandlerAttached){this.addEventListener("click",this._onclickBound);this._clickHandlerAttached=true}if(!I){document.addEventListener("mouseup",this._deactivate);I=true}}_ontouchstart(){if(this.nonInteractive){return}this._setActiveState(true)}onEnterDOM(){if(a.f$1()){this.setAttribute("desktop","")}if(!this._clickHandlerAttached){this.addEventListener("click",this._onclickBound);this._clickHandlerAttached=true}}onExitDOM(){if(this._clickHandlerAttached){this.removeEventListener("click",this._onclickBound);this._clickHandlerAttached=false}if(C===this){C=null}}async onBeforeRendering(){this._setBadgeOverlayStyle();this.hasIcon=!!this.icon;this.hasEndIcon=!!this.endIcon;this.iconOnly=this.isIconOnly;const t=await this.getDefaultTooltip();this.buttonTitle=this.iconOnly?this.tooltip??t:this.tooltip}_setBadgeOverlayStyle(){const t=this.badge.length&&(this.badge[0].design===m.AttentionDot||this.badge[0].design===m.OverlayText);if(t){this._internals.states.add("has-overlay-badge")}else{this._internals.states.delete("has-overlay-badge")}}_onclick(t){t.stopImmediatePropagation();if(this.nonInteractive){return}if(this.loading){t.preventDefault();return}const{altKey:o,ctrlKey:i,metaKey:n,shiftKey:s}=t;const r=!this.fireDecoratorEvent("click",{originalEvent:t,altKey:o,ctrlKey:i,metaKey:n,shiftKey:s});if(r){t.preventDefault();return}if(this._isSubmit){e.m$1(this)}if(this._isReset){e.a(this)}if(a.h()){this.getDomRef()?.focus()}}_onmousedown(){if(this.nonInteractive){return}this._setActiveState(true);C=this}_ontouchend(t){if(this.disabled||this.loading){t.preventDefault();t.stopPropagation()}if(this.active){this._setActiveState(false)}if(C){C._setActiveState(false)}}_onkeydown(t){if(e.Ko(t)||e.m$2(t)){this._cancelAction=true}else if(e.A(t)){this._isSpacePressed=true}if(e.A(t)||e.b(t)){this._setActiveState(true)}else if(this._cancelAction){this._setActiveState(false)}}_onkeyup(t){const o=e.A(t);const i=e.Ko(t)||e.m$2(t);if(o||e.K(t)){if(this._cancelAction){this._cancelAction=false;this._isSpacePressed=false;t.preventDefault();return}this._isSpacePressed=false}else if(i&&!this._isSpacePressed){this._cancelAction=false}if(e.A(t)||e.b(t)){if(this.active){this._setActiveState(false)}}}_onfocusout(){if(this.nonInteractive){return}this._isSpacePressed=false;this._cancelAction=false;if(this.active){this._setActiveState(false)}}_setActiveState(t){const e=!this.fireDecoratorEvent("active-state-change");if(e||this.loading){return}this.active=t}get hasButtonType(){return this.design!==v.Default&&this.design!==v.Transparent}get isIconOnly(){return!c.t(this.text)}static typeTextMappings(){return{Positive:h.BUTTON_ARIA_TYPE_ACCEPT,Negative:h.BUTTON_ARIA_TYPE_REJECT,Emphasized:h.BUTTON_ARIA_TYPE_EMPHASIZED,Attention:h.BUTTON_ARIA_TYPE_ATTENTION}}getDefaultTooltip(){if(!p()){return}return r.A(this.icon)}get buttonTypeText(){return z.i18nBundle.getText(z.typeTextMappings()[this.design])}get effectiveAccRole(){return d.n(this.accessibleRole)}get tabIndexValue(){if(this.disabled){return}const t=this.getAttribute("tabindex");if(t){return Number.parseInt(t)}return this.nonInteractive?-1:Number.parseInt(this.forcedTabIndex)}get ariaLabelText(){const t=s.A(this)||"";const e=this.textContent||"";const o=this.effectiveBadgeDescriptionText||"";const i=t||e;const n=[i,o].filter(t=>t);return n.join(" ")}get ariaDescriptionText(){const t=this.accessibleDescription===""?undefined:this.accessibleDescription;const e=this.hasButtonType?this.buttonTypeText:"";const o=[t,e].filter(t=>t);return o.length>0?o.join(" "):undefined}get _computedAccessibilityAttributes(){return{expanded:this.accessibilityAttributes.expanded,hasPopup:this.accessibilityAttributes.hasPopup,controls:this.accessibilityAttributes.controls,ariaKeyShortcuts:this.accessibilityAttributes.ariaKeyShortcuts,ariaLabel:this.accessibilityAttributes.ariaLabel||this.ariaLabelText}}get accessibilityInfo(){return{description:this.ariaDescriptionText,role:this.effectiveAccRole,disabled:this.disabled,children:this.text,type:this.effectiveAccRoleTranslation}}get effectiveAccRoleTranslation(){if(this.accessibleRole===A.Button){return z.i18nBundle.getText(h.BUTTON_ROLE_DESCRIPTION)}if(this.accessibleRole===A.Link){return z.i18nBundle.getText(h.LINK_ROLE_DESCRIPTION)}return""}get effectiveBadgeDescriptionText(){if(!this.shouldRenderBadge){return""}const t=this.badge[0].effectiveText;switch(t){case"":return t;case"1":return z.i18nBundle.getText(h.BUTTON_BADGE_ONE_ITEM,t);default:return z.i18nBundle.getText(h.BUTTON_BADGE_MANY_ITEMS,t)}}get _isSubmit(){return this.type===g.Submit||this.submits}get _isReset(){return this.type===g.Reset}get shouldRenderBadge(){return!!this.badge.length&&(!!this.badge[0].text.length||this.badge[0].design===m.AttentionDot)}};w([e.s()],D.prototype,"design",void 0);w([e.s({type:Boolean})],D.prototype,"disabled",void 0);w([e.s()],D.prototype,"icon",void 0);w([e.s()],D.prototype,"endIcon",void 0);w([e.s({type:Boolean})],D.prototype,"submits",void 0);w([e.s()],D.prototype,"tooltip",void 0);w([e.s()],D.prototype,"accessibleName",void 0);w([e.s()],D.prototype,"accessibleNameRef",void 0);w([e.s({type:Object})],D.prototype,"accessibilityAttributes",void 0);w([e.s()],D.prototype,"accessibleDescription",void 0);w([e.s()],D.prototype,"type",void 0);w([e.s()],D.prototype,"accessibleRole",void 0);w([e.s({type:Boolean})],D.prototype,"active",void 0);w([e.s({type:Boolean})],D.prototype,"iconOnly",void 0);w([e.s({type:Boolean})],D.prototype,"hasIcon",void 0);w([e.s({type:Boolean})],D.prototype,"hasEndIcon",void 0);w([e.s({type:Boolean})],D.prototype,"nonInteractive",void 0);w([e.s({type:Boolean})],D.prototype,"loading",void 0);w([e.s({type:Number})],D.prototype,"loadingDelay",void 0);w([e.s({noAttribute:true})],D.prototype,"buttonTitle",void 0);w([e.s({type:Object})],D.prototype,"_iconSettings",void 0);w([e.s({noAttribute:true})],D.prototype,"forcedTabIndex",void 0);w([e.s({type:Boolean})],D.prototype,"_isTouch",void 0);w([e.s({type:Boolean,noAttribute:true})],D.prototype,"_cancelAction",void 0);w([e.s({type:Boolean,noAttribute:true})],D.prototype,"_isSpacePressed",void 0);w([e.d({type:Node,default:true})],D.prototype,"text",void 0);w([e.d({type:HTMLElement,invalidateOnChildChange:true})],D.prototype,"badge",void 0);w([i.i("@ui5/webcomponents")],D,"i18nBundle",void 0);D=z=w([e.m({tag:"ui5-button",formAssociated:true,languageAware:true,renderer:n.y,template:k,styles:E,shadowRootOptions:{delegatesFocus:true}}),o.l("click",{bubbles:true,cancelable:true}),o.l("active-state-change",{bubbles:true,cancelable:true})],D);D.define();var S=D;t.Button=S;t.ButtonBadgeDesign=m;t.ButtonDesign=v});
|
|
2
|
+
//# sourceMappingURL=Button2.js.map
|