diff --git a/types/nginstack__jsunit/lib/TestRunner.d.ts b/types/nginstack__jsunit/lib/TestRunner.d.ts index 8e7fa82bbc3f11..68ae909caceb8b 100644 --- a/types/nginstack__jsunit/lib/TestRunner.d.ts +++ b/types/nginstack__jsunit/lib/TestRunner.d.ts @@ -19,7 +19,7 @@ declare class TestRunner { testSuitesPerTestCaseId_: Record; private logger_; breakOnFailure: boolean; - cluster: any; + cluster: import("@nginstack/engine/lib/cluster/EngineCluster"); private readVfsTests_; private readLocalTests_; private logAndEmitEvent_; diff --git a/types/nginstack__jsunit/nginstack__jsunit-tests.ts b/types/nginstack__jsunit/nginstack__jsunit-tests.ts index 5664828c62c1ca..ec9b08d5594daf 100644 --- a/types/nginstack__jsunit/nginstack__jsunit-tests.ts +++ b/types/nginstack__jsunit/nginstack__jsunit-tests.ts @@ -1,7 +1,6 @@ import TestSuite = require("@nginstack/jsunit/lib/TestSuite"); const suite = new TestSuite("fileId"); // $ExpectType TestSuite -const any = "*"; suite.version; // $ExpectType number suite.filePath; // $ExpectType string @@ -11,7 +10,7 @@ suite.fileEncoding; // $ExpectType string suite.id; // $ExpectType string suite.testCases; // $ExpectType TestCase[] -suite.getTestCase(any); // $ExpectType TestCase +suite.getTestCase("*"); // $ExpectType TestCase suite.update(); // $ExpectType void suite.setUp(); // $ExpectType void suite.tearDown(); // $ExpectType void diff --git a/types/openui5/openui5-tests.ts b/types/openui5/openui5-tests.ts index c05e172ec85880..03b65e9c0e8f5e 100644 --- a/types/openui5/openui5-tests.ts +++ b/types/openui5/openui5-tests.ts @@ -37,6 +37,7 @@ import nextUIUpdate from "sap/ui/test/utils/nextUIUpdate"; import Link from "sap/m/Link"; import BaseObject from "sap/ui/base/Object"; import ObjectMarker from "sap/m/ObjectMarker"; +import Theming from "sap/ui/core/Theming"; /* * REMARK: the type definition files are automatically generated and this generation is tested, @@ -259,3 +260,6 @@ new ObjectMarker().setReactiveAreaMode("Inline"); // 1.134 const gap: CSSGapShortHand = "1px 2px 3px 4px"; + +// 1.135 +const theming = Theming.setFavicon("favicon.ico"); \ No newline at end of file diff --git a/types/openui5/package.json b/types/openui5/package.json index 4ec5c2e7b906d1..28887724068f96 100644 --- a/types/openui5/package.json +++ b/types/openui5/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/openui5", - "version": "1.134.9999", + "version": "1.135.9999", "nonNpm": true, "nonNpmDescription": "openui5", "projects": [ diff --git a/types/openui5/sap.f.d.ts b/types/openui5/sap.f.d.ts index c44068528286e5..7ec450f72e3d49 100644 --- a/types/openui5/sap.f.d.ts +++ b/types/openui5/sap.f.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/tnt/library" { export interface IToolHeader { @@ -20861,8 +20861,6 @@ declare module "sap/f/ShellBar" { import { IBar } from "sap/m/library"; - import { IToolHeader } from "sap/tnt/library"; - import { BarContexts } from "sap/m/BarInPageEnabler"; import { URI } from "sap/ui/core/library"; @@ -20901,13 +20899,9 @@ declare module "sap/f/ShellBar" { * * @since 1.63 */ - export default class ShellBar - extends Control - implements IShellBar, IBar, IToolHeader - { + export default class ShellBar extends Control implements IShellBar, IBar { __implements__sap_f_IShellBar: boolean; __implements__sap_m_IBar: boolean; - __implements__sap_tnt_IToolHeader: boolean; /** * Constructor for a new `ShellBar`. * diff --git a/types/openui5/sap.m.d.ts b/types/openui5/sap.m.d.ts index a2328d89fbca47..184ccadf1f7b6a 100644 --- a/types/openui5/sap.m.d.ts +++ b/types/openui5/sap.m.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/f/library" { export interface IShellBar { @@ -1647,6 +1647,17 @@ declare module "sap/m/library" { __implements__sap_m_ITableItem: boolean; } + /** + * Interface for controls placed in the `content` aggregation of `{@link sap.m.Toolbar}` or `{@link sap.m.OverflowToolbar}`, + * which need to indicate whether they are interactive or not. + * + * Controls that implement this interface should have the following method: `_getToolbarInteractive` - returns + * boolean value that shows whether the control is interactive or not + */ + export interface IToolbarInteractiveControl { + __implements__sap_m_IToolbarInteractiveControl: boolean; + } + /** * Available label display modes. * @@ -3896,6 +3907,8 @@ declare module "sap/m/library" { * In case the less parameter color cannot be determined, the validation fails. You need to check if less * parameters are supported on control level. An empty string is also allowed and has the same effect as * setting no color. + * + * @deprecated As of version 1.135. the concept has been discarded. */ export type ValueCSSColor = string; @@ -9106,6 +9119,7 @@ declare module "sap/m/Breadcrumbs" { import { IBreadcrumbs, IOverflowToolbarContent, + IToolbarInteractiveControl, BreadcrumbsSeparatorStyle, } from "sap/m/library"; @@ -9133,7 +9147,7 @@ declare module "sap/m/Breadcrumbs" { IBreadcrumbs, IOverflowToolbarContent, IShrinkable, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_m_IBreadcrumbs: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; @@ -10566,9 +10580,14 @@ declare module "sap/m/Button" { CSSSize, } from "sap/ui/core/library"; - import Event from "sap/ui/base/Event"; + import { + IToolbarInteractiveControl, + ButtonAccessibleRole, + BadgeStyle, + ButtonType, + } from "sap/m/library"; - import { ButtonAccessibleRole, BadgeStyle, ButtonType } from "sap/m/library"; + import Event from "sap/ui/base/Event"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -10596,10 +10615,7 @@ declare module "sap/m/Button" { */ export default class Button extends Control - implements - IFormContent, - IAccessKeySupport, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, IAccessKeySupport, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_ui_core_IAccessKeySupport: boolean; @@ -12905,6 +12921,8 @@ declare module "sap/m/CheckBox" { CSSSize, } from "sap/ui/core/library"; + import { IToolbarInteractiveControl } from "sap/m/library"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -12951,7 +12969,7 @@ declare module "sap/m/CheckBox" { IFormContent, ISemanticFormContent, IAccessKeySupport, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_ui_core_ISemanticFormContent: boolean; @@ -16233,6 +16251,8 @@ declare module "sap/m/ComboBox" { $ComboBoxBaseSettings, } from "sap/m/ComboBoxBase"; + import { IToolbarInteractiveControl } from "sap/m/library"; + import List from "sap/m/List"; import Popover from "sap/m/Popover"; @@ -16305,7 +16325,7 @@ declare module "sap/m/ComboBox" { */ export default class ComboBox extends ComboBoxBase - implements /* was: sap.m.IToolbarInteractiveControl */ Object + implements IToolbarInteractiveControl { __implements__sap_m_IToolbarInteractiveControl: boolean; /** @@ -20697,6 +20717,8 @@ declare module "sap/m/DateTimeField" { declare module "sap/m/DateTimeInput" { import { default as Control, $ControlSettings } from "sap/ui/core/Control"; + import { IToolbarInteractiveControl, DateTimeInputType } from "sap/m/library"; + import { ID, AccessibilityInfo, @@ -20710,8 +20732,6 @@ declare module "sap/m/DateTimeInput" { import ElementMetadata from "sap/ui/core/ElementMetadata"; - import { DateTimeInputType } from "sap/m/library"; - import Event from "sap/ui/base/Event"; /** @@ -20726,7 +20746,7 @@ declare module "sap/m/DateTimeInput" { */ export default class DateTimeInput extends Control - implements /* was: sap.m.IToolbarInteractiveControl */ Object + implements IToolbarInteractiveControl { __implements__sap_m_IToolbarInteractiveControl: boolean; /** @@ -29910,6 +29930,17 @@ declare module "sap/m/FeedListItem" { * @returns Value of property `convertLinksToAnchorTags` */ getConvertLinksToAnchorTags(): LinkConversion; + /** + * Gets current value of property {@link #getDisableStyleAttribute disableStyleAttribute}. + * + * Disables rendering of the `style` attribute in the `FormattedText`. + * + * Default value is `false`. + * + * + * @returns Value of property `disableStyleAttribute` + */ + getDisableStyleAttribute(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -30192,6 +30223,24 @@ declare module "sap/m/FeedListItem" { */ sConvertLinksToAnchorTags?: LinkConversion | keyof typeof LinkConversion ): this; + /** + * Sets a new value for property {@link #getDisableStyleAttribute disableStyleAttribute}. + * + * Disables rendering of the `style` attribute in the `FormattedText`. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setDisableStyleAttribute( + /** + * New value for property `disableStyleAttribute` + */ + bDisableStyleAttribute?: boolean + ): this; /** * Sets a new value for property {@link #getIcon icon}. * @@ -30616,6 +30665,11 @@ declare module "sap/m/FeedListItem" { */ maxCharacters?: int | PropertyBindingInfo | `{${string}}`; + /** + * Disables rendering of the `style` attribute in the `FormattedText`. + */ + disableStyleAttribute?: boolean | PropertyBindingInfo | `{${string}}`; + /** * Contains {@link sap.m.FeedListItemAction elements} that are displayed in the action sheet. * @@ -32803,6 +32857,7 @@ declare module "sap/m/GenericTag" { import { IOverflowToolbarContent, + IToolbarInteractiveControl, GenericTagDesign, OverflowToolbarConfig, GenericTagValueState, @@ -32831,9 +32886,7 @@ declare module "sap/m/GenericTag" { */ export default class GenericTag extends Control - implements - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_m_IOverflowToolbarContent: boolean; __implements__sap_m_IToolbarInteractiveControl: boolean; @@ -35015,6 +35068,11 @@ declare module "sap/m/GroupHeaderListItem" { * in `sap.m.List` and `sap.m.Table`. **Note:** The inherited properties `unread`, `selected`, `counter` * and `press` event from `sap.m.ListItemBase` are not supported. * + * There are the following known restrictions: + * - When a list is manually populated with items and groups without using data binding, changes to the + * order or group structure will only be correctly applied when all items are removed and reinserted again. + * + * * @since 1.12 */ export default class GroupHeaderListItem @@ -39778,9 +39836,7 @@ declare module "sap/m/IllustratedMessage" { /** * New value for property `illustrationSize` */ - sIllustrationSize?: - | IllustratedMessageSize - | keyof typeof IllustratedMessageSize + sIllustrationSize?: IllustratedMessageSize ): this; /** * Sets a new value for property {@link #getIllustrationType illustrationType}. @@ -39916,7 +39972,7 @@ declare module "sap/m/IllustratedMessage" { * @since 1.98 */ illustrationSize?: - | (IllustratedMessageSize | keyof typeof IllustratedMessageSize) + | IllustratedMessageSize | PropertyBindingInfo | `{${string}}`; @@ -40026,20 +40082,52 @@ declare module "sap/m/IllustratedMessageSize" { Base = "Base", /** * Dialog `Illustration` size (M breakpoint). Suitable for dialogs. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageSize.Medium} */ Dialog = "Dialog", /** * Dot `Illustration` size (XS breakpoint). Suitable for spaces with little vertical space. * * @since 1.108 + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageSize.ExtraSmall} */ Dot = "Dot", + /** + * Extra Small `Illustration` size. Alias for `Dot` size (XS breakpoint). Suitable for spaces with little + * vertical space. + * + * @since 1.136 + */ + ExtraSmall = "Dot", + /** + * Large `Illustration` size. Alias for `Scene` size (L breakpoint). Suitable for a `Page` or a table. + * + * @since 1.136 + */ + Large = "Scene", + /** + * Medium `Illustration` size. Alias for `Dialog` size (M breakpoint). Suitable for dialogs. + * + * @since 1.136 + */ + Medium = "Dialog", /** * Scene `Illustration` size (L breakpoint). Suitable for a `Page` or a table. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageSize.Large} */ Scene = "Scene", + /** + * Small `Illustration` size. Alias for `Spot` size (S breakpoint). Suitable for cards (four columns). + * + * @since 1.136 + */ + Small = "Spot", /** * Spot `Illustration` size (S breakpoint). Suitable for cards (four columns). + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageSize.Small} */ Spot = "Spot", } @@ -40053,18 +40141,34 @@ declare module "sap/m/IllustratedMessageType" { * @since 1.98 */ enum IllustratedMessageType { + /** + * "Achievement" illustration type. + */ + Achievement = "sapIllus-Achievement", /** * "Add Column" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.AddingColumns} */ AddColumn = "sapIllus-AddColumn", /** * "Add Dimensions" illustration type. */ AddDimensions = "sapIllus-AddDimensions", + /** + * "Adding Columns" illustration type. + */ + AddingColumns = "sapIllus-AddingColumns", /** * "Add People" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.AddPeopleToCalendar} */ AddPeople = "sapIllus-AddPeople", + /** + * "Add People To Calendar" illustration type. + */ + AddPeopleToCalendar = "sapIllus-AddPeopleToCalendar", /** * "Balloon Sky" illustration type. */ @@ -40077,12 +40181,20 @@ declare module "sap/m/IllustratedMessageType" { * "Connection" illustration type. */ Connection = "sapIllus-Connection", + /** + * "Drag Files To Upload" illustration type. + */ + DragFilesToUpload = "sapIllus-DragFilesToUpload", /** * "Empty Calendar" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoActivities} */ EmptyCalendar = "sapIllus-EmptyCalendar", /** * "Empty List" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoEntries} */ EmptyList = "sapIllus-EmptyList", /** @@ -40091,16 +40203,34 @@ declare module "sap/m/IllustratedMessageType" { EmptyPlanningCalendar = "sapIllus-EmptyPlanningCalendar", /** * "Error Screen" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.UnableToUpload} */ ErrorScreen = "sapIllus-ErrorScreen", + /** + * "Filtering Columns" illustration type. + */ + FilteringColumns = "sapIllus-FilteringColumns", /** * "Filter Table" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.FilteringColumns} */ FilterTable = "sapIllus-FilterTable", + /** + * "Grouping Columns" illustration type. + */ + GroupingColumns = "sapIllus-GroupingColumns", /** * "Group Table" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.GroupingColumns} */ GroupTable = "sapIllus-GroupTable", + /** + * "KeyTask" illustration type. + */ + KeyTask = "sapIllus-KeyTask", /** * "New Mail" illustration type. */ @@ -40109,6 +40239,10 @@ declare module "sap/m/IllustratedMessageType" { * "No Activities" illustration type. */ NoActivities = "sapIllus-NoActivities", + /** + * "No Chart Data" illustration type. + */ + NoChartData = "sapIllus-NoChartData", /** * "No Columns Set" illustration type. */ @@ -40119,6 +40253,8 @@ declare module "sap/m/IllustratedMessageType" { NoData = "sapIllus-NoData", /** * "No Dimensions Set" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoChartData} */ NoDimensionsSet = "sapIllus-NoDimensionsSet", /** @@ -40135,6 +40271,8 @@ declare module "sap/m/IllustratedMessageType" { NoMail = "sapIllus-NoMail", /** * "No Email v1" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoMail} */ NoMailV1 = "sapIllus-NoMail_v1", /** @@ -40147,6 +40285,8 @@ declare module "sap/m/IllustratedMessageType" { NoSavedItems = "sapIllus-NoSavedItems", /** * "No Saved Items v1" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoSavedItems} */ NoSavedItemsV1 = "sapIllus-NoSavedItems_v1", /** @@ -40159,26 +40299,44 @@ declare module "sap/m/IllustratedMessageType" { NoTasks = "sapIllus-NoTasks", /** * "No Tasks v1" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoTasks} */ NoTasksV1 = "sapIllus-NoTasks_v1", /** * "Page Not Found" illustration type. */ PageNotFound = "sapIllus-PageNotFound", + /** + * "Receive Appreciation" illustration type. + */ + ReceiveAppreciation = "sapIllus-ReceiveAppreciation", /** * "Reload Screen" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.UnableToLoad} */ ReloadScreen = "sapIllus-ReloadScreen", /** * "Resize Column" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.ResizingColumns} */ ResizeColumn = "sapIllus-ResizeColumn", + /** + * "Resizing Columns" illustration type. + */ + ResizingColumns = "sapIllus-ResizingColumns", /** * "Search Earth" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.BeforeSearch} */ SearchEarth = "sapIllus-SearchEarth", /** * "Search Folder" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoSearchResults} */ SearchFolder = "sapIllus-SearchFolder", /** @@ -40187,18 +40345,26 @@ declare module "sap/m/IllustratedMessageType" { SignOut = "sapIllus-SignOut", /** * "Simple Balloon" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.ReceiveAppreciation} */ SimpleBalloon = "sapIllus-SimpleBalloon", /** * "Simple Bell" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoNotifications} */ SimpleBell = "sapIllus-SimpleBell", /** * "Simple Calendar" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoActivities} */ SimpleCalendar = "sapIllus-SimpleCalendar", /** * "Simple CheckMark" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.KeyTask} */ SimpleCheckMark = "sapIllus-SimpleCheckMark", /** @@ -40207,62 +40373,96 @@ declare module "sap/m/IllustratedMessageType" { SimpleConnection = "sapIllus-SimpleConnection", /** * "Simple Empty Doc" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoData} */ SimpleEmptyDoc = "sapIllus-SimpleEmptyDoc", /** * "Simple Empty List" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoEntries} */ SimpleEmptyList = "sapIllus-SimpleEmptyList", /** * "Simple Error" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.UnableToUpload} */ SimpleError = "sapIllus-SimpleError", /** * "Simple Magnifier" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.BeforeSearch} */ SimpleMagnifier = "sapIllus-SimpleMagnifier", /** * "Simple Mail" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoMail} */ SimpleMail = "sapIllus-SimpleMail", /** * "Simple No Saved Items" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoSavedItems} */ SimpleNoSavedItems = "sapIllus-SimpleNoSavedItems", /** * "Simple Not Found Magnifier" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoSearchResults} */ SimpleNotFoundMagnifier = "sapIllus-SimpleNotFoundMagnifier", /** * "Simple Reload" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.UnableToLoad} */ SimpleReload = "sapIllus-SimpleReload", /** * "Simple Task" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoTasks} */ SimpleTask = "sapIllus-SimpleTask", /** * "Sleeping Bell" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoNotifications} */ SleepingBell = "sapIllus-SleepingBell", /** * "Sort Column" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.SortingColumns} */ SortColumn = "sapIllus-SortColumn", + /** + * "Sorting Columns" illustration type. + */ + SortingColumns = "sapIllus-SortingColumns", /** * "Success Balloon" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.ReceiveAppreciation} */ SuccessBalloon = "sapIllus-SuccessBalloon", /** * "Success CheckMark" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.KeyTask} */ SuccessCheckMark = "sapIllus-SuccessCheckMark", /** * "Success HighFive" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.ReceiveAppreciation} */ SuccessHighFive = "sapIllus-SuccessHighFive", /** * "Success Screen" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.KeyTask} */ SuccessScreen = "sapIllus-SuccessScreen", /** @@ -40271,6 +40471,8 @@ declare module "sap/m/IllustratedMessageType" { Survey = "sapIllus-Survey", /** * "Tent" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.NoData} */ Tent = "sapIllus-Tent", /** @@ -40287,12 +40489,18 @@ declare module "sap/m/IllustratedMessageType" { UnableToUpload = "sapIllus-UnableToUpload", /** * "Upload Collection" illustration type. + * + * @deprecated As of version 1.135. replaced by {@link sap.m.IllustratedMessageType.DragFilesToUpload} */ UploadCollection = "sapIllus-UploadCollection", /** * "Upload To Cloud" illustration type. */ UploadToCloud = "sapIllus-UploadToCloud", + /** + * "User has signed up for an application" illustration type. + */ + UserHasSignedUp = "sapIllus-UserHasSignedUp", } export default IllustratedMessageType; } @@ -40662,7 +40870,11 @@ declare module "sap/m/IllustrationPool" { /** * whether or not all of the assets for the Illustration Set should be loaded once the metadata is loaded */ - bLoadAllResources: boolean + bLoadAllResources: boolean, + /** + * optional array containing the Illustration Set symbols + */ + aOptionalSymbols: any[] ): void; } const IllustrationPool: IllustrationPool; @@ -44791,6 +45003,8 @@ declare module "sap/m/InputBase" { CSSSize, } from "sap/ui/core/library"; + import { IToolbarInteractiveControl } from "sap/m/library"; + import Icon from "sap/ui/core/Icon"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -44814,7 +45028,7 @@ declare module "sap/m/InputBase" { IFormContent, ISemanticFormContent, ILabelable, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_ui_core_ISemanticFormContent: boolean; @@ -45288,6 +45502,22 @@ declare module "sap/m/InputBase" { * @returns Value of property `valueState` */ getValueState(): ValueState; + /** + * Gets the ID of the hidden value state message related to value state links + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns The ID of the hidden value state message related to value state links + */ + getValueStateLinksShortcutsId(): string; + /** + * Returns the keyboard shortcuts announcement for the value state links + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns The text for value state links shortcuts + */ + getValueStateLinksShortcutsTextAcc(): string; /** * Gets current value of property {@link #getValueStateText valueStateText}. * @@ -47116,6 +47346,7 @@ declare module "sap/m/Label" { import { IOverflowToolbarContent, + IToolbarInteractiveControl, LabelDesign, OverflowToolbarConfig, WrappingType, @@ -47152,7 +47383,7 @@ declare module "sap/m/Label" { IAccessKeySupport, ILabelable, IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_ui_core_Label: boolean; __implements__sap_ui_core_IShrinkable: boolean; @@ -48222,6 +48453,7 @@ declare module "sap/m/Link" { } from "sap/ui/core/library"; import { + IToolbarInteractiveControl, LinkAccessibleRole, EmptyIndicatorMode, ReactiveAreaMode, @@ -48266,7 +48498,7 @@ declare module "sap/m/Link" { ITitleContent, IAccessKeySupport, ILabelable, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_ui_core_IShrinkable: boolean; __implements__sap_ui_core_IFormContent: boolean; @@ -54919,12 +55151,16 @@ declare module "sap/m/Menu" { declare module "sap/m/MenuButton" { import { default as Control, $ControlSettings } from "sap/ui/core/Control"; + import { + IToolbarInteractiveControl, + MenuButtonMode, + ButtonType, + } from "sap/m/library"; + import { ID, URI, TextDirection, CSSSize } from "sap/ui/core/library"; import Event from "sap/ui/base/Event"; - import { MenuButtonMode, ButtonType } from "sap/m/library"; - import Menu from "sap/m/Menu"; import Popup from "sap/ui/core/Popup"; @@ -54940,7 +55176,7 @@ declare module "sap/m/MenuButton" { */ export default class MenuButton extends Control - implements /* was: sap.m.IToolbarInteractiveControl */ Object + implements IToolbarInteractiveControl { __implements__sap_m_IToolbarInteractiveControl: boolean; /** @@ -62958,8 +63194,8 @@ declare module "sap/m/MultiInput" { * When not to use:: * - When you need to select only one value. * - When you want the user to select from a predefined set of options. Use {@link sap.m.MultiComboBox } - * instead. Responsive Behavior: If there are many tokens, the control shows only the last selected - * tokens that fit and for the others a label N-more is provided. In case the length of the last + * instead. Responsive Behavior: If there are many tokens, the control shows only the first selected + * tokens that fit and for the others a label N-more is provided. In case the length of the first * selected token is exceeding the width of the control, only a label N-Items is shown. In both cases, * pressing on the label will show the tokens in a popup. On Phones: * - Only the last entered token is displayed. @@ -74239,7 +74475,10 @@ declare module "sap/m/OverflowToolbarButton" { import { IShellBar } from "sap/f/library"; - import { IOverflowToolbarContent } from "sap/m/library"; + import { + IOverflowToolbarContent, + IToolbarInteractiveControl, + } from "sap/m/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -74254,10 +74493,7 @@ declare module "sap/m/OverflowToolbarButton" { */ export default class OverflowToolbarButton extends Button - implements - IShellBar, - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IShellBar, IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_f_IShellBar: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; @@ -75780,6 +76016,15 @@ declare module "sap/m/p13n/MetadataHelper" { */ sKey: string ): MetadataObject | undefined; + /** + * Gets a list of properties that are redundant and should be filtered out in the {@link sap.ui.mdc.p13n.SelectionController } + * for personalization. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns A list of properties + */ + getRedundantProperties(): object[]; } /** * Personalization `MetadataObject` type. @@ -76160,6 +76405,10 @@ declare module "sap/m/p13n/Popup" { * Width configuration for the related popup container */ contentWidth?: CSSSize; + /** + * Key of active panel that is opened initially + */ + activePanel?: string; } ): void; /** @@ -89626,27 +89875,17 @@ declare module "sap/m/PlanningCalendar" { | keyof typeof CalendarAppointmentRoundWidth ): this; /** - * Sets a new value for property {@link #getAppointmentsReducedHeight appointmentsReducedHeight}. - * - * Determines whether the appointments that have only title without text are rendered with smaller height. - * - * **Note:** On phone devices this property is ignored, appointments are always rendered in full height - * to facilitate touching. + * Set the appointment reduced height property to the appointments in the calendar * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `false`. - * - * @since 1.38.0 * @deprecated As of version 1.119. Please use the `appointmentHeight` with value "Automatic" property instead. * - * @returns Reference to `this` in order to allow method chaining + * @returns Reference to `this` for method chaining */ setAppointmentsReducedHeight( /** - * New value for property `appointmentsReducedHeight` + * if set to true, the appointments will have a reduced height */ - bAppointmentsReducedHeight?: boolean + bAppointmentsReducedHeight: boolean ): this; /** * Sets a new value for property {@link #getAppointmentsVisualization appointmentsVisualization}. @@ -102796,9 +103035,9 @@ declare module "sap/m/RadioButton" { CSSSize, } from "sap/ui/core/library"; - import ElementMetadata from "sap/ui/core/ElementMetadata"; + import { IToolbarInteractiveControl, WrappingType } from "sap/m/library"; - import { WrappingType } from "sap/m/library"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -102839,7 +103078,7 @@ declare module "sap/m/RadioButton" { */ export default class RadioButton extends Control - implements IFormContent, /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_m_IToolbarInteractiveControl: boolean; @@ -108243,6 +108482,8 @@ declare module "sap/m/SearchField" { import { IShellBar } from "sap/f/library"; + import { IToolbarInteractiveControl } from "sap/m/library"; + import SuggestionItem from "sap/m/SuggestionItem"; import { @@ -108272,10 +108513,7 @@ declare module "sap/m/SearchField" { */ export default class SearchField extends Control - implements - IFormContent, - IShellBar, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, IShellBar, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_f_IShellBar: boolean; @@ -109518,7 +109756,10 @@ declare module "sap/m/SegmentedButton" { CSSSize, } from "sap/ui/core/library"; - import { IOverflowToolbarContent } from "sap/m/library"; + import { + IOverflowToolbarContent, + IToolbarInteractiveControl, + } from "sap/m/library"; import Button from "sap/m/Button"; @@ -109544,10 +109785,7 @@ declare module "sap/m/SegmentedButton" { */ export default class SegmentedButton extends Control - implements - IFormContent, - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; @@ -110691,6 +110929,7 @@ declare module "sap/m/Select" { import { IOverflowToolbarContent, + IToolbarInteractiveControl, SelectColumnRatio, OverflowToolbarConfig, SelectType, @@ -110719,7 +110958,7 @@ declare module "sap/m/Select" { ISemanticFormContent, ILabelable, IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object, + IToolbarInteractiveControl, IShellBar { __implements__sap_ui_core_IFormContent: boolean; @@ -129161,14 +129400,14 @@ declare module "sap/m/Slider" { CSSSize, } from "sap/ui/core/library"; + import { IToolbarInteractiveControl, IScale } from "sap/m/library"; + import SliderTooltipBase from "sap/m/SliderTooltipBase"; import UI5Element from "sap/ui/core/Element"; import ElementMetadata from "sap/ui/core/ElementMetadata"; - import { IScale } from "sap/m/library"; - import { PropertyBindingInfo, AggregationBindingInfo, @@ -129218,10 +129457,7 @@ declare module "sap/m/Slider" { */ export default class Slider extends Control - implements - IFormContent, - ISemanticFormContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, ISemanticFormContent, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_ui_core_ISemanticFormContent: boolean; @@ -136057,7 +136293,11 @@ declare module "sap/m/Switch" { import { IFormContent, ID } from "sap/ui/core/library"; - import { IOverflowToolbarContent, SwitchType } from "sap/m/library"; + import { + IOverflowToolbarContent, + IToolbarInteractiveControl, + SwitchType, + } from "sap/m/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -136071,10 +136311,7 @@ declare module "sap/m/Switch" { */ export default class Switch extends Control - implements - IFormContent, - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IFormContent, IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_ui_core_IFormContent: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; @@ -145108,9 +145345,13 @@ declare module "sap/m/Text" { CSSSize, } from "sap/ui/core/library"; - import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; + import { + IToolbarInteractiveControl, + EmptyIndicatorMode, + WrappingType, + } from "sap/m/library"; - import { EmptyIndicatorMode, WrappingType } from "sap/m/library"; + import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -145131,7 +145372,7 @@ declare module "sap/m/Text" { IFormContent, ISemanticFormContent, ILabelable, - /* was: sap.m.IToolbarInteractiveControl */ Object + IToolbarInteractiveControl { __implements__sap_ui_core_IShrinkable: boolean; __implements__sap_ui_core_IFormContent: boolean; @@ -150149,9 +150390,9 @@ declare module "sap/m/Title" { CSSSize, } from "sap/ui/core/library"; - import ElementMetadata from "sap/ui/core/ElementMetadata"; + import { IToolbarInteractiveControl, WrappingType } from "sap/m/library"; - import { WrappingType } from "sap/m/library"; + import ElementMetadata from "sap/ui/core/ElementMetadata"; import Title1 from "sap/ui/core/Title"; @@ -150187,7 +150428,7 @@ declare module "sap/m/Title" { */ export default class Title extends Control - implements IShrinkable, /* was: sap.m.IToolbarInteractiveControl */ Object + implements IShrinkable, IToolbarInteractiveControl { __implements__sap_ui_core_IShrinkable: boolean; __implements__sap_m_IToolbarInteractiveControl: boolean; @@ -150714,6 +150955,8 @@ declare module "sap/m/ToggleButton" { Button$PressEventParameters, } from "sap/m/Button"; + import { IToolbarInteractiveControl } from "sap/m/library"; + import { AccessibilityInfo } from "sap/ui/core/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -150730,7 +150973,7 @@ declare module "sap/m/ToggleButton" { */ export default class ToggleButton extends Button - implements /* was: sap.m.IToolbarInteractiveControl */ Object + implements IToolbarInteractiveControl { __implements__sap_m_IToolbarInteractiveControl: boolean; /** @@ -151847,6 +152090,12 @@ declare module "sap/m/Tokenizer" { */ fValidator: Function ): void; + /** + * Function to execute after the n-more popover is closed. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + */ + afterPopupClose(): void; /** * Attaches event handler `fnFunction` to the {@link #event:renderModeChange renderModeChange} event of * this `sap.m.Tokenizer`. @@ -166506,6 +166755,7 @@ declare module "sap/m/VariantManagement" { import { IOverflowToolbarContent, + IToolbarInteractiveControl, VariantManagementRename, VariantManagementExe, VariantManagementFav, @@ -166533,10 +166783,7 @@ declare module "sap/m/VariantManagement" { */ export default class VariantManagement extends Control - implements - IShrinkable, - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IShrinkable, IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_ui_core_IShrinkable: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; diff --git a/types/openui5/sap.tnt.d.ts b/types/openui5/sap.tnt.d.ts index dfa537440d1bd0..ad3d7d0b2e7f2a 100644 --- a/types/openui5/sap.tnt.d.ts +++ b/types/openui5/sap.tnt.d.ts @@ -1,10 +1,12 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/tnt/library" { /** * Interface for controls suitable for the `header` aggregation of {@link sap.tnt.ToolPage}. * * @since 1.68 + * @deprecated As of version 1.135. This interface is not needed anymore. The `ToolPage` now accepts any + * control as a header or subheader. */ export interface IToolHeader { __implements__sap_tnt_IToolHeader: boolean; @@ -783,6 +785,53 @@ declare module "sap/tnt/NavigationList" { */ oItem: NavigationListItemBase ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:itemPress itemPress} event of this `sap.tnt.NavigationList`. + * + * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified, + * otherwise it will be bound to this `sap.tnt.NavigationList` itself. + * + * Fired when an item is pressed. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachItemPress( + /** + * An application-specific payload object that will be passed to the event handler along with the event + * object when firing the event + */ + oData: object, + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: NavigationList$ItemPressEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.tnt.NavigationList` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:itemPress itemPress} event of this `sap.tnt.NavigationList`. + * + * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified, + * otherwise it will be bound to this `sap.tnt.NavigationList` itself. + * + * Fired when an item is pressed. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachItemPress( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: NavigationList$ItemPressEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.tnt.NavigationList` itself + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:itemSelect itemSelect} event of this `sap.tnt.NavigationList`. * @@ -837,6 +886,24 @@ declare module "sap/tnt/NavigationList" { * @returns Reference to `this` in order to allow method chaining */ destroyItems(): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:itemPress itemPress} event of this `sap.tnt.NavigationList`. + * + * The passed function and listener object must match the ones used for event registration. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + detachItemPress( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: NavigationList$ItemPressEvent) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Detaches event handler `fnFunction` from the {@link #event:itemSelect itemSelect} event of this `sap.tnt.NavigationList`. * @@ -855,6 +922,19 @@ declare module "sap/tnt/NavigationList" { */ oListener?: object ): this; + /** + * Fires event {@link #event:itemPress itemPress} to attached listeners. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns Reference to `this` in order to allow method chaining + */ + fireItemPress( + /** + * Parameters to pass along with the event + */ + mParameters?: NavigationList$ItemPressEventParameters + ): this; /** * Fires event {@link #event:itemSelect itemSelect} to attached listeners. * @@ -1119,8 +1199,31 @@ declare module "sap/tnt/NavigationList" { * Fired when an item is selected. */ itemSelect?: (oEvent: NavigationList$ItemSelectEvent) => void; + + /** + * Fired when an item is pressed. + */ + itemPress?: (oEvent: NavigationList$ItemPressEvent) => void; } + /** + * Parameters of the NavigationList#itemPress event. + */ + export interface NavigationList$ItemPressEventParameters { + /** + * The pressed item. + */ + item?: Item; + } + + /** + * Event object of the NavigationList#itemPress event. + */ + export type NavigationList$ItemPressEvent = Event< + NavigationList$ItemPressEventParameters, + NavigationList + >; + /** * Parameters of the NavigationList#itemSelect event. */ @@ -2325,6 +2428,53 @@ declare module "sap/tnt/SideNavigation" { * @returns Metadata object describing this class */ static getMetadata(): ElementMetadata; + /** + * Attaches event handler `fnFunction` to the {@link #event:itemPress itemPress} event of this `sap.tnt.SideNavigation`. + * + * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified, + * otherwise it will be bound to this `sap.tnt.SideNavigation` itself. + * + * Fired when an item is pressed. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachItemPress( + /** + * An application-specific payload object that will be passed to the event handler along with the event + * object when firing the event + */ + oData: object, + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: SideNavigation$ItemPressEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.tnt.SideNavigation` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:itemPress itemPress} event of this `sap.tnt.SideNavigation`. + * + * When called, the context of the event handler (its `this`) will be bound to `oListener` if specified, + * otherwise it will be bound to this `sap.tnt.SideNavigation` itself. + * + * Fired when an item is pressed. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + attachItemPress( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: SideNavigation$ItemPressEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.tnt.SideNavigation` itself + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:itemSelect itemSelect} event of this `sap.tnt.SideNavigation`. * @@ -2409,6 +2559,24 @@ declare module "sap/tnt/SideNavigation" { * @returns Reference to `this` in order to allow method chaining */ destroyItem(): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:itemPress itemPress} event of this `sap.tnt.SideNavigation`. + * + * The passed function and listener object must match the ones used for event registration. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + detachItemPress( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: SideNavigation$ItemPressEvent) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Detaches event handler `fnFunction` from the {@link #event:itemSelect itemSelect} event of this `sap.tnt.SideNavigation`. * @@ -2427,6 +2595,19 @@ declare module "sap/tnt/SideNavigation" { */ oListener?: object ): this; + /** + * Fires event {@link #event:itemPress itemPress} to attached listeners. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns Reference to `this` in order to allow method chaining + */ + fireItemPress( + /** + * Parameters to pass along with the event + */ + mParameters?: SideNavigation$ItemPressEventParameters + ): this; /** * Fires event {@link #event:itemSelect itemSelect} to attached listeners. * @@ -2460,7 +2641,7 @@ declare module "sap/tnt/SideNavigation" { * Default value is `Decorated`. * * @since 1.134 - * @experimental + * @experimental As of version 1.134. * * @returns Value of property `design` */ @@ -2555,7 +2736,7 @@ declare module "sap/tnt/SideNavigation" { * Default value is `Decorated`. * * @since 1.134 - * @experimental + * @experimental As of version 1.134. * * @returns Reference to `this` in order to allow method chaining */ @@ -2705,7 +2886,7 @@ declare module "sap/tnt/SideNavigation" { * to achieve a Side Navigation Overlay Mode. * * @since 1.134 - * @experimental + * @experimental As of version 1.134. */ design?: | (SideNavigationDesign | keyof typeof SideNavigationDesign) @@ -2740,8 +2921,31 @@ declare module "sap/tnt/SideNavigation" { * Fired when an item is selected. */ itemSelect?: (oEvent: SideNavigation$ItemSelectEvent) => void; + + /** + * Fired when an item is pressed. + */ + itemPress?: (oEvent: SideNavigation$ItemPressEvent) => void; } + /** + * Parameters of the SideNavigation#itemPress event. + */ + export interface SideNavigation$ItemPressEventParameters { + /** + * The pressed item. + */ + item?: Item; + } + + /** + * Event object of the SideNavigation#itemPress event. + */ + export type SideNavigation$ItemPressEvent = Event< + SideNavigation$ItemPressEventParameters, + SideNavigation + >; + /** * Parameters of the SideNavigation#itemSelect event. */ @@ -2767,8 +2971,6 @@ declare module "sap/tnt/ToolHeader" { $OverflowToolbarSettings, } from "sap/m/OverflowToolbar"; - import { IToolHeader } from "sap/tnt/library"; - import ElementMetadata from "sap/ui/core/ElementMetadata"; /** @@ -2809,11 +3011,7 @@ declare module "sap/tnt/ToolHeader" { * * @since 1.34 */ - export default class ToolHeader - extends OverflowToolbar - implements IToolHeader - { - __implements__sap_tnt_IToolHeader: boolean; + export default class ToolHeader extends OverflowToolbar { /** * Constructor for a new ToolHeader. * @@ -2982,8 +3180,6 @@ declare module "sap/tnt/ToolPage" { import { PageBackgroundDesign } from "sap/m/library"; - import { IToolHeader } from "sap/tnt/library"; - import ElementMetadata from "sap/ui/core/ElementMetadata"; import SideNavigation from "sap/tnt/SideNavigation"; @@ -3123,7 +3319,7 @@ declare module "sap/tnt/ToolPage" { * * The control to appear in the header area. */ - getHeader(): IToolHeader; + getHeader(): Control; /** * Gets content of aggregation {@link #getMainContents mainContents}. * @@ -3154,7 +3350,7 @@ declare module "sap/tnt/ToolPage" { * * @since 1.93 */ - getSubHeader(): IToolHeader; + getSubHeader(): Control; /** * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getMainContents mainContents}. * and returns its index if found or -1 otherwise. @@ -3238,7 +3434,7 @@ declare module "sap/tnt/ToolPage" { /** * The header to set */ - oHeader: IToolHeader + oHeader: Control ): this; /** * Sets the aggregated {@link #getSideContent sideContent}. @@ -3275,7 +3471,7 @@ declare module "sap/tnt/ToolPage" { /** * The subHeader to set */ - oSubHeader: IToolHeader + oSubHeader: Control ): this; /** * Toggles the expand/collapse state of the SideContent. @@ -3307,14 +3503,14 @@ declare module "sap/tnt/ToolPage" { /** * The control to appear in the header area. */ - header?: IToolHeader; + header?: Control; /** * The control to appear in the subheader area. * * @since 1.93 */ - subHeader?: IToolHeader; + subHeader?: Control; /** * The side menu of the layout. diff --git a/types/openui5/sap.ui.codeeditor.d.ts b/types/openui5/sap.ui.codeeditor.d.ts index 15b9f4a15e983e..1c4510d886c262 100644 --- a/types/openui5/sap.ui.codeeditor.d.ts +++ b/types/openui5/sap.ui.codeeditor.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/codeeditor/library" {} diff --git a/types/openui5/sap.ui.commons.d.ts b/types/openui5/sap.ui.commons.d.ts index cadbf2e450b168..b5a4e92312dc51 100644 --- a/types/openui5/sap.ui.commons.d.ts +++ b/types/openui5/sap.ui.commons.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/commons/library" { import { ColorPickerMode as ColorPickerMode1 } from "sap/ui/unified/library"; diff --git a/types/openui5/sap.ui.core.d.ts b/types/openui5/sap.ui.core.d.ts index d5d8242838bb3d..34d445d83276f8 100644 --- a/types/openui5/sap.ui.core.d.ts +++ b/types/openui5/sap.ui.core.d.ts @@ -279,7 +279,7 @@ declare namespace sap { "sap/ui/thirdparty/qunit-2": undefined; } } -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/base/assert" { /** @@ -1516,7 +1516,8 @@ declare module "sap/base/i18n/ResourceBundle" { enhanceWith?: Configuration[]; /** * Whether the first bundle should be loaded asynchronously Note: Fallback bundles loaded by {@link #getText } - * are always loaded synchronously. + * are always loaded synchronously. **As of version 1.135, synchronous loading is deprecated.** The `async` + * parameter must have the value `true`. */ async?: boolean; } @@ -5187,6 +5188,20 @@ declare module "sap/ui/core/Theming" { * @since 1.118.0 */ notifyContentDensityChanged(): void; + /** + * Sets the favicon. The path must be relative to the current origin. Absolute URLs are not allowed. + * + * @since 1.135 + * + * @returns A promise that resolves when the favicon has been set with undefined + */ + setFavicon( + /** + * A string containing a specific relative path to the favicon, 'true' to use a favicon from custom theme + * or the default favicon in case no custom favicon is maintained, 'false' or undefined to disable the favicon + */ + vFavicon: string | boolean | undefined + ): Promise; /** * Allows setting the theme name * @@ -11644,10 +11659,10 @@ declare module "sap/ui/base/ManagedObject" { import Event from "sap/ui/base/Event"; - import Binding from "sap/ui/model/Binding"; - import Context from "sap/ui/model/Context"; + import Binding from "sap/ui/model/Binding"; + import ManagedObjectMetadata from "sap/ui/base/ManagedObjectMetadata"; import Model from "sap/ui/model/Model"; @@ -12472,6 +12487,9 @@ declare module "sap/ui/base/ManagedObject" { * * For more information on the `oBindingInfo.key` property and its usage, see {@link https://ui5.sap.com/#/topic/7cdff73f308b4b10bdf7d83b7aba72e7 Extended Change Detection}. * + * Providing sorters and/or filters as positional parameters is deprecated as of 1.135.0. Provide them as + * part of a `BindingInfo` object instead. + * * * @returns Returns `this` to allow method chaining */ @@ -12481,9 +12499,14 @@ declare module "sap/ui/base/ManagedObject" { */ sName: string, /** - * Binding info + * A `BindingInfo` object or just the path, if no further properties are required */ - oBindingInfo: AggregationBindingInfo + vBindingInfo: AggregationBindingInfo | string, + /** + * The template to clone for each item in the aggregation; either a template `Element` or a factory function + * must be given + */ + vTemplate?: ManagedObject | ((p1: string, p2: Context) => ManagedObject) ): this; /** * Bind the object to the referenced entity in the model, which is used as the binding context to resolve @@ -12520,14 +12543,17 @@ declare module "sap/ui/base/ManagedObject" { * Also see {@link https://ui5.sap.com/#/topic/91f05e8b6f4d1014b6dd926db0e91070 Context Binding} in the * documentation. * + * As of 1.135, providing 'parameters' as positional parameter is deprecated. Provide them as part of a + * `BindingInfo` object instead. + * * * @returns Returns `this` to allow method chaining */ bindObject( /** - * Binding info + * A `BindingInfo` object or just the path, if no further properties are required */ - oBindingInfo: ObjectBindingInfo + vBindingInfo: ObjectBindingInfo | string ): this; /** * Binds a property to the model. @@ -12590,6 +12616,9 @@ declare module "sap/ui/base/ManagedObject" { * Also see {@link https://ui5.sap.com/#/topic/91f0652b6f4d1014b6dd926db0e91070 Property Binding} in the * documentation. * + * Providing a type, formatter, or bindingMode as a positional parameter is deprecated as of 1.135.0. Provide + * them as part of a `BindingInfo` object instead. + * * * @returns Returns `this` to allow method chaining */ @@ -12600,9 +12629,9 @@ declare module "sap/ui/base/ManagedObject" { */ sName: string, /** - * Binding information + * A `BindingInfo` object or just the path, if no further properties are required */ - oBindingInfo: PropertyBindingInfo + vBindingInfo: PropertyBindingInfo | string ): this; /** * Clones a tree of objects starting with the object on which clone is called first (root object). @@ -18653,6 +18682,8 @@ declare module "sap/ui/core/Component" { * The properties can also be defined in the descriptor. These properties can be overwritten by the local * properties of that function. * + * Synchronous Component creation is deprecated as of 1.135.0. + * * @since 1.47.0 * * @returns Component instance or Promise which will be resolved with the component instance (defaults to @@ -26998,7 +27029,7 @@ declare module "sap/ui/core/Element" { static registry: registry; /** - * Returns the nearest [UI5 Element]{@link sap.ui.core.Element} that wraps the given DOM element. + * Returns the nearest {@link sap.ui.core.Element UI5 Element} that wraps the given DOM element. * * A DOM element or a CSS selector is accepted as a given parameter. When a CSS selector is given as parameter, * only the first DOM element that matches the CSS selector is taken to find the nearest UI5 Element that @@ -27285,13 +27316,16 @@ declare module "sap/ui/core/Element" { */ bindElement( /** - * the binding path or an object with more detailed binding options + * A `BindingInfo` object or just the path, if no further properties are required */ - vPath: string | ObjectBindingInfo, + vBindingInfo: ObjectBindingInfo | string, /** * map of additional parameters for this binding. Only taken into account when `vPath` is a string. In that * case it corresponds to `mParameters` of {@link sap.ui.base.ManagedObject.ObjectBindingInfo}. The supported * parameters are listed in the corresponding model-specific implementation of `sap.ui.model.ContextBinding`. + * + * Providing 'parameters' as positional parameter is deprecated as of 1.135.0. Provide them as part of a + * `BindingInfo` object instead. */ mParameters?: object ): this; @@ -30769,15 +30803,18 @@ declare module "sap/ui/core/Fragment" { */ mOptions: { /** - * must be supplied if no `definition` parameter is given. The fragment name must correspond to an XML fragment - * which can be loaded via the module system (fragmentName + suffix `.fragment.`) - * and which contains the fragment definition. If `mOptions.controller` is supplied, the (event handler) - * methods referenced in the fragment will be called on that controller. Note that fragments may require - * a controller to be given and certain methods to be implemented by it. + * Must be provided if no `definition` parameter is given. The fragment name must correspond to an XML fragment + * which can be loaded via the module system and must contain the fragment definition. It can be specified + * either in dot notation (fragmentName + suffix `.fragment.`) or, for JS fragments, + * in module name syntax (`module:my/sample/AsyncButton`). If `mOptions.controller` is supplied, the (event + * handler) methods referenced in the fragment will be called on that controller. Note that fragments may + * require a controller to be given and certain methods to be implemented by it. */ name?: string; /** - * the fragment type, e.g. `"XML"`, `"JS"`, or `"HTML"` (type `"HTML"` is deprecated). Default is `"XML"` + * the fragment type, e.g. `"XML"`, `"JS"`, or `"HTML"` (type `"HTML"` is deprecated). Default is `"XML"`. + * If the fragment name is given in module name syntax (e.g., `module:my/sample/AsyncButton`) the type must + * be omitted. */ type?: string; /** @@ -34486,15 +34523,16 @@ declare module "sap/ui/core/LocaleData" { sCurrencySymbol: string ): string; /** - * Returns the number of digits of the specified currency. + * Returns the number of digits of the given currency considering a custom currency first and falling back + * to the CLDR data if no custom currency is defined. * * @since 1.21.1 * - * @returns digits of the currency + * @returns The number of digits for the given currency */ getCurrencyDigits( /** - * ISO 4217 currency code + * The ISO 4217 currency code */ sCurrency: string ): int; @@ -35335,14 +35373,14 @@ declare module "sap/ui/core/LocaleData" { * @since 1.54 * * @returns The unit format pattern for the given unit name as a map from a pattern key like `"unitPattern-count-other"` - * to the corresponding pattern + * to the corresponding pattern or `undefined` if no corresponding pattern is found */ getUnitFormat( /** * unit name, e.g. "duration-hour" */ sUnit: string - ): Record; + ): Record | undefined; /** * Retrieves unit format patterns for all units see {@link #getResolvedUnitFormat} for an example of a unit * format pattern. @@ -36795,7 +36833,8 @@ declare module "sap/ui/core/mvc/Controller" { mOptions: { /** * The controller name that corresponds to a JS module that can be loaded via the module system (mOptions.name - * + suffix ".controller.js") + * + suffix ".controller.js"). It can be specified either in dot notation (`my.sample.Controller`) or in + * module name syntax (`module:my/sample/Controller`). */ name: string; } @@ -36999,8 +37038,9 @@ declare module "sap/ui/core/mvc/Controller" { */ mOptions: { /** - * The Fragment name, which must correspond to a Fragment which can be loaded via the module system (fragmentName - * + suffix ".fragment.[typeextension]") and which contains the Fragment definition. + * The fragment name, which must correspond to a fragment which can be loaded via the module system (mOptions.name + * + suffix ".fragment.[typeextension]") and must contain the fragment definition. It can be specified either + * in dot notation (`my.sample.myFragment`) or, for JS fragments, in module name syntax (`module:my/sample/myFragment`). */ name: string; /** @@ -37012,11 +37052,12 @@ declare module "sap/ui/core/mvc/Controller" { */ autoPrefixId?: boolean; /** - * the ID of the Fragment + * the ID of the fragment */ id?: string; /** - * the Fragment type, e.g. "XML", "JS", or "HTML" (see above). Default is "XML" + * the fragment type, e.g. "XML", "JS", or "HTML" (see above). Default is "XML". If the fragment name is + * given in module name syntax (e.g., `module:my/sample/myFragment`) the type must be omitted. */ type?: string; } @@ -37125,6 +37166,11 @@ declare module "sap/ui/core/mvc/ControllerExtension" { * @ui5-protected Do not call from applications (only from related classes in the framework) */ protected constructor(); + /** + * The `overrides` definition object, which is used to specify methods of the base class to override. The + * names of this object's properties are method names like `onInit` and the values are the respective implementation. + */ + static readonly overrides?: Overrides; /** * Creates a new subclass of class sap.ui.core.mvc.ControllerExtension with name `sClassName` and enriches @@ -37265,6 +37311,15 @@ declare module "sap/ui/core/mvc/ControllerExtension" { */ getView(): View; } + /** + * The type of the `overrides` property + */ + export type Overrides = { [key: string]: any } & Partial< + Pick< + (typeof import("sap/ui/core/mvc/Controller").default)["prototype"], + "onAfterRendering" | "onBeforeRendering" | "onExit" | "onInit" + > + >; } declare module "sap/ui/core/mvc/HTMLView" { @@ -37918,14 +37973,17 @@ declare module "sap/ui/core/mvc/View" { * ``` * * - * Other Methods: Besides `createContent`, there are two other methods that a view can implement: Method - * {@link #getControllerName getControllerName} defines the name of the controller that should be instantiated - * and used for the view. The name must be in class name notation (dot notation), without the `".controller"` - * suffix. The suffix will be added by the framework when loading the module containing the controller. - * - * {@link #getAutoPrefixId getAutoPrefixId} defines whether the IDs of controls created during the execution - * of `createContent` will be prefixed with the ID of the view automatically. The default implementation - * of this method returns `false`. + * Other Methods: Besides `createContent`, there are other methods that a view can implement: + * - Method {@link #getControllerName getControllerName} defines the name of the controller that should + * be instantiated and used for the view. The name must be in class name notation (dot notation), without + * the `".controller"` suffix. The suffix will be added by the framework when loading the module containing + * the controller. + * - Method {@link #getControllerModuleName getControllerModuleName} defines the module name of the controller + * that should be loaded for the view. Unlike `getControllerName`, the name must be in `sap.ui.define/sap.ui.require` + * syntax (slash-separated name without '.js' suffix). + * - {@link #getAutoPrefixId getAutoPrefixId} defines whether the IDs of controls created during the execution + * of `createContent` will be prefixed with the ID of the view automatically. The default implementation + * of this method returns `false`. */ export default abstract class View extends Control { /** @@ -38550,6 +38608,16 @@ declare module "sap/ui/core/mvc/View" { * @returns Controller of this view. */ getController(): Controller; + /** + * An optional method that views can implement to return the controller's module name in `sap.ui.define/sap.ui.require` + * syntax (slash-separated name without '.js' suffix). If no controller instance is provided at the time + * of View instantiation AND this method exists, the View attempts to load and instantiate the controller + * and to connect it to itself. + * + * + * @returns Name of the module name from which to load the view definition. + */ + getControllerModuleName(): string; /** * An (optional) method to be implemented by Views. When no controller instance is given at View instantiation * time AND this method exists and returns the (package and class) name of a controller, the View tries @@ -71576,6 +71644,8 @@ declare module "sap/ui/model/odata/v4/Context" { * * Note: For a transient context (see {@link #isTransient}) a wrong path is returned unless all key properties * are available within the initial data. + * See: + * #requestCanonicalPath * * @since 1.39.0 * @@ -71832,6 +71902,10 @@ declare module "sap/ui/model/odata/v4/Context" { * A parameter object */ oParameters: { + /** + * Whether the node should be copied instead of moved (@experimental as of version 1.135.0) + */ + copy?: boolean; /** * The next sibling's context, or `null` to turn this node into the last sibling. Omitting the sibling moves * this node to a position determined by the server. @@ -71888,6 +71962,8 @@ declare module "sap/ui/model/odata/v4/Context" { * * Note: For a transient context (see {@link #isTransient}) a wrong path is returned unless all key properties * are available within the initial data. + * See: + * #getCanonicalPath * * @since 1.39.0 * @@ -72364,7 +72440,9 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" { /** * Changes this binding's parameters and refreshes the binding. Since 1.111.0, a list binding's header context * is deselected, but (since 1.120.13) only if the binding parameter '$$clearSelectionOnFilter' is set and - * the '$filter' or '$search' parameter is changed. + * the '$filter' or '$search' parameter is changed. In all other cases, the caller of this method needs + * to evaluate whether the changed parameters invalidate the current selection and then deselect the header + * context if needed. * * If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges } * to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch } @@ -73031,7 +73109,9 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { /** * Changes this binding's parameters and refreshes the binding. Since 1.111.0, a list binding's header context * is deselected, but (since 1.120.13) only if the binding parameter '$$clearSelectionOnFilter' is set and - * the '$filter' or '$search' parameter is changed. + * the '$filter' or '$search' parameter is changed. In all other cases, the caller of this method needs + * to evaluate whether the changed parameters invalidate the current selection and then deselect the header + * context if needed. * * If there are pending changes that cannot be ignored, an error is thrown. Use {@link #hasPendingChanges } * to check if there are such pending changes. If there are, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch } @@ -73535,6 +73615,17 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { | ODataListBinding | ODataPropertyBinding | undefined; + /** + * Returns the count of selected elements as a number of type `Edm.Int64`. The count is bindable via the + * header context (see {@link #getHeaderContext}) and path `$selectionCount`; it is either available synchronously + * or unknown. It is unknown if the binding is relative but has no context and also if the list binding's + * {@link sap.ui.model.odata.v4.ODataListBinding#getHeaderContext header context} is selected ("select all"). + * + * @since 1.135.0 + * + * @returns The count of selected elements or `undefined` if the count or the header context is not available. + */ + getSelectionCount(): number | undefined; /** * Returns the group ID of the binding that is used for update requests. The update group ID of the binding * is alternatively defined by @@ -74567,6 +74658,17 @@ declare module "sap/ui/model/odata/v4/ODataMetaModel" { */ sPropertyPath: string ): ValueListType; + /** + * Tells whether this metadata model's service prefers requests to use a resource path with navigation properties + * instead of a canonical path, thus reflecting the object composition. See "com.sap.vocabularies.Common.v1.AddressViaNavigationPath" + * for more details. + * + * @since 1.135.0 + * + * @returns `true` if the "com.sap.vocabularies.Common.v1.AddressViaNavigationPath" tag is present, `undefined` + * if it is missing or metadata is not (yet) available + */ + isAddressViaNavigationPath(): boolean | undefined; /** * Method not supported * See: @@ -75434,7 +75536,10 @@ declare module "sap/ui/model/odata/v4/ODataModel" { $$canonicalPath?: boolean; /** * Whether the selection state of the list binding is cleared when a filter is changed; this includes dynamic - * filters, '$filter', '$search', and `$$aggregation.search`. Supported since 1.120.13. + * filters, '$filter', '$search', and `$$aggregation.search`. Supported since 1.120.13. Since 1.135.0, the + * selection state is validated when reloading the list binding's data. The {@link sap.ui.model.odata.v4.Context#isSelected selection states of contexts } + * which no longer match the current filter are reset. **Note:** The selection state is not validated if + * the `$$aggregation` parameter is used. */ $$clearSelectionOnFilter?: boolean; /** @@ -75521,6 +75626,16 @@ declare module "sap/ui/model/odata/v4/ODataModel" { * binding refers to an action advertisement the binding's mode must be {@link sap.ui.model.BindingMode.OneTime}. * {@link sap.ui.model.BindingMode.OneWay OneWay} is also supported (since 1.130.0) for complex types and * collections thereof; for entity types, use {@link #bindContext} instead. + * + * Since 1.135.0, the binding may also point to an array element inside a collection of primitive type, + * for example in the context of geography locations. Let's assume "GeoLocation" is a structural property + * of type "Edm.GeographyPoint", then "coordinates" is a structural property of type "Collection(Edm.Double)": + * + * ```javascript + * + * + * ``` + * * See: * sap.ui.base.ManagedObject#bindProperty * sap.ui.model.Model#bindProperty @@ -87528,6 +87643,7 @@ declare namespace sap { * }, * * // activate real async loading and module definitions + * // (will become obsolete in 2.0 contexts as async will be the only mode there) * async: true, * * // provide dependency and export metadata for non-UI5 modules @@ -87669,6 +87785,8 @@ declare namespace sap { * on the application bootstrap tag. * * **Note:** Switching back from async to sync is not supported and trying to do so will throw an `Error` + * + * In the next major version of UI5, this option will become obsolete as async will be the only mode. */ async?: boolean; /** @@ -88029,6 +88147,8 @@ declare namespace sap { "sap/ui/core/Element": undefined; + "sap/ui/core/ElementHooks": undefined; + "sap/ui/core/ElementMetadata": undefined; "sap/ui/core/ElementRegistry": undefined; diff --git a/types/openui5/sap.ui.dt.d.ts b/types/openui5/sap.ui.dt.d.ts index cdd8af31e5459b..d33a758db79101 100644 --- a/types/openui5/sap.ui.dt.d.ts +++ b/types/openui5/sap.ui.dt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare namespace sap { interface IUI5DefineDependencyNames { diff --git a/types/openui5/sap.ui.fl.d.ts b/types/openui5/sap.ui.fl.d.ts index 5575a439d4f0ee..5edfd61657de2e 100644 --- a/types/openui5/sap.ui.fl.d.ts +++ b/types/openui5/sap.ui.fl.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/fl/library" {} @@ -201,7 +201,10 @@ declare module "sap/ui/fl/variants/VariantManagement" { import { IShrinkable, ID, TitleLevel, CSSSize } from "sap/ui/core/library"; - import { IOverflowToolbarContent } from "sap/m/library"; + import { + IOverflowToolbarContent, + IToolbarInteractiveControl, + } from "sap/m/library"; import Event from "sap/ui/base/Event"; @@ -218,10 +221,7 @@ declare module "sap/ui/fl/variants/VariantManagement" { */ export default class VariantManagement extends Control - implements - IShrinkable, - IOverflowToolbarContent, - /* was: sap.m.IToolbarInteractiveControl */ Object + implements IShrinkable, IOverflowToolbarContent, IToolbarInteractiveControl { __implements__sap_ui_core_IShrinkable: boolean; __implements__sap_m_IOverflowToolbarContent: boolean; @@ -1585,6 +1585,10 @@ declare namespace sap { "sap/ui/fl/apply/_internal/flexObjects/Variant": undefined; + "sap/ui/fl/apply/_internal/flexObjects/VariantChange": undefined; + + "sap/ui/fl/apply/_internal/flexObjects/VariantManagementChange": undefined; + "sap/ui/fl/apply/_internal/flexState/changes/DependencyHandler": undefined; "sap/ui/fl/apply/_internal/flexState/changes/ExtensionPointState": undefined; @@ -1639,6 +1643,8 @@ declare namespace sap { "sap/ui/fl/ChangePersistenceFactory": undefined; + "sap/ui/fl/descriptorRelated/api/DescriptorChange": undefined; + "sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory": undefined; "sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory": undefined; @@ -1751,6 +1757,8 @@ declare namespace sap { "sap/ui/fl/write/api/AppVariantWriteAPI": undefined; + "sap/ui/fl/write/api/BusinessNetworkAPI": undefined; + "sap/ui/fl/write/api/ChangesWriteAPI": undefined; "sap/ui/fl/write/api/connectors/ObjectStorageConnector": undefined; diff --git a/types/openui5/sap.ui.integration.d.ts b/types/openui5/sap.ui.integration.d.ts index 70a8795c8b0fac..3b7e18e466d81a 100644 --- a/types/openui5/sap.ui.integration.d.ts +++ b/types/openui5/sap.ui.integration.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/integration/library" { import { URI } from "sap/ui/core/library"; @@ -972,9 +972,7 @@ declare module "sap/ui/integration/widgets/Card" { /** * Illustration size */ - illustrationSize?: - | IllustratedMessageSize - | keyof typeof IllustratedMessageSize; + illustrationSize?: IllustratedMessageSize; /** * Title */ diff --git a/types/openui5/sap.ui.layout.d.ts b/types/openui5/sap.ui.layout.d.ts index 44071ecdfdd376..473ad1fef8171d 100644 --- a/types/openui5/sap.ui.layout.d.ts +++ b/types/openui5/sap.ui.layout.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/layout/library" { import Control from "sap/ui/core/Control"; @@ -374,6 +374,7 @@ declare module "sap/ui/layout/library" { * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/gap} * * @since 1.60.0 + * @deprecated As of version 1.135. use {@link sap.ui.core.CSSGapShortHand} instead */ type CSSGridGapShortHand = CSSGapShortHand; @@ -1778,7 +1779,7 @@ declare module "sap/ui/layout/cssgrid/CSSGrid" { import GridLayoutBase from "sap/ui/layout/cssgrid/GridLayoutBase"; - import { CSSSize } from "sap/ui/core/library"; + import { CSSSize, CSSGapShortHand } from "sap/ui/core/library"; import GridBasicLayout from "sap/ui/layout/cssgrid/GridBasicLayout"; @@ -2024,7 +2025,7 @@ declare module "sap/ui/layout/cssgrid/CSSGrid" { * * @returns Value of property `gridGap` */ - getGridGap(): cssgrid.CSSGridGapShortHand; + getGridGap(): CSSGapShortHand; /** * Returns the layout configuration of the `CSSGrid`. * @@ -2239,7 +2240,7 @@ declare module "sap/ui/layout/cssgrid/CSSGrid" { /** * New value for property `gridGap` */ - sGridGap?: cssgrid.CSSGridGapShortHand + sGridGap?: CSSGapShortHand ): this; /** * Sets a new value for property {@link #getGridRowGap gridRowGap}. @@ -2354,7 +2355,7 @@ declare module "sap/ui/layout/cssgrid/CSSGrid" { * It is a shorthand for gridRowGap and gridColumnGap. If some of them is set, the gridGap value will have * less priority and will be overwritten. */ - gridGap?: cssgrid.CSSGridGapShortHand | PropertyBindingInfo | `{${string}}`; + gridGap?: CSSGapShortHand | PropertyBindingInfo | `{${string}}`; /** * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows} @@ -2397,7 +2398,7 @@ declare module "sap/ui/layout/cssgrid/GridBasicLayout" { import { cssgrid } from "sap/ui/layout/library"; - import { CSSSize } from "sap/ui/core/library"; + import { CSSSize, CSSGapShortHand } from "sap/ui/core/library"; import ManagedObjectMetadata from "sap/ui/base/ManagedObjectMetadata"; @@ -2525,7 +2526,7 @@ declare module "sap/ui/layout/cssgrid/GridBasicLayout" { * * @returns Value of property `gridGap` */ - getGridGap(): cssgrid.CSSGridGapShortHand; + getGridGap(): CSSGapShortHand; /** * Gets current value of property {@link #getGridRowGap gridRowGap}. * @@ -2649,7 +2650,7 @@ declare module "sap/ui/layout/cssgrid/GridBasicLayout" { /** * New value for property `gridGap` */ - sGridGap?: cssgrid.CSSGridGapShortHand + sGridGap?: CSSGapShortHand ): this; /** * Sets a new value for property {@link #getGridRowGap gridRowGap}. @@ -2739,7 +2740,7 @@ declare module "sap/ui/layout/cssgrid/GridBasicLayout" { /** * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap} */ - gridGap?: cssgrid.CSSGridGapShortHand | PropertyBindingInfo | `{${string}}`; + gridGap?: CSSGapShortHand | PropertyBindingInfo | `{${string}}`; /** * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows} @@ -3826,7 +3827,7 @@ declare module "sap/ui/layout/cssgrid/GridSettings" { import { cssgrid } from "sap/ui/layout/library"; - import { CSSSize } from "sap/ui/core/library"; + import { CSSSize, CSSGapShortHand } from "sap/ui/core/library"; import ManagedObjectMetadata from "sap/ui/base/ManagedObjectMetadata"; @@ -3952,7 +3953,7 @@ declare module "sap/ui/layout/cssgrid/GridSettings" { * * @returns Value of property `gridGap` */ - getGridGap(): cssgrid.CSSGridGapShortHand; + getGridGap(): CSSGapShortHand; /** * Gets current value of property {@link #getGridRowGap gridRowGap}. * @@ -4076,7 +4077,7 @@ declare module "sap/ui/layout/cssgrid/GridSettings" { /** * New value for property `gridGap` */ - sGridGap?: cssgrid.CSSGridGapShortHand + sGridGap?: CSSGapShortHand ): this; /** * Sets a new value for property {@link #getGridRowGap gridRowGap}. @@ -4166,7 +4167,7 @@ declare module "sap/ui/layout/cssgrid/GridSettings" { /** * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-gap MDN web docs: grid-gap} */ - gridGap?: cssgrid.CSSGridGapShortHand | PropertyBindingInfo | `{${string}}`; + gridGap?: CSSGapShortHand | PropertyBindingInfo | `{${string}}`; /** * Sets the value for the CSS display:grid property {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows MDN web docs: grid-auto-rows} diff --git a/types/openui5/sap.ui.mdc.d.ts b/types/openui5/sap.ui.mdc.d.ts index 411345c05eacd3..5d8b46997c52f9 100644 --- a/types/openui5/sap.ui.mdc.d.ts +++ b/types/openui5/sap.ui.mdc.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/mdc/AggregationBaseDelegate" { import BaseDelegate from "sap/ui/mdc/BaseDelegate"; @@ -3313,7 +3313,7 @@ declare module "sap/ui/mdc/library" { /** * Describes the filter conditions */ - filter?: State.XCondition; + filter?: Record; /** * Describes the filter fields */ @@ -3468,7 +3468,12 @@ declare module "sap/ui/mdc/library" { /** * Closes the container */ - close(): void; + close( + /** + * If set, closing must not restore the focus on the field + */ + bDoNotRestoreFocus: boolean + ): void; /** * Opens the container * @@ -3541,7 +3546,12 @@ declare module "sap/ui/mdc/library" { /** * Closes the container */ - close(): void; + close( + /** + * If set, closing must not restore the focus on the field + */ + bDoNotRestoreFocus: boolean + ): void; /** * Determines the item (key and description) for a given value. * @@ -21683,13 +21693,23 @@ declare module "sap/ui/mdc/valuehelp/base/Container" { /** * Closes the container */ - close(): void; + close( + /** + * If set, closing must not restore the focus on the field + */ + bDoNotRestoreFocus: boolean + ): void; /** * Closes the container control or element. * * @ui5-protected Do not call from applications (only from related classes in the framework) */ - closeContainer(): void; + closeContainer( + /** + * If set, closing must not restore the focus on the field + */ + bDoNotRestoreFocus: boolean + ): void; /** * Destroys all the content in the aggregation {@link #getContent content}. * diff --git a/types/openui5/sap.ui.rta.d.ts b/types/openui5/sap.ui.rta.d.ts index dfe1dc46218023..9784123002be3b 100644 --- a/types/openui5/sap.ui.rta.d.ts +++ b/types/openui5/sap.ui.rta.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/rta/api/startAdaptation" { import Control from "sap/ui/core/Control"; @@ -105,6 +105,10 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" { * Change type */ annotationChangeType: string; + /** + * Url of the OData service + */ + serviceUrl: string; /** * Change content */ @@ -117,11 +121,25 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" { * New value */ value: string; + /** + * New value as translatable text. If given, the value is ignored + */ + text: string; + /** + * Object template to construct a return object. If given the applyChange function will return an object + * as value, which is parsed from the template string. + */ + objectTemplateInfo?: { + /** + * Stringified template to be used for constructing the return object + */ + templateAsString?: string; + /** + * Placeholder in the template string. Will be replaced by the new value + */ + placeholder?: string; + }; }; - /** - * Url of the OData service - */ - serviceUrl: string; }; /** @@ -148,6 +166,14 @@ declare module "sap/ui/rta/plugin/annotations/AnnotationChangeDialog" { * Current value of the property */ currentValue: string; + /** + * Label of the property. If not given, the property name is used + */ + label?: string; + /** + * Tooltip of the property + */ + tooltip?: string; }>; /** * Array of possible values for value list type properties diff --git a/types/openui5/sap.ui.suite.d.ts b/types/openui5/sap.ui.suite.d.ts index 13ad6ad1442b8f..fe067d8d835c9b 100644 --- a/types/openui5/sap.ui.suite.d.ts +++ b/types/openui5/sap.ui.suite.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/suite/library" { /** diff --git a/types/openui5/sap.ui.support.d.ts b/types/openui5/sap.ui.support.d.ts index c6a90a697951ae..21b418ed9c2e07 100644 --- a/types/openui5/sap.ui.support.d.ts +++ b/types/openui5/sap.ui.support.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/support/library" { /** @@ -413,12 +413,6 @@ declare namespace sap { * @since 1.50 */ namespace support { - /** - * The CoreFacade interface allows rule developers to access the metadata, models, UI areas and components - * of the Core. - * - * Usage: The CoreFacade is passed as second argument to all rule check functions. - */ class CoreFacade { /** * @ui5-protected Do not call from applications (only from related classes in the framework) @@ -427,26 +421,46 @@ declare namespace sap { /** * Gets the Components from the Core object. + * + * + * @returns Object with all components, keyed by their ID */ - getComponents(): void; + getComponents(): Record< + import("sap/ui/core/library").ID, + import("sap/ui/core/Component").default + >; /** * Gets the Metadata from the Core object. + * + * @deprecated As of version 1.119. without replacement. In future major versions, the Core no longer has + * a class nature and no longer inherits from sap.ui.base.Object and therefore no longer has metadata. + * + * @returns Metadata object describing the Core object */ - getMetadata(): void; + getMetadata(): import("sap/ui/base/Metadata").default; /** * Gets the Models from the Core object. + * + * @deprecated As of version 1.118.0. without replacement. In future major versions, the Core no longer + * has global models. + * + * @returns Object with all models, keyed by their name */ - getModels(): void; + getModels(): + | Record + | undefined; /** * Gets the UI areas from the Core object. + * + * + * @returns Object with all UIAreas, keyed by their ID */ - getUIAreas(): void; + getUIAreas(): Record< + import("sap/ui/core/library").ID, + import("sap/ui/core/UIArea").default + >; } - /** - * The IssueManagerFacade allows rule developers to add new issues. - * - * Usage: The IssueManagerFacade is passed as first argument to all rule check functions. - */ + class IssueManagerFacade { /** * @ui5-protected Do not call from applications (only from related classes in the framework) diff --git a/types/openui5/sap.ui.table.d.ts b/types/openui5/sap.ui.table.d.ts index e38b0ac2d0e577..87a4f0ecc105b4 100644 --- a/types/openui5/sap.ui.table.d.ts +++ b/types/openui5/sap.ui.table.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/table/library" { import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode"; @@ -619,9 +619,9 @@ declare module "sap/ui/table/AnalyticalTable" { import Event from "sap/ui/base/Event"; /** - * Table which handles analytical OData backends. The AnalyticalTable only works with an AnalyticalBinding - * and correctly annotated OData services. Please check on the SAP Annotations for OData Version 2.0 documentation - * for further details. + * Table that handles analytical OData back-end scenarios. The `AnalyticalTable` only works with {@link sap.ui.model.analytics.AnalyticalBinding AnalyticalBinding } + * and correctly annotated OData services. Please check out the functionality of analytical binding and + * the SAP Annotations for OData Version 2.0 documentation for further details. */ export default class AnalyticalTable extends Table { /** @@ -3071,7 +3071,7 @@ declare module "sap/ui/table/plugins/MultiSelectionPlugin" { */ export default class MultiSelectionPlugin extends SelectionPlugin { /** - * Constructs an instance of sap.ui.table.plugins.MultiSelectionPlugin + * Constructs an instance of sap.ui.table.plugins.MultiSelectionPlugin. * * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description @@ -3570,20 +3570,16 @@ declare module "sap/ui/table/plugins/SelectionPlugin" { import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; /** - * Implements the selection methods for a table. + * Base class for the selection plugins. A selection plugin is responsible for the selection behavior of + * the table. It handles the selection state and provides information about the selection state to the table. + * The subclass is also responsible for firing the `selectionChange` event when the selection is changed. + * + * Do not add more than one selection plugin to a table. * * @since 1.64 - * @experimental As of version 1.64. */ export default abstract class SelectionPlugin extends UI5Element { /** - * Constructs an instance of sap.ui.table.plugins.SelectionPlugin - * - * The following restrictions apply: - * - Do not create subclasses of the `SelectionPlugin`. The API is subject to change. **Note:** Subclasses - * provided by the UI5 framework that are not explicitly marked as experimental or restricted in any other - * way can be used on a regular basis. - * * Accepts an object literal `mSettings` that defines initial property values, aggregated and associated * objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description * of the syntax of the settings object. @@ -3749,8 +3745,6 @@ declare module "sap/ui/table/plugins/SelectionPlugin" { } /** * Describes the settings that can be provided to the SelectionPlugin constructor. - * - * @experimental As of version 1.64. */ export interface $SelectionPluginSettings extends $ElementSettings { /** @@ -11437,8 +11431,6 @@ declare namespace sap { "sap/ui/table/plugins/SelectionPlugin": undefined; - "sap/ui/table/plugins/V4Aggregation": undefined; - "sap/ui/table/Row": undefined; "sap/ui/table/RowAction": undefined; diff --git a/types/openui5/sap.ui.testrecorder.d.ts b/types/openui5/sap.ui.testrecorder.d.ts index bede396aa19b08..4a9fa7662cfef0 100644 --- a/types/openui5/sap.ui.testrecorder.d.ts +++ b/types/openui5/sap.ui.testrecorder.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/testrecorder/library" {} diff --git a/types/openui5/sap.ui.unified.d.ts b/types/openui5/sap.ui.unified.d.ts index 1db92ba85a1942..f4611725871a07 100644 --- a/types/openui5/sap.ui.unified.d.ts +++ b/types/openui5/sap.ui.unified.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/unified/library" { /** @@ -1375,6 +1375,21 @@ declare module "sap/ui/unified/Calendar" { */ oInitialFocusedDate?: object ): this; + /** + * Setter for the property `intervalSelection`. If set to `true`, an interval of dates can be selected. + * + * **Note:** This property should be set to `false` if `singleSelection` is set to `false`, as selecting + * multiple intervals is not supported. + * + * + * @returns Reference to `this` for method chaining + */ + setIntervalSelection( + /** + * Indicates if `intervalSelection` should be enabled + */ + bEnabled: boolean + ): this; /** * Sets the associated {@link #getLegend legend}. * @@ -1534,6 +1549,22 @@ declare module "sap/ui/unified/Calendar" { */ bShowWeekNumbers?: boolean ): this; + /** + * Setter for the property `singleSelection`. If set to `true` only a single date or single interval, when + * `intervalSelection` is set to `true`, can be selected. + * + * **Note:** This property should be set to `true` if `intervalSelection` is set to `true`, as selecting + * multiple intervals is not supported. + * + * + * @returns Reference to `this` for method chaining + */ + setSingleSelection( + /** + * Indicates if `singleSelection` should be enabled + */ + bEnabled: boolean + ): this; /** * Sets a new value for property {@link #getWidth width}. * diff --git a/types/openui5/sap.ui.ux3.d.ts b/types/openui5/sap.ui.ux3.d.ts index d056358b5a1f76..25a097b56b0fef 100644 --- a/types/openui5/sap.ui.ux3.d.ts +++ b/types/openui5/sap.ui.ux3.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/ux3/library" { /** diff --git a/types/openui5/sap.ui.webc.common.d.ts b/types/openui5/sap.ui.webc.common.d.ts index 933b6c05f8b7cf..e350a35d8c06d9 100644 --- a/types/openui5/sap.ui.webc.common.d.ts +++ b/types/openui5/sap.ui.webc.common.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/webc/common/library" {} diff --git a/types/openui5/sap.ui.webc.fiori.d.ts b/types/openui5/sap.ui.webc.fiori.d.ts index 22f1a0cb9dea7c..0fe19540d5c380 100644 --- a/types/openui5/sap.ui.webc.fiori.d.ts +++ b/types/openui5/sap.ui.webc.fiori.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/webc/fiori/library" { /** diff --git a/types/openui5/sap.ui.webc.main.d.ts b/types/openui5/sap.ui.webc.main.d.ts index 54b549aefdb48e..8c64a6343f028a 100644 --- a/types/openui5/sap.ui.webc.main.d.ts +++ b/types/openui5/sap.ui.webc.main.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/ui/webc/main/library" { /** diff --git a/types/openui5/sap.uxap.d.ts b/types/openui5/sap.uxap.d.ts index fde5026d26d70c..d2abc39ec6d591 100644 --- a/types/openui5/sap.uxap.d.ts +++ b/types/openui5/sap.uxap.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.134.0 +// For Library Version: 1.135.0 declare module "sap/uxap/library" { /** @@ -7487,6 +7487,15 @@ declare module "sap/uxap/ObjectPageSectionBase" { * If you want to change some of the button properties, you would need to bind them to a model. */ getCustomAnchorBarButton(): Button; + /** + * Returns the effectively applied title level. Could be different than "titleLevel" property, according + * to internal UX rules. + * + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns the effective title level + */ + getEffectiveTitleLevel(): string; /** * Gets current value of property {@link #getImportance importance}. *