@openui5/ts-types-esm 1.92.0 → 1.95.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.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.92.0
1
+ // For Library Version: 1.95.0
2
2
 
3
3
  declare module "sap/ui/codeeditor/library" {}
4
4
 
@@ -17,10 +17,8 @@ declare module "sap/ui/codeeditor/CodeEditor" {
17
17
  * @SINCE 1.46
18
18
  *
19
19
  * Allows to visualize source code of various types with syntax highlighting, line numbers in editable and
20
- * read only mode. Use this controls in scenarios where the user should be able to inspect and edit source
21
- * code. The control currently uses the third-party code editor Ace. NOTE: There is a known limitation where
22
- * CodeEditor won't work within IconTabBar on Internet Explorer. There is a way to achieve the same functionality
23
- * - an example of IconTabHeader and a CodeEditor can be found in the CodeEditor's samples.
20
+ * read only mode. Use this control in scenarios where the user should be able to inspect and edit source
21
+ * code. The control currently uses the third-party code editor Ace.
24
22
  */
25
23
  export default class CodeEditor extends Control {
26
24
  /**
@@ -54,6 +52,31 @@ declare module "sap/ui/codeeditor/CodeEditor" {
54
52
  mSettings?: $CodeEditorSettings
55
53
  );
56
54
 
55
+ /**
56
+ * Creates a new subclass of class sap.ui.codeeditor.CodeEditor with name `sClassName` and enriches it with
57
+ * the information contained in `oClassInfo`.
58
+ *
59
+ * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
60
+ */
61
+ static extend<T extends Record<string, unknown>>(
62
+ /**
63
+ * Name of the class being created
64
+ */
65
+ sClassName: string,
66
+ /**
67
+ * Object literal with information about the class
68
+ */
69
+ oClassInfo?: sap.ClassInfo<T, CodeEditor>,
70
+ /**
71
+ * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
72
+ * used by this class
73
+ */
74
+ FNMetaImpl?: Function
75
+ ): Function;
76
+ /**
77
+ * Returns a metadata object for class sap.ui.codeeditor.CodeEditor.
78
+ */
79
+ static getMetadata(): ElementMetadata;
57
80
  /**
58
81
  * @SINCE 1.52
59
82
  *
@@ -179,27 +202,6 @@ declare module "sap/ui/codeeditor/CodeEditor" {
179
202
  */
180
203
  oListener?: object
181
204
  ): this;
182
- /**
183
- * Creates a new subclass of class sap.ui.codeeditor.CodeEditor with name `sClassName` and enriches it with
184
- * the information contained in `oClassInfo`.
185
- *
186
- * `oClassInfo` might contain the same kind of information as described in {@link sap.ui.core.Control.extend}.
187
- */
188
- static extend<T extends Record<string, unknown>>(
189
- /**
190
- * Name of the class being created
191
- */
192
- sClassName: string,
193
- /**
194
- * Object literal with information about the class
195
- */
196
- oClassInfo?: sap.ClassInfo<T, CodeEditor>,
197
- /**
198
- * Constructor function for the metadata object; if not given, it defaults to the metadata implementation
199
- * used by this class
200
- */
201
- FNMetaImpl?: Function
202
- ): Function;
203
205
  /**
204
206
  * Fires event {@link #event:change change} to attached listeners.
205
207
  */
@@ -243,7 +245,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
243
245
  /**
244
246
  * Gets current value of property {@link #getColorTheme colorTheme}.
245
247
  *
246
- * Sets the editors color theme Possible values are: default, hcb, hcb_bright, hcb_blue, theme-ambiance,
248
+ * Sets the editor color theme. Possible values are: default, hcb, hcb_bright, hcb_blue, theme-ambiance,
247
249
  * chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, gob,
248
250
  * gruvbox, idle_fingers, iplastic, katzenmilch, kr_theme, kuroir, merbivore, merbivore_soft, mono_industrial,
249
251
  * monokai, pastel_on_dark, solarized_dark, solarized_light, sqlserver, terminal, textmate, tomorrow, tomorrow_night,
@@ -259,7 +261,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
259
261
  /**
260
262
  * Gets current value of property {@link #getEditable editable}.
261
263
  *
262
- * Sets whether the code in the editor can be changed by the user
264
+ * Sets whether the code in the editor can be changed by the user.
263
265
  *
264
266
  * Default value is `true`.
265
267
  */
@@ -276,7 +278,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
276
278
  /**
277
279
  * Gets current value of property {@link #getLineNumbers lineNumbers}.
278
280
  *
279
- * Sets whether line numbers should be shown
281
+ * Sets whether line numbers should be shown.
280
282
  *
281
283
  * Default value is `true`.
282
284
  */
@@ -295,14 +297,10 @@ declare module "sap/ui/codeeditor/CodeEditor" {
295
297
  * Default value is `0`.
296
298
  */
297
299
  getMaxLines(): int;
298
- /**
299
- * Returns a metadata object for class sap.ui.codeeditor.CodeEditor.
300
- */
301
- static getMetadata(): ElementMetadata;
302
300
  /**
303
301
  * Gets current value of property {@link #getSyntaxHints syntaxHints}.
304
302
  *
305
- * Sets whether to show syntax hints the editor. This flag is only available if line numbers are shown.
303
+ * Sets whether to show syntax hints in the editor. This flag is only available if line numbers are shown.
306
304
  *
307
305
  * Default value is `true`.
308
306
  */
@@ -310,7 +308,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
310
308
  /**
311
309
  * Gets current value of property {@link #getType type}.
312
310
  *
313
- * The type of the code in the editor used for syntax highlighting Possible types are: abap, abc, actionscript,
311
+ * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript,
314
312
  * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru,
315
313
  * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools,
316
314
  * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang,
@@ -322,7 +320,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
322
320
  * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql,
323
321
  * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript,
324
322
  * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade,
325
- * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document,
323
+ * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document
326
324
  *
327
325
  * Default value is `"javascript"`.
328
326
  */
@@ -330,7 +328,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
330
328
  /**
331
329
  * Gets current value of property {@link #getValue value}.
332
330
  *
333
- * The value displayed in the code editor
331
+ * The value displayed in the code editor.
334
332
  *
335
333
  * Default value is `empty string`.
336
334
  */
@@ -338,7 +336,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
338
336
  /**
339
337
  * Gets current value of property {@link #getValueSelection valueSelection}.
340
338
  *
341
- * Sets whether the code is automatically selected if a value is set
339
+ * Sets whether the code is automatically selected if a value is set.
342
340
  *
343
341
  * Default value is `false`.
344
342
  */
@@ -346,7 +344,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
346
344
  /**
347
345
  * Gets current value of property {@link #getWidth width}.
348
346
  *
349
- * The width of the code editor
347
+ * The width of the code editor.
350
348
  *
351
349
  * Default value is `"100%"`.
352
350
  */
@@ -369,7 +367,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
369
367
  /**
370
368
  * Sets a new value for property {@link #getEditable editable}.
371
369
  *
372
- * Sets whether the code in the editor can be changed by the user
370
+ * Sets whether the code in the editor can be changed by the user.
373
371
  *
374
372
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
375
373
  *
@@ -400,7 +398,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
400
398
  /**
401
399
  * Sets a new value for property {@link #getLineNumbers lineNumbers}.
402
400
  *
403
- * Sets whether line numbers should be shown
401
+ * Sets whether line numbers should be shown.
404
402
  *
405
403
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
406
404
  *
@@ -436,7 +434,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
436
434
  /**
437
435
  * Sets a new value for property {@link #getSyntaxHints syntaxHints}.
438
436
  *
439
- * Sets whether to show syntax hints the editor. This flag is only available if line numbers are shown.
437
+ * Sets whether to show syntax hints in the editor. This flag is only available if line numbers are shown.
440
438
  *
441
439
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
442
440
  *
@@ -451,7 +449,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
451
449
  /**
452
450
  * Sets a new value for property {@link #getType type}.
453
451
  *
454
- * The type of the code in the editor used for syntax highlighting Possible types are: abap, abc, actionscript,
452
+ * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript,
455
453
  * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru,
456
454
  * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools,
457
455
  * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang,
@@ -463,7 +461,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
463
461
  * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql,
464
462
  * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript,
465
463
  * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade,
466
- * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document,
464
+ * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document
467
465
  *
468
466
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
469
467
  *
@@ -478,7 +476,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
478
476
  /**
479
477
  * Sets a new value for property {@link #getValue value}.
480
478
  *
481
- * The value displayed in the code editor
479
+ * The value displayed in the code editor.
482
480
  *
483
481
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
484
482
  *
@@ -493,7 +491,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
493
491
  /**
494
492
  * Sets a new value for property {@link #getValueSelection valueSelection}.
495
493
  *
496
- * Sets whether the code is automatically selected if a value is set
494
+ * Sets whether the code is automatically selected if a value is set.
497
495
  *
498
496
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
499
497
  *
@@ -508,7 +506,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
508
506
  /**
509
507
  * Sets a new value for property {@link #getWidth width}.
510
508
  *
511
- * The width of the code editor
509
+ * The width of the code editor.
512
510
  *
513
511
  * When called with a value of `null` or `undefined`, the default value of the property will be restored.
514
512
  *
@@ -524,12 +522,12 @@ declare module "sap/ui/codeeditor/CodeEditor" {
524
522
 
525
523
  export interface $CodeEditorSettings extends $ControlSettings {
526
524
  /**
527
- * The value displayed in the code editor
525
+ * The value displayed in the code editor.
528
526
  */
529
527
  value?: string | PropertyBindingInfo;
530
528
 
531
529
  /**
532
- * The type of the code in the editor used for syntax highlighting Possible types are: abap, abc, actionscript,
530
+ * The type of the code in the editor used for syntax highlighting. Possible types are: abap, abc, actionscript,
533
531
  * ada, apache_conf, applescript, asciidoc, assembly_x86, autohotkey, batchfile, bro, c9search, c_cpp, cirru,
534
532
  * clojure, cobol, coffee, coldfusion, csharp, css, curly, d, dart, diff, django, dockerfile, dot, drools,
535
533
  * eiffel, ejs, elixir, elm, erlang, forth, fortran, ftl, gcode, gherkin, gitignore, glsl, gobstones, golang,
@@ -541,12 +539,12 @@ declare module "sap/ui/codeeditor/CodeEditor" {
541
539
  * rst, ruby, rust, sass, scad, scala, scheme, scss, sh, sjs, smarty, snippets, soy_template, space, sql,
542
540
  * sqlserver, stylus, svg, swift, swig, tcl, tex, text, textile, toml, tsx, twig, typescript, vala, vbscript,
543
541
  * velocity, verilog, vhdl, wollok, xml, xquery, yaml, terraform, slim, redshift, red, puppet, php_laravel_blade,
544
- * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document,
542
+ * mixal, jssm, fsharp, edifact, csp, cssound_score, cssound_orchestra, cssound_document
545
543
  */
546
544
  type?: string | PropertyBindingInfo;
547
545
 
548
546
  /**
549
- * The width of the code editor
547
+ * The width of the code editor.
550
548
  */
551
549
  width?: CSSSize | PropertyBindingInfo;
552
550
 
@@ -557,17 +555,17 @@ declare module "sap/ui/codeeditor/CodeEditor" {
557
555
  height?: CSSSize | PropertyBindingInfo;
558
556
 
559
557
  /**
560
- * Sets whether the code in the editor can be changed by the user
558
+ * Sets whether the code in the editor can be changed by the user.
561
559
  */
562
560
  editable?: boolean | PropertyBindingInfo;
563
561
 
564
562
  /**
565
- * Sets whether line numbers should be shown
563
+ * Sets whether line numbers should be shown.
566
564
  */
567
565
  lineNumbers?: boolean | PropertyBindingInfo;
568
566
 
569
567
  /**
570
- * Sets whether the code is automatically selected if a value is set
568
+ * Sets whether the code is automatically selected if a value is set.
571
569
  */
572
570
  valueSelection?: boolean | PropertyBindingInfo;
573
571
 
@@ -583,7 +581,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
583
581
  maxLines?: int | PropertyBindingInfo;
584
582
 
585
583
  /**
586
- * Sets the editors color theme Possible values are: default, hcb, hcb_bright, hcb_blue, theme-ambiance,
584
+ * Sets the editor color theme. Possible values are: default, hcb, hcb_bright, hcb_blue, theme-ambiance,
587
585
  * chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, gob,
588
586
  * gruvbox, idle_fingers, iplastic, katzenmilch, kr_theme, kuroir, merbivore, merbivore_soft, mono_industrial,
589
587
  * monokai, pastel_on_dark, solarized_dark, solarized_light, sqlserver, terminal, textmate, tomorrow, tomorrow_night,
@@ -592,19 +590,19 @@ declare module "sap/ui/codeeditor/CodeEditor" {
592
590
  colorTheme?: string | PropertyBindingInfo;
593
591
 
594
592
  /**
595
- * Sets whether to show syntax hints the editor. This flag is only available if line numbers are shown.
593
+ * Sets whether to show syntax hints in the editor. This flag is only available if line numbers are shown.
596
594
  */
597
595
  syntaxHints?: boolean | PropertyBindingInfo;
598
596
 
599
597
  /**
600
598
  * Fired when the value is changed by user interaction - each keystroke, delete, paste, etc.
601
599
  */
602
- liveChange?: Function;
600
+ liveChange?: (oEvent: Event) => void;
603
601
 
604
602
  /**
605
603
  * Fired when the value has changed and the focus leaves the code editor.
606
604
  */
607
- change?: Function;
605
+ change?: (oEvent: Event) => void;
608
606
  }
609
607
  }
610
608