diff --git a/types/bun/package.json b/types/bun/package.json index 74cb7619cddc73..877e2c51c03526 100644 --- a/types/bun/package.json +++ b/types/bun/package.json @@ -6,7 +6,7 @@ "https://bun.com" ], "dependencies": { - "bun-types": "1.3.12" + "bun-types": "1.3.13" }, "devDependencies": { "@types/bun": "workspace:." diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 2d51cb9788c7c2..132be1435cd152 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -9291,6 +9291,17 @@ declare namespace Office { */ javascriptRuntimeUrl: string; } + /** + * Provides options related to the `onReady` event. + * + * @beta + */ + interface OnReadyOptions { + /** + * Enables the behavior that allows the `onReady` promise to be rejected. + */ + setRejectionEnabled?: () => void; + } /** * Message used in the `onVisibilityModeChanged` invocation. */ diff --git a/types/openui5/openui5-tests.ts b/types/openui5/openui5-tests.ts index d0c0e4215c8b8b..7fe28439bd5100 100644 --- a/types/openui5/openui5-tests.ts +++ b/types/openui5/openui5-tests.ts @@ -292,3 +292,5 @@ const p13nEngine = new Engine(); // version 1.145.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested // version 1.146.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested + +// version 1.147.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested diff --git a/types/openui5/package.json b/types/openui5/package.json index e5f2dbea404256..fc87e913b89c40 100644 --- a/types/openui5/package.json +++ b/types/openui5/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/openui5", - "version": "1.146.9999", + "version": "1.147.9999", "nonNpm": true, "nonNpmDescription": "openui5", "projects": [ diff --git a/types/openui5/sap.f.d.ts b/types/openui5/sap.f.d.ts index 903a969d1e8508..2d540228191947 100644 --- a/types/openui5/sap.f.d.ts +++ b/types/openui5/sap.f.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/tnt/library" { export interface IToolHeader { @@ -113,6 +113,31 @@ declare module "sap/f/library" { */ Persist = "Persist", } + /** + * Defines the media breakpoints for DynamicPage. + * + * This enum is part of the 'sap/f/library' module export and must be accessed by the property 'DynamicPageMediaRange'. + * + * @since 1.147 + */ + export enum DynamicPageMediaRange { + /** + * Desktop breakpoint (1025px to 1439px). + */ + Desktop = "Desktop", + /** + * Desktop Extra Large breakpoint (1440px and above). + */ + DesktopExtraLarge = "DesktopExtraLarge", + /** + * Phone breakpoint (up to 600px). + */ + Phone = "Phone", + /** + * Tablet breakpoint (601px to 1024px). + */ + Tablet = "Tablet", + } /** * Defines the areas within the `sap.f.DynamicPageTitle` control. * @@ -4507,7 +4532,10 @@ declare module "sap/f/DynamicPage" { import DynamicPageTitle from "sap/f/DynamicPageTitle"; - import { IDynamicPageStickyContent } from "sap/f/library"; + import { + IDynamicPageStickyContent, + DynamicPageMediaRange, + } from "sap/f/library"; import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; @@ -4631,6 +4659,59 @@ declare module "sap/f/DynamicPage" { * @returns Metadata object describing this class */ static getMetadata(): ElementMetadata; + /** + * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of + * this `sap.f.DynamicPage`. + * + * 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.f.DynamicPage` itself. + * + * The event is fired when the media breakpoint changes. Applications can use this event to adjust content + * based on the current screen size. + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + attachBreakpointChange( + /** + * 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: DynamicPage$BreakpointChangeEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of + * this `sap.f.DynamicPage`. + * + * 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.f.DynamicPage` itself. + * + * The event is fired when the media breakpoint changes. Applications can use this event to adjust content + * based on the current screen size. + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + attachBreakpointChange( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.f.DynamicPage` itself + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:pinnedStateChange pinnedStateChange} event of * this `sap.f.DynamicPage`. @@ -4718,6 +4799,26 @@ declare module "sap/f/DynamicPage" { * @returns Reference to `this` in order to allow method chaining */ destroyTitle(): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:breakpointChange breakpointChange} event of + * this `sap.f.DynamicPage`. + * + * The passed function and listener object must match the ones used for event registration. + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + detachBreakpointChange( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: DynamicPage$BreakpointChangeEvent) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Detaches event handler `fnFunction` from the {@link #event:pinnedStateChange pinnedStateChange} event * of this `sap.f.DynamicPage`. @@ -4738,6 +4839,20 @@ declare module "sap/f/DynamicPage" { */ oListener?: object ): this; + /** + * Fires event {@link #event:breakpointChange breakpointChange} to attached listeners. + * + * @since 1.147 + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns Reference to `this` in order to allow method chaining + */ + fireBreakpointChange( + /** + * Parameters to pass along with the event + */ + mParameters?: DynamicPage$BreakpointChangeEventParameters + ): this; /** * Fires event {@link #event:pinnedStateChange pinnedStateChange} to attached listeners. * @@ -5334,8 +5449,39 @@ declare module "sap/f/DynamicPage" { * @since 1.93 */ pinnedStateChange?: (oEvent: DynamicPage$PinnedStateChangeEvent) => void; + + /** + * The event is fired when the media breakpoint changes. Applications can use this event to adjust content + * based on the current screen size. + * + * @since 1.147 + */ + breakpointChange?: (oEvent: DynamicPage$BreakpointChangeEvent) => void; } + /** + * Parameters of the DynamicPage#breakpointChange event. + */ + export interface DynamicPage$BreakpointChangeEventParameters { + /** + * The current media range as defined by {@link sap.f.DynamicPageMediaRange}. + */ + currentRange?: DynamicPageMediaRange | keyof typeof DynamicPageMediaRange; + + /** + * The current width of the control in pixels. + */ + currentWidth?: int; + } + + /** + * Event object of the DynamicPage#breakpointChange event. + */ + export type DynamicPage$BreakpointChangeEvent = Event< + DynamicPage$BreakpointChangeEventParameters, + DynamicPage + >; + /** * Parameters of the DynamicPage#pinnedStateChange event. */ diff --git a/types/openui5/sap.m.d.ts b/types/openui5/sap.m.d.ts index e5c3499dc2154f..c24650c712e01c 100644 --- a/types/openui5/sap.m.d.ts +++ b/types/openui5/sap.m.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/f/library" { export interface IShellBar { @@ -827,7 +827,6 @@ declare module "sap/m/library" { * This enum is part of the 'sap/m/library' module export and must be accessed by the property 'ContentConfigType'. * * @since 1.122 - * @experimental As of version 1.122. */ export enum ContentConfigType { /** @@ -1400,7 +1399,7 @@ declare module "sap/m/library" { * * Generic Tile renders buttons that are specified under 'actionButtons' aggregation * - * @experimental As of version 1.96. + * @since 1.96.0 */ ActionMode = "ActionMode", /** @@ -1408,7 +1407,7 @@ declare module "sap/m/library" { * * Enables Article Mode. * - * @experimental As of version 1.96. + * @since 1.96.0 */ ArticleMode = "ArticleMode", /** @@ -1427,7 +1426,6 @@ declare module "sap/m/library" { * It is applicable only for the OneByOne FrameType and TwoByHalf FrameType. * * @since 1.96 - * @experimental As of version 1.96. */ IconMode = "IconMode", /** @@ -1601,7 +1599,7 @@ declare module "sap/m/library" { * * This enum is part of the 'sap/m/library' module export and must be accessed by the property 'IconTabFilterInteractionMode'. * - * @experimental As of version 1.121. Behavior might change. + * @experimental As of version 1.121. */ export enum IconTabFilterInteractionMode { /** @@ -2265,7 +2263,8 @@ declare module "sap/m/library" { */ Active = "Active", /** - * Enables detail button of the list item that fires `detailPress` event. Also see {@link sap.m.ListItemBase#attachDetailPress}. + * Enables the detail button of the list item that fires the {@link sap.m.ListItemBase#event:detailPress detailPress } + * event. */ Detail = "Detail", /** @@ -2278,7 +2277,8 @@ declare module "sap/m/library" { */ Inactive = "Inactive", /** - * Indicates the list item is navigable to show extra information about the item. + * Enables the navigation button of the list item to navigate and display additional information about the + * item. Fires the {@link sap.m.ListBase#event:itemPress} event when pressed. */ Navigation = "Navigation", } @@ -18577,7 +18577,6 @@ declare module "sap/m/ContentConfig" { * This element is used within the TileAttribute control that generates either a link or text * * @since 1.122 - * @experimental As of version 1.122. */ export default class ContentConfig extends UI5Element { /** @@ -18773,8 +18772,6 @@ declare module "sap/m/ContentConfig" { } /** * Describes the settings that can be provided to the ContentConfig constructor. - * - * @experimental As of version 1.122. */ export interface $ContentConfigSettings extends $ElementSettings { /** @@ -52102,7 +52099,7 @@ declare module "sap/m/ListBase" { /** * Gets current value of property {@link #getItemActionCount itemActionCount}. * - * Defines the maximum number of item actions. + * Defines the maximum number of {@link sap.m.ListItemBase#getActions actions} displayed for the items. * * If the number of item actions exceeds the `itemActionCount` property value, an overflow button will appear, * providing access to the additional actions. @@ -52110,6 +52107,8 @@ declare module "sap/m/ListBase" { * **Note:** Only values between `0-2` enables the use of the new `actions` aggregation. When enabled, the * {@link sap.m.ListMode Delete} mode and the {@link sap.m.ListType Detail} list item type have no effect. * Instead, dedicated actions of {@link sap.m.ListItemActionType type} `Delete` or `Edit` should be used. + * **Note:** As of version 1.147, items with type {@link sap.m.ListType Navigation} render the navigation + * indicator as an action, which is not counted in `itemActionCount`. * * Default value is `-1`. * @@ -52781,7 +52780,7 @@ declare module "sap/m/ListBase" { /** * Sets a new value for property {@link #getItemActionCount itemActionCount}. * - * Defines the maximum number of item actions. + * Defines the maximum number of {@link sap.m.ListItemBase#getActions actions} displayed for the items. * * If the number of item actions exceeds the `itemActionCount` property value, an overflow button will appear, * providing access to the additional actions. @@ -52789,6 +52788,8 @@ declare module "sap/m/ListBase" { * **Note:** Only values between `0-2` enables the use of the new `actions` aggregation. When enabled, the * {@link sap.m.ListMode Delete} mode and the {@link sap.m.ListType Detail} list item type have no effect. * Instead, dedicated actions of {@link sap.m.ListItemActionType type} `Delete` or `Edit` should be used. + * **Note:** As of version 1.147, items with type {@link sap.m.ListType Navigation} render the navigation + * indicator as an action, which is not counted in `itemActionCount`. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -53373,7 +53374,7 @@ declare module "sap/m/ListBase" { | `{${string}}`; /** - * Defines the maximum number of item actions. + * Defines the maximum number of {@link sap.m.ListItemBase#getActions actions} displayed for the items. * * If the number of item actions exceeds the `itemActionCount` property value, an overflow button will appear, * providing access to the additional actions. @@ -53381,6 +53382,8 @@ declare module "sap/m/ListBase" { * **Note:** Only values between `0-2` enables the use of the new `actions` aggregation. When enabled, the * {@link sap.m.ListMode Delete} mode and the {@link sap.m.ListType Detail} list item type have no effect. * Instead, dedicated actions of {@link sap.m.ListItemActionType type} `Delete` or `Edit` should be used. + * **Note:** As of version 1.147, items with type {@link sap.m.ListType Navigation} render the navigation + * indicator as an action, which is not counted in `itemActionCount`. * * @since 1.137 */ @@ -68940,8 +68943,6 @@ declare module "sap/m/NumericContent" { * Default value is `true`. * * @since 1.73 - * @experimental As of version 1.73. Disclaimer: this property is in a beta state - incompatible API changes - * may be done before its official public release. Use at your own discretion. * * @returns Value of property `adaptiveFontSize` */ @@ -69108,8 +69109,6 @@ declare module "sap/m/NumericContent" { * Default value is `true`. * * @since 1.73 - * @experimental As of version 1.73. Disclaimer: this property is in a beta state - incompatible API changes - * may be done before its official public release. Use at your own discretion. * * @returns Reference to `this` in order to allow method chaining */ @@ -69467,8 +69466,6 @@ declare module "sap/m/NumericContent" { * language. When set to false the font size will always be large * * @since 1.73 - * @experimental As of version 1.73. Disclaimer: this property is in a beta state - incompatible API changes - * may be done before its official public release. Use at your own discretion. */ adaptiveFontSize?: boolean | PropertyBindingInfo | `{${string}}`; @@ -76587,7 +76584,6 @@ declare module "sap/m/OverflowToolbarTokenizer" { * Using more than one tokenizer in the same toolbar is not recomended, as it may lead to unexpected behavior. * Do not use tokenizers within a toolbar if its active property is set to `true`. * - * @since 1.139 * @experimental As of version 1.139. */ export default class OverflowToolbarTokenizer @@ -105307,7 +105303,7 @@ declare module "sap/m/RadioButton" { * 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.RadioButton` itself. * - * Event is triggered when the user makes a change on the radio button (selecting or unselecting it). + * The event is triggered when the user selects or deselects the radio button. * * * @returns Reference to `this` in order to allow method chaining @@ -105333,7 +105329,7 @@ declare module "sap/m/RadioButton" { * 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.RadioButton` itself. * - * Event is triggered when the user makes a change on the radio button (selecting or unselecting it). + * The event is triggered when the user selects or deselects the radio button. * * * @returns Reference to `this` in order to allow method chaining @@ -105970,7 +105966,7 @@ declare module "sap/m/RadioButton" { ariaLabelledBy?: Array; /** - * Event is triggered when the user makes a change on the radio button (selecting or unselecting it). + * The event is triggered when the user selects or deselects the radio button. */ select?: (oEvent: RadioButton$SelectEvent) => void; } @@ -105980,7 +105976,10 @@ declare module "sap/m/RadioButton" { */ export interface RadioButton$SelectEventParameters { /** - * Checks whether the RadioButton is active or not. + * Indicates whether the RadioButton is selected. + * + * **Note:** A single RadioButton cannot be deselected by user interaction. Deselection only occurs when + * another RadioButton in the same group receives a selection. */ selected?: boolean; } @@ -138789,6 +138788,19 @@ declare module "sap/m/Switch" { * @returns Value of property `customTextOn` */ getCustomTextOn(): string; + /** + * Gets current value of property {@link #getEditable editable}. + * + * Specifies whether the user shall be allowed to change the state of the switch. When set to `false`, the + * switch is in read-only mode and can still be focused and the user can copy the text from it. + * + * Default value is `true`. + * + * @since 1.147.0 + * + * @returns Value of property `editable` + */ + getEditable(): boolean; /** * Gets current value of property {@link #getEnabled enabled}. * @@ -138897,6 +138909,26 @@ declare module "sap/m/Switch" { */ sCustomTextOn?: string ): this; + /** + * Sets a new value for property {@link #getEditable editable}. + * + * Specifies whether the user shall be allowed to change the state of the switch. When set to `false`, the + * switch is in read-only mode and can still be focused and the user can copy the text from it. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `true`. + * + * @since 1.147.0 + * + * @returns Reference to `this` in order to allow method chaining + */ + setEditable( + /** + * New value for property `editable` + */ + bEditable?: boolean + ): this; /** * Sets a new value for property {@link #getEnabled enabled}. * @@ -139015,6 +139047,14 @@ declare module "sap/m/Switch" { | PropertyBindingInfo | `{${string}}`; + /** + * Specifies whether the user shall be allowed to change the state of the switch. When set to `false`, the + * switch is in read-only mode and can still be focused and the user can copy the text from it. + * + * @since 1.147.0 + */ + editable?: boolean | PropertyBindingInfo | `{${string}}`; + /** * Association to controls / ids which label this control (see WAI-ARIA attribute aria-labelledby). * @@ -145188,6 +145228,310 @@ declare module "sap/m/table/ColumnWidthController" { } } +declare module "sap/m/table/Title" { + import { default as Control, $ControlSettings } from "sap/ui/core/Control"; + + import { ITitle, IShrinkable } from "sap/ui/core/library"; + + import ElementMetadata from "sap/ui/core/ElementMetadata"; + + import Title1 from "sap/m/Title"; + + import { PropertyBindingInfo } from "sap/ui/base/ManagedObject"; + + /** + * A composite title control intended to display a table title along with optional total and selected row + * counts. + * + * Overview: The `sap.m.table.Title` control renders the provided `sap.m.Title` control and optionally displays + * the table's total row count, the selected row count, or both independently. + * + * @since 1.147 + */ + export default class Title extends Control implements ITitle, IShrinkable { + __implements__sap_ui_core_ITitle: boolean; + __implements__sap_ui_core_IShrinkable: boolean; + /** + * Constructor for a new `sap.m.table.Title`. + * + * 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( + /** + * Initial settings for the new control + */ + mSettings?: $TitleSettings + ); + /** + * Constructor for a new `sap.m.table.Title`. + * + * 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, + /** + * Initial settings for the new control + */ + mSettings?: $TitleSettings + ); + + /** + * Creates a new subclass of class sap.m.table.Title 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.core.Control.extend}. + * + * + * @returns Created class / constructor function + */ + 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.m.table.Title. + * + * + * @returns Metadata object describing this class + */ + static getMetadata(): ElementMetadata; + /** + * Destroys the title in the aggregation {@link #getTitle title}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + destroyTitle(): this; + /** + * Gets current value of property {@link #getSelectedCount selectedCount}. + * + * Defines the value that is displayed as the selected row count. + * + * **Note:** A value of 0 indicates that no rows are selected, while a negative value indicates that the + * selected count is unknown. Although these cases are not displayed to the user, they are handled differently + * for accessibility reasons. + * + * Default value is `0`. + * + * + * @returns Value of property `selectedCount` + */ + getSelectedCount(): int; + /** + * Gets current value of property {@link #getShowExtendedView showExtendedView}. + * + * Toggles between compact and extended display modes for the `selectedCount` and `totalCount`. + * + * + * - **Compact mode (`false`)**: Displays counts in a condensed format. + * - **Extended mode (`true`)**: Displays counts with separate descriptive labels. + * + * Default value is `false`. + * + * + * @returns Value of property `showExtendedView` + */ + getShowExtendedView(): boolean; + /** + * Gets content of aggregation {@link #getTitle title}. + * + * Sets the title control, which is displayed in the toolbar as usual. + * + * **Note:** You must set a `title` to use this control. + */ + getTitle(): Title1; + /** + * Gets current value of property {@link #getTotalCount totalCount}. + * + * Defines the value that is displayed as the total row count. + * + * **Note:** A value of 0 represents an empty table, while a negative value indicates that the total count + * is unknown. Although both cases are not displayed to the user, they are handled differently for accessibility + * reasons. + * + * Default value is `0`. + * + * + * @returns Value of property `totalCount` + */ + getTotalCount(): int; + /** + * Gets current value of property {@link #getVisible visible}. + * + * Determines whether the control is visible. + * + * **Note:** If set to `false`, the control is hidden but still rendered for accessibility reasons. + * + * Default value is `true`. + * + * + * @returns Value of property `visible` + */ + getVisible(): boolean; + /** + * Sets a new value for property {@link #getSelectedCount selectedCount}. + * + * Defines the value that is displayed as the selected row count. + * + * **Note:** A value of 0 indicates that no rows are selected, while a negative value indicates that the + * selected count is unknown. Although these cases are not displayed to the user, they are handled differently + * for accessibility reasons. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `0`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setSelectedCount( + /** + * New value for property `selectedCount` + */ + iSelectedCount?: int + ): this; + /** + * Sets a new value for property {@link #getShowExtendedView showExtendedView}. + * + * Toggles between compact and extended display modes for the `selectedCount` and `totalCount`. + * + * + * - **Compact mode (`false`)**: Displays counts in a condensed format. + * - **Extended mode (`true`)**: Displays counts with separate descriptive labels. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setShowExtendedView( + /** + * New value for property `showExtendedView` + */ + bShowExtendedView?: boolean + ): this; + /** + * Sets the aggregated {@link #getTitle title}. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setTitle( + /** + * The title to set + */ + oTitle: Title1 + ): this; + /** + * Sets a new value for property {@link #getTotalCount totalCount}. + * + * Defines the value that is displayed as the total row count. + * + * **Note:** A value of 0 represents an empty table, while a negative value indicates that the total count + * is unknown. Although both cases are not displayed to the user, they are handled differently for accessibility + * reasons. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `0`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setTotalCount( + /** + * New value for property `totalCount` + */ + iTotalCount?: int + ): this; + /** + * Sets a new value for property {@link #getVisible visible}. + * + * Determines whether the control is visible. + * + * **Note:** If set to `false`, the control is hidden but still rendered for accessibility reasons. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `true`. + * + * + * @returns Reference to `this` in order to allow method chaining + */ + setVisible( + /** + * New value for property `visible` + */ + bVisible?: boolean + ): this; + } + /** + * Describes the settings that can be provided to the Title constructor. + */ + export interface $TitleSettings extends $ControlSettings { + /** + * Defines the value that is displayed as the total row count. + * + * **Note:** A value of 0 represents an empty table, while a negative value indicates that the total count + * is unknown. Although both cases are not displayed to the user, they are handled differently for accessibility + * reasons. + */ + totalCount?: int | PropertyBindingInfo | `{${string}}`; + + /** + * Defines the value that is displayed as the selected row count. + * + * **Note:** A value of 0 indicates that no rows are selected, while a negative value indicates that the + * selected count is unknown. Although these cases are not displayed to the user, they are handled differently + * for accessibility reasons. + */ + selectedCount?: int | PropertyBindingInfo | `{${string}}`; + + /** + * Toggles between compact and extended display modes for the `selectedCount` and `totalCount`. + * + * + * - **Compact mode (`false`)**: Displays counts in a condensed format. + * - **Extended mode (`true`)**: Displays counts with separate descriptive labels. + */ + showExtendedView?: boolean | PropertyBindingInfo | `{${string}}`; + + /** + * Determines whether the control is visible. + * + * **Note:** If set to `false`, the control is hidden but still rendered for accessibility reasons. + */ + visible?: boolean | PropertyBindingInfo | `{${string}}`; + + /** + * Sets the title control, which is displayed in the toolbar as usual. + * + * **Note:** You must set a `title` to use this control. + */ + title?: Title1; + } +} + declare module "sap/m/TablePersoController" { import { default as ManagedObject, @@ -149327,7 +149671,6 @@ declare module "sap/m/TileAttribute" { * Holds detail of an attribute used in the ActionTile. * * @since 1.122 - * @experimental As of version 1.122. */ export default class TileAttribute extends Control { /** @@ -149496,8 +149839,6 @@ declare module "sap/m/TileAttribute" { } /** * Describes the settings that can be provided to the TileAttribute constructor. - * - * @experimental As of version 1.122. */ export interface $TileAttributeSettings extends $ControlSettings { /** @@ -157517,7 +157858,6 @@ declare module "sap/m/upload/Column" { * control. * * @since 1.120 - * @experimental As of version 1.120. */ export default class Column extends Column1 { /** @@ -157730,8 +158070,6 @@ declare module "sap/m/upload/Column" { } /** * Describes the settings that can be provided to the Column constructor. - * - * @experimental As of version 1.120. */ export interface $ColumnSettings extends $ColumnSettings1 { /** @@ -169992,53 +170330,6 @@ declare module "sap/m/VariantManagement" { */ oListener?: object ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:manageOpen manageOpen} event of this `sap.m.VariantManagement`. - * - * 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.VariantManagement` itself. - * - * This event is fired when users opens the Manage Views dialog. - * - * - * @returns Reference to `this` in order to allow method chaining - */ - attachManageOpen( - /** - * 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.VariantManagement` itself - */ - oListener?: object - ): this; - /** - * Attaches event handler `fnFunction` to the {@link #event:manageOpen manageOpen} event of this `sap.m.VariantManagement`. - * - * 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.VariantManagement` itself. - * - * This event is fired when users opens the Manage Views dialog. - * - * - * @returns Reference to `this` in order to allow method chaining - */ - attachManageOpen( - /** - * 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.VariantManagement` itself - */ - oListener?: object - ): this; /** * Attaches event handler `fnFunction` to the {@link #event:save save} event of this `sap.m.VariantManagement`. * @@ -170194,24 +170485,6 @@ declare module "sap/m/VariantManagement" { */ oListener?: object ): this; - /** - * Detaches event handler `fnFunction` from the {@link #event:manageOpen manageOpen} event of this `sap.m.VariantManagement`. - * - * The passed function and listener object must match the ones used for event registration. - * - * - * @returns Reference to `this` in order to allow method chaining - */ - detachManageOpen( - /** - * 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:save save} event of this `sap.m.VariantManagement`. * @@ -170287,19 +170560,6 @@ declare module "sap/m/VariantManagement" { */ mParameters?: object ): this; - /** - * Fires event {@link #event:manageOpen manageOpen} to attached listeners. - * - * @ui5-protected Do not call from applications (only from related classes in the framework) - * - * @returns Reference to `this` in order to allow method chaining - */ - fireManageOpen( - /** - * Parameters to pass along with the event - */ - mParameters?: object - ): this; /** * Fires event {@link #event:save save} to attached listeners. * @@ -171030,11 +171290,6 @@ declare module "sap/m/VariantManagement" { */ manageCancel?: (oEvent: Event) => void; - /** - * This event is fired when users opens the Manage Views dialog. - */ - manageOpen?: (oEvent: Event) => void; - /** * This event is fired when users apply changes variant information in the Manage Views dialog. Some * of the parameters may be ommitted, depending on user selection. @@ -171118,19 +171373,6 @@ declare module "sap/m/VariantManagement" { VariantManagement >; - /** - * Parameters of the VariantManagement#manageOpen event. - */ - export interface VariantManagement$ManageOpenEventParameters {} - - /** - * Event object of the VariantManagement#manageOpen event. - */ - export type VariantManagement$ManageOpenEvent = Event< - VariantManagement$ManageOpenEventParameters, - VariantManagement - >; - /** * Parameters of the VariantManagement#save event. */ @@ -175263,6 +175505,8 @@ declare namespace sap { "sap/m/table/ColumnWidthController": undefined; + "sap/m/table/Title": undefined; + "sap/m/table/Util": undefined; "sap/m/TablePersoController": undefined; diff --git a/types/openui5/sap.tnt.d.ts b/types/openui5/sap.tnt.d.ts index c07ab62090303e..22497bc396f2ed 100644 --- a/types/openui5/sap.tnt.d.ts +++ b/types/openui5/sap.tnt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/tnt/library" { /** @@ -2705,7 +2705,6 @@ declare module "sap/tnt/SideNavigation" { * Default value is `Decorated`. * * @since 1.134 - * @experimental As of version 1.134. * * @returns Value of property `design` */ @@ -2800,7 +2799,6 @@ declare module "sap/tnt/SideNavigation" { * Default value is `Decorated`. * * @since 1.134 - * @experimental As of version 1.134. * * @returns Reference to `this` in order to allow method chaining */ @@ -2950,7 +2948,6 @@ declare module "sap/tnt/SideNavigation" { * to achieve a Side Navigation Overlay Mode. * * @since 1.134 - * @experimental As of version 1.134. */ design?: | (SideNavigationDesign | keyof typeof SideNavigationDesign) diff --git a/types/openui5/sap.ui.codeeditor.d.ts b/types/openui5/sap.ui.codeeditor.d.ts index 2bdb5696ef73d0..db0dbd1609691f 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/codeeditor/library" {} @@ -354,8 +354,13 @@ declare module "sap/ui/codeeditor/CodeEditor" { * Gets current value of property {@link #getSyntaxHints syntaxHints}. * * Sets whether to show syntax hints in the editor. Those hints are visualized as value state icons in the - * line numbers area. The hint text is shown in tooltip of those icons. **Note:** This flag is only available - * if line numbers are shown. + * line numbers area. The hint text is shown in tooltip of those icons. + * + * **Note:** This flag is only available if line numbers are shown. + * + * **Note:** Syntax hints highly depend on the underlying third-party ACE editor. Comprehensive hints may + * not be available for all editor types, and some types may not display any hints. Currently, syntax hints + * are supported for the following types: javascript, json, css, html, xml, php, coffee, lua, xquery, yaml. * * Default value is `true`. * @@ -366,19 +371,26 @@ declare module "sap/ui/codeeditor/CodeEditor" { /** * Gets current value of property {@link #getType type}. * - * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript, - * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru, - * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools, - * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang, - * groovy, haml, handlebars, haskell, haskell_cabal, haxe, hjson, html, html_elixir, html_ruby, ini, io, - * jack, jade, java, javascript, json, jsoniq, jsp, jsx, julia, kotlin, latex, lean, less, liquid, lisp, - * live_script, livescript, logiql, lsl, lua, luapage, lucene, makefile, markdown, mask, matlab, mavens_mate_log, - * maze, mel, mips_assembler, mipsassembler, mushcode, mysql, nix, nsis, objectivec, ocaml, pascal, perl, - * pgsql, php, plain_text, powershell, praat, prolog, properties, protobuf, python, r, razor, rdoc, rhtml, - * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql, - * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript, - * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade, - * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document + * The type of the code in the editor used for syntax highlighting. + * + * Possible types are: "abap", "abc", "actionscript", "ada", "alda", "apache_conf", "apex", "aql", "asciidoc", + * "asl", "assembly_arm32", "assembly_x86", "astro", "autohotkey", "batchfile", "basic", "bibtex", "c_cpp", + * "c9search", "cirru", "clojure", "cobol", "coffee", "coldfusion", "crystal", "csharp", "csound_document", + * "csound_orchestra", "csound_score", "css", "curly", "cuttlefish", "d", "dart", "diff", "django", "dockerfile", + * "dot", "drools", "edifact", "eiffel", "ejs", "elixir", "elm", "erlang", "flix", "forth", "fortran", "fsharp", + * "fsl", "ftl", "gcode", "gherkin", "gitignore", "glsl", "gobstones", "golang", "graphqlschema", "groovy", + * "haml", "handlebars", "haskell", "haskell_cabal", "haxe", "hjson", "html", "html_elixir", "html_ruby", + * "ini", "io", "ion", "jack", "jade", "java", "javascript", "jexl", "json", "json5", "jsoniq", "jsp", "jssm", + * "jsx", "julia", "kotlin", "latex", "latte", "less", "liquid", "lisp", "livescript", "log", "logiql", + * "logtalk", "lsl", "lua", "luapage", "lucene", "makefile", "markdown", "mask", "matlab", "maze", "mediawiki", + * "mel", "mips", "mixal", "mushcode", "mysql", "nasal", "nginx", "nim", "nix", "nsis", "nunjucks", "objectivec", + * "ocaml", "odin", "partiql", "pascal", "perl", "pgsql", "php", "php_laravel_blade", "pig", "plsql", "powershell", + * "praat", "prisma", "prolog", "properties", "protobuf", "prql", "puppet", "python", "qml", "r", "raku", + * "razor", "rdoc", "red", "rhtml", "robot", "rst", "ruby", "rust", "sac", "sass", "scad", "scala", "scheme", + * "scrypt", "scss", "sh", "sjs", "slim", "smarty", "smithy", "snippets", "soy_template", "space", "sparql", + * "sql", "sqlserver", "stylus", "svg", "swift", "tcl", "terraform", "tex", "text", "textile", "toml", "tsx", + * "turtle", "twig", "typescript", "vala", "vbscript", "velocity", "verilog", "vhdl", "visualforce", "vue", + * "wollok", "xml", "xquery", "yaml", "zeek", "zig" * * Default value is `"javascript"`. * @@ -522,8 +534,13 @@ declare module "sap/ui/codeeditor/CodeEditor" { * Sets a new value for property {@link #getSyntaxHints syntaxHints}. * * Sets whether to show syntax hints in the editor. Those hints are visualized as value state icons in the - * line numbers area. The hint text is shown in tooltip of those icons. **Note:** This flag is only available - * if line numbers are shown. + * line numbers area. The hint text is shown in tooltip of those icons. + * + * **Note:** This flag is only available if line numbers are shown. + * + * **Note:** Syntax hints highly depend on the underlying third-party ACE editor. Comprehensive hints may + * not be available for all editor types, and some types may not display any hints. Currently, syntax hints + * are supported for the following types: javascript, json, css, html, xml, php, coffee, lua, xquery, yaml. * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -541,19 +558,26 @@ declare module "sap/ui/codeeditor/CodeEditor" { /** * Sets a new value for property {@link #getType type}. * - * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript, - * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru, - * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools, - * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang, - * groovy, haml, handlebars, haskell, haskell_cabal, haxe, hjson, html, html_elixir, html_ruby, ini, io, - * jack, jade, java, javascript, json, jsoniq, jsp, jsx, julia, kotlin, latex, lean, less, liquid, lisp, - * live_script, livescript, logiql, lsl, lua, luapage, lucene, makefile, markdown, mask, matlab, mavens_mate_log, - * maze, mel, mips_assembler, mipsassembler, mushcode, mysql, nix, nsis, objectivec, ocaml, pascal, perl, - * pgsql, php, plain_text, powershell, praat, prolog, properties, protobuf, python, r, razor, rdoc, rhtml, - * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql, - * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript, - * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade, - * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document + * The type of the code in the editor used for syntax highlighting. + * + * Possible types are: "abap", "abc", "actionscript", "ada", "alda", "apache_conf", "apex", "aql", "asciidoc", + * "asl", "assembly_arm32", "assembly_x86", "astro", "autohotkey", "batchfile", "basic", "bibtex", "c_cpp", + * "c9search", "cirru", "clojure", "cobol", "coffee", "coldfusion", "crystal", "csharp", "csound_document", + * "csound_orchestra", "csound_score", "css", "curly", "cuttlefish", "d", "dart", "diff", "django", "dockerfile", + * "dot", "drools", "edifact", "eiffel", "ejs", "elixir", "elm", "erlang", "flix", "forth", "fortran", "fsharp", + * "fsl", "ftl", "gcode", "gherkin", "gitignore", "glsl", "gobstones", "golang", "graphqlschema", "groovy", + * "haml", "handlebars", "haskell", "haskell_cabal", "haxe", "hjson", "html", "html_elixir", "html_ruby", + * "ini", "io", "ion", "jack", "jade", "java", "javascript", "jexl", "json", "json5", "jsoniq", "jsp", "jssm", + * "jsx", "julia", "kotlin", "latex", "latte", "less", "liquid", "lisp", "livescript", "log", "logiql", + * "logtalk", "lsl", "lua", "luapage", "lucene", "makefile", "markdown", "mask", "matlab", "maze", "mediawiki", + * "mel", "mips", "mixal", "mushcode", "mysql", "nasal", "nginx", "nim", "nix", "nsis", "nunjucks", "objectivec", + * "ocaml", "odin", "partiql", "pascal", "perl", "pgsql", "php", "php_laravel_blade", "pig", "plsql", "powershell", + * "praat", "prisma", "prolog", "properties", "protobuf", "prql", "puppet", "python", "qml", "r", "raku", + * "razor", "rdoc", "red", "rhtml", "robot", "rst", "ruby", "rust", "sac", "sass", "scad", "scala", "scheme", + * "scrypt", "scss", "sh", "sjs", "slim", "smarty", "smithy", "snippets", "soy_template", "space", "sparql", + * "sql", "sqlserver", "stylus", "svg", "swift", "tcl", "terraform", "tex", "text", "textile", "toml", "tsx", + * "turtle", "twig", "typescript", "vala", "vbscript", "velocity", "verilog", "vhdl", "visualforce", "vue", + * "wollok", "xml", "xquery", "yaml", "zeek", "zig" * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * @@ -633,19 +657,26 @@ declare module "sap/ui/codeeditor/CodeEditor" { value?: string | PropertyBindingInfo; /** - * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript, - * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru, - * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools, - * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang, - * groovy, haml, handlebars, haskell, haskell_cabal, haxe, hjson, html, html_elixir, html_ruby, ini, io, - * jack, jade, java, javascript, json, jsoniq, jsp, jsx, julia, kotlin, latex, lean, less, liquid, lisp, - * live_script, livescript, logiql, lsl, lua, luapage, lucene, makefile, markdown, mask, matlab, mavens_mate_log, - * maze, mel, mips_assembler, mipsassembler, mushcode, mysql, nix, nsis, objectivec, ocaml, pascal, perl, - * pgsql, php, plain_text, powershell, praat, prolog, properties, protobuf, python, r, razor, rdoc, rhtml, - * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql, - * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript, - * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade, - * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document + * The type of the code in the editor used for syntax highlighting. + * + * Possible types are: "abap", "abc", "actionscript", "ada", "alda", "apache_conf", "apex", "aql", "asciidoc", + * "asl", "assembly_arm32", "assembly_x86", "astro", "autohotkey", "batchfile", "basic", "bibtex", "c_cpp", + * "c9search", "cirru", "clojure", "cobol", "coffee", "coldfusion", "crystal", "csharp", "csound_document", + * "csound_orchestra", "csound_score", "css", "curly", "cuttlefish", "d", "dart", "diff", "django", "dockerfile", + * "dot", "drools", "edifact", "eiffel", "ejs", "elixir", "elm", "erlang", "flix", "forth", "fortran", "fsharp", + * "fsl", "ftl", "gcode", "gherkin", "gitignore", "glsl", "gobstones", "golang", "graphqlschema", "groovy", + * "haml", "handlebars", "haskell", "haskell_cabal", "haxe", "hjson", "html", "html_elixir", "html_ruby", + * "ini", "io", "ion", "jack", "jade", "java", "javascript", "jexl", "json", "json5", "jsoniq", "jsp", "jssm", + * "jsx", "julia", "kotlin", "latex", "latte", "less", "liquid", "lisp", "livescript", "log", "logiql", + * "logtalk", "lsl", "lua", "luapage", "lucene", "makefile", "markdown", "mask", "matlab", "maze", "mediawiki", + * "mel", "mips", "mixal", "mushcode", "mysql", "nasal", "nginx", "nim", "nix", "nsis", "nunjucks", "objectivec", + * "ocaml", "odin", "partiql", "pascal", "perl", "pgsql", "php", "php_laravel_blade", "pig", "plsql", "powershell", + * "praat", "prisma", "prolog", "properties", "protobuf", "prql", "puppet", "python", "qml", "r", "raku", + * "razor", "rdoc", "red", "rhtml", "robot", "rst", "ruby", "rust", "sac", "sass", "scad", "scala", "scheme", + * "scrypt", "scss", "sh", "sjs", "slim", "smarty", "smithy", "snippets", "soy_template", "space", "sparql", + * "sql", "sqlserver", "stylus", "svg", "swift", "tcl", "terraform", "tex", "text", "textile", "toml", "tsx", + * "turtle", "twig", "typescript", "vala", "vbscript", "velocity", "verilog", "vhdl", "visualforce", "vue", + * "wollok", "xml", "xquery", "yaml", "zeek", "zig" */ type?: string | PropertyBindingInfo; @@ -701,8 +732,13 @@ declare module "sap/ui/codeeditor/CodeEditor" { /** * Sets whether to show syntax hints in the editor. Those hints are visualized as value state icons in the - * line numbers area. The hint text is shown in tooltip of those icons. **Note:** This flag is only available - * if line numbers are shown. + * line numbers area. The hint text is shown in tooltip of those icons. + * + * **Note:** This flag is only available if line numbers are shown. + * + * **Note:** Syntax hints highly depend on the underlying third-party ACE editor. Comprehensive hints may + * not be available for all editor types, and some types may not display any hints. Currently, syntax hints + * are supported for the following types: javascript, json, css, html, xml, php, coffee, lua, xquery, yaml. */ syntaxHints?: boolean | PropertyBindingInfo | `{${string}}`; diff --git a/types/openui5/sap.ui.commons.d.ts b/types/openui5/sap.ui.commons.d.ts index d20c3022e812d6..3c1e7c96130d33 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.146.0 +// For Library Version: 1.147.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 71e04098e6e109..54219b7af1bf03 100644 --- a/types/openui5/sap.ui.core.d.ts +++ b/types/openui5/sap.ui.core.d.ts @@ -279,7 +279,7 @@ declare namespace sap { "sap/ui/thirdparty/qunit-2": undefined; } } -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/base/assert" { /** @@ -7745,9 +7745,9 @@ declare module "sap/ui/model/odata/v2/ODataModel" { * has been resolved! * * - * @returns The meta model for this `ODataModel` + * @returns The meta model for this `ODataModel`, or `undefined` if the model has been destroyed */ - getMetaModel(): ODataMetaModel; + getMetaModel(): ODataMetaModel | undefined; /** * Returns a JSON object that is a copy of the entity data referenced by the given `sPath` and `oContext`. * It does not load any data and may not return all requested data if it is not available. @@ -17444,7 +17444,6 @@ declare module "sap/ui/core/library" { /** * Implementing this interface allows a control to be accessible via access keys. * - * @since 1.104 * @experimental As of version 1.104. */ export interface IAccessKeySupport { @@ -17454,21 +17453,18 @@ declare module "sap/ui/core/library" { * Returns a refence to DOM element to be focused during Access key navigation. If not implemented getFocusDomRef() * method is used. * - * @since 1.104 * @experimental As of version 1.104. */ getAccessKeysFocusTarget?(): void; /** * If implemented called when access keys feature is enabled and highlighting is over * - * @since 1.104 * @experimental As of version 1.104. */ onAccKeysHighlightEnd?(): void; /** * If implemented called when access keys feature is enabled and highlighting is ongoing * - * @since 1.104 * @experimental As of version 1.104. */ onAccKeysHighlightStart?(): void; @@ -42242,6 +42238,59 @@ declare module "sap/ui/core/RenderManager" { */ oTargetDomNode: Element ): void; + /** + * Executes a rendering callback and flushes the result into the provided DOM node. + * + * The rendering callback receives a RenderManager instance with the semantic rendering API implementation + * (DOM interface methods like `openStart`, `attr`, `openEnd`, `text`, `close`, etc.). + * + * This method combines rendering and flushing in a single call, automatically handling non-HTML namespaces + * (e.g., SVG, MathML) by detecting the namespace of the target DOM node. + * + * **Difference from calling render() then flush() separately:** When rendering into a non-HTML namespace + * context (e.g., SVG or MathML elements), this method automatically detects the target node's namespace + * and applies it as a fallback namespace for the rendering operation. This ensures that elements created + * without an explicit parent element (such as when rendering into a DocumentFragment initially) inherit + * the correct namespace. + * + * This function must not be called within control renderers. + * + * Usage: + * ```javascript + * + * const oRM = new RenderManager().getInterface(); + * + * // assume that oSvgContainer is already part of the DOM and we want to render a circle into it + * oRM.renderAndFlush(function(oRM) { + * oRM.openStart("circle").attr("cx", "50").attr("cy", "50").attr("r", "40"); + * oRM.openEnd(); + * oRM.close("circle"); + * }, oSvgContainer); + * + * oRM.destroy(); + * ``` + * + * + * @since 1.147 + * + * @returns Reference to `this` to allow method chaining + */ + renderAndFlush( + /** + * Rendering callback that receives a RenderManager instance with the semantic rendering API implementation + * (DOM interface methods like `openStart`, `attr`, `openEnd`, `text`, `close`, etc.) + */ + fnRender: (p1: RenderManager) => void, + /** + * Node in the DOM where the result should be flushed into + */ + oTargetDomNode: Element, + /** + * Determines whether the buffer of the target DOM node is expanded (`true`) or replaced (`false`), or the + * new entry is inserted at a specific position (value of type `int`) + */ + vInsert?: boolean | int + ): this; /** * Turns the given control into its HTML representation and appends it to the rendering buffer. * @@ -53254,6 +53303,9 @@ declare module "sap/ui/core/ws/SapPcpWebSocket" { * 'SUPPORTED_PROTOCOLS'. */ enum SUPPORTED_PROTOCOLS { + /** + * Protocol v10.pcp.sap.com + */ v10 = "v10.pcp.sap.com", } /** @@ -62981,7 +63033,7 @@ declare module "sap/ui/model/Model" { /** * HTTP status code returned by the request (if available) */ - statusCode?: string; + statusCode?: string | number; /** * The status as a text, details not specified, intended only for diagnosis output @@ -73616,11 +73668,24 @@ declare module "sap/ui/model/odata/v4/Context" { * @returns `true` if this context is kept alive */ isKeepAlive(): boolean; + /** + * Tells whether this context is outdated: + * `undefined`: The outdated state has not been determined yet `true`: The context is outdated `false`: + * The context is up to date + * + * The outdated state can also be accessed via the instance annotation "@$ui5.context.isOutdated". + * + * @experimental As of version 1.147. + * + * @returns Whether this context is outdated, or `undefined` if the outdated state has not been determined + * yet + */ + isOutdated(): boolean | undefined; /** * Tells whether this context is currently selected, but not {@link #delete deleted} on the client. Selection - * was experimental as of version 1.111.0. Since 1.122.0, the selection state can also be accessed via instance - * annotation "@$ui5.context.isSelected" at the entity. Note that the annotation does not take the deletion - * state into account. + * was experimental as of version 1.111.0. Since 1.122.0, the selection state can also be accessed via the + * instance annotation "@$ui5.context.isSelected" at the entity. Note that the annotation does not take + * the deletion state into account. * See: * #setSelected * @@ -73896,9 +73961,11 @@ declare module "sap/ui/model/odata/v4/Context" { * effects fail to load. Use it to set fields affected by side effects to read-only before {@link #requestSideEffects } * and make them editable again when the promise resolves; in the error handler, you can repeat the loading * of side effects. - * The promise is rejected if the call wants to refresh a whole list binding (via header context or an - * absolute path), but the deletion of a row context (see {@link #delete}) is pending with a different group - * ID. + * The promise is rejected if + * the call attempts to refresh an entire list binding (via header context or an absolute path) while + * the deletion of a row context (see {@link #delete}) is pending with a different group ID, this is + * the row context of a list binding with data aggregation which has `groupLevels` or `"grandTotal like + * 1.84"`, or this context does not represent a single entity */ requestSideEffects( /** @@ -75427,9 +75494,11 @@ declare module "sap/ui/model/odata/v4/ODataListBinding" { */ getGroupId(): string; /** - * Returns the header context which allows binding to `$count` or `@$ui5.context.isSelected`. + * Returns the header context which allows binding to `$count`, `@$ui5.context.isOutdated`, or `@$ui5.context.isSelected`. * See: * #getCount + * sap.ui.model.odata.v4.Context#isOutdated + * sap.ui.model.odata.v4.Context#isSelected * * @since 1.45.0 * @@ -79911,6 +79980,11 @@ declare module "sap/ui/model/Sorter" { * See `vGroup` parameter */ group?: boolean | Function; + /** + * An array of paths that are required for grouping. Supported since 1.147.0; consult the documentation + * of the specific model implementation whether it evaluates these paths. + */ + groupPaths?: string[]; /** * The binding path for this sorter */ @@ -80020,6 +80094,14 @@ declare module "sap/ui/model/Sorter" { * @returns The group function */ getGroupFunction(): Function; + /** + * Returns the group paths. + * + * @since 1.147.0 + * + * @returns The array of group paths or `undefined` if this sorter has no group paths. + */ + getGroupPaths(): string[] | undefined; /** * Returns the binding path for this sorter; see the path parameter of {@link sap.ui.model.Sorter#constructor}. * @@ -82821,6 +82903,10 @@ declare module "sap/ui/test/actions/Press" { * The `Press` action is used to simulate a press interaction with a control. Most controls are supported, * for example buttons, links, list items, tables, filters, and form controls. * + * The `Press` action can also simulate right-click (context menu) interactions by setting the `rightClick` + * property to true. This is useful for testing controls with custom context menus, such as `sap.ui.table.Table` + * and `sap.m.Table`. + * * The `Press` action targets a special DOM element representing the control. This DOM element can be customized. * * For most most controls (even custom ones), the DOM focus reference is an appropriate choice. You can @@ -82917,7 +83003,9 @@ declare module "sap/ui/test/actions/Press" { /** * Sets focus on given control and triggers a 'tap' event on it (which is internally translated into a 'press' * event). If `keyDown` or `keyUp` is set to `true`, dispatches the corresponding keyboard event instead - * of mouse events. Logs an error if control is not visible (i.e. has no dom representation) + * of mouse events. If `rightClick` property is set to `true`, triggers a `contextmenu` event instead, along + * with appropriate `mousedown` and `mouseup` events. Logs an error if control is not visible (i.e. has + * no dom representation) */ executeOn( /** @@ -82967,6 +83055,21 @@ declare module "sap/ui/test/actions/Press" { * @returns Value of property `keyUp` */ getKeyUp(): boolean; + /** + * Gets current value of property {@link #getRightClick rightClick}. + * + * If set to `true`, a right-click (context menu) event will be triggered instead of a left-click. This + * simulates the native browser right-click behavior by dispatching `mousedown` and `mouseup` with `button: + * 2`, followed by a `contextmenu` event. The `xPercentage` and `yPercentage` properties can be used to + * specify the position of the right-click event. + * + * Default value is `false`. + * + * @since 1.147 + * + * @returns Value of property `rightClick` + */ + getRightClick(): boolean; /** * Gets current value of property {@link #getShiftKey shiftKey}. * @@ -83069,6 +83172,28 @@ declare module "sap/ui/test/actions/Press" { */ bKeyUp: boolean ): this; + /** + * Sets a new value for property {@link #getRightClick rightClick}. + * + * If set to `true`, a right-click (context menu) event will be triggered instead of a left-click. This + * simulates the native browser right-click behavior by dispatching `mousedown` and `mouseup` with `button: + * 2`, followed by a `contextmenu` event. The `xPercentage` and `yPercentage` properties can be used to + * specify the position of the right-click event. + * + * When called with a value of `null` or `undefined`, the default value of the property will be restored. + * + * Default value is `false`. + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + setRightClick( + /** + * New value for property `rightClick` + */ + bRightClick?: boolean + ): this; /** * Sets a new value for property {@link #getShiftKey shiftKey}. * @@ -83179,6 +83304,16 @@ declare module "sap/ui/test/actions/Press" { * @since 1.146 */ keyUp?: boolean | PropertyBindingInfo | `{${string}}`; + + /** + * If set to `true`, a right-click (context menu) event will be triggered instead of a left-click. This + * simulates the native browser right-click behavior by dispatching `mousedown` and `mouseup` with `button: + * 2`, followed by a `contextmenu` event. The `xPercentage` and `yPercentage` properties can be used to + * specify the position of the right-click event. + * + * @since 1.147 + */ + rightClick?: boolean | PropertyBindingInfo | `{${string}}`; } } @@ -86655,6 +86790,27 @@ declare module "sap/ui/test/Opa5" { * Use when there are multiple views with the same viewName. */ viewId?: string; + /** + * The namespace to be prepended to the view name defined in the `viewName` parameter. When set, all `waitFor` + * calls inside the page object will resolve the view by `viewNamespace + "." + viewName`. + * + * Example: + * ```javascript + * + * Opa5.createPageObjects({ + * onMyPage: { + * viewName: "myView", + * viewNamespace: "my.app.namespace", + * assertions: { ... } + * } + * }); + * ``` + * + * + * Note: If all page objects share the same `viewNamespace`, consider setting it globally via {@link sap.ui.test.Opa5.extendConfig } + * to avoid repetition. + */ + viewNamespace?: string; /** * Base class for the page object's actions and assertions */ diff --git a/types/openui5/sap.ui.dt.d.ts b/types/openui5/sap.ui.dt.d.ts index 902e7c3e367ba5..b2d45aaddf4078 100644 --- a/types/openui5/sap.ui.dt.d.ts +++ b/types/openui5/sap.ui.dt.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/dt/library" { export namespace designtime { diff --git a/types/openui5/sap.ui.fl.d.ts b/types/openui5/sap.ui.fl.d.ts index e9ff18a5d02f54..08dcb828d1a766 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/fl/library" {} @@ -1663,6 +1663,8 @@ declare namespace sap { "sap/ui/fl/initial/_internal/connectors/Utils": undefined; + "sap/ui/fl/initial/_internal/FlexConfiguration": undefined; + "sap/ui/fl/initial/_internal/preprocessors/ComponentLifecycleHooks": undefined; "sap/ui/fl/initial/_internal/preprocessors/ControllerExtension": undefined; @@ -1771,6 +1773,8 @@ declare namespace sap { "sap/ui/fl/write/api/ControlPersonalizationWriteAPI": undefined; + "sap/ui/fl/write/api/ControlVariantWriteAPI": undefined; + "sap/ui/fl/write/api/FeaturesAPI": undefined; "sap/ui/fl/write/api/FieldExtensibility": undefined; diff --git a/types/openui5/sap.ui.integration.d.ts b/types/openui5/sap.ui.integration.d.ts index 8c2a5d7db2777e..aa837b6ab34024 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/integration/library" { import { URI } from "sap/ui/core/library"; @@ -1449,11 +1449,15 @@ declare module "sap/ui/integration/widgets/Card" { /** * Gets current value of property {@link #getBaseUrl baseUrl}. * - * Defines the base URL of the card manifest. It should be used when manifest property is an object instead - * of a URL. If both manifest URL and base URL are defined - the base URL will be used for loading dependencies. - * If both manifest URL and base URL are not defined - relative resources might not be loaded correctly. + * Defines the base URL of the card manifest. It must be provided when the manifest is an object and not + * a URL. The base URL is used to load relatively referenced resources. + * + * If the base URL is not defined and the manifest URL is defined, the manifest URL is used as the base + * URL. + * - If both the manifest URL and the base URL are defined, the base URL is used. + * - If neither the manifest URL nor the base URL is defined, relative resources will not load correctly. + * * - * @experimental As of version 1.70. * * @returns Value of property `baseUrl` */ @@ -1878,13 +1882,17 @@ declare module "sap/ui/integration/widgets/Card" { /** * Sets a new value for property {@link #getBaseUrl baseUrl}. * - * Defines the base URL of the card manifest. It should be used when manifest property is an object instead - * of a URL. If both manifest URL and base URL are defined - the base URL will be used for loading dependencies. - * If both manifest URL and base URL are not defined - relative resources might not be loaded correctly. + * Defines the base URL of the card manifest. It must be provided when the manifest is an object and not + * a URL. The base URL is used to load relatively referenced resources. + * + * If the base URL is not defined and the manifest URL is defined, the manifest URL is used as the base + * URL. + * - If both the manifest URL and the base URL are defined, the base URL is used. + * - If neither the manifest URL nor the base URL is defined, relative resources will not load correctly. + * * * When called with a value of `null` or `undefined`, the default value of the property will be restored. * - * @experimental As of version 1.70. * * @returns Reference to `this` in order to allow method chaining */ @@ -2248,18 +2256,6 @@ declare module "sap/ui/integration/widgets/Card" { * @experimental As of version 1.85. */ getActionDefinitions(): ActionDefinition[]; - /** - * Gets current value of property {@link #getBaseUrl baseUrl}. - * - * Defines the base URL of the card manifest. It should be used when manifest property is an object instead - * of a URL. If both manifest URL and base URL are defined - the base URL will be used for loading dependencies. - * If both manifest URL and base URL are not defined - relative resources might not be loaded correctly. - * - * @experimental As of version 1.70. - * - * @returns Value of property `baseUrl` - */ - getBaseUrl(): URI; /** * Get information about the blocking message in the card. * @@ -2632,11 +2628,13 @@ declare module "sap/ui/integration/widgets/Card" { | `{${string}}`; /** - * Defines the base URL of the card manifest. It should be used when manifest property is an object instead - * of a URL. If both manifest URL and base URL are defined - the base URL will be used for loading dependencies. - * If both manifest URL and base URL are not defined - relative resources might not be loaded correctly. + * Defines the base URL of the card manifest. It must be provided when the manifest is an object and not + * a URL. The base URL is used to load relatively referenced resources. * - * @experimental As of version 1.70. + * If the base URL is not defined and the manifest URL is defined, the manifest URL is used as the base + * URL. + * - If both the manifest URL and the base URL are defined, the base URL is used. + * - If neither the manifest URL nor the base URL is defined, relative resources will not load correctly. */ baseUrl?: URI | PropertyBindingInfo | `{${string}}`; diff --git a/types/openui5/sap.ui.layout.d.ts b/types/openui5/sap.ui.layout.d.ts index ec3788d9688059..bd61e6827da2b8 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.146.0 +// For Library Version: 1.147.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 627bdee9894b67..6c4d7318fe71a6 100644 --- a/types/openui5/sap.ui.mdc.d.ts +++ b/types/openui5/sap.ui.mdc.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/mdc/AggregationBaseDelegate" { import BaseDelegate from "sap/ui/mdc/BaseDelegate"; @@ -3767,6 +3767,17 @@ declare module "sap/ui/mdc/library" { import ParseException from "sap/ui/model/ParseException"; + export type DelegateConfig = { + /** + * Delegate module path + */ + name: string; + /** + * defines application-specific information that can be used in the given delegate + */ + payload?: any; + }; + /** * Acts a subset of the `FilterBarDelegate` that can be used in {@link module:sap/ui/mdc/TableDelegate.getFilterDelegate TableDelegate.getFilterDelegate } * or {@link module:sap/ui/mdc/ChartDelegate.getFilterDelegate Chart.getFilterDelegate} to enable inbuilt @@ -4819,8 +4830,10 @@ declare module "sap/ui/mdc/Chart" { * Gets current value of property {@link #getDelegate delegate}. * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/ChartDelegate ChartDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -5152,8 +5165,10 @@ declare module "sap/ui/mdc/Chart" { * Sets a new value for property {@link #getDelegate delegate}. * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/ChartDelegate ChartDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -5518,8 +5533,10 @@ declare module "sap/ui/mdc/Chart" { /** * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/ChartDelegate ChartDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -7769,7 +7786,8 @@ declare module "sap/ui/mdc/Control" { export interface $ControlSettings extends $ControlSettings1 { /** * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * * - `name` defines the path to the `Delegate` module * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: @@ -7991,7 +8009,8 @@ declare module "sap/ui/mdc/Element" { export interface $ElementSettings extends $ElementSettings1 { /** * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * * - `name` defines the path to the `Delegate` module * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: @@ -13483,13 +13502,17 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { import InvisibleText from "sap/ui/core/InvisibleText"; + import { MessageType, ID } from "sap/ui/core/library"; + + import Message from "sap/ui/core/message/Message"; + import FilterBarValidationStatus from "sap/ui/mdc/enums/FilterBarValidationStatus"; import FilterField from "sap/ui/mdc/FilterField"; import ElementMetadata from "sap/ui/core/ElementMetadata"; - import { ID } from "sap/ui/core/library"; + import Message1 from "sap/ui/core/Message"; import VariantManagement from "sap/ui/fl/variants/VariantManagement"; @@ -13588,6 +13611,28 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { */ oInvisibleText: InvisibleText ): void; + /** + * Adds a message to the {@link sap.ui.model.message.MessageModel MessageModel} for a `propertyKey`. The + * message is displayed on the corresponding {@link sap.ui.mdc.FilterField FilterField}. + * + * @since 1.147 + * + * @returns The created message object + */ + addMessage( + /** + * The `propertyKey` of the {@link sap.ui.mdc.FilterField FilterField} + */ + sPropertyKey: string, + /** + * The message text + */ + sMessage: string, + /** + * The message type + */ + sMessageType: MessageType | keyof typeof MessageType + ): Message; /** * Attaches event handler `fnFunction` to the {@link #event:filtersChanged filtersChanged} event of this * `sap.ui.mdc.filterbar.FilterBarBase`. @@ -13834,8 +13879,10 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { * Gets current value of property {@link #getDelegate delegate}. * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/FilterBarDelegate FilterBarDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -13893,6 +13940,19 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { * @returns Value of property `liveMode` */ getLiveMode(): boolean; + /** + * Returns all messages associated with the given `propertyKey` from the {@link sap.ui.model.message.MessageModel MessageModel}. + * + * @since 1.147 + * + * @returns Array of messages for the given `propertyKey` + */ + getMessages( + /** + * The `propertyKey` of the {@link sap.ui.mdc.FilterField FilterField} + */ + sPropertyKey: string + ): Message[]; /** * Gets the value of the basic search condition. * @@ -13970,6 +14030,30 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { * @returns Resolves after the initial filters have been applied and the metadata has been obtained */ initializedWithMetadata(): Promise; + /** + * Removes a given message from the {@link sap.ui.model.message.MessageModel MessageModel}. The message + * is removed from the corresponding {@link sap.ui.mdc.FilterField FilterField}. + * + * @since 1.147 + */ + removeMessage( + /** + * The message to remove + */ + oMessage: Message1 + ): void; + /** + * Removes all messages for the given `propertyKey` from the {@link sap.ui.model.message.MessageModel MessageModel}. + * Clears the messages from the corresponding {@link sap.ui.mdc.FilterField FilterField}. + * + * @since 1.147 + */ + removeMessages( + /** + * The `propertyKey` of the {@link sap.ui.mdc.FilterField FilterField} + */ + sPropertyKey: string + ): void; /** * Sets the aggregated {@link #getBasicSearchField basicSearchField}. * @@ -13986,8 +14070,10 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { * Sets a new value for property {@link #getDelegate delegate}. * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/FilterBarDelegate FilterBarDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -14141,8 +14227,10 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { export interface $FilterBarBaseSettings extends $ControlSettings { /** * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. - * The object has the following properties: - * - `name` defines the path to the `Delegate` module + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * + * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/FilterBarDelegate FilterBarDelegate}. + * * - `payload` (optional) defines application-specific information that can be used in the given delegate * Sample delegate object: * ```javascript @@ -14198,8 +14286,8 @@ declare module "sap/ui/mdc/filterbar/FilterBarBase" { * aggregation) should be specified here, rather than in the `FilterField` configuration. * **Note**: This property must not be bound. * **Node**: Please check {@link sap.ui.mdc.filterbar.PropertyInfo} for more information about the supported - * inner elements. **Note**: Existing properties (set via `sap.ui.mdc.filterbar.FilterBarBase#setPropertyInfo`) - * must not be removed and their attributes must not be changed during the {@link module:sap/ui/mdc/FilterBarDelegate.fetchProperties fetchProperties } + * inner elements. **Note**: Existing properties (set via {@link #setPropertyInfo setPropertyInfo}) must + * not be removed and their attributes must not be changed during the {@link module:sap/ui/mdc/FilterBarDelegate.fetchProperties fetchProperties } * callback. Otherwise validation errors might occur whenever personalization-related control features (such * as the opening of any personalization dialog) are activated. * @@ -18088,7 +18176,8 @@ declare module "sap/ui/mdc/Table" { * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. * - * The object has the following properties: + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/TableDelegate TableDelegate}. * * - `payload` (optional) defines application-specific information that can be used in the given delegate @@ -18649,7 +18738,8 @@ declare module "sap/ui/mdc/Table" { * * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. * - * The object has the following properties: + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/TableDelegate TableDelegate}. * * - `payload` (optional) defines application-specific information that can be used in the given delegate @@ -19325,7 +19415,8 @@ declare module "sap/ui/mdc/Table" { /** * Object related to the `Delegate` module that provides the required APIs to execute model-specific logic. * - * The object has the following properties: + * The object has the following properties (see {@link sap.ui.mdc.DelegateConfig DelegateConfig}): + * * - `name` defines the path to the `Delegate` module. The used delegate module must inherit from {@link module:sap/ui/mdc/TableDelegate TableDelegate}. * * - `payload` (optional) defines application-specific information that can be used in the given delegate diff --git a/types/openui5/sap.ui.rta.d.ts b/types/openui5/sap.ui.rta.d.ts index 2d3bd372f98294..d741281c70992f 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.146.0 +// For Library Version: 1.147.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 4844ef6917de22..646ef0ee7b1fab 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.146.0 +// For Library Version: 1.147.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 6f9ca6989ff01e..46a2f4e1d6cdc4 100644 --- a/types/openui5/sap.ui.support.d.ts +++ b/types/openui5/sap.ui.support.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/support/library" { /** @@ -166,7 +166,7 @@ declare module "sap/ui/support/library" { /** * Preset to find usages of deprecated controls, properties, aggregations and others. * - * @experimental As of version 1.120. + * @since 1.120 */ Deprecations = "undefined", } diff --git a/types/openui5/sap.ui.table.d.ts b/types/openui5/sap.ui.table.d.ts index fee88b77985b67..13315fa9e8d472 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/table/library" { import TreeAutoExpandMode1 from "sap/ui/model/TreeAutoExpandMode"; diff --git a/types/openui5/sap.ui.testrecorder.d.ts b/types/openui5/sap.ui.testrecorder.d.ts index fecd10e0479d9a..3f9b0f957272bd 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.146.0 +// For Library Version: 1.147.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 ca3bf0a2ba08dd..601ae78b32ca4b 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/unified/library" { /** @@ -33,7 +33,6 @@ declare module "sap/ui/unified/library" { * This enum is part of the 'sap/ui/unified/library' module export and must be accessed by the property * 'CalendarAppointmentRoundWidth'. * - * @since 1.81.0 * @experimental As of version 1.81.0. */ export enum CalendarAppointmentRoundWidth { @@ -232,8 +231,9 @@ declare module "sap/ui/unified/library" { * This enum is part of the 'sap/ui/unified/library' module export and must be accessed by the property * 'ContentSwitcherAnimation'. * - * @since 1.16.0 - * @experimental As of version 1.16.0. API is not yet finished and might change completely + * @deprecated As of version 1.147.0. the concept has been discarded. API is not yet finished and might + * change completely + * @experimental As of version 1.16.0. */ export enum ContentSwitcherAnimation { /** @@ -20245,7 +20245,6 @@ declare module "sap/ui/unified/NonWorkingPeriod" { /** * NonWorkingPeriod * - * @since 1.27.0 * @experimental As of version 1.127.0. */ export default class NonWorkingPeriod extends UI5Element { @@ -20404,7 +20403,6 @@ declare module "sap/ui/unified/RecurringNonWorkingPeriod" { * * Applications can inherit from this element to add own fields. * - * @since 1.127.0 * @experimental As of version 1.127.0. */ export default class RecurringNonWorkingPeriod extends NonWorkingPeriod { @@ -23266,8 +23264,7 @@ declare module "sap/ui/unified/TimeRange" { /** * Time range for use in `NonWorkingPeriod` * - * @since 1.127.0 - * @experimental As of version 1.127.0. + * @experimental As of version 1.127. */ export default class TimeRange extends UI5Element { /** @@ -23433,7 +23430,7 @@ declare module "sap/ui/unified/TimeRange" { /** * Describes the settings that can be provided to the TimeRange constructor. * - * @experimental As of version 1.127.0. + * @experimental As of version 1.127. */ export interface $TimeRangeSettings extends $ElementSettings { /** diff --git a/types/openui5/sap.ui.ux3.d.ts b/types/openui5/sap.ui.ux3.d.ts index 6addd18dd3e5b4..46598b69dcba37 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.146.0 +// For Library Version: 1.147.0 declare module "sap/ui/ux3/library" { /** diff --git a/types/openui5/sap.uxap.d.ts b/types/openui5/sap.uxap.d.ts index bdbc12853a7af9..83e187b5d271a6 100644 --- a/types/openui5/sap.uxap.d.ts +++ b/types/openui5/sap.uxap.d.ts @@ -1,4 +1,4 @@ -// For Library Version: 1.146.0 +// For Library Version: 1.147.0 declare module "sap/uxap/library" { /** @@ -136,6 +136,31 @@ declare module "sap/uxap/library" { */ Square = "Square", } + /** + * Defines the media breakpoints for ObjectPageLayout. + * + * This enum is part of the 'sap/uxap/library' module export and must be accessed by the property 'ObjectPageLayoutMediaRange'. + * + * @since 1.147 + */ + export enum ObjectPageLayoutMediaRange { + /** + * Desktop breakpoint (1025px to 1439px). + */ + Desktop = "Desktop", + /** + * Extra large desktop breakpoint (1440px and above). + */ + DesktopExtraLarge = "DesktopExtraLarge", + /** + * Phone breakpoint (up to 600px). + */ + Phone = "Phone", + /** + * Tablet breakpoint (601px to 1024px). + */ + Tablet = "Tablet", + } /** * Used by the `ObjectPagSubSection` control to define which layout to apply. * @@ -4504,7 +4529,11 @@ declare module "sap/uxap/ObjectPageLayout" { import { BackgroundDesign, IBar } from "sap/m/library"; - import { IHeaderTitle, ObjectPageSubSectionLayout } from "sap/uxap/library"; + import { + IHeaderTitle, + ObjectPageSubSectionLayout, + ObjectPageLayoutMediaRange, + } from "sap/uxap/library"; import { CSSSize, TitleLevel, ID } from "sap/ui/core/library"; @@ -4720,6 +4749,59 @@ declare module "sap/uxap/ObjectPageLayout" { */ oListener?: object ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of + * this `sap.uxap.ObjectPageLayout`. + * + * 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.uxap.ObjectPageLayout` itself. + * + * Fired when the media range of the control changes, allowing the application to adjust the UI accordingly + * (e.g., change Avatar sizes responsively). + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + attachBreakpointChange( + /** + * 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: ObjectPageLayout$BreakpointChangeEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself + */ + oListener?: object + ): this; + /** + * Attaches event handler `fnFunction` to the {@link #event:breakpointChange breakpointChange} event of + * this `sap.uxap.ObjectPageLayout`. + * + * 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.uxap.ObjectPageLayout` itself. + * + * Fired when the media range of the control changes, allowing the application to adjust the UI accordingly + * (e.g., change Avatar sizes responsively). + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + attachBreakpointChange( + /** + * The function to be called when the event occurs + */ + fnFunction: (p1: ObjectPageLayout$BreakpointChangeEvent) => void, + /** + * Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself + */ + oListener?: object + ): this; /** * Attaches event handler `fnFunction` to the {@link #event:editHeaderButtonPress editHeaderButtonPress } * event of this `sap.uxap.ObjectPageLayout`. @@ -5083,6 +5165,26 @@ declare module "sap/uxap/ObjectPageLayout" { */ oListener?: object ): this; + /** + * Detaches event handler `fnFunction` from the {@link #event:breakpointChange breakpointChange} event of + * this `sap.uxap.ObjectPageLayout`. + * + * The passed function and listener object must match the ones used for event registration. + * + * @since 1.147 + * + * @returns Reference to `this` in order to allow method chaining + */ + detachBreakpointChange( + /** + * The function to be called, when the event occurs + */ + fnFunction: (p1: ObjectPageLayout$BreakpointChangeEvent) => void, + /** + * Context object on which the given function had to be called + */ + oListener?: object + ): this; /** * Detaches event handler `fnFunction` from the {@link #event:editHeaderButtonPress editHeaderButtonPress } * event of this `sap.uxap.ObjectPageLayout`. @@ -5221,6 +5323,20 @@ declare module "sap/uxap/ObjectPageLayout" { */ mParameters?: ObjectPageLayout$BeforeNavigateEventParameters ): boolean; + /** + * Fires event {@link #event:breakpointChange breakpointChange} to attached listeners. + * + * @since 1.147 + * @ui5-protected Do not call from applications (only from related classes in the framework) + * + * @returns Reference to `this` in order to allow method chaining + */ + fireBreakpointChange( + /** + * Parameters to pass along with the event + */ + mParameters?: ObjectPageLayout$BreakpointChangeEventParameters + ): this; /** * Fires event {@link #event:editHeaderButtonPress editHeaderButtonPress} to attached listeners. * @@ -6665,6 +6781,14 @@ declare module "sap/uxap/ObjectPageLayout" { subSectionVisibilityChange?: ( oEvent: ObjectPageLayout$SubSectionVisibilityChangeEvent ) => void; + + /** + * Fired when the media range of the control changes, allowing the application to adjust the UI accordingly + * (e.g., change Avatar sizes responsively). + * + * @since 1.147 + */ + breakpointChange?: (oEvent: ObjectPageLayout$BreakpointChangeEvent) => void; } /** @@ -6690,6 +6814,31 @@ declare module "sap/uxap/ObjectPageLayout" { ObjectPageLayout >; + /** + * Parameters of the ObjectPageLayout#breakpointChange event. + */ + export interface ObjectPageLayout$BreakpointChangeEventParameters { + /** + * The name of the current media range ("Phone", "Tablet", "Desktop", or "DesktopExtraLarge"). + */ + currentRange?: + | ObjectPageLayoutMediaRange + | keyof typeof ObjectPageLayoutMediaRange; + + /** + * The current width of the control in pixels. + */ + currentWidth?: int; + } + + /** + * Event object of the ObjectPageLayout#breakpointChange event. + */ + export type ObjectPageLayout$BreakpointChangeEvent = Event< + ObjectPageLayout$BreakpointChangeEventParameters, + ObjectPageLayout + >; + /** * Parameters of the ObjectPageLayout#editHeaderButtonPress event. */ diff --git a/types/tabulator-tables/index.d.ts b/types/tabulator-tables/index.d.ts index b89c82f14f1267..1d584148d3e266 100755 --- a/types/tabulator-tables/index.d.ts +++ b/types/tabulator-tables/index.d.ts @@ -843,7 +843,7 @@ export interface OptionsGeneral { renderVerticalBuffer?: boolean | number | undefined; /** placeholder element to display on empty table. */ - placeholder?: string | HTMLElement | ((this: Tabulator | TabulatorFull) => string) | undefined; + placeholder?: string | HTMLElement | ((this: Tabulator | TabulatorFull) => string | HTMLElement) | undefined; placeholderHeaderFilter?: string | HTMLElement | ((this: Tabulator | TabulatorFull) => string) | undefined; /** Footer element to display for the table. */ diff --git a/types/tabulator-tables/tabulator-tables-tests.ts b/types/tabulator-tables/tabulator-tables-tests.ts index b50c2d1eb64e59..ea5b42dd8c1725 100644 --- a/types/tabulator-tables/tabulator-tables-tests.ts +++ b/types/tabulator-tables/tabulator-tables-tests.ts @@ -1508,7 +1508,7 @@ table = new Tabulator("#test", { ], dataTreeChildColumnCalcs: true, placeholder() { - return this.getHeaderFilters().length ? "No Matching Data" : "No Data"; + return this.getHeaderFilters().length ? "No Matching Data" : new HTMLDivElement(); }, placeholderHeaderFilter: "No Matching Data", persistence: {