@openui5/sap.f 1.144.0 → 1.145.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/REUSE.toml +40 -16
- package/THIRDPARTY.txt +21 -0
- package/package.json +4 -4
- package/src/sap/f/.library +1 -1
- 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 +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 +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/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/SidePanelRenderer.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 +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/Button.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/Label.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/ListItemGroup.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/Menu.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents/dist/MenuItem.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/IllustratedMessage.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationList.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListGroupItem.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/NotificationListItem.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/Search.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItem.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemGroup.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchItemShowMore.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchMessageArea.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/SearchScope.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBar.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarBranding.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarItem.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSearch.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/ShellBarSpacer.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenu.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuAccount.js +1 -1
- package/src/sap/f/gen/ui5/webcomponents_fiori/dist/UserMenuItem.js +1 -1
- 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/GridList.less +1 -1
- package/src/sap/f/thirdparty/Avatar.js +5 -5
- package/src/sap/f/thirdparty/BusyIndicator.js +4 -4
- package/src/sap/f/thirdparty/Button.js +1 -1
- package/src/sap/f/thirdparty/Button2.js +6 -6
- package/src/sap/f/thirdparty/FocusableElements.js +2 -2
- package/src/sap/f/thirdparty/Icon.js +5 -5
- package/src/sap/f/thirdparty/Icons.js +24 -202
- package/src/sap/f/thirdparty/IllustratedMessage.js +8 -10
- package/src/sap/f/thirdparty/Illustrations.js +9 -0
- package/src/sap/f/thirdparty/Label.js +3 -3
- package/src/sap/f/thirdparty/Link.js +7 -7
- package/src/sap/f/thirdparty/List.js +5 -5
- package/src/sap/f/thirdparty/ListItemAdditionalText.css.js +3 -3
- package/src/sap/f/thirdparty/ListItemBase.js +6 -6
- package/src/sap/f/thirdparty/ListItemCustom.js +14 -14
- package/src/sap/f/thirdparty/ListItemGroup.js +7 -7
- package/src/sap/f/thirdparty/Menu.js +6 -6
- package/src/sap/f/thirdparty/MenuItem.js +1 -1
- package/src/sap/f/thirdparty/MenuItem2.js +9 -9
- package/src/sap/f/thirdparty/NotificationList.js +5 -5
- package/src/sap/f/thirdparty/NotificationListGroupItem.js +3 -3
- package/src/sap/f/thirdparty/NotificationListItem.js +5 -5
- package/src/sap/f/thirdparty/ResponsivePopover.js +36 -36
- package/src/sap/f/thirdparty/SearchItem.css.js +3 -3
- package/src/sap/f/thirdparty/SearchItem.js +3 -3
- package/src/sap/f/thirdparty/SearchItemGroup.js +5 -5
- package/src/sap/f/thirdparty/SearchItemShowMore.js +5 -5
- package/src/sap/f/thirdparty/SearchMessageArea.js +5 -5
- package/src/sap/f/thirdparty/SearchScope.js +3 -3
- package/src/sap/f/thirdparty/ShellBar.js +19 -19
- package/src/sap/f/thirdparty/ShellBarBranding.js +5 -5
- package/src/sap/f/thirdparty/ShellBarItem.js +3 -3
- package/src/sap/f/thirdparty/ShellBarSearch.js +2 -2
- package/src/sap/f/thirdparty/ShellBarSearch2.js +55 -55
- package/src/sap/f/thirdparty/ShellBarSpacer.js +3 -3
- package/src/sap/f/thirdparty/Tag.js +4 -4
- package/src/sap/f/thirdparty/Text.js +4 -4
- package/src/sap/f/thirdparty/Theme.js +187 -0
- package/src/sap/f/thirdparty/Title.js +3 -3
- package/src/sap/f/thirdparty/UserMenu.js +11 -11
- package/src/sap/f/thirdparty/UserMenuAccount.js +3 -3
- package/src/sap/f/thirdparty/UserMenuItem.js +5 -5
- package/src/sap/f/thirdparty/_dynamics/InputSuggestions.js +1 -1
- package/src/sap/f/thirdparty/_dynamics/ListItemStandardExpandableTextTemplate.js +4 -4
- package/src/sap/f/thirdparty/i18n-defaults.js +4 -0
- package/src/sap/f/thirdparty/information.js +1 -1
- package/src/sap/f/thirdparty/information2.js +1 -1
- package/src/sap/f/thirdparty/overflow.js +1 -1
- package/src/sap/f/thirdparty/slim-arrow-down.js +1 -1
- package/src/sap/f/thirdparty/sys-enter-2.js +1 -1
- package/src/sap/f/thirdparty/ui5/webcomponents_fiori/dist/illustrations/UnableToUpload.js +132 -0
- package/src/sap/f/thirdparty/ui5/webcomponents_icons/AllIcons.js +1 -1
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_business_suite/AllIcons.js +1 -1
- package/src/sap/f/thirdparty/ui5/webcomponents_icons_tnt/AllIcons.js +1 -1
- package/src/sap/f/thirdparty/webcomponents-base.js +1 -1
- package/src/sap/f/thirdparty/webcomponents-fiori.js +1 -1
- package/src/sap/f/thirdparty/webcomponents.js +60 -60
- package/ui5-build.yaml +1 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (require, exports, Icons) { 'use strict';
|
|
1
|
+
sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Theme', 'sap/f/thirdparty/Icons'], (function (require, exports, Theme, Icons) { 'use strict';
|
|
2
2
|
|
|
3
3
|
const p$5=t=>{const e=t.prototype.openEnd;t.prototype.openEnd=function(){return this._mAttributes.popover&&delete this._mAttributes.popover,e.apply(this)};};
|
|
4
4
|
|
|
5
5
|
var e$a = "[data-sap-ui-popup][popover]{border:none;overflow:visible;margin:0}";
|
|
6
6
|
|
|
7
|
-
const o$9=()=>{
|
|
7
|
+
const o$9=()=>{Theme.S("data-ui5-popup-styles")||Theme.c$1(e$a,"data-ui5-popup-styles");};
|
|
8
8
|
|
|
9
|
-
const n$g=
|
|
9
|
+
const n$g=Theme.m("AllOpenedPopupsRegistry",{openedRegistry:[]}),l$9=e=>{n$g.openedRegistry.push(e);},u$6=e=>{const t=n$g.openedRegistry.findIndex(o=>o.instance===e);t>-1&&n$g.openedRegistry.splice(t,1);},g$4=()=>n$g.openedRegistry[n$g.openedRegistry.length-1].instance,f$6=e=>{for(let t=n$g.openedRegistry.length-1;t>=0;t--){const o=n$g.openedRegistry[t];if(o.type!=="OpenUI5")return false;if(o.instance===e)break}return true},h$2=e=>{e.setAttribute("popover","manual"),e.showPopover();},v$4=e=>{e.hasAttribute("popover")&&(e.hidePopover(),e.removeAttribute("popover"));},a$b=(e=document)=>e.querySelector(":popover-open")?true:Array.from(e.querySelectorAll("*")).some(t=>{const o=t.shadowRoot;return o&&a$b(o)}),O$3=e=>{const t=e.prototype.open;e.prototype.open=function(...p){t.apply(this,p);const s=a$b();if(["OPENING","OPEN"].includes(this.getOpenState())&&s){const r=this.getContent();if(r){const i=r instanceof HTMLElement?r:r?.getDomRef();i&&h$2(i);}}l$9({type:"OpenUI5",instance:this});};},m$8=e=>{const t=e.prototype._closed;e.prototype._closed=function(...p){const s=this.getContent(),c=s instanceof HTMLElement?s:s?.getDomRef();t.apply(this,p),c&&v$4(c),u$6(this);};},I$3=e=>{const t=e.prototype.onFocusEvent;e.prototype.onFocusEvent=function(p){f$6(this)&&t.call(this,p);};},P$2=()=>{const e=new CSSStyleSheet;e.replaceSync(".sapMPopup-CTX:popover-open { inset: unset; }"),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e];},E$1=e=>{o$9(),O$3(e),m$8(e),P$2(),I$3(e);};
|
|
10
10
|
|
|
11
|
-
let a$a = class a{static isAtLeastVersion116(){if(!window.sap.ui.version)return true;const e=window.sap.ui.version.split(".");return !e||e.length<2?false:parseInt(e[0])>1||parseInt(e[1])>=116}static isOpenUI5Detected(){return typeof window.sap?.ui?.require=="function"}static init(){return a.isOpenUI5Detected()?(a.initPromise||(a.initPromise=new Promise(t=>{window.sap.ui.require(["sap/ui/core/Core"],async e=>{const i=()=>{let n=["sap/ui/core/Popup","sap/ui/core/Patcher","sap/ui/core/LocaleData"];a.isAtLeastVersion116()&&(n=[...n,"sap/base/i18n/Formatting","sap/base/i18n/Localization","sap/ui/core/ControlBehavior","sap/ui/core/Theming","sap/ui/core/date/CalendarUtils"]),window.sap.ui.require(n,(o,r)=>{p$5(r),E$1(o),t();});};a.isAtLeastVersion116()?(await e.ready(),i()):e.attachInit(i);});})),a.initPromise):Promise.resolve()}static getConfigurationSettingsObject(){if(!a.isOpenUI5Detected())return {};if(a.isAtLeastVersion116()){const n=window.sap.ui.require("sap/ui/core/ControlBehavior"),o=window.sap.ui.require("sap/base/i18n/Localization"),r=window.sap.ui.require("sap/ui/core/Theming"),s=window.sap.ui.require("sap/base/i18n/Formatting"),c=window.sap.ui.require("sap/ui/core/date/CalendarUtils");return {animationMode:n.getAnimationMode(),language:o.getLanguage(),theme:r.getTheme(),themeRoot:r.getThemeRoot(),rtl:o.getRTL(),timezone:o.getTimezone(),calendarType:s.getCalendarType(),formatSettings:{firstDayOfWeek:c.getWeekConfigurationValues().firstDayOfWeek,legacyDateCalendarCustomizing:s.getCustomIslamicCalendarData?.()??s.getLegacyDateCalendarCustomizing?.()}}}const e=window.sap.ui.require("sap/ui/core/Core").getConfiguration(),i=window.sap.ui.require("sap/ui/core/LocaleData");return {animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),themeRoot:e.getThemeRoot(),rtl:e.getRTL(),timezone:e.getTimezone(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:i?i.getInstance(e.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:e.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){if(!a.isOpenUI5Detected())return;const t=window.sap.ui.require("sap/ui/core/LocaleData");if(a.isAtLeastVersion116()){const n=window.sap.ui.require("sap/base/i18n/Localization");return t.getInstance(n.getLanguageTag())._get()}const i=window.sap.ui.require("sap/ui/core/Core").getConfiguration();return t.getInstance(i.getLocale())._get()}static _listenForThemeChange(){if(a.isAtLeastVersion116()){const t=window.sap.ui.require("sap/ui/core/Theming");t.attachApplied(()=>{
|
|
11
|
+
let a$a = class a{static isAtLeastVersion116(){if(!window.sap.ui.version)return true;const e=window.sap.ui.version.split(".");return !e||e.length<2?false:parseInt(e[0])>1||parseInt(e[1])>=116}static isOpenUI5Detected(){return typeof window.sap?.ui?.require=="function"}static init(){return a.isOpenUI5Detected()?(a.initPromise||(a.initPromise=new Promise(t=>{window.sap.ui.require(["sap/ui/core/Core"],async e=>{const i=()=>{let n=["sap/ui/core/Popup","sap/ui/core/Patcher","sap/ui/core/LocaleData"];a.isAtLeastVersion116()&&(n=[...n,"sap/base/i18n/Formatting","sap/base/i18n/Localization","sap/ui/core/ControlBehavior","sap/ui/core/Theming","sap/ui/core/date/CalendarUtils"]),window.sap.ui.require(n,(o,r)=>{p$5(r),E$1(o),t();});};a.isAtLeastVersion116()?(await e.ready(),i()):e.attachInit(i);});})),a.initPromise):Promise.resolve()}static getConfigurationSettingsObject(){if(!a.isOpenUI5Detected())return {};if(a.isAtLeastVersion116()){const n=window.sap.ui.require("sap/ui/core/ControlBehavior"),o=window.sap.ui.require("sap/base/i18n/Localization"),r=window.sap.ui.require("sap/ui/core/Theming"),s=window.sap.ui.require("sap/base/i18n/Formatting"),c=window.sap.ui.require("sap/ui/core/date/CalendarUtils");return {animationMode:n.getAnimationMode(),language:o.getLanguage(),theme:r.getTheme(),themeRoot:r.getThemeRoot(),rtl:o.getRTL(),timezone:o.getTimezone(),calendarType:s.getCalendarType(),formatSettings:{firstDayOfWeek:c.getWeekConfigurationValues().firstDayOfWeek,legacyDateCalendarCustomizing:s.getCustomIslamicCalendarData?.()??s.getLegacyDateCalendarCustomizing?.()}}}const e=window.sap.ui.require("sap/ui/core/Core").getConfiguration(),i=window.sap.ui.require("sap/ui/core/LocaleData");return {animationMode:e.getAnimationMode(),language:e.getLanguage(),theme:e.getTheme(),themeRoot:e.getThemeRoot(),rtl:e.getRTL(),timezone:e.getTimezone(),calendarType:e.getCalendarType(),formatSettings:{firstDayOfWeek:i?i.getInstance(e.getLocale()).getFirstDayOfWeek():void 0,legacyDateCalendarCustomizing:e.getFormatSettings().getLegacyDateCalendarCustomizing()}}}static getLocaleDataObject(){if(!a.isOpenUI5Detected())return;const t=window.sap.ui.require("sap/ui/core/LocaleData");if(a.isAtLeastVersion116()){const n=window.sap.ui.require("sap/base/i18n/Localization");return t.getInstance(n.getLanguageTag())._get()}const i=window.sap.ui.require("sap/ui/core/Core").getConfiguration();return t.getInstance(i.getLocale())._get()}static _listenForThemeChange(){if(a.isAtLeastVersion116()){const t=window.sap.ui.require("sap/ui/core/Theming");t.attachApplied(()=>{Theme.u$1(t.getTheme());});}else {const t=window.sap.ui.require("sap/ui/core/Core"),e=t.getConfiguration();t.attachThemeChanged(()=>{Theme.u$1(e.getTheme());});}}static attachListeners(){a.isOpenUI5Detected()&&a._listenForThemeChange();}static cssVariablesLoaded(){if(!a.isOpenUI5Detected())return;const t=[...document.head.children].find(e=>e.id==="sap-ui-theme-sap.ui.core");return t?!!t.href.match(/\/css(-|_)variables\.css/)||!!t.href.match(/\/library\.css/):false}static addOpenedPopup(t){l$9(t);}static removeOpenedPopup(t){u$6(t);}static getTopmostPopup(){return g$4()}};Theme.s("OpenUI5Support",a$a);
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -23,7 +23,7 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
24
|
*/const o$7=Symbol.for(""),e$8=t=>{var r,e;if((null===(r=t)||void 0===r?void 0:r.r)===o$7)return null===(e=t)||void 0===e?void 0:e._$litStatic$},i$8=t=>({_$litStatic$:t,r:o$7}),a$8=new Map,s$d=t=>(r,...o)=>{const i=o.length;let l,s;const n=[],u=[];let c,v=0,$=false;for(;v<i;){for(c=r[v];v<i&&void 0!==(s=o[v],l=e$8(s));)c+=l+r[++v],$=true;u.push(s),n.push(c),v++;}if(v===i&&n.push(r[i]),$){const t=n.join("$$lit$$");void 0===(r=a$8.get(t))&&(n.raw=n,a$8.set(t,r=n)),o=u;}return t(r,...o)},n$e=s$d($),u$4=s$d(y$3);
|
|
25
25
|
|
|
26
|
-
let t$6 = class t{static{this.html=n$e;}static{this.svg=u$4;}static{this.unsafeStatic=i$8;}};
|
|
26
|
+
let t$6 = class t{static{this.html=n$e;}static{this.svg=u$4;}static{this.unsafeStatic=i$8;}};Theme.s("LitStatic",t$6);
|
|
27
27
|
|
|
28
28
|
// @ts-nocheck
|
|
29
29
|
const loadThemeProperties$2 = async (themeName) => {
|
|
@@ -47,7 +47,7 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
47
47
|
return data;
|
|
48
48
|
};
|
|
49
49
|
["sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_hcb", "sap_horizon_hcw"]
|
|
50
|
-
.forEach(themeName =>
|
|
50
|
+
.forEach(themeName => Theme.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "t" + "h" + "e" + "m" + "i" + "n" + "g", themeName, loadAndCheck$2));
|
|
51
51
|
|
|
52
52
|
// @ts-nocheck
|
|
53
53
|
const loadThemeProperties$1 = async (themeName) => {
|
|
@@ -71,7 +71,7 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
71
71
|
return data;
|
|
72
72
|
};
|
|
73
73
|
["sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_hcb", "sap_horizon_hcw"]
|
|
74
|
-
.forEach(themeName =>
|
|
74
|
+
.forEach(themeName => Theme.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s", themeName, loadAndCheck$1));
|
|
75
75
|
|
|
76
76
|
// @ts-nocheck
|
|
77
77
|
const importMessageBundle$1 = async (localeId) => {
|
|
@@ -214,7 +214,7 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
214
214
|
return data;
|
|
215
215
|
};
|
|
216
216
|
["sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_hcb", "sap_horizon_hcw"]
|
|
217
|
-
.forEach(themeName =>
|
|
217
|
+
.forEach(themeName => Theme.p("@" + "u" + "i" + "5" + "/" + "w" + "e" + "b" + "c" + "o" + "m" + "p" + "o" + "n" + "e" + "n" + "t" + "s" + "-" + "f" + "i" + "o" + "r" + "i", themeName, loadAndCheck));
|
|
218
218
|
|
|
219
219
|
// @ts-nocheck
|
|
220
220
|
const importMessageBundle = async (localeId) => {
|
|
@@ -345,23 +345,23 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
345
345
|
|
|
346
346
|
const u$3=o=>{let i,a,r,d,n,s,p,g,e,l,y,m;const h=f$4({beforeStart:()=>{const t=o;i=getComputedStyle(t),a=parseFloat(i.paddingTop),r=parseFloat(i.paddingBottom),d=parseFloat(i.marginTop),n=parseFloat(i.marginBottom),s=parseFloat(i.height),p=t.style.overflow,g=t.style.paddingTop,e=t.style.paddingBottom,l=t.style.marginTop,y=t.style.marginBottom,m=t.style.height,t.style.overflow="hidden";},duration:v$2,element:o,advance:t=>{o.style.paddingTop=`${a-a*t}px`,o.style.paddingBottom=`${r-r*t}px`,o.style.marginTop=`${d-d*t}px`,o.style.marginBottom=`${n-n*t}px`,o.style.height=`${s-s*t}px`;}});return h.promise().then(t=>{t instanceof Error||(o.style.overflow=p,o.style.paddingTop=g,o.style.paddingBottom=e,o.style.marginTop=l,o.style.marginBottom=y,o.style.height=m,o.style.display="none");}),h};
|
|
347
347
|
|
|
348
|
-
let n$c;
|
|
348
|
+
let n$c;Theme.i$2(()=>{n$c=void 0;});const d$3=()=>(n$c===void 0&&(n$c=Theme.C$1()),n$c),m$6=o=>{Object.values(Theme.u).includes(o)&&(n$c=o);};
|
|
349
349
|
|
|
350
350
|
var s$c=(i=>(i.Gregorian="Gregorian",i.Islamic="Islamic",i.Japanese="Japanese",i.Buddhist="Buddhist",i.Persian="Persian",i))(s$c||{});
|
|
351
351
|
|
|
352
|
-
let n$b;
|
|
352
|
+
let n$b;Theme.i$2(()=>{n$b=void 0;});const i$7=()=>(n$b===void 0&&(n$b=Theme.D()),n$b&&n$b in s$c?n$b:s$c.Gregorian);
|
|
353
353
|
|
|
354
|
-
let t$4;let a$6 = class a{static getLegacyDateCalendarCustomizing(){return t$4===void 0&&(t$4=
|
|
354
|
+
let t$4;let a$6 = class a{static getLegacyDateCalendarCustomizing(){return t$4===void 0&&(t$4=Theme.M()),t$4.legacyDateCalendarCustomizing||[]}};Theme.s("LegacyDateFormats",a$6);
|
|
355
355
|
|
|
356
|
-
let e$7;
|
|
356
|
+
let e$7;Theme.i$2(()=>{e$7=void 0;});const n$a=()=>(e$7===void 0&&(e$7=Theme.M()),e$7.firstDayOfWeek),i$6=Theme.n$1("LegacyDateFormats"),m$5=i$6?a$6.getLegacyDateCalendarCustomizing:()=>[];
|
|
357
357
|
|
|
358
358
|
var s$b = ":host{justify-content:center;align-items:center;display:flex;color:var(--sapList_TextColor);background-color:var(--sapList_Background);font-family:var(--sapFontFamily);height:var(--sapElement_LineHeight);border-bottom:var(--sapList_BorderWidth) solid var(--sapList_BorderColor);opacity:.8;position:absolute;padding:0 1rem;top:-1000px;left:-1000px}";
|
|
359
359
|
|
|
360
360
|
const e$6={key:"DRAG_DROP_MULTIPLE_TEXT",defaultText:"{0} items"};
|
|
361
361
|
|
|
362
|
-
const l$7=2;let a$5=null;const g$2=e=>{a$5=e;},d$2=()=>{a$5=null;},p$3=()=>a$5,u$2=async e=>{const t=document.createElement("div"),n=await Icons.f
|
|
362
|
+
const l$7=2;let a$5=null;const g$2=e=>{a$5=e;},d$2=()=>{a$5=null;},p$3=()=>a$5,u$2=async e=>{const t=document.createElement("div"),n=await Icons.f("@ui5/webcomponents-base"),r=t.attachShadow({mode:"open"}),o=new CSSStyleSheet;return o.replaceSync(s$b),r.adoptedStyleSheets=[o],r.textContent=n.getText(e$6,e),t},m$4=async(e,t)=>{if(e<l$7){console.warn(`Cannot start multiple drag with count ${e}. Minimum is ${l$7}.`);return}if(!t.dataTransfer)return;const n=await u$2(e);document.body.appendChild(n),t.dataTransfer.setDragImage(n,0,0),requestAnimationFrame(()=>{n.remove();});},D$2={setDraggedElement:g$2,clearDraggedElement:d$2,getDraggedElement:p$3,startMultipleDrag:m$4};
|
|
363
363
|
|
|
364
|
-
const c$5=["value-changed","click"];let e$5;
|
|
364
|
+
const c$5=["value-changed","click"];let e$5;Theme.i$2(()=>{e$5=void 0;});const s$a=t=>c$5.includes(t),l$6=t=>{const n=o$6();return !(typeof n!="boolean"&&n.events&&n.events.includes&&n.events.includes(t))},o$6=()=>(e$5===void 0&&(e$5=Theme.F()),e$5),f$3=t=>{e$5=t;},a$4=t=>{const n=o$6();return s$a(t)?false:n===true?true:!l$6(t)};
|
|
365
365
|
|
|
366
366
|
const m$3=(a={})=>e=>{if(Object.prototype.hasOwnProperty.call(e,"metadata")||(e.metadata={}),typeof a=="string"){e.metadata.tag=a;return}const{tag:i,languageAware:o,themeAware:r,cldr:s,fastNavigation:l,formAssociated:n,shadowRootOptions:d}=a;e.metadata.tag=i,o&&(e.metadata.languageAware=o),s&&(e.metadata.cldr=s),r&&(e.metadata.themeAware=r),l&&(e.metadata.fastNavigation=l),n&&(e.metadata.formAssociated=n),d&&(e.metadata.shadowRootOptions=d),["renderer","template","styles","dependencies"].forEach(t=>{a[t]&&Object.defineProperty(e,t,{get:()=>a[t]});});};
|
|
367
367
|
|
|
@@ -383,13 +383,13 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
383
383
|
|
|
384
384
|
const o$4=t=>{if(!(t instanceof HTMLElement))return "default";const e=t.getAttribute("slot");if(e){const r=e.match(/^(.+?)-\d+$/);return r?r[1]:e}return "default"},n$7=t=>t instanceof HTMLSlotElement?t.assignedNodes({flatten:true}).filter(e=>e instanceof HTMLElement):[t],s$6=t=>t.reduce((e,r)=>e.concat(n$7(r)),[]);
|
|
385
385
|
|
|
386
|
-
let p$1 = class p{constructor(t){this.metadata=t;}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,"_initialState"))return this._initialState;const t={};if(this.slotsAreManaged()){const o=this.getSlots();for(const[e,s]of Object.entries(o)){const n=s.propertyName||e;t[n]=[],t[c$4(n)]=t[n];}}return this._initialState=t,t}static validateSlotValue(t,a){return g$1(t,a)}getPureTag(){return this.metadata.tag||""}getTag(){const t=this.metadata.tag;if(!t)return "";const a=
|
|
386
|
+
let p$1 = class p{constructor(t){this.metadata=t;}getInitialState(){if(Object.prototype.hasOwnProperty.call(this,"_initialState"))return this._initialState;const t={};if(this.slotsAreManaged()){const o=this.getSlots();for(const[e,s]of Object.entries(o)){const n=s.propertyName||e;t[n]=[],t[c$4(n)]=t[n];}}return this._initialState=t,t}static validateSlotValue(t,a){return g$1(t,a)}getPureTag(){return this.metadata.tag||""}getTag(){const t=this.metadata.tag;if(!t)return "";const a=Theme.g$1(t);return a?`${t}-${a}`:t}hasAttribute(t){const a=this.getProperties()[t];return a.type!==Object&&a.type!==Array&&!a.noAttribute}getPropertiesList(){return Object.keys(this.getProperties())}getAttributesList(){return this.getPropertiesList().filter(this.hasAttribute.bind(this)).map(l$4)}canSlotText(){return this.getSlots().default?.type===Node}hasSlots(){return !!Object.entries(this.getSlots()).length}hasIndividualSlots(){return this.slotsAreManaged()&&Object.values(this.getSlots()).some(t=>t.individualSlots)}slotsAreManaged(){return !!this.metadata.managedSlots}supportsF6FastNavigation(){return !!this.metadata.fastNavigation}getProperties(){return this.metadata.properties||(this.metadata.properties={}),this.metadata.properties}getEvents(){return this.metadata.events||(this.metadata.events={}),this.metadata.events}getSlots(){return this.metadata.slots||(this.metadata.slots={}),this.metadata.slots}isLanguageAware(){return !!this.metadata.languageAware}isThemeAware(){return !!this.metadata.themeAware}needsCLDR(){return !!this.metadata.cldr}getShadowRootOptions(){return this.metadata.shadowRootOptions||{}}isFormAssociated(){return !!this.metadata.formAssociated}shouldInvalidateOnChildChange(t,a,o){const e=this.getSlots()[t].invalidateOnChildChange;if(e===void 0)return false;if(typeof e=="boolean")return e;if(typeof e=="object"){if(a==="property"){if(e.properties===void 0)return false;if(typeof e.properties=="boolean")return e.properties;if(Array.isArray(e.properties))return e.properties.includes(o);throw new Error("Wrong format for invalidateOnChildChange.properties: boolean or array is expected")}if(a==="slot"){if(e.slots===void 0)return false;if(typeof e.slots=="boolean")return e.slots;if(Array.isArray(e.slots))return e.slots.includes(o);throw new Error("Wrong format for invalidateOnChildChange.slots: boolean or array is expected")}}throw new Error("Wrong format for invalidateOnChildChange: boolean or object is expected")}getI18n(){return this.metadata.i18n||(this.metadata.i18n={}),this.metadata.i18n}};const g$1=(r,t)=>(r&&n$7(r).forEach(a=>{if(!(a instanceof t.type))throw new Error(`The element is not of type ${t.type.toString()}`)}),r);
|
|
387
387
|
|
|
388
|
-
const r$3=()=>
|
|
388
|
+
const r$3=()=>Theme.m("CustomStyle.eventProvider",new Theme.i$1),n$6="CustomCSSChange",i$4=t=>{r$3().attachEvent(n$6,t);},u$1=t=>r$3().fireEvent(n$6,t),c$3=()=>Theme.m("CustomStyle.customCSSFor",{});let s$5;i$4(t=>{s$5||Theme.C({tag:t});});const g=(t,e)=>{const o=c$3();o[t]||(o[t]=[]),o[t].push(e),s$5=true;try{u$1(t);}finally{s$5=false;}return Theme.C({tag:t})},l$3=t=>{const e=c$3();return e[t]?e[t].join(""):""};
|
|
389
389
|
|
|
390
390
|
const e$3=t=>Array.isArray(t)?t.filter(r=>!!r).flat(10).join(" "):t;
|
|
391
391
|
|
|
392
|
-
const e$2=new Map;i$4(t=>{e$2.delete(`${t}_normal`);});const y$1=t=>{const o=t.getMetadata().getTag(),n=`${o}_normal`,s=
|
|
392
|
+
const e$2=new Map;i$4(t=>{e$2.delete(`${t}_normal`);});const y$1=t=>{const o=t.getMetadata().getTag(),n=`${o}_normal`,s=Theme.n$1("OpenUI5Enablement");if(!e$2.has(n)){let l="";s&&(l=e$3(s.getBusyIndicatorStyles()));const a=l$3(o)||"",m=`${e$3(t.styles)} ${a} ${l}`;e$2.set(n,m);}return e$2.get(n)};
|
|
393
393
|
|
|
394
394
|
const e$1=new Map;i$4(t=>{e$1.delete(`${t}_normal`);});const s$4=t=>{const n=`${t.getMetadata().getTag()}_normal`;if(!e$1.has(n)){const a=y$1(t),o=new CSSStyleSheet;o.replaceSync(a),e$1.set(n,[o]);}return e$1.get(n)};
|
|
395
395
|
|
|
@@ -409,19 +409,19 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
409
409
|
|
|
410
410
|
const o$2=t=>{s$1(t)&&e(t);},e=t=>{if(t._internals?.form){if(n$2(t),!t.name){t._internals?.setFormValue(null);return}t._internals.setFormValue(t.formFormattedValue);}},n$2=async t=>{if(t._internals?.form)if(t.formValidity&&Object.keys(t.formValidity).some(r=>r)){const r=await t.formElementAnchor?.();t._internals.setValidity(t.formValidity,t.formValidityMessage,r);}else t._internals.setValidity({});},i$3=t=>{t._internals?.form?.requestSubmit();},m$1=t=>{t._internals?.form?.reset();},s$1=t=>"formFormattedValue"in t&&"name"in t;
|
|
411
411
|
|
|
412
|
-
const f$2=new Map,s=new Map,i$2=new Map,D=new Set;let d=false;const O$1={iw:"he",ji:"yi",in:"id"},l$2=t=>{d||(console.warn(`[LocaleData] Supported locale "${t}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),d=true);},R$1=(t,e,n)=>{t=t&&O$1[t]||t,t==="no"&&(t="nb"),t==="zh"&&!e&&(n==="Hans"?e="CN":n==="Hant"&&(e="TW")),(t==="sh"||t==="sr"&&n==="Latn")&&(t="sr",e="Latn");let r=`${t}_${e}`;return
|
|
412
|
+
const f$2=new Map,s=new Map,i$2=new Map,D=new Set;let d=false;const O$1={iw:"he",ji:"yi",in:"id"},l$2=t=>{d||(console.warn(`[LocaleData] Supported locale "${t}" not configured, import the "Assets.js" module from the webcomponents package you are using.`),d=true);},R$1=(t,e,n)=>{t=t&&O$1[t]||t,t==="no"&&(t="nb"),t==="zh"&&!e&&(n==="Hans"?e="CN":n==="Hant"&&(e="TW")),(t==="sh"||t==="sr"&&n==="Latn")&&(t="sr",e="Latn");let r=`${t}_${e}`;return Theme.l.includes(r)?s.has(r)?r:(l$2(r),Theme.r$1):(r=t,Theme.l.includes(r)?s.has(r)?r:(l$2(r),Theme.r$1):Theme.r$1)},m=(t,e)=>{f$2.set(t,e);},_=t=>{if(!i$2.get(t)){const e=s.get(t);if(!e)throw new Error(`CLDR data for locale ${t} is not loaded!`);i$2.set(t,e(t));}return i$2.get(t)},u=async(t,e,n)=>{const r=R$1(t,e,n),p=Theme.n$1("OpenUI5Support");if(p){const o=p.getLocaleDataObject();if(o){m(r,o);return}}try{const o=await _(r);m(r,o);}catch(o){const c=o;D.has(c.message)||(D.add(c.message),console.error(c.message));}},C=(t,e)=>{s.set(t,e);};C("en",async()=>(await fetch("https://sdk.openui5.org/1.120.17/resources/sap/ui/core/cldr/en.json")).json()),Icons.t(()=>{const t=Icons.s();return u(t.getLanguage(),t.getRegion(),t.getScript())});
|
|
413
413
|
|
|
414
|
-
let it=0;const R=new Map,I=new Map,O={fromAttribute(c,f){return f===Boolean?c!==null:f===Number?c===null?void 0:parseFloat(c):c},toAttribute(c,f){return f===Boolean?c?"":null:f===Object||f===Array||c==null?null:String(c)}};function y(c){this._suppressInvalidation||this.constructor.getMetadata().isLanguageAware()&&Icons.s$2()||(this.onInvalidation(c),this._changedState.push(c),Icons.l$1(this),this._invalidationEventProvider.fireEvent("invalidate",{...c,target:this}));}function at(c,f){do{const t=Object.getOwnPropertyDescriptor(c,f);if(t)return t;c=Object.getPrototypeOf(c);}while(c&&c!==HTMLElement.prototype)}let b$1 = class b extends HTMLElement{constructor(){super();this.__shouldHydrate=false;this._rendered=false;const t=this.constructor;this._changedState=[],this._suppressInvalidation=true,this._inDOM=false,this._fullyConnected=false,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._invalidationEventProvider=new Icons.i$2,this._componentStateFinalizedEventProvider=new Icons.i$2;let e;this._domRefReadyPromise=new Promise(n=>{e=n;}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._slotsAssignedNodes=new WeakMap,this._state={...t.getMetadata().getInitialState()},this.initializedProperties=new Map,this.constructor.getMetadata().getPropertiesList().forEach(n=>{if(this.hasOwnProperty(n)){const o=this[n];this.initializedProperties.set(n,o);}}),this._internals=this.attachInternals(),this._initShadowRoot();}_initShadowRoot(){const t=this.constructor;if(t._needsShadowDOM()){const e={mode:"open"};this.shadowRoot?this.__shouldHydrate=true:this.attachShadow({...e,...t.getMetadata().getShadowRootOptions()}),t.getMetadata().slotsAreManaged()&&this.shadowRoot.addEventListener("slotchange",this._onShadowRootSlotChange.bind(this));}}_onShadowRootSlotChange(t){t.target?.getRootNode()===this.shadowRoot&&this._processChildren();}get _id(){return this.__id||(this.__id=`ui5wc_${++it}`),this.__id}render(){const t=this.constructor.template;return n$3(t,this)}async connectedCallback(){const t=this.constructor;this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&!this.hasAttribute("data-sap-ui-fastnavgroup")&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=true,e&&(this._startObservingDOMChildren(),await this._processChildren()),t.asyncFinished||await t.definePromise,this._inDOM&&(Icons.c$2(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=true,this.onEnterDOM());}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=false,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=false),this._domRefReadyPromise._deferredResolve(),Icons.h$1(this);}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const e=this.constructor.getMetadata();if(!e.hasSlots())return;const n=e.canSlotText(),o={childList:true,subtree:n,characterData:n};n$5(this,this._processChildren.bind(this),o);}_stopObservingDOMChildren(){b$2(this);}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots();}async _updateSlots(){const t=this.constructor,e$1=t.getMetadata().getSlots(),s=t.getMetadata().canSlotText(),n=Array.from(s?this.childNodes:this.children),o=new Map,a=new Map;for(const[l,u]of Object.entries(e$1)){const d=u.propertyName||l;a.set(d,l),o.set(d,[...this._state[d]]),this._clearSlot(l,u);}const r=new Map,i=new Map,h=n.map(async(l,u)=>{const d=o$4(l),g=e$1[d];if(g===void 0){if(d!=="default"){const p=Object.keys(e$1).join(", ");console.warn(`Unknown slotName: ${d}, ignoring`,l,`Valid values are: ${p}`);}return}if(g.individualSlots){const p=(r.get(d)||0)+1;r.set(d,p),l._individualSlot=`${d}-${p}`;}if(l instanceof HTMLElement){const p=l.localName;if(p.includes("-")&&!o$3(p)){if(!customElements.get(p)){const L=customElements.whenDefined(p);let E=R.get(p);E||(E=new Promise(U=>setTimeout(U,1e3)),R.set(p,E)),await Promise.race([L,E]);}customElements.upgrade(l);}}if(l=t.getMetadata().constructor.validateSlotValue(l,g),v$1(l)&&g.invalidateOnChildChange){const p=this._getChildChangeListener(d);l.attachInvalidate.call(l,p);}l instanceof HTMLSlotElement&&this._attachSlotChange(l,d,!!g.invalidateOnChildChange);const C=g.propertyName||d;i.has(C)?i.get(C).push({child:l,idx:u}):i.set(C,[{child:l,idx:u}]);});await Promise.all(h),i.forEach((l,u)=>{this._state[u]=l.sort((d,g)=>d.idx-g.idx).map(d=>d.child),this._state[c$4(u)]=this._state[u];});let _=false;for(const[l,u]of Object.entries(e$1)){const d=u.propertyName||l;n$4(o.get(d),this._state[d])||(y.call(this,{type:"slot",name:a.get(d),reason:"children"}),_=true,t.getMetadata().isFormAssociated()&&e(this));}_||y.call(this,{type:"slot",name:"default",reason:"textcontent"});}_clearSlot(t,e){const s=e.propertyName||t;this._state[s].forEach(o=>{if(v$1(o)){const a=this._getChildChangeListener(t);o.detachInvalidate.call(o,a);}o instanceof HTMLSlotElement&&this._detachSlotChange(o,t);}),this._state[s]=[],this._state[c$4(s)]=this._state[s];}attachInvalidate(t){this._invalidationEventProvider.attachEvent("invalidate",t);}detachInvalidate(t){this._invalidationEventProvider.detachEvent("invalidate",t);}_onChildChange(t,e){this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)&&y.call(this,{type:"slot",name:t,reason:"childchange",child:e.target});}attributeChangedCallback(t,e,s){let n;if(this._doNotSyncAttributes.has(t))return;const o=this.constructor.getMetadata().getProperties(),a=t.replace(/^ui5-/,""),r=c$4(a);if(o.hasOwnProperty(r)){const i=o[r];n=(i.converter??O).fromAttribute(s,i.type),this[r]=n;}}formAssociatedCallback(){this.constructor.getMetadata().isFormAssociated()&&o$2(this);}static get formAssociated(){return this.getMetadata().isFormAssociated()}_updateAttribute(t,e){const s=this.constructor;if(!s.getMetadata().hasAttribute(t))return;const o=s.getMetadata().getProperties()[t],a=l$4(t),i=(o.converter||O).toAttribute(e,o.type);this._doNotSyncAttributes.add(a),i==null?this.removeAttribute(a):this.setAttribute(a,i),this._doNotSyncAttributes.delete(a);}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e,s){const n=this._getSlotChangeListener(e);t.addEventListener("slotchange",o=>{if(n.call(t,o),s){const a=this._slotsAssignedNodes.get(t);a&&a.forEach(i=>{if(v$1(i)){const h=this._getChildChangeListener(e);i.detachInvalidate.call(i,h);}});const r=s$6([t]);this._slotsAssignedNodes.set(t,r),r.forEach(i=>{if(v$1(i)){const h=this._getChildChangeListener(e);i.attachInvalidate.call(i,h);}});}});}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e));}_onSlotChange(t){y.call(this,{type:"slot",name:t,reason:"slotchange"});}onInvalidation(t){}updateAttributes(){const e=this.constructor.getMetadata().getProperties();for(const[s,n]of Object.entries(e))this._updateAttribute(s,this[s]);}_render(){const t=this.constructor,e=t.getMetadata().hasIndividualSlots();this.initializedProperties.size>0&&(Array.from(this.initializedProperties.entries()).forEach(([s,n])=>{delete this[s],this[s]=n;}),this.initializedProperties.clear()),this._suppressInvalidation=true;try{this.onBeforeRendering(),this._rendered||this.updateAttributes(),this._componentStateFinalizedEventProvider.fireEvent("componentStateFinalized");}finally{this._suppressInvalidation=false;}this._changedState=[],t._needsShadowDOM()&&s$3(this),this._rendered=true,e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering();}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot);});}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!(!this.shadowRoot||this.shadowRoot.children.length===0))return this.shadowRoot.children[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e===this||!this.isConnected?HTMLElement.prototype.focus.call(this,t):e&&typeof e.focus=="function"&&e.focus(t);}fireEvent(t,e,s=false,n=true){const o=this._fireEvent(t,e,s,n),a=C$1(t);return a!==t?o&&this._fireEvent(a,e,s,n):o}fireDecoratorEvent(t,e){const s=this.getEventData(t),n=s?s.cancelable:false,o=s?s.bubbles:false,a=this._fireEvent(t,e,n,o),r=C$1(t);return r!==t?a&&this._fireEvent(r,e,n,o):a}_fireEvent(t,e,s=false,n=true){const o=new CustomEvent(`ui5-${t}`,{detail:e,composed:false,bubbles:n,cancelable:s}),a=this.dispatchEvent(o);if(a$4(t))return a;const r=new CustomEvent(t,{detail:e,composed:false,bubbles:n,cancelable:s});return this.dispatchEvent(r)&&a}getEventData(t){return this.constructor.getMetadata().getEvents()[t]}getSlottedNodes(t){return s$6(this[t])}attachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.attachEvent("componentStateFinalized",t);}detachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.detachEvent("componentStateFinalized",t);}get effectiveDir(){return Icons.n$2(this.constructor),r$1(this)}get isUI5Element(){return true}get isUI5AbstractElement(){return !this.constructor._needsShadowDOM()}get classes(){return {}}get accessibilityInfo(){}static get observedAttributes(){return this.getMetadata().getAttributesList()}static get tagsToScope(){const t=this.getMetadata().getPureTag(),e=this.getUniqueDependencies().map(s=>s.getMetadata().getPureTag()).filter(Icons.i$3);return Icons.i$3(t)&&e.push(t),e}static _needsShadowDOM(){return !!this.template||Object.prototype.hasOwnProperty.call(this.prototype,"render")}static _generateAccessors(){const t=this.prototype,e$1=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[n,o]of Object.entries(s)){r(n)||console.warn(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);const a=at(t,n);let r$1;a?.set&&(r$1=a.set);let i;a?.get&&(i=a.get),Object.defineProperty(t,n,{get(){return i?i.call(this):this._state[n]},set(h){const _=this.constructor,l=i?i.call(this):this._state[n];if(l!==h){if(r$1?r$1.call(this,h):this._state[n]=h,y.call(this,{type:"property",name:n,newValue:h,oldValue:l}),this._rendered){const d=i?i.call(this):this._state[n];this._updateAttribute(n,d);}_.getMetadata().isFormAssociated()&&e(this);}}});}if(e$1){const n=this.getMetadata().getSlots();for(const[o,a]of Object.entries(n)){r(o)||console.warn(`"${o}" is not a valid property name. Use a name that does not collide with DOM APIs`);const r$1=a.propertyName||o,i={get(){return this._state[r$1]!==void 0?this._state[r$1]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}};Object.defineProperty(t,r$1,i),r$1!==c$4(r$1)&&Object.defineProperty(t,c$4(r$1),i);}}}static{this.metadata={};}static{this.styles="";}static get dependencies(){return []}static cacheUniqueDependencies(){const t=this.dependencies.filter((e,s,n)=>n.indexOf(e)===s);I.set(this,t);}static getUniqueDependencies(){return I.has(this)||this.cacheUniqueDependencies(),I.get(this)||[]}static async onDefine(){return Promise.resolve()}static fetchI18nBundles(){return Promise.all(Object.entries(this.getMetadata().getI18n()).map(t=>{const{bundleName:e}=t[1];return Icons.f$2(e)}))}static fetchCLDR(){return this.getMetadata().needsCLDR()?u(Icons.s$1().getLanguage(),Icons.s$1().getRegion(),Icons.s$1().getScript()):Promise.resolve()}static{this.i18nBundleStorage={};}static get i18nBundles(){return this.i18nBundleStorage}static define(){const t=async()=>{await Icons.b$1();const o=await Promise.all([this.fetchI18nBundles(),this.fetchCLDR(),this.onDefine()]),[a]=o;Object.entries(this.getMetadata().getI18n()).forEach((r,i)=>{const h=r[1].bundleName;this.i18nBundleStorage[h]=a[i];}),this.asyncFinished=true;};this.definePromise=t();const e=this.getMetadata().getTag(),s=Icons.w$1(e),n=customElements.get(e);return n&&!s?Icons.$$1(e):n||(this._generateAccessors(),Icons.h$2(e),customElements.define(e,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==b;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=Icons.e({},...t);return this._metadata=new p$1(s),this._metadata}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}};const v$1=c=>"isUI5Element"in c;
|
|
414
|
+
let it=0;const R=new Map,I=new Map,O={fromAttribute(c,f){return f===Boolean?c!==null:f===Number?c===null?void 0:parseFloat(c):c},toAttribute(c,f){return f===Boolean?c?"":null:f===Object||f===Array||c==null?null:String(c)}};function y(c){this._suppressInvalidation||this.constructor.getMetadata().isLanguageAware()&&Icons.s$1()||(this.onInvalidation(c),this._changedState.push(c),Theme.l$1(this),this._invalidationEventProvider.fireEvent("invalidate",{...c,target:this}));}function at(c,f){do{const t=Object.getOwnPropertyDescriptor(c,f);if(t)return t;c=Object.getPrototypeOf(c);}while(c&&c!==HTMLElement.prototype)}let b$1 = class b extends HTMLElement{constructor(){super();this.__shouldHydrate=false;this._rendered=false;const t=this.constructor;this._changedState=[],this._suppressInvalidation=true,this._inDOM=false,this._fullyConnected=false,this._childChangeListeners=new Map,this._slotChangeListeners=new Map,this._invalidationEventProvider=new Theme.i$1,this._componentStateFinalizedEventProvider=new Theme.i$1;let e;this._domRefReadyPromise=new Promise(n=>{e=n;}),this._domRefReadyPromise._deferredResolve=e,this._doNotSyncAttributes=new Set,this._slotsAssignedNodes=new WeakMap,this._state={...t.getMetadata().getInitialState()},this.initializedProperties=new Map,this.constructor.getMetadata().getPropertiesList().forEach(n=>{if(this.hasOwnProperty(n)){const o=this[n];this.initializedProperties.set(n,o);}}),this._internals=this.attachInternals(),this._initShadowRoot();}_initShadowRoot(){const t=this.constructor;if(t._needsShadowDOM()){const e={mode:"open"};this.shadowRoot?this.__shouldHydrate=true:this.attachShadow({...e,...t.getMetadata().getShadowRootOptions()}),t.getMetadata().slotsAreManaged()&&this.shadowRoot.addEventListener("slotchange",this._onShadowRootSlotChange.bind(this));}}_onShadowRootSlotChange(t){t.target?.getRootNode()===this.shadowRoot&&this._processChildren();}get _id(){return this.__id||(this.__id=`ui5wc_${++it}`),this.__id}render(){const t=this.constructor.template;return n$3(t,this)}async connectedCallback(){const t=this.constructor;this.setAttribute(t.getMetadata().getPureTag(),""),t.getMetadata().supportsF6FastNavigation()&&!this.hasAttribute("data-sap-ui-fastnavgroup")&&this.setAttribute("data-sap-ui-fastnavgroup","true");const e=t.getMetadata().slotsAreManaged();this._inDOM=true,e&&(this._startObservingDOMChildren(),await this._processChildren()),t.asyncFinished||await t.definePromise,this._inDOM&&(Theme.c$2(this),this._domRefReadyPromise._deferredResolve(),this._fullyConnected=true,this.onEnterDOM());}disconnectedCallback(){const e=this.constructor.getMetadata().slotsAreManaged();this._inDOM=false,e&&this._stopObservingDOMChildren(),this._fullyConnected&&(this.onExitDOM(),this._fullyConnected=false),this._domRefReadyPromise._deferredResolve(),Theme.h$2(this);}onBeforeRendering(){}onAfterRendering(){}onEnterDOM(){}onExitDOM(){}_startObservingDOMChildren(){const e=this.constructor.getMetadata();if(!e.hasSlots())return;const n=e.canSlotText(),o={childList:true,subtree:n,characterData:n};n$5(this,this._processChildren.bind(this),o);}_stopObservingDOMChildren(){b$2(this);}async _processChildren(){this.constructor.getMetadata().hasSlots()&&await this._updateSlots();}async _updateSlots(){const t=this.constructor,e$1=t.getMetadata().getSlots(),s=t.getMetadata().canSlotText(),n=Array.from(s?this.childNodes:this.children),o=new Map,a=new Map;for(const[l,u]of Object.entries(e$1)){const d=u.propertyName||l;a.set(d,l),o.set(d,[...this._state[d]]),this._clearSlot(l,u);}const r=new Map,i=new Map,h=n.map(async(l,u)=>{const d=o$4(l),g=e$1[d];if(g===void 0){if(d!=="default"){const p=Object.keys(e$1).join(", ");console.warn(`Unknown slotName: ${d}, ignoring`,l,`Valid values are: ${p}`);}return}if(g.individualSlots){const p=(r.get(d)||0)+1;r.set(d,p),l._individualSlot=`${d}-${p}`;}if(l instanceof HTMLElement){const p=l.localName;if(p.includes("-")&&!o$3(p)){if(!customElements.get(p)){const L=customElements.whenDefined(p);let E=R.get(p);E||(E=new Promise(U=>setTimeout(U,1e3)),R.set(p,E)),await Promise.race([L,E]);}customElements.upgrade(l);}}if(l=t.getMetadata().constructor.validateSlotValue(l,g),v$1(l)&&g.invalidateOnChildChange){const p=this._getChildChangeListener(d);l.attachInvalidate.call(l,p);}l instanceof HTMLSlotElement&&this._attachSlotChange(l,d,!!g.invalidateOnChildChange);const C=g.propertyName||d;i.has(C)?i.get(C).push({child:l,idx:u}):i.set(C,[{child:l,idx:u}]);});await Promise.all(h),i.forEach((l,u)=>{this._state[u]=l.sort((d,g)=>d.idx-g.idx).map(d=>d.child),this._state[c$4(u)]=this._state[u];});let _=false;for(const[l,u]of Object.entries(e$1)){const d=u.propertyName||l;n$4(o.get(d),this._state[d])||(y.call(this,{type:"slot",name:a.get(d),reason:"children"}),_=true,t.getMetadata().isFormAssociated()&&e(this));}_||y.call(this,{type:"slot",name:"default",reason:"textcontent"});}_clearSlot(t,e){const s=e.propertyName||t;this._state[s].forEach(o=>{if(v$1(o)){const a=this._getChildChangeListener(t);o.detachInvalidate.call(o,a);}o instanceof HTMLSlotElement&&this._detachSlotChange(o,t);}),this._state[s]=[],this._state[c$4(s)]=this._state[s];}attachInvalidate(t){this._invalidationEventProvider.attachEvent("invalidate",t);}detachInvalidate(t){this._invalidationEventProvider.detachEvent("invalidate",t);}_onChildChange(t,e){this.constructor.getMetadata().shouldInvalidateOnChildChange(t,e.type,e.name)&&y.call(this,{type:"slot",name:t,reason:"childchange",child:e.target});}attributeChangedCallback(t,e,s){let n;if(this._doNotSyncAttributes.has(t))return;const o=this.constructor.getMetadata().getProperties(),a=t.replace(/^ui5-/,""),r=c$4(a);if(o.hasOwnProperty(r)){const i=o[r];n=(i.converter??O).fromAttribute(s,i.type),this[r]=n;}}formAssociatedCallback(){this.constructor.getMetadata().isFormAssociated()&&o$2(this);}static get formAssociated(){return this.getMetadata().isFormAssociated()}_updateAttribute(t,e){const s=this.constructor;if(!s.getMetadata().hasAttribute(t))return;const o=s.getMetadata().getProperties()[t],a=l$4(t),i=(o.converter||O).toAttribute(e,o.type);this._doNotSyncAttributes.add(a),i==null?this.removeAttribute(a):this.setAttribute(a,i),this._doNotSyncAttributes.delete(a);}_getChildChangeListener(t){return this._childChangeListeners.has(t)||this._childChangeListeners.set(t,this._onChildChange.bind(this,t)),this._childChangeListeners.get(t)}_getSlotChangeListener(t){return this._slotChangeListeners.has(t)||this._slotChangeListeners.set(t,this._onSlotChange.bind(this,t)),this._slotChangeListeners.get(t)}_attachSlotChange(t,e,s){const n=this._getSlotChangeListener(e);t.addEventListener("slotchange",o=>{if(n.call(t,o),s){const a=this._slotsAssignedNodes.get(t);a&&a.forEach(i=>{if(v$1(i)){const h=this._getChildChangeListener(e);i.detachInvalidate.call(i,h);}});const r=s$6([t]);this._slotsAssignedNodes.set(t,r),r.forEach(i=>{if(v$1(i)){const h=this._getChildChangeListener(e);i.attachInvalidate.call(i,h);}});}});}_detachSlotChange(t,e){t.removeEventListener("slotchange",this._getSlotChangeListener(e));}_onSlotChange(t){y.call(this,{type:"slot",name:t,reason:"slotchange"});}onInvalidation(t){}updateAttributes(){const e=this.constructor.getMetadata().getProperties();for(const[s,n]of Object.entries(e))this._updateAttribute(s,this[s]);}_render(){const t=this.constructor,e=t.getMetadata().hasIndividualSlots();this.initializedProperties.size>0&&(Array.from(this.initializedProperties.entries()).forEach(([s,n])=>{delete this[s],this[s]=n;}),this.initializedProperties.clear()),this._suppressInvalidation=true;try{this.onBeforeRendering(),this._rendered||this.updateAttributes(),this._componentStateFinalizedEventProvider.fireEvent("componentStateFinalized");}finally{this._suppressInvalidation=false;}this._changedState=[],t._needsShadowDOM()&&s$3(this),this._rendered=true,e&&this._assignIndividualSlotsToChildren(),this.onAfterRendering();}_assignIndividualSlotsToChildren(){Array.from(this.children).forEach(e=>{e._individualSlot&&e.setAttribute("slot",e._individualSlot);});}_waitForDomRef(){return this._domRefReadyPromise}getDomRef(){if(typeof this._getRealDomRef=="function")return this._getRealDomRef();if(!(!this.shadowRoot||this.shadowRoot.children.length===0))return this.shadowRoot.children[0]}getFocusDomRef(){const t=this.getDomRef();if(t)return t.querySelector("[data-sap-focus-ref]")||t}async getFocusDomRefAsync(){return await this._waitForDomRef(),this.getFocusDomRef()}async focus(t){await this._waitForDomRef();const e=this.getFocusDomRef();e===this||!this.isConnected?HTMLElement.prototype.focus.call(this,t):e&&typeof e.focus=="function"&&e.focus(t);}fireEvent(t,e,s=false,n=true){const o=this._fireEvent(t,e,s,n),a=C$1(t);return a!==t?o&&this._fireEvent(a,e,s,n):o}fireDecoratorEvent(t,e){const s=this.getEventData(t),n=s?s.cancelable:false,o=s?s.bubbles:false,a=this._fireEvent(t,e,n,o),r=C$1(t);return r!==t?a&&this._fireEvent(r,e,n,o):a}_fireEvent(t,e,s=false,n=true){const o=new CustomEvent(`ui5-${t}`,{detail:e,composed:false,bubbles:n,cancelable:s}),a=this.dispatchEvent(o);if(a$4(t))return a;const r=new CustomEvent(t,{detail:e,composed:false,bubbles:n,cancelable:s});return this.dispatchEvent(r)&&a}getEventData(t){return this.constructor.getMetadata().getEvents()[t]}getSlottedNodes(t){return s$6(this[t])}attachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.attachEvent("componentStateFinalized",t);}detachComponentStateFinalized(t){this._componentStateFinalizedEventProvider.detachEvent("componentStateFinalized",t);}get effectiveDir(){return Theme.n$2(this.constructor),r$1(this)}get isUI5Element(){return true}get isUI5AbstractElement(){return !this.constructor._needsShadowDOM()}get classes(){return {}}get accessibilityInfo(){}static get observedAttributes(){return this.getMetadata().getAttributesList()}static get tagsToScope(){const t=this.getMetadata().getPureTag(),e=this.getUniqueDependencies().map(s=>s.getMetadata().getPureTag()).filter(Theme.i$3);return Theme.i$3(t)&&e.push(t),e}static _needsShadowDOM(){return !!this.template||Object.prototype.hasOwnProperty.call(this.prototype,"render")}static _generateAccessors(){const t=this.prototype,e$1=this.getMetadata().slotsAreManaged(),s=this.getMetadata().getProperties();for(const[n,o]of Object.entries(s)){r(n)||console.warn(`"${n}" is not a valid property name. Use a name that does not collide with DOM APIs`);const a=at(t,n);let r$1;a?.set&&(r$1=a.set);let i;a?.get&&(i=a.get),Object.defineProperty(t,n,{get(){return i?i.call(this):this._state[n]},set(h){const _=this.constructor,l=i?i.call(this):this._state[n];if(l!==h){if(r$1?r$1.call(this,h):this._state[n]=h,y.call(this,{type:"property",name:n,newValue:h,oldValue:l}),this._rendered){const d=i?i.call(this):this._state[n];this._updateAttribute(n,d);}_.getMetadata().isFormAssociated()&&e(this);}}});}if(e$1){const n=this.getMetadata().getSlots();for(const[o,a]of Object.entries(n)){r(o)||console.warn(`"${o}" is not a valid property name. Use a name that does not collide with DOM APIs`);const r$1=a.propertyName||o,i={get(){return this._state[r$1]!==void 0?this._state[r$1]:[]},set(){throw new Error("Cannot set slot content directly, use the DOM APIs (appendChild, removeChild, etc...)")}};Object.defineProperty(t,r$1,i),r$1!==c$4(r$1)&&Object.defineProperty(t,c$4(r$1),i);}}}static{this.metadata={};}static{this.styles="";}static get dependencies(){return []}static cacheUniqueDependencies(){const t=this.dependencies.filter((e,s,n)=>n.indexOf(e)===s);I.set(this,t);}static getUniqueDependencies(){return I.has(this)||this.cacheUniqueDependencies(),I.get(this)||[]}static async onDefine(){return Promise.resolve()}static fetchI18nBundles(){return Promise.all(Object.entries(this.getMetadata().getI18n()).map(t=>{const{bundleName:e}=t[1];return Icons.f(e)}))}static fetchCLDR(){return this.getMetadata().needsCLDR()?u(Icons.s().getLanguage(),Icons.s().getRegion(),Icons.s().getScript()):Promise.resolve()}static{this.i18nBundleStorage={};}static get i18nBundles(){return this.i18nBundleStorage}static define(){const t=async()=>{await Theme.b$1();const o=await Promise.all([this.fetchI18nBundles(),this.fetchCLDR(),this.onDefine()]),[a]=o;Object.entries(this.getMetadata().getI18n()).forEach((r,i)=>{const h=r[1].bundleName;this.i18nBundleStorage[h]=a[i];}),this.asyncFinished=true;};this.definePromise=t();const e=this.getMetadata().getTag(),s=Theme.w$1(e),n=customElements.get(e);return n&&!s?Theme.$(e):n||(this._generateAccessors(),Theme.h$3(e),customElements.define(e,this)),this}static getMetadata(){if(this.hasOwnProperty("_metadata"))return this._metadata;const t=[this.metadata];let e=this;for(;e!==b;)e=Object.getPrototypeOf(e),t.unshift(e.metadata);const s=Theme.e({},...t);return this._metadata=new p$1(s),this._metadata}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}};const v$1=c=>"isUI5Element"in c;
|
|
415
415
|
|
|
416
416
|
let f$1 = class f{constructor(e,t){if(!e.isUI5Element)throw new Error("The root web component must be a UI5 Element instance");if(this.rootWebComponent=e,this.rootWebComponent.addEventListener("keydown",this._onkeydown.bind(this)),this._initBound=this._init.bind(this),this.rootWebComponent.attachComponentStateFinalized(this._initBound),typeof t.getItemsCallback!="function")throw new Error("getItemsCallback is required");this._getItems=t.getItemsCallback,this._currentIndex=t.currentIndex||0,this._rowSize=t.rowSize||1,this._behavior=t.behavior||l$5.Static,this._navigationMode=t.navigationMode||r$4.Auto,this._affectedPropertiesNames=t.affectedPropertiesNames||[],this._skipItemsSize=t.skipItemsSize||null;}setCurrentItem(e){const t=this._getItems().indexOf(e);if(t===-1){console.warn("The provided item is not managed by ItemNavigation",e);return}this._currentIndex=t,this._applyTabIndex();}setRowSize(e){this._rowSize=e;}_init(){this._getItems().forEach((e,t)=>{e.forcedTabIndex=t===this._currentIndex?"0":"-1";});}_onkeydown(e){if(!this._canNavigate())return;const t=this._navigationMode===r$4.Horizontal||this._navigationMode===r$4.Auto,i=this._navigationMode===r$4.Vertical||this._navigationMode===r$4.Auto,s=this.rootWebComponent.effectiveDir==="rtl";if(s&&D$1(e)&&t)this._handleRight();else if(s&&R$2(e)&&t)this._handleLeft();else if(D$1(e)&&t)this._handleLeft();else if(R$2(e)&&t)this._handleRight();else if(P(e)&&i)this._handleUp();else if(_$1(e)&&i)this._handleDown();else if(M(e))this._handleHome();else if(n$9(e))this._handleEnd();else if(j(e))this._handlePageUp();else if(q(e))this._handlePageDown();else return;e.preventDefault(),this._applyTabIndex(),this._focusCurrentItem();}_handleUp(){const e=this._getItems().length;if(this._currentIndex-this._rowSize>=0){this._currentIndex-=this._rowSize;return}if(this._behavior===l$5.Cyclic){const t=this._currentIndex%this._rowSize,i=t===0?this._rowSize-1:t-1,s=Math.ceil(e/this._rowSize);let o=i+(s-1)*this._rowSize;o>e-1&&(o-=this._rowSize),this._currentIndex=o;}else this._currentIndex=0;}_handleDown(){const e=this._getItems().length;if(this._currentIndex+this._rowSize<e){this._currentIndex+=this._rowSize;return}if(this._behavior===l$5.Cyclic){const i=(this._currentIndex%this._rowSize+1)%this._rowSize;this._currentIndex=i;}else this._currentIndex=e-1;}_handleLeft(){const e=this._getItems().length;if(this._currentIndex>0){this._currentIndex-=1;return}this._behavior===l$5.Cyclic&&(this._currentIndex=e-1);}_handleRight(){const e=this._getItems().length;if(this._currentIndex<e-1){this._currentIndex+=1;return}this._behavior===l$5.Cyclic&&(this._currentIndex=0);}_handleHome(){const e=this._rowSize>1?this._rowSize:this._getItems().length;this._currentIndex-=this._currentIndex%e;}_handleEnd(){const e=this._rowSize>1?this._rowSize:this._getItems().length;this._currentIndex+=e-1-this._currentIndex%e;}_handlePageUp(){this._rowSize>1||this._handlePageUpFlat();}_handlePageDown(){this._rowSize>1||this._handlePageDownFlat();}_handlePageUpFlat(){if(this._skipItemsSize===null){this._currentIndex-=this._currentIndex;return}this._currentIndex+1>this._skipItemsSize?this._currentIndex-=this._skipItemsSize:this._currentIndex-=this._currentIndex;}_handlePageDownFlat(){if(this._skipItemsSize===null){this._currentIndex=this._getItems().length-1;return}this._getItems().length-this._currentIndex-1>this._skipItemsSize?this._currentIndex+=this._skipItemsSize:this._currentIndex=this._getItems().length-1;}_applyTabIndex(){const e=this._getItems();for(let t=0;t<e.length;t++)e[t].forcedTabIndex=t===this._currentIndex?"0":"-1";this._affectedPropertiesNames.forEach(t=>{const i=this.rootWebComponent[t];this.rootWebComponent[t]=Array.isArray(i)?[...i]:{...i};});}_focusCurrentItem(){const e=this._getCurrentItem();e&&e.focus();}_canNavigate(){const e=this._getCurrentItem(),t=t$3();return e&&e===t}_getCurrentItem(){const e=this._getItems();if(!e.length)return;for(;this._currentIndex>=e.length;)this._currentIndex-=this._rowSize;this._currentIndex<0&&(this._currentIndex=0);const t=e[this._currentIndex];if(!t)return;if(v$1(t))return t.getFocusDomRef();const i=this.rootWebComponent.getDomRef();if(i&&t.id)return i.querySelector(`[id="${t.id}"]`)}};
|
|
417
417
|
|
|
418
418
|
let n$1;const l$1=new Map,a$2=()=>(n$1||(n$1=new window.ResizeObserver(r=>{window.requestAnimationFrame(()=>{r.forEach(t=>{const s=l$1.get(t.target);s&&Promise.all(s.map(e=>e()));});});})),n$1),c$2=(r,t)=>{const s=l$1.get(r)||[];s.length||a$2().observe(r),l$1.set(r,[...s,t]);},b=(r,t)=>{const s=l$1.get(r)||[];if(s.length===0)return;const e=s.filter(o=>o!==t);e.length===0?(a$2().unobserve(r),l$1.delete(r)):l$1.set(r,e);};class f{static register(t,s){let e=t;v$1(e)&&(e=e.getDomRef()),e instanceof HTMLElement?c$2(e,s):console.warn("Cannot register ResizeHandler for element",t);}static deregister(t,s){let e=t;v$1(e)&&(e=e.getDomRef()),e instanceof HTMLElement?b(e,s):console.warn("Cannot deregister ResizeHandler for element",t);}}
|
|
419
419
|
|
|
420
|
-
const l="scroll",p=
|
|
420
|
+
const l="scroll",p=Theme.l$2()?"touchend":"mouseup";class v extends Theme.i$1{constructor(t){super();this.supportsTouch=Theme.l$2();this.containerComponent=t,this.mouseMove=this.ontouchmove.bind(this),this.mouseUp=this.ontouchend.bind(this),this.touchStart=this.ontouchstart.bind(this),this.supportsTouch=Theme.l$2(),this.cachedValue={dragX:0,dragY:0},this.startX=0,this.startY=0,this.supportsTouch?(t.addEventListener("touchstart",this.touchStart,{passive:true}),t.addEventListener("touchmove",this.mouseMove,{passive:true}),t.addEventListener("touchend",this.mouseUp,{passive:true})):t.addEventListener("mousedown",this.touchStart,{passive:true});}set scrollContainer(t){this._container=t;}get scrollContainer(){return this._container}async scrollTo(t,e,s=0,o=0){let r=this.scrollContainer.clientHeight>0&&this.scrollContainer.clientWidth>0;for(;!r&&s>0;)await new Promise(n=>{setTimeout(()=>{r=this.scrollContainer.clientHeight>0&&this.scrollContainer.clientWidth>0,s--,n();},o);});this._container.scrollLeft=t,this._container.scrollTop=e;}move(t,e,s){if(s){this._container.scrollLeft+=t,this._container.scrollTop+=e;return}if(this._container)return n$d(this._container,t,e)}getScrollLeft(){return this._container.scrollLeft}getScrollTop(){return this._container.scrollTop}_isTouchInside(t){let e=null;this.supportsTouch&&t instanceof TouchEvent&&(e=t.touches[0]);const s=this._container.getBoundingClientRect(),o=this.supportsTouch?e.clientX:t.x,r=this.supportsTouch?e.clientY:t.y;return o>=s.left&&o<=s.right&&r>=s.top&&r<=s.bottom}ontouchstart(t){let e=null;this.supportsTouch&&t instanceof TouchEvent&&(e=t.touches[0]),e?(this.startX=e.pageX,this.startY=e.pageY):(document.addEventListener("mouseup",this.mouseUp,{passive:true}),document.addEventListener("mousemove",this.mouseMove,{passive:true})),e&&(this._prevDragX=e.pageX,this._prevDragY=e.pageY),t instanceof MouseEvent&&(this._prevDragX=t.x,this._prevDragY=t.y),this._canScroll=this._isTouchInside(t);}ontouchmove(t){if(!this._canScroll)return;const e=this._container,s=this.supportsTouch?t.touches[0]:null,o=this.supportsTouch?s.pageX:t.x,r=this.supportsTouch?s.pageY:t.y;e.scrollLeft+=this._prevDragX-o,e.scrollTop+=this._prevDragY-r,this.fireEvent(l,{isLeft:o>this._prevDragX,isRight:o<this._prevDragX}),this.cachedValue.dragX=this._prevDragX,this.cachedValue.dragY=this._prevDragY,this._prevDragX=o,this._prevDragY=r;}ontouchend(t){if(this.supportsTouch){const h=Math.abs(t.changedTouches[0].pageX-this.startX),c=Math.abs(t.changedTouches[0].pageY-this.startY);if(h<10&&c<10)return}if(!this._canScroll)return;const e=this._container,s=this.supportsTouch?t.changedTouches[0].pageX:t.x,o=this.supportsTouch?t.changedTouches[0].pageY:t.y;e.scrollLeft+=this._prevDragX-s,e.scrollTop+=this._prevDragY-o;const n=s===this._prevDragX?this.cachedValue.dragX:s;this.fireEvent(p,{isLeft:n<this._prevDragX,isRight:n>this._prevDragX}),this._prevDragX=s,this._prevDragY=o,this.supportsTouch||(document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("mouseup",this.mouseUp));}}
|
|
421
421
|
|
|
422
|
-
const n=new
|
|
422
|
+
const n=new Theme.i$1,t$1="directionChange",a$1=e=>{n.attachEvent(t$1,e);},c$1=e=>{n.detachEvent(t$1,e);},o$1=()=>n.fireEvent(t$1,void 0);
|
|
423
423
|
|
|
424
|
-
const i$1=async()=>{const e=o$1();await Promise.all(e),await
|
|
424
|
+
const i$1=async()=>{const e=o$1();await Promise.all(e),await Theme.C({rtlAware:true});};
|
|
425
425
|
|
|
426
426
|
// TODO-evo:assert on node throws an error if the assertion is violated
|
|
427
427
|
|
|
@@ -4481,8 +4481,8 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
4481
4481
|
|
|
4482
4482
|
var PackageModule = /*#__PURE__*/Object.freeze({
|
|
4483
4483
|
__proto__: null,
|
|
4484
|
-
EventProvider:
|
|
4485
|
-
I18nBundle: Icons.u
|
|
4484
|
+
EventProvider: Theme.i$1,
|
|
4485
|
+
I18nBundle: Icons.u,
|
|
4486
4486
|
ItemNavigation: f$1,
|
|
4487
4487
|
MediaRange: i,
|
|
4488
4488
|
RegisteredIconCollection: Icons.t$1,
|
|
@@ -4492,70 +4492,70 @@ sap.ui.define(['require', 'exports', 'sap/f/thirdparty/Icons'], (function (requi
|
|
|
4492
4492
|
URLListValidator: oURLListValidator,
|
|
4493
4493
|
addCustomCSS: g,
|
|
4494
4494
|
applyDirection: i$1,
|
|
4495
|
-
attachBoot:
|
|
4495
|
+
attachBoot: Theme.P,
|
|
4496
4496
|
attachDirectionChange: a$1,
|
|
4497
4497
|
attachLanguageChange: Icons.t,
|
|
4498
|
-
attachThemeLoaded:
|
|
4499
|
-
cancelRender:
|
|
4498
|
+
attachThemeLoaded: Theme.o$1,
|
|
4499
|
+
cancelRender: Theme.h$2,
|
|
4500
4500
|
customElement: m$3,
|
|
4501
4501
|
default: b$1,
|
|
4502
4502
|
detachDirectionChange: c$1,
|
|
4503
|
-
detachLanguageChange: Icons.r
|
|
4504
|
-
detachThemeLoaded:
|
|
4503
|
+
detachLanguageChange: Icons.r,
|
|
4504
|
+
detachThemeLoaded: Theme.n$3,
|
|
4505
4505
|
event: b$5,
|
|
4506
4506
|
getAnimationMode: d$3,
|
|
4507
4507
|
getCalendarType: i$7,
|
|
4508
|
-
getCustomElementsScopingRules:
|
|
4509
|
-
getCustomElementsScopingSuffix:
|
|
4510
|
-
getDefaultIconCollection: Icons.c
|
|
4511
|
-
getDefaultLanguage: Icons.c$
|
|
4512
|
-
getDefaultTheme:
|
|
4508
|
+
getCustomElementsScopingRules: Theme.m$1,
|
|
4509
|
+
getCustomElementsScopingSuffix: Theme.c$3,
|
|
4510
|
+
getDefaultIconCollection: Icons.c,
|
|
4511
|
+
getDefaultLanguage: Icons.c$1,
|
|
4512
|
+
getDefaultTheme: Theme.g$2,
|
|
4513
4513
|
getEffectiveDir: r$1,
|
|
4514
|
-
getEffectiveIconCollection: Icons.i
|
|
4515
|
-
getEffectiveScopingSuffixForTag:
|
|
4516
|
-
getFetchDefaultLanguage: Icons.h
|
|
4514
|
+
getEffectiveIconCollection: Icons.i,
|
|
4515
|
+
getEffectiveScopingSuffixForTag: Theme.g$1,
|
|
4516
|
+
getFetchDefaultLanguage: Icons.h,
|
|
4517
4517
|
getFirstDayOfWeek: n$a,
|
|
4518
|
-
getI18nBundle: Icons.f
|
|
4519
|
-
getLanguage: Icons.l
|
|
4518
|
+
getI18nBundle: Icons.f,
|
|
4519
|
+
getLanguage: Icons.l,
|
|
4520
4520
|
getLegacyDateCalendarCustomizing: m$5,
|
|
4521
4521
|
getNoConflict: o$6,
|
|
4522
|
-
getTheme:
|
|
4523
|
-
isAndroid:
|
|
4524
|
-
isChrome:
|
|
4525
|
-
isCombi:
|
|
4526
|
-
isDesktop:
|
|
4527
|
-
isFirefox:
|
|
4528
|
-
isIOS:
|
|
4529
|
-
isPhone:
|
|
4530
|
-
isSafari:
|
|
4531
|
-
isTablet:
|
|
4522
|
+
getTheme: Theme.r,
|
|
4523
|
+
isAndroid: Theme.P$1,
|
|
4524
|
+
isChrome: Theme.g,
|
|
4525
|
+
isCombi: Theme.m$2,
|
|
4526
|
+
isDesktop: Theme.f,
|
|
4527
|
+
isFirefox: Theme.b$2,
|
|
4528
|
+
isIOS: Theme.w,
|
|
4529
|
+
isPhone: Theme.d,
|
|
4530
|
+
isSafari: Theme.h,
|
|
4531
|
+
isTablet: Theme.a$2,
|
|
4532
4532
|
property: s$9,
|
|
4533
4533
|
registerCustomI18nBundleGetter: Icons.y$1,
|
|
4534
4534
|
registerI18nLoader: Icons.$,
|
|
4535
4535
|
registerIconLoader: Icons.C,
|
|
4536
4536
|
registerLocaleDataLoader: C,
|
|
4537
|
-
registerThemePropertiesLoader:
|
|
4538
|
-
renderDeferred:
|
|
4539
|
-
renderFinished:
|
|
4540
|
-
renderImmediately:
|
|
4537
|
+
registerThemePropertiesLoader: Theme.p,
|
|
4538
|
+
renderDeferred: Theme.l$1,
|
|
4539
|
+
renderFinished: Theme.f$1,
|
|
4540
|
+
renderImmediately: Theme.c$2,
|
|
4541
4541
|
sanitizeHTML: fnSanitizeHTML,
|
|
4542
4542
|
scroll: n$d,
|
|
4543
4543
|
setAnimationMode: m$6,
|
|
4544
|
-
setCustomElementsScopingRules:
|
|
4545
|
-
setCustomElementsScopingSuffix:
|
|
4546
|
-
setDefaultIconCollection: Icons.e
|
|
4547
|
-
setFetchDefaultLanguage: Icons.m
|
|
4544
|
+
setCustomElementsScopingRules: Theme.p$1,
|
|
4545
|
+
setCustomElementsScopingSuffix: Theme.l$3,
|
|
4546
|
+
setDefaultIconCollection: Icons.e,
|
|
4547
|
+
setFetchDefaultLanguage: Icons.m,
|
|
4548
4548
|
setLanguage: Icons.L,
|
|
4549
4549
|
setNoConflict: f$3,
|
|
4550
|
-
setTheme:
|
|
4550
|
+
setTheme: Theme.u$1,
|
|
4551
4551
|
slideDown: b$6,
|
|
4552
4552
|
slideUp: u$3,
|
|
4553
4553
|
slot: d$1,
|
|
4554
4554
|
startMultipleDrag: m$4,
|
|
4555
|
-
supportsTouch:
|
|
4555
|
+
supportsTouch: Theme.l$2
|
|
4556
4556
|
});
|
|
4557
4557
|
|
|
4558
|
-
|
|
4558
|
+
Theme.l$3("0df29cf2");
|
|
4559
4559
|
|
|
4560
4560
|
exports.A = A;
|
|
4561
4561
|
exports.C = C$2;
|
package/ui5-build.yaml
CHANGED
|
@@ -35,6 +35,7 @@ customConfiguration:
|
|
|
35
35
|
- "@ui5/webcomponents-fiori/dist/UserMenu"
|
|
36
36
|
- "@ui5/webcomponents-fiori/dist/UserMenuItem"
|
|
37
37
|
- "@ui5/webcomponents-fiori/dist/UserMenuAccount"
|
|
38
|
+
- "@ui5/webcomponents-fiori/dist/illustrations/UnableToUpload"
|
|
38
39
|
- "@ui5/webcomponents-icons/AllIcons"
|
|
39
40
|
- "@ui5/webcomponents-icons-tnt/AllIcons"
|
|
40
41
|
- "@ui5/webcomponents-icons-business-suite/AllIcons"
|