Skip to content

Commit f262e69

Browse files
authored
πŸ€– Merge PR DefinitelyTyped#73864 [openui5] Update the definition files for OpenUI5 1.141 by @akudev
1 parent a15e4cd commit f262e69

24 files changed

+618
-160
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,5 @@ new List().attachItemActionPress((oEvent) => {
280280
new FeedInput().addAction(link);
281281

282282
// 1.140.0
283-
const p13nEngine = new Engine();
283+
const p13nEngine = new Engine();
284+
// version 1.141.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.140.9999",
4+
"version": "1.141.9999",
55
"nonNpm": true,
66
"nonNpmDescription": "openui5",
77
"projects": [

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

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.140.0
1+
// For Library Version: 1.141.0
22

33
declare module "sap/tnt/library" {
44
export interface IToolHeader {
@@ -222,7 +222,7 @@ declare module "sap/f/library" {
222222
*
223223
* Each layout has a default predefined ratio for the three columns, depending on device size. Based on
224224
* the device and layout, some columns are hidden. For more information, refer to the ratios (in %) for
225-
* each value, listed below: (dash "-" means non-accessible columns).
225+
* each value, listed below: (hyphen "-" means non-accessible columns).
226226
*
227227
* **Notes:**
228228
* - The user is allowed to customize the default ratio by dragging the column separators to resize the
@@ -2745,7 +2745,7 @@ declare module "sap/f/cards/Header" {
27452745

27462746
import AvatarSize from "sap/m/AvatarSize";
27472747

2748-
import { URI } from "sap/ui/core/library";
2748+
import { URI, ValueState } from "sap/ui/core/library";
27492749

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

@@ -2927,6 +2927,18 @@ declare module "sap/f/cards/Header" {
29272927
* @returns Value of property `iconSrc`
29282928
*/
29292929
getIconSrc(): URI;
2930+
/**
2931+
* Gets current value of property {@link #getIconState iconState}.
2932+
*
2933+
* Defines a status-colored, non-interactive message icon in the icon area.
2934+
*
2935+
* Default value is `None`.
2936+
*
2937+
* @since 1.141
2938+
*
2939+
* @returns Value of property `iconState`
2940+
*/
2941+
getIconState(): ValueState;
29302942
/**
29312943
* Gets current value of property {@link #getIconVisible iconVisible}.
29322944
*
@@ -3126,6 +3138,25 @@ declare module "sap/f/cards/Header" {
31263138
*/
31273139
sIconSrc?: URI
31283140
): this;
3141+
/**
3142+
* Sets a new value for property {@link #getIconState iconState}.
3143+
*
3144+
* Defines a status-colored, non-interactive message icon in the icon area.
3145+
*
3146+
* When called with a value of `null` or `undefined`, the default value of the property will be restored.
3147+
*
3148+
* Default value is `None`.
3149+
*
3150+
* @since 1.141
3151+
*
3152+
* @returns Reference to `this` in order to allow method chaining
3153+
*/
3154+
setIconState(
3155+
/**
3156+
* New value for property `iconState`
3157+
*/
3158+
sIconState?: ValueState | keyof typeof ValueState
3159+
): this;
31293160
/**
31303161
* Sets a new value for property {@link #getIconVisible iconVisible}.
31313162
*
@@ -3338,6 +3369,16 @@ declare module "sap/f/cards/Header" {
33383369
| (AvatarImageFitType | keyof typeof AvatarImageFitType)
33393370
| PropertyBindingInfo
33403371
| `{${string}}`;
3372+
3373+
/**
3374+
* Defines a status-colored, non-interactive message icon in the icon area.
3375+
*
3376+
* @since 1.141
3377+
*/
3378+
iconState?:
3379+
| (ValueState | keyof typeof ValueState)
3380+
| PropertyBindingInfo
3381+
| `{${string}}`;
33413382
}
33423383
}
33433384

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

Lines changed: 78 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// For Library Version: 1.140.0
1+
// For Library Version: 1.141.0
22

33
declare module "sap/f/library" {
44
export interface IShellBar {
@@ -53603,18 +53603,36 @@ declare module "sap/m/ListBase" {
5360353603
}
5360453604

5360553605
declare module "sap/m/ListItemAction" {
53606-
import Metadata from "sap/ui/base/Metadata";
53606+
import {
53607+
default as ListItemActionBase,
53608+
$ListItemActionBaseSettings,
53609+
} from "sap/m/ListItemActionBase";
53610+
53611+
import ElementMetadata from "sap/ui/core/ElementMetadata";
5360753612

5360853613
import { ListItemActionType } from "sap/m/library";
5360953614

53615+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
53616+
5361053617
/**
5361153618
* The `sap.m.ListItemAction` control provides the option to define actions directly related to list items.
5361253619
*
5361353620
* @since 1.137
5361453621
*/
53615-
export default class ListItemAction
53616-
extends /* was: sap.ui.core.ListItemActionBase */ Object
53617-
{
53622+
export default class ListItemAction extends ListItemActionBase {
53623+
/**
53624+
* Constructor for a new action for list items.
53625+
*
53626+
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
53627+
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
53628+
* of the syntax of the settings object.
53629+
*/
53630+
constructor(
53631+
/**
53632+
* Initial settings for the new control
53633+
*/
53634+
mSettings?: $ListItemActionSettings
53635+
);
5361853636
/**
5361953637
* Constructor for a new action for list items.
5362053638
*
@@ -53630,14 +53648,14 @@ declare module "sap/m/ListItemAction" {
5363053648
/**
5363153649
* Initial settings for the new control
5363253650
*/
53633-
mSettings?: object
53651+
mSettings?: $ListItemActionSettings
5363453652
);
5363553653

5363653654
/**
5363753655
* Creates a new subclass of class sap.m.ListItemAction with name `sClassName` and enriches it with the
5363853656
* information contained in `oClassInfo`.
5363953657
*
53640-
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.ListItemActionBase.extend}.
53658+
* `oClassInfo` might contain the same kind of information as described in {@link sap.m.ListItemActionBase.extend}.
5364153659
*
5364253660
*
5364353661
* @returns Created class / constructor function
@@ -53663,7 +53681,7 @@ declare module "sap/m/ListItemAction" {
5366353681
*
5366453682
* @returns Metadata object describing this class
5366553683
*/
53666-
static getMetadata(): Metadata;
53684+
static getMetadata(): ElementMetadata;
5366753685
/**
5366853686
* Gets current value of property {@link #getType type}.
5366953687
*
@@ -53694,6 +53712,18 @@ declare module "sap/m/ListItemAction" {
5369453712
sType?: ListItemActionType | keyof typeof ListItemActionType
5369553713
): this;
5369653714
}
53715+
/**
53716+
* Describes the settings that can be provided to the ListItemAction constructor.
53717+
*/
53718+
export interface $ListItemActionSettings extends $ListItemActionBaseSettings {
53719+
/**
53720+
* Defines the type of the action.
53721+
*/
53722+
type?:
53723+
| (ListItemActionType | keyof typeof ListItemActionType)
53724+
| PropertyBindingInfo
53725+
| `{${string}}`;
53726+
}
5369753727
}
5369853728

5369953729
declare module "sap/m/ListItemActionBase" {
@@ -88644,6 +88674,11 @@ declare module "sap/m/PDFViewer" {
8864488674
* happen when the source PDF file is stored in a different domain. If you want no error message to be displayed
8864588675
* when this event is fired, call the preventDefault() method inside the event handler.
8864688676
*
88677+
* Modern browsers implement strict policies for validating external resources loaded within an iframe.
88678+
* PDFViewer cannot determine whether the resource inside the iframe is a valid PDF by itself. As the validation
88679+
* cannot be performed the sourceValidationFailed event cannot be triggered.
88680+
*
88681+
* @deprecated As of version 1.141.0. with no replacement.
8864788682
*
8864888683
* @returns Reference to `this` in order to allow method chaining
8864988684
*/
@@ -88674,6 +88709,11 @@ declare module "sap/m/PDFViewer" {
8867488709
* happen when the source PDF file is stored in a different domain. If you want no error message to be displayed
8867588710
* when this event is fired, call the preventDefault() method inside the event handler.
8867688711
*
88712+
* Modern browsers implement strict policies for validating external resources loaded within an iframe.
88713+
* PDFViewer cannot determine whether the resource inside the iframe is a valid PDF by itself. As the validation
88714+
* cannot be performed the sourceValidationFailed event cannot be triggered.
88715+
*
88716+
* @deprecated As of version 1.141.0. with no replacement.
8867788717
*
8867888718
* @returns Reference to `this` in order to allow method chaining
8867988719
*/
@@ -88743,6 +88783,7 @@ declare module "sap/m/PDFViewer" {
8874388783
*
8874488784
* The passed function and listener object must match the ones used for event registration.
8874588785
*
88786+
* @deprecated As of version 1.141.0. with no replacement.
8874688787
*
8874788788
* @returns Reference to `this` in order to allow method chaining
8874888789
*/
@@ -88789,6 +88830,7 @@ declare module "sap/m/PDFViewer" {
8878988830
/**
8879088831
* Fires event {@link #event:sourceValidationFailed sourceValidationFailed} to attached listeners.
8879188832
*
88833+
* @deprecated As of version 1.141.0. with no replacement.
8879288834
* @ui5-protected Do not call from applications (only from related classes in the framework)
8879388835
*
8879488836
* @returns Reference to `this` in order to allow method chaining
@@ -89320,6 +89362,12 @@ declare module "sap/m/PDFViewer" {
8932089362
* configuration of the Mozilla Firefox browser may not allow checking the loaded content. This may also
8932189363
* happen when the source PDF file is stored in a different domain. If you want no error message to be displayed
8932289364
* when this event is fired, call the preventDefault() method inside the event handler.
89365+
*
89366+
* Modern browsers implement strict policies for validating external resources loaded within an iframe.
89367+
* PDFViewer cannot determine whether the resource inside the iframe is a valid PDF by itself. As the validation
89368+
* cannot be performed the sourceValidationFailed event cannot be triggered.
89369+
*
89370+
* @deprecated As of version 1.141.0. with no replacement.
8932389371
*/
8932489372
sourceValidationFailed?: (oEvent: Event) => void;
8932589373
}
@@ -89357,11 +89405,15 @@ declare module "sap/m/PDFViewer" {
8935789405

8935889406
/**
8935989407
* Parameters of the PDFViewer#sourceValidationFailed event.
89408+
*
89409+
* @deprecated As of version 1.141.0. with no replacement.
8936089410
*/
8936189411
export interface PDFViewer$SourceValidationFailedEventParameters {}
8936289412

8936389413
/**
8936489414
* Event object of the PDFViewer#sourceValidationFailed event.
89415+
*
89416+
* @deprecated As of version 1.141.0. with no replacement.
8936589417
*/
8936689418
export type PDFViewer$SourceValidationFailedEvent = Event<
8936789419
PDFViewer$SourceValidationFailedEventParameters,
@@ -100015,6 +100067,7 @@ declare module "sap/m/Popover" {
100015100067
*
100016100068
* Any control that needed to be displayed in the header area. When this is set, the showHeader property
100017100069
* is ignored, and only this customHeader is shown on the top of popover.
100070+
* **Note:** To improve accessibility, titles with heading level `H1` should be used inside the custom header.
100018100071
*/
100019100072
getCustomHeader(): Control;
100020100073
/**
@@ -100925,6 +100978,7 @@ declare module "sap/m/Popover" {
100925100978
/**
100926100979
* Any control that needed to be displayed in the header area. When this is set, the showHeader property
100927100980
* is ignored, and only this customHeader is shown on the top of popover.
100981+
* **Note:** To improve accessibility, titles with heading level `H1` should be used inside the custom header.
100928100982
*/
100929100983
customHeader?: Control;
100930100984

@@ -138940,6 +138994,8 @@ declare module "sap/m/TabContainerItem" {
138940138994

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

138997+
import TooltipBase from "sap/ui/core/TooltipBase";
138998+
138943138999
import {
138944139000
PropertyBindingInfo,
138945139001
AggregationBindingInfo,
@@ -139278,6 +139334,18 @@ declare module "sap/m/TabContainerItem" {
139278139334
*/
139279139335
bSuppressInvalidation: boolean
139280139336
): this;
139337+
/**
139338+
* Property setter for the icon
139339+
*
139340+
*
139341+
* @returns `this` to allow method chaining
139342+
*/
139343+
setTooltip(
139344+
/**
139345+
* new value of the tooltip aggregation
139346+
*/
139347+
sTooltip: string | TooltipBase
139348+
): this;
139281139349
}
139282139350
/**
139283139351
* Describes the settings that can be provided to the TabContainerItem constructor.
@@ -151358,7 +151426,8 @@ declare module "sap/m/TimePickerClocks" {
151358151426
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
151359151427

151360151428
/**
151361-
* A picker clocks container control used inside the {@link sap.m.TimePicker}.
151429+
* A picker clocks container control used inside the {@link sap.m.TimePicker}. If you use the control standalone,
151430+
* please call the {@link #prepareForOpen} method before opening or displaying it.
151362151431
*
151363151432
* @since 1.90
151364151433
*/

β€Ž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.140.0
1+
// For Library Version: 1.141.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.140.0
1+
// For Library Version: 1.141.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.140.0
1+
// For Library Version: 1.141.0
22

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

0 commit comments

Comments
Β (0)