@openui5/types 1.120.7 → 1.121.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 +1605 -885
- package/types/sap.m.d.ts +14948 -8390
- package/types/sap.tnt.d.ts +904 -294
- package/types/sap.ui.codeeditor.d.ts +55 -22
- package/types/sap.ui.commons.d.ts +2084 -676
- package/types/sap.ui.core.d.ts +5771 -3523
- package/types/sap.ui.dt.d.ts +1 -1
- package/types/sap.ui.fl.d.ts +184 -112
- package/types/sap.ui.integration.d.ts +496 -390
- package/types/sap.ui.layout.d.ts +1337 -668
- package/types/sap.ui.mdc.d.ts +3384 -2021
- package/types/sap.ui.rta.d.ts +7 -7
- package/types/sap.ui.suite.d.ts +44 -10
- package/types/sap.ui.support.d.ts +58 -26
- package/types/sap.ui.table.d.ts +962 -626
- package/types/sap.ui.testrecorder.d.ts +1 -1
- package/types/sap.ui.unified.d.ts +1976 -1246
- package/types/sap.ui.ux3.d.ts +1308 -488
- package/types/sap.ui.webc.common.d.ts +7 -5
- package/types/sap.ui.webc.fiori.d.ts +884 -213
- package/types/sap.ui.webc.main.d.ts +2813 -599
- package/types/sap.uxap.d.ts +621 -319
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// For Library Version: 1.
|
|
1
|
+
// For Library Version: 1.121.0
|
|
2
2
|
|
|
3
3
|
declare module "sap/ui/codeeditor/library" {}
|
|
4
4
|
|
|
@@ -14,11 +14,11 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
14
14
|
import Event from "sap/ui/base/Event";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @since 1.46
|
|
18
|
-
*
|
|
19
17
|
* Allows to visualize source code of various types with syntax highlighting, line numbers in editable and
|
|
20
18
|
* read only mode. Use this control in scenarios where the user should be able to inspect and edit source
|
|
21
19
|
* code. The control currently uses the third-party code editor Ace.
|
|
20
|
+
*
|
|
21
|
+
* @since 1.46
|
|
22
22
|
*/
|
|
23
23
|
export default class CodeEditor extends Control {
|
|
24
24
|
/**
|
|
@@ -58,6 +58,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
58
58
|
*
|
|
59
59
|
* `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
|
|
60
60
|
*
|
|
61
|
+
*
|
|
61
62
|
* @returns Created class / constructor function
|
|
62
63
|
*/
|
|
63
64
|
static extend<T extends Record<string, unknown>>(
|
|
@@ -78,15 +79,16 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
78
79
|
/**
|
|
79
80
|
* Returns a metadata object for class sap.ui.codeeditor.CodeEditor.
|
|
80
81
|
*
|
|
82
|
+
*
|
|
81
83
|
* @returns Metadata object describing this class
|
|
82
84
|
*/
|
|
83
85
|
static getMetadata(): ElementMetadata;
|
|
84
86
|
/**
|
|
85
|
-
* @since 1.52
|
|
86
|
-
*
|
|
87
87
|
* Defines custom completer - object implementing a getCompletions method. The method has two parameters
|
|
88
88
|
* - fnCallback method and context object. Context object provides details about oPos and sPrefix as provided
|
|
89
89
|
* by the third-party code editor.
|
|
90
|
+
*
|
|
91
|
+
* @since 1.52
|
|
90
92
|
*/
|
|
91
93
|
addCustomCompleter(
|
|
92
94
|
/**
|
|
@@ -104,6 +106,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
104
106
|
*
|
|
105
107
|
* Fired when the value has changed and the focus leaves the code editor.
|
|
106
108
|
*
|
|
109
|
+
*
|
|
107
110
|
* @returns Reference to `this` in order to allow method chaining
|
|
108
111
|
*/
|
|
109
112
|
attachChange(
|
|
@@ -129,6 +132,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
129
132
|
*
|
|
130
133
|
* Fired when the value has changed and the focus leaves the code editor.
|
|
131
134
|
*
|
|
135
|
+
*
|
|
132
136
|
* @returns Reference to `this` in order to allow method chaining
|
|
133
137
|
*/
|
|
134
138
|
attachChange(
|
|
@@ -149,6 +153,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
149
153
|
*
|
|
150
154
|
* Fired when the value is changed by user interaction - each keystroke, delete, paste, etc.
|
|
151
155
|
*
|
|
156
|
+
*
|
|
152
157
|
* @returns Reference to `this` in order to allow method chaining
|
|
153
158
|
*/
|
|
154
159
|
attachLiveChange(
|
|
@@ -174,6 +179,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
174
179
|
*
|
|
175
180
|
* Fired when the value is changed by user interaction - each keystroke, delete, paste, etc.
|
|
176
181
|
*
|
|
182
|
+
*
|
|
177
183
|
* @returns Reference to `this` in order to allow method chaining
|
|
178
184
|
*/
|
|
179
185
|
attachLiveChange(
|
|
@@ -191,6 +197,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
191
197
|
*
|
|
192
198
|
* The passed function and listener object must match the ones used for event registration.
|
|
193
199
|
*
|
|
200
|
+
*
|
|
194
201
|
* @returns Reference to `this` in order to allow method chaining
|
|
195
202
|
*/
|
|
196
203
|
detachChange(
|
|
@@ -208,6 +215,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
208
215
|
*
|
|
209
216
|
* The passed function and listener object must match the ones used for event registration.
|
|
210
217
|
*
|
|
218
|
+
*
|
|
211
219
|
* @returns Reference to `this` in order to allow method chaining
|
|
212
220
|
*/
|
|
213
221
|
detachLiveChange(
|
|
@@ -221,10 +229,10 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
221
229
|
oListener?: object
|
|
222
230
|
): this;
|
|
223
231
|
/**
|
|
224
|
-
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
225
|
-
*
|
|
226
232
|
* Fires event {@link #event:change change} to attached listeners.
|
|
227
233
|
*
|
|
234
|
+
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
235
|
+
*
|
|
228
236
|
* @returns Reference to `this` in order to allow method chaining
|
|
229
237
|
*/
|
|
230
238
|
fireChange(
|
|
@@ -234,10 +242,10 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
234
242
|
mParameters?: CodeEditor$ChangeEventParameters
|
|
235
243
|
): this;
|
|
236
244
|
/**
|
|
237
|
-
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
238
|
-
*
|
|
239
245
|
* Fires event {@link #event:liveChange liveChange} to attached listeners.
|
|
240
246
|
*
|
|
247
|
+
* @ui5-protected Do not call from applications (only from related classes in the framework)
|
|
248
|
+
*
|
|
241
249
|
* @returns Reference to `this` in order to allow method chaining
|
|
242
250
|
*/
|
|
243
251
|
fireLiveChange(
|
|
@@ -247,11 +255,16 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
247
255
|
mParameters?: CodeEditor$LiveChangeEventParameters
|
|
248
256
|
): this;
|
|
249
257
|
/**
|
|
250
|
-
*
|
|
258
|
+
* Returns the internal instance of the third-party Ace code editor.
|
|
251
259
|
*
|
|
252
|
-
*
|
|
260
|
+
* **Note:** This control is based on third-party open-source software, and there might be incompatible
|
|
261
|
+
* changes introduced by the code owner in their future releases.
|
|
262
|
+
*
|
|
263
|
+
* @since 1.121
|
|
264
|
+
*
|
|
265
|
+
* @returns the internal third-party Ace code editor instance
|
|
253
266
|
*/
|
|
254
|
-
|
|
267
|
+
getAceEditor(): object;
|
|
255
268
|
/**
|
|
256
269
|
* Gets current value of property {@link #getColorTheme colorTheme}.
|
|
257
270
|
*
|
|
@@ -263,12 +276,14 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
263
276
|
*
|
|
264
277
|
* Default value is `"default"`.
|
|
265
278
|
*
|
|
279
|
+
*
|
|
266
280
|
* @returns Value of property `colorTheme`
|
|
267
281
|
*/
|
|
268
282
|
getColorTheme(): string;
|
|
269
283
|
/**
|
|
270
284
|
* Returns the current value of the code editor
|
|
271
285
|
*
|
|
286
|
+
*
|
|
272
287
|
* @returns Returns the current value of the code editor
|
|
273
288
|
*/
|
|
274
289
|
getCurrentValue(): string;
|
|
@@ -279,6 +294,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
279
294
|
*
|
|
280
295
|
* Default value is `true`.
|
|
281
296
|
*
|
|
297
|
+
*
|
|
282
298
|
* @returns Value of property `editable`
|
|
283
299
|
*/
|
|
284
300
|
getEditable(): boolean;
|
|
@@ -290,6 +306,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
290
306
|
*
|
|
291
307
|
* Default value is `"100%"`.
|
|
292
308
|
*
|
|
309
|
+
*
|
|
293
310
|
* @returns Value of property `height`
|
|
294
311
|
*/
|
|
295
312
|
getHeight(): CSSSize;
|
|
@@ -298,6 +315,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
298
315
|
*
|
|
299
316
|
* By default, this is the ID of the control itself.
|
|
300
317
|
*
|
|
318
|
+
*
|
|
301
319
|
* @returns ID to be used for the `labelFor`
|
|
302
320
|
*/
|
|
303
321
|
getIdForLabel(): string;
|
|
@@ -308,12 +326,11 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
308
326
|
*
|
|
309
327
|
* Default value is `true`.
|
|
310
328
|
*
|
|
329
|
+
*
|
|
311
330
|
* @returns Value of property `lineNumbers`
|
|
312
331
|
*/
|
|
313
332
|
getLineNumbers(): boolean;
|
|
314
333
|
/**
|
|
315
|
-
* @since 1.48.1
|
|
316
|
-
*
|
|
317
334
|
* Gets current value of property {@link #getMaxLines maxLines}.
|
|
318
335
|
*
|
|
319
336
|
* Sets whether the editor height should auto expand to a maximum number of lines. After reaching the maximum
|
|
@@ -324,6 +341,8 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
324
341
|
*
|
|
325
342
|
* Default value is `0`.
|
|
326
343
|
*
|
|
344
|
+
* @since 1.48.1
|
|
345
|
+
*
|
|
327
346
|
* @returns Value of property `maxLines`
|
|
328
347
|
*/
|
|
329
348
|
getMaxLines(): int;
|
|
@@ -334,6 +353,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
334
353
|
*
|
|
335
354
|
* Default value is `true`.
|
|
336
355
|
*
|
|
356
|
+
*
|
|
337
357
|
* @returns Value of property `syntaxHints`
|
|
338
358
|
*/
|
|
339
359
|
getSyntaxHints(): boolean;
|
|
@@ -356,6 +376,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
356
376
|
*
|
|
357
377
|
* Default value is `"javascript"`.
|
|
358
378
|
*
|
|
379
|
+
*
|
|
359
380
|
* @returns Value of property `type`
|
|
360
381
|
*/
|
|
361
382
|
getType(): string;
|
|
@@ -366,6 +387,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
366
387
|
*
|
|
367
388
|
* Default value is `empty string`.
|
|
368
389
|
*
|
|
390
|
+
*
|
|
369
391
|
* @returns Value of property `value`
|
|
370
392
|
*/
|
|
371
393
|
getValue(): string;
|
|
@@ -376,6 +398,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
376
398
|
*
|
|
377
399
|
* Default value is `false`.
|
|
378
400
|
*
|
|
401
|
+
*
|
|
379
402
|
* @returns Value of property `valueSelection`
|
|
380
403
|
*/
|
|
381
404
|
getValueSelection(): boolean;
|
|
@@ -386,21 +409,23 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
386
409
|
*
|
|
387
410
|
* Default value is `"100%"`.
|
|
388
411
|
*
|
|
412
|
+
*
|
|
389
413
|
* @returns Value of property `width`
|
|
390
414
|
*/
|
|
391
415
|
getWidth(): CSSSize;
|
|
392
416
|
/**
|
|
393
|
-
* @since 1.54.1
|
|
394
|
-
*
|
|
395
417
|
* Pretty-prints the content of the editor.
|
|
396
418
|
*
|
|
397
|
-
* **Note:** Works well
|
|
398
|
-
*
|
|
419
|
+
* **Note:** Works well for PHP. For other editor types (modes), the content might not be formatted well.
|
|
420
|
+
* In such cases it is recommended to use your own formatting.
|
|
421
|
+
*
|
|
422
|
+
* @since 1.54.1
|
|
399
423
|
*/
|
|
400
424
|
prettyPrint(): void;
|
|
401
425
|
/**
|
|
402
426
|
* Sets the color theme of the code editor
|
|
403
427
|
*
|
|
428
|
+
*
|
|
404
429
|
* @returns Returns `this` to allow method chaining
|
|
405
430
|
*/
|
|
406
431
|
setColorTheme(
|
|
@@ -418,6 +443,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
418
443
|
*
|
|
419
444
|
* Default value is `true`.
|
|
420
445
|
*
|
|
446
|
+
*
|
|
421
447
|
* @returns Reference to `this` in order to allow method chaining
|
|
422
448
|
*/
|
|
423
449
|
setEditable(
|
|
@@ -436,6 +462,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
436
462
|
*
|
|
437
463
|
* Default value is `"100%"`.
|
|
438
464
|
*
|
|
465
|
+
*
|
|
439
466
|
* @returns Reference to `this` in order to allow method chaining
|
|
440
467
|
*/
|
|
441
468
|
setHeight(
|
|
@@ -453,6 +480,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
453
480
|
*
|
|
454
481
|
* Default value is `true`.
|
|
455
482
|
*
|
|
483
|
+
*
|
|
456
484
|
* @returns Reference to `this` in order to allow method chaining
|
|
457
485
|
*/
|
|
458
486
|
setLineNumbers(
|
|
@@ -462,8 +490,6 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
462
490
|
bLineNumbers?: boolean
|
|
463
491
|
): this;
|
|
464
492
|
/**
|
|
465
|
-
* @since 1.48.1
|
|
466
|
-
*
|
|
467
493
|
* Sets a new value for property {@link #getMaxLines maxLines}.
|
|
468
494
|
*
|
|
469
495
|
* Sets whether the editor height should auto expand to a maximum number of lines. After reaching the maximum
|
|
@@ -476,6 +502,8 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
476
502
|
*
|
|
477
503
|
* Default value is `0`.
|
|
478
504
|
*
|
|
505
|
+
* @since 1.48.1
|
|
506
|
+
*
|
|
479
507
|
* @returns Reference to `this` in order to allow method chaining
|
|
480
508
|
*/
|
|
481
509
|
setMaxLines(
|
|
@@ -493,6 +521,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
493
521
|
*
|
|
494
522
|
* Default value is `true`.
|
|
495
523
|
*
|
|
524
|
+
*
|
|
496
525
|
* @returns Reference to `this` in order to allow method chaining
|
|
497
526
|
*/
|
|
498
527
|
setSyntaxHints(
|
|
@@ -522,6 +551,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
522
551
|
*
|
|
523
552
|
* Default value is `"javascript"`.
|
|
524
553
|
*
|
|
554
|
+
*
|
|
525
555
|
* @returns Reference to `this` in order to allow method chaining
|
|
526
556
|
*/
|
|
527
557
|
setType(
|
|
@@ -539,6 +569,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
539
569
|
*
|
|
540
570
|
* Default value is `empty string`.
|
|
541
571
|
*
|
|
572
|
+
*
|
|
542
573
|
* @returns Reference to `this` in order to allow method chaining
|
|
543
574
|
*/
|
|
544
575
|
setValue(
|
|
@@ -556,6 +587,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
556
587
|
*
|
|
557
588
|
* Default value is `false`.
|
|
558
589
|
*
|
|
590
|
+
*
|
|
559
591
|
* @returns Reference to `this` in order to allow method chaining
|
|
560
592
|
*/
|
|
561
593
|
setValueSelection(
|
|
@@ -573,6 +605,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
573
605
|
*
|
|
574
606
|
* Default value is `"100%"`.
|
|
575
607
|
*
|
|
608
|
+
*
|
|
576
609
|
* @returns Reference to `this` in order to allow method chaining
|
|
577
610
|
*/
|
|
578
611
|
setWidth(
|
|
@@ -633,13 +666,13 @@ declare module "sap/ui/codeeditor/CodeEditor" {
|
|
|
633
666
|
valueSelection?: boolean | PropertyBindingInfo | `{${string}}`;
|
|
634
667
|
|
|
635
668
|
/**
|
|
636
|
-
* @since 1.48.1
|
|
637
|
-
*
|
|
638
669
|
* Sets whether the editor height should auto expand to a maximum number of lines. After reaching the maximum
|
|
639
670
|
* number of lines specified, the content of the `CodeEditor` will become scrollable.
|
|
640
671
|
*
|
|
641
672
|
* **Note:** Keep in mind that the auto expand `CodeEditor` behavior requires the `height` property to be
|
|
642
673
|
* set to `auto`.
|
|
674
|
+
*
|
|
675
|
+
* @since 1.48.1
|
|
643
676
|
*/
|
|
644
677
|
maxLines?: int | PropertyBindingInfo | `{${string}}`;
|
|
645
678
|
|