Skip to content

Commit ba41421

Browse files
authored
🤖 Merge PR DefinitelyTyped#74626 [openui5] Update the definition files for OpenUI5 1.145 by @akudev
1 parent 0ce74e7 commit ba41421

24 files changed

Lines changed: 652 additions & 198 deletions

‎types/openui5/openui5-tests.ts‎

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

290290
// version 1.144.0 added - tests are not required as the type definitions are generated and the generator is sufficiently tested
291+
292+
// version 1.145.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.144.9999",
4+
"version": "1.145.9999",
55
"nonNpm": true,
66
"nonNpmDescription": "openui5",
77
"projects": [

‎types/openui5/sap.f.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.144.0
1+
// For Library Version: 1.145.0
22

33
declare module "sap/tnt/library" {
44
export interface IToolHeader {

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

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.144.0
1+
// For Library Version: 1.145.0
22

33
declare module "sap/f/library" {
44
export interface IShellBar {
@@ -3996,6 +3996,12 @@ declare module "sap/m/library" {
39963996
* @since 1.54
39973997
*/
39983998
export enum TimePickerMaskMode {
3999+
/**
4000+
* The mask will always be enforced for any time patterns. **Note:** The mask functions correctly only with
4001+
* fixed-length time formats. Using the `Enforce` value with time formats that do not have a fixed length
4002+
* may lead to unpredictable behavior.
4003+
*/
4004+
Enforce = "Enforce",
39994005
/**
40004006
* The mask is disabled for the `sap.m.TimePicker`.
40014007
*/
@@ -4539,6 +4545,20 @@ declare module "sap/m/library" {
45394545
* @returns The enablement of the vertical scrolling enablement for the `sap.m.p13n.Popup`.
45404546
*/
45414547
getVerticalScrolling?(): boolean;
4548+
/**
4549+
* Optional hook that will be executed when the panel is used by a `sap.m.p13n.Popup` that is called before
4550+
* the popup is closed
4551+
*
4552+
* @since 1.145
4553+
*
4554+
* @returns A Promise that is fullfilled if the panel is ready to be closed
4555+
*/
4556+
onBeforeClose?(
4557+
/**
4558+
* reason for closing the container
4559+
*/
4560+
sReason: string
4561+
): Promise<any>;
45424562
/**
45434563
* Optional hook that will be executed when the panel is used by a `sap.m.p13n.Popup` that may trigger a
45444564
* reset on the panel
@@ -14767,7 +14787,6 @@ declare module "sap/m/ColorPalette" {
1476714787
* The last selected color in the ColorPalette.
1476814788
*
1476914789
* @since 1.122
14770-
* @experimental As of version 1.122. this property is in a beta state.
1477114790
*
1477214791
* @returns Value of property `selectedColor`
1477314792
*/
@@ -14811,7 +14830,6 @@ declare module "sap/m/ColorPalette" {
1481114830
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
1481214831
*
1481314832
* @since 1.122
14814-
* @experimental As of version 1.122. this property is in a beta state.
1481514833
*
1481614834
* @returns Reference to `this` in order to allow method chaining
1481714835
*/
@@ -14835,7 +14853,6 @@ declare module "sap/m/ColorPalette" {
1483514853
* The last selected color in the ColorPalette.
1483614854
*
1483714855
* @since 1.122
14838-
* @experimental As of version 1.122. this property is in a beta state.
1483914856
*/
1484014857
selectedColor?: CSSColor | PropertyBindingInfo | `{${string}}`;
1484114858

@@ -15223,7 +15240,6 @@ declare module "sap/m/ColorPalettePopover" {
1522315240
* The last selected color in the ColorPalette.
1522415241
*
1522515242
* @since 1.122
15226-
* @experimental As of version 1.122. this property is in a beta state.
1522715243
*
1522815244
* @returns Value of property `selectedColor`
1522915245
*/
@@ -15356,7 +15372,6 @@ declare module "sap/m/ColorPalettePopover" {
1535615372
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
1535715373
*
1535815374
* @since 1.122
15359-
* @experimental As of version 1.122. this property is in a beta state.
1536015375
*
1536115376
* @returns Reference to `this` in order to allow method chaining
1536215377
*/
@@ -15442,7 +15457,6 @@ declare module "sap/m/ColorPalettePopover" {
1544215457
* The last selected color in the ColorPalette.
1544315458
*
1544415459
* @since 1.122
15445-
* @experimental As of version 1.122. this property is in a beta state.
1544615460
*/
1544715461
selectedColor?: CSSColor | PropertyBindingInfo | `{${string}}`;
1544815462

@@ -86235,7 +86249,7 @@ declare module "sap/m/Page" {
8623586249
*
8623686250
* The (optional) custom header of this page. Use this aggregation only when a custom header is constructed
8623786251
* where the default header consisting of title text + nav button is not sufficient. If this aggregation
86238-
* is set, the simple properties "title", "showNavButton", "NavButtonText" and "icon" are not used.
86252+
* is set, the simple properties "title", "showNavButton", "navButtonText" and "icon" are not used.
8623986253
*/
8624086254
getCustomHeader(): IBar;
8624186255
/**
@@ -87062,7 +87076,7 @@ declare module "sap/m/Page" {
8706287076
/**
8706387077
* The (optional) custom header of this page. Use this aggregation only when a custom header is constructed
8706487078
* where the default header consisting of title text + nav button is not sufficient. If this aggregation
87065-
* is set, the simple properties "title", "showNavButton", "NavButtonText" and "icon" are not used.
87079+
* is set, the simple properties "title", "showNavButton", "navButtonText" and "icon" are not used.
8706687080
*/
8706787081
customHeader?: IBar;
8706887082

@@ -135965,7 +135979,8 @@ declare module "sap/m/StandardListItem" {
135965135979
/**
135966135980
* Gets current value of property {@link #getIcon icon}.
135967135981
*
135968-
* Defines the list item icon.
135982+
* Defines the list item icon. **Note:** The icon is decorative. For more advanced use cases and configuration
135983+
* options, use the `avatar` aggregation.
135969135984
*
135970135985
*
135971135986
* @returns Value of property `icon`
@@ -136176,7 +136191,8 @@ declare module "sap/m/StandardListItem" {
136176136191
/**
136177136192
* Sets a new value for property {@link #getIcon icon}.
136178136193
*
136179-
* Defines the list item icon.
136194+
* Defines the list item icon. **Note:** The icon is decorative. For more advanced use cases and configuration
136195+
* options, use the `avatar` aggregation.
136180136196
*
136181136197
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
136182136198
*
@@ -136411,7 +136427,8 @@ declare module "sap/m/StandardListItem" {
136411136427
description?: string | PropertyBindingInfo;
136412136428

136413136429
/**
136414-
* Defines the list item icon.
136430+
* Defines the list item icon. **Note:** The icon is decorative. For more advanced use cases and configuration
136431+
* options, use the `avatar` aggregation.
136415136432
*/
136416136433
icon?: URI | PropertyBindingInfo | `{${string}}`;
136417136434

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

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.144.0
1+
// For Library Version: 1.145.0
22

33
declare module "sap/tnt/library" {
44
/**
@@ -1658,8 +1658,8 @@ declare module "sap/tnt/NavigationListItem" {
16581658
/**
16591659
* Gets current value of property {@link #getDesign design}.
16601660
*
1661-
* Specifies if the item has a special design. NOTE: If `design` is not `NavigationListItemDesign.Default`
1662-
* sub-items can't be added.
1661+
* Specifies if the item has a special design. **Note:** If the `design` property is not set to `NavigationListItemDesign.Default`,
1662+
* sub-items cannot be added.
16631663
*
16641664
* Default value is `Default`.
16651665
*
@@ -1684,6 +1684,8 @@ declare module "sap/tnt/NavigationListItem" {
16841684
*
16851685
* Specifies the icon for the item.
16861686
*
1687+
* **Note:** By design, icons on second-level (child) navigation items are not rendered.
1688+
*
16871689
* Default value is `empty string`.
16881690
*
16891691
*
@@ -1823,8 +1825,8 @@ declare module "sap/tnt/NavigationListItem" {
18231825
/**
18241826
* Sets a new value for property {@link #getDesign design}.
18251827
*
1826-
* Specifies if the item has a special design. NOTE: If `design` is not `NavigationListItemDesign.Default`
1827-
* sub-items can't be added.
1828+
* Specifies if the item has a special design. **Note:** If the `design` property is not set to `NavigationListItemDesign.Default`,
1829+
* sub-items cannot be added.
18281830
*
18291831
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
18301832
*
@@ -1863,6 +1865,8 @@ declare module "sap/tnt/NavigationListItem" {
18631865
*
18641866
* Specifies the icon for the item.
18651867
*
1868+
* **Note:** By design, icons on second-level (child) navigation items are not rendered.
1869+
*
18661870
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
18671871
*
18681872
* Default value is `empty string`.
@@ -1958,6 +1962,8 @@ declare module "sap/tnt/NavigationListItem" {
19581962
extends $NavigationListItemBaseSettings {
19591963
/**
19601964
* Specifies the icon for the item.
1965+
*
1966+
* **Note:** By design, icons on second-level (child) navigation items are not rendered.
19611967
*/
19621968
icon?: URI | PropertyBindingInfo | `{${string}}`;
19631969

@@ -2007,8 +2013,8 @@ declare module "sap/tnt/NavigationListItem" {
20072013
target?: string | PropertyBindingInfo;
20082014

20092015
/**
2010-
* Specifies if the item has a special design. NOTE: If `design` is not `NavigationListItemDesign.Default`
2011-
* sub-items can't be added.
2016+
* Specifies if the item has a special design. **Note:** If the `design` property is not set to `NavigationListItemDesign.Default`,
2017+
* sub-items cannot be added.
20122018
*
20132019
* @since 1.133.0
20142020
* @experimental Behavior might change.
@@ -3427,8 +3433,9 @@ declare module "sap/tnt/ToolPage" {
34273433
* Gets current value of property {@link #getSideExpanded sideExpanded}.
34283434
*
34293435
* Indicates if the side menu is expanded. Overrides the `expanded` property of the `sideContent` aggregation.
3430-
* *Note:** By default, on small screens, the side content is collapsed to provide more space for the main
3431-
* content. On larger screens, it is expanded. This behavior can be overridden by setting this property.
3436+
* *Note:** By default, on mobile phone devices and small screens, the side content is collapsed to provide
3437+
* more space for the main content. On larger screens, excluding mobile phone devices, it is expanded. This
3438+
* behavior can be overridden by setting this property.
34323439
*
34333440
* Default value is `true`.
34343441
*
@@ -3580,8 +3587,9 @@ declare module "sap/tnt/ToolPage" {
35803587
export interface $ToolPageSettings extends $ControlSettings {
35813588
/**
35823589
* Indicates if the side menu is expanded. Overrides the `expanded` property of the `sideContent` aggregation.
3583-
* **Note:** By default, on small screens, the side content is collapsed to provide more space for the main
3584-
* content. On larger screens, it is expanded. This behavior can be overridden by setting this property.
3590+
* **Note:** By default, on mobile phone devices and small screens, the side content is collapsed to provide
3591+
* more space for the main content. On larger screens, excluding mobile phone devices, it is expanded. This
3592+
* behavior can be overridden by setting this property.
35853593
*/
35863594
sideExpanded?: boolean | PropertyBindingInfo | `{${string}}`;
35873595

‎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.144.0
1+
// For Library Version: 1.145.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.144.0
1+
// For Library Version: 1.145.0
22

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

0 commit comments

Comments
 (0)