@openui5/ts-types 1.114.0 → 1.115.1

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,9 +1,9 @@
1
- // For Library Version: 1.114.0
1
+ // For Library Version: 1.115.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
5
5
  /**
6
- * @SINCE 1.48
6
+ * @since 1.48
7
7
  *
8
8
  * UI5 library: sap.ui.codeeditor.
9
9
  */
@@ -73,7 +73,7 @@ declare namespace sap {
73
73
  | `{${string}}`;
74
74
 
75
75
  /**
76
- * @SINCE 1.48.1
76
+ * @since 1.48.1
77
77
  *
78
78
  * Sets whether the editor height should auto expand to a maximum number of lines. After reaching the maximum
79
79
  * number of lines specified, the content of the `CodeEditor` will become scrollable.
@@ -106,16 +106,44 @@ declare namespace sap {
106
106
  /**
107
107
  * Fired when the value is changed by user interaction - each keystroke, delete, paste, etc.
108
108
  */
109
- liveChange?: (oEvent: sap.ui.base.Event) => void;
109
+ liveChange?: (
110
+ oEvent: sap.ui.base.Event<sap.ui.codeeditor.CodeEditor$LiveChangeEventParameters>
111
+ ) => void;
110
112
 
111
113
  /**
112
114
  * Fired when the value has changed and the focus leaves the code editor.
113
115
  */
114
- change?: (oEvent: sap.ui.base.Event) => void;
116
+ change?: (
117
+ oEvent: sap.ui.base.Event<sap.ui.codeeditor.CodeEditor$ChangeEventParameters>
118
+ ) => void;
119
+ }
120
+
121
+ interface CodeEditor$ChangeEventParameters {
122
+ /**
123
+ * The current value of the code editor.
124
+ */
125
+ value?: string;
126
+
127
+ /**
128
+ * The old value of the code editor.
129
+ */
130
+ oldValue?: string;
131
+ }
132
+
133
+ interface CodeEditor$LiveChangeEventParameters {
134
+ /**
135
+ * The current value of the code editor.
136
+ */
137
+ value?: string;
138
+
139
+ /**
140
+ * The underlying change event of the third-party code editor.
141
+ */
142
+ editorEvent?: object;
115
143
  }
116
144
 
117
145
  /**
118
- * @SINCE 1.46
146
+ * @since 1.46
119
147
  *
120
148
  * Allows to visualize source code of various types with syntax highlighting, line numbers in editable and
121
149
  * read only mode. Use this control in scenarios where the user should be able to inspect and edit source
@@ -183,7 +211,7 @@ declare namespace sap {
183
211
  */
184
212
  static getMetadata(): sap.ui.core.ElementMetadata;
185
213
  /**
186
- * @SINCE 1.52
214
+ * @since 1.52
187
215
  *
188
216
  * Defines custom completer - object implementing a getCompletions method. The method has two parameters
189
217
  * - fnCallback method and context object. Context object provides details about oPos and sPrefix as provided
@@ -216,7 +244,7 @@ declare namespace sap {
216
244
  /**
217
245
  * The function to be called when the event occurs
218
246
  */
219
- fnFunction: (p1: sap.ui.base.Event) => void,
247
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
220
248
  /**
221
249
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
222
250
  */
@@ -236,7 +264,7 @@ declare namespace sap {
236
264
  /**
237
265
  * The function to be called when the event occurs
238
266
  */
239
- fnFunction: (p1: sap.ui.base.Event) => void,
267
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
240
268
  /**
241
269
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
242
270
  */
@@ -261,7 +289,7 @@ declare namespace sap {
261
289
  /**
262
290
  * The function to be called when the event occurs
263
291
  */
264
- fnFunction: (p1: sap.ui.base.Event) => void,
292
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
265
293
  /**
266
294
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
267
295
  */
@@ -281,7 +309,7 @@ declare namespace sap {
281
309
  /**
282
310
  * The function to be called when the event occurs
283
311
  */
284
- fnFunction: (p1: sap.ui.base.Event) => void,
312
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
285
313
  /**
286
314
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
287
315
  */
@@ -298,7 +326,7 @@ declare namespace sap {
298
326
  /**
299
327
  * The function to be called, when the event occurs
300
328
  */
301
- fnFunction: (p1: sap.ui.base.Event) => void,
329
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
302
330
  /**
303
331
  * Context object on which the given function had to be called
304
332
  */
@@ -315,14 +343,14 @@ declare namespace sap {
315
343
  /**
316
344
  * The function to be called, when the event occurs
317
345
  */
318
- fnFunction: (p1: sap.ui.base.Event) => void,
346
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
319
347
  /**
320
348
  * Context object on which the given function had to be called
321
349
  */
322
350
  oListener?: object
323
351
  ): this;
324
352
  /**
325
- * @PROTECTED - DO NOT USE IN APPLICATIONS (only for related classes in the framework)
353
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
326
354
  *
327
355
  * Fires event {@link #event:change change} to attached listeners.
328
356
  *
@@ -332,19 +360,10 @@ declare namespace sap {
332
360
  /**
333
361
  * Parameters to pass along with the event
334
362
  */
335
- mParameters?: {
336
- /**
337
- * The current value of the code editor.
338
- */
339
- value?: string;
340
- /**
341
- * The old value of the code editor.
342
- */
343
- oldValue?: string;
344
- }
363
+ mParameters?: sap.ui.codeeditor.CodeEditor$ChangeEventParameters
345
364
  ): this;
346
365
  /**
347
- * @PROTECTED - DO NOT USE IN APPLICATIONS (only for related classes in the framework)
366
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
348
367
  *
349
368
  * Fires event {@link #event:liveChange liveChange} to attached listeners.
350
369
  *
@@ -354,16 +373,7 @@ declare namespace sap {
354
373
  /**
355
374
  * Parameters to pass along with the event
356
375
  */
357
- mParameters?: {
358
- /**
359
- * The current value of the code editor.
360
- */
361
- value?: string;
362
- /**
363
- * The underlying change event of the third-party code editor.
364
- */
365
- editorEvent?: object;
366
- }
376
+ mParameters?: sap.ui.codeeditor.CodeEditor$LiveChangeEventParameters
367
377
  ): this;
368
378
  /**
369
379
  * Sets the focus to the code editor
@@ -431,7 +441,7 @@ declare namespace sap {
431
441
  */
432
442
  getLineNumbers(): boolean;
433
443
  /**
434
- * @SINCE 1.48.1
444
+ * @since 1.48.1
435
445
  *
436
446
  * Gets current value of property {@link #getMaxLines maxLines}.
437
447
  *
@@ -509,7 +519,7 @@ declare namespace sap {
509
519
  */
510
520
  getWidth(): sap.ui.core.CSSSize;
511
521
  /**
512
- * @SINCE 1.54.1
522
+ * @since 1.54.1
513
523
  *
514
524
  * Pretty-prints the content of the editor
515
525
  */
@@ -578,7 +588,7 @@ declare namespace sap {
578
588
  bLineNumbers?: boolean
579
589
  ): this;
580
590
  /**
581
- * @SINCE 1.48.1
591
+ * @since 1.48.1
582
592
  *
583
593
  * Sets a new value for property {@link #getMaxLines maxLines}.
584
594
  *
@@ -698,6 +708,22 @@ declare namespace sap {
698
708
  sWidth?: sap.ui.core.CSSSize
699
709
  ): this;
700
710
  }
711
+
712
+ /**
713
+ * @deprecated (since 1.115.1) - This name was introduced in 1.115.0, but will be 'CodeEditor$ChangeEventParameters'
714
+ * in 1.115.1 and any later releases.
715
+ */
716
+ type $CodeEditorChangeEventParameters = sap.ui.codeeditor.CodeEditor$ChangeEventParameters;
717
+
718
+ type CodeEditor$ChangeEvent = sap.ui.base.Event<CodeEditor$ChangeEventParameters>;
719
+
720
+ /**
721
+ * @deprecated (since 1.115.1) - This name was introduced in 1.115.0, but will be 'CodeEditor$LiveChangeEventParameters'
722
+ * in 1.115.1 and any later releases.
723
+ */
724
+ type $CodeEditorLiveChangeEventParameters = sap.ui.codeeditor.CodeEditor$LiveChangeEventParameters;
725
+
726
+ type CodeEditor$LiveChangeEvent = sap.ui.base.Event<CodeEditor$LiveChangeEventParameters>;
701
727
  }
702
728
  }
703
729