@sapui5/types 1.144.0 → 1.145.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.apf.d.ts +1 -1
- package/types/sap.ca.ui.d.ts +1 -1
- package/types/sap.chart.d.ts +1 -1
- package/types/sap.collaboration.d.ts +1 -1
- package/types/sap.esh.search.ui.d.ts +110 -85
- package/types/sap.f.d.ts +1 -1
- package/types/sap.fe.ariba.d.ts +1 -1
- package/types/sap.fe.base.d.ts +342 -21
- package/types/sap.fe.controls.d.ts +1 -1
- package/types/sap.fe.core.d.ts +188 -4
- package/types/sap.fe.ina.d.ts +1 -1
- package/types/sap.fe.macros.d.ts +853 -203
- package/types/sap.fe.navigation.d.ts +1 -1
- package/types/sap.fe.placeholder.d.ts +1 -1
- package/types/sap.fe.plugins.managecache.d.ts +1 -1
- package/types/sap.fe.templates.d.ts +12 -1
- package/types/sap.fe.test.d.ts +150 -1
- package/types/sap.fe.tools.d.ts +1 -1
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +128 -1
- package/types/sap.insights.d.ts +1 -1
- package/types/sap.m.d.ts +29 -12
- package/types/sap.makit.d.ts +1 -1
- package/types/sap.me.d.ts +1 -1
- package/types/sap.ndc.d.ts +1 -1
- package/types/sap.ovp.d.ts +31 -2
- package/types/sap.rules.ui.d.ts +1 -1
- package/types/sap.sac.df.d.ts +1 -1
- package/types/sap.suite.ui.commons.d.ts +230 -15
- package/types/sap.suite.ui.generic.template.d.ts +46 -1
- package/types/sap.suite.ui.microchart.d.ts +2 -1
- package/types/sap.tnt.d.ts +19 -11
- package/types/sap.ui.codeeditor.d.ts +1 -1
- package/types/sap.ui.commons.d.ts +1 -1
- package/types/sap.ui.comp.d.ts +73 -2
- package/types/sap.ui.core.d.ts +140 -99
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.export.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +5 -1
- package/types/sap.ui.generic.app.d.ts +1 -1
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.geomap.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +1 -1
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +378 -50
- package/types/sap.ui.richtexteditor.d.ts +29 -7
- package/types/sap.ui.rta.d.ts +1 -1
- 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 +7 -1
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +39 -1
- package/types/sap.ui.ux3.d.ts +1 -1
- package/types/sap.ui.vbm.d.ts +1 -1
- package/types/sap.ui.vk.d.ts +168 -1
- package/types/sap.ui.vtm.d.ts +1 -1
- package/types/sap.ui.webc.common.d.ts +1 -1
- package/types/sap.ui.webc.fiori.d.ts +1 -1
- package/types/sap.ui.webc.main.d.ts +1 -1
- package/types/sap.uiext.inbox.d.ts +1 -1
- package/types/sap.ushell.d.ts +5 -1
- package/types/sap.ushell_abap.d.ts +1 -1
- package/types/sap.uxap.d.ts +18 -8
- package/types/sap.viz.d.ts +1 -1
- package/types/sap.webanalytics.core.d.ts +1 -1
- package/types/sap.zen.commons.d.ts +1 -1
- package/types/sap.zen.crosstab.d.ts +1 -1
- package/types/sap.zen.dsh.d.ts +1 -1
package/types/sap.fe.base.d.ts
CHANGED
|
@@ -1,28 +1,349 @@
|
|
|
1
|
-
//
|
|
1
|
+
// This is autogenerated, do not edit
|
|
2
|
+
|
|
3
|
+
declare module "sap/fe/base/library" {
|
|
4
|
+
// Public Exports
|
|
5
|
+
/**
|
|
6
|
+
* Library providing the base functionality of the runtime for SAP Fiori elements for OData V4.
|
|
7
|
+
* @namespace
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export const feBaseNamespace = "sap.fe.base";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module "sap/fe/base/ClassSupport" {
|
|
14
|
+
import type { $ControlSettings } from "sap/ui/core/Control";
|
|
15
|
+
import type ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
|
|
16
|
+
import type OverrideExecution from "sap/ui/core/mvc/OverrideExecution";
|
|
17
|
+
|
|
18
|
+
type OverrideDefinition = Record<string, Function>;
|
|
19
|
+
type UI5ControllerMethodDefinition = {
|
|
20
|
+
overrideExecution?: OverrideExecution;
|
|
21
|
+
public?: boolean;
|
|
22
|
+
final?: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type UI5ControlMetadataDefinition = {
|
|
26
|
+
defaultAggregation?: string;
|
|
27
|
+
controllerExtensions: Record<string, typeof ControllerExtension | Function>;
|
|
28
|
+
properties: Record<string, UI5PropertyMetadata>;
|
|
29
|
+
aggregations: Record<string, UI5AggregationMetadata>;
|
|
30
|
+
references: Record<string, boolean>;
|
|
31
|
+
associations: Record<string, UI5AssociationMetadata>;
|
|
32
|
+
methods: Record<string, UI5ControllerMethodDefinition>;
|
|
33
|
+
events: Record<string, {}>;
|
|
34
|
+
interfaces: string[];
|
|
35
|
+
library?: string;
|
|
36
|
+
designtime?: string;
|
|
37
|
+
config?: {
|
|
38
|
+
fullWidth?: boolean;
|
|
39
|
+
};
|
|
40
|
+
stateProperty?: string;
|
|
41
|
+
statePropertyDefaultValue?: unknown;
|
|
42
|
+
manifest?: string | unknown;
|
|
43
|
+
returnTypes?: string[];
|
|
44
|
+
buildingBlockMetadata?: unknown;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
type ExtendWithObject<T, K> = T extends object ? K & { [TKey in keyof T]?: BindingInfoHolder<T[TKey]> } : K;
|
|
48
|
+
|
|
49
|
+
export type BindingInfoHolder<T> = T & {
|
|
50
|
+
__bindingInfo: {
|
|
51
|
+
path: string;
|
|
52
|
+
model: string;
|
|
53
|
+
type: T;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type ControlPropertyNames<T> = {
|
|
58
|
+
// needed because of the TS compiler
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
|
+
[K in keyof T]: T[K] extends Function ? never : K;
|
|
61
|
+
}[keyof T];
|
|
62
|
+
// Public Type Definitions
|
|
63
|
+
/**
|
|
64
|
+
* Definition of a UI5 property metadata.
|
|
65
|
+
* @public
|
|
66
|
+
* @ui5-experimental-since 1.145.0
|
|
67
|
+
*/
|
|
68
|
+
export type UI5PropertyMetadata = {
|
|
69
|
+
type: string;
|
|
70
|
+
bindable?: boolean;
|
|
71
|
+
required?: boolean;
|
|
72
|
+
group?: string;
|
|
73
|
+
defaultValue?: unknown;
|
|
74
|
+
byValue?: boolean;
|
|
75
|
+
isBindingInfo?: boolean;
|
|
76
|
+
bindToState?: boolean;
|
|
77
|
+
expectedAnnotations?: string[];
|
|
78
|
+
expectedTypes?: string[];
|
|
79
|
+
allowedValues?: string[];
|
|
80
|
+
visibility?: string;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Definition of a UI5 aggregation metadata.
|
|
84
|
+
* @public
|
|
85
|
+
* @ui5-experimental-since 1.145.0
|
|
86
|
+
*/
|
|
87
|
+
export type UI5AggregationMetadata = {
|
|
88
|
+
type: string;
|
|
89
|
+
altTypes?: string[];
|
|
90
|
+
multiple?: boolean;
|
|
91
|
+
isDefault?: boolean;
|
|
92
|
+
defaultValue?: unknown;
|
|
93
|
+
defaultClass?: unknown;
|
|
94
|
+
singularName?: string;
|
|
95
|
+
visibility?: string;
|
|
96
|
+
forwarding?: object;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Definition of a UI5 association metadata.
|
|
100
|
+
* @public
|
|
101
|
+
* @ui5-experimental-since 1.145.0
|
|
102
|
+
*/
|
|
103
|
+
export type UI5AssociationMetadata = {
|
|
104
|
+
type: string;
|
|
105
|
+
multiple?: boolean;
|
|
106
|
+
singularName?: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Returns the properties of a control.
|
|
110
|
+
* @public
|
|
111
|
+
* @ui5-experimental-since 1.145.0
|
|
112
|
+
*/
|
|
113
|
+
export type PropertiesOf<T, K extends keyof T | undefined = undefined> = Partial<Pick<T, ControlPropertyNames<T>>> &
|
|
114
|
+
(K extends keyof T ? Partial<Pick<T, K>> : {}) &
|
|
115
|
+
$ControlSettings;
|
|
116
|
+
/**
|
|
117
|
+
* Represents the state object of a building block.
|
|
118
|
+
* @public
|
|
119
|
+
* @ui5-experimental-since 1.145.0
|
|
120
|
+
*/
|
|
121
|
+
export type StateOf<T> = {
|
|
122
|
+
[K in keyof T]: T[K] extends Array<infer U> | ReadonlyArray<infer U> ? ExtendWithObject<U, ReadonlyArray<U>> : T[K];
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// Public Exports
|
|
126
|
+
/**
|
|
127
|
+
* Collection of decorators to support the creation of UI5 classes.
|
|
128
|
+
* @namespace
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export const classSupportNamespace = "sap.fe.base.ClassSupport";
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Allows to define a property that will hold the control state.
|
|
135
|
+
*
|
|
136
|
+
* Properties defined with this decorator will be automatically bound to the control state when used in JSX.
|
|
137
|
+
* Arrays need to be bound using the `bindState` function.
|
|
138
|
+
* @public
|
|
139
|
+
* @ui5-experimental-since 1.145.0
|
|
140
|
+
* @returns A property decorator
|
|
141
|
+
*/
|
|
142
|
+
export function defineState(): PropertyDecorator;
|
|
143
|
+
|
|
144
|
+
/* #endregion */
|
|
145
|
+
|
|
146
|
+
/* #region CONTROL */
|
|
147
|
+
/**
|
|
148
|
+
* Indicates that the property shall be declared as an event on the control metadata.
|
|
149
|
+
* @returns The decorated property
|
|
150
|
+
* @public
|
|
151
|
+
* @ui5-experimental-since 1.145.0
|
|
152
|
+
*/
|
|
153
|
+
export function event(): PropertyDecorator;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Defines the following property as a managed object in the control metadata.
|
|
157
|
+
* @param attributeDefinition The property definition
|
|
158
|
+
* @returns The decorated property.
|
|
159
|
+
* @public
|
|
160
|
+
* @ui5-experimental-since 1.145.0
|
|
161
|
+
*/
|
|
162
|
+
export function property(attributeDefinition: UI5PropertyMetadata): PropertyDecorator;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Defines and configures the following aggregation in the control metadata.
|
|
166
|
+
* @param aggregationDefinition The aggregation definition
|
|
167
|
+
* @returns The decorated property.
|
|
168
|
+
* @public
|
|
169
|
+
* @ui5-experimental-since 1.145.0
|
|
170
|
+
*/
|
|
171
|
+
export function aggregation(aggregationDefinition: UI5AggregationMetadata): PropertyDecorator;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Defines and configures the following association in the control metadata.
|
|
175
|
+
* @param ui5AssociationMetadata The definition of the association.
|
|
176
|
+
* @returns The decorated property
|
|
177
|
+
* @public
|
|
178
|
+
* @ui5-experimental-since 1.145.0
|
|
179
|
+
*/
|
|
180
|
+
export function association(ui5AssociationMetadata: UI5AssociationMetadata): PropertyDecorator;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Defines in the metadata that this control implements a specific interface.
|
|
184
|
+
* @param interfaceName The name of the implemented interface
|
|
185
|
+
* @returns The decorated method
|
|
186
|
+
* @public
|
|
187
|
+
* @ui5-experimental-since 1.144.0
|
|
188
|
+
*/
|
|
189
|
+
export function implementInterface(interfaceName: string): PropertyDecorator;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Indicates that the following class should define a UI5 control of the specified name.
|
|
193
|
+
* @param target The fully qualified name of the UI5 class
|
|
194
|
+
* @param metadataDefinition Additional inline metadata definition
|
|
195
|
+
* @returns A class decorator that will create a ui5 class out of the TS class
|
|
196
|
+
* @public
|
|
197
|
+
* @ui5-experimental-since 1.145.0
|
|
198
|
+
*/
|
|
199
|
+
export function defineUI5Class(target: string, metadataDefinition?: Partial<UI5ControlMetadataDefinition>): ClassDecorator;
|
|
200
|
+
}
|
|
2
201
|
|
|
3
202
|
declare module "sap/fe/base/BuildingBlockBase" {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
203
|
+
import type { BindingToolkitExpression, PrimitiveType } from "sap/fe/base/BindingToolkit";
|
|
204
|
+
import type { StateOf } from "sap/fe/base/ClassSupport";
|
|
205
|
+
import type { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
206
|
+
import type Control from "sap/ui/core/Control";
|
|
207
|
+
import { $ControlSettings } from "sap/ui/core/Control";
|
|
208
|
+
import type UI5Element from "sap/ui/core/Element";
|
|
209
|
+
import type { AccessibilityInfo } from "sap/ui/core/library";
|
|
210
|
+
import type RenderManager from "sap/ui/core/RenderManager";
|
|
211
|
+
import type Context from "sap/ui/model/Context";
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Describes the settings that can be provided to the BuildingBlockBase constructor.
|
|
215
|
+
*/
|
|
216
|
+
export interface $BuildingBlockBaseSettings<K = {}> extends $ControlSettings {
|
|
217
|
+
/**
|
|
218
|
+
* The current state value of the component.
|
|
219
|
+
* This property holds the state data managed by the component, with the type
|
|
220
|
+
* determined by the generic parameter K.
|
|
221
|
+
*/
|
|
222
|
+
state?: StateOf<K> | PropertyBindingInfo | `{${string}}`;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Optional content of generic type T.
|
|
226
|
+
* This property holds the main data or payload for the containing object.
|
|
227
|
+
* When undefined, it indicates that no content has been set or is available.
|
|
228
|
+
* The specific type and structure of the content depends on the generic type parameter T.
|
|
229
|
+
*/
|
|
230
|
+
content?: UI5Element;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Association to controls / IDs that label this control (see WAI-ARIA attribute aria-labelledby).
|
|
234
|
+
*/
|
|
235
|
+
ariaLabelledBy?: Control | string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Public Classes
|
|
239
|
+
/**
|
|
240
|
+
* Base class for building blocks.
|
|
241
|
+
* This contains the low-level functionality of having a content aggregation and handling the rendering of the content without an actual DOM element.<br/>
|
|
242
|
+
* The building block also defines a state object that can be used to store the state of the building block.<br/>
|
|
243
|
+
* Accessibility and classes information are forwarded to the content control.<br/>
|
|
244
|
+
* This class is not meant to be used directly, it's there for internal use only (and documentation)
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
class BuildingBlockBase<T extends UI5Element = Control, K extends object = {}> extends Control {
|
|
248
|
+
/**
|
|
249
|
+
* Optional content of generic type T.
|
|
250
|
+
*
|
|
251
|
+
* This property holds the main data or payload for the containing object.
|
|
252
|
+
* When undefined, it indicates that no content has been set or is available.
|
|
253
|
+
* The specific type and structure of the content depends on the generic type parameter T.
|
|
254
|
+
* @public
|
|
255
|
+
*/
|
|
256
|
+
content?: T;
|
|
257
|
+
|
|
258
|
+
getContent(): T;
|
|
259
|
+
|
|
260
|
+
setContent(content: T): this;
|
|
261
|
+
|
|
262
|
+
destroyContent(): this;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Association to controls / IDs that label this control (see WAI-ARIA attribute aria-labelledby).
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
ariaLabelledBy: string[];
|
|
269
|
+
|
|
270
|
+
getAriaLabelledBy(): string[];
|
|
271
|
+
|
|
272
|
+
setAriaLabelledBy(ariaLabelledBy: string[]): this;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The current state value of the component.
|
|
276
|
+
*
|
|
277
|
+
* This property holds the state data managed by the component, with the type
|
|
278
|
+
* determined by the generic parameter K.
|
|
279
|
+
* @public
|
|
280
|
+
*/
|
|
281
|
+
state: StateOf<K>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Shorthand for the BindingToolkit.bindState function with the current state object.
|
|
285
|
+
* @param path A property in the state object
|
|
286
|
+
* @returns The binding toolkit expression for the state
|
|
287
|
+
* @public
|
|
288
|
+
* @ui5-experimental-since 1.145.0
|
|
289
|
+
*/
|
|
290
|
+
public bindState<ST extends PrimitiveType>(path: keyof K): BindingToolkitExpression<ST>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Synchronizes a state property with another building block's state property.
|
|
294
|
+
* @param propName Name of the property in the current state object
|
|
295
|
+
* @param source The source building block
|
|
296
|
+
* @param property The property in the source building block's state object
|
|
297
|
+
*/
|
|
298
|
+
public syncStateProperty(propName: string, source: BuildingBlockBase, property: string): void;
|
|
299
|
+
|
|
300
|
+
onStateChange(_changedProps: string[]): void;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export default BuildingBlockBase;
|
|
18
304
|
}
|
|
19
305
|
|
|
20
|
-
declare module "sap/fe/base/
|
|
306
|
+
declare module "sap/fe/base/BindingToolkit" {
|
|
307
|
+
// Public Exports
|
|
308
|
+
/**
|
|
309
|
+
* Collection of functions to support the manipulation of ui5 bindings
|
|
310
|
+
* @public
|
|
311
|
+
* @namespace
|
|
312
|
+
* @ui5-experimental-since 1.145.0
|
|
313
|
+
*/
|
|
314
|
+
export const bindingToolkitNamespace = "sap.fe.base.BindingToolkit";
|
|
315
|
+
}
|
|
21
316
|
|
|
22
|
-
declare namespace
|
|
23
|
-
|
|
24
|
-
|
|
317
|
+
declare namespace JSX {
|
|
318
|
+
export type CommandProperties = `cmd:${string}|${string}`;
|
|
319
|
+
export type Ref<T> = {
|
|
320
|
+
current?: T;
|
|
321
|
+
setCurrent(oControlInstance: T): void;
|
|
322
|
+
};
|
|
323
|
+
interface IntrinsicElements {
|
|
324
|
+
div: { id?: string; class?: string; ref?: Ref<never>; tabindex?: number; role?: string };
|
|
325
|
+
span: { id?: string; class?: string; ref?: Ref<never>; role?: string };
|
|
326
|
+
slot: { name: string };
|
|
327
|
+
}
|
|
328
|
+
interface IntrinsicClassAttributes<T> {
|
|
329
|
+
id?: string;
|
|
330
|
+
class?: string;
|
|
331
|
+
binding?: string | Record<string, string>;
|
|
332
|
+
["xmlns:fl"]?: string;
|
|
333
|
+
["core:require"]?: string;
|
|
334
|
+
["log:sourcePath"]?: string;
|
|
335
|
+
["customData:entityType"]?: string;
|
|
336
|
+
["fl:delegate"]?: string | { name: string; delegateType: string };
|
|
337
|
+
["dt:designtime"]?: string | { name: string; delegateType: string };
|
|
338
|
+
["fl:flexibility"]?: string;
|
|
339
|
+
ref?: Ref<T>;
|
|
340
|
+
["jsx:command"]?: CommandProperties;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
25
343
|
|
|
26
|
-
|
|
27
|
-
|
|
344
|
+
declare module "sap/fe/base/BindingToolkit" {
|
|
345
|
+
export type PathInModelExpression<K> = never;
|
|
346
|
+
export type ConstantExpression<K> = never;
|
|
347
|
+
export type BindingToolkitExpression<K> = never;
|
|
348
|
+
export type PrimitiveType = string | number | bigint | boolean | object | null | undefined;
|
|
28
349
|
}
|
package/types/sap.fe.core.d.ts
CHANGED
|
@@ -418,7 +418,7 @@ declare module "sap/fe/core/controllerextensions/BaseControllerExtension" {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
// For Library Version: 1.
|
|
421
|
+
// For Library Version: 1.145.0
|
|
422
422
|
|
|
423
423
|
declare module "sap/fe/core/AppComponent" {
|
|
424
424
|
import {
|
|
@@ -800,6 +800,167 @@ declare module "sap/fe/core/PageController" {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
+
declare module "sap/fe/core/ReuseComponent" {
|
|
804
|
+
import {
|
|
805
|
+
default as Component,
|
|
806
|
+
$ComponentSettings,
|
|
807
|
+
} from "sap/fe/core/fpm/Component";
|
|
808
|
+
|
|
809
|
+
import Event from "sap/ui/base/Event";
|
|
810
|
+
|
|
811
|
+
import ExtensionAPI from "sap/fe/core/ExtensionAPI";
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Base component for reuse compontents in SAP Fiori elements.
|
|
815
|
+
* By extending from this component you get access to the extension API of the page component
|
|
816
|
+
* and get native support for SAP Fiori elements building blocks.
|
|
817
|
+
*
|
|
818
|
+
*
|
|
819
|
+
* @since 1.145.0
|
|
820
|
+
*/
|
|
821
|
+
export default class ReuseComponent extends Component {
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @returns Reference to sap.fe.core.ReuseComponent
|
|
825
|
+
* to allow method chaining
|
|
826
|
+
*/
|
|
827
|
+
attachInitialized(
|
|
828
|
+
/**
|
|
829
|
+
* An application-specific payload object that will be passed to the event handler along with the event
|
|
830
|
+
* object when firing the event
|
|
831
|
+
*/
|
|
832
|
+
oData: object,
|
|
833
|
+
/**
|
|
834
|
+
* The function to be called when the event occurs
|
|
835
|
+
*/
|
|
836
|
+
fnFunction: (p1: Event) => void,
|
|
837
|
+
/**
|
|
838
|
+
* The context object to call the event handler with. Defaults to this `this` control
|
|
839
|
+
*/
|
|
840
|
+
oListener?: object
|
|
841
|
+
): this;
|
|
842
|
+
/**
|
|
843
|
+
*
|
|
844
|
+
* @returns Reference to sap.fe.core.ReuseComponent
|
|
845
|
+
* to allow method chaining
|
|
846
|
+
*/
|
|
847
|
+
attachInitialized(
|
|
848
|
+
/**
|
|
849
|
+
* The function to be called when the event occurs
|
|
850
|
+
*/
|
|
851
|
+
fnFunction: (p1: Event) => void,
|
|
852
|
+
/**
|
|
853
|
+
* The context object to call the event handler with. Defaults to this `this` control
|
|
854
|
+
*/
|
|
855
|
+
oListener?: object
|
|
856
|
+
): this;
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @returns Reference to sap.fe.core.ReuseComponent
|
|
860
|
+
* to allow method chaining
|
|
861
|
+
*/
|
|
862
|
+
detachInitialized(
|
|
863
|
+
/**
|
|
864
|
+
* The function to be called when the event occurs
|
|
865
|
+
*/
|
|
866
|
+
fnFunction: (p1: Event) => void,
|
|
867
|
+
/**
|
|
868
|
+
* The context object to call the event handler with. Defaults to this `this` control
|
|
869
|
+
*/
|
|
870
|
+
oListener?: object
|
|
871
|
+
): this;
|
|
872
|
+
/**
|
|
873
|
+
* Fires event initialized
|
|
874
|
+
* to attached listeners.
|
|
875
|
+
*
|
|
876
|
+
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
877
|
+
*
|
|
878
|
+
* @returns Reference to sap.fe.core.ReuseComponent
|
|
879
|
+
* to allow method chaining
|
|
880
|
+
*/
|
|
881
|
+
fireInitialized(
|
|
882
|
+
/**
|
|
883
|
+
* The parameters to pass along with the event.
|
|
884
|
+
* See {@link Function} for the set of parameters that are expected by the event handlers.
|
|
885
|
+
*/
|
|
886
|
+
mParameters?: {}
|
|
887
|
+
): this;
|
|
888
|
+
/**
|
|
889
|
+
* Returns the extension API of the page component that owns the reuse component.
|
|
890
|
+
*
|
|
891
|
+
*
|
|
892
|
+
* @returns The extension API
|
|
893
|
+
*/
|
|
894
|
+
getExtensionAPI(): ExtensionAPI;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Describes the settings that can be provided to the ReuseComponent constructor.
|
|
898
|
+
*/
|
|
899
|
+
export interface $ReuseComponentSettings extends $ComponentSettings {
|
|
900
|
+
/**
|
|
901
|
+
* Event that is fired once the component is initialized
|
|
902
|
+
*/
|
|
903
|
+
initialized?: (oEvent: Event) => void;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Parameters of the ReuseComponent#initialized event.
|
|
908
|
+
*/
|
|
909
|
+
export interface ReuseComponent$InitializedEventParameters {}
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Event object of the ReuseComponent#initialized event.
|
|
913
|
+
*/
|
|
914
|
+
export type ReuseComponent$InitializedEvent = Event<
|
|
915
|
+
ReuseComponent$InitializedEventParameters,
|
|
916
|
+
ReuseComponent
|
|
917
|
+
>;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
declare module "sap/fe/core/TemplateComponent" {
|
|
921
|
+
import {
|
|
922
|
+
default as UIComponent,
|
|
923
|
+
$UIComponentSettings,
|
|
924
|
+
} from "sap/ui/core/UIComponent";
|
|
925
|
+
|
|
926
|
+
import { IAsyncContentCreation } from "sap/ui/core/library";
|
|
927
|
+
|
|
928
|
+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Base component for SAP Fiori elements floorplans.
|
|
932
|
+
* This component provides as foundation for all SAP Fiori elements page types, and shall not be used directly.
|
|
933
|
+
*
|
|
934
|
+
*
|
|
935
|
+
* @since 1.145.0
|
|
936
|
+
*/
|
|
937
|
+
export default class TemplateComponent
|
|
938
|
+
extends UIComponent
|
|
939
|
+
implements
|
|
940
|
+
IAsyncContentCreation,
|
|
941
|
+
/* was: sap.fe.core.buildingBlocks.IBuildingBlockOwnerComponent.IBuildingBlockOwnerComponent */ Object
|
|
942
|
+
{
|
|
943
|
+
__implements__sap_ui_core_IAsyncContentCreation: boolean;
|
|
944
|
+
__implements__sap_fe_core_buildingBlocks_IBuildingBlockOwnerComponent_IBuildingBlockOwnerComponent: boolean;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Describes the settings that can be provided to the TemplateComponent constructor.
|
|
948
|
+
*/
|
|
949
|
+
export interface $TemplateComponentSettings extends $UIComponentSettings {
|
|
950
|
+
/**
|
|
951
|
+
* Defines the path of the context used in the current page.
|
|
952
|
+
*/
|
|
953
|
+
contextPath?: string | PropertyBindingInfo;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Enhance the i18n bundle used for this page with one or more app specific i18n resource bundles or resource
|
|
957
|
+
* models
|
|
958
|
+
* or a combination of both. The last resource bundle or model is given the highest priority.
|
|
959
|
+
*/
|
|
960
|
+
enhanceI18n?: string[] | PropertyBindingInfo | `{${string}}`;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
803
964
|
declare module "sap/fe/core/buildingBlocks/BuildingBlock" {
|
|
804
965
|
import {
|
|
805
966
|
default as BuildingBlockBase,
|
|
@@ -1148,6 +1309,10 @@ declare module "sap/fe/core/controllerextensions/EditFlow" {
|
|
|
1148
1309
|
* provided
|
|
1149
1310
|
*/
|
|
1150
1311
|
contexts?: Context | Context[];
|
|
1312
|
+
/**
|
|
1313
|
+
* Disables strict handling of action calls to turn off 412 confirmation popups
|
|
1314
|
+
*/
|
|
1315
|
+
disableStrictHandling?: boolean;
|
|
1151
1316
|
/**
|
|
1152
1317
|
* Mode how actions are to be called: 'ChangeSet' to put all action calls into one changeset, 'Isolated'
|
|
1153
1318
|
* to put them into separate changesets
|
|
@@ -2156,8 +2321,15 @@ declare module "sap/fe/core/converters/ManifestSettings" {
|
|
|
2156
2321
|
}
|
|
2157
2322
|
|
|
2158
2323
|
declare module "sap/fe/core/fpm/Component" {
|
|
2324
|
+
import {
|
|
2325
|
+
default as TemplateComponent,
|
|
2326
|
+
$TemplateComponentSettings,
|
|
2327
|
+
} from "sap/fe/core/TemplateComponent";
|
|
2328
|
+
|
|
2159
2329
|
import AppComponent from "sap/fe/core/AppComponent";
|
|
2160
2330
|
|
|
2331
|
+
import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
|
|
2332
|
+
|
|
2161
2333
|
/**
|
|
2162
2334
|
* Component that can be used as a wrapper component for custom pages.
|
|
2163
2335
|
* The component can be used in case you want to use SAP Fiori elements Building Blocks or XML template
|
|
@@ -2185,9 +2357,7 @@ declare module "sap/fe/core/fpm/Component" {
|
|
|
2185
2357
|
*
|
|
2186
2358
|
* @since 1.92.0
|
|
2187
2359
|
*/
|
|
2188
|
-
export default class Component
|
|
2189
|
-
extends /* was: sap.fe.core.TemplateComponent */ Object
|
|
2190
|
-
{
|
|
2360
|
+
export default class Component extends TemplateComponent {
|
|
2191
2361
|
/**
|
|
2192
2362
|
* Returns the current AppComponent.
|
|
2193
2363
|
*
|
|
@@ -2196,6 +2366,16 @@ declare module "sap/fe/core/fpm/Component" {
|
|
|
2196
2366
|
*/
|
|
2197
2367
|
getAppComponent(): AppComponent;
|
|
2198
2368
|
}
|
|
2369
|
+
/**
|
|
2370
|
+
* Describes the settings that can be provided to the Component constructor.
|
|
2371
|
+
*/
|
|
2372
|
+
export interface $ComponentSettings extends $TemplateComponentSettings {
|
|
2373
|
+
/**
|
|
2374
|
+
* Name of the XML view which is used for this page. The XML view can contain SAP Fiori elements Building
|
|
2375
|
+
* Blocks and XML template constructions.
|
|
2376
|
+
*/
|
|
2377
|
+
viewName?: string | PropertyBindingInfo;
|
|
2378
|
+
}
|
|
2199
2379
|
}
|
|
2200
2380
|
|
|
2201
2381
|
declare module "sap/fe/core/rootView/Fcl.controller" {
|
|
@@ -2266,8 +2446,12 @@ declare namespace sap {
|
|
|
2266
2446
|
|
|
2267
2447
|
"sap/fe/core/PageController": undefined;
|
|
2268
2448
|
|
|
2449
|
+
"sap/fe/core/ReuseComponent": undefined;
|
|
2450
|
+
|
|
2269
2451
|
"sap/fe/core/rootView/Fcl.controller": undefined;
|
|
2270
2452
|
|
|
2271
2453
|
"sap/fe/core/rootView/NavContainer.controller": undefined;
|
|
2454
|
+
|
|
2455
|
+
"sap/fe/core/TemplateComponent": undefined;
|
|
2272
2456
|
}
|
|
2273
2457
|
}
|
package/types/sap.fe.ina.d.ts
CHANGED