@openui5/ts-types 1.117.1 → 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 +414 -1
- package/types/sap.m.d.ts +205 -74
- 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 +994 -179
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +54 -3
- package/types/sap.ui.integration.d.ts +65 -1
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +424 -139
- 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 +176 -36
- 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 +75 -33
- 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,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.118.0
|
|
2
2
|
|
|
3
3
|
declare namespace sap {
|
|
4
4
|
namespace ui {
|
|
@@ -16,10 +16,20 @@ declare namespace sap {
|
|
|
16
16
|
* UI5 library: sap.ui.webc.common
|
|
17
17
|
*/
|
|
18
18
|
namespace common {
|
|
19
|
-
|
|
19
|
+
namespace WebComponent {
|
|
20
|
+
/**
|
|
21
|
+
* The structure of the "metadata" object which is passed when inheriting from sap.ui.core.Element using
|
|
22
|
+
* its static "extend" method. See {@link sap.ui.core.Element.extend} for details on its usage.
|
|
23
|
+
*/
|
|
24
|
+
type MetadataOptions = sap.ui.core.webc.WebComponent.MetadataOptions;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface $WebComponentSettings
|
|
28
|
+
extends sap.ui.core.webc.$WebComponentSettings {}
|
|
20
29
|
|
|
21
30
|
/**
|
|
22
31
|
* @since 1.92.0
|
|
32
|
+
* @deprecated (since 1.118.0) - Use sap.ui.core.webc.WebComponent instead!
|
|
23
33
|
* @experimental (since 1.92.0) - The API might change. It is not intended for productive usage yet!
|
|
24
34
|
*
|
|
25
35
|
* Base Class for Web Components. Web Components are agnostic UI elements which can be integrated into the
|
|
@@ -27,27 +37,76 @@ declare namespace sap {
|
|
|
27
37
|
* properties, the aggregations and the events. It also ensures to render the control and put the aggregated
|
|
28
38
|
* controls in the dedicated slots of the Web Component.
|
|
29
39
|
*/
|
|
30
|
-
class WebComponent extends sap.ui.core.
|
|
40
|
+
class WebComponent extends sap.ui.core.webc.WebComponent {
|
|
31
41
|
/**
|
|
32
42
|
* Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
|
|
33
|
-
*
|
|
34
|
-
* Accepts an object literal `mSettings` that defines initial property values, aggregated and associated
|
|
35
|
-
* objects as well as event handlers. See {@link sap.ui.base.ManagedObject#constructor} for a general description
|
|
36
|
-
* of the syntax of the settings object.
|
|
37
43
|
*/
|
|
38
|
-
constructor(
|
|
44
|
+
constructor(
|
|
45
|
+
/**
|
|
46
|
+
* Object with initial settings for the new control
|
|
47
|
+
*/
|
|
48
|
+
mSettings?: sap.ui.webc.common.$WebComponentSettings
|
|
49
|
+
);
|
|
50
|
+
/**
|
|
51
|
+
* Constructs and initializes a Web Component Wrapper with the given `sId` and settings.
|
|
52
|
+
*/
|
|
53
|
+
constructor(
|
|
54
|
+
/**
|
|
55
|
+
* Optional ID for the new control; generated automatically if no non-empty ID is given Note: this can be
|
|
56
|
+
* omitted, no matter whether `mSettings` will be given or not!
|
|
57
|
+
*/
|
|
58
|
+
sId?: string,
|
|
59
|
+
/**
|
|
60
|
+
* Object with initial settings for the new control
|
|
61
|
+
*/
|
|
62
|
+
mSettings?: sap.ui.webc.common.$WebComponentSettings
|
|
63
|
+
);
|
|
39
64
|
|
|
40
65
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
66
|
+
* Defines a new subclass of WebComponent with the name `sClassName` and enriches it with the information
|
|
67
|
+
* contained in `oClassInfo`.
|
|
68
|
+
*
|
|
69
|
+
* `oClassInfo` can contain the same information that {@link sap.ui.base.ManagedObject.extend} already accepts,
|
|
70
|
+
* plus the `dnd` property in the metadata object literal to configure drag-and-drop behavior (see {@link sap.ui.core.webc.WebComponent.MetadataOptions MetadataOptions }
|
|
71
|
+
* for details). Objects describing aggregations can also have a `dnd` property when used for a class extending
|
|
72
|
+
* `WebComponent` (see {@link sap.ui.base.ManagedObject.MetadataOptions.AggregationDnD AggregationDnD}).
|
|
73
|
+
*
|
|
74
|
+
* Example:
|
|
75
|
+
* ```javascript
|
|
76
|
+
*
|
|
77
|
+
* WebComponent.extend('sap.mylib.MyElement', {
|
|
78
|
+
* metadata : {
|
|
79
|
+
* library : 'sap.mylib',
|
|
80
|
+
* tag : 'my-webcomponent',
|
|
81
|
+
* properties : {
|
|
82
|
+
* value : 'string',
|
|
83
|
+
* width : {
|
|
84
|
+
* type: 'sap.ui.core.CSSSize',
|
|
85
|
+
* mapping: 'style'
|
|
86
|
+
* }
|
|
87
|
+
* },
|
|
88
|
+
* defaultAggregation: "content",
|
|
89
|
+
* aggregations : {
|
|
90
|
+
* content : {
|
|
91
|
+
* type: 'sap.ui.core.Control',
|
|
92
|
+
* multiple : true
|
|
93
|
+
* },
|
|
94
|
+
* header : {
|
|
95
|
+
* type : 'sap.ui.core.Control',
|
|
96
|
+
* multiple : false,
|
|
97
|
+
* slot: 'header'
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
43
103
|
*
|
|
44
|
-
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
|
|
45
104
|
*
|
|
46
105
|
* @returns Created class / constructor function
|
|
47
106
|
*/
|
|
48
107
|
static extend<T extends Record<string, unknown>>(
|
|
49
108
|
/**
|
|
50
|
-
* Name of the class
|
|
109
|
+
* Name of the class to be created
|
|
51
110
|
*/
|
|
52
111
|
sClassName: string,
|
|
53
112
|
/**
|
|
@@ -55,8 +114,7 @@ declare namespace sap {
|
|
|
55
114
|
*/
|
|
56
115
|
oClassInfo?: sap.ClassInfo<T, sap.ui.webc.common.WebComponent>,
|
|
57
116
|
/**
|
|
58
|
-
* Constructor function for the metadata object
|
|
59
|
-
* used by this class
|
|
117
|
+
* Constructor function for the metadata object. If not given, it defaults to `sap.ui.core.ElementMetadata`.
|
|
60
118
|
*/
|
|
61
119
|
FNMetaImpl?: Function
|
|
62
120
|
): Function;
|
|
@@ -69,9 +127,11 @@ declare namespace sap {
|
|
|
69
127
|
}
|
|
70
128
|
/**
|
|
71
129
|
* @since 1.92.0
|
|
130
|
+
* @deprecated (since 1.118.0) - Use sap.ui.core.webc.WebComponentMetadata instead!
|
|
72
131
|
* @experimental (since 1.92.0) - The API might change. It is not intended for productive usage yet!
|
|
73
132
|
*/
|
|
74
|
-
class WebComponentMetadata extends sap.ui.core.
|
|
133
|
+
class WebComponentMetadata extends sap.ui.core.webc
|
|
134
|
+
.WebComponentMetadata {
|
|
75
135
|
/**
|
|
76
136
|
* Creates a new metadata object for a WebComponent Wrapper subclass.
|
|
77
137
|
*/
|
|
@@ -85,24 +145,6 @@ declare namespace sap {
|
|
|
85
145
|
*/
|
|
86
146
|
oClassInfo: object
|
|
87
147
|
);
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Returns the list of public getters, proxied by the Component Wrapper to the component itself
|
|
91
|
-
*/
|
|
92
|
-
getGetters(): any[];
|
|
93
|
-
/**
|
|
94
|
-
* Returns the list of public methods, proxied by the Component Wrapper to the component itself
|
|
95
|
-
*/
|
|
96
|
-
getMethods(): any[];
|
|
97
|
-
/**
|
|
98
|
-
* Retrieves the renderer for the described web component class. Note: this is always the default renderer
|
|
99
|
-
* and Web Component wrappers should not define their own renderers.
|
|
100
|
-
*/
|
|
101
|
-
getRenderer(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Returns the tag, used to render the Component Wrapper
|
|
104
|
-
*/
|
|
105
|
-
getTag(): string;
|
|
106
148
|
}
|
|
107
149
|
}
|
|
108
150
|
}
|
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 namespace sap {
|
|
4
4
|
/**
|
|
@@ -1006,6 +1006,14 @@ declare namespace sap {
|
|
|
1006
1006
|
*/
|
|
1007
1007
|
editHeaderButtonPress?: (oEvent: sap.ui.base.Event) => void;
|
|
1008
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* @since 1.118
|
|
1011
|
+
*
|
|
1012
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
1013
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
1014
|
+
*/
|
|
1015
|
+
beforeNavigate?: (oEvent: ObjectPageLayout$BeforeNavigateEvent) => void;
|
|
1016
|
+
|
|
1009
1017
|
/**
|
|
1010
1018
|
* @since 1.40
|
|
1011
1019
|
*
|
|
@@ -1257,6 +1265,18 @@ declare namespace sap {
|
|
|
1257
1265
|
domRef?: string;
|
|
1258
1266
|
}
|
|
1259
1267
|
|
|
1268
|
+
interface ObjectPageLayout$BeforeNavigateEventParameters {
|
|
1269
|
+
/**
|
|
1270
|
+
* The selected section object.
|
|
1271
|
+
*/
|
|
1272
|
+
section?: sap.uxap.ObjectPageSection;
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* The selected subsection object.
|
|
1276
|
+
*/
|
|
1277
|
+
subSection?: sap.uxap.ObjectPageSubSection;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1260
1280
|
interface ObjectPageLayout$EditHeaderButtonPressEventParameters {}
|
|
1261
1281
|
|
|
1262
1282
|
interface ObjectPageLayout$HeaderContentPinnedStateChangeEventParameters {
|
|
@@ -4775,6 +4795,59 @@ declare namespace sap {
|
|
|
4775
4795
|
*/
|
|
4776
4796
|
oSection: sap.uxap.ObjectPageSection
|
|
4777
4797
|
): this;
|
|
4798
|
+
/**
|
|
4799
|
+
* @since 1.118
|
|
4800
|
+
*
|
|
4801
|
+
* Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
4802
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
4803
|
+
*
|
|
4804
|
+
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
|
|
4805
|
+
* otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
|
|
4806
|
+
*
|
|
4807
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
4808
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
4809
|
+
*
|
|
4810
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
4811
|
+
*/
|
|
4812
|
+
attachBeforeNavigate(
|
|
4813
|
+
/**
|
|
4814
|
+
* An application-specific payload object that will be passed to the event handler along with the event
|
|
4815
|
+
* object when firing the event
|
|
4816
|
+
*/
|
|
4817
|
+
oData: object,
|
|
4818
|
+
/**
|
|
4819
|
+
* The function to be called when the event occurs
|
|
4820
|
+
*/
|
|
4821
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
4822
|
+
/**
|
|
4823
|
+
* Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
|
|
4824
|
+
*/
|
|
4825
|
+
oListener?: object
|
|
4826
|
+
): this;
|
|
4827
|
+
/**
|
|
4828
|
+
* @since 1.118
|
|
4829
|
+
*
|
|
4830
|
+
* Attaches event handler `fnFunction` to the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
4831
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
4832
|
+
*
|
|
4833
|
+
* When called, the context of the event handler (its `this`) will be bound to `oListener` if specified,
|
|
4834
|
+
* otherwise it will be bound to this `sap.uxap.ObjectPageLayout` itself.
|
|
4835
|
+
*
|
|
4836
|
+
* The event is fired before the selected section is changed using the navigation. This event can be aborted
|
|
4837
|
+
* by the application with preventDefault(), which means that there will be no navigation.
|
|
4838
|
+
*
|
|
4839
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
4840
|
+
*/
|
|
4841
|
+
attachBeforeNavigate(
|
|
4842
|
+
/**
|
|
4843
|
+
* The function to be called when the event occurs
|
|
4844
|
+
*/
|
|
4845
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
4846
|
+
/**
|
|
4847
|
+
* Context object to call the event handler with. Defaults to this `sap.uxap.ObjectPageLayout` itself
|
|
4848
|
+
*/
|
|
4849
|
+
oListener?: object
|
|
4850
|
+
): this;
|
|
4778
4851
|
/**
|
|
4779
4852
|
* Attaches event handler `fnFunction` to the {@link #event:editHeaderButtonPress editHeaderButtonPress }
|
|
4780
4853
|
* event of this `sap.uxap.ObjectPageLayout`.
|
|
@@ -5111,6 +5184,26 @@ declare namespace sap {
|
|
|
5111
5184
|
* @returns Reference to `this` in order to allow method chaining
|
|
5112
5185
|
*/
|
|
5113
5186
|
destroySections(): this;
|
|
5187
|
+
/**
|
|
5188
|
+
* @since 1.118
|
|
5189
|
+
*
|
|
5190
|
+
* Detaches event handler `fnFunction` from the {@link #event:beforeNavigate beforeNavigate} event of this
|
|
5191
|
+
* `sap.uxap.ObjectPageLayout`.
|
|
5192
|
+
*
|
|
5193
|
+
* The passed function and listener object must match the ones used for event registration.
|
|
5194
|
+
*
|
|
5195
|
+
* @returns Reference to `this` in order to allow method chaining
|
|
5196
|
+
*/
|
|
5197
|
+
detachBeforeNavigate(
|
|
5198
|
+
/**
|
|
5199
|
+
* The function to be called, when the event occurs
|
|
5200
|
+
*/
|
|
5201
|
+
fnFunction: (p1: ObjectPageLayout$BeforeNavigateEvent) => void,
|
|
5202
|
+
/**
|
|
5203
|
+
* Context object on which the given function had to be called
|
|
5204
|
+
*/
|
|
5205
|
+
oListener?: object
|
|
5206
|
+
): this;
|
|
5114
5207
|
/**
|
|
5115
5208
|
* Detaches event handler `fnFunction` from the {@link #event:editHeaderButtonPress editHeaderButtonPress }
|
|
5116
5209
|
* event of this `sap.uxap.ObjectPageLayout`.
|
|
@@ -5230,6 +5323,23 @@ declare namespace sap {
|
|
|
5230
5323
|
*/
|
|
5231
5324
|
oListener?: object
|
|
5232
5325
|
): this;
|
|
5326
|
+
/**
|
|
5327
|
+
* @since 1.118
|
|
5328
|
+
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
5329
|
+
*
|
|
5330
|
+
* Fires event {@link #event:beforeNavigate beforeNavigate} to attached listeners.
|
|
5331
|
+
*
|
|
5332
|
+
* Listeners may prevent the default action of this event by calling the `preventDefault` method on the
|
|
5333
|
+
* event object. The return value of this method indicates whether the default action should be executed.
|
|
5334
|
+
*
|
|
5335
|
+
* @returns Whether or not to prevent the default action
|
|
5336
|
+
*/
|
|
5337
|
+
fireBeforeNavigate(
|
|
5338
|
+
/**
|
|
5339
|
+
* Parameters to pass along with the event
|
|
5340
|
+
*/
|
|
5341
|
+
mParameters?: sap.uxap.ObjectPageLayout$BeforeNavigateEventParameters
|
|
5342
|
+
): boolean;
|
|
5233
5343
|
/**
|
|
5234
5344
|
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
5235
5345
|
*
|
|
@@ -7542,6 +7652,11 @@ declare namespace sap {
|
|
|
7542
7652
|
ObjectPageHeader
|
|
7543
7653
|
>;
|
|
7544
7654
|
|
|
7655
|
+
type ObjectPageLayout$BeforeNavigateEvent = sap.ui.base.Event<
|
|
7656
|
+
ObjectPageLayout$BeforeNavigateEventParameters,
|
|
7657
|
+
ObjectPageLayout
|
|
7658
|
+
>;
|
|
7659
|
+
|
|
7545
7660
|
type ObjectPageLayout$EditHeaderButtonPressEvent = sap.ui.base.Event<
|
|
7546
7661
|
ObjectPageLayout$EditHeaderButtonPressEventParameters,
|
|
7547
7662
|
ObjectPageLayout
|