@sapui5/ts-types 1.99.0 → 1.100.2
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 +1 -1
- package/types/sap.f.d.ts +1 -1
- package/types/sap.fe.common.d.ts +2 -6
- package/types/sap.fe.core.d.ts +282 -333
- package/types/sap.fe.macros.d.ts +566 -47
- package/types/sap.fe.navigation.d.ts +1 -1
- package/types/sap.fe.templates.d.ts +1 -1
- package/types/sap.fe.test.d.ts +1 -1
- package/types/sap.feedback.ui.d.ts +1 -1
- package/types/sap.gantt.d.ts +709 -12
- package/types/sap.landvisz.d.ts +1 -1
- package/types/sap.m.d.ts +462 -86
- 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 +1 -1
- package/types/sap.rules.ui.d.ts +1 -1
- package/types/sap.sac.grid.d.ts +1 -1
- package/types/sap.suite.ui.commons.d.ts +1 -1
- package/types/sap.suite.ui.generic.template.d.ts +1 -1
- package/types/sap.suite.ui.microchart.d.ts +5 -5
- package/types/sap.tnt.d.ts +1 -1
- 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 +47 -33
- package/types/sap.ui.core.d.ts +771 -470
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.export.d.ts +3 -3
- package/types/sap.ui.fl.d.ts +5 -1
- package/types/sap.ui.generic.app.d.ts +4 -3
- package/types/sap.ui.generic.template.d.ts +1 -1
- package/types/sap.ui.integration.d.ts +21 -3
- package/types/sap.ui.layout.d.ts +1 -1
- package/types/sap.ui.mdc.d.ts +9 -1
- package/types/sap.ui.richtexteditor.d.ts +1 -1
- 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 +6 -12
- package/types/sap.ui.table.d.ts +2 -9
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +1 -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 +61 -1
- package/types/sap.ui.vtm.d.ts +1 -1
- package/types/sap.uiext.inbox.d.ts +2 -2
- package/types/sap.ushell.d.ts +4419 -4850
- package/types/sap.ushell_abap.d.ts +1 -1
- package/types/sap.uxap.d.ts +1 -1
- package/types/sap.viz.d.ts +105 -231
- 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 +2 -2
package/types/sap.fe.macros.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.100.0
|
|
2
2
|
|
|
3
3
|
declare namespace sap {
|
|
4
4
|
namespace fe {
|
|
@@ -6,55 +6,308 @@ declare namespace sap {
|
|
|
6
6
|
* Library containing the building blocks for SAP Fiori elements.
|
|
7
7
|
*/
|
|
8
8
|
namespace macros {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
namespace table {
|
|
10
|
+
/**
|
|
11
|
+
* Definition of a custom action to be used inside the table toolbar
|
|
12
|
+
*/
|
|
13
|
+
type Action = {
|
|
14
|
+
/**
|
|
15
|
+
* Reference to the key of another action already displayed in the toolbar to properly place this one
|
|
16
|
+
*/
|
|
17
|
+
anchor: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the action
|
|
20
|
+
*/
|
|
21
|
+
key: string;
|
|
22
|
+
/**
|
|
23
|
+
* Defines where this action should be placed relative to the defined anchor
|
|
24
|
+
* Allowed values are `Before` and `After`
|
|
25
|
+
*/
|
|
26
|
+
placement: string;
|
|
27
|
+
/**
|
|
28
|
+
* Event handler to be called when the user chooses the action
|
|
29
|
+
*/
|
|
30
|
+
press: string;
|
|
31
|
+
/**
|
|
32
|
+
* Defines if the action requires a selection.
|
|
33
|
+
*/
|
|
34
|
+
requiresSelection: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The text that will be displayed for this action
|
|
37
|
+
*/
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
20
40
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Definition of a custom column to be used inside the table.
|
|
43
|
+
* The template for the column has to be provided as the default aggregation
|
|
44
|
+
*/
|
|
45
|
+
type Column = {
|
|
46
|
+
/**
|
|
47
|
+
* Reference to the key of another column already displayed in the table to properly place this one
|
|
48
|
+
*/
|
|
49
|
+
anchor: string;
|
|
50
|
+
/**
|
|
51
|
+
* The text that will be displayed for this column header
|
|
52
|
+
*/
|
|
53
|
+
header: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier of the column
|
|
56
|
+
*/
|
|
57
|
+
key: string;
|
|
58
|
+
/**
|
|
59
|
+
* Defines where this column should be placed relative to the defined anchor
|
|
60
|
+
* Allowed values are `Before` and `After`
|
|
61
|
+
*/
|
|
62
|
+
placement: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
33
65
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* ```javascript
|
|
40
|
-
*
|
|
41
|
-
* <macro:Form id="MyForm" metaPath="@com.sap.vocabularies.UI.v1.Facets/0" />
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export const Form: undefined;
|
|
66
|
+
interface $ChartSettings extends sap.fe.macros.$MacroAPISettings {
|
|
67
|
+
/**
|
|
68
|
+
* Metadata path to the entitySet or navigationProperty
|
|
69
|
+
*/
|
|
70
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
45
71
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Id of the FilterBar building block associated with the chart.
|
|
74
|
+
*/
|
|
75
|
+
filterBar?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* ID of the chart
|
|
79
|
+
*/
|
|
80
|
+
id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Metadata path to the presentation (UI.Chart w or w/o qualifier)
|
|
84
|
+
*/
|
|
85
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Parameter which sets the personalization of the MDC chart
|
|
89
|
+
*/
|
|
90
|
+
personalization?:
|
|
91
|
+
| boolean
|
|
92
|
+
| string
|
|
93
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the selection mode
|
|
97
|
+
*/
|
|
98
|
+
selectionMode?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface $FieldSettings extends sap.fe.macros.$MacroAPISettings {
|
|
102
|
+
/**
|
|
103
|
+
* Defines the path of the context used in the current page or block.
|
|
104
|
+
* This setting is defined by the framework.
|
|
105
|
+
*/
|
|
106
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A set of options that can be configured.
|
|
110
|
+
*/
|
|
111
|
+
formatOptions?:
|
|
112
|
+
| sap.fe.macros.FieldFormatOptions
|
|
113
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The identifier of the Field control.
|
|
117
|
+
*/
|
|
118
|
+
id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Defines the relative path of the property in the metamodel, based on the current contextPath.
|
|
122
|
+
*/
|
|
123
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* An expression that allows you to control the read-only state of the field.
|
|
127
|
+
* If you do not set any expression, SAP Fiori elements hooks into the standard lifecycle to determine the
|
|
128
|
+
* current state.
|
|
129
|
+
*/
|
|
130
|
+
readOnly?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Option to add semantic objects to a field.
|
|
134
|
+
* Valid options are either a single semantic object, a stringified array of semantic objects
|
|
135
|
+
* or a single binding expression returning either a single semantic object or an array of semantic objects
|
|
136
|
+
*/
|
|
137
|
+
semanticObject?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
interface $FilterBarSettings extends sap.fe.macros.$MacroAPISettings {
|
|
141
|
+
/**
|
|
142
|
+
* Defines the path of the context used in the current page or block.
|
|
143
|
+
* This setting is defined by the framework.
|
|
144
|
+
*/
|
|
145
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The identifier of the filterbar control.
|
|
149
|
+
*/
|
|
150
|
+
id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Defines the relative path of the property in the metamodel, based on the current contextPath.
|
|
154
|
+
*/
|
|
155
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface $FormSettings extends sap.fe.macros.$MacroAPISettings {
|
|
159
|
+
/**
|
|
160
|
+
* Defines the path of the context used in the current page or block.
|
|
161
|
+
* This setting is defined by the framework.
|
|
162
|
+
*/
|
|
163
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The identifier of the form control.
|
|
167
|
+
*/
|
|
168
|
+
id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Defines the relative path of the property in the metamodel, based on the current contextPath.
|
|
172
|
+
*/
|
|
173
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface $MacroAPISettings extends sap.ui.core.$ControlSettings {
|
|
177
|
+
/**
|
|
178
|
+
* Defines the path of the context used in the current page or block.
|
|
179
|
+
* This setting is defined by the framework.
|
|
180
|
+
*/
|
|
181
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Defines the relative path of the property in the metamodel, based on the current contextPath.
|
|
185
|
+
*/
|
|
186
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
interface $TableSettings extends sap.fe.macros.$MacroAPISettings {
|
|
190
|
+
/**
|
|
191
|
+
* An expression that allows you to control the 'busy' state of the table.
|
|
192
|
+
*/
|
|
193
|
+
busy?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Defines the path of the context used in the current page or block.
|
|
197
|
+
* This setting is defined by the framework.
|
|
198
|
+
*/
|
|
199
|
+
contextPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Specifies the header text that is shown in the table.
|
|
203
|
+
*/
|
|
204
|
+
enableAutoColumnWidth?:
|
|
205
|
+
| boolean
|
|
206
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Controls if the export functionality of the table is enabled or not.
|
|
210
|
+
*/
|
|
211
|
+
enableExport?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Controls whether the table can be opened in fullscreen mode or not.
|
|
215
|
+
*/
|
|
216
|
+
enableFullScreen?:
|
|
217
|
+
| boolean
|
|
218
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Controls if the paste functionality of the table is enabled or not.
|
|
222
|
+
*/
|
|
223
|
+
enablePaste?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Id of the FilterBar building block associated with the table.
|
|
227
|
+
*/
|
|
228
|
+
filterBar?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Specifies the header text that is shown in the table.
|
|
232
|
+
*/
|
|
233
|
+
header?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Controls if the header text should be shown or not.
|
|
237
|
+
*/
|
|
238
|
+
headerVisible?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The identifier of the table control.
|
|
242
|
+
*/
|
|
243
|
+
id?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Groups menu actions by key.
|
|
247
|
+
*/
|
|
248
|
+
menu?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Defines the relative path of the property in the metamodel, based on the current contextPath.
|
|
252
|
+
*/
|
|
253
|
+
metaPath?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Controls which options should be enabled for the table personalization dialog.
|
|
257
|
+
* If it is set to `true`, all possible options for this kind of table are enabled.
|
|
258
|
+
*
|
|
259
|
+
* If it is set to `false`, personalization is disabled.
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
*
|
|
263
|
+
* You can also provide a more granular control for the personalization by providing a comma-separated list
|
|
264
|
+
* with the options you want to be available.
|
|
265
|
+
*
|
|
266
|
+
* Available options are:
|
|
267
|
+
*
|
|
268
|
+
* - Sort
|
|
269
|
+
*
|
|
270
|
+
* - Column
|
|
271
|
+
*
|
|
272
|
+
* - Filter
|
|
273
|
+
*/
|
|
274
|
+
personalization?:
|
|
275
|
+
| boolean
|
|
276
|
+
| string
|
|
277
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* An expression that allows you to control the 'read-only' state of the table.
|
|
281
|
+
* If you do not set any expression, SAP Fiori elements hooks into the standard lifecycle to determine the
|
|
282
|
+
* current state.
|
|
283
|
+
*/
|
|
284
|
+
readOnly?: boolean | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Defines the selection mode to be used by the table.
|
|
288
|
+
* Allowed values are `None`, `Single`, `Multi` or `Auto`
|
|
289
|
+
*/
|
|
290
|
+
selectionMode?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Defines the type of table that will be used by the macro to render the data.
|
|
294
|
+
* Allowed values are `GridTable` and `ResponsiveTable`
|
|
295
|
+
*/
|
|
296
|
+
type?: string | sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Controls the kind of variant management that should be enabled for the table.
|
|
300
|
+
* Allowed values are `Page`, `Control` and `None`.
|
|
301
|
+
*
|
|
302
|
+
* If the table is used within a SAP Fiori elements template, the default value will be taken from the current
|
|
303
|
+
* page variant management.
|
|
304
|
+
*
|
|
305
|
+
* Otherwise it's `None`.
|
|
306
|
+
*/
|
|
307
|
+
variantManagement?:
|
|
308
|
+
| string
|
|
309
|
+
| sap.ui.base.ManagedObject.PropertyBindingInfo;
|
|
310
|
+
}
|
|
58
311
|
|
|
59
312
|
/**
|
|
60
313
|
* @SINCE 1.93.0
|
|
@@ -136,16 +389,280 @@ declare namespace sap {
|
|
|
136
389
|
class Share extends sap.fe.macros.MacroMetadata {
|
|
137
390
|
constructor();
|
|
138
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* Building block used to create a chart based on the metadata provided by OData V4.
|
|
394
|
+
*
|
|
395
|
+
*
|
|
396
|
+
* Usually, a contextPath and metaPath is expected.
|
|
397
|
+
* Usage example:
|
|
398
|
+
*
|
|
399
|
+
* ```javascript
|
|
400
|
+
*
|
|
401
|
+
* <macro:Chart id="Mychart" contextPath="/RootEntity" metaPath="@com.sap.vocabularies.UI.v1.Chart" />
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
class Chart extends sap.fe.macros.MacroAPI {
|
|
405
|
+
constructor();
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Building block for creating a field based on the metadata provided by OData V4.
|
|
409
|
+
*
|
|
410
|
+
*
|
|
411
|
+
* Usually, a DataField or DataPoint annotation is expected, but the field can also be used to display a
|
|
412
|
+
* property from the entity type.
|
|
413
|
+
* Usage example:
|
|
414
|
+
*
|
|
415
|
+
* ```javascript
|
|
416
|
+
*
|
|
417
|
+
* <macro:Field id="MyField" metaPath="MyProperty" />
|
|
418
|
+
* ```
|
|
419
|
+
*/
|
|
420
|
+
class Field extends sap.fe.macros.MacroAPI {
|
|
421
|
+
constructor();
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Adds a message to the field.
|
|
425
|
+
*/
|
|
426
|
+
addMessage(
|
|
427
|
+
/**
|
|
428
|
+
* The parameters to create message
|
|
429
|
+
*/
|
|
430
|
+
parameters: {
|
|
431
|
+
/**
|
|
432
|
+
* Message description
|
|
433
|
+
*/
|
|
434
|
+
description?: string;
|
|
435
|
+
/**
|
|
436
|
+
* Message text
|
|
437
|
+
*/
|
|
438
|
+
message?: string;
|
|
439
|
+
/**
|
|
440
|
+
* True if the message is persistent
|
|
441
|
+
*/
|
|
442
|
+
persistent?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* Type of the message
|
|
445
|
+
*/
|
|
446
|
+
type?: /* was: sap.ui.core.library.MessageType */ any;
|
|
447
|
+
}
|
|
448
|
+
): string;
|
|
449
|
+
/**
|
|
450
|
+
* Retrieves the current value of the Field.
|
|
451
|
+
*/
|
|
452
|
+
getValue(): string | boolean;
|
|
453
|
+
/**
|
|
454
|
+
* Removes a message from the field.
|
|
455
|
+
*/
|
|
456
|
+
removeMessage(
|
|
457
|
+
/**
|
|
458
|
+
* The id of the message
|
|
459
|
+
*/
|
|
460
|
+
id: string
|
|
461
|
+
): void;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Building block for creating a FilterBar based on the metadata provided by OData V4.
|
|
465
|
+
*
|
|
466
|
+
*
|
|
467
|
+
* Usually, a SelectionFields annotation is expected.
|
|
468
|
+
* Usage example:
|
|
469
|
+
*
|
|
470
|
+
* ```javascript
|
|
471
|
+
*
|
|
472
|
+
* <macro:FilterBar id="MyFilterBar" metaPath="@com.sap.vocabularies.UI.v1.SelectionFields" />
|
|
473
|
+
* ```
|
|
474
|
+
*/
|
|
475
|
+
class FilterBar extends sap.fe.macros.MacroAPI {
|
|
476
|
+
constructor();
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @EXPERIMENTAL
|
|
480
|
+
*
|
|
481
|
+
* Set the filter values for the given property in the filter bar.
|
|
482
|
+
* The filter values can be either a single value or an array of values.
|
|
483
|
+
* Each filter value must be represented as a string corresponding to the given operator.
|
|
484
|
+
*/
|
|
485
|
+
setFilterValues(
|
|
486
|
+
/**
|
|
487
|
+
* The path to the property as a condition path
|
|
488
|
+
*/
|
|
489
|
+
sConditionPath: string,
|
|
490
|
+
/**
|
|
491
|
+
* The operator to be used (optional) - if not set, the default operator (EQ) will be used
|
|
492
|
+
*/
|
|
493
|
+
sOperator: any,
|
|
494
|
+
/**
|
|
495
|
+
* The values to be applied
|
|
496
|
+
*/
|
|
497
|
+
vValues: any
|
|
498
|
+
): any;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Building block for creating a Form based on the metadata provided by OData V4.
|
|
502
|
+
*
|
|
503
|
+
*
|
|
504
|
+
* Usually, a ReferenceFacet or CollectionFacet is expected
|
|
505
|
+
* Usage example:
|
|
506
|
+
*
|
|
507
|
+
* ```javascript
|
|
508
|
+
*
|
|
509
|
+
* <macro:Form id="MyForm" metaPath="@com.sap.vocabularies.UI.v1.Facets/0" />
|
|
510
|
+
* ```
|
|
511
|
+
*/
|
|
512
|
+
class Form extends sap.fe.macros.MacroAPI {
|
|
513
|
+
constructor();
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Base API control for macros.
|
|
517
|
+
*/
|
|
518
|
+
class MacroAPI extends sap.ui.core.Control {
|
|
519
|
+
constructor();
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Building block used to create a table based on the metadata provided by OData V4.
|
|
523
|
+
*
|
|
524
|
+
*
|
|
525
|
+
* Usually, a LineItem or PresentationVariant annotation is expected, but the Table building block can also
|
|
526
|
+
* be used to display an EntitySet.
|
|
527
|
+
* Usage example:
|
|
528
|
+
*
|
|
529
|
+
* ```javascript
|
|
530
|
+
*
|
|
531
|
+
* <macro:Table id="MyTable" metaPath="@com.sap.vocabularies.UI.v1.LineItem" />
|
|
532
|
+
* ```
|
|
533
|
+
*/
|
|
534
|
+
class Table extends sap.fe.macros.MacroAPI {
|
|
535
|
+
constructor();
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Adds a message to the table.
|
|
539
|
+
* The message applies to the whole table and not to an individual table row.
|
|
540
|
+
*/
|
|
541
|
+
addMessage(
|
|
542
|
+
/**
|
|
543
|
+
* The parameters to create the message
|
|
544
|
+
*/
|
|
545
|
+
parameters: {
|
|
546
|
+
/**
|
|
547
|
+
* Message description
|
|
548
|
+
*/
|
|
549
|
+
description?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Message text
|
|
552
|
+
*/
|
|
553
|
+
message?: string;
|
|
554
|
+
/**
|
|
555
|
+
* True if the message is persistent
|
|
556
|
+
*/
|
|
557
|
+
persistent?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Message type
|
|
560
|
+
*/
|
|
561
|
+
type?: /* was: sap.ui.core.library.MessageType */ any;
|
|
562
|
+
}
|
|
563
|
+
): string;
|
|
564
|
+
/**
|
|
565
|
+
* Gets contexts from the table that have been selected by the user.
|
|
566
|
+
*/
|
|
567
|
+
getSelectedContexts(): sap.ui.model.odata.v4.Context[];
|
|
568
|
+
/**
|
|
569
|
+
* Removes a message from the table.
|
|
570
|
+
*/
|
|
571
|
+
removeMessage(
|
|
572
|
+
/**
|
|
573
|
+
* The id of the message
|
|
574
|
+
*/
|
|
575
|
+
id: string
|
|
576
|
+
): void;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Additional format options for the field.
|
|
581
|
+
*/
|
|
582
|
+
type FieldFormatOptions = {
|
|
583
|
+
/**
|
|
584
|
+
* Defines how the field value and associated text will be displayed together.
|
|
585
|
+
*
|
|
586
|
+
* Allowed values are "Value", "Description", "ValueDescription" and "DescriptionValue"
|
|
587
|
+
*/
|
|
588
|
+
displayMode: string;
|
|
589
|
+
/**
|
|
590
|
+
* Defines if and how the field measure will be displayed.
|
|
591
|
+
*
|
|
592
|
+
* Allowed values are "Hidden" and "ReadOnly"
|
|
593
|
+
*/
|
|
594
|
+
measureDisplayMode: string;
|
|
595
|
+
/**
|
|
596
|
+
* Defines how the full text will be displayed.
|
|
597
|
+
*
|
|
598
|
+
* Allowed values are "InPlace" and "Popover"
|
|
599
|
+
*/
|
|
600
|
+
textExpandBehaviorDisplay: string;
|
|
601
|
+
/**
|
|
602
|
+
* Maximum number of lines for multiline texts in edit mode.
|
|
603
|
+
*/
|
|
604
|
+
textLinesEdit: number;
|
|
605
|
+
/**
|
|
606
|
+
* Maximum number of characters from the beginning of the text field that are shown initially.
|
|
607
|
+
*/
|
|
608
|
+
textMaxCharactersDisplay: number;
|
|
609
|
+
/**
|
|
610
|
+
* Maximum number of lines that multiline texts in edit mode can grow to.
|
|
611
|
+
*/
|
|
612
|
+
textMaxLines: number;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Definition of a custom filter to be used inside the FilterBar.
|
|
617
|
+
* The template for the FilterField has to be provided as the default aggregation
|
|
618
|
+
*/
|
|
619
|
+
type FilterField = {
|
|
620
|
+
/**
|
|
621
|
+
* Reference to the key of another filter already displayed in the table to properly place this one
|
|
622
|
+
*/
|
|
623
|
+
anchor: string;
|
|
624
|
+
/**
|
|
625
|
+
* The property name of the FilterField
|
|
626
|
+
*/
|
|
627
|
+
key: string;
|
|
628
|
+
/**
|
|
629
|
+
* The text that will be displayed for this FilterField
|
|
630
|
+
*/
|
|
631
|
+
label: string;
|
|
632
|
+
/**
|
|
633
|
+
* If set the search will be automatically triggered, when a filter value was changed.
|
|
634
|
+
*/
|
|
635
|
+
liveMode: boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Defines where this filter should be placed relative to the defined anchor
|
|
638
|
+
* Allowed values are `Before` and `After`
|
|
639
|
+
*/
|
|
640
|
+
placement: string;
|
|
641
|
+
/**
|
|
642
|
+
* Parameter which sets the visibility of the FilterBar building block
|
|
643
|
+
*/
|
|
644
|
+
visible: boolean;
|
|
645
|
+
};
|
|
139
646
|
}
|
|
140
647
|
}
|
|
141
648
|
|
|
142
649
|
interface IUI5DefineDependencyNames {
|
|
650
|
+
"sap/fe/macros/ChartAPI": undefined;
|
|
651
|
+
|
|
652
|
+
"sap/fe/macros/FieldAPI": undefined;
|
|
653
|
+
|
|
654
|
+
"sap/fe/macros/FilterBarAPI": undefined;
|
|
655
|
+
|
|
143
656
|
"sap/fe/macros/FlexibleColumnLayoutActions.metadata": undefined;
|
|
144
657
|
|
|
658
|
+
"sap/fe/macros/FormAPI": undefined;
|
|
659
|
+
|
|
145
660
|
"sap/fe/macros/FormElement.metadata": undefined;
|
|
146
661
|
|
|
147
662
|
"sap/fe/macros/library": undefined;
|
|
148
663
|
|
|
664
|
+
"sap/fe/macros/MacroAPI": undefined;
|
|
665
|
+
|
|
149
666
|
"sap/fe/macros/MacroMetadata": undefined;
|
|
150
667
|
|
|
151
668
|
"sap/fe/macros/MicroChart.metadata": undefined;
|
|
@@ -153,5 +670,7 @@ declare namespace sap {
|
|
|
153
670
|
"sap/fe/macros/Paginator.metadata": undefined;
|
|
154
671
|
|
|
155
672
|
"sap/fe/macros/Share.metadata": undefined;
|
|
673
|
+
|
|
674
|
+
"sap/fe/macros/TableAPI": undefined;
|
|
156
675
|
}
|
|
157
676
|
}
|
package/types/sap.fe.test.d.ts
CHANGED