@openui5/ts-types 1.126.0 → 1.126.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/ts-types",
3
- "version": "1.126.0",
3
+ "version": "1.126.1",
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.126.0
1
+ // For Library Version: 1.126.1
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.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -279,7 +279,7 @@ declare namespace sap {
279
279
  "sap/ui/thirdparty/qunit-2": undefined;
280
280
  }
281
281
  }
282
- // For Library Version: 1.126.0
282
+ // For Library Version: 1.126.1
283
283
 
284
284
  declare module "sap/base/assert" {
285
285
  /**
@@ -21066,14 +21066,64 @@ declare namespace sap {
21066
21066
  * **Note:** This static method is automatically propagated to subclasses of `ControllerExtension`.
21067
21067
  *
21068
21068
  *
21069
- * @returns A controller extension class
21069
+ * @returns The adapted controller extension class
21070
21070
  */
21071
- static override(
21071
+ static override<
21072
+ TheExtension extends new () => ControllerExtension,
21073
+ AddtlProps extends object,
21074
+ >(
21075
+ this: TheExtension,
21072
21076
  /**
21073
21077
  * The custom extension definition
21074
21078
  */
21075
- oExtension: Record<string, Function>
21076
- ): Function;
21079
+ customExtension: AddtlProps
21080
+ ): new () => InstanceType<TheExtension> & AddtlProps;
21081
+ /**
21082
+ * A marker method for applying controller extensions to controller class members in TypeScript code.
21083
+ * This method is only used to make TypeScript usage compatible to the UI5 runtime behavior, where an extension
21084
+ * *class* is assigned when the controller is defined, but each controller instance gets an *instance* of
21085
+ * this extension. This method call is removed in the class transformer when the ES class is transformed
21086
+ * to the traditional UI5 class definition syntax.
21087
+ *
21088
+ * To allow for proper removal, it may only be called directly on the base class `ControllerExtension`,
21089
+ * at the place where a controller extension is assigned to a member property of the new controller class.
21090
+ * The class transformation then removes this call. If it is not removed because it is used in any other
21091
+ * way, then it throws an error at runtime.
21092
+ *
21093
+ * Usage example:
21094
+ * ```javascript
21095
+ * import Routing from "sap/fe/core/controllerextensions/Routing";
21096
+ * import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
21097
+ * ...
21098
+ * export default class App extends Controller {
21099
+ * routing = ControllerExtension.use(Routing);
21100
+ * ```
21101
+ *
21102
+ * Usage example with overriding extension callbacks:
21103
+ * ```javascript
21104
+ * import Routing from "sap/fe/core/controllerextensions/Routing";
21105
+ * import ControllerExtension from "sap/ui/core/mvc/ControllerExtension";
21106
+ * ...
21107
+ * export default class App extends Controller {
21108
+ * routing = ControllerExtension.use(Routing.override({
21109
+ * ...
21110
+ * }));
21111
+ * ```
21112
+ *
21113
+ *
21114
+ *
21115
+ * @returns An instance of the given `ControllerExtension`. **NOTE:** this is only a dummy return type for
21116
+ * proper usage in TypeScript. This method does not actually return an instance of `ControllerExtension`,
21117
+ * but only throws an error at runtime. The sole purpose of this method is to mimic the actual runtime behavior
21118
+ * where a *class* is given when a controller is defined, but an *instance* is present in each controller
21119
+ * instance.
21120
+ */
21121
+ static use<TheExtension extends sap.ui.core.mvc.ControllerExtension>(
21122
+ /**
21123
+ * The ControllerExtension to use
21124
+ */
21125
+ extensionClass: new () => TheExtension
21126
+ ): TheExtension;
21077
21127
  /**
21078
21128
  * Returns an Element of the connected view with the given local ID.
21079
21129
  *
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  interface IUI5DefineDependencyNames {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
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.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare module "sap/ui/rta/api/startAdaptation" {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  interface IUI5DefineDependencyNames {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  namespace ui {
@@ -1,4 +1,4 @@
1
- // For Library Version: 1.126.0
1
+ // For Library Version: 1.126.1
2
2
 
3
3
  declare namespace sap {
4
4
  /**