Skip to content

Commit 1193ca1

Browse files
authored
🤖 Merge PR DefinitelyTyped#72825 [openui5] Update the definition files for OpenUI5 1.136 by @akudev
1 parent 949e8ee commit 1193ca1

24 files changed

+925
-241
lines changed

‎types/openui5/openui5-tests.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import Link from "sap/m/Link";
3838
import BaseObject from "sap/ui/base/Object";
3939
import ObjectMarker from "sap/m/ObjectMarker";
4040
import Theming from "sap/ui/core/Theming";
41+
import ColumnAIAction from "sap/m/plugins/ColumnAIAction";
4142

4243
/*
4344
* REMARK: the type definition files are automatically generated and this generation is tested,
@@ -262,4 +263,7 @@ new ObjectMarker().setReactiveAreaMode("Inline");
262263
const gap: CSSGapShortHand = "1px 2px 3px 4px";
263264

264265
// 1.135
265-
const theming = Theming.setFavicon("favicon.ico");
266+
const theming = Theming.setFavicon("favicon.ico");
267+
268+
// 1.136
269+
const caia = new ColumnAIAction();

‎types/openui5/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/openui5",
4-
"version": "1.135.9999",
4+
"version": "1.136.9999",
55
"nonNpm": true,
66
"nonNpmDescription": "openui5",
77
"projects": [

‎types/openui5/sap.f.d.ts‎

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.135.0
1+
// For Library Version: 1.136.0
22

33
declare module "sap/tnt/library" {
44
export interface IToolHeader {
@@ -1907,6 +1907,20 @@ declare module "sap/f/cards/BaseHeader" {
19071907
*/
19081908
oBannerLine: Text
19091909
): this;
1910+
/**
1911+
* Adds some infoSection to the aggregation {@link #getInfoSection infoSection}.
1912+
*
1913+
* @since 1.136
1914+
* @experimental As of version 1.136.
1915+
*
1916+
* @returns Reference to `this` in order to allow method chaining
1917+
*/
1918+
addInfoSection(
1919+
/**
1920+
* The infoSection to add; if empty, nothing is inserted
1921+
*/
1922+
oInfoSection: Control
1923+
): this;
19101924
/**
19111925
* Attaches event handler `fnFunction` to the {@link #event:press press} event of this `sap.f.cards.BaseHeader`.
19121926
*
@@ -1963,6 +1977,15 @@ declare module "sap/f/cards/BaseHeader" {
19631977
* @returns Reference to `this` in order to allow method chaining
19641978
*/
19651979
destroyBannerLines(): this;
1980+
/**
1981+
* Destroys all the infoSection in the aggregation {@link #getInfoSection infoSection}.
1982+
*
1983+
* @since 1.136
1984+
* @experimental As of version 1.136.
1985+
*
1986+
* @returns Reference to `this` in order to allow method chaining
1987+
*/
1988+
destroyInfoSection(): this;
19661989
/**
19671990
* Destroys the toolbar in the aggregation {@link #getToolbar toolbar}.
19681991
*
@@ -2039,6 +2062,15 @@ declare module "sap/f/cards/BaseHeader" {
20392062
* @returns Value of property `href`
20402063
*/
20412064
getHref(): string;
2065+
/**
2066+
* Gets content of aggregation {@link #getInfoSection infoSection}.
2067+
*
2068+
* Info sections to be displayed in the header.
2069+
*
2070+
* @since 1.136
2071+
* @experimental As of version 1.136.
2072+
*/
2073+
getInfoSection(): Control[];
20422074
/**
20432075
* Gets current value of property {@link #getStatusVisible statusVisible}.
20442076
*
@@ -2098,6 +2130,21 @@ declare module "sap/f/cards/BaseHeader" {
20982130
*/
20992131
oBannerLine: Text
21002132
): int;
2133+
/**
2134+
* Checks for the provided `sap.ui.core.Control` in the aggregation {@link #getInfoSection infoSection}.
2135+
* and returns its index if found or -1 otherwise.
2136+
*
2137+
* @since 1.136
2138+
* @experimental As of version 1.136.
2139+
*
2140+
* @returns The index of the provided control in the aggregation if found, or -1 otherwise
2141+
*/
2142+
indexOfInfoSection(
2143+
/**
2144+
* The infoSection whose index is looked for
2145+
*/
2146+
oInfoSection: Control
2147+
): int;
21012148
/**
21022149
* Inserts a bannerLine into the aggregation {@link #getBannerLines bannerLines}.
21032150
*
@@ -2118,6 +2165,26 @@ declare module "sap/f/cards/BaseHeader" {
21182165
*/
21192166
iIndex: int
21202167
): this;
2168+
/**
2169+
* Inserts a infoSection into the aggregation {@link #getInfoSection infoSection}.
2170+
*
2171+
* @since 1.136
2172+
* @experimental As of version 1.136.
2173+
*
2174+
* @returns Reference to `this` in order to allow method chaining
2175+
*/
2176+
insertInfoSection(
2177+
/**
2178+
* The infoSection to insert; if empty, nothing is inserted
2179+
*/
2180+
oInfoSection: Control,
2181+
/**
2182+
* The `0`-based index the infoSection should be inserted at; for a negative value of `iIndex`, the infoSection
2183+
* is inserted at position 0; for a value greater than the current size of the aggregation, the infoSection
2184+
* is inserted at the last position
2185+
*/
2186+
iIndex: int
2187+
): this;
21212188
/**
21222189
* Removes all the controls from the aggregation {@link #getBannerLines bannerLines}.
21232190
*
@@ -2129,6 +2196,17 @@ declare module "sap/f/cards/BaseHeader" {
21292196
* @returns An array of the removed elements (might be empty)
21302197
*/
21312198
removeAllBannerLines(): Text[];
2199+
/**
2200+
* Removes all the controls from the aggregation {@link #getInfoSection infoSection}.
2201+
*
2202+
* Additionally, it unregisters them from the hosting UIArea.
2203+
*
2204+
* @since 1.136
2205+
* @experimental As of version 1.136.
2206+
*
2207+
* @returns An array of the removed elements (might be empty)
2208+
*/
2209+
removeAllInfoSection(): Control[];
21322210
/**
21332211
* Removes a bannerLine from the aggregation {@link #getBannerLines bannerLines}.
21342212
*
@@ -2143,6 +2221,20 @@ declare module "sap/f/cards/BaseHeader" {
21432221
*/
21442222
vBannerLine: int | string | Text
21452223
): Text | null;
2224+
/**
2225+
* Removes a infoSection from the aggregation {@link #getInfoSection infoSection}.
2226+
*
2227+
* @since 1.136
2228+
* @experimental As of version 1.136.
2229+
*
2230+
* @returns The removed infoSection or `null`
2231+
*/
2232+
removeInfoSection(
2233+
/**
2234+
* The infoSection to remove or its index or id
2235+
*/
2236+
vInfoSection: int | string | Control
2237+
): Control | null;
21462238
/**
21472239
* Sets a new value for property {@link #getDataTimestamp dataTimestamp}.
21482240
*
@@ -2303,6 +2395,14 @@ declare module "sap/f/cards/BaseHeader" {
23032395
*/
23042396
target?: string | PropertyBindingInfo;
23052397

2398+
/**
2399+
* Info sections to be displayed in the header.
2400+
*
2401+
* @since 1.136
2402+
* @experimental As of version 1.136.
2403+
*/
2404+
infoSection?: Control[] | Control | AggregationBindingInfo | `{${string}}`;
2405+
23062406
/**
23072407
* Defines the toolbar.
23082408
*

0 commit comments

Comments
 (0)