@sapui5/types 1.115.1 → 1.117.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 (65) hide show
  1. package/README.md +5 -3
  2. package/package.json +1 -1
  3. package/types/index.d.ts +10 -3
  4. package/types/sap.apf.d.ts +47 -40
  5. package/types/sap.ca.ui.d.ts +255 -161
  6. package/types/sap.chart.d.ts +31 -52
  7. package/types/sap.collaboration.d.ts +34 -38
  8. package/types/sap.esh.search.ui.d.ts +118 -109
  9. package/types/sap.f.d.ts +196 -276
  10. package/types/sap.fe.core.d.ts +151 -15
  11. package/types/sap.fe.macros.d.ts +181 -54
  12. package/types/sap.fe.placeholder.d.ts +1 -1
  13. package/types/sap.fe.plugins.optimisticBatch.d.ts +3 -0
  14. package/types/sap.fe.test.d.ts +1 -1
  15. package/types/sap.fe.tools.d.ts +1 -1
  16. package/types/sap.feedback.ui.d.ts +1 -1
  17. package/types/sap.gantt.d.ts +1406 -2521
  18. package/types/sap.insights.d.ts +250 -4
  19. package/types/sap.landvisz.d.ts +112 -67
  20. package/types/sap.m.d.ts +2202 -2899
  21. package/types/sap.makit.d.ts +22 -43
  22. package/types/sap.me.d.ts +38 -68
  23. package/types/sap.ndc.d.ts +41 -39
  24. package/types/sap.ovp.d.ts +10 -83
  25. package/types/sap.rules.ui.d.ts +50 -51
  26. package/types/sap.sac.df.d.ts +100 -12
  27. package/types/sap.suite.ui.commons.d.ts +1511 -1233
  28. package/types/sap.suite.ui.generic.template.d.ts +5 -8
  29. package/types/sap.suite.ui.microchart.d.ts +72 -123
  30. package/types/sap.tnt.d.ts +64 -29
  31. package/types/sap.ui.codeeditor.d.ts +11 -17
  32. package/types/sap.ui.commons.d.ts +278 -422
  33. package/types/sap.ui.comp.d.ts +830 -948
  34. package/types/sap.ui.core.d.ts +1160 -1090
  35. package/types/sap.ui.dt.d.ts +1 -1
  36. package/types/sap.ui.export.d.ts +201 -12
  37. package/types/sap.ui.fl.d.ts +24 -74
  38. package/types/sap.ui.generic.app.d.ts +39 -43
  39. package/types/sap.ui.generic.template.d.ts +1 -1
  40. package/types/sap.ui.integration.d.ts +192 -100
  41. package/types/sap.ui.layout.d.ts +100 -69
  42. package/types/sap.ui.mdc.d.ts +1100 -913
  43. package/types/sap.ui.richtexteditor.d.ts +18 -30
  44. package/types/sap.ui.rta.d.ts +1 -1
  45. package/types/sap.ui.suite.d.ts +9 -15
  46. package/types/sap.ui.support.d.ts +1 -1
  47. package/types/sap.ui.table.d.ts +140 -192
  48. package/types/sap.ui.testrecorder.d.ts +1 -1
  49. package/types/sap.ui.unified.d.ts +277 -501
  50. package/types/sap.ui.ux3.d.ts +263 -504
  51. package/types/sap.ui.vbm.d.ts +691 -541
  52. package/types/sap.ui.vk.d.ts +1916 -1834
  53. package/types/sap.ui.vtm.d.ts +428 -329
  54. package/types/sap.ui.webc.common.d.ts +1 -1
  55. package/types/sap.ui.webc.fiori.d.ts +864 -342
  56. package/types/sap.ui.webc.main.d.ts +4337 -1135
  57. package/types/sap.uiext.inbox.d.ts +50 -92
  58. package/types/sap.ushell.d.ts +275 -309
  59. package/types/sap.ushell_abap.d.ts +1 -1
  60. package/types/sap.uxap.d.ts +51 -91
  61. package/types/sap.viz.d.ts +523 -959
  62. package/types/sap.webanalytics.core.d.ts +1 -1
  63. package/types/sap.zen.commons.d.ts +7 -12
  64. package/types/sap.zen.crosstab.d.ts +4 -7
  65. package/types/sap.zen.dsh.d.ts +154 -157
package/README.md CHANGED
@@ -18,18 +18,20 @@ These capabilities are available not only for SAPUI5 apps written in TypeScript,
18
18
 
19
19
  The central entry point for all information about using UI5 with TypeScript (incl. sample apps and templates) is https://sap.github.io/ui5-typescript.
20
20
 
21
+ The [UI5 TypeScript tutorial](https://github.com/SAP-samples/ui5-typescript-tutorial) gives the best end-to-end impression of UI5 application and control development in TypeScript. The above and below links lead to further details about certain aspects.
22
+
21
23
  To see the suggested project setup for TypeScript development, please check out the [TypeScript Hello World app](https://github.com/SAP-samples/ui5-typescript-helloworld). It not only can serve as copy template, but also includes a [detailed step-by-step guide](https://github.com/SAP-samples/ui5-typescript-helloworld/blob/main/step-by-step.md) for creating this setup from scratch.
22
24
 
23
25
  The [TypeScript branch of the "UI5 CAP Event App"](https://github.com/SAP-samples/ui5-cap-event-app/tree/typescript) sample demonstrates a more complex application using the same setup. It comes with an [explanation](https://github.com/SAP-samples/ui5-cap-event-app/blob/typescript/docs/typescript.md) of what UI5 TypeScript code usually looks like and what to consider when writing such code.
24
26
 
25
- For quick and easy scaffolding of a new UI5 app written in TypeScript, you can also use the easy-ui5 tool with the [generator-ui5-ts-app](https://github.com/ui5-community/generator-ui5-ts-app) generator.
27
+ For quick and easy scaffolding of a new UI5 app written in TypeScript, you can use the easy-ui5 tool with the [generator-ui5-ts-app](https://github.com/ui5-community/generator-ui5-ts-app) generator.
26
28
 
27
29
 
28
30
  ## Status
29
31
 
30
- The type definitions are in an experimental **_[Beta State](https://sap.github.io/ui5-typescript/beta-statement.html)_**. Changes are likely to occur, including potential **breaking changes**.
32
+ We encourage you to use SAPUI5 with TypeScript productively for an improved development efficiency and experience. TypeScript itself keeps evolving and we try to further improve the UI5 type definitions, so there could be potential incompatible changes between versions of the type definitions. However, such incompatibilities would only affect the compilation of your code but will not cause runtime issues in your application. Plus, there are various ways to easily deal with them: you can, for example, simply keep using the previous version of the UI5 type definitions together with an updated UI5 runtime.
31
33
 
32
- For information on changes in the type definitions, in particular ones which require adaptation (but also new enhancements), please refer to the [Release Notes](https://sap.github.io/ui5-typescript/releasenotes.html).
34
+ For news related to the type definitions, in particular ones which require adaptation, please refer to the [Release Notes](https://sap.github.io/ui5-typescript/releasenotes.html).
33
35
 
34
36
  ## License
35
37
  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/types",
3
- "version": "1.115.1",
3
+ "version": "1.117.0",
4
4
  "description": "SAPUI5 TypeScript Definitions",
5
5
  "homepage": "https://sap.github.io/ui5-typescript/",
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"/>
@@ -38,6 +44,7 @@
38
44
  /// <reference path="./sap.fe.macros.d.ts"/>
39
45
  /// <reference path="./sap.fe.navigation.d.ts"/>
40
46
  /// <reference path="./sap.fe.placeholder.d.ts"/>
47
+ /// <reference path="./sap.fe.plugins.optimisticBatch.d.ts"/>
41
48
  /// <reference path="./sap.fe.templates.d.ts"/>
42
49
  /// <reference path="./sap.fe.test.d.ts"/>
43
50
  /// <reference path="./sap.fe.tools.d.ts"/>
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.115.0
1
+ // For Library Version: 1.117.0
2
2
 
3
3
  declare module "sap/apf/library" {
4
4
  /**
@@ -10,6 +10,8 @@ declare module "sap/apf/library" {
10
10
  }
11
11
 
12
12
  declare module "sap/apf/api" {
13
+ import Manifest from "sap/ui/core/Manifest";
14
+
13
15
  import MessageObject from "sap/apf/core/messageObject";
14
16
 
15
17
  import ReadRequest from "sap/apf/core/readRequest";
@@ -29,7 +31,7 @@ declare module "sap/apf/api" {
29
31
  * on API-level, such as e.g. {@link sap.apf.Api#createMessageObject} for {@link sap.apf.core.MessageObject }
30
32
  * or {@link sap.apf.Api#createFilter} for {@link sap.apf.utils.Filter}.
31
33
  */
32
- class Api {
34
+ export default class Api {
33
35
  constructor(
34
36
  /**
35
37
  * A reference to the calling Component.js. The reference provides access to parameters and context.
@@ -44,7 +46,7 @@ declare module "sap/apf/api" {
44
46
  /**
45
47
  * manifests of the component and the base component itself
46
48
  */
47
- manifests?: Object
49
+ manifests?: Object | Manifest
48
50
  );
49
51
  /**
50
52
  * Contains 'api'
@@ -52,7 +54,7 @@ declare module "sap/apf/api" {
52
54
  type: undefined;
53
55
 
54
56
  /**
55
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
57
+ * @experimental - NOT FOR PRODUCTION USE
56
58
  *
57
59
  * The handling of the window.onerror by the message handler is either switched on or off. Per default the
58
60
  * handling is deactivated.
@@ -67,7 +69,7 @@ declare module "sap/apf/api" {
67
69
  ): undefined;
68
70
  /**
69
71
  * @deprecated (since 1.23.1) - Remains in api in order to maintain downward compatibility to 3 Wave 5 apps.
70
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
72
+ * @experimental - NOT FOR PRODUCTION USE
71
73
  *
72
74
  * Adds an element to the footer area.
73
75
  */
@@ -156,9 +158,9 @@ declare module "sap/apf/api" {
156
158
  */
157
159
  getTextHtmlEncoded(
158
160
  /**
159
- * || {string} Label object or text key
161
+ * object or text key
160
162
  */
161
- oLabel: object,
163
+ oLabel: object | string,
162
164
  /**
163
165
  * Array with parameters to replace place holders in text.
164
166
  */
@@ -169,9 +171,9 @@ declare module "sap/apf/api" {
169
171
  */
170
172
  getTextNotHtmlEncoded(
171
173
  /**
172
- * || {string} Label object or text key
174
+ * Label object or text key
173
175
  */
174
- oLabel: object,
176
+ oLabel: object | string,
175
177
  /**
176
178
  * Array with parameters to replace place holders in text.
177
179
  */
@@ -179,7 +181,7 @@ declare module "sap/apf/api" {
179
181
  ): string;
180
182
  /**
181
183
  * @deprecated (since 1.23.1)
182
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
184
+ * @experimental - NOT FOR PRODUCTION USE
183
185
  *
184
186
  * Loads a new application configuration in JSON format. When called many times, the file is loaded only
185
187
  * the first time.
@@ -204,7 +206,7 @@ declare module "sap/apf/api" {
204
206
  oMessage: MessageObject
205
207
  ): undefined;
206
208
  /**
207
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
209
+ * @experimental - NOT FOR PRODUCTION USE
208
210
  *
209
211
  * Calls the sap.apf.core.instance#updatePath (also see {@link sap.apf.core.Path#update}) with proper callback
210
212
  * for UI. It also refreshes the steps either from the active step or all the steps depending on the boolean
@@ -232,7 +234,7 @@ declare module "sap/apf/api" {
232
234
  fnCallback: Function
233
235
  ): void;
234
236
  /**
235
- * @EXPERIMENTAL - NOT FOR PRODUCTION USE
237
+ * @experimental - NOT FOR PRODUCTION USE
236
238
  *
237
239
  * Register the function callback to be executed on the given event type. fnCallback will be executed under
238
240
  * a context and will be passed with arguments depending on the event type.
@@ -273,7 +275,6 @@ declare module "sap/apf/api" {
273
275
  filter: sap.apf.utils.Filter
274
276
  ): void;
275
277
  }
276
- export default Api;
277
278
  }
278
279
 
279
280
  declare module "sap/apf/core/messageObject" {
@@ -281,13 +282,13 @@ declare module "sap/apf/core/messageObject" {
281
282
  * The message object represents the APF specific message object for detailed evaluation. The message object
282
283
  * shall be created by method {@link sap.apf.Api#createMessageObject}.
283
284
  */
284
- class MessageObject {
285
+ export default class MessageObject {
285
286
  constructor(oConfig: object);
286
287
 
287
288
  /**
288
289
  * Returns the calling object
289
290
  */
290
- getCallingObject(): object;
291
+ getCallingObject(): object | string;
291
292
  /**
292
293
  * Returns the message code.
293
294
  */
@@ -370,15 +371,16 @@ declare module "sap/apf/core/messageObject" {
370
371
  severity: string
371
372
  ): undefined;
372
373
  }
373
- export default MessageObject;
374
374
  }
375
375
 
376
376
  declare module "sap/apf/core/readRequest" {
377
+ import MessageObject from "sap/apf/core/messageObject";
378
+
377
379
  /**
378
380
  * Facade for sap.apf.core.Request for getting data via the OData protocol. This corresponds to a normal
379
381
  * HTTP GET method. Creation is done via APF API.
380
382
  */
381
- class ReadRequest {
383
+ export default class ReadRequest {
382
384
  constructor(
383
385
  /**
384
386
  * Injection object.
@@ -387,7 +389,7 @@ declare module "sap/apf/core/readRequest" {
387
389
  /**
388
390
  * The object represents an OData GET request.
389
391
  */
390
- oRequest: object,
392
+ oRequest: object | string,
391
393
  /**
392
394
  * Service defined by the analytical content configuration.
393
395
  */
@@ -419,15 +421,18 @@ declare module "sap/apf/core/readRequest" {
419
421
  * The first argument of the callback function is the received data (as Array). The second argument is {sap.apf.core.EntityTypeMetadata}.
420
422
  * The third argument is {sap.apf.core.MessageObject}.
421
423
  */
422
- fnCallback: Function,
424
+ fnCallback: (
425
+ p1: any[],
426
+ p2: /* was: sap.apf.core.EntityTypeMetadata */ any,
427
+ p3: MessageObject
428
+ ) => void,
423
429
  /**
424
430
  * An optional object containing additional query string options Format: { orderby : [{ property : ,
425
431
  * order : }], top : , skip : }
426
432
  */
427
- oRequestOptions: Object
433
+ oRequestOptions: object | string
428
434
  ): undefined;
429
435
  }
430
- export default ReadRequest;
431
436
  }
432
437
 
433
438
  declare module "sap/apf/ui/representations/representationInterface" {
@@ -436,12 +441,12 @@ declare module "sap/apf/ui/representations/representationInterface" {
436
441
  import ODataModel from "sap/ui/model/odata/v2/ODataModel";
437
442
 
438
443
  /**
439
- * @EXPERIMENTAL - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
444
+ * @experimental - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
440
445
  *
441
446
  * This is not a runtime class, but it describes the interface that a representation (chart) has to implement
442
447
  * for to interact with the APF.
443
448
  */
444
- class representationInterface {
449
+ export default class representationInterface {
445
450
  constructor(
446
451
  /**
447
452
  * specific interface proxy for communication between the representation and APF.
@@ -470,19 +475,19 @@ declare module "sap/apf/ui/representations/representationInterface" {
470
475
  /**
471
476
  * Source representation implementing the representationInterface.
472
477
  */
473
- oSourceRepresentation: object
478
+ oSourceRepresentation: object | string
474
479
  ): void;
475
480
  /**
476
481
  * This method uses the serialization information from serialized data and sets the selection to representation
477
482
  * based on mode and selection string returned.
478
483
  */
479
- deserialize(oSerializationInformation: object): void;
484
+ deserialize(oSerializationInformation: object | string): void;
480
485
  /**
481
486
  * Returns the alternate representation of current step (i.e. list representation for the charts)
482
487
  *
483
488
  * @returns oAlternateRepresentation
484
489
  */
485
- getAlternateRepresentation(): object;
490
+ getAlternateRepresentation(): object | string;
486
491
  /**
487
492
  * Returns data for representation type
488
493
  *
@@ -502,7 +507,7 @@ declare module "sap/apf/ui/representations/representationInterface" {
502
507
  * @returns oUiObject The UI object that has to be shown in main representation area. Example: Line chart
503
508
  * instance for a line chart representation.
504
509
  */
505
- getMainContent(): object;
510
+ getMainContent(): object | string;
506
511
  /**
507
512
  * Returns meta data for representation type
508
513
  *
@@ -514,14 +519,14 @@ declare module "sap/apf/ui/representations/representationInterface" {
514
519
  *
515
520
  * @returns oParameters
516
521
  */
517
- getParameter(): object;
522
+ getParameter(): object | string;
518
523
  /**
519
524
  * This method holds the logic to draw the content to be printed.
520
525
  *
521
526
  * @returns oUiObject The UI object that has to be printed. Example: Line chart instance for a line chart
522
527
  * representation.
523
528
  */
524
- getPrintContent(): object;
529
+ getPrintContent(): object | string;
525
530
  /**
526
531
  * Additionally to parameters being set in the request configuration and filter values that are derived
527
532
  * from the path logic, a request can be enriched with additional options such as **$top**, **$skip** and
@@ -578,7 +583,7 @@ declare module "sap/apf/ui/representations/representationInterface" {
578
583
  * @returns oUiObject The UI object that has to be shown in thumbnail area. Example: Line chart instance
579
584
  * for a line chart representation.
580
585
  */
581
- getThumbnailContent(): object;
586
+ getThumbnailContent(): object | string;
582
587
  /**
583
588
  * This method holds the logic to draw the content to be shown as tooltip for a thumbnail. It will be shown
584
589
  * inside a tooltip Popup when the thumbnail content overflows the thumbnail container area with a gradient
@@ -587,7 +592,7 @@ declare module "sap/apf/ui/representations/representationInterface" {
587
592
  * @returns oUiObject The UI object that has to be shown as tooltip for a thumbnail. Example: Detailed content
588
593
  * of a form representation.
589
594
  */
590
- getTooltipContent(): object;
595
+ getTooltipContent(): object | string;
591
596
  /**
592
597
  * This method holds the logic to remove all selection from the chart. It also updates the step.
593
598
  */
@@ -598,7 +603,7 @@ declare module "sap/apf/ui/representations/representationInterface" {
598
603
  *
599
604
  * @returns oSerializationInformation
600
605
  */
601
- serialize(): object;
606
+ serialize(): object | string;
602
607
  /**
603
608
  * The binding sets the data (received from the request) that has to be visualized. The array aDataResponse
604
609
  * is shared between all representations of a step and the binding. When lines are moved, deleted or changed,
@@ -623,7 +628,7 @@ declare module "sap/apf/ui/representations/representationInterface" {
623
628
  /**
624
629
  * Contains filters and parameters for treetable request handling
625
630
  */
626
- controlObject: object,
631
+ controlObject: object | string,
627
632
  /**
628
633
  * OData model for the service of treetable
629
634
  */
@@ -638,18 +643,17 @@ declare module "sap/apf/ui/representations/representationInterface" {
638
643
  entityTypeMetadata: /* was: sap.apf.core.EntityTypeMetadata */ any
639
644
  ): void;
640
645
  }
641
- export default representationInterface;
642
646
  }
643
647
 
644
648
  declare module "sap/apf/ui/representations/RepresentationInterfaceProxy" {
645
649
  /**
646
- * @EXPERIMENTAL - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
650
+ * @experimental - The complete interface is subject to ongoing work and not yet stable (as of Version 1.24.0).
647
651
  *
648
652
  * The interface proxy passed to a representation which provides access to required APF methods. This constructor
649
653
  * is used by apf.api. It can be also used to build unit tests that need an interface proxy between APF
650
654
  * and representations.
651
655
  */
652
- class RepresentationInterfaceProxy {
656
+ export default class RepresentationInterfaceProxy {
653
657
  constructor(
654
658
  oCoreApi: /* was: sap.apf.core.Instance */ any,
655
659
 
@@ -681,7 +685,6 @@ declare module "sap/apf/ui/representations/RepresentationInterfaceProxy" {
681
685
  */
682
686
  putMessage(): void;
683
687
  }
684
- export default RepresentationInterfaceProxy;
685
688
  }
686
689
 
687
690
  declare namespace sap {
@@ -705,7 +708,7 @@ declare namespace sap {
705
708
  /**
706
709
  * The object represents an OData GET request.
707
710
  */
708
- oRequest: object,
711
+ oRequest: object | string,
709
712
  /**
710
713
  * Service defined by the analytical content configuration.
711
714
  */
@@ -737,12 +740,16 @@ declare namespace sap {
737
740
  * The first argument of the callback function is the received data (as Array). The second argument is {sap.apf.core.EntityTypeMetadata}.
738
741
  * The third argument is {sap.apf.core.MessageObject}.
739
742
  */
740
- fnCallback: Function,
743
+ fnCallback: (
744
+ p1: any[],
745
+ p2: /* was: sap.apf.core.EntityTypeMetadata */ any,
746
+ p3: import("sap/apf/core/messageObject").default
747
+ ) => void,
741
748
  /**
742
749
  * An optional object containing additional query string options Format: { orderby : [{ property : ,
743
750
  * order : }], top : , skip : }
744
751
  */
745
- oRequestOptions: Object
752
+ oRequestOptions: object | string
746
753
  ): undefined;
747
754
  }
748
755
  }