@openui5/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,20 +1,20 @@
1
- // For Library Version: 1.114.0
1
+ // For Library Version: 1.115.1
2
2
 
3
3
  declare module "sap/ui/codeeditor/library" {}
4
4
 
5
5
  declare module "sap/ui/codeeditor/CodeEditor" {
6
6
  import { default as Control, $ControlSettings } from "sap/ui/core/Control";
7
7
 
8
- import Event from "sap/ui/base/Event";
9
-
10
8
  import { CSSSize } from "sap/ui/core/library";
11
9
 
12
10
  import ElementMetadata from "sap/ui/core/ElementMetadata";
13
11
 
14
12
  import { PropertyBindingInfo } from "sap/ui/base/ManagedObject";
15
13
 
14
+ import Event from "sap/ui/base/Event";
15
+
16
16
  /**
17
- * @SINCE 1.46
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
20
  * read only mode. Use this control in scenarios where the user should be able to inspect and edit source
@@ -82,7 +82,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
82
82
  */
83
83
  static getMetadata(): ElementMetadata;
84
84
  /**
85
- * @SINCE 1.52
85
+ * @since 1.52
86
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
@@ -115,7 +115,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
115
115
  /**
116
116
  * The function to be called when the event occurs
117
117
  */
118
- fnFunction: (p1: Event) => void,
118
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
119
119
  /**
120
120
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
121
121
  */
@@ -135,7 +135,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
135
135
  /**
136
136
  * The function to be called when the event occurs
137
137
  */
138
- fnFunction: (p1: Event) => void,
138
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
139
139
  /**
140
140
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
141
141
  */
@@ -160,7 +160,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
160
160
  /**
161
161
  * The function to be called when the event occurs
162
162
  */
163
- fnFunction: (p1: Event) => void,
163
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
164
164
  /**
165
165
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
166
166
  */
@@ -180,7 +180,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
180
180
  /**
181
181
  * The function to be called when the event occurs
182
182
  */
183
- fnFunction: (p1: Event) => void,
183
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
184
184
  /**
185
185
  * Context object to call the event handler with. Defaults to this `sap.ui.codeeditor.CodeEditor` itself
186
186
  */
@@ -197,7 +197,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
197
197
  /**
198
198
  * The function to be called, when the event occurs
199
199
  */
200
- fnFunction: (p1: Event) => void,
200
+ fnFunction: (p1: CodeEditor$ChangeEvent) => void,
201
201
  /**
202
202
  * Context object on which the given function had to be called
203
203
  */
@@ -214,14 +214,14 @@ declare module "sap/ui/codeeditor/CodeEditor" {
214
214
  /**
215
215
  * The function to be called, when the event occurs
216
216
  */
217
- fnFunction: (p1: Event) => void,
217
+ fnFunction: (p1: CodeEditor$LiveChangeEvent) => void,
218
218
  /**
219
219
  * Context object on which the given function had to be called
220
220
  */
221
221
  oListener?: object
222
222
  ): this;
223
223
  /**
224
- * @PROTECTED - DO NOT USE IN APPLICATIONS (only for related classes in the framework)
224
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
225
225
  *
226
226
  * Fires event {@link #event:change change} to attached listeners.
227
227
  *
@@ -231,19 +231,10 @@ declare module "sap/ui/codeeditor/CodeEditor" {
231
231
  /**
232
232
  * Parameters to pass along with the event
233
233
  */
234
- mParameters?: {
235
- /**
236
- * The current value of the code editor.
237
- */
238
- value?: string;
239
- /**
240
- * The old value of the code editor.
241
- */
242
- oldValue?: string;
243
- }
234
+ mParameters?: CodeEditor$ChangeEventParameters
244
235
  ): this;
245
236
  /**
246
- * @PROTECTED - DO NOT USE IN APPLICATIONS (only for related classes in the framework)
237
+ * @ui5-protected Do not call from applications (only from related classes in the framework)
247
238
  *
248
239
  * Fires event {@link #event:liveChange liveChange} to attached listeners.
249
240
  *
@@ -253,16 +244,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
253
244
  /**
254
245
  * Parameters to pass along with the event
255
246
  */
256
- mParameters?: {
257
- /**
258
- * The current value of the code editor.
259
- */
260
- value?: string;
261
- /**
262
- * The underlying change event of the third-party code editor.
263
- */
264
- editorEvent?: object;
265
- }
247
+ mParameters?: CodeEditor$LiveChangeEventParameters
266
248
  ): this;
267
249
  /**
268
250
  * Sets the focus to the code editor
@@ -330,7 +312,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
330
312
  */
331
313
  getLineNumbers(): boolean;
332
314
  /**
333
- * @SINCE 1.48.1
315
+ * @since 1.48.1
334
316
  *
335
317
  * Gets current value of property {@link #getMaxLines maxLines}.
336
318
  *
@@ -408,7 +390,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
408
390
  */
409
391
  getWidth(): CSSSize;
410
392
  /**
411
- * @SINCE 1.54.1
393
+ * @since 1.54.1
412
394
  *
413
395
  * Pretty-prints the content of the editor
414
396
  */
@@ -477,7 +459,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
477
459
  bLineNumbers?: boolean
478
460
  ): this;
479
461
  /**
480
- * @SINCE 1.48.1
462
+ * @since 1.48.1
481
463
  *
482
464
  * Sets a new value for property {@link #getMaxLines maxLines}.
483
465
  *
@@ -648,7 +630,7 @@ declare module "sap/ui/codeeditor/CodeEditor" {
648
630
  valueSelection?: boolean | PropertyBindingInfo | `{${string}}`;
649
631
 
650
632
  /**
651
- * @SINCE 1.48.1
633
+ * @since 1.48.1
652
634
  *
653
635
  * Sets whether the editor height should auto expand to a maximum number of lines. After reaching the maximum
654
636
  * number of lines specified, the content of the `CodeEditor` will become scrollable.
@@ -675,13 +657,53 @@ declare module "sap/ui/codeeditor/CodeEditor" {
675
657
  /**
676
658
  * Fired when the value is changed by user interaction - each keystroke, delete, paste, etc.
677
659
  */
678
- liveChange?: (oEvent: Event) => void;
660
+ liveChange?: (oEvent: Event<CodeEditor$LiveChangeEventParameters>) => void;
679
661
 
680
662
  /**
681
663
  * Fired when the value has changed and the focus leaves the code editor.
682
664
  */
683
- change?: (oEvent: Event) => void;
665
+ change?: (oEvent: Event<CodeEditor$ChangeEventParameters>) => void;
666
+ }
667
+
668
+ export interface CodeEditor$ChangeEventParameters {
669
+ /**
670
+ * The current value of the code editor.
671
+ */
672
+ value?: string;
673
+
674
+ /**
675
+ * The old value of the code editor.
676
+ */
677
+ oldValue?: string;
678
+ }
679
+
680
+ /**
681
+ * @deprecated (since 1.115.1) - This name was introduced in 1.115.0, but will be 'CodeEditor$ChangeEventParameters'
682
+ * in 1.115.1 and any later releases.
683
+ */
684
+ export type $CodeEditorChangeEventParameters = CodeEditor$ChangeEventParameters;
685
+
686
+ export type CodeEditor$ChangeEvent = Event<CodeEditor$ChangeEventParameters>;
687
+
688
+ export interface CodeEditor$LiveChangeEventParameters {
689
+ /**
690
+ * The current value of the code editor.
691
+ */
692
+ value?: string;
693
+
694
+ /**
695
+ * The underlying change event of the third-party code editor.
696
+ */
697
+ editorEvent?: object;
684
698
  }
699
+
700
+ /**
701
+ * @deprecated (since 1.115.1) - This name was introduced in 1.115.0, but will be 'CodeEditor$LiveChangeEventParameters'
702
+ * in 1.115.1 and any later releases.
703
+ */
704
+ export type $CodeEditorLiveChangeEventParameters = CodeEditor$LiveChangeEventParameters;
705
+
706
+ export type CodeEditor$LiveChangeEvent = Event<CodeEditor$LiveChangeEventParameters>;
685
707
  }
686
708
 
687
709
  declare namespace sap {