@openui5/ts-types 1.101.0 → 1.102.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.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.101.0
1
+ // For Library Version: 1.102.2
2
2
 
3
3
  declare namespace sap {
4
4
  interface IUI5DefineDependencyNames {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.101.0
1
+ // For Library Version: 1.102.2
2
2
 
3
3
  declare module "sap/ui/rta/api/startAdaptation" {
4
4
  /**
@@ -8,6 +8,8 @@ declare module "sap/ui/rta/api/startAdaptation" {
8
8
  * Starts UI adaptation, initiated for an application at the passed root control instance. With this API
9
9
  * you are also able to modify the UI adaptation plugins list and or add some event handler functions to
10
10
  * be called on start, failed and stop events.
11
+ *
12
+ * @returns Resolves when UI adaptation was successfully started
11
13
  */
12
14
  export default function startAdaptation(
13
15
  /**
@@ -59,6 +61,8 @@ declare module "sap/ui/rta/api/startKeyUserAdaptation" {
59
61
  *
60
62
  * Starts key user adaptation, initiated for an application at the passed root control instance. It subsequently
61
63
  * extends to all valid child controls.
64
+ *
65
+ * @returns Resolves when UI adaptation was successfully started
62
66
  */
63
67
  export default function startKeyUserAdaptation(
64
68
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.101.0
1
+ // For Library Version: 1.102.2
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -13,24 +13,34 @@ declare namespace sap {
13
13
  * Current value of the task circle to be displayed. In dependency of the parameters maxValue and minValue
14
14
  * it controls the size of the circle.
15
15
  */
16
- value?: int | sap.ui.base.ManagedObject.PropertyBindingInfo;
16
+ value?:
17
+ | int
18
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
19
+ | `{${string}}`;
17
20
 
18
21
  /**
19
22
  * Upper limit of the displayed values. Default is 100.
20
23
  */
21
- maxValue?: int | sap.ui.base.ManagedObject.PropertyBindingInfo;
24
+ maxValue?:
25
+ | int
26
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
27
+ | `{${string}}`;
22
28
 
23
29
  /**
24
30
  * Lower limit of the displayed values. Default is 0.
25
31
  */
26
- minValue?: int | sap.ui.base.ManagedObject.PropertyBindingInfo;
32
+ minValue?:
33
+ | int
34
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
35
+ | `{${string}}`;
27
36
 
28
37
  /**
29
38
  * Color of the circle. The default color is red.
30
39
  */
31
40
  color?:
32
41
  | sap.ui.suite.TaskCircleColor
33
- | sap.ui.base.ManagedObject.PropertyBindingInfo;
42
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
43
+ | `{${string}}`;
34
44
 
35
45
  /**
36
46
  * Association to controls / ids which label this control (see WAI-ARIA attribute aria-labelledby).
@@ -54,7 +64,10 @@ declare namespace sap {
54
64
  * The numerical value between 0 and 100 which determines the height of the vertical bar. Values higher
55
65
  * than 100 will be displayed as 100%, values lower than zero will be displayed as 0%.
56
66
  */
57
- percentage?: int | sap.ui.base.ManagedObject.PropertyBindingInfo;
67
+ percentage?:
68
+ | int
69
+ | sap.ui.base.ManagedObject.PropertyBindingInfo
70
+ | `{${string}}`;
58
71
 
59
72
  /**
60
73
  * Association to controls / ids which label this control (see WAI-ARIA attribute aria-labelledby).
@@ -114,6 +127,8 @@ declare namespace sap {
114
127
  * information contained in `oClassInfo`.
115
128
  *
116
129
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
130
+ *
131
+ * @returns Created class / constructor function
117
132
  */
118
133
  static extend<T extends Record<string, unknown>>(
119
134
  /**
@@ -132,10 +147,14 @@ declare namespace sap {
132
147
  ): Function;
133
148
  /**
134
149
  * Returns a metadata object for class sap.ui.suite.TaskCircle.
150
+ *
151
+ * @returns Metadata object describing this class
135
152
  */
136
153
  static getMetadata(): sap.ui.core.ElementMetadata;
137
154
  /**
138
155
  * Adds some ariaDescribedBy into the association {@link #getAriaDescribedBy ariaDescribedBy}.
156
+ *
157
+ * @returns Reference to `this` in order to allow method chaining
139
158
  */
140
159
  addAriaDescribedBy(
141
160
  /**
@@ -145,6 +164,8 @@ declare namespace sap {
145
164
  ): this;
146
165
  /**
147
166
  * Adds some ariaLabelledBy into the association {@link #getAriaLabelledBy ariaLabelledBy}.
167
+ *
168
+ * @returns Reference to `this` in order to allow method chaining
148
169
  */
149
170
  addAriaLabelledBy(
150
171
  /**
@@ -159,6 +180,8 @@ declare namespace sap {
159
180
  * otherwise it will be bound to this `sap.ui.suite.TaskCircle` itself.
160
181
  *
161
182
  * Event is fired when the user clicks the control.
183
+ *
184
+ * @returns Reference to `this` in order to allow method chaining
162
185
  */
163
186
  attachPress(
164
187
  /**
@@ -182,6 +205,8 @@ declare namespace sap {
182
205
  * otherwise it will be bound to this `sap.ui.suite.TaskCircle` itself.
183
206
  *
184
207
  * Event is fired when the user clicks the control.
208
+ *
209
+ * @returns Reference to `this` in order to allow method chaining
185
210
  */
186
211
  attachPress(
187
212
  /**
@@ -197,6 +222,8 @@ declare namespace sap {
197
222
  * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.ui.suite.TaskCircle`.
198
223
  *
199
224
  * The passed function and listener object must match the ones used for event registration.
225
+ *
226
+ * @returns Reference to `this` in order to allow method chaining
200
227
  */
201
228
  detachPress(
202
229
  /**
@@ -210,6 +237,8 @@ declare namespace sap {
210
237
  ): this;
211
238
  /**
212
239
  * Fires event {@link #event:press press} to attached listeners.
240
+ *
241
+ * @returns Reference to `this` in order to allow method chaining
213
242
  */
214
243
  firePress(
215
244
  /**
@@ -237,6 +266,8 @@ declare namespace sap {
237
266
  * Color of the circle. The default color is red.
238
267
  *
239
268
  * Default value is `Gray`.
269
+ *
270
+ * @returns Value of property `color`
240
271
  */
241
272
  getColor(): sap.ui.suite.TaskCircleColor;
242
273
  /**
@@ -245,6 +276,8 @@ declare namespace sap {
245
276
  * Upper limit of the displayed values. Default is 100.
246
277
  *
247
278
  * Default value is `100`.
279
+ *
280
+ * @returns Value of property `maxValue`
248
281
  */
249
282
  getMaxValue(): int;
250
283
  /**
@@ -253,6 +286,8 @@ declare namespace sap {
253
286
  * Lower limit of the displayed values. Default is 0.
254
287
  *
255
288
  * Default value is `0`.
289
+ *
290
+ * @returns Value of property `minValue`
256
291
  */
257
292
  getMinValue(): int;
258
293
  /**
@@ -262,18 +297,26 @@ declare namespace sap {
262
297
  * it controls the size of the circle.
263
298
  *
264
299
  * Default value is `0`.
300
+ *
301
+ * @returns Value of property `value`
265
302
  */
266
303
  getValue(): int;
267
304
  /**
268
305
  * Removes all the controls in the association named {@link #getAriaDescribedBy ariaDescribedBy}.
306
+ *
307
+ * @returns An array of the removed elements (might be empty)
269
308
  */
270
309
  removeAllAriaDescribedBy(): sap.ui.core.ID[];
271
310
  /**
272
311
  * Removes all the controls in the association named {@link #getAriaLabelledBy ariaLabelledBy}.
312
+ *
313
+ * @returns An array of the removed elements (might be empty)
273
314
  */
274
315
  removeAllAriaLabelledBy(): sap.ui.core.ID[];
275
316
  /**
276
317
  * Removes an ariaDescribedBy from the association named {@link #getAriaDescribedBy ariaDescribedBy}.
318
+ *
319
+ * @returns The removed ariaDescribedBy or `null`
277
320
  */
278
321
  removeAriaDescribedBy(
279
322
  /**
@@ -283,6 +326,8 @@ declare namespace sap {
283
326
  ): sap.ui.core.ID;
284
327
  /**
285
328
  * Removes an ariaLabelledBy from the association named {@link #getAriaLabelledBy ariaLabelledBy}.
329
+ *
330
+ * @returns The removed ariaLabelledBy or `null`
286
331
  */
287
332
  removeAriaLabelledBy(
288
333
  /**
@@ -298,6 +343,8 @@ declare namespace sap {
298
343
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
299
344
  *
300
345
  * Default value is `Gray`.
346
+ *
347
+ * @returns Reference to `this` in order to allow method chaining
301
348
  */
302
349
  setColor(
303
350
  /**
@@ -313,6 +360,8 @@ declare namespace sap {
313
360
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
314
361
  *
315
362
  * Default value is `100`.
363
+ *
364
+ * @returns Reference to `this` in order to allow method chaining
316
365
  */
317
366
  setMaxValue(
318
367
  /**
@@ -328,6 +377,8 @@ declare namespace sap {
328
377
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
329
378
  *
330
379
  * Default value is `0`.
380
+ *
381
+ * @returns Reference to `this` in order to allow method chaining
331
382
  */
332
383
  setMinValue(
333
384
  /**
@@ -344,6 +395,8 @@ declare namespace sap {
344
395
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
345
396
  *
346
397
  * Default value is `0`.
398
+ *
399
+ * @returns Reference to `this` in order to allow method chaining
347
400
  */
348
401
  setValue(
349
402
  /**
@@ -395,6 +448,8 @@ declare namespace sap {
395
448
  * it with the information contained in `oClassInfo`.
396
449
  *
397
450
  * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
451
+ *
452
+ * @returns Created class / constructor function
398
453
  */
399
454
  static extend<T extends Record<string, unknown>>(
400
455
  /**
@@ -413,10 +468,14 @@ declare namespace sap {
413
468
  ): Function;
414
469
  /**
415
470
  * Returns a metadata object for class sap.ui.suite.VerticalProgressIndicator.
471
+ *
472
+ * @returns Metadata object describing this class
416
473
  */
417
474
  static getMetadata(): sap.ui.core.ElementMetadata;
418
475
  /**
419
476
  * Adds some ariaDescribedBy into the association {@link #getAriaDescribedBy ariaDescribedBy}.
477
+ *
478
+ * @returns Reference to `this` in order to allow method chaining
420
479
  */
421
480
  addAriaDescribedBy(
422
481
  /**
@@ -426,6 +485,8 @@ declare namespace sap {
426
485
  ): this;
427
486
  /**
428
487
  * Adds some ariaLabelledBy into the association {@link #getAriaLabelledBy ariaLabelledBy}.
488
+ *
489
+ * @returns Reference to `this` in order to allow method chaining
429
490
  */
430
491
  addAriaLabelledBy(
431
492
  /**
@@ -440,6 +501,8 @@ declare namespace sap {
440
501
  * otherwise it will be bound to this `sap.ui.suite.VerticalProgressIndicator` itself.
441
502
  *
442
503
  * Event is fired when the user clicks the control.
504
+ *
505
+ * @returns Reference to `this` in order to allow method chaining
443
506
  */
444
507
  attachPress(
445
508
  /**
@@ -464,6 +527,8 @@ declare namespace sap {
464
527
  * otherwise it will be bound to this `sap.ui.suite.VerticalProgressIndicator` itself.
465
528
  *
466
529
  * Event is fired when the user clicks the control.
530
+ *
531
+ * @returns Reference to `this` in order to allow method chaining
467
532
  */
468
533
  attachPress(
469
534
  /**
@@ -480,6 +545,8 @@ declare namespace sap {
480
545
  * Detaches event handler `fnFunction` from the {@link #event:press press} event of this `sap.ui.suite.VerticalProgressIndicator`.
481
546
  *
482
547
  * The passed function and listener object must match the ones used for event registration.
548
+ *
549
+ * @returns Reference to `this` in order to allow method chaining
483
550
  */
484
551
  detachPress(
485
552
  /**
@@ -493,6 +560,8 @@ declare namespace sap {
493
560
  ): this;
494
561
  /**
495
562
  * Fires event {@link #event:press press} to attached listeners.
563
+ *
564
+ * @returns Reference to `this` in order to allow method chaining
496
565
  */
497
566
  firePress(
498
567
  /**
@@ -519,18 +588,26 @@ declare namespace sap {
519
588
  *
520
589
  * The numerical value between 0 and 100 which determines the height of the vertical bar. Values higher
521
590
  * than 100 will be displayed as 100%, values lower than zero will be displayed as 0%.
591
+ *
592
+ * @returns Value of property `percentage`
522
593
  */
523
594
  getPercentage(): int;
524
595
  /**
525
596
  * Removes all the controls in the association named {@link #getAriaDescribedBy ariaDescribedBy}.
597
+ *
598
+ * @returns An array of the removed elements (might be empty)
526
599
  */
527
600
  removeAllAriaDescribedBy(): sap.ui.core.ID[];
528
601
  /**
529
602
  * Removes all the controls in the association named {@link #getAriaLabelledBy ariaLabelledBy}.
603
+ *
604
+ * @returns An array of the removed elements (might be empty)
530
605
  */
531
606
  removeAllAriaLabelledBy(): sap.ui.core.ID[];
532
607
  /**
533
608
  * Removes an ariaDescribedBy from the association named {@link #getAriaDescribedBy ariaDescribedBy}.
609
+ *
610
+ * @returns The removed ariaDescribedBy or `null`
534
611
  */
535
612
  removeAriaDescribedBy(
536
613
  /**
@@ -540,6 +617,8 @@ declare namespace sap {
540
617
  ): sap.ui.core.ID;
541
618
  /**
542
619
  * Removes an ariaLabelledBy from the association named {@link #getAriaLabelledBy ariaLabelledBy}.
620
+ *
621
+ * @returns The removed ariaLabelledBy or `null`
543
622
  */
544
623
  removeAriaLabelledBy(
545
624
  /**
@@ -551,6 +630,8 @@ declare namespace sap {
551
630
  * Property setter for the Percentage, which determines the height of the vertical bar. Values higher than
552
631
  * 100 will be displayed as 100%, values lower than zero will be displayed as 0%. A new rendering is not
553
632
  * necessary, only the bar will be moved
633
+ *
634
+ * @returns `this` to allow method chaining
554
635
  */
555
636
  setPercentage(iPercentage: int): this;
556
637
  }
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.101.0
1
+ // For Library Version: 1.102.2
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -20,6 +20,8 @@ declare namespace sap {
20
20
  namespace RuleSet {
21
21
  /**
22
22
  * Adds rules to RuleSet.
23
+ *
24
+ * @returns sRuleVerificationStatus Verification status
23
25
  */
24
26
  function addRule(
25
27
  /**
@@ -33,6 +35,8 @@ declare namespace sap {
33
35
  function clearAllRuleSets(): void;
34
36
  /**
35
37
  * Gets all rules from the RuleSet.
38
+ *
39
+ * @returns All rules within the current RuleSet
36
40
  */
37
41
  function getRules(): object;
38
42
  /**
@@ -65,6 +69,8 @@ declare namespace sap {
65
69
  ): void;
66
70
  /**
67
71
  * Updates rules from the RuleSet.
72
+ *
73
+ * @returns sRuleVerification Rule Verification status
68
74
  */
69
75
  function updateRule(
70
76
  /**
@@ -98,6 +104,8 @@ declare namespace sap {
98
104
  * @SINCE 1.60
99
105
  *
100
106
  * Adds new temporary rule when in silent mode
107
+ *
108
+ * @returns Rule creation status. Possible values are "success" or description of why adding failed.
101
109
  */
102
110
  addRule(
103
111
  /**
@@ -111,6 +119,8 @@ declare namespace sap {
111
119
  *
112
120
  * Allows to choose a particular execution scope - desired part of the UI to be checked and a flexible way
113
121
  * to specify the list of rules to be used.
122
+ *
123
+ * @returns Notifies the finished state by starting the Analyzer
114
124
  */
115
125
  analyze(
116
126
  /**
@@ -145,10 +155,15 @@ declare namespace sap {
145
155
  ): Promise<any>;
146
156
  /**
147
157
  * Returns the history of all executed analyses.
158
+ *
159
+ * @returns Array of history objects in the order of analyses performed. The results of the last analysis
160
+ * are contained in the last element in the array.
148
161
  */
149
162
  getAnalysisHistory(): sap.ui.support.AnalysisResult[];
150
163
  /**
151
164
  * Returns the history of all executed analyses into formatted output depending on the passed format.
165
+ *
166
+ * @returns All analysis history objects in the correct format.
152
167
  */
153
168
  getFormattedAnalysisHistory(
154
169
  /**
@@ -158,6 +173,8 @@ declare namespace sap {
158
173
  ): any;
159
174
  /**
160
175
  * Returns the result of the last analysis performed.
176
+ *
177
+ * @returns Last analysis history.
161
178
  */
162
179
  getLastAnalysisHistory(): sap.ui.support.AnalysisResult;
163
180
  }
@@ -185,6 +202,10 @@ declare namespace sap {
185
202
  class ExecutionScope {
186
203
  constructor();
187
204
 
205
+ /**
206
+ *
207
+ * @returns Array of matched elements
208
+ */
188
209
  static getElements(
189
210
  /**
190
211
  * Object with specific filtering options
@@ -206,6 +227,8 @@ declare namespace sap {
206
227
  ): any[];
207
228
  /**
208
229
  * Gets elements by their type
230
+ *
231
+ * @returns Array of matched elements
209
232
  */
210
233
  static getElementsByClassName(
211
234
  /**
@@ -215,6 +238,8 @@ declare namespace sap {
215
238
  ): any[];
216
239
  /**
217
240
  * Gets the logged objects by object type
241
+ *
242
+ * @returns Array of logged objects
218
243
  */
219
244
  static getLoggedObjects(
220
245
  /**
@@ -224,10 +249,14 @@ declare namespace sap {
224
249
  ): any[];
225
250
  /**
226
251
  * Returns all public elements, i.e. elements that are part of public API aggregations
252
+ *
253
+ * @returns Array of matched elements
227
254
  */
228
255
  static getPublicElements(): any[];
229
256
  /**
230
257
  * Gets the type of the execution scope
258
+ *
259
+ * @returns The type of the execution scope. Possible values are `global`, `subtree` or `components`.
231
260
  */
232
261
  static getType(): string;
233
262
  }