Skip to content

Commit c13344f

Browse files
authored
πŸ€– Merge PR DefinitelyTyped#74169 [openui5] Update the definition files for OpenUI5 1.143 by @akudev
1 parent c8dc915 commit c13344f

24 files changed

+897
-262
lines changed

β€Žtypes/openui5/openui5-tests.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,5 @@ const p13nEngine = new Engine();
284284
// version 1.141.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested
285285

286286
// version 1.142.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested
287+
288+
// version 1.143.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested

β€Ž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.142.9999",
4+
"version": "1.143.9999",
55
"nonNpm": true,
66
"nonNpmDescription": "openui5",
77
"projects": [

β€Žtypes/openui5/sap.f.d.tsβ€Ž

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.142.0
1+
// For Library Version: 1.143.0
22

33
declare module "sap/tnt/library" {
44
export interface IToolHeader {
@@ -21074,6 +21074,13 @@ declare module "sap/f/ShellBar" {
2107421074
import Button from "sap/m/Button";
2107521075

2107621076
/**
21077+
* **Note:** `sap.f.ShellBar` is not UXC-compliant and will no longer be aligned with future UXC design
21078+
* updates. For UXC-compliant applications, use the ui5-shellbar web component instead. It can be integrated
21079+
* seamlessly using ui5-tooling-modules. See {@link https://ui5.sap.com/#/topic/1c80793df5bb424091954697fc0b2828 Using Web Components}.
21080+
*
21081+
*
21082+
*
21083+
*
2107721084
* A horizontal bar control holding multiple child controls used as application shell header.
2107821085
*
2107921086
* Overview:

β€Žtypes/openui5/sap.m.d.tsβ€Ž

Lines changed: 167 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.142.0
1+
// For Library Version: 1.143.0
22

33
declare module "sap/f/library" {
44
export interface IShellBar {
@@ -2224,6 +2224,8 @@ declare module "sap/m/library" {
22242224
None = "None",
22252225
/**
22262226
* Right-positioned single selection mode (only one list item can be selected).
2227+
*
2228+
* @deprecated As of version 1.143. replaced by {@link sap.m.ListMode.SingleSelectLeft}.
22272229
*/
22282230
SingleSelect = "SingleSelect",
22292231
/**
@@ -2325,6 +2327,34 @@ declare module "sap/m/library" {
23252327
*/
23262328
Split = "Split",
23272329
}
2330+
/**
2331+
* Available color set variants for the {@link sap.m.MessageStrip} control.
2332+
*
2333+
* **Notes:**
2334+
* - The Default color set uses standard semantic colors based on the message type (Information, Success,
2335+
* Warning, Error).
2336+
* - ColorSet1 and ColorSet2 provide custom color palettes with 10 predefined color schemes each.
2337+
* - When using ColorSet1 or ColorSet2, the `colorScheme` property determines which color variation is
2338+
* applied.
2339+
*
2340+
* This enum is part of the 'sap/m/library' module export and must be accessed by the property 'MessageStripColorSet'.
2341+
*
2342+
* @since 1.143.0
2343+
*/
2344+
export enum MessageStripColorSet {
2345+
/**
2346+
* Uses a custom color palette with predefined color schemes
2347+
*/
2348+
ColorSet1 = "ColorSet1",
2349+
/**
2350+
* Uses an alternative custom color palette with predefined color schemes
2351+
*/
2352+
ColorSet2 = "ColorSet2",
2353+
/**
2354+
* Uses standard semantic colors based on the type property (Information, Success, Warning, Error)
2355+
*/
2356+
Default = "Default",
2357+
}
23282358
/**
23292359
* Enumeration of the `multiSelectMode>/code> in ListBase`.
23302360
*
@@ -3148,13 +3178,13 @@ declare module "sap/m/library" {
31483178
/**
31493179
* Each item fits its content and extra space is placed after the last item.
31503180
*
3151-
* @since 1.42
3181+
* @since 1.142.0
31523182
*/
31533183
ContentFit = "ContentFit",
31543184
/**
31553185
* All items are sized equally to fill the available space.
31563186
*
3157-
* @since 1.42
3187+
* @since 1.142.0
31583188
*/
31593189
EqualSized = "EqualSized",
31603190
}
@@ -61844,6 +61874,8 @@ declare module "sap/m/MessageStrip" {
6184461874

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

61877+
import { MessageStripColorSet } from "sap/m/library";
61878+
6184761879
import { URI } from "sap/ui/core/library";
6184861880

6184961881
import ElementMetadata from "sap/ui/core/ElementMetadata";
@@ -61858,7 +61890,8 @@ declare module "sap/m/MessageStrip" {
6185861890
/**
6185961891
* MessageStrip is a control that enables the embedding of application-related messages in the application.
6186061892
* Overview: The message strip displays 4 types of messages, each with a corresponding semantic color and
61861-
* icon: Information, Success, Warning and Error.
61893+
* icon: Information, Success, Warning and Error. Additionally, it supports custom color schemes through
61894+
* ColorSet1 and ColorSet2 design types, each providing 10 predefined color variations.
6186261895
*
6186361896
* Each message can have a close button, so that it can be removed from the UI if needed.
6186461897
*
@@ -61870,10 +61903,14 @@ declare module "sap/m/MessageStrip" {
6187061903
* - <u> With version 1.85
6187161904
* - <br>
6187261905
*
61906+
* Color Schemes: When using ColorSet1 or ColorSet2 as the design type, you can specify a `colorScheme`
61907+
* from "1" to "10" to apply different color variations. This allows for better visual categorization and
61908+
* theming flexibility while maintaining accessibility standards.
61909+
*
6187361910
* Dynamically generated Message Strip: To meet the accessibility requirements when using dynamically generated
6187461911
* Message Strip you must implement it alongside `sap.ui.core.InvisibleMessage`. This will allow screen
6187561912
* readers to announce it in real time. We suggest such dynamically generated message strips to be announced
61876-
* as Information Bar, as shown in our β€œDynamic Message Strip Generator sample.”
61913+
* as Information Bar, as shown in our "Dynamic Message Strip Generator sample."
6187761914
*
6187861915
* Usage: When to use:
6187961916
* - You want to provide information or status update within the detail area of an object When not
@@ -62061,6 +62098,41 @@ declare module "sap/m/MessageStrip" {
6206162098
*/
6206262099
mParameters?: object
6206362100
): this;
62101+
/**
62102+
* Gets current value of property {@link #getColorScheme colorScheme}.
62103+
*
62104+
* Determines the color scheme when using ColorSet1 or ColorSet2 colorSet variants. Available values are
62105+
* 1 through 10, each providing a different color variation. This property is only effective when `colorSet`
62106+
* is set to "ColorSet1" or "ColorSet2".
62107+
*
62108+
* Default value is `1`.
62109+
*
62110+
* @since 1.143.0
62111+
*
62112+
* @returns Value of property `colorScheme`
62113+
*/
62114+
getColorScheme(): int;
62115+
/**
62116+
* Gets current value of property {@link #getColorSet colorSet}.
62117+
*
62118+
* Determines the color set variant of the MessageStrip. Available options:
62119+
* - **Default** - Uses standard semantic colors based on the type property (Information, Success, Warning,
62120+
* Error)
62121+
* - **ColorSet1** - Uses a custom color palette with 10 predefined color schemes
62122+
* - **ColorSet2** - Uses an alternative custom color palette with 10 predefined color schemes When
62123+
* ColorSet1 or ColorSet2 is selected, the `colorScheme` property determines which of the 10 color variations
62124+
* is applied.
62125+
*
62126+
* **Note:** When using ColorSet1 or ColorSet2 designs, the type property is still used for semantic purposes
62127+
* but will be ignored for visual styling.
62128+
*
62129+
* Default value is `Default`.
62130+
*
62131+
* @since 1.143.0
62132+
*
62133+
* @returns Value of property `colorSet`
62134+
*/
62135+
getColorSet(): MessageStripColorSet;
6206462136
/**
6206562137
* Gets content of aggregation {@link #getControls controls}.
6206662138
*
@@ -62075,7 +62147,7 @@ declare module "sap/m/MessageStrip" {
6207562147
* Gets current value of property {@link #getCustomIcon customIcon}.
6207662148
*
6207762149
* Determines a custom icon which is displayed. If none is set, the default icon for this message type is
62078-
* used.
62150+
* used. **Note**: For ColorSet1 and ColorSet2 designs, no default icon is displayed unless explicitly provided.
6207962151
*
6208062152
* Default value is `empty string`.
6208162153
*
@@ -62213,11 +62285,60 @@ declare module "sap/m/MessageStrip" {
6221362285
*/
6221462286
vControl: int | string | Link
6221562287
): Link | null;
62288+
/**
62289+
* Sets a new value for property {@link #getColorScheme colorScheme}.
62290+
*
62291+
* Determines the color scheme when using ColorSet1 or ColorSet2 colorSet variants. Available values are
62292+
* 1 through 10, each providing a different color variation. This property is only effective when `colorSet`
62293+
* is set to "ColorSet1" or "ColorSet2".
62294+
*
62295+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
62296+
*
62297+
* Default value is `1`.
62298+
*
62299+
* @since 1.143.0
62300+
*
62301+
* @returns Reference to `this` in order to allow method chaining
62302+
*/
62303+
setColorScheme(
62304+
/**
62305+
* New value for property `colorScheme`
62306+
*/
62307+
iColorScheme?: int
62308+
): this;
62309+
/**
62310+
* Sets a new value for property {@link #getColorSet colorSet}.
62311+
*
62312+
* Determines the color set variant of the MessageStrip. Available options:
62313+
* - **Default** - Uses standard semantic colors based on the type property (Information, Success, Warning,
62314+
* Error)
62315+
* - **ColorSet1** - Uses a custom color palette with 10 predefined color schemes
62316+
* - **ColorSet2** - Uses an alternative custom color palette with 10 predefined color schemes When
62317+
* ColorSet1 or ColorSet2 is selected, the `colorScheme` property determines which of the 10 color variations
62318+
* is applied.
62319+
*
62320+
* **Note:** When using ColorSet1 or ColorSet2 designs, the type property is still used for semantic purposes
62321+
* but will be ignored for visual styling.
62322+
*
62323+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
62324+
*
62325+
* Default value is `Default`.
62326+
*
62327+
* @since 1.143.0
62328+
*
62329+
* @returns Reference to `this` in order to allow method chaining
62330+
*/
62331+
setColorSet(
62332+
/**
62333+
* New value for property `colorSet`
62334+
*/
62335+
sColorSet?: MessageStripColorSet | keyof typeof MessageStripColorSet
62336+
): this;
6221662337
/**
6221762338
* Sets a new value for property {@link #getCustomIcon customIcon}.
6221862339
*
6221962340
* Determines a custom icon which is displayed. If none is set, the default icon for this message type is
62220-
* used.
62341+
* used. **Note**: For ColorSet1 and ColorSet2 designs, no default icon is displayed unless explicitly provided.
6222162342
*
6222262343
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
6222362344
*
@@ -62361,9 +62482,37 @@ declare module "sap/m/MessageStrip" {
6236162482
| PropertyBindingInfo
6236262483
| `{${string}}`;
6236362484

62485+
/**
62486+
* Determines the color set variant of the MessageStrip. Available options:
62487+
* - **Default** - Uses standard semantic colors based on the type property (Information, Success, Warning,
62488+
* Error)
62489+
* - **ColorSet1** - Uses a custom color palette with 10 predefined color schemes
62490+
* - **ColorSet2** - Uses an alternative custom color palette with 10 predefined color schemes When
62491+
* ColorSet1 or ColorSet2 is selected, the `colorScheme` property determines which of the 10 color variations
62492+
* is applied.
62493+
*
62494+
* **Note:** When using ColorSet1 or ColorSet2 designs, the type property is still used for semantic purposes
62495+
* but will be ignored for visual styling.
62496+
*
62497+
* @since 1.143.0
62498+
*/
62499+
colorSet?:
62500+
| (MessageStripColorSet | keyof typeof MessageStripColorSet)
62501+
| PropertyBindingInfo
62502+
| `{${string}}`;
62503+
62504+
/**
62505+
* Determines the color scheme when using ColorSet1 or ColorSet2 colorSet variants. Available values are
62506+
* 1 through 10, each providing a different color variation. This property is only effective when `colorSet`
62507+
* is set to "ColorSet1" or "ColorSet2".
62508+
*
62509+
* @since 1.143.0
62510+
*/
62511+
colorScheme?: int | PropertyBindingInfo | `{${string}}`;
62512+
6236462513
/**
6236562514
* Determines a custom icon which is displayed. If none is set, the default icon for this message type is
62366-
* used.
62515+
* used. **Note**: For ColorSet1 and ColorSet2 designs, no default icon is displayed unless explicitly provided.
6236762516
*/
6236862517
customIcon?: URI | PropertyBindingInfo | `{${string}}`;
6236962518

@@ -111819,7 +111968,7 @@ declare module "sap/m/SegmentedButton" {
111819111968
*
111820111969
* Default value is `EqualSized`.
111821111970
*
111822-
* @since 1.42.0
111971+
* @since 1.142.0
111823111972
*
111824111973
* @returns Value of property `contentMode`
111825111974
*/
@@ -112043,7 +112192,7 @@ declare module "sap/m/SegmentedButton" {
112043112192
*
112044112193
* Default value is `EqualSized`.
112045112194
*
112046-
* @since 1.42.0
112195+
* @since 1.142.0
112047112196
*
112048112197
* @returns Reference to `this` in order to allow method chaining
112049112198
*/
@@ -112181,7 +112330,7 @@ declare module "sap/m/SegmentedButton" {
112181112330
* - **ContentFit**: Each button is sized according to its content.
112182112331
* - **EqualSized**: All buttons have equal width, regardless of their content.
112183112332
*
112184-
* @since 1.42.0
112333+
* @since 1.142.0
112185112334
*/
112186112335
contentMode?:
112187112336
| (SegmentedButtonContentMode | keyof typeof SegmentedButtonContentMode)
@@ -130370,6 +130519,11 @@ declare module "sap/m/SinglePlanningCalendar" {
130370130519
* The end date as a UI5Date or JavaScript Date object of the focused grid cell.
130371130520
*/
130372130521
endDate?: object;
130522+
130523+
/**
130524+
* The original browser event.
130525+
*/
130526+
originalEvent?: object;
130373130527
}
130374130528

130375130529
/**
@@ -174270,6 +174424,8 @@ declare namespace sap {
174270174424

174271174425
"sap/m/p13n/modules/AdaptationProvider": undefined;
174272174426

174427+
"sap/m/p13n/PersistenceProvider": undefined;
174428+
174273174429
"sap/m/p13n/Popup": undefined;
174274174430

174275174431
"sap/m/p13n/QueryPanel": undefined;

β€Žtypes/openui5/sap.tnt.d.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.142.0
1+
// For Library Version: 1.143.0
22

33
declare module "sap/tnt/library" {
44
/**

β€Žtypes/openui5/sap.ui.codeeditor.d.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.142.0
1+
// For Library Version: 1.143.0
22

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

β€Žtypes/openui5/sap.ui.commons.d.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.142.0
1+
// For Library Version: 1.143.0
22

33
declare module "sap/ui/commons/library" {
44
import { ColorPickerMode as ColorPickerMode1 } from "sap/ui/unified/library";

0 commit comments

Comments
Β (0)