diff --git a/types/openui5/index.d.ts b/types/openui5/index.d.ts index de443d10b7e19f..a4414203e76322 100644 --- a/types/openui5/index.d.ts +++ b/types/openui5/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for OpenUI5 1.99 +// Type definitions for OpenUI5 1.100 // Project: https://github.com/SAP/openui5 // Definitions by: OpenUI5 Bot // Peter Muessig diff --git a/types/openui5/openui5-tests.ts b/types/openui5/openui5-tests.ts index 8105d9704b603a..00474c09c0e03b 100644 --- a/types/openui5/openui5-tests.ts +++ b/types/openui5/openui5-tests.ts @@ -21,6 +21,7 @@ import Target from "sap/ui/core/routing/Target"; import MessagePage from "sap/m/MessagePage"; import { TitleLevel } from "sap/ui/core/library"; import DateTimePicker from "sap/m/DateTimePicker"; +import DateFormatTimezoneDisplay from "sap/ui/core/format/DateFormatTimezoneDisplay"; /* * REMARK: the type definition files are automatically generated and this generation is tested, @@ -144,3 +145,5 @@ messagePage.setTitleLevel(TitleLevel.H1); const odataV4ListBinding = new ODataV4ListBinding(); const odataV4ListBindingCount = odataV4ListBinding.getCount(); const context = odataV4ListBinding.getKeepAliveContext("x"); + +const showTimeZone = DateFormatTimezoneDisplay.Show; diff --git a/types/openui5/sap.f.d.ts b/types/openui5/sap.f.d.ts index 4113a8887d73ac..1e982564f0c14f 100644 --- a/types/openui5/sap.f.d.ts +++ b/types/openui5/sap.f.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare module "sap/tnt/library" { export interface IToolHeader { diff --git a/types/openui5/sap.m.d.ts b/types/openui5/sap.m.d.ts index bf90408c3f654a..4540d5099045b6 100644 --- a/types/openui5/sap.m.d.ts +++ b/types/openui5/sap.m.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare module "sap/f/library" { export interface IShellBar { @@ -774,12 +774,14 @@ declare module "sap/m/library" { */ HeaderMode = "HeaderMode", /** + * @SINCE 1.96 * @EXPERIMENTAL (since 1.96) * * Icon mode. * - * GenericTile displays a combination of icon and header title. It is applicable only for the OneByOne FrameType - * and TwoByHalf FrameType. + * GenericTile displays a combination of icon and header title. + * + * It is applicable only for the OneByOne FrameType and TwoByHalf FrameType. */ IconMode = "IconMode", /** @@ -3019,7 +3021,7 @@ declare module "sap/m/library" { /** * The image to update. If undefined, a new image will be created. */ - oImageControl: Image, + oImage: Image, /** * oImageControl's parentControl. */ @@ -35262,6 +35264,8 @@ declare module "sap/m/InputBaseRenderer" { import InputBase from "sap/m/InputBase"; + import Icon from "sap/ui/core/Icon"; + /** * InputBase renderer. */ @@ -35599,13 +35603,9 @@ declare module "sap/m/InputBaseRenderer" { */ oRm: RenderManager, /** - * An object representation of the control that should be rendered. - */ - oControl: InputBase, - /** - * An aggregation from which the icon should be rendered - begin or end. + * List of icons to render */ - sPosition: string + aIcons: Icon[] ): void; /** * This method is reserved for derived classes to add extra attributes for the input element. @@ -48885,8 +48885,8 @@ declare module "sap/m/NavContainer" { * using the given data. For back navigation this can be used e.g. when returning from a detail page to * transfer any settings done there. * - * When the "transitionParameters" object is used, this "data" object must also be given (either as object - * or as null) in order to have a proper parameter order. + * When the `oTransitionParameters` parameter is used, this `backData` parameter must also be given (either + * as object or as `null` or `undefined`) in order to have a proper parameter order. */ backData?: object, /** @@ -48894,8 +48894,8 @@ declare module "sap/m/NavContainer" { * like the DOM element which triggered the transition or the desired transition duration. The animation * type can NOT be selected here - it is always the inverse of the "to" navigation. * - * In order to use the "transitionParameters" property, the "data" property must be used (at least "null" - * must be given) for a proper parameter order. + * In order to use the `oTransitionParameters parameter, the backData` parameter must be used + * (at least `null` or `undefined` must be given) for a proper parameter order. * * NOTE: it depends on the transition function how the object should be structured and which parameters * are actually used to influence the transition. @@ -48927,22 +48927,22 @@ declare module "sap/m/NavContainer" { * the "backToPage" navigation. The event on the target page will contain this data object as "backData" * property. * - * When the "transitionParameters" object is used, this "data" object must also be given (either as object - * or as null) in order to have a proper parameter order. + * When the `oTransitionParameters` parameter is used, this `backData` parameter must also be given (either + * as object or as `null` or `undefined`) in order to have a proper parameter order. */ - backData: object, + backData?: object, /** * This optional object can give additional information to the transition function, like the DOM element * which triggered the transition or the desired transition duration. The animation type can NOT be selected * here - it is always the inverse of the "to" navigation. * - * In order to use the "transitionParameters" property, the "data" property must be used (at least "null" - * must be given) for a proper parameter order. + * In order to use the `oTransitionParameters parameter, the backData` parameter must be used + * (at least `null` or `undefined` must be given) for a proper parameter order. * * NOTE: it depends on the transition function how the object should be structured and which parameters * are actually used to influence the transition. */ - oTransitionParameters: object + oTransitionParameters?: object ): this; /** * @SINCE 1.7.1 @@ -48963,8 +48963,8 @@ declare module "sap/m/NavContainer" { * the "backToTop" navigation. The event on the target page will contain this data object as "backData" * property. * - * When the "transitionParameters" object is used, this "data" object must also be given (either as object - * or as null) in order to have a proper parameter order. + * When the `oTransitionParameters` parameter is used, this `backData` parameter must also be given (either + * as object or as `null` or `undefined`) in order to have a proper parameter order. */ backData?: object, /** @@ -48972,8 +48972,8 @@ declare module "sap/m/NavContainer" { * which triggered the transition or the desired transition duration. The animation type can NOT be selected * here - it is always the inverse of the "to" navigation. * - * In order to use the "transitionParameters" property, the "data" property must be used (at least "null" - * must be given) for a proper parameter order. + * In order to use the `oTransitionParameters parameter, the backData` parameter must be used + * (at least `null` or `undefined` must be given) for a proper parameter order. * * NOTE: it depends on the transition function how the object should be structured and which parameters * are actually used to influence the transition. @@ -49460,53 +49460,7 @@ declare module "sap/m/NavContainer" { * * None of the standard transitions is currently making use of any given transition parameters. */ - transitionName: string, - /** - * Since version 1.7.1. This optional object can carry any payload data which should be made available to - * the target page. The "BeforeShow" event on the target page will contain this data object as "data" property. - * Use case: in scenarios where the entity triggering the navigation can or should not directly initialize - * the target page, it can fill this object and the target page itself (or a listener on it) can take over - * the initialization, using the given data. - * - * When the "transitionParameters" object is used, this "data" object must also be given (either as object - * or as null) in order to have a proper parameter order. - */ - data: object, - /** - * Since version 1.7.1. This optional object can contain additional information for the transition function, - * like the DOM element which triggered the transition or the desired transition duration. - * - * For a proper parameter order, the "data" parameter must be given when the "transitionParameters" parameter - * is used. (it can be given as "null") - * - * NOTE: it depends on the transition function how the object should be structured and which parameters - * are actually used to influence the transition. The "show", "slide", "baseSlide" and "fade" transitions - * do not use any parameter. - */ - oTransitionParameters: object - ): this; - /** - * Navigates to the next page (with drill-down semantic) with the given (or default) animation. This creates - * a new history item inside the NavContainer and allows going back. - * - * Note that any modifications to the target page (like setting its title, or anything else that could cause - * a re-rendering) should be done BEFORE calling to(), in order to avoid unwanted side effects, e.g. related - * to the page animation. - * - * Available transitions currently include "slide" (default), "baseSlide", "fade", "flip", and "show". None - * of these is currently making use of any given transitionParameters. - * - * Calling this navigation method triggers first the (cancelable) "navigate" event on the NavContainer, - * then the "BeforeHide" pseudo event on the source page and "BeforeFirstShow" (if applicable) and"BeforeShow" - * on the target page. Later - after the transition has completed - the "AfterShow" pseudo event is triggered - * on the target page and "AfterHide" on the page which has been left. The given data object is available - * in the "BeforeFirstShow", "BeforeShow" and "AfterShow" event object as "data" property. - */ - to( - /** - * The screen to which drilldown should happen. The ID or the control itself can be given. - */ - pageId: string, + transitionName?: string, /** * Since version 1.7.1. This optional object can carry any payload data which should be made available to * the target page. The "BeforeShow" event on the target page will contain this data object as "data" property. @@ -49514,22 +49468,22 @@ declare module "sap/m/NavContainer" { * the target page, it can fill this object and the target page itself (or a listener on it) can take over * the initialization, using the given data. * - * When the "transitionParameters" object is used, this "data" object must also be given (either as object - * or as null) in order to have a proper parameter order. + * When the `oTransitionParameters` parameter is used, this `data` parameter must also be given (either + * as object or as `null` or `undefined`) in order to have a proper parameter order. */ - data: object, + data?: object, /** * Since version 1.7.1. This optional object can contain additional information for the transition function, * like the DOM element which triggered the transition or the desired transition duration. * - * For a proper parameter order, the "data" parameter must be given when the "transitionParameters" parameter - * is used. (it can be given as "null") + * For a proper parameter order, the `data` parameter must be given when the `oTransitionParameters` parameter + * is used (it can be given as `null` or `undefined`). * * NOTE: it depends on the transition function how the object should be structured and which parameters * are actually used to influence the transition. The "show", "slide", "baseSlide" and "fade" transitions * do not use any parameter. */ - oTransitionParameters: object + oTransitionParameters?: object ): this; } /** @@ -77837,7 +77791,7 @@ declare module "sap/m/RatingIndicator" { /** * The rating value to be set. */ - fValue: float + vValue: float | string ): this; /** * Sets a new value for property {@link #getVisualMode visualMode}. @@ -82581,6 +82535,61 @@ declare module "sap/m/Select" { */ oListener?: object ): this; + /** + * @SINCE 1.100 + * + * Attaches event handler `fnFunction` to the {@link #event:liveChange liveChange} event of this `sap.m.Select`. + * + * 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.m.Select` itself. + * + * Fires when the user navigates through the `Select` items. It's also fired on revert of the currently + * selected item. + * + * **Note:** Revert occurs in some of the following actions: + * - The user clicks outside of the `Select` + * - The Escape key is pressed + */ + attachLiveChange( + /** + * 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: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.Select` itself + */ + oListener?: object + ): this; + /** + * @SINCE 1.100 + * + * Attaches event handler `fnFunction` to the {@link #event:liveChange liveChange} event of this `sap.m.Select`. + * + * 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.m.Select` itself. + * + * Fires when the user navigates through the `Select` items. It's also fired on revert of the currently + * selected item. + * + * **Note:** Revert occurs in some of the following actions: + * - The user clicks outside of the `Select` + * - The Escape key is pressed + */ + attachLiveChange( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.Select` itself + */ + oListener?: object + ): this; /** * Binds aggregation {@link #getItems items} to model data. * @@ -82627,6 +82636,23 @@ declare module "sap/m/Select" { */ oListener?: object ): this; + /** + * @SINCE 1.100 + * + * Detaches event handler `fnFunction` from the {@link #event:liveChange liveChange} event of this `sap.m.Select`. + * + * The passed function and listener object must match the ones used for event registration. + */ + detachLiveChange( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Fires event {@link #event:change change} to attached listeners. */ @@ -82645,6 +82671,22 @@ declare module "sap/m/Select" { previousSelectedItem?: Item; } ): this; + /** + * @SINCE 1.100 + * + * Fires event {@link #event:liveChange liveChange} to attached listeners. + */ + fireLiveChange( + /** + * Parameters to pass along with the event + */ + mParameters?: { + /** + * The selected item. + */ + selectedItem?: Item; + } + ): this; /** * Returns the `sap.m.Select` accessibility information. * See: @@ -83249,8 +83291,8 @@ declare module "sap/m/Select" { * `sKey` is an empty string `""` or `undefined`, the value of `sKey` is changed to match the `key` of the * first enabled item and the first enabled item is selected (if any items exist). * - * In the case that an item has the default key value, it is selected instead. If duplicate keys exist, - * the first item matching the key is selected. + * In the case that an item has the default key value and `forceSelection` property is set to `true`, it + * is selected instead. If duplicate keys exist, the first item matching the key is selected. */ sKey: string ): this; @@ -83599,6 +83641,18 @@ declare module "sap/m/Select" { * - The item is pressed */ change?: (oEvent: Event) => void; + + /** + * @SINCE 1.100 + * + * Fires when the user navigates through the `Select` items. It's also fired on revert of the currently + * selected item. + * + * **Note:** Revert occurs in some of the following actions: + * - The user clicks outside of the `Select` + * - The Escape key is pressed + */ + liveChange?: (oEvent: Event) => void; } } @@ -98461,7 +98515,7 @@ declare module "sap/m/SplitContainer" { /** * The ID of the page that needs to be fetched. */ - sId: string + pageId: string ): Control | null; /** * Gets content of aggregation {@link #getDetailPages detailPages}. @@ -98513,7 +98567,7 @@ declare module "sap/m/SplitContainer" { /** * The ID of the page that needs to be fetched */ - sId: string + pageId: string ): Control | null; /** * Gets content of aggregation {@link #getMasterPages masterPages}. @@ -107618,7 +107672,7 @@ declare module "sap/m/TileContent" { PropertyBindingInfo, } from "sap/ui/base/ManagedObject"; - import { ValueColor, FrameType, Size } from "sap/m/library"; + import { ValueColor, FrameType, Size, LoadState } from "sap/m/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -107762,6 +107816,16 @@ declare module "sap/m/TileContent" { * Default value is `"Auto"`. */ getSize(): Size | keyof typeof Size; + /** + * @SINCE 1.100.0 + * + * Gets current value of property {@link #getState state}. + * + * The load status. + * + * Default value is `Loaded`. + */ + getState(): LoadState | keyof typeof LoadState; /** * Gets current value of property {@link #getUnit unit}. * @@ -107893,6 +107957,23 @@ declare module "sap/m/TileContent" { */ sSize?: Size | keyof typeof Size ): this; + /** + * @SINCE 1.100.0 + * + * Sets a new value for property {@link #getState state}. + * + * The load status. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `Loaded`. + */ + setState( + /** + * New value for property `state` + */ + sState?: LoadState | keyof typeof LoadState + ): this; /** * Sets a new value for property {@link #getUnit unit}. * @@ -107956,6 +108037,13 @@ declare module "sap/m/TileContent" { */ priority?: (Priority | keyof typeof Priority) | PropertyBindingInfo; + /** + * @SINCE 1.100.0 + * + * The load status. + */ + state?: (LoadState | keyof typeof LoadState) | PropertyBindingInfo; + /** * The switchable view that depends on the tile type. */ @@ -113221,6 +113309,8 @@ declare module "sap/m/upload/UploadSet" { import ElementMetadata from "sap/ui/core/ElementMetadata"; + import { ListMode } from "sap/m/library"; + import OverflowToolbar from "sap/m/OverflowToolbar"; import Uploader from "sap/m/upload/Uploader"; @@ -113731,6 +113821,51 @@ declare module "sap/m/upload/UploadSet" { */ oListener?: object ): this; + /** + * @SINCE 1.100.0 + * + * Attaches event handler `fnFunction` to the {@link #event:fileRenamed fileRenamed} event of this `sap.m.upload.UploadSet`. + * + * 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.m.upload.UploadSet` itself. + * + * The event is triggered when the file name is changed. + */ + attachFileRenamed( + /** + * 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: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.upload.UploadSet` itself + */ + oListener?: object + ): this; + /** + * @SINCE 1.100.0 + * + * Attaches event handler `fnFunction` to the {@link #event:fileRenamed fileRenamed} event of this `sap.m.upload.UploadSet`. + * + * 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.m.upload.UploadSet` itself. + * + * The event is triggered when the file name is changed. + */ + attachFileRenamed( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.m.upload.UploadSet` itself + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:fileSizeExceeded fileSizeExceeded} event of * this `sap.m.upload.UploadSet`. @@ -114269,6 +114404,23 @@ declare module "sap/m/upload/UploadSet" { */ oListener?: object ): this; + /** + * @SINCE 1.100.0 + * + * Detaches event handler `fnFunction` from the {@link #event:fileRenamed fileRenamed} event of this `sap.m.upload.UploadSet`. + * + * The passed function and listener object must match the ones used for event registration. + */ + detachFileRenamed( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Detaches event handler `fnFunction` from the {@link #event:fileSizeExceeded fileSizeExceeded} event of * this `sap.m.upload.UploadSet`. @@ -114545,6 +114697,22 @@ declare module "sap/m/upload/UploadSet" { item?: UploadSetItem; } ): this; + /** + * @SINCE 1.100.0 + * + * Fires event {@link #event:fileRenamed fileRenamed} to attached listeners. + */ + fireFileRenamed( + /** + * Parameters to pass along with the event + */ + mParameters?: { + /** + * The renamed UI element as an UploadSetItem. + */ + item?: UploadSetItem; + } + ): this; /** * Fires event {@link #event:fileSizeExceeded fileSizeExceeded} to attached listeners. */ @@ -114766,6 +114934,31 @@ declare module "sap/m/upload/UploadSet" { * If this property is not set, any file can be uploaded. */ getMediaTypes(): string[]; + /** + * @SINCE 1.100.0 + * + * Gets current value of property {@link #getMode mode}. + * + * Defines the selection mode of the control (e.g. None, SingleSelect, MultiSelect, SingleSelectLeft, SingleSelectMaster). + * Since the UploadSet reacts like a list for attachments, the API is close to the ListBase Interface. sap.m.ListMode.Delete + * mode is not supported and will be automatically set to sap.m.ListMode.None. In addition, if instant upload + * is set to false the mode sap.m.ListMode.MultiSelect is not supported and will be automatically set to + * sap.m.ListMode.None. + * + * Default value is `MultiSelect`. + */ + getMode(): ListMode | keyof typeof ListMode; + /** + * Gets current value of property {@link #getMultiple multiple}. + * + * Lets the user select multiple files from the same folder and then upload them. + * + * If multiple property is set to false, the control shows an error message if more than one file is chosen + * for drag & drop. + * + * Default value is `false`. + */ + getMultiple(): boolean; /** * Gets current value of property {@link #getNoDataDescription noDataDescription}. * @@ -114778,6 +114971,29 @@ declare module "sap/m/upload/UploadSet" { * Defines custom text for the 'No data' text label. */ getNoDataText(): string; + /** + * @SINCE 1.100.0 + * + * Gets current value of property {@link #getSameFilenameAllowed sameFilenameAllowed}. + * + * Allows the user to use the same name for a file while editing the file name. 'Same name' refers to an + * already existing file name in the list. + * + * Default value is `false`. + */ + getSameFilenameAllowed(): boolean; + /** + * @SINCE 1.100.0 + * + * Retrieves the currently selected UploadSetItem. + */ + getSelectedItem(): /* was: sap.m.UploadSetItem */ any | null; + /** + * @SINCE 1.100.0 + * + * Returns an array containing the selected UploadSetItems. + */ + getSelectedItems(): /* was: sap.m.UploadSetItem */ any[]; /** * Gets current value of property {@link #getShowIcons showIcons}. * @@ -114960,6 +115176,12 @@ declare module "sap/m/upload/UploadSet" { */ vItem: int | string | UploadSetItem ): UploadSetItem; + /** + * @SINCE 1.100.0 + * + * Select all items in "MultiSelection" mode. + */ + selectAll(): this; /** * Sets a new value for property {@link #getFileTypes fileTypes}. * @@ -115049,6 +115271,45 @@ declare module "sap/m/upload/UploadSet" { */ sMediaTypes?: string[] ): this; + /** + * @SINCE 1.100.0 + * + * Sets a new value for property {@link #getMode mode}. + * + * Defines the selection mode of the control (e.g. None, SingleSelect, MultiSelect, SingleSelectLeft, SingleSelectMaster). + * Since the UploadSet reacts like a list for attachments, the API is close to the ListBase Interface. sap.m.ListMode.Delete + * mode is not supported and will be automatically set to sap.m.ListMode.None. In addition, if instant upload + * is set to false the mode sap.m.ListMode.MultiSelect is not supported and will be automatically set to + * sap.m.ListMode.None. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `MultiSelect`. + */ + setMode( + /** + * New value for property `mode` + */ + sMode?: ListMode | keyof typeof ListMode + ): this; + /** + * Sets a new value for property {@link #getMultiple multiple}. + * + * Lets the user select multiple files from the same folder and then upload them. + * + * If multiple property is set to false, the control shows an error message if more than one file is chosen + * for drag & drop. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + */ + setMultiple( + /** + * New value for property `multiple` + */ + bMultiple?: boolean + ): this; /** * Sets a new value for property {@link #getNoDataDescription noDataDescription}. * @@ -115075,6 +115336,55 @@ declare module "sap/m/upload/UploadSet" { */ sNoDataText?: string ): this; + /** + * @SINCE 1.100.0 + * + * Sets a new value for property {@link #getSameFilenameAllowed sameFilenameAllowed}. + * + * Allows the user to use the same name for a file while editing the file name. 'Same name' refers to an + * already existing file name in the list. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + */ + setSameFilenameAllowed( + /** + * New value for property `sameFilenameAllowed` + */ + bSameFilenameAllowed?: boolean + ): this; + /** + * @SINCE 1.100.0 + * + * Selects or deselects the given list item. + */ + setSelectedItem( + /** + * The item whose selection is to be changed. This parameter is mandatory. + */ + uploadSetItem: /* was: sap.m.UploadSetItem */ any, + /** + * The selection state of the item. + */ + select?: boolean + ): this; + /** + * @SINCE 1.100.0 + * + * Sets an UploadSetItem to be selected by ID. In single selection mode, the method removes the previous + * selection. + */ + setSelectedItemById( + /** + * The ID of the item whose selection is to be changed. + */ + id: string, + /** + * The selection state of the item. + */ + select?: boolean + ): this; /** * Sets a new value for property {@link #getShowIcons showIcons}. * @@ -115255,6 +115565,14 @@ declare module "sap/m/upload/UploadSet" { */ uploadButtonInvisible?: boolean | PropertyBindingInfo; + /** + * @SINCE 1.100.0 + * + * Allows the user to use the same name for a file while editing the file name. 'Same name' refers to an + * already existing file name in the list. + */ + sameFilenameAllowed?: boolean | PropertyBindingInfo; + /** * @SINCE 1.90 * @@ -115262,6 +115580,25 @@ declare module "sap/m/upload/UploadSet" { */ httpRequestMethod?: UploaderHttpRequestMethod | PropertyBindingInfo; + /** + * Lets the user select multiple files from the same folder and then upload them. + * + * If multiple property is set to false, the control shows an error message if more than one file is chosen + * for drag & drop. + */ + multiple?: boolean | PropertyBindingInfo; + + /** + * @SINCE 1.100.0 + * + * Defines the selection mode of the control (e.g. None, SingleSelect, MultiSelect, SingleSelectLeft, SingleSelectMaster). + * Since the UploadSet reacts like a list for attachments, the API is close to the ListBase Interface. sap.m.ListMode.Delete + * mode is not supported and will be automatically set to sap.m.ListMode.None. In addition, if instant upload + * is set to false the mode sap.m.ListMode.MultiSelect is not supported and will be automatically set to + * sap.m.ListMode.None. + */ + mode?: (ListMode | keyof typeof ListMode) | PropertyBindingInfo; + /** * Items representing files that have already been uploaded. */ @@ -115292,6 +115629,13 @@ declare module "sap/m/upload/UploadSet" { */ afterItemAdded?: (oEvent: Event) => void; + /** + * @SINCE 1.100.0 + * + * The event is triggered when the file name is changed. + */ + fileRenamed?: (oEvent: Event) => void; + /** * @SINCE 1.83 * @@ -115744,6 +116088,16 @@ declare module "sap/m/upload/UploadSetItem" { * Specifies the MIME type of the file. */ getMediaType(): string; + /** + * @SINCE 1.100.0 + * + * Gets current value of property {@link #getSelected selected}. + * + * Defines the selected state of the UploadSetItem. + * + * Default value is `false`. + */ + getSelected(): boolean; /** * Gets content of aggregation {@link #getStatuses statuses}. * @@ -116034,6 +116388,23 @@ declare module "sap/m/upload/UploadSetItem" { */ iProgress: int ): this; + /** + * @SINCE 1.100.0 + * + * Sets a new value for property {@link #getSelected selected}. + * + * Defines the selected state of the UploadSetItem. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + */ + setSelected( + /** + * New value for property `selected` + */ + bSelected?: boolean + ): this; /** * Sets a new value for property {@link #getThumbnailUrl thumbnailUrl}. * @@ -116179,6 +116550,13 @@ declare module "sap/m/upload/UploadSetItem" { */ uploadUrl?: string | PropertyBindingInfo; + /** + * @SINCE 1.100.0 + * + * Defines the selected state of the UploadSetItem. + */ + selected?: boolean | PropertyBindingInfo; + /** * Attributes of the item. */ @@ -120925,11 +121303,11 @@ declare module "sap/m/ViewSettingsDialog" { oSelectedFilterKeys: object ): this; /** - * Sets the selected group item (either by key or by item). + * Sets the selected group item (either by key, item id or item instance). */ setSelectedGroupItem( /** - * The selected item or the item's key string + * The selected item, the item's string key or the item id */ vItemOrKey: ViewSettingsItem | string ): this; @@ -120943,11 +121321,11 @@ declare module "sap/m/ViewSettingsDialog" { vItemOrKey: ViewSettingsItem | string | null ): this; /** - * Sets the selected sort item (either by key or by item). + * Sets the selected sort item (either by key, item id or item instance). */ setSelectedSortItem( /** - * The selected item or the item's key string + * The selected item, the item's string key or the item id */ vItemOrKey: ViewSettingsItem | string ): this; @@ -123624,7 +124002,7 @@ declare namespace sap { /** * The image to update. If undefined, a new image will be created. */ - oImageControl: import("sap/m/Image").default, + oImage: import("sap/m/Image").default, /** * oImageControl's parentControl. */ diff --git a/types/openui5/sap.tnt.d.ts b/types/openui5/sap.tnt.d.ts index e1fd7b9e856e6e..5c8f89d3f639b7 100644 --- a/types/openui5/sap.tnt.d.ts +++ b/types/openui5/sap.tnt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.98.0 +// For Library Version: 1.100.0 declare module "sap/tnt/library" { /** diff --git a/types/openui5/sap.ui.codeeditor.d.ts b/types/openui5/sap.ui.codeeditor.d.ts index e4563bf44bcab1..87a0a8f475f20e 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.99.0 +// For Library Version: 1.100.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 ebd59cf959b6ec..8997d36f1ad339 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.99.0 +// For Library Version: 1.100.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 3f13ed5ee3cca9..7c14a4770d10cb 100644 --- a/types/openui5/sap.ui.core.d.ts +++ b/types/openui5/sap.ui.core.d.ts @@ -264,7 +264,7 @@ interface JQuery extends Iterable { ): jQuery; } -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare module "sap/base/assert" { /** @@ -693,7 +693,7 @@ declare module "sap/base/Log" { /** * The default log level */ - iLogLevel?: Level + iDefaultLogLevel?: Level ): object; /** * Creates a new info-level entry in the log with the given message, details and calling component. @@ -3243,6 +3243,54 @@ declare module "sap/ui/performance/Measurement" { }; } +declare module "sap/ui/performance/trace/FESRHelper" { + import UI5Element from "sap/ui/core/Element"; + + /** + * @SINCE 1.100 + * + * FESRHelper API Provides helper functionality for FESR and consumers of FESR + */ + interface FESRHelper { + /** + * @SINCE 1.100 + * + * Get semantic stepname for an event of a given element used for FESR. + */ + getSemanticStepname( + /** + * The element conatining the semantic stepname + */ + oElement: UI5Element, + /** + * The event ID of the semantic stepname + */ + sEventId: string + ): string; + /** + * @SINCE 1.100 + * + * Add semantic stepname for an event of a given element used for FESR. + */ + setSemanticStepname( + /** + * The element the semantic stepname should be applied to + */ + oElement: UI5Element, + /** + * The event ID the semantic stepname is valid for + */ + sEventId: string, + /** + * The semantic stepname + */ + sStepname: string + ): void; + } + const FESRHelper: FESRHelper; + export default FESRHelper; +} + declare module "sap/ui/performance/trace/Interaction" { /** * @SINCE 1.76 @@ -8438,8 +8486,10 @@ declare module "sap/ui/core/library" { * Collision behavior: horizontal/vertical. * * Defines how the position of an element should be adjusted in case it overflows the window in some direction. - * For both directions this can be "flip", "fit" or "none". If only one behavior is provided it is applied - * to both directions. Examples: "flip", "fit none". + * For both directions this can be "flip", "fit", "flipfit" or "none". If only one behavior is provided + * it is applied to both directions. + * + * Examples: "flip", "fit none", "flipfit fit" */ export type Collision = string; @@ -9366,6 +9416,25 @@ declare module "sap/ui/core/library" { */ OnOrBetween = "OnOrBetween", } + /** + * @SINCE 1.100.0 + * + * Drop positions relative to a dropped element. + */ + enum RelativeDropPosition { + /** + * Drop after the control. + */ + After = "After", + /** + * Drop before the control. + */ + Before = "Before", + /** + * Drop on the control. + */ + On = "On", + } } export namespace mvc { @@ -11295,7 +11364,7 @@ declare module "sap/ui/core/ComponentMetadata" { /** * Static info to construct the metadata from */ - oStaticInfo: object + oClassInfo: object ); /** @@ -12052,7 +12121,9 @@ declare module "sap/ui/core/Configuration" { * To replace the CLDR currency digits completely ` { "DEFAULT": {"digits": 2}, "ADP": {"digits": 0}, ... * "XPF": {"digits": 0} } ` * - * Note: To unset the custom currencies: call with `undefined` + * Note: To unset the custom currencies: call with `undefined` Custom currencies must not only consist of + * digits but contain at least one non-digit character, e.g. "a", so that the measure part can be distinguished + * from the number part. */ setCustomCurrencies( /** @@ -13181,6 +13252,28 @@ declare module "sap/ui/core/Core" { */ oListener?: object ): void; + /** + * Attaches event handler `fnFunction` to the {@link #event:formatError formatError} event of `sap.ui.core.Core`. + * + * When called, the context of the listener (its `this`) will be bound to `oListener` if specified, otherwise + * it will be bound to a dummy event provider object. + * + * Please note that this event is a bubbling event and may already be canceled before reaching the core. + */ + attachFormatError( + /** + * An object that will be passed to the handler along with the event object when the event is fired + */ + oData: object, + /** + * The function to be called, when the event occurs + */ + fnFunction: Function, + /** + * Context object to call the event handler with. Defaults to a dummy event provider object + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:formatError formatError} event of `sap.ui.core.Core`. * @@ -15840,6 +15933,8 @@ declare module "sap/ui/core/dnd/DragAndDrop" { import DropInfo from "sap/ui/core/dnd/DropInfo"; + import { dnd } from "sap/ui/core/library"; + /** * When a user requests to drag some controls that can be dragged, a drag session is started. The drag session * can be used to transfer data between applications or between dragged and dropped controls. Please see @@ -15887,7 +15982,9 @@ declare module "sap/ui/core/dnd/DragAndDrop" { /** * Returns the calculated position of the drop action relative to the valid dropped control. */ - getDropPosition(): string; + getDropPosition(): + | dnd.RelativeDropPosition + | keyof typeof dnd.RelativeDropPosition; /** * Returns the drop indicator. */ @@ -17831,6 +17928,8 @@ declare module "sap/ui/core/format/DateFormat" { import Locale from "sap/ui/core/Locale"; + import DateFormatTimezoneDisplay from "sap/ui/core/format/DateFormatTimezoneDisplay"; + /** * The DateFormat is a static class for formatting and parsing single date and time values or date and time * intervals according to a set of format options. @@ -18001,6 +18100,7 @@ declare module "sap/ui/core/format/DateFormat" { ): DateFormat; /** * @SINCE 1.99.0 + * @EXPERIMENTAL (since 1.99.0) * * Get a datetimeWithTimezone instance of the DateFormat, which can be used for formatting. */ @@ -18027,7 +18127,9 @@ declare module "sap/ui/core/format/DateFormat" { * - "Only": display only timezone It is ignored for formatting when an options pattern or a format * are supplied. */ - showTimezone?: /* was: sap.ui.core.format.DateFormatTimezoneDisplay */ any; + showTimezone?: + | DateFormatTimezoneDisplay + | keyof typeof DateFormatTimezoneDisplay; /** * Can be either 'short, 'medium', 'long' or 'full'. For datetime you can also define mixed styles, separated * with a slash, where the first part is the date style and the second part is the time style (e.g. "medium/short"). @@ -18151,6 +18253,9 @@ declare module "sap/ui/core/format/DateFormat" { * * Uses the timezone from {@link sap.ui.core.Configuration#getTimezone}, which falls back to the browser's * local timezone to convert the given date. + * + * When using instances from getDateTimeWithTimezoneInstance, please see the corresponding documentation: + * {@link sap.ui.core.format.DateFormat.getDateTimeWithTimezoneInstance#format}. */ format( /** @@ -18167,6 +18272,9 @@ declare module "sap/ui/core/format/DateFormat" { * * Uses the timezone from {@link sap.ui.core.Configuration#getTimezone}, which falls back to the browser's * local timezone to convert the given date. + * + * When using instances from getDateTimeWithTimezoneInstance, please see the corresponding documentation: + * {@link sap.ui.core.format.DateFormat.getDateTimeWithTimezoneInstance#parse}. */ parse( /** @@ -18174,7 +18282,7 @@ declare module "sap/ui/core/format/DateFormat" { */ sValue: string, /** - * whether to use UTC, if no timezone is contained + * whether to use UTC */ bUTC: boolean, /** @@ -18207,8 +18315,9 @@ declare module "sap/ui/core/format/DateFormat" { */ oJSDate: Date, /** - * The IANA timezone ID in which the date will be calculated and formatted e.g. "America/New_York". If omitted, - * the timezone will be taken from {@link sap.ui.core.Configuration#getTimezone}. + * The IANA timezone ID in which the date will be calculated and formatted e.g. "America/New_York". If the + * parameter is omitted, `null` or an empty string, the timezone will be taken from {@link sap.ui.core.Configuration#getTimezone}. + * For an invalid IANA timezone ID, an empty string will be returned. */ sTimezone?: string ): string; @@ -18225,8 +18334,9 @@ declare module "sap/ui/core/format/DateFormat" { */ sValue: string, /** - * The IANA timezone ID which should be used to convert the date e.g. "America/New_York". If omitted, the - * timezone will be taken from {@link sap.ui.core.Configuration#getTimezone}. + * The IANA timezone ID which should be used to convert the date e.g. "America/New_York". If the parameter + * is omitted, `null` or an empty string, the timezone will be taken from {@link sap.ui.core.Configuration#getTimezone}. + * For an invalid IANA timezone ID, `null` will be returned. */ sTimezone?: string, /** @@ -18239,6 +18349,29 @@ declare module "sap/ui/core/format/DateFormat" { } } +declare module "sap/ui/core/format/DateFormatTimezoneDisplay" { + /** + * @SINCE 1.99.0 + * + * Configuration options for the `showTimezone` format option of `DateFormat#getDateTimeWithTimezoneInstance`. + */ + enum DateFormatTimezoneDisplay { + /** + * Do not add the IANA timezone ID to the format output. + */ + Hide = "Hide", + /** + * Only output the IANA timezone ID. + */ + Only = "Only", + /** + * Add the IANA timezone ID to the format output. + */ + Show = "Show", + } + export default DateFormatTimezoneDisplay; +} + declare module "sap/ui/core/format/FileSizeFormat" { import BaseObject from "sap/ui/base/Object"; @@ -18466,51 +18599,43 @@ declare module "sap/ui/core/format/NumberFormat" { */ oFormatOptions?: { /** - * defines minimal number of non-decimal digits + * defines whether the currency is shown as a code in currency format. The currency symbol is displayed + * when this option is set to `false` and a symbol has been defined for the given currency code. */ - minIntegerDigits?: int; - /** - * defines maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" characters - * are shown instead of digits. - */ - maxIntegerDigits?: int; + currencyCode?: boolean; /** - * defines minimal number of decimal digits + * can be set either to 'standard' (the default value) or to 'accounting' for an accounting-specific currency + * display */ - minFractionDigits?: int; + currencyContext?: string; /** - * defines maximum number of decimal digits + * defines a set of custom currencies exclusive to this NumberFormat instance. Custom currencies must not + * only consist of digits. If custom currencies are defined on the instance, no other currencies can be + * formatted and parsed by this instance. Globally available custom currencies can be added via the global + * configuration. See the above examples. See also {@link sap.ui.core.Configuration.FormatSettings#setCustomCurrencies} + * and {@link sap.ui.core.Configuration.FormatSettings#addCustomCurrencies}. */ - maxFractionDigits?: int; + customCurrencies?: Record; /** * defines the number of decimal digits */ decimals?: int; /** - * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' - * options is used - */ - shortDecimals?: int; - /** - * only use short number formatting for values above this limit - */ - shortLimit?: int; - /** - * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. - * The generated scale factor is used for all numbers which are formatted with this format instance. This - * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default - * set with `undefined` which means the scale factor is selected automatically for each number being formatted. + * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from + * `groupingSeparator`. */ - shortRefNumber?: int; + decimalSeparator?: string; /** - * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect - * only when the 'style' options is set to either 'short' or 'long'. + * @since 1.30.0 defines what an empty string is parsed as, and what is formatted as an empty string. The + * allowed values are "" (empty string), NaN, `null`, or 0. The 'format' and 'parse' functions are done + * in a symmetric way. For example, when this parameter is set to NaN, an empty string is parsed as [NaN, + * undefined], and NaN is formatted as an empty string. */ - showScale?: boolean; + emptyString?: number; /** - * CLDR number pattern which is used to format the number + * defines the grouping base size in digits if it is different from the grouping size (e.g. Indian grouping) */ - pattern?: string; + groupingBaseSize?: int; /** * defines whether grouping is enabled (show the grouping separators) */ @@ -18521,60 +18646,75 @@ declare module "sap/ui/core/format/NumberFormat" { */ groupingSeparator?: string; /** - * defines the grouping size in digits, the default is three + * defines the grouping size in digits; the default is `3`. It must be a positive number. */ groupingSize?: int; /** - * defines the grouping base size in digits, in case it is different from the grouping size (e.g. indian - * grouping) + * defines the maximum number of decimal digits */ - groupingBaseSize?: int; + maxFractionDigits?: int; /** - * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from - * `groupingSeparator`. + * defines the maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" + * characters are shown instead of digits. */ - decimalSeparator?: string; + maxIntegerDigits?: int; /** - * defines the used plus symbol + * defines the minimal number of decimal digits */ - plusSign?: string; + minFractionDigits?: int; + /** + * defines the minimal number of non-decimal digits + */ + minIntegerDigits?: int; /** * defines the used minus symbol */ minusSign?: string; /** - * @since 1.28.2 defines whether to output string from parse function in order to keep the precision for - * big numbers. Numbers in scientific notation are parsed back to the standard notation. For example "5e-3" + * @since 1.28.2 defines whether to output the string from the parse function in order to keep the precision + * for big numbers. Numbers in scientific notation are parsed back to standard notation. For example, "5e-3" * is parsed to "0.005". */ parseAsString?: boolean; + /** + * CLDR number pattern which is used to format the number + */ + pattern?: string; + /** + * defines the used plus symbol + */ + plusSign?: string; /** * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number * is rounded to `maxFractionDigits`. */ preserveDecimals?: boolean; - /** - * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). - * Numbers are formatted into compact forms when it's set to 'short' or 'long'. When this option is set, - * the default value of option 'precision' is set to 2. This can be changed by setting either min/maxFractionDigits, - * decimals, shortDecimals or precision option. - */ - style?: string; /** * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by - * maxFractionDigits. Rounding will only be applied, if the passed value if of type number. This can be - * assigned by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode} or a function - * which will be used for rounding the number. The function is called with two parameters: the number and - * how many decimal digits should be reserved. + * maxFractionDigits. Rounding will only be applied if the passed value is of type `number`. This can be + * assigned + * - by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode}, + * - via a function that is used for rounding the number and takes two parameters: the number itself, + * and the number of decimal digits that should be reserved. */ roundingMode?: RoundingMode | keyof typeof RoundingMode; /** - * Overrides the global configuration value {@link sap.ui.core.Configuration.FormatSettings#getTrailingCurrencyCode} - * whose default value is `true. This is ignored if oFormatOptions.currencyCode` is set to `false` - * or if `oFormatOptions.pattern` is supplied + * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' + * options is used */ - trailingCurrencyCode?: boolean; + shortDecimals?: int; + /** + * only use short number formatting for values above this limit + */ + shortLimit?: int; + /** + * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. + * The generated scale factor is used for all numbers which are formatted with this format instance. This + * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default + * set with `undefined` which means the scale factor is selected automatically for each number being formatted. + */ + shortRefNumber?: int; /** * defines whether the currency code/symbol is shown in the formatted string, e.g. true: "1.00 EUR", false: * "1.00" for locale "en" If both `showMeasure` and `showNumber` are false, an empty string is returned @@ -18587,29 +18727,23 @@ declare module "sap/ui/core/format/NumberFormat" { */ showNumber?: boolean; /** - * defines whether the currency is shown as code in currency format. The currency symbol is displayed when - * this is set to false and there is a symbol defined for the given currency code. - */ - currencyCode?: boolean; - /** - * It can be set either with 'standard' (the default value) or with 'accounting' for an accounting specific - * currency display + * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect + * only when the 'style' options is set to either 'short' or 'long'. */ - currencyContext?: string; + showScale?: boolean; /** - * @since 1.30.0 defines what empty string is parsed as and what is formatted as empty string. The allowed - * values are "" (empty string), NaN, null or 0. The 'format' and 'parse' are done in a symmetric way. For - * example when this parameter is set to NaN, empty string is parsed as [NaN, undefined] and NaN is formatted - * as empty string. + * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). + * When set to 'short' or 'long', numbers are formatted into compact forms. When this option is set, the + * default value of the 'precision' option is set to 2. This can be changed by setting either min/maxFractionDigits, + * decimals, shortDecimals, or the 'precision' option itself. */ - emptyString?: number; + style?: string; /** - * defines a set of custom currencies exclusive to this NumberFormat instance. If custom currencies are - * defined on the instance, no other currencies can be formatted and parsed by this instance. Globally available - * custom currencies can be added via the global configuration. See the above examples. See also {@link - * sap.ui.core.Configuration.FormatSettings#setCustomCurrencies} and {@link sap.ui.core.Configuration.FormatSettings#addCustomCurrencies}. + * overrides the global configuration value {@link sap.ui.core.Configuration.FormatSettings#getTrailingCurrencyCode}, + * which has a default value of `true. This is ignored if oFormatOptions.currencyCode` is set to + * `false`, or if `oFormatOptions.pattern` is supplied. */ - customCurrencies?: Record; + trailingCurrencyCode?: boolean; }, /** * Locale to get the formatter for @@ -18624,6 +18758,19 @@ declare module "sap/ui/core/format/NumberFormat" { * * This instance has HALF_AWAY_FROM_ZERO set as default rounding mode. Please set the roundingMode property * in oFormatOptions to change the default value. + * + * The following example shows how grouping is done: + * ```javascript + * + * var oFormat = NumberFormat.getFloatInstance({ + * "groupingEnabled": true, // grouping is enabled + * "groupingSeparator": '.', // grouping separator is '.' + * "groupingSize": 3, // the amount of digits to be grouped (here: thousand) + * "decimalSeparator": "," // the decimal separator must be different from the grouping separator + * }); + * + * oFormat.format(1234.56); // "1.234,56" + * ``` */ static getFloatInstance( /** @@ -18631,56 +18778,26 @@ declare module "sap/ui/core/format/NumberFormat" { * to the type and locale settings are used. */ oFormatOptions?: { - /** - * defines minimal number of non-decimal digits - */ - minIntegerDigits?: int; - /** - * defines maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" characters - * are shown instead of digits. - */ - maxIntegerDigits?: int; - /** - * defines minimal number of decimal digits - */ - minFractionDigits?: int; - /** - * defines maximum number of decimal digits - */ - maxFractionDigits?: int; /** * defines the number of decimal digits */ decimals?: int; /** - * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' - * options is used - */ - shortDecimals?: int; - /** - * only use short number formatting for values above this limit - */ - shortLimit?: int; - /** - * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. - * The generated scale factor is used for all numbers which are formatted with this format instance. This - * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default - * set with `undefined` which means the scale factor is selected automatically for each number being formatted. - */ - shortRefNumber?: int; - /** - * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect - * only when the 'style' options is set to either 'short' or 'long'. + * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from + * `groupingSeparator`. */ - showScale?: boolean; + decimalSeparator?: string; /** - * defines the number precision, number of decimals is calculated dependent on the integer digits + * @since 1.30.0 defines what an empty string is parsed as, and what is formatted as an empty string. The + * allowed values are "" (empty string), NaN, `null`, or 0. The 'format' and 'parse' functions are done + * in a symmetric way. For example, when this parameter is set to NaN, an empty string is parsed as NaN, + * and NaN is formatted as an empty string. */ - precision?: int; + emptyString?: number; /** - * CLDR number pattern which is used to format the number + * defines the grouping base size in digits if it is different from the grouping size (e.g. Indian grouping) */ - pattern?: string; + groupingBaseSize?: int; /** * defines whether grouping is enabled (show the grouping separators) */ @@ -18691,61 +18808,91 @@ declare module "sap/ui/core/format/NumberFormat" { */ groupingSeparator?: string; /** - * defines the grouping size in digits, the default is three + * defines the grouping size in digits; the default is `3`. It must be a positive number. */ groupingSize?: int; /** - * defines the grouping base size in digits, in case it is different from the grouping size (e.g. indian - * grouping) + * defines the maximum number of decimal digits */ - groupingBaseSize?: int; + maxFractionDigits?: int; /** - * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from - * `groupingSeparator`. + * defines the maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" + * characters are shown instead of digits. */ - decimalSeparator?: string; + maxIntegerDigits?: int; /** - * defines the used plus symbol + * defines the minimal number of decimal digits */ - plusSign?: string; + minFractionDigits?: int; + /** + * defines the minimal number of non-decimal digits + */ + minIntegerDigits?: int; /** * defines the used minus symbol */ minusSign?: string; /** - * @since 1.28.2 defines whether to output string from parse function in order to keep the precision for - * big numbers. Numbers in scientific notation are parsed back to the standard notation. For example "5e-3" + * @since 1.28.2 defines whether to output the string from the parse function in order to keep the precision + * for big numbers. Numbers in scientific notation are parsed back to standard notation. For example, "5e-3" * is parsed to "0.005". */ parseAsString?: boolean; + /** + * CLDR number pattern which is used to format the number + */ + pattern?: string; + /** + * defines the used plus symbol + */ + plusSign?: string; + /** + * defines the numerical precision; the number of decimals is calculated dependent on the integer digits + */ + precision?: int; /** * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number * is rounded to `maxFractionDigits`. */ preserveDecimals?: boolean; - /** - * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). - * Numbers are formatted into compact forms when it's set to 'short' or 'long'. When this option is set, - * the default value of option 'precision' is set to 2. This can be changed by setting either min/maxFractionDigits, - * decimals, shortDecimals or precision option. - */ - style?: string; /** * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by - * maxFractionDigits. Rounding will only be applied, if the passed value if of type number. This can be - * assigned by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode} or a function - * which will be used for rounding the number. The function is called with two parameters: the number and - * how many decimal digits should be reserved. + * maxFractionDigits. Rounding will only be applied if the passed value is of type `number`. This can be + * assigned + * - by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode}, + * - via a function that is used for rounding the number and takes two parameters: the number itself, + * and the number of decimal digits that should be reserved. */ roundingMode?: RoundingMode | keyof typeof RoundingMode; /** - * @since 1.30.0 defines what empty string is parsed as and what is formatted as empty string. The allowed - * values are "" (empty string), NaN, null or 0. The 'format' and 'parse' are done in a symmetric way. For - * example when this parameter is set to NaN, empty string is parsed as NaN and NaN is formatted as empty - * string. + * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' + * options is used */ - emptyString?: number; + shortDecimals?: int; + /** + * only use short number formatting for values above this limit + */ + shortLimit?: int; + /** + * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. + * The generated scale factor is used for all numbers which are formatted with this format instance. This + * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default + * set with `undefined` which means the scale factor is selected automatically for each number being formatted. + */ + shortRefNumber?: int; + /** + * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect + * only when the 'style' options is set to either 'short' or 'long'. + */ + showScale?: boolean; + /** + * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). + * When set to 'short' or 'long', numbers are formatted into compact forms. When this option is set, the + * default value of the 'precision' option is set to 2. This can be changed by setting either min/maxFractionDigits, + * decimals, shortDecimals, or the 'precision' option itself. + */ + style?: string; }, /** * Locale to get the formatter for @@ -18760,6 +18907,18 @@ declare module "sap/ui/core/format/NumberFormat" { * * This instance has TOWARDS_ZERO set as default rounding mode. Please set the roundingMode property * in oFormatOptions to change the default value. + * + * The following example shows how grouping is done: + * ```javascript + * + * var oFormat = NumberFormat.getIntegerInstance({ + * "groupingEnabled": true, // grouping is enabled + * "groupingSeparator": '.', // grouping separator is '.' + * "groupingSize": 3 // the amount of digits to be grouped (here: thousand) + * }); + * + * oFormat.format(1234); // "1.234" + * ``` */ static getIntegerInstance( /** @@ -18767,56 +18926,26 @@ declare module "sap/ui/core/format/NumberFormat" { * to the type and locale settings are used. */ oFormatOptions?: { - /** - * defines minimal number of non-decimal digits - */ - minIntegerDigits?: int; - /** - * defines maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" characters - * are shown instead of digits. - */ - maxIntegerDigits?: int; - /** - * defines minimal number of decimal digits - */ - minFractionDigits?: int; - /** - * defines maximum number of decimal digits - */ - maxFractionDigits?: int; /** * defines the number of decimal digits */ decimals?: int; /** - * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' - * options is used - */ - shortDecimals?: int; - /** - * only use short number formatting for values above this limit - */ - shortLimit?: int; - /** - * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. - * The generated scale factor is used for all numbers which are formatted with this format instance. This - * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default - * set with `undefined` which means the scale factor is selected automatically for each number being formatted. - */ - shortRefNumber?: int; - /** - * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect - * only when the 'style' options is set to either 'short' or 'long'. + * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from + * `groupingSeparator`. */ - showScale?: boolean; + decimalSeparator?: string; /** - * defines the number precision, number of decimals is calculated dependent on the integer digits + * @since 1.30.0 defines what an empty string is parsed as, and what is formatted as an empty string. The + * allowed values are only NaN, null or 0. The 'format' and 'parse' functions are done in a symmetric way. + * For example, when this parameter is set to NaN, an empty string is parsed as NaN, and NaN is formatted + * as an empty string. */ - precision?: int; + emptyString?: number; /** - * CLDR number pattern which is used to format the number + * defines the grouping base size in digits if it is different from the grouping size (e.g. Indian grouping) */ - pattern?: string; + groupingBaseSize?: int; /** * defines whether grouping is enabled (show the grouping separators) */ @@ -18827,60 +18956,91 @@ declare module "sap/ui/core/format/NumberFormat" { */ groupingSeparator?: string; /** - * defines the grouping size in digits, the default is three + * defines the grouping size in digits; the default is `3`. It must be a positive number. */ groupingSize?: int; /** - * defines the grouping base size in digits, in case it is different from the grouping size (e.g. indian - * grouping) + * defines the maximum number of decimal digits */ - groupingBaseSize?: int; + maxFractionDigits?: int; /** - * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from - * `groupingSeparator`. + * defines the maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" + * characters are shown instead of digits. */ - decimalSeparator?: string; + maxIntegerDigits?: int; /** - * defines the used plus symbol + * defines the minimal number of decimal digits */ - plusSign?: string; + minFractionDigits?: int; + /** + * defines the minimal number of non-decimal digits + */ + minIntegerDigits?: int; /** * defines the used minus symbol */ minusSign?: string; /** - * @since 1.28.2 defines whether to output string from parse function in order to keep the precision for - * big numbers. Numbers in scientific notation are parsed back to the standard notation. For example "5e+3" + * @since 1.28.2 defines whether to output the string from the parse function in order to keep the precision + * for big numbers. Numbers in scientific notation are parsed back to standard notation. For example, "5e+3" * is parsed to "5000". */ parseAsString?: boolean; + /** + * CLDR number pattern which is used to format the number + */ + pattern?: string; + /** + * defines the used plus symbol + */ + plusSign?: string; + /** + * defines the numerical precision; the number of decimals is calculated dependent on the integer digits + */ + precision?: int; /** * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number * is rounded to `maxFractionDigits`. */ preserveDecimals?: boolean; - /** - * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). - * Numbers are formatted into compact forms when it's set to 'short' or 'long'. When this option is set, - * the default value of option 'precision' is set to 2. This can be changed by setting either min/maxFractionDigits, - * decimals, shortDecimals or precision option. - */ - style?: string; /** * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by - * maxFractionDigits. Rounding will only be applied, if the passed value if of type number. This can be - * assigned by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode} or a function - * which will be used for rounding the number. The function is called with two parameters: the number and - * how many decimal digits should be reserved. + * maxFractionDigits. Rounding will only be applied if the passed value is of type `number`. This can be + * assigned + * - by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode}, + * - via a function that is used for rounding the number and takes two parameters: the number itself, + * and the number of decimal digits that should be reserved. */ roundingMode?: RoundingMode | keyof typeof RoundingMode; /** - * @since 1.30.0 defines what empty string is parsed as and what is formatted as empty string. The allowed - * values are only NaN, null or 0. The 'format' and 'parse' are done in a symmetric way. For example when - * this parameter is set to NaN, empty string is parsed as NaN and NaN is formatted as empty string. + * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' + * options is used */ - emptyString?: number; + shortDecimals?: int; + /** + * only use short number formatting for values above this limit + */ + shortLimit?: int; + /** + * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. + * The generated scale factor is used for all numbers which are formatted with this format instance. This + * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default + * set with `undefined` which means the scale factor is selected automatically for each number being formatted. + */ + shortRefNumber?: int; + /** + * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect + * only when the 'style' options is set to either 'short' or 'long'. + */ + showScale?: boolean; + /** + * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). + * When set to 'short' or 'long', numbers are formatted into compact forms. When this option is set, the + * default value of the 'precision' option is set to 2. This can be changed by setting either min/maxFractionDigits, + * decimals, shortDecimals, or the 'precision' option itself. + */ + style?: string; }, /** * Locale to get the formatter for @@ -18907,26 +19067,96 @@ declare module "sap/ui/core/format/NumberFormat" { */ oFormatOptions?: { /** - * defines minimal number of non-decimal digits + * defines the number of decimal digits */ - minIntegerDigits?: int; + decimals?: int; + /** + * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from + * `groupingSeparator`. + */ + decimalSeparator?: string; + /** + * @since 1.30.0 defines what an empty string is parsed as, and what is formatted as an empty string. The + * allowed values are "" (empty string), NaN, `null`, or 0. The 'format' and 'parse' functions are done + * in a symmetric way. For example, when this parameter is set to NaN, an empty string is parsed as NaN, + * and NaN is formatted as an empty string. + */ + emptyString?: number; /** - * defines maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" characters - * are shown instead of digits. + * defines the grouping base size in digits if it is different from the grouping size (e.g. Indian grouping) + */ + groupingBaseSize?: int; + /** + * defines whether grouping is enabled (show the grouping separators) + */ + groupingEnabled?: boolean; + /** + * defines the character used as grouping separator. Note: `groupingSeparator` must always be different + * from `decimalSeparator`. + */ + groupingSeparator?: string; + /** + * defines the grouping size in digits; the default is `3`. It must be a positive number. + */ + groupingSize?: int; + /** + * defines the maximum number of decimal digits + */ + maxFractionDigits?: int; + /** + * defines the maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" + * characters are shown instead of digits. */ maxIntegerDigits?: int; /** - * defines minimal number of decimal digits + * defines the minimal number of decimal digits */ minFractionDigits?: int; /** - * defines maximum number of decimal digits + * defines the minimal number of non-decimal digits */ - maxFractionDigits?: int; + minIntegerDigits?: int; /** - * defines the number of decimal digits + * defines the used minus symbol */ - decimals?: int; + minusSign?: string; + /** + * @since 1.28.2 defines whether to output the string from the parse function in order to keep the precision + * for big numbers. Numbers in scientific notation are parsed back to standard notation. For example, "5e-3" + * is parsed to "0.005". + */ + parseAsString?: boolean; + /** + * CLDR number pattern which is used to format the number + */ + pattern?: string; + /** + * defines the used percent symbol + */ + percentSign?: string; + /** + * defines the used plus symbol + */ + plusSign?: string; + /** + * defines the numerical precision; the number of decimals is calculated dependent on the integer digits + */ + precision?: int; + /** + * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals + * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number + * is rounded to `maxFractionDigits`. + */ + preserveDecimals?: boolean; + /** + * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by + * maxFractionDigits. Rounding will only be applied if the passed value is of type `number`. This can be + * assigned + * - by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode}, + * - via a function that is used for rounding the number and takes two parameters: the number itself, + * and the number of decimal digits that should be reserved. + */ + roundingMode?: RoundingMode | keyof typeof RoundingMode; /** * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' * options is used @@ -18948,83 +19178,13 @@ declare module "sap/ui/core/format/NumberFormat" { * only when the 'style' options is set to either 'short' or 'long'. */ showScale?: boolean; - /** - * defines the number precision, number of decimals is calculated dependent on the integer digits - */ - precision?: int; - /** - * CLDR number pattern which is used to format the number - */ - pattern?: string; - /** - * defines whether grouping is enabled (show the grouping separators) - */ - groupingEnabled?: boolean; - /** - * defines the character used as grouping separator. Note: `groupingSeparator` must always be different - * from `decimalSeparator`. - */ - groupingSeparator?: string; - /** - * defines the grouping size in digits, the default is three - */ - groupingSize?: int; - /** - * defines the grouping base size in digits, in case it is different from the grouping size (e.g. indian - * grouping) - */ - groupingBaseSize?: int; - /** - * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from - * `groupingSeparator`. - */ - decimalSeparator?: string; - /** - * defines the used plus symbol - */ - plusSign?: string; - /** - * defines the used minus symbol - */ - minusSign?: string; - /** - * defines the used percent symbol - */ - percentSign?: string; - /** - * @since 1.28.2 defines whether to output string from parse function in order to keep the precision for - * big numbers. Numbers in scientific notation are parsed back to the standard notation. For example "5e-3" - * is parsed to "0.005". - */ - parseAsString?: boolean; - /** - * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals - * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number - * is rounded to `maxFractionDigits`. - */ - preserveDecimals?: boolean; /** * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). - * Numbers are formatted into compact forms when it's set to 'short' or 'long'. When this option is set, - * the default value of option 'precision' is set to 2. This can be changed by setting either min/maxFractionDigits, - * decimals, shortDecimals or precision option. + * When set to 'short' or 'long', numbers are formatted into compact forms. When this option is set, the + * default value of the 'precision' option is set to 2. This can be changed by setting either min/maxFractionDigits, + * decimals, shortDecimals, or the 'precision' option itself. */ style?: string; - /** - * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by - * maxFractionDigits. Rounding will only be applied, if the passed value if of type number. This can be - * assigned by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode} or a function - * which will be used for rounding the number. The function is called with two parameters: the number and - * how many decimal digits should be reserved. - */ - roundingMode?: RoundingMode | keyof typeof RoundingMode; - /** - * @since 1.30.0 defines what empty string is parsed as and what is formatted as empty string. The allowed - * values are "" (empty string), NaN, null or 0. The 'format' and 'parse' are done in a symmetric way. For - * example when this parameter is set to NaN, empty string is parsed as NaN and NaN is formatted as empty - * string. - */ - emptyString?: number; }, /** * Locale to get the formatter for @@ -19047,55 +19207,35 @@ declare module "sap/ui/core/format/NumberFormat" { */ oFormatOptions?: { /** - * defines minimal number of non-decimal digits - */ - minIntegerDigits?: int; - /** - * defines maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" characters - * are shown instead of digits. - */ - maxIntegerDigits?: int; - /** - * defines minimal number of decimal digits + * defines the allowed units for formatting and parsing, e.g. ["size-meter", "volume-liter", ...] */ - minFractionDigits?: int; + allowedUnits?: any[]; /** - * defines maximum number of decimal digits + * defines a set of custom units, e.g. {"electric-inductance": { "displayName": "henry", "unitPattern-count-one": + * "{0} H", "unitPattern-count-other": "{0} H", "perUnitPattern": "{0}/H", "decimals": 2, "precision": 4 + * }} */ - maxFractionDigits?: int; + customUnits?: Record; /** * defines the number of decimal digits */ decimals?: int; /** - * defines the number of decimal in the shortened format string. If this isn't specified, the 'decimals' - * options is used - */ - shortDecimals?: int; - /** - * only use short number formatting for values above this limit - */ - shortLimit?: int; - /** - * @since 1.40 specifies a number from which the scale factor for 'short' or 'long' style format is generated. - * The generated scale factor is used for all numbers which are formatted with this format instance. This - * option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default - * set with `undefined` which means the scale factor is selected automatically for each number being formatted. - */ - shortRefNumber?: int; - /** - * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect - * only when the 'style' options is set to either 'short' or 'long'. + * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from + * `groupingSeparator`. */ - showScale?: boolean; + decimalSeparator?: string; /** - * defines the number precision, number of decimals is calculated dependent on the integer digits + * @since 1.30.0 defines what an empty string is parsed as, and what is formatted as an empty string. The + * allowed values are "" (empty string), NaN, `null`, or 0. The 'format' and 'parse' functions are done + * in a symmetric way. For example, when this parameter is set to NaN, an empty string is parsed as [NaN, + * undefined], and NaN is formatted as an empty string. */ - precision?: int; + emptyString?: number; /** - * CLDR number pattern which is used to format the number + * defines the grouping base size in digits if it is different from the grouping size (e.g. Indian grouping) */ - pattern?: string; + groupingBaseSize?: int; /** * defines whether grouping is enabled (show the grouping separators) */ @@ -19106,64 +19246,79 @@ declare module "sap/ui/core/format/NumberFormat" { */ groupingSeparator?: string; /** - * defines the grouping size in digits, the default is three + * defines the grouping size in digits; the default is `3`. It must be a positive number. */ groupingSize?: int; /** - * defines the grouping base size in digits, in case it is different from the grouping size (e.g. indian - * grouping) + * defines the maximum number of decimal digits */ - groupingBaseSize?: int; - /** - * defines the character used as decimal separator. Note: `decimalSeparator` must always be different from - * `groupingSeparator`. - */ - decimalSeparator?: string; + maxFractionDigits?: int; /** - * defines a set of custom units, e.g. {"electric-inductance": { "displayName": "henry", "unitPattern-count-one": - * "{0} H", "unitPattern-count-other": "{0} H", "perUnitPattern": "{0}/H", "decimals": 2, "precision": 4 - * }} + * defines the maximum number of non-decimal digits. If the number exceeds this maximum, e.g. 1e+120, "?" + * characters are shown instead of digits. */ - customUnits?: Record; + maxIntegerDigits?: int; /** - * defines the allowed units for formatting and parsing, e.g. ["size-meter", "volume-liter", ...] + * defines the minimal number of decimal digits */ - allowedUnits?: any[]; + minFractionDigits?: int; /** - * defines the used plus symbol + * defines the minimal number of non-decimal digits */ - plusSign?: string; + minIntegerDigits?: int; /** * defines the used minus symbol */ minusSign?: string; /** - * @since 1.28.2 defines whether to output string from parse function in order to keep the precision for - * big numbers. Numbers in scientific notation are parsed back to the standard notation. For example "5e-3" + * @since 1.28.2 defines whether to output the string from the parse function in order to keep the precision + * for big numbers. Numbers in scientific notation are parsed back to standard notation. For example, "5e-3" * is parsed to "0.005". */ parseAsString?: boolean; + /** + * CLDR number pattern which is used to format the number + */ + pattern?: string; + /** + * defines the used plus symbol + */ + plusSign?: string; + /** + * defines the numerical precision; the number of decimals is calculated dependent on the integer digits + */ + precision?: int; /** * Whether {@link #format} preserves decimal digits except trailing zeros in case there are more decimals * than the `maxFractionDigits` format option allows. If decimals are not preserved, the formatted number * is rounded to `maxFractionDigits`. */ preserveDecimals?: boolean; - /** - * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). - * Numbers are formatted into compact forms when it's set to 'short' or 'long'. When this option is set, - * the default value of option 'precision' is set to 2. This can be changed by setting either min/maxFractionDigits, - * decimals, shortDecimals or precision option. - */ - style?: string; /** * specifies a rounding behavior for discarding the digits after the maximum fraction digits defined by - * maxFractionDigits. Rounding will only be applied, if the passed value if of type number. This can be - * assigned by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode} or a function - * which will be used for rounding the number. The function is called with two parameters: the number and - * how many decimal digits should be reserved. + * maxFractionDigits. Rounding will only be applied if the passed value is of type `number`. This can be + * assigned + * - by value in {@link sap.ui.core.format.NumberFormat.RoundingMode RoundingMode}, + * - via a function that is used for rounding the number and takes two parameters: the number itself, + * and the number of decimal digits that should be reserved. */ roundingMode?: RoundingMode | keyof typeof RoundingMode; + /** + * defines the number of decimals in the shortened format string. If this option isn't specified, the 'decimals' + * option is used instead. + */ + shortDecimals?: int; + /** + * only use short number formatting for values above this limit + */ + shortLimit?: int; + /** + * @since 1.40 specifies a number from which the scale factor for the 'short' or 'long' style format is + * generated. The generated scale factor is used for all numbers which are formatted with this format instance. + * This option has effect only when the option 'style' is set to 'short' or 'long'. This option is by default + * set with `undefined` which means the scale factor is selected automatically for each number being formatted. + */ + shortRefNumber?: int; /** * defines whether the unit of measure is shown in the formatted string, e.g. for input 1 and "duration-day" * true: "1 day", false: "1". If both `showMeasure` and `showNumber` are false, an empty string is returned @@ -19178,12 +19333,17 @@ declare module "sap/ui/core/format/NumberFormat" { */ showNumber?: boolean; /** - * @since 1.30.0 defines what empty string is parsed as and what is formatted as empty string. The allowed - * values are "" (empty string), NaN, null or 0. The 'format' and 'parse' are done in a symmetric way. For - * example when this parameter is set to NaN, empty string is parsed as [NaN, undefined] and NaN is formatted - * as empty string. + * @since 1.40 specifies whether the scale factor is shown in the formatted number. This option takes effect + * only when the 'style' options is set to either 'short' or 'long'. */ - emptyString?: number; + showScale?: boolean; + /** + * defines the style of format. Valid values are 'short, 'long' or 'standard' (based on CLDR decimalFormat). + * When set to 'short' or 'long', numbers are formatted into compact forms. When this option is set, the + * default value of the 'precision' option is set to 2. This can be changed by setting either min/maxFractionDigits, + * decimals, shortDecimals, or the 'precision' option itself. + */ + style?: string; }, /** * Locale to get the formatter for @@ -19203,6 +19363,19 @@ declare module "sap/ui/core/format/NumberFormat" { */ sMeasure?: string ): string; + /** + * @SINCE 1.100 + * + * Returns the scaling factor which is calculated based on the format options and the current locale being + * used. + * + * This function only returns a meaningful scaling factor when the 'style' formatting option is set to 'short' + * or 'long', and the 'shortRefNumber' option for calculating the scale factor is set. + * + * Consider using this function when the 'showScale' option is set to `false`, which causes the scale factor + * not to appear in every formatted number but in a shared place. + */ + getScale(): string | undefined; /** * Parse a string which is formatted according to the given format options. */ @@ -20162,8 +20335,10 @@ declare module "sap/ui/core/Icon" { * Icon uses embedded font instead of pixel image. Comparing to image, Icon is easily scalable, color can * be altered live and various effects can be added using css. * - * A set of built in Icons is available and they can be fetched by calling sap.ui.core.IconPool.getIconURI - * and set this value to the src property on the Icon. + * A set of built in Icons is available in the Icon + * Explorer. + * + * For further information, see {@link topic:21ea0ea94614480d9a910b2e93431291 Icon and Icon Pool}. */ export default class Icon extends Control implements IFormContent { __implements__sap_ui_core_IFormContent: boolean; @@ -20412,9 +20587,17 @@ declare module "sap/ui/core/Icon" { /** * Gets current value of property {@link #getSrc src}. * - * This property should be set by the return value of calling sap.ui.core.IconPool.getIconURI with an Icon - * name parameter and an optional collection parameter which is required when using application extended - * Icons. A list of standard FontIcon is available here. + * This property can be set by following options: + * + * **Option 1:** + * The value has to be matched by following pattern `sap-icon://collection-name/icon-name` where `collection-name` + * and `icon-name` have to be replaced by the desired values. In case the default UI5 icons are used the + * `collection-name` can be omited. + * Example: `sap-icon://accept` + * + * **Option 2:** The value is determined by using {@link sap.ui.core.IconPool.getIconURI} with an Icon name + * parameter and an optional collection parameter which is required when using application extended Icons. + * Example: `IconPool.getIconURI("accept")` */ getSrc(): URI; /** @@ -20627,9 +20810,17 @@ declare module "sap/ui/core/Icon" { /** * Sets a new value for property {@link #getSrc src}. * - * This property should be set by the return value of calling sap.ui.core.IconPool.getIconURI with an Icon - * name parameter and an optional collection parameter which is required when using application extended - * Icons. A list of standard FontIcon is available here. + * This property can be set by following options: + * + * **Option 1:** + * The value has to be matched by following pattern `sap-icon://collection-name/icon-name` where `collection-name` + * and `icon-name` have to be replaced by the desired values. In case the default UI5 icons are used the + * `collection-name` can be omited. + * Example: `sap-icon://accept` + * + * **Option 2:** The value is determined by using {@link sap.ui.core.IconPool.getIconURI} with an Icon name + * parameter and an optional collection parameter which is required when using application extended Icons. + * Example: `IconPool.getIconURI("accept")` * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -20674,9 +20865,17 @@ declare module "sap/ui/core/Icon" { export interface $IconSettings extends $ControlSettings { /** - * This property should be set by the return value of calling sap.ui.core.IconPool.getIconURI with an Icon - * name parameter and an optional collection parameter which is required when using application extended - * Icons. A list of standard FontIcon is available here. + * This property can be set by following options: + * + * **Option 1:** + * The value has to be matched by following pattern `sap-icon://collection-name/icon-name` where `collection-name` + * and `icon-name` have to be replaced by the desired values. In case the default UI5 icons are used the + * `collection-name` can be omited. + * Example: `sap-icon://accept` + * + * **Option 2:** The value is determined by using {@link sap.ui.core.IconPool.getIconURI} with an Icon name + * parameter and an optional collection parameter which is required when using application extended Icons. + * Example: `IconPool.getIconURI("accept")` */ src?: URI | PropertyBindingInfo; @@ -25990,6 +26189,13 @@ declare module "sap/ui/core/mvc/XMLView" { * On root level, you can only define content for the default aggregation, e.g. without adding the `` * tag. If you want to specify content for another aggregation of a view like `dependents`, place it in * a child control's dependents aggregation or add it by using {@link sap.ui.core.mvc.XMLView#addDependent}. + * + * **Note:** + * The XML view offers special handling for context binding and style classes. You can specify them via + * the `binding` and `class` attributes on a control's XML node. Please be aware that these attributes are + * not properties of the respective controls and thus are not supported by a control's constructor. For + * more information, see {@link topic:91f05e8b6f4d1014b6dd926db0e91070 Context Binding (Element Binding)} + * and {@link topic:b564935324f449209354c7e2f9903f22 Using CSS Style Sheets in XML Views}. */ export default class XMLView extends View { /** @@ -26268,7 +26474,7 @@ declare module "sap/ui/core/Popup" { import ManagedObjectMetadata from "sap/ui/base/ManagedObjectMetadata"; - import { OpenState } from "sap/ui/core/library"; + import { OpenState, Collision } from "sap/ui/core/library"; /** * Popup Class is a helper class for controls that want themselves or parts of themselves or even other @@ -26729,7 +26935,7 @@ declare module "sap/ui/core/Popup" { * Opens the popup's content at the position either specified here or beforehand via {@link #setPosition}. * Content must be capable of being positioned via "position:absolute;" All parameters are optional (open() * may be called without any parameters). iDuration may just be omitted, but if any of "at", "of", "offset", - * "collision" is given, also the preceding positioning parameters ("my", at",...) must be given. + * "collision" is given, also the preceding positional parameters ("my", at",...) must be given. * * If the Popup's OpenState is different from "CLOSED" (i.e. if the Popup is already open, opening or closing), * the call is ignored. @@ -26761,7 +26967,7 @@ declare module "sap/ui/core/Popup" { * defines how the position of an element should be adjusted in case it overflows the within area in some * direction. */ - collision?: string, + collision?: Collision, /** * defines the area the popup should be placed in. This affects the collision detection. */ @@ -26769,7 +26975,7 @@ declare module "sap/ui/core/Popup" { /** * defines whether the popup should follow the dock reference when the reference changes its position. */ - followOf?: boolean + followOf?: boolean | Function | null ): void; /** * Sets the animation functions to use for opening and closing the Popup. Any null value will be ignored @@ -26911,9 +27117,9 @@ declare module "sap/ui/core/Popup" { offset?: string, /** * defines how the position of an element should be adjusted in case it overflows the within area in some - * direction. The valid values that refer to jQuery-UI's position parameters are "flip", "fit" and "none". + * direction. */ - collision?: string, + collision?: Collision, /** * defines the area the popup should be placed in. This affects the collision detection. */ @@ -37593,19 +37799,56 @@ declare module "sap/ui/model/analytics/AnalyticalBinding" { */ getNodeContexts( /** - * specifying the aggregation level for which contexts shall be fetched. Supported parameters are: - * - * - oContext: parent context identifying the requested group of child contexts - * - level: level number for oContext, because it might occur at multiple levels; context with group ID - * `"/"` has level 0 - * - numberOfExpandedLevels: number of child levels that shall be fetched automatically - * - startIndex: index of first child entry to return from the parent context (zero-based) - * - length: number of entries to return; counting begins at the given start index - * - threshold: number of additional entries that shall be locally available in the binding for subsequent - * accesses to child entries of the given parent context. + * Parent context identifying the requested group of child contexts */ - mParameters: object - ): any[]; + oContext: Context, + /** + * Parameters, specifying the aggregation level for which contexts shall be fetched or (legacy signature + * variant) index of first child entry to return from the parent context (zero-based) + */ + mParameters: + | { + /** + * Level number for oContext, because it might occur at multiple levels; context with group ID `"/"` has + * level 0 + */ + level: int; + /** + * Number of child levels that shall be fetched automatically + */ + numberOfExpandedLevels?: int; + /** + * Index of first child entry to return from the parent context (zero-based) + */ + startIndex?: int; + /** + * Number of entries to return; counting begins at the given start index + */ + length?: int; + /** + * Number of additional entries that shall be locally available in the binding for subsequent accesses to + * child entries of the given parent context + */ + threshold?: int; + } + | int, + /** + * Same meaning as `mParameters.length`, legacy signature variant only + */ + iLength?: int, + /** + * Same meaning as `mParameters.threshold`, legacy signature variant only + */ + iThreshold?: int, + /** + * Same meaning as `mParameters.level`, legacy signature variant only + */ + iLevel?: int, + /** + * Same meaning as `mParameters.numberOfExpandedLevels`, legacy signature variant only + */ + iNumberOfExpandedLevels?: int + ): Context[]; /** * Gets the metadata of a property with a given name. */ @@ -41059,6 +41302,18 @@ declare module "sap/ui/model/CompositeType" { */ aCurrentValues?: any[] ): any[] | any; + /** + * @SINCE 1.100.0 + * + * Processes the types of the parts of this composite type. A concrete composite type may override this + * method if it needs to derive information from the types of the parts. + */ + processPartTypes( + /** + * Types of the composite binding's parts + */ + aPartTypes: SimpleType[] + ): void; /** * Validates whether the given raw values meet the defined constraints. This method does nothing if no constraints * are defined. @@ -42059,24 +42314,24 @@ declare module "sap/ui/model/json/JSONModel" { bMerge?: boolean ): void; /** - * Sets a new value for the given property `sPropertyName` in the model. If the model value changed all - * interested parties are informed. + * Sets `oValue` as new value for the property defined by the given `sPath` and `oContext`. Once the new + * model value has been set, all interested parties are informed. */ setProperty( /** - * path of the property to set + * The path of the property to set */ sPath: string, /** - * value to set the property to + * The new value to be set for this property */ oValue: any, /** - * the context which will be used to set the property + * The context used to set the property */ - oContext?: object, + oContext?: Context, /** - * whether to update other bindings dependent on this property asynchronously + * Whether to update other bindings dependent on this property asynchronously */ bAsyncUpdate?: boolean ): boolean; @@ -47339,16 +47594,20 @@ declare module "sap/ui/model/odata/type/DateTimeWithTimezone" { * * This class represents the `DateTimeWithTimezone` composite type which has the parts timestamp and time * zone. The type formats the timestamp part using the time zone part. For this, the timestamp part has - * to be provided in the UTC time zone. + * to be provided in the UTC time zone. When using this type with the {@link sap.ui.model.odata.v2.ODataModel}, + * you need to set the parameter `useUndefinedIfUnresolved` for both parts. */ export default class DateTimeWithTimezone extends CompositeType { /** * Constructor for a `DateTimeWithTimezone` composite type. + * See: + * {sap.ui.model.odata.v2.ODataModel#bindProperty} */ constructor( /** * Format options. For a list of all available options, see {@link sap.ui.core.format.DateFormat.getDateTimeWithTimezoneInstance - * DateFormat}. Format options are immutable, that is, they can only be set once on construction. + * DateFormat}. The `strictParsing` format option is set to `true` by default and can be overwritten. Format + * options are immutable, that is, they can only be set once on construction. */ oFormatOptions?: object, /** @@ -49339,7 +49598,9 @@ declare module "sap/ui/model/odata/v2/Context" { * @SINCE 1.98.0 * * Returns whether this context is inactive. An inactive context will only be sent to the server after the - * first property update. From then on it behaves like any other created context. + * first property update. From then on it behaves like any other created context. The result of this function + * can also be accessed via the "@$ui5.context.isInactive" instance annotation at the entity, see {@link + * sap.ui.model.odata.v2.ODataModel#getProperty} for details. * See: * sap.ui.model.odata.v2.ODataListBinding#create * sap.ui.model.odata.v2.ODataModel#createEntry @@ -49350,7 +49611,9 @@ declare module "sap/ui/model/odata/v2/Context" { * * For a context created using {@link sap.ui.model.odata.v2.ODataModel#createEntry} or {@link sap.ui.model.odata.v2.ODataListBinding#create}, * the method returns `true` if the context is transient or `false` if the context is not transient. A transient - * context represents an entity created on the client which has not been persisted in the back end. + * context represents an entity created on the client which has not been persisted in the back end. The + * result of this function can also be accessed via the "@$ui5.context.isTransient" instance annotation + * at the entity, see {@link sap.ui.model.odata.v2.ODataModel#getProperty} for details. */ isTransient(): boolean; } @@ -51122,7 +51385,8 @@ declare module "sap/ui/model/odata/v2/ODataModel" { /** * Creates a new property binding for this model. * See: - * sap.ui.model.Model.prototype.bindProperty + * sap.ui.model.Model#bindProperty + * #getProperty */ bindProperty( /** @@ -51142,13 +51406,18 @@ declare module "sap/ui/model/odata/v2/ODataModel" { * Whether this binding does not propagate model messages to the control; supported since 1.82.0. Some composite * types like {@link sap.ui.model.type.Currency} automatically ignore model messages for some of their parts * depending on their format options; setting this parameter to `true` or `false` overrules the automatism - * of the type. + * of the type * * For example, a binding for a currency code is used in a composite binding for rendering the proper number * of decimals, but the currency code is not displayed in the attached control. In that case, messages for - * the currency code shall not be displayed at that control, only messages for the amount. + * the currency code shall not be displayed at that control, only messages for the amount */ ignoreMessages?: boolean; + /** + * Whether the value of the created property binding is `undefined` if it is unresolved; if not set, its + * value is `null`. Supported since 1.100.0 + */ + useUndefinedIfUnresolved?: boolean; } ): PropertyBinding; /** @@ -52185,11 +52454,13 @@ declare module "sap/ui/model/odata/v2/ODataModel" { */ getPendingChanges(): Record; /** - * Returns the value for the property with the given `sPath`. + * Returns the value for the property with the given `sPath`. Since 1.100, a path starting with "@$ui5." + * which represents an instance annotation is supported. The following instance annotations are allowed; + * they return information on the given oContext, which must be set and be an {@link sap.ui.model.odata.v2.Context}: * - * If the path points to a navigation property which has been loaded via `$expand` then the `bIncludeExpandEntries` - * parameter determines if the navigation property should be included in the returned value or not. Please - * note that this currently works for 1..1 navigation properties only. + * - `@$ui5.context.isInactive`: The return value of {@link sap.ui.model.odata.v2.Context#isInactive} + * + * - `@$ui5.context.isTransient`: The return value of {@link sap.ui.model.odata.v2.Context#isTransient} */ getProperty( /** @@ -52201,11 +52472,9 @@ declare module "sap/ui/model/odata/v2/ODataModel" { */ oContext?: object, /** - * @deprecated Please use {@link #getObject} function with select/expand parameters instead. This parameter - * should be set when a URI or custom parameter with a `$expand` system query option was used to retrieve - * associated entries embedded/inline. If true then the `getProperty` function returns a desired property - * value/entry and includes the associated expand entries (if any). Note: A copy and not a reference of - * the entry will be returned. + * Deprecated, use {@link #getObject} function with 'select' and 'expand' parameters instead. Whether entities + * for navigation properties of this property which have been read via `$expand` are part of the return + * value. */ bIncludeExpandEntries?: boolean ): any; @@ -54094,8 +54363,10 @@ declare module "sap/ui/model/odata/v4/Context" { */ fnOnBeforeDestroy?: Function, /** - * Whether to request messages for this entity. Only used if `bKeepAlive` is `true`. The binding keeps requesting - * messages until it is destroyed. Supported since 1.92.0 + * Whether to request messages for this entity. Only used if `bKeepAlive` is `true`. Determines the messages + * property from the annotation "com.sap.vocabularies.Common.v1.Messages" at the entity type. If found, + * the binding keeps requesting messages until it is destroyed. Otherwise an error is logged in the console + * and no messages are requested. Supported since 1.92.0 */ bRequestMessages?: boolean ): void; @@ -54340,10 +54611,10 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" { * entity type, you can bind properties as usual, for example ``. * * Since 1.98.0, a single-valued navigation property can be treated like a function if - * it has the same type as the operation binding's parent context, that parent context is in the - * collection (has an index, see {@link sap.ui.model.odata.v4.Context#getIndex}) of a list binding for a - * top-level entity set, there is a navigation property binding which points to that same entity set, - * no operation parameters have been set, the `bReplaceWithRVC` parameter is used. + * it has the same type as the operation binding's parent context, that parent context is in a list + * binding for a top-level entity set, there is a navigation property binding which points to that + * same entity set, no operation parameters have been set, the `bReplaceWithRVC` parameter is + * used. */ execute( /** @@ -54439,12 +54710,12 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" { hasPendingChanges( /** * Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters - * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort - * sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link - * sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding. Since 1.98.0, {@link - * sap.ui.model.odata.v4.Context#isTransient transient} contexts of a {@link #getRootBinding root binding} - * are treated as kept-alive by this flag. Since 1.99.0, the same happens for bindings using the `$$ownRequest` - * parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). + * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#refresh + * refresh} (since 1.100.0), {@link sap.ui.model.odata.v4.ODataListBinding#sort sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend + * suspend} because they relate to a {@link sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context + * of this binding (since 1.97.0). Since 1.98.0, {@link sap.ui.model.odata.v4.Context#isTransient transient} + * contexts of a {@link #getRootBinding root binding} are treated as kept-alive by this flag. Since 1.99.0, + * the same happens for bindings using the `$$ownRequest` parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). */ bIgnoreKeptAlive?: boolean ): boolean; @@ -54475,10 +54746,10 @@ declare module "sap/ui/model/odata/v4/ODataContextBinding" { * determines the binding's data; it is **independent** of the order of calls to {@link sap.ui.model.odata.v4.ODataModel#submitBatch} * with the given group ID. * - * If there are pending changes, an error is thrown. Use {@link #hasPendingChanges} to check if there are - * pending changes. If there are changes, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch} to submit - * the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before calling - * {@link #refresh}. + * 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} + * to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before + * calling {@link #refresh}. * * Use {@link #requestRefresh} if you want to wait for the refresh. * See: @@ -55077,7 +55348,8 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { * @SINCE 1.99.0 * * Calls {@link sap.ui.model.odata.v4.Context#setKeepAlive} at the context for the given path and returns - * it. + * it. Since 1.100.0 the function always returns such a context. If none exists yet, it is created without + * data and a request for its entity is sent. * See: * sap.ui.model.odata.v4.Model#getKeepAliveContext */ @@ -55089,7 +55361,12 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { /** * Whether to request messages for the context's entity */ - bRequestMessages?: boolean + bRequestMessages?: boolean, + /** + * The group ID used for read requests for the context's entity or its properties. If not given, the binding's + * {@link #getGroupId group ID} is used. Supported since 1.100.0 + */ + sGroupId?: string ): Context | undefined; /** * @SINCE 1.37.0 @@ -55148,12 +55425,12 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { hasPendingChanges( /** * Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters - * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort - * sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link - * sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding. Since 1.98.0, {@link - * sap.ui.model.odata.v4.Context#isTransient transient} contexts of a {@link #getRootBinding root binding} - * are treated as kept-alive by this flag. Since 1.99.0, the same happens for bindings using the `$$ownRequest` - * parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). + * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#refresh + * refresh} (since 1.100.0), {@link sap.ui.model.odata.v4.ODataListBinding#sort sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend + * suspend} because they relate to a {@link sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context + * of this binding (since 1.97.0). Since 1.98.0, {@link sap.ui.model.odata.v4.Context#isTransient transient} + * contexts of a {@link #getRootBinding root binding} are treated as kept-alive by this flag. Since 1.99.0, + * the same happens for bindings using the `$$ownRequest` parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). */ bIgnoreKeptAlive?: boolean ): boolean; @@ -55201,10 +55478,10 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { * determines the binding's data; it is **independent** of the order of calls to {@link sap.ui.model.odata.v4.ODataModel#submitBatch} * with the given group ID. * - * If there are pending changes, an error is thrown. Use {@link #hasPendingChanges} to check if there are - * pending changes. If there are changes, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch} to submit - * the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before calling - * {@link #refresh}. + * 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} + * to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before + * calling {@link #refresh}. * * Use {@link #requestRefresh} if you want to wait for the refresh. * See: @@ -56472,7 +56749,8 @@ declare module "sap/ui/model/odata/v4/ODataModel" { $$canonicalPath?: boolean; /** * Whether this binding is considered for a match when {@link #getKeepAliveContext} is called; only the - * value `true` is allowed. Supported since 1.99.0 + * value `true` is allowed. Must not be combined with `$apply`, `$$aggregation`, `$$canonicalPath`, or `$$sharedRequest`. + * If the binding is relative, `$$ownRequest` must be set as well. Supported since 1.99.0 */ $$getKeepAliveContext?: boolean; /** @@ -56736,10 +57014,19 @@ declare module "sap/ui/model/odata/v4/ODataModel" { * @SINCE 1.99.0 * * Returns a context with the given path belonging to a matching list binding that has been marked with - * `$$getKeepAliveContext` (see {@link #bindList}). If such a context exists, it is returned and kept alive - * (see {@link sap.ui.model.odata.v4.Context#setKeepAlive}). - * See: - * sap.ui.model.odata.v4.ODataListBinding#getKeepAliveContext + * `$$getKeepAliveContext` (see {@link #bindList}). If such a matching binding can be found, a context is + * returned and kept alive (see {@link sap.ui.model.odata.v4.ODataListBinding#getKeepAliveContext}). Since + * 1.100.0 a temporary binding is used if no such binding could be found. If such a binding is created or + * resolved later, the context and its data are transferred to it, and the temporary binding is destroyed + * again. + * + * A `$$getKeepAliveContext` binding matches if its resolved binding path is the collection path of the + * context. If the context is created using a temporary binding and the parameters of the `$$getKeepAliveContext` + * binding differ from the given `mParameters` (except `$$groupId` which is especially used for the context), + * that binding later runs into an error when trying to read data. + * + * **Note**: The context received by this function may change its {@link sap.ui.model.odata.v4.Context#getBinding + * binding} during its lifetime. */ getKeepAliveContext( /** @@ -56749,7 +57036,27 @@ declare module "sap/ui/model/odata/v4/ODataModel" { /** * Whether to request messages for the context's entity */ - bRequestMessages?: boolean + bRequestMessages?: boolean, + /** + * Parameters for the context or the temporary binding; supported since 1.100.0. All custom query options + * and the following binding-specific parameters for a list binding may be given (see {@link #bindList} + * for details). + */ + mParameters?: { + /** + * The group ID used for read requests for the context's entity or its properties. If not given, the model's + * {@link #getGroupId group ID} is used + */ + $$groupId?: string; + /** + * Whether implicit loading of side effects via PATCH requests is switched off + */ + $$patchWithoutSideEffects?: boolean; + /** + * The group ID to be used for **update** requests triggered by the context's binding + */ + $$updateGroupId?: string; + } ): Context | undefined; /** * @SINCE 1.85.0 @@ -57047,12 +57354,12 @@ declare module "sap/ui/model/odata/v4/ODataPropertyBinding" { hasPendingChanges( /** * Whether to ignore changes which will not be lost by APIs like {@link sap.ui.model.odata.v4.ODataListBinding#changeParameters - * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#sort - * sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend suspend} because they relate to a {@link - * sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context of this binding. Since 1.98.0, {@link - * sap.ui.model.odata.v4.Context#isTransient transient} contexts of a {@link #getRootBinding root binding} - * are treated as kept-alive by this flag. Since 1.99.0, the same happens for bindings using the `$$ownRequest` - * parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). + * changeParameters}, {@link sap.ui.model.odata.v4.ODataListBinding#filter filter}, {@link sap.ui.model.odata.v4.ODataListBinding#refresh + * refresh} (since 1.100.0), {@link sap.ui.model.odata.v4.ODataListBinding#sort sort}, or {@link sap.ui.model.odata.v4.ODataListBinding#suspend + * suspend} because they relate to a {@link sap.ui.model.odata.v4.Context#setKeepAlive kept-alive} context + * of this binding (since 1.97.0). Since 1.98.0, {@link sap.ui.model.odata.v4.Context#isTransient transient} + * contexts of a {@link #getRootBinding root binding} are treated as kept-alive by this flag. Since 1.99.0, + * the same happens for bindings using the `$$ownRequest` parameter (see {@link sap.ui.model.odata.v4.ODataModel#bindList}). */ bIgnoreKeptAlive?: boolean ): boolean; @@ -57074,10 +57381,10 @@ declare module "sap/ui/model/odata/v4/ODataPropertyBinding" { * determines the binding's data; it is **independent** of the order of calls to {@link sap.ui.model.odata.v4.ODataModel#submitBatch} * with the given group ID. * - * If there are pending changes, an error is thrown. Use {@link #hasPendingChanges} to check if there are - * pending changes. If there are changes, call {@link sap.ui.model.odata.v4.ODataModel#submitBatch} to submit - * the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before calling - * {@link #refresh}. + * 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} + * to submit the changes or {@link sap.ui.model.odata.v4.ODataModel#resetChanges} to reset the changes before + * calling {@link #refresh}. * * Use {@link #requestRefresh} if you want to wait for the refresh. * See: @@ -64013,7 +64320,7 @@ declare module "sap/ui/test/OpaBuilder" { /** * the type of the target control(s) */ - vControlType?: string, + sControlType?: string, /** * if true, only popover and dialogs are searched for */ @@ -64269,9 +64576,9 @@ declare module "sap/ui/test/OpaBuilder" { */ sAggregationName: string, /** - * iNumber length to check against + * length to check against */ - int?: undefined + iNumber: int ): this; /** * Adds a matcher to aggregation items checking for certain properties. At least one item must match the @@ -64369,7 +64676,7 @@ declare module "sap/ui/test/OpaBuilder" { /** * the type of the target control(s) */ - vControlType: string + sControlType: string ): this; /** * Defines whether target control is part of a popover or dialog (sets `searchOpenDialogs` property). @@ -69057,6 +69364,8 @@ declare namespace sap { "sap/ui/core/format/DateFormat": undefined; + "sap/ui/core/format/DateFormatTimezoneDisplay": undefined; + "sap/ui/core/format/FileSizeFormat": undefined; "sap/ui/core/format/ListFormat": undefined; @@ -69581,6 +69890,8 @@ declare namespace sap { "sap/ui/performance/trace/FESR": undefined; + "sap/ui/performance/trace/FESRHelper": undefined; + "sap/ui/performance/trace/initTraces": undefined; "sap/ui/performance/trace/Interaction": undefined; @@ -69601,6 +69912,10 @@ declare namespace sap { "sap/ui/test/actions/Scroll": undefined; + "sap/ui/test/generic/GenericTestCollection": undefined; + + "sap/ui/test/generic/Utils": undefined; + "sap/ui/test/gherkin/dataTableUtils": undefined; "sap/ui/test/gherkin/opa5TestHarness": undefined; diff --git a/types/openui5/sap.ui.dt.d.ts b/types/openui5/sap.ui.dt.d.ts index 1ee2e2d368ee4c..113b2bc7373320 100644 --- a/types/openui5/sap.ui.dt.d.ts +++ b/types/openui5/sap.ui.dt.d.ts @@ -1,3 +1,3 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare namespace sap {} diff --git a/types/openui5/sap.ui.fl.d.ts b/types/openui5/sap.ui.fl.d.ts index 48a1e224b7d4d8..cab9f23c585a44 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/fl/library" {} @@ -1669,6 +1669,10 @@ declare namespace sap { "sap/ui/fl/apply/_internal/flexObjects/CompVariantRevertData": undefined; + "sap/ui/fl/apply/_internal/flexObjects/FlexObject": undefined; + + "sap/ui/fl/apply/_internal/flexObjects/FlexObjectFactory": undefined; + "sap/ui/fl/apply/_internal/flexObjects/RevertData": undefined; "sap/ui/fl/apply/_internal/flexObjects/UpdatableChange": undefined; diff --git a/types/openui5/sap.ui.integration.d.ts b/types/openui5/sap.ui.integration.d.ts index 80d4f3315a176d..a19ac50c0a6c2e 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/integration/library" { import { URI } from "sap/ui/core/library"; @@ -38,6 +38,12 @@ declare module "sap/ui/integration/library" { * Date selection. Available only for Calendar cards. */ DateChange = "DateChange", + /** + * @EXPERIMENTAL (since 1.100) + * + * Used for hiding the appeared details about the card. + */ + HideCard = "HideCard", /** * @EXPERIMENTAL (since 1.87) * @@ -48,6 +54,12 @@ declare module "sap/ui/integration/library" { * Used for navigation actions */ Navigation = "Navigation", + /** + * @EXPERIMENTAL (since 1.100) + * + * Used for showing more details about the card. + */ + ShowCard = "ShowCard", /** * Used for submit actions */ @@ -3129,6 +3141,8 @@ declare namespace sap { "sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor": undefined; + "sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor": undefined; + "sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory": undefined; "sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor": undefined; @@ -3197,12 +3211,16 @@ declare namespace sap { "sap/ui/integration/editor/fields/IntegerField": undefined; - "sap/ui/integration/editor/fields/ListField": undefined; - "sap/ui/integration/editor/fields/NumberField": undefined; + "sap/ui/integration/editor/fields/ObjectField": undefined; + + "sap/ui/integration/editor/fields/ObjectListField": undefined; + "sap/ui/integration/editor/fields/StringField": undefined; + "sap/ui/integration/editor/fields/StringListField": undefined; + "sap/ui/integration/editor/fields/viz/ColorSelect": undefined; "sap/ui/integration/editor/fields/viz/IconSelect": undefined; diff --git a/types/openui5/sap.ui.layout.d.ts b/types/openui5/sap.ui.layout.d.ts index 3ba7a6d9c5072a..645b9604fc7a3a 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/layout/library" { import Control from "sap/ui/core/Control"; diff --git a/types/openui5/sap.ui.mdc.d.ts b/types/openui5/sap.ui.mdc.d.ts index 938028b813c60f..c5864bb5c8bade 100644 --- a/types/openui5/sap.ui.mdc.d.ts +++ b/types/openui5/sap.ui.mdc.d.ts @@ -1,4 +1,56 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 + +declare module "sap/ui/mdc/filterbar/vh/FilterContainer" { + import Metadata from "sap/ui/base/Metadata"; + + /** + * @SINCE 1.84.0 + * + * The FilterContainer is a IFilterContainer implementation for `AlignedFlowLayout` + */ + export default class FilterContainer + /* was: sap.ui.mdc.filterbar.IFilterContainer */ extends Object { + /** + * Constructor for a new filterBar/vh/FilterContainer. + * + * 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. + */ + constructor( + /** + * ID for the new control, generated automatically if no ID is given + */ + sId?: string + ); + + /** + * Creates a new subclass of class sap.ui.mdc.filterbar.vh.FilterContainer with name `sClassName` and enriches + * it with the information contained in `oClassInfo`. + * + * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.mdc.filterbar.IFilterContainer.extend}. + */ + static extend>( + /** + * Name of the class being created + */ + sClassName: string, + /** + * Object literal with information about the class + */ + oClassInfo?: sap.ClassInfo, + /** + * Constructor function for the metadata object; if not given, it defaults to the metadata implementation + * used by this class + */ + FNMetaImpl?: Function + ): Function; + /** + * Returns a metadata object for class sap.ui.mdc.filterbar.vh.FilterContainer. + */ + static getMetadata(): Metadata; + } +} declare namespace sap { interface IUI5DefineDependencyNames { @@ -122,6 +174,10 @@ declare namespace sap { "sap/ui/mdc/filterbar/vh/CollectiveSearchSelect": undefined; + "sap/ui/mdc/filterbar/vh/FilterBar": undefined; + + "sap/ui/mdc/filterbar/vh/FilterContainer": undefined; + "sap/ui/mdc/FilterBarDelegate": undefined; "sap/ui/mdc/FilterField": undefined; @@ -140,6 +196,8 @@ declare namespace sap { "sap/ui/mdc/mixin/PromiseMixin": undefined; + "sap/ui/mdc/mixin/PropertyHelperMixin": undefined; + "sap/ui/mdc/MultiValueField": undefined; "sap/ui/mdc/odata/v4/FieldBaseDelegate": undefined; @@ -174,6 +232,8 @@ declare namespace sap { "sap/ui/mdc/table/ResponsiveTableType": undefined; + "sap/ui/mdc/table/RowActionItem": undefined; + "sap/ui/mdc/table/RowSettings": undefined; "sap/ui/mdc/table/TableTypeBase": undefined; diff --git a/types/openui5/sap.ui.rta.d.ts b/types/openui5/sap.ui.rta.d.ts index ec01facc049639..62db82b00a0693 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/rta/api/startAdaptation" { import Control from "sap/ui/core/Control"; diff --git a/types/openui5/sap.ui.suite.d.ts b/types/openui5/sap.ui.suite.d.ts index 050cf9f1a29e60..c2aa64295ea57c 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.99.0 +// For Library Version: 1.100.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 694e9717514714..4f337d446575b4 100644 --- a/types/openui5/sap.ui.support.d.ts +++ b/types/openui5/sap.ui.support.d.ts @@ -1,8 +1,8 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/support/library" { /** - * @SINCE 1.99.0 + * @SINCE 1.100.0 * * Defines the Audiences. */ @@ -21,7 +21,7 @@ declare module "sap/ui/support/library" { Internal = "Internal", } /** - * @SINCE 1.99.0 + * @SINCE 1.100.0 * * Issue Categories. */ @@ -76,7 +76,7 @@ declare module "sap/ui/support/library" { Usage = "Usage", } /** - * @SINCE 1.99.0 + * @SINCE 1.100.0 * * Analysis history formats. */ @@ -91,7 +91,7 @@ declare module "sap/ui/support/library" { String = "String", } /** - * @SINCE 1.99.0 + * @SINCE 1.100.0 * * Defines severity types. */ @@ -110,7 +110,7 @@ declare module "sap/ui/support/library" { Medium = "Medium", } /** - * @SINCE 1.99.0 + * @SINCE 1.100.0 * * Contains the available system presets. */ @@ -264,12 +264,6 @@ declare namespace sap { namespace support { export const CoreFacade: undefined; - /** - * Overview: These channels enable the user to hook to the {@link sap.ui.support.WindowCommunicationBus - * } Usage: These channels are used for communication with Main. - */ - export const WCBChannels: undefined; - /** * Creates a RuleSet. The RuleSet can store multiple rules concerning namespaces. Usage: The RuleSet is * an interface used to create, update and delete rulesets. diff --git a/types/openui5/sap.ui.table.d.ts b/types/openui5/sap.ui.table.d.ts index 128034241dcd0e..d9adbcadef5330 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.98.0 +// For Library Version: 1.100.0 declare module "sap/ui/table/library" { import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode"; @@ -1164,11 +1164,7 @@ declare module "sap/ui/table/Column" { import Menu from "sap/ui/unified/Menu"; - import { - IColumnHeaderMenu, - HorizontalAlign, - CSSSize, - } from "sap/ui/core/library"; + import { HorizontalAlign, CSSSize } from "sap/ui/core/library"; import ElementMetadata from "sap/ui/core/ElementMetadata"; @@ -1366,13 +1362,6 @@ declare module "sap/ui/table/Column" { * Default value is `false`. */ getAutoResizable(): boolean; - /** - * @SINCE 1.98.0 - * - * Returns the `sap.ui.core.IColumnHeaderMenu<\code>, which is the current target of the association columnHeaderMenu`, - * or null. - */ - getColumnHeaderMenu(): IColumnHeaderMenu; /** * Gets current value of property {@link #getDefaultFilterOperator defaultFilterOperator}. * @@ -5436,7 +5425,7 @@ declare module "sap/ui/table/Table" { /** * binding context of the row which has been clicked so that selection has been changed */ - rowContext?: object; + rowContext?: Context; /** * array of row indices which selection has been changed (either selected or deselected) */ diff --git a/types/openui5/sap.ui.testrecorder.d.ts b/types/openui5/sap.ui.testrecorder.d.ts index 13fa9f966049d8..f1a5a2ec39370d 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.99.0 +// For Library Version: 1.100.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 ffcde5b2ed5cd1..f463ca74bf2e30 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/unified/library" { /** diff --git a/types/openui5/sap.ui.ux3.d.ts b/types/openui5/sap.ui.ux3.d.ts index fae6771ef93ebd..03d2882a39e17b 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.99.0 +// For Library Version: 1.100.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 fafb01299ae7ba..93137323077afd 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.99.0 +// For Library Version: 1.100.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 15b48f8f70db71..d8f1532cd4bcc1 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/webc/fiori/library" { /** @@ -331,6 +331,46 @@ declare module "sap/ui/webc/fiori/library" { * "Tent" illustration type. */ Tent = "Tent", + /** + * "TntChartArea" illustration type. + */ + TntChartArea = "TntChartArea", + /** + * "TntChartArea2" illustration type. + */ + TntChartArea2 = "TntChartArea2", + /** + * "TntChartBar" illustration type. + */ + TntChartBar = "TntChartBar", + /** + * "TntChartBPMNFlow" illustration type. + */ + TntChartBPMNFlow = "TntChartBPMNFlow", + /** + * "TntChartBullet" illustration type. + */ + TntChartBullet = "TntChartBullet", + /** + * "TntChartDoughnut" illustration type. + */ + TntChartDoughnut = "TntChartDoughnut", + /** + * "TntChartFlow" illustration type. + */ + TntChartFlow = "TntChartFlow", + /** + * "TntChartGantt" illustration type. + */ + TntChartGantt = "TntChartGantt", + /** + * "TntChartOrg" illustration type. + */ + TntChartOrg = "TntChartOrg", + /** + * "TntChartPie" illustration type. + */ + TntChartPie = "TntChartPie", /** * "TntCodePlaceholder" illustration type. */ @@ -339,6 +379,10 @@ declare module "sap/ui/webc/fiori/library" { * "TntCompany" illustration type. */ TntCompany = "TntCompany", + /** + * "TntComponents" illustration type. + */ + TntComponents = "TntComponents", /** * "TntExternalLink" illustration type. */ @@ -375,6 +419,10 @@ declare module "sap/ui/webc/fiori/library" { * "TntRadar" illustration type. */ TntRadar = "TntRadar", + /** + * "TntSecrets" illustration type. + */ + TntSecrets = "TntSecrets", /** * "TntServices" illustration type. */ @@ -395,6 +443,22 @@ declare module "sap/ui/webc/fiori/library" { * "TntSuccessfulAuth" illustration type. */ TntSuccessfulAuth = "TntSuccessfulAuth", + /** + * "TntSystems" illustration type. + */ + TntSystems = "TntSystems", + /** + * "TntTeams" illustration type. + */ + TntTeams = "TntTeams", + /** + * "TntTools" illustration type. + */ + TntTools = "TntTools", + /** + * "TntUnableToLoad" illustration type. + */ + TntUnableToLoad = "TntUnableToLoad", /** * "TntUnlock" illustration type. */ @@ -403,6 +467,10 @@ declare module "sap/ui/webc/fiori/library" { * "TntUnsuccessfulAuth" illustration type. */ TntUnsuccessfulAuth = "TntUnsuccessfulAuth", + /** + * "TntUser2" illustration type. + */ + TntUser2 = "TntUser2", /** * "Unable To Load" illustration type. */ @@ -838,22 +906,22 @@ declare module "sap/ui/webc/fiori/Bar" { */ static getMetadata(): WebComponentMetadata; /** - * Adds some content to the aggregation {@link #getContent content}. + * Adds some endContent to the aggregation {@link #getEndContent endContent}. */ - addContent( + addEndContent( /** - * The content to add; if empty, nothing is inserted + * The endContent to add; if empty, nothing is inserted */ - oContent: Control + oEndContent: Control ): this; /** - * Adds some endContent to the aggregation {@link #getEndContent endContent}. + * Adds some middleContent to the aggregation {@link #getMiddleContent middleContent}. */ - addEndContent( + addMiddleContent( /** - * The endContent to add; if empty, nothing is inserted + * The middleContent to add; if empty, nothing is inserted */ - oEndContent: Control + oMiddleContent: Control ): this; /** * Adds some startContent to the aggregation {@link #getStartContent startContent}. @@ -864,24 +932,18 @@ declare module "sap/ui/webc/fiori/Bar" { */ oStartContent: Control ): this; - /** - * Destroys all the content in the aggregation {@link #getContent content}. - */ - destroyContent(): this; /** * Destroys all the endContent in the aggregation {@link #getEndContent endContent}. */ destroyEndContent(): this; /** - * Destroys all the startContent in the aggregation {@link #getStartContent startContent}. + * Destroys all the middleContent in the aggregation {@link #getMiddleContent middleContent}. */ - destroyStartContent(): this; + destroyMiddleContent(): this; /** - * Gets content of aggregation {@link #getContent content}. - * - * Defines the content in the middle of the bar + * Destroys all the startContent in the aggregation {@link #getStartContent startContent}. */ - getContent(): Control[]; + destroyStartContent(): this; /** * Gets current value of property {@link #getDesign design}. * @@ -904,6 +966,12 @@ declare module "sap/ui/webc/fiori/Bar" { * Defines the content at the end of the bar */ getEndContent(): Control[]; + /** + * Gets content of aggregation {@link #getMiddleContent middleContent}. + * + * Defines the content in the middle of the bar + */ + getMiddleContent(): Control[]; /** * Gets content of aggregation {@link #getStartContent startContent}. * @@ -916,16 +984,6 @@ declare module "sap/ui/webc/fiori/Bar" { * Defines the width of the control */ getWidth(): CSSSize; - /** - * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getContent content}. and returns - * its index if found or -1 otherwise. - */ - indexOfContent( - /** - * The content whose index is looked for - */ - oContent: Control - ): int; /** * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getEndContent endContent}. and * returns its index if found or -1 otherwise. @@ -936,6 +994,16 @@ declare module "sap/ui/webc/fiori/Bar" { */ oEndContent: Control ): int; + /** + * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getMiddleContent middleContent}. + * and returns its index if found or -1 otherwise. + */ + indexOfMiddleContent( + /** + * The middleContent whose index is looked for + */ + oMiddleContent: Control + ): int; /** * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getStartContent startContent}. * and returns its index if found or -1 otherwise. @@ -947,31 +1015,31 @@ declare module "sap/ui/webc/fiori/Bar" { oStartContent: Control ): int; /** - * Inserts a content into the aggregation {@link #getContent content}. + * Inserts a endContent into the aggregation {@link #getEndContent endContent}. */ - insertContent( + insertEndContent( /** - * The content to insert; if empty, nothing is inserted + * The endContent to insert; if empty, nothing is inserted */ - oContent: Control, + oEndContent: Control, /** - * The `0`-based index the content should be inserted at; for a negative value of `iIndex`, the content - * is inserted at position 0; for a value greater than the current size of the aggregation, the content + * The `0`-based index the endContent should be inserted at; for a negative value of `iIndex`, the endContent + * is inserted at position 0; for a value greater than the current size of the aggregation, the endContent * is inserted at the last position */ iIndex: int ): this; /** - * Inserts a endContent into the aggregation {@link #getEndContent endContent}. + * Inserts a middleContent into the aggregation {@link #getMiddleContent middleContent}. */ - insertEndContent( + insertMiddleContent( /** - * The endContent to insert; if empty, nothing is inserted + * The middleContent to insert; if empty, nothing is inserted */ - oEndContent: Control, + oMiddleContent: Control, /** - * The `0`-based index the endContent should be inserted at; for a negative value of `iIndex`, the endContent - * is inserted at position 0; for a value greater than the current size of the aggregation, the endContent + * The `0`-based index the middleContent should be inserted at; for a negative value of `iIndex`, the middleContent + * is inserted at position 0; for a value greater than the current size of the aggregation, the middleContent * is inserted at the last position */ iIndex: int @@ -992,17 +1060,17 @@ declare module "sap/ui/webc/fiori/Bar" { iIndex: int ): this; /** - * Removes all the controls from the aggregation {@link #getContent content}. + * Removes all the controls from the aggregation {@link #getEndContent endContent}. * * Additionally, it unregisters them from the hosting UIArea. */ - removeAllContent(): Control[]; + removeAllEndContent(): Control[]; /** - * Removes all the controls from the aggregation {@link #getEndContent endContent}. + * Removes all the controls from the aggregation {@link #getMiddleContent middleContent}. * * Additionally, it unregisters them from the hosting UIArea. */ - removeAllEndContent(): Control[]; + removeAllMiddleContent(): Control[]; /** * Removes all the controls from the aggregation {@link #getStartContent startContent}. * @@ -1010,22 +1078,22 @@ declare module "sap/ui/webc/fiori/Bar" { */ removeAllStartContent(): Control[]; /** - * Removes a content from the aggregation {@link #getContent content}. + * Removes a endContent from the aggregation {@link #getEndContent endContent}. */ - removeContent( + removeEndContent( /** - * The content to remove or its index or id + * The endContent to remove or its index or id */ - vContent: int | string | Control + vEndContent: int | string | Control ): Control; /** - * Removes a endContent from the aggregation {@link #getEndContent endContent}. + * Removes a middleContent from the aggregation {@link #getMiddleContent middleContent}. */ - removeEndContent( + removeMiddleContent( /** - * The endContent to remove or its index or id + * The middleContent to remove or its index or id */ - vEndContent: int | string | Control + vMiddleContent: int | string | Control ): Control; /** * Removes a startContent from the aggregation {@link #getStartContent startContent}. @@ -1094,14 +1162,14 @@ declare module "sap/ui/webc/fiori/Bar" { width?: CSSSize | PropertyBindingInfo; /** - * Defines the content in the middle of the bar + * Defines the content at the end of the bar */ - content?: Control[] | Control | AggregationBindingInfo; + endContent?: Control[] | Control | AggregationBindingInfo; /** - * Defines the content at the end of the bar + * Defines the content in the middle of the bar */ - endContent?: Control[] | Control | AggregationBindingInfo; + middleContent?: Control[] | Control | AggregationBindingInfo; /** * Defines the content at the start of the bar @@ -3830,10 +3898,7 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; - import { - PropertyBindingInfo, - AggregationBindingInfo, - } from "sap/ui/base/ManagedObject"; + import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; /** * @SINCE 1.99.0 @@ -3915,29 +3980,11 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { */ static getMetadata(): WebComponentMetadata; /** - * Adds some content to the aggregation {@link #getContent content}. - */ - addContent( - /** - * The content to add; if empty, nothing is inserted - */ - oContent: Control - ): this; - /** - * Adds some thumbnail to the aggregation {@link #getThumbnail thumbnail}. - */ - addThumbnail( - /** - * The thumbnail to add; if empty, nothing is inserted - */ - oThumbnail: Control - ): this; - /** - * Destroys all the content in the aggregation {@link #getContent content}. + * Destroys the content in the aggregation {@link #getContent content}. */ destroyContent(): this; /** - * Destroys all the thumbnail in the aggregation {@link #getThumbnail thumbnail}. + * Destroys the thumbnail in the aggregation {@link #getThumbnail thumbnail}. */ destroyThumbnail(): this; /** @@ -3945,15 +3992,16 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { * * Defines the content of the component. */ - getContent(): Control[]; + getContent(): Control; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getLayout layout}. * @@ -3979,101 +4027,31 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { * * Defines the content of the thumbnail. */ - getThumbnail(): Control[]; + getThumbnail(): Control; /** - * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getContent content}. and returns - * its index if found or -1 otherwise. + * Sets the aggregated {@link #getContent content}. */ - indexOfContent( + setContent( /** - * The content whose index is looked for + * The content to set */ oContent: Control - ): int; - /** - * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getThumbnail thumbnail}. and - * returns its index if found or -1 otherwise. - */ - indexOfThumbnail( - /** - * The thumbnail whose index is looked for - */ - oThumbnail: Control - ): int; - /** - * Inserts a content into the aggregation {@link #getContent content}. - */ - insertContent( - /** - * The content to insert; if empty, nothing is inserted - */ - oContent: Control, - /** - * The `0`-based index the content should be inserted at; for a negative value of `iIndex`, the content - * is inserted at position 0; for a value greater than the current size of the aggregation, the content - * is inserted at the last position - */ - iIndex: int ): this; /** - * Inserts a thumbnail into the aggregation {@link #getThumbnail thumbnail}. - */ - insertThumbnail( - /** - * The thumbnail to insert; if empty, nothing is inserted - */ - oThumbnail: Control, - /** - * The `0`-based index the thumbnail should be inserted at; for a negative value of `iIndex`, the thumbnail - * is inserted at position 0; for a value greater than the current size of the aggregation, the thumbnail - * is inserted at the last position - */ - iIndex: int - ): this; - /** - * Removes all the controls from the aggregation {@link #getContent content}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Additionally, it unregisters them from the hosting UIArea. - */ - removeAllContent(): Control[]; - /** - * Removes all the controls from the aggregation {@link #getThumbnail thumbnail}. - * - * Additionally, it unregisters them from the hosting UIArea. - */ - removeAllThumbnail(): Control[]; - /** - * Removes a content from the aggregation {@link #getContent content}. - */ - removeContent( - /** - * The content to remove or its index or id - */ - vContent: int | string | Control - ): Control; - /** - * Removes a thumbnail from the aggregation {@link #getThumbnail thumbnail}. - */ - removeThumbnail( - /** - * The thumbnail to remove or its index or id - */ - vThumbnail: int | string | Control - ): Control; - /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getLayout layout}. @@ -4109,13 +4087,23 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { */ bSelected?: boolean ): this; + /** + * Sets the aggregated {@link #getThumbnail thumbnail}. + */ + setThumbnail( + /** + * The thumbnail to set + */ + oThumbnail: Control + ): this; } export interface $MediaGalleryItemSettings extends $WebComponentSettings { /** - * Defines whether the component is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the layout of the item container. @@ -4136,12 +4124,12 @@ declare module "sap/ui/webc/fiori/MediaGalleryItem" { /** * Defines the content of the component. */ - content?: Control[] | Control | AggregationBindingInfo; + content?: Control; /** * Defines the content of the thumbnail. */ - thumbnail?: Control[] | Control | AggregationBindingInfo; + thumbnail?: Control; } } @@ -4244,15 +4232,14 @@ declare module "sap/ui/webc/fiori/NotificationAction" { */ getDesign(): ButtonDesign | keyof typeof ButtonDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines if the action is disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** a disabled action can't be pressed or focused, and it is not in the tab chain. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -4297,21 +4284,20 @@ declare module "sap/ui/webc/fiori/NotificationAction" { sDesign?: ButtonDesign | keyof typeof ButtonDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines if the action is disabled. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** a disabled action can't be pressed or focused, and it is not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -4364,11 +4350,10 @@ declare module "sap/ui/webc/fiori/NotificationAction" { design?: (ButtonDesign | keyof typeof ButtonDesign) | PropertyBindingInfo; /** - * Defines if the action is disabled. - * - * **Note:** a disabled action can't be pressed or focused, and it is not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the `icon` source URI. @@ -8097,6 +8082,9 @@ declare module "sap/ui/webc/fiori/SideNavigation" { ): this; /** * Fires event {@link #event:selectionChange selectionChange} to attached listeners. + * + * Listeners may prevent the default action of this event by calling the `preventDefault` method on the + * event object. The return value of this method indicates whether the default action should be executed. */ fireSelectionChange( /** @@ -8108,7 +8096,7 @@ declare module "sap/ui/webc/fiori/SideNavigation" { */ item?: HTMLElement; } - ): this; + ): boolean; /** * Gets current value of property {@link #getCollapsed collapsed}. * @@ -9076,6 +9064,12 @@ declare module "sap/ui/webc/fiori/Timeline" { * Destroys all the items in the aggregation {@link #getItems items}. */ destroyItems(): this; + /** + * Gets current value of property {@link #getAccessibleName accessibleName}. + * + * Defines the accessible aria name of the component. + */ + getAccessibleName(): string; /** * Gets current value of property {@link #getHeight height}. * @@ -9148,6 +9142,19 @@ declare module "sap/ui/webc/fiori/Timeline" { */ vItem: int | string | ITimelineItem ): ITimelineItem; + /** + * Sets a new value for property {@link #getAccessibleName accessibleName}. + * + * Defines the accessible aria name of the component. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + */ + setAccessibleName( + /** + * New value for property `accessibleName` + */ + sAccessibleName: string + ): this; /** * Sets a new value for property {@link #getHeight height}. * @@ -9198,6 +9205,11 @@ declare module "sap/ui/webc/fiori/Timeline" { } export interface $TimelineSettings extends $WebComponentSettings { + /** + * Defines the accessible aria name of the component. + */ + accessibleName?: string | PropertyBindingInfo; + /** * Defines the height of the control */ @@ -9962,7 +9974,7 @@ declare module "sap/ui/webc/fiori/UploadCollection" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * Default value is `empty string`. */ @@ -10122,7 +10134,7 @@ declare module "sap/ui/webc/fiori/UploadCollection" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -10236,7 +10248,7 @@ declare module "sap/ui/webc/fiori/UploadCollection" { export interface $UploadCollectionSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -11307,6 +11319,18 @@ declare module "sap/ui/webc/fiori/ViewSettingsDialog" { * The currently selected `sap.ui.webc.fiori.SortItem` text attribute. */ sortBy?: string; + /** + * The currently selected `sap.ui.webc.fiori.SortItem`. + */ + sortByItem?: HTMLElement; + /** + * The selected sort order (true = descending, false = ascending). + */ + sortDescending?: boolean; + /** + * The selected filters items. + */ + filterItems?: any[]; } ): this; /** @@ -11325,6 +11349,18 @@ declare module "sap/ui/webc/fiori/ViewSettingsDialog" { * The currently selected `sap.ui.webc.fiori.SortItem` text attribute. */ sortBy?: string; + /** + * The currently selected `sap.ui.webc.fiori.SortItem`. + */ + sortByItem?: HTMLElement; + /** + * The selected sort order (true = descending, false = ascending). + */ + sortDescending?: boolean; + /** + * The selected filters items. + */ + filterItems?: any[]; } ): this; /** @@ -11922,19 +11958,14 @@ declare module "sap/ui/webc/fiori/WizardStep" { */ getContent(): Control[]; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines if the step is `disabled`. When disabled the step is displayed, but the user can't select the - * step by clicking or navigate to it with scrolling. - * + * Gets current value of property {@link #getEnabled enabled}. * + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** Step can't be `selected` and `disabled` at the same time. In this case the `selected` property - * would take precedence. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -12050,25 +12081,20 @@ declare module "sap/ui/webc/fiori/WizardStep" { bBranching?: boolean ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines if the step is `disabled`. When disabled the step is displayed, but the user can't select the - * step by clicking or navigate to it with scrolling. - * - * - * - * **Note:** Step can't be `selected` and `disabled` at the same time. In this case the `selected` property - * would take precedence. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -12166,15 +12192,10 @@ declare module "sap/ui/webc/fiori/WizardStep" { branching?: boolean | PropertyBindingInfo; /** - * Defines if the step is `disabled`. When disabled the step is displayed, but the user can't select the - * step by clicking or navigate to it with scrolling. - * - * - * - * **Note:** Step can't be `selected` and `disabled` at the same time. In this case the `selected` property - * would take precedence. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the `icon` of the step. diff --git a/types/openui5/sap.ui.webc.main.d.ts b/types/openui5/sap.ui.webc.main.d.ts index 9eaf3dda3b4063..168e03b59e4ce8 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.99.0 +// For Library Version: 1.100.0 declare module "sap/ui/webc/main/library" { /** @@ -321,7 +321,7 @@ declare module "sap/ui/webc/main/library" { * @SINCE 1.92.0 * @EXPERIMENTAL (since 1.92.0) * - * Interface for components that may be used inside a `ui5-color-palette` + * Interface for components that may be used inside a `ui5-color-palette` or `ui5-color-palette-popover` */ export interface IColorPaletteItem { __implements__sap_ui_webc_main_IColorPaletteItem: boolean; @@ -970,6 +970,8 @@ declare module "sap/ui/webc/main/Avatar" { AvatarSize, } from "sap/ui/webc/main/library"; + import Event from "sap/ui/base/Event"; + import Control from "sap/ui/core/Control"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; @@ -1056,9 +1058,74 @@ declare module "sap/ui/webc/main/Avatar" { */ static getMetadata(): WebComponentMetadata; /** - * Destroys the content in the aggregation {@link #getContent content}. + * Attaches event handler `fnFunction` to the {@link #event:click click} event of this `sap.ui.webc.main.Avatar`. + * + * 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.ui.webc.main.Avatar` itself. + * + * Fired when the user clicks the control */ - destroyContent(): this; + attachClick( + /** + * 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: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.ui.webc.main.Avatar` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:click click} event of this `sap.ui.webc.main.Avatar`. + * + * 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.ui.webc.main.Avatar` itself. + * + * Fired when the user clicks the control + */ + attachClick( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.ui.webc.main.Avatar` itself + */ + oListener?: object + ): this; + /** + * Destroys the image in the aggregation {@link #getImage image}. + */ + destroyImage(): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:click click} event of this `sap.ui.webc.main.Avatar`. + * + * The passed function and listener object must match the ones used for event registration. + */ + detachClick( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: Event) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; + /** + * Fires event {@link #event:click click} to attached listeners. + */ + fireClick( + /** + * Parameters to pass along with the event + */ + mParameters?: object + ): this; /** * Gets current value of property {@link #getAccessibleName accessibleName}. * @@ -1089,16 +1156,6 @@ declare module "sap/ui/webc/main/Avatar" { * Default value is `Accent6`. */ getColorScheme(): AvatarColorScheme | keyof typeof AvatarColorScheme; - /** - * Gets content of aggregation {@link #getContent content}. - * - * Receives the desired `` tag - * - * **Note:** If you experience flickering of the provided image, you can hide the component until it is - * being defined with the following CSS: ` ui5-avatar:not(:defined) { visibility: hidden; - * } ` - */ - getContent(): Control; /** * Gets current value of property {@link #getIcon icon}. * @@ -1117,6 +1174,16 @@ declare module "sap/ui/webc/main/Avatar" { * Default value is `empty string`. */ getIcon(): string; + /** + * Gets content of aggregation {@link #getImage image}. + * + * Receives the desired `` tag + * + * **Note:** If you experience flickering of the provided image, you can hide the component until it is + * being defined with the following CSS: ` ui5-avatar:not(:defined) { visibility: hidden; + * } ` + */ + getImage(): Control; /** * Gets current value of property {@link #getInitials initials}. * @@ -1205,15 +1272,6 @@ declare module "sap/ui/webc/main/Avatar" { */ sColorScheme?: AvatarColorScheme | keyof typeof AvatarColorScheme ): this; - /** - * Sets the aggregated {@link #getContent content}. - */ - setContent( - /** - * The content to set - */ - oContent: Control - ): this; /** * Sets a new value for property {@link #getIcon icon}. * @@ -1239,6 +1297,15 @@ declare module "sap/ui/webc/main/Avatar" { */ sIcon?: string ): this; + /** + * Sets the aggregated {@link #getImage image}. + */ + setImage( + /** + * The image to set + */ + oImage: Control + ): this; /** * Sets a new value for property {@link #getInitials initials}. * @@ -1394,7 +1461,12 @@ declare module "sap/ui/webc/main/Avatar" { * being defined with the following CSS: ` ui5-avatar:not(:defined) { visibility: hidden; * } ` */ - content?: Control; + image?: Control; + + /** + * Fired when the user clicks the control + */ + click?: (oEvent: Event) => void; } } @@ -2987,7 +3059,12 @@ declare module "sap/ui/webc/main/Button" { import { IButton, ButtonDesign } from "sap/ui/webc/main/library"; - import { ID, TextDirection, CSSSize } from "sap/ui/core/library"; + import { + IFormContent, + ID, + TextDirection, + CSSSize, + } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -3027,8 +3104,11 @@ declare module "sap/ui/webc/main/Button" { * The `sap.ui.webc.main.Button` exposes the following CSS Shadow Parts: * - button - Used to style the native button element */ - export default class Button extends WebComponent implements IButton { + export default class Button + extends WebComponent + implements IButton, IFormContent { __implements__sap_ui_webc_main_IButton: boolean; + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Button`. * @@ -3192,7 +3272,7 @@ declare module "sap/ui/webc/main/Button" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -3221,14 +3301,14 @@ declare module "sap/ui/webc/main/Button" { */ getDesign(): ButtonDesign | keyof typeof ButtonDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -3328,7 +3408,7 @@ declare module "sap/ui/webc/main/Button" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -3366,20 +3446,20 @@ declare module "sap/ui/webc/main/Button" { sDesign?: ButtonDesign | keyof typeof ButtonDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -3500,7 +3580,7 @@ declare module "sap/ui/webc/main/Button" { accessibilityAttributes?: object | PropertyBindingInfo; /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -3522,10 +3602,10 @@ declare module "sap/ui/webc/main/Button" { design?: (ButtonDesign | keyof typeof ButtonDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the icon to be displayed as graphical element within the component. The SAP-icons font provides @@ -5709,7 +5789,7 @@ declare module "sap/ui/webc/main/CheckBox" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * Default value is `empty string`. */ @@ -5731,15 +5811,14 @@ declare module "sap/ui/webc/main/CheckBox" { */ getChecked(): boolean; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is disabled. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIndeterminate indeterminate}. * @@ -5839,7 +5918,7 @@ declare module "sap/ui/webc/main/CheckBox" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -5870,21 +5949,20 @@ declare module "sap/ui/webc/main/CheckBox" { bChecked?: boolean ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIndeterminate indeterminate}. @@ -6022,7 +6100,7 @@ declare module "sap/ui/webc/main/CheckBox" { export interface $CheckBoxSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -6035,11 +6113,10 @@ declare module "sap/ui/webc/main/CheckBox" { checked?: boolean | PropertyBindingInfo; /** - * Defines whether the component is disabled. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines whether the component is displayed as partially checked. @@ -6470,7 +6547,7 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import Control from "sap/ui/core/Control"; + import { IColorPaletteItem } from "sap/ui/webc/main/library"; import Event from "sap/ui/base/Event"; @@ -6559,13 +6636,13 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { */ static getMetadata(): WebComponentMetadata; /** - * Adds some content to the aggregation {@link #getContent content}. + * Adds some color to the aggregation {@link #getColors colors}. */ - addContent( + addColor( /** - * The content to add; if empty, nothing is inserted + * The color to add; if empty, nothing is inserted */ - oContent: Control + oColor: IColorPaletteItem ): this; /** * Attaches event handler `fnFunction` to the {@link #event:itemClick itemClick} event of this `sap.ui.webc.main.ColorPalettePopover`. @@ -6611,9 +6688,9 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { oListener?: object ): this; /** - * Destroys all the content in the aggregation {@link #getContent content}. + * Destroys all the colors in the aggregation {@link #getColors colors}. */ - destroyContent(): this; + destroyColors(): this; /** * Detaches event handler `fnFunction` from the {@link #event:itemClick itemClick} event of this `sap.ui.webc.main.ColorPalettePopover`. * @@ -6644,11 +6721,11 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { } ): this; /** - * Gets content of aggregation {@link #getContent content}. + * Gets content of aggregation {@link #getColors colors}. * * Defines the content of the component. */ - getContent(): Control[]; + getColors(): IColorPaletteItem[]; /** * Gets current value of property {@link #getDefaultColor defaultColor}. * @@ -6682,27 +6759,27 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { */ getShowRecentColors(): boolean; /** - * Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getContent content}. and returns - * its index if found or -1 otherwise. + * Checks for the provided `sap.ui.webc.main.IColorPaletteItem` in the aggregation {@link #getColors colors}. + * and returns its index if found or -1 otherwise. */ - indexOfContent( + indexOfColor( /** - * The content whose index is looked for + * The color whose index is looked for */ - oContent: Control + oColor: IColorPaletteItem ): int; /** - * Inserts a content into the aggregation {@link #getContent content}. + * Inserts a color into the aggregation {@link #getColors colors}. */ - insertContent( + insertColor( /** - * The content to insert; if empty, nothing is inserted + * The color to insert; if empty, nothing is inserted */ - oContent: Control, + oColor: IColorPaletteItem, /** - * The `0`-based index the content should be inserted at; for a negative value of `iIndex`, the content - * is inserted at position 0; for a value greater than the current size of the aggregation, the content - * is inserted at the last position + * The `0`-based index the color should be inserted at; for a negative value of `iIndex`, the color is inserted + * at position 0; for a value greater than the current size of the aggregation, the color is inserted at + * the last position */ iIndex: int ): this; @@ -6717,20 +6794,20 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { opener: HTMLElement ): void; /** - * Removes all the controls from the aggregation {@link #getContent content}. + * Removes all the controls from the aggregation {@link #getColors colors}. * * Additionally, it unregisters them from the hosting UIArea. */ - removeAllContent(): Control[]; + removeAllColors(): IColorPaletteItem[]; /** - * Removes a content from the aggregation {@link #getContent content}. + * Removes a color from the aggregation {@link #getColors colors}. */ - removeContent( + removeColor( /** - * The content to remove or its index or id + * The color to remove or its index or id */ - vContent: int | string | Control - ): Control; + vColor: int | string | IColorPaletteItem + ): IColorPaletteItem; /** * Sets a new value for property {@link #getDefaultColor defaultColor}. * @@ -6828,7 +6905,7 @@ declare module "sap/ui/webc/main/ColorPalettePopover" { /** * Defines the content of the component. */ - content?: Control[] | Control | AggregationBindingInfo; + colors?: IColorPaletteItem[] | IColorPaletteItem | AggregationBindingInfo; /** * Fired when the user selects a color. @@ -7034,7 +7111,7 @@ declare module "sap/ui/webc/main/ComboBox" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -7083,7 +7160,8 @@ declare module "sap/ui/webc/main/ComboBox" { * - [END] - If focus is in the ComboBox, moves cursor at the end of text. If focus is in the picker, * selects the last item. */ - export default class ComboBox extends WebComponent { + export default class ComboBox extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `ComboBox`. * @@ -7376,7 +7454,7 @@ declare module "sap/ui/webc/main/ComboBox" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -7385,15 +7463,14 @@ declare module "sap/ui/webc/main/ComboBox" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getFilter filter}. * @@ -7546,7 +7623,7 @@ declare module "sap/ui/webc/main/ComboBox" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -7557,21 +7634,20 @@ declare module "sap/ui/webc/main/ComboBox" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFilter filter}. @@ -7733,16 +7809,15 @@ declare module "sap/ui/webc/main/ComboBox" { export interface $ComboBoxSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the filter type of the component. Available options are: `StartsWithPerTerm`, `StartsWith` and @@ -8420,7 +8495,7 @@ declare module "sap/ui/webc/main/DatePicker" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -8498,7 +8573,8 @@ declare module "sap/ui/webc/main/DatePicker" { * } * ``` */ - export default class DatePicker extends WebComponent { + export default class DatePicker extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `DatePicker`. * @@ -8748,13 +8824,14 @@ declare module "sap/ui/webc/main/DatePicker" { */ getDateValue(): void; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getFormatPattern formatPattern}. * @@ -8943,19 +9020,20 @@ declare module "sap/ui/webc/main/DatePicker" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFormatPattern formatPattern}. @@ -9199,9 +9277,10 @@ declare module "sap/ui/webc/main/DatePicker" { accessibleName?: string | PropertyBindingInfo; /** - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the format, displayed in the input field. @@ -9327,7 +9406,7 @@ declare module "sap/ui/webc/main/DateRangePicker" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -9362,7 +9441,10 @@ declare module "sap/ui/webc/main/DateRangePicker" { * - [SHIFT] + [PAGEUP] - Increments the corresponding month by one * - [SHIFT] + [CTRL] + [PAGEUP] - Increments the corresponding year by one */ - export default class DateRangePicker extends WebComponent { + export default class DateRangePicker + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `DateRangePicker`. * @@ -9625,13 +9707,14 @@ declare module "sap/ui/webc/main/DateRangePicker" { */ getDelimiter(): string; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Returns the end date of the currently selected range as JavaScript Date instance. */ @@ -9842,19 +9925,20 @@ declare module "sap/ui/webc/main/DateRangePicker" { sDelimiter: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFormatPattern formatPattern}. @@ -10104,9 +10188,10 @@ declare module "sap/ui/webc/main/DateRangePicker" { delimiter?: string | PropertyBindingInfo; /** - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the format, displayed in the input field. @@ -10232,7 +10317,7 @@ declare module "sap/ui/webc/main/DateTimePicker" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -10301,7 +10386,10 @@ declare module "sap/ui/webc/main/DateTimePicker" { * The `DateTimePicker` is responsive and fully adapts to all devices. For larger screens, such as tablet * or desktop, it is displayed as a popover, while on phone devices, it is displayed full screen. */ - export default class DateTimePicker extends WebComponent { + export default class DateTimePicker + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `DateTimePicker`. * @@ -10551,13 +10639,14 @@ declare module "sap/ui/webc/main/DateTimePicker" { */ getDateValue(): void; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getFormatPattern formatPattern}. * @@ -10746,19 +10835,20 @@ declare module "sap/ui/webc/main/DateTimePicker" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFormatPattern formatPattern}. @@ -11002,9 +11092,10 @@ declare module "sap/ui/webc/main/DateTimePicker" { accessibleName?: string | PropertyBindingInfo; /** - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the format, displayed in the input field. @@ -11164,6 +11255,15 @@ declare module "sap/ui/webc/main/Dialog" { * Responsive Behavior: The `stretch` property can be used to stretch the `sap.ui.webc.main.Dialog` on full * screen. * + * CSS Shadow Parts: + * + * CSS Shadow Parts + * allow developers to style elements inside the Shadow DOM. + * The `sap.ui.webc.main.Dialog` exposes the following CSS Shadow Parts: + * - header - Used to style the header of the component + * - content - Used to style the content of the component + * - footer - Used to style the footer of the component + * * **Note:** We don't recommend nesting popup-like components (`sap.ui.webc.main.Dialog`, `sap.ui.webc.main.Popover`) * inside `sap.ui.webc.main.Dialog`. Ideally you should create all popups on the same level inside your * HTML page and just open them from one another, rather than nesting them. @@ -11621,13 +11721,18 @@ declare module "sap/ui/webc/main/Dialog" { */ getHeight(): CSSSize; /** - * Gets current value of property {@link #getInitialFocus initialFocus}. + * ID of the element which is the current target of the association {@link #getInitialFocus initialFocus}, + * or `null`. + */ + getInitialFocus(): ID; + /** + * Gets current value of property {@link #getOpen open}. * - * Defines the ID of the HTML Element, which will get the initial focus. + * Indicates if the element is open * - * Default value is `empty string`. + * Default value is `false`. */ - getInitialFocus(): string; + getOpen(): boolean; /** * Gets current value of property {@link #getPreventFocusRestore preventFocusRestore}. * @@ -11866,19 +11971,29 @@ declare module "sap/ui/webc/main/Dialog" { sHeight?: CSSSize ): this; /** - * Sets a new value for property {@link #getInitialFocus initialFocus}. + * Sets the associated {@link #getInitialFocus initialFocus}. + */ + setInitialFocus( + /** + * ID of an element which becomes the new target of this initialFocus association; alternatively, an element + * instance may be given + */ + oInitialFocus: ID | Control + ): this; + /** + * Sets a new value for property {@link #getOpen open}. * - * Defines the ID of the HTML Element, which will get the initial focus. + * Indicates if the element is open * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `empty string`. + * Default value is `false`. */ - setInitialFocus( + setOpen( /** - * New value for property `initialFocus` + * New value for property `open` */ - sInitialFocus?: string + bOpen?: boolean ): this; /** * Sets a new value for property {@link #getPreventFocusRestore preventFocusRestore}. @@ -11983,9 +12098,9 @@ declare module "sap/ui/webc/main/Dialog" { height?: CSSSize | PropertyBindingInfo; /** - * Defines the ID of the HTML Element, which will get the initial focus. + * Indicates if the element is open */ - initialFocus?: string | PropertyBindingInfo; + open?: boolean | PropertyBindingInfo; /** * Defines if the focus should be returned to the previously focused element, when the popup closes. @@ -12037,6 +12152,11 @@ declare module "sap/ui/webc/main/Dialog" { */ ariaLabelledBy?: Array; + /** + * Defines the ID of the HTML Element, which will get the initial focus. + */ + initialFocus?: Control | string; + /** * Fired after the component is closed. **This event does not bubble.** */ @@ -12067,14 +12187,14 @@ declare module "sap/ui/webc/main/FileUploader" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; + import { IFormContent, ValueState, CSSSize } from "sap/ui/core/library"; + import Control from "sap/ui/core/Control"; import Event from "sap/ui/base/Event"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; - import { ValueState, CSSSize } from "sap/ui/core/library"; - import { PropertyBindingInfo, AggregationBindingInfo, @@ -12095,7 +12215,10 @@ declare module "sap/ui/webc/main/FileUploader" { * And, similar to all input based components, the FileUploader supports "valueState", "placeholder", "name", * and "disabled" properties. */ - export default class FileUploader extends WebComponent { + export default class FileUploader + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `FileUploader`. * @@ -12258,15 +12381,14 @@ declare module "sap/ui/webc/main/FileUploader" { */ getContent(): Control[]; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Returns the fileList of all selected files. */ @@ -12409,21 +12531,20 @@ declare module "sap/ui/webc/main/FileUploader" { sAccept?: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getHideInput hideInput}. @@ -12572,11 +12693,10 @@ declare module "sap/ui/webc/main/FileUploader" { accept?: string | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * If set to "true", the input field of component will not be rendered. Only the default slot that is passed @@ -12829,10 +12949,10 @@ declare module "sap/ui/webc/main/Icon" { import { IIcon } from "sap/ui/webc/main/library"; - import { IFormContent, CSSSize } from "sap/ui/core/library"; - import Event from "sap/ui/base/Event"; + import { CSSSize } from "sap/ui/core/library"; + import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -12860,11 +12980,8 @@ declare module "sap/ui/webc/main/Icon" { * - [SHIFT] - If [SPACE] or [ENTER],[RETURN] is pressed, pressing [SHIFT] releases the ui5-icon without * triggering the click event. */ - export default class Icon - extends WebComponent - implements IIcon, IFormContent { + export default class Icon extends WebComponent implements IIcon { __implements__sap_ui_webc_main_IIcon: boolean; - __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Icon`. * @@ -13302,7 +13419,7 @@ declare module "sap/ui/webc/main/Input" { InputType, } from "sap/ui/webc/main/library"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -13339,8 +13456,6 @@ declare module "sap/ui/webc/main/Input" { * * * - * - [F4], [ALT]+[UP], or [ALT]+[DOWN] - Opens value help if available, same as clicking the value help - * icon. (Does not open suggestion list.) * - [ESC] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts * to the value which the Input field had when it got the focus. * - [ENTER] or [RETURN] - If suggestion list is open takes over the current matching item and closes @@ -13356,8 +13471,11 @@ declare module "sap/ui/webc/main/Input" { * - [PAGEDOWN] - If focus is in the list, moves highlight down by page size (10 items by default). If * focus is in the input, does nothing. */ - export default class Input extends WebComponent implements IInput { + export default class Input + extends WebComponent + implements IInput, IFormContent { __implements__sap_ui_webc_main_IInput: boolean; + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Input`. * @@ -13736,7 +13854,7 @@ declare module "sap/ui/webc/main/Input" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -13745,15 +13863,14 @@ declare module "sap/ui/webc/main/Input" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** A disabled component is completely noninteractive. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets content of aggregation {@link #getIcon icon}. * @@ -13986,7 +14103,7 @@ declare module "sap/ui/webc/main/Input" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -13997,21 +14114,20 @@ declare module "sap/ui/webc/main/Input" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getMaxlength maxlength}. @@ -14223,16 +14339,15 @@ declare module "sap/ui/webc/main/Input" { export interface $InputSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Sets the maximum number of characters available in the input field. @@ -14836,6 +14951,14 @@ declare module "sap/ui/webc/main/Link" { * Default value is `{}`. */ getAccessibilityAttributes(): object; + /** + * Gets current value of property {@link #getAccessibleName accessibleName}. + * + * Defines the accessible aria name of the component. + * + * Default value is `empty string`. + */ + getAccessibleName(): string; /** * Returns array of IDs of the elements which are the current targets of the association {@link #getAriaLabelledBy * ariaLabelledBy}. @@ -14852,15 +14975,14 @@ declare module "sap/ui/webc/main/Link" { */ getDesign(): LinkDesign | keyof typeof LinkDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** When disabled, the click event cannot be triggered by the user. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getHref href}. * @@ -14953,6 +15075,21 @@ declare module "sap/ui/webc/main/Link" { */ oAccessibilityAttributes?: object ): this; + /** + * Sets a new value for property {@link #getAccessibleName accessibleName}. + * + * Defines the accessible aria name of the component. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `empty string`. + */ + setAccessibleName( + /** + * New value for property `accessibleName` + */ + sAccessibleName?: string + ): this; /** * Sets a new value for property {@link #getDesign design}. * @@ -14971,21 +15108,20 @@ declare module "sap/ui/webc/main/Link" { sDesign?: LinkDesign | keyof typeof LinkDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is disabled. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** When disabled, the click event cannot be triggered by the user. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getHref href}. @@ -15087,6 +15223,11 @@ declare module "sap/ui/webc/main/Link" { */ accessibilityAttributes?: object | PropertyBindingInfo; + /** + * Defines the accessible aria name of the component. + */ + accessibleName?: string | PropertyBindingInfo; + /** * Defines the component design. * @@ -15095,11 +15236,10 @@ declare module "sap/ui/webc/main/Link" { design?: (LinkDesign | keyof typeof LinkDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. - * - * **Note:** When disabled, the click event cannot be triggered by the user. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the component href. @@ -16752,14 +16892,14 @@ declare module "sap/ui/webc/main/MultiComboBox" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; + import { IFormContent, ValueState, CSSSize } from "sap/ui/core/library"; + import { IMultiComboBoxItem, IIcon } from "sap/ui/webc/main/library"; import Event from "sap/ui/base/Event"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; - import { ValueState, CSSSize } from "sap/ui/core/library"; - import { PropertyBindingInfo, AggregationBindingInfo, @@ -16805,7 +16945,10 @@ declare module "sap/ui/webc/main/MultiComboBox" { * The `sap.ui.webc.main.MultiComboBox` exposes the following CSS Shadow Parts: * - token-{index} - Used to style each token(where `token-0` corresponds to the first item) */ - export default class MultiComboBox extends WebComponent { + export default class MultiComboBox + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `MultiComboBox`. * @@ -17156,15 +17299,14 @@ declare module "sap/ui/webc/main/MultiComboBox" { */ getAllowCustomValues(): boolean; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getFilter filter}. * @@ -17315,21 +17457,20 @@ declare module "sap/ui/webc/main/MultiComboBox" { bAllowCustomValues?: boolean ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFilter filter}. @@ -17483,11 +17624,10 @@ declare module "sap/ui/webc/main/MultiComboBox" { allowCustomValues?: boolean | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the filter type of the component. Available options are: `StartsWithPerTerm`, `StartsWith`, `Contains` @@ -17750,7 +17890,13 @@ declare module "sap/ui/webc/main/MultiInput" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { + IFormContent, + ISemanticFormContent, + ID, + ValueState, + CSSSize, + } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -17782,7 +17928,11 @@ declare module "sap/ui/webc/main/MultiInput" { * - Type a value in the input and press enter or focus out the input field (`change` event is fired) * Select a value from the suggestion list (`suggestion-item-select` event is fired) */ - export default class MultiInput extends WebComponent { + export default class MultiInput + extends WebComponent + implements IFormContent, ISemanticFormContent { + __implements__sap_ui_core_IFormContent: boolean; + __implements__sap_ui_core_ISemanticFormContent: boolean; /** * Constructor for a new `MultiInput`. * @@ -18314,7 +18464,7 @@ declare module "sap/ui/webc/main/MultiInput" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -18323,15 +18473,14 @@ declare module "sap/ui/webc/main/MultiInput" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets content of aggregation {@link #getIcon icon}. * @@ -18619,7 +18768,7 @@ declare module "sap/ui/webc/main/MultiInput" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -18630,21 +18779,20 @@ declare module "sap/ui/webc/main/MultiInput" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getMaxlength maxlength}. @@ -18872,16 +19020,15 @@ declare module "sap/ui/webc/main/MultiInput" { export interface $MultiInputSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Sets the maximum number of characters available in the input field. @@ -19113,15 +19260,14 @@ declare module "sap/ui/webc/main/Option" { */ static getMetadata(): WebComponentMetadata; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -19155,21 +19301,20 @@ declare module "sap/ui/webc/main/Option" { */ getValue(): string; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is in disabled state. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -19235,11 +19380,10 @@ declare module "sap/ui/webc/main/Option" { export interface $OptionSettings extends $WebComponentSettings { /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the `icon` source URI. @@ -19481,7 +19625,7 @@ declare module "sap/ui/webc/main/Panel" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * Default value is `empty string`. */ @@ -19650,7 +19794,7 @@ declare module "sap/ui/webc/main/Panel" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -19789,7 +19933,7 @@ declare module "sap/ui/webc/main/Panel" { export interface $PanelSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -19905,6 +20049,15 @@ declare module "sap/ui/webc/main/Popover" { * * **Note:** The `sap.ui.webc.main.Popover` is closed when the user clicks or taps outside the popover or * selects an action within the popover. You can prevent this with the `modal` property. + * + * CSS Shadow Parts: + * + * CSS Shadow Parts + * allow developers to style elements inside the Shadow DOM. + * The `sap.ui.webc.main.Popover` exposes the following CSS Shadow Parts: + * - header - Used to style the header of the component + * - content - Used to style the content of the component + * - footer - Used to style the footer of the component */ export default class Popover extends WebComponent { /** @@ -20382,13 +20535,10 @@ declare module "sap/ui/webc/main/Popover" { | PopoverHorizontalAlign | keyof typeof PopoverHorizontalAlign; /** - * Gets current value of property {@link #getInitialFocus initialFocus}. - * - * Defines the ID of the HTML Element, which will get the initial focus. - * - * Default value is `empty string`. + * ID of the element which is the current target of the association {@link #getInitialFocus initialFocus}, + * or `null`. */ - getInitialFocus(): string; + getInitialFocus(): ID; /** * Gets current value of property {@link #getModal modal}. * @@ -20398,6 +20548,18 @@ declare module "sap/ui/webc/main/Popover" { * Default value is `false`. */ getModal(): boolean; + /** + * Gets current value of property {@link #getOpen open}. + * + * Indicates if the element is open + * + * Default value is `false`. + */ + getOpen(): boolean; + /** + * ID of the element which is the current target of the association {@link #getOpener opener}, or `null`. + */ + getOpener(): ID; /** * Gets current value of property {@link #getPlacementType placementType}. * @@ -20695,19 +20857,14 @@ declare module "sap/ui/webc/main/Popover" { | keyof typeof PopoverHorizontalAlign ): this; /** - * Sets a new value for property {@link #getInitialFocus initialFocus}. - * - * Defines the ID of the HTML Element, which will get the initial focus. - * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `empty string`. + * Sets the associated {@link #getInitialFocus initialFocus}. */ setInitialFocus( /** - * New value for property `initialFocus` + * ID of an element which becomes the new target of this initialFocus association; alternatively, an element + * instance may be given */ - sInitialFocus?: string + oInitialFocus: ID | Control ): this; /** * Sets a new value for property {@link #getModal modal}. @@ -20725,6 +20882,31 @@ declare module "sap/ui/webc/main/Popover" { */ bModal?: boolean ): this; + /** + * Sets a new value for property {@link #getOpen open}. + * + * Indicates if the element is open + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + */ + setOpen( + /** + * New value for property `open` + */ + bOpen?: boolean + ): this; + /** + * Sets the associated {@link #getOpener opener}. + */ + setOpener( + /** + * ID of an element which becomes the new target of this opener association; alternatively, an element instance + * may be given + */ + oOpener: ID | Control + ): this; /** * Sets a new value for property {@link #getPlacementType placementType}. * @@ -20856,17 +21038,17 @@ declare module "sap/ui/webc/main/Popover" { | (PopoverHorizontalAlign | keyof typeof PopoverHorizontalAlign) | PropertyBindingInfo; - /** - * Defines the ID of the HTML Element, which will get the initial focus. - */ - initialFocus?: string | PropertyBindingInfo; - /** * Defines whether the component should close when clicking/tapping outside of the popover. If enabled, * it blocks any interaction with the background. */ modal?: boolean | PropertyBindingInfo; + /** + * Indicates if the element is open + */ + open?: boolean | PropertyBindingInfo; + /** * Determines on which side the component is placed at. * @@ -20918,11 +21100,21 @@ declare module "sap/ui/webc/main/Popover" { */ header?: Control[] | Control | AggregationBindingInfo; + /** + * Defines the opener id of the element that the popover is shown at + */ + opener?: Control | string; + /** * Receives id(or many ids) of the controls that label this control. */ ariaLabelledBy?: Array; + /** + * Defines the ID of the HTML Element, which will get the initial focus. + */ + initialFocus?: Control | string; + /** * Fired after the component is closed. **This event does not bubble.** */ @@ -20953,9 +21145,9 @@ declare module "sap/ui/webc/main/ProgressIndicator" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; + import { IFormContent, ValueState, CSSSize } from "sap/ui/core/library"; - import { ValueState, CSSSize } from "sap/ui/core/library"; + import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -20969,7 +21161,10 @@ declare module "sap/ui/webc/main/ProgressIndicator" { * Responsive Behavior: You can change the size of the Progress Indicator by changing its `width` or `height` * CSS properties. */ - export default class ProgressIndicator extends WebComponent { + export default class ProgressIndicator + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `ProgressIndicator`. * @@ -21026,14 +21221,6 @@ declare module "sap/ui/webc/main/ProgressIndicator" { * Returns a metadata object for class sap.ui.webc.main.ProgressIndicator. */ static getMetadata(): WebComponentMetadata; - /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Defines whether component is in disabled state. - * - * Default value is `false`. - */ - getDisabled(): boolean; /** * Gets current value of property {@link #getDisplayValue displayValue}. * @@ -21044,6 +21231,15 @@ declare module "sap/ui/webc/main/ProgressIndicator" { * - If `hideValue` property is `true` both the `displayValue` and `value` property values are not shown. */ getDisplayValue(): string; + /** + * Gets current value of property {@link #getEnabled enabled}. + * + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. + * + * Default value is `true`. + */ + getEnabled(): boolean; /** * Gets current value of property {@link #getHideValue hideValue}. * @@ -21084,21 +21280,6 @@ declare module "sap/ui/webc/main/ProgressIndicator" { * Defines the width of the control */ getWidth(): CSSSize; - /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether component is in disabled state. - * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `false`. - */ - setDisabled( - /** - * New value for property `disabled` - */ - bDisabled?: boolean - ): this; /** * Sets a new value for property {@link #getDisplayValue displayValue}. * @@ -21117,6 +21298,22 @@ declare module "sap/ui/webc/main/ProgressIndicator" { */ sDisplayValue: string ): this; + /** + * Sets a new value for property {@link #getEnabled enabled}. + * + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `true`. + */ + setEnabled( + /** + * New value for property `enabled` + */ + bEnabled?: boolean + ): this; /** * Sets a new value for property {@link #getHideValue hideValue}. * @@ -21188,11 +21385,6 @@ declare module "sap/ui/webc/main/ProgressIndicator" { } export interface $ProgressIndicatorSettings extends $WebComponentSettings { - /** - * Defines whether component is in disabled state. - */ - disabled?: boolean | PropertyBindingInfo; - /** * Specifies the text value to be displayed in the bar. * @@ -21202,6 +21394,12 @@ declare module "sap/ui/webc/main/ProgressIndicator" { */ displayValue?: string | PropertyBindingInfo; + /** + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. + */ + enabled?: boolean | PropertyBindingInfo; + /** * Defines whether the component value is shown. */ @@ -21425,15 +21623,14 @@ declare module "sap/ui/webc/main/RadioButton" { */ getChecked(): boolean; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** A disabled component is completely noninteractive. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getName name}. * @@ -21543,21 +21740,20 @@ declare module "sap/ui/webc/main/RadioButton" { bChecked?: boolean ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is disabled. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getName name}. @@ -21697,11 +21893,10 @@ declare module "sap/ui/webc/main/RadioButton" { checked?: boolean | PropertyBindingInfo; /** - * Defines whether the component is disabled. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the name of the component. Radio buttons with the same `name` will form a radio button group. @@ -22016,13 +22211,14 @@ declare module "sap/ui/webc/main/RangeSlider" { mParameters?: object ): this; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getEndValue endValue}. * @@ -22108,19 +22304,20 @@ declare module "sap/ui/webc/main/RangeSlider" { */ getWidth(): CSSSize; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getEndValue endValue}. @@ -22273,9 +22470,10 @@ declare module "sap/ui/webc/main/RangeSlider" { export interface $RangeSliderSettings extends $WebComponentSettings { /** - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines end point of a selection - position of a second handle on the slider. @@ -22350,6 +22548,8 @@ declare module "sap/ui/webc/main/RatingIndicator" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; + import { IFormContent, CSSSize } from "sap/ui/core/library"; + import Event from "sap/ui/base/Event"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; @@ -22385,7 +22585,10 @@ declare module "sap/ui/webc/main/RatingIndicator" { * - Any number - Changes value to the corresponding number. If typed number is larger than the number * of values, sets the highest value. */ - export default class RatingIndicator extends WebComponent { + export default class RatingIndicator + extends WebComponent + implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `RatingIndicator`. * @@ -22510,21 +22713,18 @@ declare module "sap/ui/webc/main/RatingIndicator" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * - * - * **Note:** A disabled component is completely noninteractive. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getMax max}. * @@ -22556,10 +22756,16 @@ declare module "sap/ui/webc/main/RatingIndicator" { * Default value is `0`. */ getValue(): float; + /** + * Gets current value of property {@link #getWidth width}. + * + * Defines the width of the control + */ + getWidth(): CSSSize; /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -22570,23 +22776,20 @@ declare module "sap/ui/webc/main/RatingIndicator" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Defines whether the component is disabled. + * Sets a new value for property {@link #getEnabled enabled}. * - * - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getMax max}. @@ -22640,22 +22843,32 @@ declare module "sap/ui/webc/main/RatingIndicator" { */ fValue?: float ): this; + /** + * Sets a new value for property {@link #getWidth width}. + * + * Defines the width of the control + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + */ + setWidth( + /** + * New value for property `width` + */ + sWidth?: CSSSize + ): this; } export interface $RatingIndicatorSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Defines whether the component is disabled. - * - * - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * The number of displayed rating symbols. @@ -22679,6 +22892,11 @@ declare module "sap/ui/webc/main/RatingIndicator" { */ value?: float | PropertyBindingInfo; + /** + * Defines the width of the control + */ + width?: CSSSize | PropertyBindingInfo; + /** * The event is fired when the value changes. */ @@ -22719,6 +22937,15 @@ declare module "sap/ui/webc/main/ResponsivePopover" { * phone it acts as a Dialog. The component improves tremendously the user experience on mobile. * * Usage: Use it when you want to make sure that all the content is visible on any device. + * + * CSS Shadow Parts: + * + * CSS Shadow Parts + * allow developers to style elements inside the Shadow DOM. + * The `sap.ui.webc.main.ResponsivePopover` exposes the following CSS Shadow Parts: + * - header - Used to style the header of the component + * - content - Used to style the content of the component + * - footer - Used to style the footer of the component */ export default class ResponsivePopover extends WebComponent { /** @@ -23198,13 +23425,10 @@ declare module "sap/ui/webc/main/ResponsivePopover" { | PopoverHorizontalAlign | keyof typeof PopoverHorizontalAlign; /** - * Gets current value of property {@link #getInitialFocus initialFocus}. - * - * Defines the ID of the HTML Element, which will get the initial focus. - * - * Default value is `empty string`. + * ID of the element which is the current target of the association {@link #getInitialFocus initialFocus}, + * or `null`. */ - getInitialFocus(): string; + getInitialFocus(): ID; /** * Gets current value of property {@link #getModal modal}. * @@ -23214,6 +23438,18 @@ declare module "sap/ui/webc/main/ResponsivePopover" { * Default value is `false`. */ getModal(): boolean; + /** + * Gets current value of property {@link #getOpen open}. + * + * Indicates if the element is open + * + * Default value is `false`. + */ + getOpen(): boolean; + /** + * ID of the element which is the current target of the association {@link #getOpener opener}, or `null`. + */ + getOpener(): ID; /** * Gets current value of property {@link #getPlacementType placementType}. * @@ -23492,19 +23728,14 @@ declare module "sap/ui/webc/main/ResponsivePopover" { | keyof typeof PopoverHorizontalAlign ): this; /** - * Sets a new value for property {@link #getInitialFocus initialFocus}. - * - * Defines the ID of the HTML Element, which will get the initial focus. - * - * When called with a value of `null` or `undefined`, the default value of the property will be restored. - * - * Default value is `empty string`. + * Sets the associated {@link #getInitialFocus initialFocus}. */ setInitialFocus( /** - * New value for property `initialFocus` + * ID of an element which becomes the new target of this initialFocus association; alternatively, an element + * instance may be given */ - sInitialFocus?: string + oInitialFocus: ID | Control ): this; /** * Sets a new value for property {@link #getModal modal}. @@ -23522,6 +23753,31 @@ declare module "sap/ui/webc/main/ResponsivePopover" { */ bModal?: boolean ): this; + /** + * Sets a new value for property {@link #getOpen open}. + * + * Indicates if the element is open + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + */ + setOpen( + /** + * New value for property `open` + */ + bOpen?: boolean + ): this; + /** + * Sets the associated {@link #getOpener opener}. + */ + setOpener( + /** + * ID of an element which becomes the new target of this opener association; alternatively, an element instance + * may be given + */ + oOpener: ID | Control + ): this; /** * Sets a new value for property {@link #getPlacementType placementType}. * @@ -23635,17 +23891,17 @@ declare module "sap/ui/webc/main/ResponsivePopover" { | (PopoverHorizontalAlign | keyof typeof PopoverHorizontalAlign) | PropertyBindingInfo; - /** - * Defines the ID of the HTML Element, which will get the initial focus. - */ - initialFocus?: string | PropertyBindingInfo; - /** * Defines whether the component should close when clicking/tapping outside of the popover. If enabled, * it blocks any interaction with the background. */ modal?: boolean | PropertyBindingInfo; + /** + * Indicates if the element is open + */ + open?: boolean | PropertyBindingInfo; + /** * Determines on which side the component is placed at. * @@ -23692,11 +23948,21 @@ declare module "sap/ui/webc/main/ResponsivePopover" { */ header?: Control[] | Control | AggregationBindingInfo; + /** + * Defines the opener id of the element that the popover is shown at + */ + opener?: Control | string; + /** * Receives id(or many ids) of the controls that label this control. */ ariaLabelledBy?: Array; + /** + * Defines the ID of the HTML Element, which will get the initial focus. + */ + initialFocus?: Control | string; + /** * Fired after the component is closed. **This event does not bubble.** */ @@ -23727,7 +23993,7 @@ declare module "sap/ui/webc/main/SegmentedButton" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { IFormContent } from "sap/ui/core/library"; + import { IFormContent, CSSSize } from "sap/ui/core/library"; import { ISegmentedButtonItem } from "sap/ui/webc/main/library"; @@ -23901,7 +24167,7 @@ declare module "sap/ui/webc/main/SegmentedButton" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -23923,6 +24189,12 @@ declare module "sap/ui/webc/main/SegmentedButton" { * Returns the currently selected item. */ getSelectedItem(): void; + /** + * Gets current value of property {@link #getWidth width}. + * + * Defines the width of the control + */ + getWidth(): CSSSize; /** * Checks for the provided `sap.ui.webc.main.ISegmentedButtonItem` in the aggregation {@link #getItems items}. * and returns its index if found or -1 otherwise. @@ -23966,7 +24238,7 @@ declare module "sap/ui/webc/main/SegmentedButton" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -23976,14 +24248,32 @@ declare module "sap/ui/webc/main/SegmentedButton" { */ sAccessibleName: string ): this; + /** + * Sets a new value for property {@link #getWidth width}. + * + * Defines the width of the control + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + */ + setWidth( + /** + * New value for property `width` + */ + sWidth?: CSSSize + ): this; } export interface $SegmentedButtonSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; + /** + * Defines the width of the control + */ + width?: CSSSize | PropertyBindingInfo; + /** * Defines the items of `sap.ui.webc.main.SegmentedButton`. * @@ -24203,7 +24493,7 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -24220,14 +24510,14 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { */ getDesign(): ButtonDesign | keyof typeof ButtonDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -24322,7 +24612,7 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -24348,20 +24638,20 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { sDesign?: ButtonDesign | keyof typeof ButtonDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -24470,7 +24760,7 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { accessibilityAttributes?: object | PropertyBindingInfo; /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -24480,10 +24770,10 @@ declare module "sap/ui/webc/main/SegmentedButtonItem" { design?: (ButtonDesign | keyof typeof ButtonDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the icon to be displayed as graphical element within the component. The SAP-icons font provides @@ -24535,7 +24825,7 @@ declare module "sap/ui/webc/main/Select" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -24569,7 +24859,8 @@ declare module "sap/ui/webc/main/Select" { * - [HOME] - Navigates to first option * - [END] - Navigates to the last option */ - export default class Select extends WebComponent { + export default class Select extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Select`. * @@ -24721,7 +25012,7 @@ declare module "sap/ui/webc/main/Select" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -24730,15 +25021,14 @@ declare module "sap/ui/webc/main/Select" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** A disabled component is noninteractive. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getName name}. * @@ -24870,7 +25160,7 @@ declare module "sap/ui/webc/main/Select" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -24881,21 +25171,20 @@ declare module "sap/ui/webc/main/Select" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getName name}. @@ -24992,16 +25281,15 @@ declare module "sap/ui/webc/main/Select" { export interface $SelectSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Defines whether the component is in disabled state. - * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the name with which the component will be submitted in an HTML form. The value of the component @@ -25078,12 +25366,12 @@ declare module "sap/ui/webc/main/Slider" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; + import { IFormContent, CSSSize } from "sap/ui/core/library"; + import Event from "sap/ui/base/Event"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; - import { CSSSize } from "sap/ui/core/library"; - import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; /** @@ -25141,7 +25429,8 @@ declare module "sap/ui/webc/main/Slider" { * - `Page Down` - Same as `Left or Down + Ctrl/Cmd`; * - `Escape` - Resets the value property after interaction, to the position prior the component's focusing; */ - export default class Slider extends WebComponent { + export default class Slider extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Slider`. * @@ -25329,13 +25618,14 @@ declare module "sap/ui/webc/main/Slider" { mParameters?: object ): this; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getLabelInterval labelInterval}. * @@ -25409,19 +25699,20 @@ declare module "sap/ui/webc/main/Slider" { */ getWidth(): CSSSize; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getLabelInterval labelInterval}. @@ -25555,9 +25846,10 @@ declare module "sap/ui/webc/main/Slider" { export interface $SliderSettings extends $WebComponentSettings { /** - * Defines whether the slider is in disabled state. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Displays a label with a value on every N-th step. @@ -25858,7 +26150,7 @@ declare module "sap/ui/webc/main/SplitButton" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -25890,14 +26182,14 @@ declare module "sap/ui/webc/main/SplitButton" { */ getDesign(): ButtonDesign | keyof typeof ButtonDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -25922,7 +26214,7 @@ declare module "sap/ui/webc/main/SplitButton" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -25975,20 +26267,20 @@ declare module "sap/ui/webc/main/SplitButton" { sDesign?: ButtonDesign | keyof typeof ButtonDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -26029,7 +26321,7 @@ declare module "sap/ui/webc/main/SplitButton" { export interface $SplitButtonSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -26056,10 +26348,10 @@ declare module "sap/ui/webc/main/SplitButton" { design?: (ButtonDesign | keyof typeof ButtonDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the icon to be displayed as graphical element within the component. The SAP-icons font provides @@ -26568,7 +26860,7 @@ declare module "sap/ui/webc/main/StepInput" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, ValueState, CSSSize } from "sap/ui/core/library"; + import { IFormContent, ID, ValueState, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -26610,7 +26902,8 @@ declare module "sap/ui/webc/main/StepInput" { * this case, use the regular `sap.ui.webc.main.Input` instead. * - To enter dates and times. In this case, use date/time related components instead. */ - export default class StepInput extends WebComponent { + export default class StepInput extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `StepInput`. * @@ -26744,7 +27037,7 @@ declare module "sap/ui/webc/main/StepInput" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -26753,13 +27046,14 @@ declare module "sap/ui/webc/main/StepInput" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getMax max}. * @@ -26888,7 +27182,7 @@ declare module "sap/ui/webc/main/StepInput" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -26899,19 +27193,20 @@ declare module "sap/ui/webc/main/StepInput" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getMax max}. @@ -27113,14 +27408,15 @@ declare module "sap/ui/webc/main/StepInput" { export interface $StepInputSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Determines whether the component is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines a maximum value of the component. @@ -27668,7 +27964,7 @@ declare module "sap/ui/webc/main/Switch" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID } from "sap/ui/core/library"; + import { IFormContent, ID, CSSSize } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -27703,7 +27999,8 @@ declare module "sap/ui/webc/main/Switch" { * - text-off - Used to style the `textOff` property text * - handle - Used to style the handle of the switch */ - export default class Switch extends WebComponent { + export default class Switch extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `Switch`. * @@ -27834,6 +28131,12 @@ declare module "sap/ui/webc/main/Switch" { */ mParameters?: object ): this; + /** + * Gets current value of property {@link #getAccessibleName accessibleName}. + * + * Sets the accessible aria name of the component. + */ + getAccessibleName(): string; /** * Returns array of IDs of the elements which are the current targets of the association {@link #getAriaLabelledBy * ariaLabelledBy}. @@ -27861,15 +28164,14 @@ declare module "sap/ui/webc/main/Switch" { */ getDesign(): SwitchDesign | keyof typeof SwitchDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * **Note:** A disabled component is noninteractive. - * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getTextOff textOff}. * @@ -27894,6 +28196,12 @@ declare module "sap/ui/webc/main/Switch" { * Default value is `empty string`. */ getTextOn(): string; + /** + * Gets current value of property {@link #getWidth width}. + * + * Defines the width of the control + */ + getWidth(): CSSSize; /** * Removes all the controls in the association named {@link #getAriaLabelledBy ariaLabelledBy}. */ @@ -27907,6 +28215,19 @@ declare module "sap/ui/webc/main/Switch" { */ vAriaLabelledBy: int | ID | Control ): ID; + /** + * Sets a new value for property {@link #getAccessibleName accessibleName}. + * + * Sets the accessible aria name of the component. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + */ + setAccessibleName( + /** + * New value for property `accessibleName` + */ + sAccessibleName: string + ): this; /** * Sets a new value for property {@link #getChecked checked}. * @@ -27943,21 +28264,20 @@ declare module "sap/ui/webc/main/Switch" { sDesign?: SwitchDesign | keyof typeof SwitchDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. - * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getTextOff textOff}. @@ -27997,9 +28317,27 @@ declare module "sap/ui/webc/main/Switch" { */ sTextOn?: string ): this; + /** + * Sets a new value for property {@link #getWidth width}. + * + * Defines the width of the control + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + */ + setWidth( + /** + * New value for property `width` + */ + sWidth?: CSSSize + ): this; } export interface $SwitchSettings extends $WebComponentSettings { + /** + * Sets the accessible aria name of the component. + */ + accessibleName?: string | PropertyBindingInfo; + /** * Defines if the component is checked. * @@ -28016,11 +28354,10 @@ declare module "sap/ui/webc/main/Switch" { design?: (SwitchDesign | keyof typeof SwitchDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. - * - * **Note:** A disabled component is noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the text, displayed when the component is not checked. @@ -28040,6 +28377,11 @@ declare module "sap/ui/webc/main/Switch" { */ textOn?: string | PropertyBindingInfo; + /** + * Defines the width of the control + */ + width?: CSSSize | PropertyBindingInfo; + /** * Receives id(or many ids) of the controls that label this control. */ @@ -28184,13 +28526,14 @@ declare module "sap/ui/webc/main/Tab" { */ getDesign(): SemanticColor | keyof typeof SemanticColor; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Enabled items can be selected. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -28305,19 +28648,20 @@ declare module "sap/ui/webc/main/Tab" { sDesign?: SemanticColor | keyof typeof SemanticColor ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Enabled items can be selected. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -28392,9 +28736,10 @@ declare module "sap/ui/webc/main/Tab" { design?: (SemanticColor | keyof typeof SemanticColor) | PropertyBindingInfo; /** - * Enabled items can be selected. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the icon source URI to be displayed as graphical element within the component. The SAP-icons @@ -28459,6 +28804,13 @@ declare module "sap/ui/webc/main/TabContainer" { * - `sap.ui.webc.main.Tab` - contains all the information on an item (text and icon) * - `sap.ui.webc.main.TabSeparator` - used to separate tabs with a vertical line * + * CSS Shadow Parts: + * + * CSS Shadow Parts + * allow developers to style elements inside the Shadow DOM. + * The `sap.ui.webc.main.TabContainer` exposes the following CSS Shadow Parts: + * - content - Used to style the content of the component + * * Keyboard Handling: */ export default class TabContainer extends WebComponent { @@ -30882,7 +31234,7 @@ declare module "sap/ui/webc/main/TextArea" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; - import { ID, CSSSize, ValueState } from "sap/ui/core/library"; + import { IFormContent, ID, CSSSize, ValueState } from "sap/ui/core/library"; import Control from "sap/ui/core/Control"; @@ -30910,7 +31262,8 @@ declare module "sap/ui/webc/main/TextArea" { * The `sap.ui.webc.main.TextArea` exposes the following CSS Shadow Parts: * - textarea - Used to style the native textarea */ - export default class TextArea extends WebComponent { + export default class TextArea extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `TextArea`. * @@ -31109,7 +31462,7 @@ declare module "sap/ui/webc/main/TextArea" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -31118,15 +31471,14 @@ declare module "sap/ui/webc/main/TextArea" { */ getAriaLabelledBy(): ID[]; /** - * Gets current value of property {@link #getDisabled disabled}. - * - * Indicates whether the user can interact with the component or not. + * Gets current value of property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getGrowing growing}. * @@ -31282,7 +31634,7 @@ declare module "sap/ui/webc/main/TextArea" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -31293,21 +31645,20 @@ declare module "sap/ui/webc/main/TextArea" { sAccessibleName: string ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. - * - * Indicates whether the user can interact with the component or not. + * Sets a new value for property {@link #getEnabled enabled}. * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getGrowing growing}. @@ -31550,16 +31901,15 @@ declare module "sap/ui/webc/main/TextArea" { export interface $TextAreaSettings extends $WebComponentSettings { /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; /** - * Indicates whether the user can interact with the component or not. - * - * **Note:** A disabled component is completely noninteractive. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Enables the component to automatically grow and shrink dynamically with its content. @@ -31687,12 +32037,12 @@ declare module "sap/ui/webc/main/TimePicker" { $WebComponentSettings, } from "sap/ui/webc/common/WebComponent"; + import { IFormContent, ValueState, CSSSize } from "sap/ui/core/library"; + import Event from "sap/ui/base/Event"; import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata"; - import { ValueState, CSSSize } from "sap/ui/core/library"; - import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; /** @@ -31745,7 +32095,8 @@ declare module "sap/ui/webc/main/TimePicker" { * - [PAGEUP] If focus is on one of the selection lists: Move focus to the first entry of this list. * - [PAGEDOWN] If focus is on one of the selection lists: Move focus to the last entry of this list. */ - export default class TimePicker extends WebComponent { + export default class TimePicker extends WebComponent implements IFormContent { + __implements__sap_ui_core_IFormContent: boolean; /** * Constructor for a new `TimePicker`. * @@ -31953,13 +32304,14 @@ declare module "sap/ui/webc/main/TimePicker" { */ getDateValue(): void; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Determines whether the `sap.ui.webc.main.TimePicker` is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getFormatPattern formatPattern}. * @@ -32055,19 +32407,20 @@ declare module "sap/ui/webc/main/TimePicker" { */ openPicker(): void; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Determines whether the `sap.ui.webc.main.TimePicker` is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getFormatPattern formatPattern}. @@ -32195,9 +32548,10 @@ declare module "sap/ui/webc/main/TimePicker" { export interface $TimePickerSettings extends $WebComponentSettings { /** - * Determines whether the `sap.ui.webc.main.TimePicker` is displayed as disabled. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Determines the format, displayed in the input field. @@ -32945,7 +33299,7 @@ declare module "sap/ui/webc/main/ToggleButton" { /** * Gets current value of property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ getAccessibleName(): string; /** @@ -32974,14 +33328,14 @@ declare module "sap/ui/webc/main/ToggleButton" { */ getDesign(): ButtonDesign | keyof typeof ButtonDesign; /** - * Gets current value of property {@link #getDisabled disabled}. + * Gets current value of property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * - * Default value is `false`. + * Default value is `true`. */ - getDisabled(): boolean; + getEnabled(): boolean; /** * Gets current value of property {@link #getIcon icon}. * @@ -33080,7 +33434,7 @@ declare module "sap/ui/webc/main/ToggleButton" { /** * Sets a new value for property {@link #getAccessibleName accessibleName}. * - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. */ @@ -33118,20 +33472,20 @@ declare module "sap/ui/webc/main/ToggleButton" { sDesign?: ButtonDesign | keyof typeof ButtonDesign ): this; /** - * Sets a new value for property {@link #getDisabled disabled}. + * Sets a new value for property {@link #getEnabled enabled}. * - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * Default value is `false`. + * Default value is `true`. */ - setDisabled( + setEnabled( /** - * New value for property `disabled` + * New value for property `enabled` */ - bDisabled?: boolean + bEnabled?: boolean ): this; /** * Sets a new value for property {@link #getIcon icon}. @@ -33251,7 +33605,7 @@ declare module "sap/ui/webc/main/ToggleButton" { accessibilityAttributes?: object | PropertyBindingInfo; /** - * Sets the accessible aria name of the component. + * Defines the accessible aria name of the component. */ accessibleName?: string | PropertyBindingInfo; @@ -33273,10 +33627,10 @@ declare module "sap/ui/webc/main/ToggleButton" { design?: (ButtonDesign | keyof typeof ButtonDesign) | PropertyBindingInfo; /** - * Defines whether the component is disabled. A disabled component can't be pressed or focused, and it is - * not in the tab chain. + * Defines whether the control is enabled. A disabled control can't be interacted with, and it is not in + * the tab chain. */ - disabled?: boolean | PropertyBindingInfo; + enabled?: boolean | PropertyBindingInfo; /** * Defines the icon to be displayed as graphical element within the component. The SAP-icons font provides @@ -34081,6 +34435,9 @@ declare module "sap/ui/webc/main/Tree" { ): this; /** * Fires event {@link #event:itemClick itemClick} to attached listeners. + * + * Listeners may prevent the default action of this event by calling the `preventDefault` method on the + * event object. The return value of this method indicates whether the default action should be executed. */ fireItemClick( /** @@ -34092,7 +34449,7 @@ declare module "sap/ui/webc/main/Tree" { */ item?: HTMLElement; } - ): this; + ): boolean; /** * Fires event {@link #event:itemDelete itemDelete} to attached listeners. */ diff --git a/types/openui5/sap.uxap.d.ts b/types/openui5/sap.uxap.d.ts index 201ec910bde506..049572375dd2c3 100644 --- a/types/openui5/sap.uxap.d.ts +++ b/types/openui5/sap.uxap.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.99.0 +// For Library Version: 1.100.0 declare module "sap/uxap/library" { /**