Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/openui5/openui5-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,5 @@ const p13nEngine = new Engine();
// sap.ui.webc.* libraries removed - tests are not required as the type definitions are generated and the generator is sufficiently tested

// version 1.148.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested

// version 1.149.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested
2 changes: 1 addition & 1 deletion types/openui5/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/openui5",
"version": "1.148.9999",
"version": "1.149.9999",
"nonNpm": true,
"nonNpmDescription": "openui5",
"projects": [
Expand Down
2 changes: 1 addition & 1 deletion types/openui5/sap.f.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.148.0
// For Library Version: 1.149.0

declare module "sap/tnt/library" {
export interface IToolHeader {
Expand Down
62 changes: 58 additions & 4 deletions types/openui5/sap.m.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.148.0
// For Library Version: 1.149.0

declare module "sap/f/library" {
export interface IShellBar {
Expand Down Expand Up @@ -5160,7 +5160,11 @@ declare module "sap/m/ActionSheet" {
*
* When an action is triggered, the action sheet closes and you can display a confirmation as a {@link sap.m.MessageToast message toast}.
*
* **Note**: As of version 1.149, the control is deprecated. Use {@link sap.m.Menu} / {@link sap.m.MenuItem }
* instead.
*
* @since 1.9.1
* @deprecated As of version 1.149. use sap.m.Menu / sap.m.MenuItem instead.
*/
export default class ActionSheet extends Control {
/**
Expand Down Expand Up @@ -5957,6 +5961,8 @@ declare module "sap/m/ActionSheet" {
}
/**
* Describes the settings that can be provided to the ActionSheet constructor.
*
* @deprecated As of version 1.149. use sap.m.Menu / sap.m.MenuItem instead.
*/
export interface $ActionSheetSettings extends $ControlSettings {
/**
Expand Down Expand Up @@ -57524,6 +57530,8 @@ declare module "sap/m/MenuItem" {

import { IMenuItem, IMenuItemBehavior } from "sap/m/library";

import { ID, TextDirection } from "sap/ui/core/library";

import Event from "sap/ui/base/Event";

import {
Expand All @@ -57533,8 +57541,6 @@ declare module "sap/m/MenuItem" {

import ElementMetadata from "sap/ui/core/ElementMetadata";

import { TextDirection } from "sap/ui/core/library";

/**
* The `MenuItem` control is used for creating items for the `sap.m.Menu`. It is derived from a core `sap.ui.core.Control`.
*
Expand Down Expand Up @@ -57608,6 +57614,19 @@ declare module "sap/m/MenuItem" {
* @returns Metadata object describing this class
*/
static getMetadata(): ElementMetadata;
/**
* Adds some ariaDescribedBy into the association {@link #getAriaDescribedBy ariaDescribedBy}.
*
* @since 1.149
*
* @returns Reference to `this` in order to allow method chaining
*/
addAriaDescribedBy(
/**
* The ariaDescribedBy to add; if empty, nothing is inserted
*/
vAriaDescribedBy: ID | Control
): this;
/**
* Adds some endContent to the aggregation {@link #getEndContent endContent}.
*
Expand Down Expand Up @@ -57741,6 +57760,12 @@ declare module "sap/m/MenuItem" {
*/
mParameters?: object
): this;
/**
* Returns array of IDs of the elements which are the current targets of the association {@link #getAriaDescribedBy ariaDescribedBy}.
*
* @since 1.149
*/
getAriaDescribedBy(): ID[];
/**
* Gets current value of property {@link #getEnabled enabled}.
*
Expand Down Expand Up @@ -57949,6 +57974,14 @@ declare module "sap/m/MenuItem" {
* @returns Whether the item is enabled for click/press
*/
isInteractive(): boolean;
/**
* Removes all the controls in the association named {@link #getAriaDescribedBy ariaDescribedBy}.
*
* @since 1.149
*
* @returns An array of the removed elements (might be empty)
*/
removeAllAriaDescribedBy(): ID[];
/**
* Removes all the controls from the aggregation {@link #getEndContent endContent}.
*
Expand All @@ -57968,6 +58001,19 @@ declare module "sap/m/MenuItem" {
* @returns An array of the removed elements (might be empty)
*/
removeAllItems(): IMenuItem[];
/**
* Removes an ariaDescribedBy from the association named {@link #getAriaDescribedBy ariaDescribedBy}.
*
* @since 1.149
*
* @returns The removed ariaDescribedBy or `null`
*/
removeAriaDescribedBy(
/**
* The ariaDescribedBy to be removed or its index or ID
*/
vAriaDescribedBy: int | ID | Control
): ID | null;
/**
* Removes a endContent from the aggregation {@link #getEndContent endContent}.
*
Expand Down Expand Up @@ -58220,6 +58266,13 @@ declare module "sap/m/MenuItem" {
*/
endContent?: Control[] | Control | AggregationBindingInfo | `{${string}}`;

/**
* Association to controls / IDs which describe this control (see WAI-ARIA attribute aria-describedby).
*
* @since 1.149
*/
ariaDescribedBy?: Array<Control | string>;

/**
* Fired after the item has been pressed.
*/
Expand Down Expand Up @@ -65398,7 +65451,8 @@ declare module "sap/m/MultiInput" {
oEvent: jQuery.Event
): void;
/**
* When press ESC, deselect all tokens and all texts
* When press ESC, deselect all texts and close the tokens popup if open. Token deselection is handled by
* the Tokenizer itself.
*/
onsapescape(
/**
Expand Down
86 changes: 85 additions & 1 deletion types/openui5/sap.tnt.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.148.0
// For Library Version: 1.149.0

declare module "sap/tnt/library" {
/**
Expand Down Expand Up @@ -1466,6 +1466,8 @@ declare module "sap/tnt/NavigationListItem" {

import ElementMetadata from "sap/ui/core/ElementMetadata";

import ObjectStatus from "sap/m/ObjectStatus";

import {
PropertyBindingInfo,
AggregationBindingInfo,
Expand Down Expand Up @@ -1610,6 +1612,14 @@ declare module "sap/tnt/NavigationListItem" {
* @returns Reference to `this` in order to allow method chaining
*/
destroyItems(): this;
/**
* Destroys the tag in the aggregation {@link #getTag tag}.
*
* @since 1.149
*
* @returns Reference to `this` in order to allow method chaining
*/
destroyTag(): this;
/**
* Detaches event handler `fnFunction` from the {@link #event:select select} event of this `sap.tnt.NavigationListItem`.
*
Expand Down Expand Up @@ -1717,6 +1727,37 @@ declare module "sap/tnt/NavigationListItem" {
* @returns Value of property `selectable`
*/
getSelectable(): boolean;
/**
* Gets content of aggregation {@link #getTag tag}.
*
* A tag that uses Indication states to visually mark a navigation item.
*
* Use tags to display status information, counters, or metadata that helps users quickly identify the state
* or importance of a navigation item.
*
* Tags can be added to:
* - Single-click items without children
* - Two-click items with children and expander arrow
* - Child items nested under a parent item
*
* **Note:** Tags are visible when the `NavigationList` is in expanded mode, and hidden when collapsed,
* but they are visible in the overflow of the collapsed mode.
*
* Usage: Common use cases include:
* - Status indicators: "Beta", "New", "Deprecated"
* - Counters: "5 Pending", "12 Items"
* - Versions: "v2.0"
* - Alerts: "Low Stock", "Critical"
*
* **Important:** Always set the `inverted` property to `true` for consistent styling. Use Indication states
* (`Indication15` – `Indication20`) for consistent theming.
*
* **Important:** The `ObjectStatus` must never be interactive (i.e., `active` must not be set to `true`),
* as this would lead to nesting of interactive elements, which is not allowed.
*
* @since 1.149
*/
getTag(): ObjectStatus;
/**
* Gets current value of property {@link #getTarget target}.
*
Expand Down Expand Up @@ -1903,6 +1944,19 @@ declare module "sap/tnt/NavigationListItem" {
*/
bSelectable?: boolean
): this;
/**
* Sets the aggregated {@link #getTag tag}.
*
* @since 1.149
*
* @returns Reference to `this` in order to allow method chaining
*/
setTag(
/**
* The tag to set
*/
oTag: ObjectStatus
): this;
/**
* Sets a new value for property {@link #getTarget target}.
*
Expand Down Expand Up @@ -2032,6 +2086,36 @@ declare module "sap/tnt/NavigationListItem" {
| AggregationBindingInfo
| `{${string}}`;

/**
* A tag that uses Indication states to visually mark a navigation item.
*
* Use tags to display status information, counters, or metadata that helps users quickly identify the state
* or importance of a navigation item.
*
* Tags can be added to:
* - Single-click items without children
* - Two-click items with children and expander arrow
* - Child items nested under a parent item
*
* **Note:** Tags are visible when the `NavigationList` is in expanded mode, and hidden when collapsed,
* but they are visible in the overflow of the collapsed mode.
*
* Usage: Common use cases include:
* - Status indicators: "Beta", "New", "Deprecated"
* - Counters: "5 Pending", "12 Items"
* - Versions: "v2.0"
* - Alerts: "Low Stock", "Critical"
*
* **Important:** Always set the `inverted` property to `true` for consistent styling. Use Indication states
* (`Indication15` – `Indication20`) for consistent theming.
*
* **Important:** The `ObjectStatus` must never be interactive (i.e., `active` must not be set to `true`),
* as this would lead to nesting of interactive elements, which is not allowed.
*
* @since 1.149
*/
tag?: ObjectStatus;

/**
* Fired when this item is selected.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/openui5/sap.ui.codeeditor.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.148.0
// For Library Version: 1.149.0

declare module "sap/ui/codeeditor/library" {}

Expand Down
2 changes: 1 addition & 1 deletion types/openui5/sap.ui.commons.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// For Library Version: 1.148.0
// For Library Version: 1.149.0

declare module "sap/ui/commons/library" {
import { ColorPickerMode as ColorPickerMode1 } from "sap/ui/unified/library";
Expand Down
Loading