@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,637 @@
|
|
|
1
|
+
sap.ui.define(['require', 'exports', 'sap/f/thirdparty/webcomponents', 'sap/f/thirdparty/event-strict', 'sap/f/thirdparty/parameters-bundle.css2', 'sap/f/thirdparty/parameters-bundle.css', 'sap/f/thirdparty/toLowercaseEnumValue', 'sap/f/thirdparty/ListItemBase', 'sap/f/thirdparty/i18n-defaults2', 'sap/f/thirdparty/WrappingType', 'sap/f/thirdparty/Icons'], (function (require, exports, webcomponentsBase, eventStrict, parametersBundle_css, parametersBundle_css$1, toLowercaseEnumValue, ListItemBase, i18nDefaults, WrappingType, Icons) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function i(t,o,n,m,r={}){const a=webcomponentsBase.D$1.getDraggedElement(),e={targetReference:null,placement:null};if(!a&&!r?.crossDnD)return e;const s=n.placements;return e.targetReference=t.target,s.some(l=>{const c=r.originalEvent?{originalEvent:t}:{};return o.fireDecoratorEvent("move-over",{...c,source:{element:a},destination:{element:m,placement:l}})?false:(t.preventDefault(),e.targetReference=n.element,e.placement=l,true)})||(e.targetReference=null),e}
|
|
4
|
+
|
|
5
|
+
function m(t,r,o,a,n={}){t.preventDefault();const e=webcomponentsBase.D$1.getDraggedElement();if(!e&&n?.crossDnD)return;const i=n.originalEvent?{originalEvent:t}:{};r.fireDecoratorEvent("move",{...i,source:{element:e},destination:{element:o,placement:a}}),e?.focus();}
|
|
6
|
+
|
|
7
|
+
var r=(f=>(f.On="On",f.Before="Before",f.After="After",f))(r||{});
|
|
8
|
+
|
|
9
|
+
var a=(l=>(l.Vertical="Vertical",l.Horizontal="Horizontal",l))(a||{});
|
|
10
|
+
|
|
11
|
+
const A=(e,t,r$1,a)=>{const o=Math.abs(e-t),m=Math.abs(e-r$1),s=Math.abs(e-a),c=Math.min(o,m,s);let l=[];switch(c){case o:l=[r.Before];break;case m:l=[r.On,o<s?r.Before:r.After];break;case s:l=[r.After];break}return l},L=(e,t,r)=>{let a$1=Number.POSITIVE_INFINITY,o=null;for(let f=0;f<e.length;f++){const h=e[f],{left:p,width:w,top:B,height:H}=h.getBoundingClientRect();let u;r===a.Vertical?u=B+H/2:u=p+w/2;const M=Math.abs(t-u);M<a$1&&(a$1=M,o=h);}if(!o)return null;const{width:m,height:s,left:c,right:l,top:b,bottom:d}=o.getBoundingClientRect();let i;return r===a.Vertical?i=A(t,b,b+s/2,d):i=A(t,c,c+m/2,l),{element:o,placements:i}},T=(e,t)=>(t--,t<0?[]:[{element:e[t],placement:r.Before}]),y=(e,t)=>(t++,t>=e.length?[]:[{element:e[t],placement:r.After}]),E={ArrowLeft:T,ArrowUp:T,ArrowRight:y,ArrowDown:y,Home:(e,t)=>e.slice(0,t).map(r$1=>({element:r$1,placement:r.Before})),End:(e,t)=>e.slice(t+1,e.length).reverse().map(r$1=>({element:r$1,placement:r.After}))},k=(e,t,r)=>P(r.key)?E[r.key](e,e.indexOf(t)):[],P=e=>e in E;
|
|
12
|
+
|
|
13
|
+
class DragAndDropHandler {
|
|
14
|
+
constructor(component, config) {
|
|
15
|
+
this.component = component;
|
|
16
|
+
this.config = {
|
|
17
|
+
orientation: a.Vertical,
|
|
18
|
+
clientCoordinate: "clientY",
|
|
19
|
+
...config,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
ondragenter(e) {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
}
|
|
25
|
+
ondragleave(e) {
|
|
26
|
+
if (e.relatedTarget instanceof Node && this.component.shadowRoot?.contains(e.relatedTarget)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const dropIndicator = this.config.getDropIndicator();
|
|
30
|
+
if (dropIndicator) {
|
|
31
|
+
dropIndicator.targetReference = null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
ondragover(e) {
|
|
35
|
+
if (!this._validateDragOver(e)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const draggedElement = webcomponentsBase.D$1.getDraggedElement();
|
|
39
|
+
const dropIndicator = this.config.getDropIndicator();
|
|
40
|
+
const closestPosition = this._findClosestPosition(e);
|
|
41
|
+
if (!closestPosition) {
|
|
42
|
+
dropIndicator.targetReference = null;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const targetElement = this._transformTargetElement(closestPosition.element);
|
|
46
|
+
if (!this._isValidDragTarget(draggedElement, targetElement)) {
|
|
47
|
+
dropIndicator.targetReference = null;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
// Filter placements if needed (e.g., ListItemGroup filtering out MovePlacement.On)
|
|
51
|
+
const placements = this._filterPlacements(closestPosition.placements, draggedElement, targetElement);
|
|
52
|
+
const settings = this.config.useOriginalEvent ? { originalEvent: true } : {};
|
|
53
|
+
const { targetReference, placement } = i(e, this.component, {
|
|
54
|
+
element: targetElement,
|
|
55
|
+
placements,
|
|
56
|
+
}, targetElement, settings);
|
|
57
|
+
dropIndicator.targetReference = targetReference;
|
|
58
|
+
dropIndicator.placement = placement;
|
|
59
|
+
}
|
|
60
|
+
ondrop(e) {
|
|
61
|
+
const dropIndicator = this.config.getDropIndicator();
|
|
62
|
+
if (!dropIndicator?.targetReference || !dropIndicator?.placement) {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const settings = this.config.useOriginalEvent ? { originalEvent: true } : {};
|
|
67
|
+
m(e, this.component, dropIndicator.targetReference, dropIndicator.placement, settings);
|
|
68
|
+
dropIndicator.targetReference = null;
|
|
69
|
+
}
|
|
70
|
+
_validateDragOver(e) {
|
|
71
|
+
if (!(e.target instanceof HTMLElement)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
const draggedElement = webcomponentsBase.D$1.getDraggedElement();
|
|
75
|
+
const dropIndicator = this.config.getDropIndicator();
|
|
76
|
+
return !!(draggedElement && dropIndicator);
|
|
77
|
+
}
|
|
78
|
+
_findClosestPosition(e) {
|
|
79
|
+
const items = this.config.getItems();
|
|
80
|
+
const coordinate = this.config.clientCoordinate === "clientX" ? e.clientX : e.clientY;
|
|
81
|
+
return L(items, coordinate, this.config.orientation);
|
|
82
|
+
}
|
|
83
|
+
_transformTargetElement(element) {
|
|
84
|
+
if (this.config.transformElement) {
|
|
85
|
+
return this.config.transformElement(element);
|
|
86
|
+
}
|
|
87
|
+
return element;
|
|
88
|
+
}
|
|
89
|
+
_isValidDragTarget(draggedElement, targetElement) {
|
|
90
|
+
if (this.config.validateDraggedElement) {
|
|
91
|
+
return this.config.validateDraggedElement(draggedElement, targetElement);
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
_filterPlacements(placements, draggedElement, targetElement) {
|
|
96
|
+
if (this.config.filterPlacements) {
|
|
97
|
+
return this.config.filterPlacements(placements, draggedElement, targetElement);
|
|
98
|
+
}
|
|
99
|
+
return placements;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function DropIndicatorTemplate() {
|
|
104
|
+
return parametersBundle_css.jsx("div", { class: {
|
|
105
|
+
"ui5-di-rect": this.placement === r.On,
|
|
106
|
+
"ui5-di-needle": this.placement !== r.On,
|
|
107
|
+
} });
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
111
|
+
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);
|
|
112
|
+
var DropIndicatorCss = `:host{position:absolute;pointer-events:none;z-index:99}:host([orientation="Vertical"]) .ui5-di-needle{width:.125rem;height:100%;inset-block:0;background:var(--sapContent_DragAndDropActiveColor)}:host([orientation="Vertical"]){margin-left:-.0625rem}:host([orientation="Horizontal"]) .ui5-di-needle{height:.125rem;width:100%;inset-inline:0;background:var(--sapContent_DragAndDropActiveColor)}:host([orientation="Horizontal"]){margin-top:-.0625rem}:host([orientation="Horizontal"][placement="Before"][first]){margin-top:.3125rem}:host([orientation="Horizontal"][placement="After"][last]){margin-top:-.3125rem}:host([orientation="Vertical"]) .ui5-di-needle:before{left:-.1875rem;content:"";position:absolute;width:.25rem;height:.25rem;border-radius:.25rem;border:.125rem solid var(--sapContent_DragAndDropActiveColor);background-color:#fff;pointer-events:none}:host([orientation="Horizontal"]) .ui5-di-needle:before{top:-.1875rem;content:"";position:absolute;width:.25rem;height:.25rem;border-radius:.25rem;border:.125rem solid var(--sapContent_DragAndDropActiveColor);background-color:#fff;pointer-events:none}:host .ui5-di-rect{border:.125rem solid var(--sapContent_DragAndDropActiveColor);position:absolute;inset:0}:host .ui5-di-rect:before{content:" ";position:absolute;inset:0;background:var(--sapContent_DragAndDropActiveColor);opacity:.05}
|
|
113
|
+
`;
|
|
114
|
+
|
|
115
|
+
var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
116
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
117
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
118
|
+
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;
|
|
119
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* @class
|
|
123
|
+
*
|
|
124
|
+
* ### Overview
|
|
125
|
+
*
|
|
126
|
+
* ### Usage
|
|
127
|
+
*
|
|
128
|
+
* ### ES6 Module Import
|
|
129
|
+
*
|
|
130
|
+
* `import "@ui5/webcomponents/dist/DropIndicator.js";`
|
|
131
|
+
*
|
|
132
|
+
* @constructor
|
|
133
|
+
* @extends UI5Element
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
let DropIndicator = class DropIndicator extends webcomponentsBase.b {
|
|
137
|
+
get _positionProperty() {
|
|
138
|
+
if (this.orientation === a.Vertical) {
|
|
139
|
+
return "left";
|
|
140
|
+
}
|
|
141
|
+
return "top";
|
|
142
|
+
}
|
|
143
|
+
constructor() {
|
|
144
|
+
super();
|
|
145
|
+
/**
|
|
146
|
+
* Element where the drop indicator will be shown.
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
* @default null
|
|
150
|
+
*/
|
|
151
|
+
this.targetReference = null;
|
|
152
|
+
/**
|
|
153
|
+
* Owner of the indicator and the target.
|
|
154
|
+
* @public
|
|
155
|
+
* @default null
|
|
156
|
+
*/
|
|
157
|
+
this.ownerReference = null;
|
|
158
|
+
/**
|
|
159
|
+
* Placement of the indicator relative to the target.
|
|
160
|
+
*
|
|
161
|
+
* @default "Before"
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
this.placement = "Before";
|
|
165
|
+
/**
|
|
166
|
+
* Orientation of the indicator.
|
|
167
|
+
*
|
|
168
|
+
* @default "Vertical"
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
this.orientation = "Vertical";
|
|
172
|
+
}
|
|
173
|
+
onAfterRendering() {
|
|
174
|
+
if (!this.targetReference || !this.ownerReference) {
|
|
175
|
+
Object.assign(this.style, {
|
|
176
|
+
display: "none",
|
|
177
|
+
});
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const { left, width, right, top, bottom, height, } = this.targetReference.getBoundingClientRect();
|
|
181
|
+
const { top: containerTop, height: containerHeight, } = this.ownerReference.getBoundingClientRect();
|
|
182
|
+
const style = {
|
|
183
|
+
display: "",
|
|
184
|
+
[this._positionProperty]: "",
|
|
185
|
+
width: "",
|
|
186
|
+
height: "",
|
|
187
|
+
};
|
|
188
|
+
let position = 0;
|
|
189
|
+
let isLast = false;
|
|
190
|
+
let isFirst = false;
|
|
191
|
+
if (this.orientation === a.Vertical) {
|
|
192
|
+
switch (this.placement) {
|
|
193
|
+
case r.Before:
|
|
194
|
+
position = left;
|
|
195
|
+
break;
|
|
196
|
+
case r.On:
|
|
197
|
+
style.width = `${width}px`;
|
|
198
|
+
position = left;
|
|
199
|
+
break;
|
|
200
|
+
case r.After:
|
|
201
|
+
position = right;
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
style.height = `${height}px`;
|
|
205
|
+
}
|
|
206
|
+
if (this.orientation === a.Horizontal) {
|
|
207
|
+
switch (this.placement) {
|
|
208
|
+
case r.Before:
|
|
209
|
+
position = top;
|
|
210
|
+
break;
|
|
211
|
+
case r.On:
|
|
212
|
+
style.height = `${height}px`;
|
|
213
|
+
position = top;
|
|
214
|
+
break;
|
|
215
|
+
case r.After:
|
|
216
|
+
position = bottom;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
style.width = `${width}px`;
|
|
220
|
+
position -= containerTop;
|
|
221
|
+
if (position <= 0) {
|
|
222
|
+
isFirst = true;
|
|
223
|
+
}
|
|
224
|
+
if (position >= containerHeight) {
|
|
225
|
+
isLast = true;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
style[this._positionProperty] = `${position}px`;
|
|
229
|
+
this.toggleAttribute("first", isFirst);
|
|
230
|
+
this.toggleAttribute("last", isLast);
|
|
231
|
+
Object.assign(this.style, style);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
__decorate$2([
|
|
235
|
+
webcomponentsBase.s({ type: Object })
|
|
236
|
+
], DropIndicator.prototype, "targetReference", void 0);
|
|
237
|
+
__decorate$2([
|
|
238
|
+
webcomponentsBase.s({ type: Object })
|
|
239
|
+
], DropIndicator.prototype, "ownerReference", void 0);
|
|
240
|
+
__decorate$2([
|
|
241
|
+
webcomponentsBase.s()
|
|
242
|
+
], DropIndicator.prototype, "placement", void 0);
|
|
243
|
+
__decorate$2([
|
|
244
|
+
webcomponentsBase.s()
|
|
245
|
+
], DropIndicator.prototype, "orientation", void 0);
|
|
246
|
+
DropIndicator = __decorate$2([
|
|
247
|
+
webcomponentsBase.m({
|
|
248
|
+
tag: "ui5-drop-indicator",
|
|
249
|
+
renderer: parametersBundle_css.y,
|
|
250
|
+
styles: DropIndicatorCss,
|
|
251
|
+
template: DropIndicatorTemplate,
|
|
252
|
+
})
|
|
253
|
+
], DropIndicator);
|
|
254
|
+
DropIndicator.define();
|
|
255
|
+
var DropIndicator$1 = DropIndicator;
|
|
256
|
+
|
|
257
|
+
function ListItemGroupHeaderTemplate() {
|
|
258
|
+
return (parametersBundle_css.jsxs("div", { part: "native-li", role: this.effectiveAccRole, tabindex: this.forcedTabIndex ? parseInt(this.forcedTabIndex) : undefined, class: {
|
|
259
|
+
"ui5-ghli-root": true,
|
|
260
|
+
...this.classes.main,
|
|
261
|
+
}, "aria-label": this.ariaLabelText, "aria-roledescription": this.groupHeaderText, onFocusIn: this._onfocusin, onKeyDown: this._onkeydown, children: [parametersBundle_css.jsx("div", { id: `${this._id}-content`, class: "ui5-li-content", children: renderTitle.call(this) }), this.hasSubItems && parametersBundle_css.jsx("slot", { name: "subItems" })] }));
|
|
262
|
+
}
|
|
263
|
+
function renderTitle() {
|
|
264
|
+
if (this.wrappingType === WrappingType.WrappingType.Normal) {
|
|
265
|
+
return this.expandableTextTemplate?.call(this, {
|
|
266
|
+
className: "ui5-ghli-title",
|
|
267
|
+
text: this._textContent,
|
|
268
|
+
maxCharacters: this._maxCharacters,
|
|
269
|
+
part: "title",
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
return (parametersBundle_css.jsx("span", { part: "title", class: "ui5-ghli-title", children: parametersBundle_css.jsx("slot", {}) }));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
276
|
+
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);
|
|
277
|
+
var ListItemGroupHeaderCss = `.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{height:var(--_ui5-v2-15-0_group_header_list_item_height);background:var(--ui5-v2-15-0-group-header-listitem-background-color);color:var(--sapList_TableGroupHeaderTextColor)}:host([wrapping-type="Normal"]){height:auto}:host([has-border]){border-bottom:var(--sapList_BorderWidth) solid var(--sapList_GroupHeaderBorderColor)}:host([actionable]:not([disabled])){cursor:default}.ui5-li-root.ui5-ghli-root{padding-top:.5rem;color:currentColor;font-size:var(--sapFontHeader6Size);font-weight:400;line-height:2rem;margin:0}.ui5-ghli-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-family:var(--sapFontHeaderFamily)}.ui5-li-content{width:100%}
|
|
278
|
+
`;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* ListItem accessible roles.
|
|
282
|
+
* @public
|
|
283
|
+
* @since 2.0.0
|
|
284
|
+
*/
|
|
285
|
+
var ListItemAccessibleRole;
|
|
286
|
+
(function (ListItemAccessibleRole) {
|
|
287
|
+
/**
|
|
288
|
+
* Represents the ARIA role "group".
|
|
289
|
+
* @private
|
|
290
|
+
*/
|
|
291
|
+
ListItemAccessibleRole["Group"] = "Group";
|
|
292
|
+
/**
|
|
293
|
+
* Represents the ARIA role "listitem". (by default)
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
ListItemAccessibleRole["ListItem"] = "ListItem";
|
|
297
|
+
/**
|
|
298
|
+
* Represents the ARIA role "menuitem".
|
|
299
|
+
* @public
|
|
300
|
+
*/
|
|
301
|
+
ListItemAccessibleRole["MenuItem"] = "MenuItem";
|
|
302
|
+
/**
|
|
303
|
+
* Represents the ARIA role "treeitem".
|
|
304
|
+
* @public
|
|
305
|
+
*/
|
|
306
|
+
ListItemAccessibleRole["TreeItem"] = "TreeItem";
|
|
307
|
+
/**
|
|
308
|
+
* Represents the ARIA role "option".
|
|
309
|
+
* @public
|
|
310
|
+
*/
|
|
311
|
+
ListItemAccessibleRole["Option"] = "Option";
|
|
312
|
+
/**
|
|
313
|
+
* Represents the ARIA role "none".
|
|
314
|
+
* @public
|
|
315
|
+
*/
|
|
316
|
+
ListItemAccessibleRole["None"] = "None";
|
|
317
|
+
})(ListItemAccessibleRole || (ListItemAccessibleRole = {}));
|
|
318
|
+
var ListItemAccessibleRole$1 = ListItemAccessibleRole;
|
|
319
|
+
|
|
320
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
321
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
322
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
323
|
+
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;
|
|
324
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
325
|
+
};
|
|
326
|
+
var ListItemGroupHeader_1;
|
|
327
|
+
/**
|
|
328
|
+
* Maximum number of characters to display for small screens (Size S)
|
|
329
|
+
* @private
|
|
330
|
+
*/
|
|
331
|
+
const MAX_CHARACTERS_SIZE_S = 100;
|
|
332
|
+
/**
|
|
333
|
+
* Maximum number of characters to display for medium and larger screens (Size M and above)
|
|
334
|
+
* @private
|
|
335
|
+
*/
|
|
336
|
+
const MAX_CHARACTERS_SIZE_M = 300;
|
|
337
|
+
/**
|
|
338
|
+
* @class
|
|
339
|
+
* The `ui5-li-group-header` is a special list item, used only to separate other list items into logical groups.
|
|
340
|
+
* @slot {Node[]} default - Defines the text of the component.
|
|
341
|
+
*
|
|
342
|
+
* **Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design.
|
|
343
|
+
* @constructor
|
|
344
|
+
* @extends ListItemBase
|
|
345
|
+
* @private
|
|
346
|
+
*/
|
|
347
|
+
let ListItemGroupHeader = ListItemGroupHeader_1 = class ListItemGroupHeader extends ListItemBase.ListItemBase {
|
|
348
|
+
constructor() {
|
|
349
|
+
super(...arguments);
|
|
350
|
+
this.accessibleRole = ListItemAccessibleRole$1.ListItem;
|
|
351
|
+
/**
|
|
352
|
+
* Defines if the text of the component should wrap when it's too long.
|
|
353
|
+
* When set to "Normal", the content (title, description) will be wrapped
|
|
354
|
+
* using the `ui5-expandable-text` component.<br/>
|
|
355
|
+
*
|
|
356
|
+
* The text can wrap up to 100 characters on small screens (size S) and
|
|
357
|
+
* up to 300 characters on larger screens (size M and above). When text exceeds
|
|
358
|
+
* these limits, it truncates with an ellipsis followed by a text expansion trigger.
|
|
359
|
+
*
|
|
360
|
+
* Available options are:
|
|
361
|
+
* - `None` (default) - The text will truncate with an ellipsis.
|
|
362
|
+
* - `Normal` - The text will wrap (without truncation).
|
|
363
|
+
*
|
|
364
|
+
* @default "None"
|
|
365
|
+
* @public
|
|
366
|
+
* @since 2.15.0
|
|
367
|
+
*/
|
|
368
|
+
this.wrappingType = "None";
|
|
369
|
+
/**
|
|
370
|
+
* Defines the current media query size.
|
|
371
|
+
* @default "S"
|
|
372
|
+
* @private
|
|
373
|
+
*/
|
|
374
|
+
this.mediaRange = "S";
|
|
375
|
+
}
|
|
376
|
+
get effectiveAccRole() {
|
|
377
|
+
return toLowercaseEnumValue.n(this.accessibleRole);
|
|
378
|
+
}
|
|
379
|
+
get groupItem() {
|
|
380
|
+
return true;
|
|
381
|
+
}
|
|
382
|
+
get _pressable() {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
get groupHeaderText() {
|
|
386
|
+
return ListItemGroupHeader_1.i18nBundle.getText(i18nDefaults.GROUP_HEADER_TEXT);
|
|
387
|
+
}
|
|
388
|
+
get defaultSlotText() {
|
|
389
|
+
return this.textContent;
|
|
390
|
+
}
|
|
391
|
+
get ariaLabelText() {
|
|
392
|
+
return [this.textContent, this.accessibleName].filter(Boolean).join(" ");
|
|
393
|
+
}
|
|
394
|
+
get hasSubItems() {
|
|
395
|
+
return this.subItems.length > 0;
|
|
396
|
+
}
|
|
397
|
+
onBeforeRendering() {
|
|
398
|
+
super.onBeforeRendering();
|
|
399
|
+
// Only load ExpandableText if "Normal" wrapping is used
|
|
400
|
+
if (this.wrappingType === "Normal") {
|
|
401
|
+
// If feature is already loaded (preloaded by the user via importing ListItemGroupHeaderExpandableText.js), the template is already available
|
|
402
|
+
if (ListItemGroupHeader_1.ExpandableTextTemplate) {
|
|
403
|
+
this.expandableTextTemplate = ListItemGroupHeader_1.ExpandableTextTemplate;
|
|
404
|
+
// If feature is not preloaded, load the template dynamically
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
new Promise(function (resolve, reject) { require(['sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate'], resolve, reject); }).then(module => {
|
|
408
|
+
this.expandableTextTemplate = module.default;
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Determines the maximum characters to display based on the current media range.
|
|
415
|
+
* - Size S: 100 characters
|
|
416
|
+
* - Size M and larger: 300 characters
|
|
417
|
+
* @private
|
|
418
|
+
*/
|
|
419
|
+
get _maxCharacters() {
|
|
420
|
+
return this.mediaRange === "S" ? MAX_CHARACTERS_SIZE_S : MAX_CHARACTERS_SIZE_M;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Returns the content text, either from text property or from the default slot
|
|
424
|
+
* @private
|
|
425
|
+
*/
|
|
426
|
+
get _textContent() {
|
|
427
|
+
return this.defaultSlotText || this.groupHeaderText || "";
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
__decorate$1([
|
|
431
|
+
webcomponentsBase.s()
|
|
432
|
+
], ListItemGroupHeader.prototype, "accessibleName", void 0);
|
|
433
|
+
__decorate$1([
|
|
434
|
+
webcomponentsBase.s()
|
|
435
|
+
], ListItemGroupHeader.prototype, "accessibleRole", void 0);
|
|
436
|
+
__decorate$1([
|
|
437
|
+
webcomponentsBase.s()
|
|
438
|
+
], ListItemGroupHeader.prototype, "wrappingType", void 0);
|
|
439
|
+
__decorate$1([
|
|
440
|
+
webcomponentsBase.s()
|
|
441
|
+
], ListItemGroupHeader.prototype, "mediaRange", void 0);
|
|
442
|
+
__decorate$1([
|
|
443
|
+
webcomponentsBase.s({ noAttribute: true })
|
|
444
|
+
], ListItemGroupHeader.prototype, "expandableTextTemplate", void 0);
|
|
445
|
+
__decorate$1([
|
|
446
|
+
webcomponentsBase.d()
|
|
447
|
+
], ListItemGroupHeader.prototype, "subItems", void 0);
|
|
448
|
+
__decorate$1([
|
|
449
|
+
parametersBundle_css$1.i("@ui5/webcomponents")
|
|
450
|
+
], ListItemGroupHeader, "i18nBundle", void 0);
|
|
451
|
+
ListItemGroupHeader = ListItemGroupHeader_1 = __decorate$1([
|
|
452
|
+
webcomponentsBase.m({
|
|
453
|
+
tag: "ui5-li-group-header",
|
|
454
|
+
languageAware: true,
|
|
455
|
+
template: ListItemGroupHeaderTemplate,
|
|
456
|
+
styles: [ListItemBase.ListItemBase.styles, ListItemGroupHeaderCss],
|
|
457
|
+
})
|
|
458
|
+
], ListItemGroupHeader);
|
|
459
|
+
ListItemGroupHeader.define();
|
|
460
|
+
var ListItemGroupHeader$1 = ListItemGroupHeader;
|
|
461
|
+
|
|
462
|
+
function ListItemGroupTemplate() {
|
|
463
|
+
return (parametersBundle_css.jsxs(parametersBundle_css.Fragment, { children: [this.hasHeader &&
|
|
464
|
+
parametersBundle_css.jsxs(ListItemGroupHeader$1, { wrappingType: this.wrappingType, focused: this.focused, part: "header", accessibleRole: ListItemAccessibleRole$1.ListItem, children: [this.hasFormattedHeader ? parametersBundle_css.jsx("slot", { name: "header" }) : this.headerText, parametersBundle_css.jsx("div", { role: "list", slot: "subItems", "aria-owns": `${this._id}-content`, "aria-label": this.headerText })] }), parametersBundle_css.jsxs("div", { class: "ui5-group-li-root", onDragEnter: this._ondragenter, onDragOver: this._ondragover, onDrop: this._ondrop, onDragLeave: this._ondragleave, id: `${this._id}-content`, children: [parametersBundle_css.jsx("slot", {}), parametersBundle_css.jsx(DropIndicator$1, { orientation: "Horizontal", ownerReference: this })] })] }));
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
Icons.p("@" + "ui5" + "/" + "webcomponents-theming", "sap_horizon", async () => parametersBundle_css.defaultThemeBase);
|
|
468
|
+
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);
|
|
469
|
+
var ListItemGroupCss = `.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{height:var(--_ui5-v2-15-0_group_header_list_item_height);background:var(--ui5-v2-15-0-group-header-listitem-background-color);color:var(--sapList_TableGroupHeaderTextColor)}.ui5-group-li-root{width:100%;height:100%;position:relative;box-sizing:border-box;padding:0;margin:0;list-style-type:none}
|
|
470
|
+
`;
|
|
471
|
+
|
|
472
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
473
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
474
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
475
|
+
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;
|
|
476
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* @class
|
|
480
|
+
* ### Overview
|
|
481
|
+
* The `ui5-li-group` is a special list item, used only to create groups of list items.
|
|
482
|
+
*
|
|
483
|
+
* This is the item to use inside a `ui5-list`.
|
|
484
|
+
*
|
|
485
|
+
* ### ES6 Module Import
|
|
486
|
+
* `import "@ui5/webcomponents/dist/ListItemGroup.js";`
|
|
487
|
+
* @csspart header - Used to style the header item of the group
|
|
488
|
+
* @constructor
|
|
489
|
+
* @extends UI5Element
|
|
490
|
+
* @public
|
|
491
|
+
* @since 2.0.0
|
|
492
|
+
*/
|
|
493
|
+
let ListItemGroup = class ListItemGroup extends webcomponentsBase.b {
|
|
494
|
+
constructor() {
|
|
495
|
+
super();
|
|
496
|
+
/**
|
|
497
|
+
* Defines if the text of the component should wrap when it's too long.
|
|
498
|
+
* When set to "Normal", the content (title, description) will be wrapped
|
|
499
|
+
* using the `ui5-expandable-text` component.<br/>
|
|
500
|
+
*
|
|
501
|
+
* The text can wrap up to 100 characters on small screens (size S) and
|
|
502
|
+
* up to 300 characters on larger screens (size M and above). When text exceeds
|
|
503
|
+
* these limits, it truncates with an ellipsis followed by a text expansion trigger.
|
|
504
|
+
*
|
|
505
|
+
* Available options are:
|
|
506
|
+
* - `None` (default) - The text will truncate with an ellipsis.
|
|
507
|
+
* - `Normal` - The text will wrap (without truncation).
|
|
508
|
+
*
|
|
509
|
+
* @default "None"
|
|
510
|
+
* @public
|
|
511
|
+
* @since 2.15.0
|
|
512
|
+
*/
|
|
513
|
+
this.wrappingType = "None";
|
|
514
|
+
/**
|
|
515
|
+
* Indicates whether the header is focused
|
|
516
|
+
* @private
|
|
517
|
+
*/
|
|
518
|
+
this.focused = false;
|
|
519
|
+
// Initialize the DragAndDropHandler with the necessary configurations
|
|
520
|
+
// The handler will manage the drag and drop operations for the list items.
|
|
521
|
+
this._dragAndDropHandler = new DragAndDropHandler(this, {
|
|
522
|
+
getItems: () => this.items,
|
|
523
|
+
getDropIndicator: () => this.dropIndicatorDOM,
|
|
524
|
+
filterPlacements: this._filterPlacements.bind(this),
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
get groupHeaderItem() {
|
|
528
|
+
return this.shadowRoot.querySelector("[ui5-li-group-header]");
|
|
529
|
+
}
|
|
530
|
+
get hasHeader() {
|
|
531
|
+
return !!this.headerText || this.hasFormattedHeader;
|
|
532
|
+
}
|
|
533
|
+
get hasFormattedHeader() {
|
|
534
|
+
return !!this.header.length;
|
|
535
|
+
}
|
|
536
|
+
get isListItemGroup() {
|
|
537
|
+
return true;
|
|
538
|
+
}
|
|
539
|
+
get dropIndicatorDOM() {
|
|
540
|
+
return this.shadowRoot.querySelector("[ui5-drop-indicator]");
|
|
541
|
+
}
|
|
542
|
+
_ondragenter(e) {
|
|
543
|
+
this._dragAndDropHandler.ondragenter(e);
|
|
544
|
+
}
|
|
545
|
+
_ondragleave(e) {
|
|
546
|
+
this._dragAndDropHandler.ondragleave(e);
|
|
547
|
+
}
|
|
548
|
+
_ondragover(e) {
|
|
549
|
+
this._dragAndDropHandler.ondragover(e);
|
|
550
|
+
}
|
|
551
|
+
_ondrop(e) {
|
|
552
|
+
this._dragAndDropHandler.ondrop(e);
|
|
553
|
+
}
|
|
554
|
+
_filterPlacements(placements, draggedElement, targetElement) {
|
|
555
|
+
// Filter out MovePlacement.On when dragged element is the same as target
|
|
556
|
+
if (targetElement === draggedElement) {
|
|
557
|
+
return placements.filter(placement => placement !== r.On);
|
|
558
|
+
}
|
|
559
|
+
return placements;
|
|
560
|
+
}
|
|
561
|
+
getFocusDomRef() {
|
|
562
|
+
return this.groupHeaderItem || this.items.at(0);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
__decorate([
|
|
566
|
+
webcomponentsBase.s()
|
|
567
|
+
], ListItemGroup.prototype, "headerText", void 0);
|
|
568
|
+
__decorate([
|
|
569
|
+
webcomponentsBase.s()
|
|
570
|
+
], ListItemGroup.prototype, "headerAccessibleName", void 0);
|
|
571
|
+
__decorate([
|
|
572
|
+
webcomponentsBase.d({
|
|
573
|
+
"default": true,
|
|
574
|
+
invalidateOnChildChange: true,
|
|
575
|
+
type: HTMLElement,
|
|
576
|
+
})
|
|
577
|
+
], ListItemGroup.prototype, "items", void 0);
|
|
578
|
+
__decorate([
|
|
579
|
+
webcomponentsBase.s()
|
|
580
|
+
], ListItemGroup.prototype, "wrappingType", void 0);
|
|
581
|
+
__decorate([
|
|
582
|
+
webcomponentsBase.s({ type: Boolean })
|
|
583
|
+
], ListItemGroup.prototype, "focused", void 0);
|
|
584
|
+
__decorate([
|
|
585
|
+
webcomponentsBase.d({ type: HTMLElement })
|
|
586
|
+
], ListItemGroup.prototype, "header", void 0);
|
|
587
|
+
ListItemGroup = __decorate([
|
|
588
|
+
webcomponentsBase.m({
|
|
589
|
+
tag: "ui5-li-group",
|
|
590
|
+
renderer: parametersBundle_css.y,
|
|
591
|
+
languageAware: true,
|
|
592
|
+
template: ListItemGroupTemplate,
|
|
593
|
+
styles: [ListItemGroupCss],
|
|
594
|
+
})
|
|
595
|
+
/**
|
|
596
|
+
* Fired when a movable list item is moved over a potential drop target during a dragging operation.
|
|
597
|
+
*
|
|
598
|
+
* If the new position is valid, prevent the default action of the event using `preventDefault()`.
|
|
599
|
+
* @param {object} source Contains information about the moved element under `element` property.
|
|
600
|
+
* @param {object} destination Contains information about the destination of the moved element. Has `element` and `placement` properties.
|
|
601
|
+
* @public
|
|
602
|
+
* @since 2.1.0
|
|
603
|
+
*/
|
|
604
|
+
,
|
|
605
|
+
eventStrict.l("move-over", {
|
|
606
|
+
bubbles: true,
|
|
607
|
+
cancelable: true,
|
|
608
|
+
})
|
|
609
|
+
/**
|
|
610
|
+
* Fired when a movable list item is dropped onto a drop target.
|
|
611
|
+
*
|
|
612
|
+
* **Note:** `move` event is fired only if there was a preceding `move-over` with prevented default action.
|
|
613
|
+
* @param {object} source Contains information about the moved element under `element` property.
|
|
614
|
+
* @param {object} destination Contains information about the destination of the moved element. Has `element` and `placement` properties.
|
|
615
|
+
* @public
|
|
616
|
+
* @since 2.1.0
|
|
617
|
+
*/
|
|
618
|
+
,
|
|
619
|
+
eventStrict.l("move", {
|
|
620
|
+
bubbles: true,
|
|
621
|
+
})
|
|
622
|
+
], ListItemGroup);
|
|
623
|
+
ListItemGroup.define();
|
|
624
|
+
const isInstanceOfListItemGroup = (object) => {
|
|
625
|
+
return "isListItemGroup" in object;
|
|
626
|
+
};
|
|
627
|
+
var ListItemGroup$1 = ListItemGroup;
|
|
628
|
+
|
|
629
|
+
exports.DragAndDropHandler = DragAndDropHandler;
|
|
630
|
+
exports.DropIndicator = DropIndicator$1;
|
|
631
|
+
exports.ListItemAccessibleRole = ListItemAccessibleRole$1;
|
|
632
|
+
exports.ListItemGroup = ListItemGroup$1;
|
|
633
|
+
exports.ListItemGroupHeader = ListItemGroupHeader$1;
|
|
634
|
+
exports.isInstanceOfListItemGroup = isInstanceOfListItemGroup;
|
|
635
|
+
exports.k = k;
|
|
636
|
+
|
|
637
|
+
}));
|