@openui5/ts-types 1.120.17 → 1.120.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/ts-types",
3
- "version": "1.120.17",
3
+ "version": "1.120.18",
4
4
  "description": "OpenUI5 TypeScript Definitions",
5
5
  "homepage": "https://openui5.org",
6
6
  "author": "SAP SE (https://www.sap.com)",
package/types/sap.f.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  /**
package/types/sap.m.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -15861,7 +15861,7 @@ declare namespace sap {
15861
15861
  * Required for receiving a `readyState` is to set the property `sendXHR` to true. This property is not
15862
15862
  * supported by Internet Explorer 9.
15863
15863
  */
15864
- readyState?: string;
15864
+ readyState?: int;
15865
15865
 
15866
15866
  /**
15867
15867
  * Status of the XHR request.
@@ -15869,7 +15869,7 @@ declare namespace sap {
15869
15869
  * Required for receiving a `status` is to set the property `sendXHR` to true. This property is not supported
15870
15870
  * by Internet Explorer 9.
15871
15871
  */
15872
- status?: string;
15872
+ status?: int;
15873
15873
 
15874
15874
  /**
15875
15875
  * Http-Response which comes from the server.
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -280,7 +280,7 @@ declare namespace sap {
280
280
  }
281
281
  }
282
282
 
283
- // For Library Version: 1.120.17
283
+ // For Library Version: 1.120.18
284
284
 
285
285
  declare module "sap/base/assert" {
286
286
  /**
@@ -20124,14 +20124,64 @@ declare namespace sap {
20124
20124
  * **Note:** This static method is automatically propagated to subclasses of `ControllerExtension`.
20125
20125
  *
20126
20126
  *
20127
- * @returns A controller extension class
20127
+ * @returns The adapted controller extension class
20128
20128
  */
20129
- static override(
20129
+ static override<
20130
+ TheExtension extends new () => ControllerExtension,
20131
+ AddtlProps extends object
20132
+ >(
20133
+ this: TheExtension,
20130
20134
  /**
20131
20135
  * The custom extension definition
20132
20136
  */
20133
- oExtension: Record<string, Function>
20134
- ): Function;
20137
+ customExtension: AddtlProps
20138
+ ): new () => InstanceType<TheExtension> & AddtlProps;
20139
+ /**
20140
+ * A marker method for applying controller extensions to controller class members in TypeScript code.
20141
+ * This method is only used to make TypeScript usage compatible to the UI5 runtime behavior, where an extension
20142
+ * *class* is assigned when the controller is defined, but each controller instance gets an *instance* of
20143
+ * this extension. This method call is removed in the class transformer when the ES class is transformed
20144
+ * to the traditional UI5 class definition syntax.
20145
+ *
20146
+ * To allow for proper removal, it may only be called directly on the base class `ControllerExtension`,
20147
+ * at the place where a controller extension is assigned to a member property of the new controller class.
20148
+ * The class transformation then removes this call. If it is not removed because it is used in any other
20149
+ * way, then it throws an error at runtime.
20150
+ *
20151
+ * Usage example:
20152
+ * ```javascript
20153
+ * import Routing from "sap/fe/core/controllerextensions/Routing";
20154
+ * import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
20155
+ * ...
20156
+ * export default class App extends Controller {
20157
+ * routing = ControllerExtension.use(Routing);
20158
+ * ```
20159
+ *
20160
+ * Usage example with overriding extension callbacks:
20161
+ * ```javascript
20162
+ * import Routing from "sap/fe/core/controllerextensions/Routing";
20163
+ * import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
20164
+ * ...
20165
+ * export default class App extends Controller {
20166
+ * routing = ControllerExtension.use(Routing.override({
20167
+ * ...
20168
+ * }));
20169
+ * ```
20170
+ *
20171
+ *
20172
+ *
20173
+ * @returns An instance of the given `ControllerExtension`. **NOTE:** this is only a dummy return type for
20174
+ * proper usage in TypeScript. This method does not actually return an instance of `ControllerExtension`,
20175
+ * but only throws an error at runtime. The sole purpose of this method is to mimic the actual runtime behavior
20176
+ * where a *class* is given when a controller is defined, but an *instance* is present in each controller
20177
+ * instance.
20178
+ */
20179
+ static use<TheExtension extends sap.ui.core.mvc.ControllerExtension>(
20180
+ /**
20181
+ * The ControllerExtension to use
20182
+ */
20183
+ extensionClass: new () => TheExtension
20184
+ ): TheExtension;
20135
20185
  /**
20136
20186
  * Returns an Element of the connected view with the given local ID.
20137
20187
  *
@@ -1,3 +1,3 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {}
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare module "sap/ui/mdc/AggregationBaseDelegate" {
4
4
  import BaseDelegate from "sap/ui/mdc/BaseDelegate";
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare module "sap/ui/rta/api/startAdaptation" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  interface IUI5DefineDependencyNames {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.120.17
1
+ // For Library Version: 1.120.18
2
2
 
3
3
  declare namespace sap {
4
4
  /**