@openui5/types 1.117.0 → 1.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/sap.f.d.ts +416 -2
- package/types/sap.m.d.ts +214 -90
- package/types/sap.tnt.d.ts +1 -1
- package/types/sap.ui.codeeditor.d.ts +5 -2
- package/types/sap.ui.commons.d.ts +1 -1
- package/types/sap.ui.core.d.ts +1031 -197
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +51 -4
- package/types/sap.ui.integration.d.ts +68 -3
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +423 -141
- package/types/sap.ui.rta.d.ts +1 -4
- package/types/sap.ui.suite.d.ts +1 -1
- package/types/sap.ui.support.d.ts +1 -1
- package/types/sap.ui.table.d.ts +180 -39
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +1 -20
- package/types/sap.ui.ux3.d.ts +1 -1
- package/types/sap.ui.webc.common.d.ts +76 -35
- package/types/sap.ui.webc.fiori.d.ts +1 -1
- package/types/sap.ui.webc.main.d.ts +1 -1
- package/types/sap.uxap.d.ts +116 -1
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.118.0
|
|
2
2
|
|
|
3
3
|
declare module "sap/ui/webc/common/library" {}
|
|
4
4
|
|
|
5
5
|
declare module "sap/ui/webc/common/WebComponent" {
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
default as WebComponent1,
|
|
8
|
+
MetadataOptions as MetadataOptions1,
|
|
9
|
+
$WebComponentSettings as $WebComponentSettings1,
|
|
10
|
+
} from "sap/ui/core/webc/WebComponent";
|
|
7
11
|
|
|
8
12
|
import WebComponentMetadata from "sap/ui/webc/common/WebComponentMetadata";
|
|
9
13
|
|
|
10
14
|
/**
|
|
11
15
|
* @since 1.92.0
|
|
16
|
+
* @deprecated (since 1.118.0) - Use sap.ui.core.webc.WebComponent instead!
|
|
12
17
|
* @experimental (since 1.92.0) - The API might change. It is not intended for productive usage yet!
|
|
13
18
|
*
|
|
14
19
|
* Base Class for Web Components. Web Components are agnostic UI elements which can be integrated into the
|
|
@@ -16,27 +21,76 @@ declare module "sap/ui/webc/common/WebComponent" {
|
|
|
16
21
|
* properties, the aggregations and the events. It also ensures to render the control and put the aggregated
|
|
17
22
|
* controls in the dedicated slots of the Web Component.
|
|
18
23
|
*/
|
|
19
|
-
export default class WebComponent extends
|
|
24
|
+
export default class WebComponent extends WebComponent1 {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
|
|
27
|
+
*/
|
|
28
|
+
constructor(
|
|
29
|
+
/**
|
|
30
|
+
* Object with initial settings for the new control
|
|
31
|
+
*/
|
|
32
|
+
mSettings?: $WebComponentSettings
|
|
33
|
+
);
|
|
20
34
|
/**
|
|
21
35
|
* Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
|
|
22
|
-
*
|
|
23
|
-
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
24
|
-
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
25
|
-
* of the syntax of the settings object.
|
|
26
36
|
*/
|
|
27
|
-
constructor(
|
|
37
|
+
constructor(
|
|
38
|
+
/**
|
|
39
|
+
* Optional ID for the new control; generated automatically if no non-empty ID is given Note: this can be
|
|
40
|
+
* omitted, no matter whether `mSettings` will be given or not!
|
|
41
|
+
*/
|
|
42
|
+
sId?: string,
|
|
43
|
+
/**
|
|
44
|
+
* Object with initial settings for the new control
|
|
45
|
+
*/
|
|
46
|
+
mSettings?: $WebComponentSettings
|
|
47
|
+
);
|
|
28
48
|
|
|
29
49
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
50
|
+
* Defines a new subclass of WebComponent with the name `sClassName` and enriches it with the information
|
|
51
|
+
* contained in `oClassInfo`.
|
|
52
|
+
*
|
|
53
|
+
* `oClassInfo` can contain the same information that {@link sap.ui.base.ManagedObject.extend} already accepts,
|
|
54
|
+
* plus the `dnd` property in the metadata object literal to configure drag-and-drop behavior (see {@link sap.ui.core.webc.WebComponent.MetadataOptions MetadataOptions }
|
|
55
|
+
* for details). Objects describing aggregations can also have a `dnd` property when used for a class extending
|
|
56
|
+
* `WebComponent` (see {@link sap.ui.base.ManagedObject.MetadataOptions.AggregationDnD AggregationDnD}).
|
|
57
|
+
*
|
|
58
|
+
* Example:
|
|
59
|
+
* ```javascript
|
|
60
|
+
*
|
|
61
|
+
* WebComponent.extend('sap.mylib.MyElement', {
|
|
62
|
+
* metadata : {
|
|
63
|
+
* library : 'sap.mylib',
|
|
64
|
+
* tag : 'my-webcomponent',
|
|
65
|
+
* properties : {
|
|
66
|
+
* value : 'string',
|
|
67
|
+
* width : {
|
|
68
|
+
* type: 'sap.ui.core.CSSSize',
|
|
69
|
+
* mapping: 'style'
|
|
70
|
+
* }
|
|
71
|
+
* },
|
|
72
|
+
* defaultAggregation: "content",
|
|
73
|
+
* aggregations : {
|
|
74
|
+
* content : {
|
|
75
|
+
* type: 'sap.ui.core.Control',
|
|
76
|
+
* multiple : true
|
|
77
|
+
* },
|
|
78
|
+
* header : {
|
|
79
|
+
* type : 'sap.ui.core.Control',
|
|
80
|
+
* multiple : false,
|
|
81
|
+
* slot: 'header'
|
|
82
|
+
* }
|
|
83
|
+
* }
|
|
84
|
+
* }
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
32
87
|
*
|
|
33
|
-
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
|
|
34
88
|
*
|
|
35
89
|
* @returns Created class / constructor function
|
|
36
90
|
*/
|
|
37
91
|
static extend<T extends Record<string, unknown>>(
|
|
38
92
|
/**
|
|
39
|
-
* Name of the class
|
|
93
|
+
* Name of the class to be created
|
|
40
94
|
*/
|
|
41
95
|
sClassName: string,
|
|
42
96
|
/**
|
|
@@ -44,8 +98,7 @@ declare module "sap/ui/webc/common/WebComponent" {
|
|
|
44
98
|
*/
|
|
45
99
|
oClassInfo?: sap.ClassInfo<T, WebComponent>,
|
|
46
100
|
/**
|
|
47
|
-
* Constructor function for the metadata object
|
|
48
|
-
* used by this class
|
|
101
|
+
* Constructor function for the metadata object. If not given, it defaults to `sap.ui.core.ElementMetadata`.
|
|
49
102
|
*/
|
|
50
103
|
FNMetaImpl?: Function
|
|
51
104
|
): Function;
|
|
@@ -56,18 +109,24 @@ declare module "sap/ui/webc/common/WebComponent" {
|
|
|
56
109
|
*/
|
|
57
110
|
static getMetadata(): WebComponentMetadata;
|
|
58
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* The structure of the "metadata" object which is passed when inheriting from sap.ui.core.Element using
|
|
114
|
+
* its static "extend" method. See {@link sap.ui.core.Element.extend} for details on its usage.
|
|
115
|
+
*/
|
|
116
|
+
export type MetadataOptions = MetadataOptions1;
|
|
59
117
|
|
|
60
|
-
export interface $WebComponentSettings extends $
|
|
118
|
+
export interface $WebComponentSettings extends $WebComponentSettings1 {}
|
|
61
119
|
}
|
|
62
120
|
|
|
63
121
|
declare module "sap/ui/webc/common/WebComponentMetadata" {
|
|
64
|
-
import
|
|
122
|
+
import WebComponentMetadata1 from "sap/ui/core/webc/WebComponentMetadata";
|
|
65
123
|
|
|
66
124
|
/**
|
|
67
125
|
* @since 1.92.0
|
|
126
|
+
* @deprecated (since 1.118.0) - Use sap.ui.core.webc.WebComponentMetadata instead!
|
|
68
127
|
* @experimental (since 1.92.0) - The API might change. It is not intended for productive usage yet!
|
|
69
128
|
*/
|
|
70
|
-
export default class WebComponentMetadata extends
|
|
129
|
+
export default class WebComponentMetadata extends WebComponentMetadata1 {
|
|
71
130
|
/**
|
|
72
131
|
* Creates a new metadata object for a WebComponent Wrapper subclass.
|
|
73
132
|
*/
|
|
@@ -81,24 +140,6 @@ declare module "sap/ui/webc/common/WebComponentMetadata" {
|
|
|
81
140
|
*/
|
|
82
141
|
oClassInfo: object
|
|
83
142
|
);
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Returns the list of public getters, proxied by the Component Wrapper to the component itself
|
|
87
|
-
*/
|
|
88
|
-
getGetters(): any[];
|
|
89
|
-
/**
|
|
90
|
-
* Returns the list of public methods, proxied by the Component Wrapper to the component itself
|
|
91
|
-
*/
|
|
92
|
-
getMethods(): any[];
|
|
93
|
-
/**
|
|
94
|
-
* Retrieves the renderer for the described web component class. Note: this is always the default renderer
|
|
95
|
-
* and Web Component wrappers should not define their own renderers.
|
|
96
|
-
*/
|
|
97
|
-
getRenderer(): void;
|
|
98
|
-
/**
|
|
99
|
-
* Returns the tag, used to render the Component Wrapper
|
|
100
|
-
*/
|
|
101
|
-
getTag(): string;
|
|
102
143
|
}
|
|
103
144
|
}
|
|
104
145
|
|
package/types/sap.uxap.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.118.0
|
|
2
2
|
|
|
3
3
|
declare module "sap/uxap/library" {
|
|
4
4
|
/**
|
|
@@ -4411,6 +4411,59 @@ declare module "sap/uxap/ObjectPageLayout" {
|
|
|
4411
4411
|
*/
|
|
4412
4412
|
oSection: ObjectPageSection
|
|
4413
4413
|
): this;
|
|
4414
|
+
/**
|
|
4415
|
+
* @since 1.118
|
|
4416
|
+
*
|
|
4417
|
+
* Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
4418
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
4419
|
+
*
|
|
4420
|
+
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
|
|
4421
|
+
* otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
|
|
4422
|
+
*
|
|
4423
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
4424
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
4425
|
+
*
|
|
4426
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
4427
|
+
*/
|
|
4428
|
+
attachBeforeNavigate(
|
|
4429
|
+
/**
|
|
4430
|
+
* An application-specific payload object that will be passed to the event handler along with the event
|
|
4431
|
+
* object when firing the event
|
|
4432
|
+
*/
|
|
4433
|
+
oData: object,
|
|
4434
|
+
/**
|
|
4435
|
+
* The function to be called when the event occurs
|
|
4436
|
+
*/
|
|
4437
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
4438
|
+
/**
|
|
4439
|
+
* Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
|
|
4440
|
+
*/
|
|
4441
|
+
oListener?: object
|
|
4442
|
+
): this;
|
|
4443
|
+
/**
|
|
4444
|
+
* @since 1.118
|
|
4445
|
+
*
|
|
4446
|
+
* Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
4447
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
4448
|
+
*
|
|
4449
|
+
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
|
|
4450
|
+
* otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
|
|
4451
|
+
*
|
|
4452
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
4453
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
4454
|
+
*
|
|
4455
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
4456
|
+
*/
|
|
4457
|
+
attachBeforeNavigate(
|
|
4458
|
+
/**
|
|
4459
|
+
* The function to be called when the event occurs
|
|
4460
|
+
*/
|
|
4461
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
4462
|
+
/**
|
|
4463
|
+
* Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
|
|
4464
|
+
*/
|
|
4465
|
+
oListener?: object
|
|
4466
|
+
): this;
|
|
4414
4467
|
/**
|
|
4415
4468
|
* Attaches event handler `fnFunction` to the {@link #event:editHeaderButtonPress editHeaderButtonPress }
|
|
4416
4469
|
* event of this `sap.uxap.ObjectPageLayout`.
|
|
@@ -4747,6 +4800,26 @@ declare module "sap/uxap/ObjectPageLayout" {
|
|
|
4747
4800
|
* @returns Reference to `this` in order to allow method chaining
|
|
4748
4801
|
*/
|
|
4749
4802
|
destroySections(): this;
|
|
4803
|
+
/**
|
|
4804
|
+
* @since 1.118
|
|
4805
|
+
*
|
|
4806
|
+
* Detaches event handler `fnFunction` from the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
4807
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
4808
|
+
*
|
|
4809
|
+
* The passed function and listener object must match the ones used for event registration.
|
|
4810
|
+
*
|
|
4811
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
4812
|
+
*/
|
|
4813
|
+
detachBeforeNavigate(
|
|
4814
|
+
/**
|
|
4815
|
+
* The function to be called, when the event occurs
|
|
4816
|
+
*/
|
|
4817
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
4818
|
+
/**
|
|
4819
|
+
* Context object on which the given function had to be called
|
|
4820
|
+
*/
|
|
4821
|
+
oListener?: object
|
|
4822
|
+
): this;
|
|
4750
4823
|
/**
|
|
4751
4824
|
* Detaches event handler `fnFunction` from the {@link #event:editHeaderButtonPress editHeaderButtonPress }
|
|
4752
4825
|
* event of this `sap.uxap.ObjectPageLayout`.
|
|
@@ -4866,6 +4939,23 @@ declare module "sap/uxap/ObjectPageLayout" {
|
|
|
4866
4939
|
*/
|
|
4867
4940
|
oListener?: object
|
|
4868
4941
|
): this;
|
|
4942
|
+
/**
|
|
4943
|
+
* @since 1.118
|
|
4944
|
+
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
4945
|
+
*
|
|
4946
|
+
* Fires event {@link #event:beforeNavigate beforeNavigate} to attached listeners.
|
|
4947
|
+
*
|
|
4948
|
+
* Listeners may prevent the default action of this event by calling the `preventDefault` method on the
|
|
4949
|
+
* event object. The return value of this method indicates whether the default action should be executed.
|
|
4950
|
+
*
|
|
4951
|
+
* @returns Whether or not to prevent the default action
|
|
4952
|
+
*/
|
|
4953
|
+
fireBeforeNavigate(
|
|
4954
|
+
/**
|
|
4955
|
+
* Parameters to pass along with the event
|
|
4956
|
+
*/
|
|
4957
|
+
mParameters?: ObjectPageLayout$BeforeNavigateEventParameters
|
|
4958
|
+
): boolean;
|
|
4869
4959
|
/**
|
|
4870
4960
|
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
4871
4961
|
*
|
|
@@ -6258,6 +6348,14 @@ declare module "sap/uxap/ObjectPageLayout" {
|
|
|
6258
6348
|
*/
|
|
6259
6349
|
editHeaderButtonPress?: (oEvent: Event) => void;
|
|
6260
6350
|
|
|
6351
|
+
/**
|
|
6352
|
+
* @since 1.118
|
|
6353
|
+
*
|
|
6354
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
6355
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
6356
|
+
*/
|
|
6357
|
+
beforeNavigate?: (oEvent: ObjectPageLayout$BeforeNavigateEvent) => void;
|
|
6358
|
+
|
|
6261
6359
|
/**
|
|
6262
6360
|
* @since 1.40
|
|
6263
6361
|
*
|
|
@@ -6275,6 +6373,23 @@ declare module "sap/uxap/ObjectPageLayout" {
|
|
|
6275
6373
|
) => void;
|
|
6276
6374
|
}
|
|
6277
6375
|
|
|
6376
|
+
export interface ObjectPageLayout$BeforeNavigateEventParameters {
|
|
6377
|
+
/**
|
|
6378
|
+
* The selected section object.
|
|
6379
|
+
*/
|
|
6380
|
+
section?: ObjectPageSection;
|
|
6381
|
+
|
|
6382
|
+
/**
|
|
6383
|
+
* The selected subsection object.
|
|
6384
|
+
*/
|
|
6385
|
+
subSection?: ObjectPageSubSection;
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
export type ObjectPageLayout$BeforeNavigateEvent = Event<
|
|
6389
|
+
ObjectPageLayout$BeforeNavigateEventParameters,
|
|
6390
|
+
ObjectPageLayout
|
|
6391
|
+
>;
|
|
6392
|
+
|
|
6278
6393
|
export interface ObjectPageLayout$EditHeaderButtonPressEventParameters {}
|
|
6279
6394
|
|
|
6280
6395
|
export type ObjectPageLayout$EditHeaderButtonPressEvent = Event<
|