@sapui5/ts-types 1.115.0 → 1.116.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.
Files changed (66) hide show
  1. package/README.md +4 -14
  2. package/package.json +1 -1
  3. package/types/index.d.ts +11 -3
  4. package/types/sap.apf.d.ts +38 -30
  5. package/types/sap.ca.ui.d.ts +129 -87
  6. package/types/sap.chart.d.ts +51 -53
  7. package/types/sap.collaboration.d.ts +22 -20
  8. package/types/sap.esh.search.ui.d.ts +111 -107
  9. package/types/sap.f.d.ts +637 -726
  10. package/types/sap.fe.core.d.ts +187 -61
  11. package/types/sap.fe.macros.d.ts +46 -16
  12. package/types/sap.fe.navigation.d.ts +5 -5
  13. package/types/sap.fe.placeholder.d.ts +3 -0
  14. package/types/sap.fe.templates.d.ts +5 -6
  15. package/types/sap.fe.test.d.ts +4 -4
  16. package/types/sap.fe.tools.d.ts +3 -0
  17. package/types/sap.feedback.ui.d.ts +1 -1
  18. package/types/sap.gantt.d.ts +1074 -1207
  19. package/types/sap.insights.d.ts +3 -3
  20. package/types/sap.landvisz.d.ts +53 -27
  21. package/types/sap.m.d.ts +6012 -6875
  22. package/types/sap.makit.d.ts +42 -30
  23. package/types/sap.me.d.ts +61 -85
  24. package/types/sap.ndc.d.ts +43 -34
  25. package/types/sap.ovp.d.ts +19 -6
  26. package/types/sap.rules.ui.d.ts +29 -37
  27. package/types/sap.sac.df.d.ts +7 -5
  28. package/types/sap.suite.ui.commons.d.ts +1012 -1165
  29. package/types/sap.suite.ui.generic.template.d.ts +66 -64
  30. package/types/sap.suite.ui.microchart.d.ts +253 -225
  31. package/types/sap.tnt.d.ts +108 -87
  32. package/types/sap.ui.codeeditor.d.ts +26 -38
  33. package/types/sap.ui.commons.d.ts +541 -751
  34. package/types/sap.ui.comp.d.ts +2160 -2168
  35. package/types/sap.ui.core.d.ts +2094 -2062
  36. package/types/sap.ui.dt.d.ts +1 -1
  37. package/types/sap.ui.export.d.ts +31 -27
  38. package/types/sap.ui.fl.d.ts +48 -100
  39. package/types/sap.ui.generic.app.d.ts +28 -30
  40. package/types/sap.ui.generic.template.d.ts +1 -1
  41. package/types/sap.ui.integration.d.ts +391 -319
  42. package/types/sap.ui.layout.d.ts +317 -341
  43. package/types/sap.ui.mdc.d.ts +1505 -1386
  44. package/types/sap.ui.richtexteditor.d.ts +39 -39
  45. package/types/sap.ui.rta.d.ts +7 -7
  46. package/types/sap.ui.suite.d.ts +12 -8
  47. package/types/sap.ui.support.d.ts +11 -11
  48. package/types/sap.ui.table.d.ts +344 -454
  49. package/types/sap.ui.testrecorder.d.ts +1 -1
  50. package/types/sap.ui.unified.d.ts +875 -953
  51. package/types/sap.ui.ux3.d.ts +598 -816
  52. package/types/sap.ui.vbm.d.ts +496 -764
  53. package/types/sap.ui.vk.d.ts +1332 -1844
  54. package/types/sap.ui.vtm.d.ts +312 -386
  55. package/types/sap.ui.webc.common.d.ts +9 -9
  56. package/types/sap.ui.webc.fiori.d.ts +1036 -480
  57. package/types/sap.ui.webc.main.d.ts +4920 -1500
  58. package/types/sap.uiext.inbox.d.ts +57 -31
  59. package/types/sap.ushell.d.ts +451 -981
  60. package/types/sap.ushell_abap.d.ts +1 -1
  61. package/types/sap.uxap.d.ts +220 -252
  62. package/types/sap.viz.d.ts +861 -605
  63. package/types/sap.webanalytics.core.d.ts +1 -1
  64. package/types/sap.zen.commons.d.ts +2 -2
  65. package/types/sap.zen.crosstab.d.ts +2 -2
  66. package/types/sap.zen.dsh.d.ts +127 -157
package/README.md CHANGED
@@ -2,25 +2,15 @@
2
2
 
3
3
  # @sapui5/ts-types
4
4
 
5
- This npm package contains the types signatures (based on deprecated globals, see below) for all the SAPUI5 libraries.
5
+ This npm package contains the TypeScript type definitions (based on deprecated globals) for all the SAPUI5 libraries.
6
6
 
7
- These signatures can be used to:
7
+ <b>NOTE:</b> "based on globals" means that it supports the usage of the global "sap" object and the huge tree below this global object containing all modules and controls. But this usage is <b>no longer recommended</b>. In traditional JavaScript, UI5 application code should use the asynchronous `sap.ui.define()`/`sap.ui.require()` calls instead and for TypeScript code we recommend using ES6 module syntax provided by the [@sapui5/types](https://www.npmjs.com/package/@sapui5/types) package. Better use that one instead of this package.
8
8
 
9
- 1. Enable advanced content assist in IDEs, e.g: (VSCode / IntelliJ / Webstorm) for SAPUI5.
10
- 1. Integrate type checking for SAPUI5 applications using the TypeScript compiler.
11
-
12
- These two capabilities are available both for SAPUI5 apps written in TypeScript **and** in JavaScript.
13
-
14
- <b>NOTE:</b> "based on globals" means that it supports the usage of the global "sap" object and the huge tree below this global object containing all modules and controls. But this usage is <b>no longer recommended</b>. In traditional JavaScript, UI5 application code should use the asynchronous `sap.ui.define()`/`sap.ui.require()` calls instead and for TypeScript code we recommend using ES6 module syntax provided by the [@sapui5/ts-types-esm](https://www.npmjs.com/package/@sapui5/ts-types-esm) package. So better use that one instead of this package.
9
+ The central entry point for all information about using UI5 with TypeScript (incl. sample apps and templates) is at https://sap.github.io/ui5-typescript.
15
10
 
16
11
  ## Status
17
12
 
18
- This project is in an experimental **_Beta State_**. Significant changes are likely to occur,
19
- including potential **breaking changes**.
20
-
21
- For information on changes in the type definitions, in particular ones which require adaptation, please refer to the [Release Notes](https://sap.github.io/ui5-typescript/releasenotes.html).
22
-
23
- The central entry point for all information about using UI5 with TypeScript (incl. sample apps and templates) is at https://sap.github.io/ui5-typescript.
13
+ This project **deprecated**. Please use [@sapui5/types](https://www.npmjs.com/package/@sapui5/types) instead.
24
14
 
25
15
  ## License
26
16
  This package is provided under the terms of the [SAP Developer License Agreement](https://tools.hana.ondemand.com/developer-license-3.1.txt).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/ts-types",
3
- "version": "1.115.0",
3
+ "version": "1.116.0",
4
4
  "description": "SAPUI5 TypeScript Definitions",
5
5
  "homepage": "https://ui5.sap.com",
6
6
  "author": "SAP SE (https://www.sap.com)",
package/types/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  /**
2
- * This is a Beta version of the SAPUI5 TypeScript signatures.
3
- * Significant changes may occur in future versions,
4
- * including potential breaking changes.
2
+ * We encourage you to use SAPUI5 with TypeScript productively for an
3
+ * improved development efficiency and experience. TypeScript itself keeps
4
+ * evolving and we try to further improve the UI5 type definitions, so there
5
+ * could be potential incompatible changes between versions of the type
6
+ * definitions. However, such incompatibilities would only affect the
7
+ * compilation of your code but will not cause runtime issues in your
8
+ * application. Plus, there are various ways to easily deal with them:
9
+ * you can, for example, simply keep using the previous version of the
10
+ * UI5 type definitions together with an updated UI5 runtime.
5
11
  */
6
12
  /// <reference path="./sap.apf.d.ts"/>
7
13
  /// <reference path="./sap.chart.d.ts"/>
@@ -37,8 +43,10 @@
37
43
  /// <reference path="./sap.fe.core.d.ts"/>
38
44
  /// <reference path="./sap.fe.macros.d.ts"/>
39
45
  /// <reference path="./sap.fe.navigation.d.ts"/>
46
+ /// <reference path="./sap.fe.placeholder.d.ts"/>
40
47
  /// <reference path="./sap.fe.templates.d.ts"/>
41
48
  /// <reference path="./sap.fe.test.d.ts"/>
49
+ /// <reference path="./sap.fe.tools.d.ts"/>
42
50
  /// <reference path="./sap.feedback.ui.d.ts"/>
43
51
  /// <reference path="./sap.landvisz.d.ts"/>
44
52
  /// <reference path="./sap.rules.ui.d.ts"/>
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.115.0
1
+ // For Library Version: 1.116.0
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -23,7 +23,7 @@ declare namespace sap {
23
23
  /**
24
24
  * Returns the calling object
25
25
  */
26
- getCallingObject(): object;
26
+ getCallingObject(): object | string;
27
27
  /**
28
28
  * Returns the message code.
29
29
  */
@@ -121,7 +121,7 @@ declare namespace sap {
121
121
  /**
122
122
  * The object represents an OData GET request.
123
123
  */
124
- oRequest: object,
124
+ oRequest: object | string,
125
125
  /**
126
126
  * Service defined by the analytical content configuration.
127
127
  */
@@ -153,12 +153,16 @@ declare namespace sap {
153
153
  * The first argument of the callback function is the received data (as Array). The second argument is {sap.apf.core.EntityTypeMetadata}.
154
154
  * The third argument is {sap.apf.core.MessageObject}.
155
155
  */
156
- fnCallback: Function,
156
+ fnCallback: (
157
+ p1: any[],
158
+ p2: /* was: sap.apf.core.EntityTypeMetadata */ any,
159
+ p3: sap.apf.core.MessageObject
160
+ ) => void,
157
161
  /**
158
162
  * An optional object containing additional query string options Format: { orderby : [{ property : ,
159
163
  * order : }], top : , skip : }
160
164
  */
161
- oRequestOptions: Object
165
+ oRequestOptions: object | string
162
166
  ): undefined;
163
167
  }
164
168
  /**
@@ -176,7 +180,7 @@ declare namespace sap {
176
180
  /**
177
181
  * The object represents an OData GET request.
178
182
  */
179
- oRequest: object,
183
+ oRequest: object | string,
180
184
  /**
181
185
  * Service defined by the analytical content configuration.
182
186
  */
@@ -208,12 +212,16 @@ declare namespace sap {
208
212
  * The first argument of the callback function is the received data (as Array). The second argument is {sap.apf.core.EntityTypeMetadata}.
209
213
  * The third argument is {sap.apf.core.MessageObject}.
210
214
  */
211
- fnCallback: Function,
215
+ fnCallback: (
216
+ p1: any[],
217
+ p2: /* was: sap.apf.core.EntityTypeMetadata */ any,
218
+ p3: sap.apf.core.MessageObject
219
+ ) => void,
212
220
  /**
213
221
  * An optional object containing additional query string options Format: { orderby : [{ property : ,
214
222
  * order : }], top : , skip : }
215
223
  */
216
- oRequestOptions: Object
224
+ oRequestOptions: object | string
217
225
  ): undefined;
218
226
  }
219
227
  }
@@ -221,7 +229,7 @@ declare namespace sap {
221
229
  namespace ui {
222
230
  namespace representations {
223
231
  /**
224
- * @EXPERIMENTAL - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
232
+ * @experimental - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
225
233
  *
226
234
  * This is not a runtime class, but it describes the interface that a representation (chart) has to implement
227
235
  * for to interact with the APF.
@@ -255,19 +263,19 @@ declare namespace sap {
255
263
  /**
256
264
  * Source representation implementing the representationInterface.
257
265
  */
258
- oSourceRepresentation: object
266
+ oSourceRepresentation: object | string
259
267
  ): void;
260
268
  /**
261
269
  * This method uses the serialization information from serialized data and sets the selection to representation
262
270
  * based on mode and selection string returned.
263
271
  */
264
- deserialize(oSerializationInformation: object): void;
272
+ deserialize(oSerializationInformation: object | string): void;
265
273
  /**
266
274
  * Returns the alternate representation of current step (i.e. list representation for the charts)
267
275
  *
268
276
  * @returns oAlternateRepresentation
269
277
  */
270
- getAlternateRepresentation(): object;
278
+ getAlternateRepresentation(): object | string;
271
279
  /**
272
280
  * Returns data for representation type
273
281
  *
@@ -287,7 +295,7 @@ declare namespace sap {
287
295
  * @returns oUiObject The UI object that has to be shown in main representation area. Example: Line chart
288
296
  * instance for a line chart representation.
289
297
  */
290
- getMainContent(): object;
298
+ getMainContent(): object | string;
291
299
  /**
292
300
  * Returns meta data for representation type
293
301
  *
@@ -299,14 +307,14 @@ declare namespace sap {
299
307
  *
300
308
  * @returns oParameters
301
309
  */
302
- getParameter(): object;
310
+ getParameter(): object | string;
303
311
  /**
304
312
  * This method holds the logic to draw the content to be printed.
305
313
  *
306
314
  * @returns oUiObject The UI object that has to be printed. Example: Line chart instance for a line chart
307
315
  * representation.
308
316
  */
309
- getPrintContent(): object;
317
+ getPrintContent(): object | string;
310
318
  /**
311
319
  * Additionally to parameters being set in the request configuration and filter values that are derived
312
320
  * from the path logic, a request can be enriched with additional options such as **$top**, **$skip** and
@@ -363,7 +371,7 @@ declare namespace sap {
363
371
  * @returns oUiObject The UI object that has to be shown in thumbnail area. Example: Line chart instance
364
372
  * for a line chart representation.
365
373
  */
366
- getThumbnailContent(): object;
374
+ getThumbnailContent(): object | string;
367
375
  /**
368
376
  * This method holds the logic to draw the content to be shown as tooltip for a thumbnail. It will be shown
369
377
  * inside a tooltip Popup when the thumbnail content overflows the thumbnail container area with a gradient
@@ -372,7 +380,7 @@ declare namespace sap {
372
380
  * @returns oUiObject The UI object that has to be shown as tooltip for a thumbnail. Example: Detailed content
373
381
  * of a form representation.
374
382
  */
375
- getTooltipContent(): object;
383
+ getTooltipContent(): object | string;
376
384
  /**
377
385
  * This method holds the logic to remove all selection from the chart. It also updates the step.
378
386
  */
@@ -383,7 +391,7 @@ declare namespace sap {
383
391
  *
384
392
  * @returns oSerializationInformation
385
393
  */
386
- serialize(): object;
394
+ serialize(): object | string;
387
395
  /**
388
396
  * The binding sets the data (received from the request) that has to be visualized. The array aDataResponse
389
397
  * is shared between all representations of a step and the binding. When lines are moved, deleted or changed,
@@ -408,7 +416,7 @@ declare namespace sap {
408
416
  /**
409
417
  * Contains filters and parameters for treetable request handling
410
418
  */
411
- controlObject: object,
419
+ controlObject: object | string,
412
420
  /**
413
421
  * OData model for the service of treetable
414
422
  */
@@ -424,7 +432,7 @@ declare namespace sap {
424
432
  ): void;
425
433
  }
426
434
  /**
427
- * @EXPERIMENTAL - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
435
+ * @experimental - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
428
436
  *
429
437
  * The interface proxy passed to a representation which provides access to required APF methods. This constructor
430
438
  * is used by apf.api. It can be also used to build unit tests that need an interface proxy between APF
@@ -765,7 +773,7 @@ declare namespace sap {
765
773
  /**
766
774
  * manifests of the component and the base component itself
767
775
  */
768
- manifests?: Object
776
+ manifests?: Object | sap.ui.core.Manifest
769
777
  );
770
778
  /**
771
779
  * Contains 'api'
@@ -773,7 +781,7 @@ declare namespace sap {
773
781
  type: undefined;
774
782
 
775
783
  /**
776
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
784
+ * @experimental - NOT FOR PRODUCTION USE
777
785
  *
778
786
  * The handling of the window.onerror by the message handler is either switched on or off. Per default the
779
787
  * handling is deactivated.
@@ -788,7 +796,7 @@ declare namespace sap {
788
796
  ): undefined;
789
797
  /**
790
798
  * @deprecated (since 1.23.1) - Remains in api in order to maintain downward compatibility to 3 Wave 5 apps.
791
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
799
+ * @experimental - NOT FOR PRODUCTION USE
792
800
  *
793
801
  * Adds an element to the footer area.
794
802
  */
@@ -877,9 +885,9 @@ declare namespace sap {
877
885
  */
878
886
  getTextHtmlEncoded(
879
887
  /**
880
- * || {string} Label object or text key
888
+ * object or text key
881
889
  */
882
- oLabel: object,
890
+ oLabel: object | string,
883
891
  /**
884
892
  * Array with parameters to replace place holders in text.
885
893
  */
@@ -890,9 +898,9 @@ declare namespace sap {
890
898
  */
891
899
  getTextNotHtmlEncoded(
892
900
  /**
893
- * || {string} Label object or text key
901
+ * Label object or text key
894
902
  */
895
- oLabel: object,
903
+ oLabel: object | string,
896
904
  /**
897
905
  * Array with parameters to replace place holders in text.
898
906
  */
@@ -900,7 +908,7 @@ declare namespace sap {
900
908
  ): string;
901
909
  /**
902
910
  * @deprecated (since 1.23.1)
903
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
911
+ * @experimental - NOT FOR PRODUCTION USE
904
912
  *
905
913
  * Loads a new application configuration in JSON format. When called many times, the file is loaded only
906
914
  * the first time.
@@ -925,7 +933,7 @@ declare namespace sap {
925
933
  oMessage: sap.apf.core.MessageObject
926
934
  ): undefined;
927
935
  /**
928
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
936
+ * @experimental - NOT FOR PRODUCTION USE
929
937
  *
930
938
  * Calls the sap.apf.core.instance#updatePath (also see {@link sap.apf.core.Path#update}) with proper callback
931
939
  * for UI. It also refreshes the steps either from the active step or all the steps depending on the boolean
@@ -953,7 +961,7 @@ declare namespace sap {
953
961
  fnCallback: Function
954
962
  ): void;
955
963
  /**
956
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
964
+ * @experimental - NOT FOR PRODUCTION USE
957
965
  *
958
966
  * Register the function callback to be executed on the given event type. fnCallback will be executed under
959
967
  * a context and will be passed with arguments depending on the event type.