@sapui5/sap.fe.navigation 1.108.2 → 1.110.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.
- package/README.md +5 -1
- package/package.json +15 -10
- package/src/sap/fe/navigation/.library +29 -27
- package/src/sap/fe/navigation/NavError.js +46 -43
- package/src/sap/fe/navigation/NavError.ts +40 -0
- package/src/sap/fe/navigation/NavigationHandler.js +2162 -2523
- package/src/sap/fe/navigation/NavigationHandler.ts +2511 -0
- package/src/sap/fe/navigation/PresentationVariant.js +330 -349
- package/src/sap/fe/navigation/PresentationVariant.ts +365 -0
- package/src/sap/fe/navigation/SelectionVariant.js +772 -820
- package/src/sap/fe/navigation/SelectionVariant.ts +876 -0
- package/src/sap/fe/navigation/library.js +167 -182
- package/src/sap/fe/navigation/library.ts +183 -0
package/README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# @sapui5/sap.fe.navigation
|
|
4
|
+
|
|
4
5
|
Runtime resources of the [SAPUI5](https://sapui5.hana.ondemand.com) Library **sap.fe.navigation**.
|
|
5
6
|
|
|
6
7
|
## SAP Internal
|
|
8
|
+
|
|
7
9
|
**This library is restricted for use by SAP internal projects only.**
|
|
8
10
|
|
|
9
11
|
## Usage
|
|
12
|
+
|
|
10
13
|
Refrain from installing this package using npm, Yarn or similar package managers.
|
|
11
14
|
It is meant to be consumed using the [UI5 Tooling](https://sap.github.io/ui5-tooling/).
|
|
12
15
|
For details please refer to our documentation on [Consuming SAPUI5 Libraries](https://sap.github.io/ui5-tooling/pages/SAPUI5/).
|
|
13
16
|
|
|
14
17
|
## License
|
|
15
|
-
|
|
18
|
+
|
|
19
|
+
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,25 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapui5/sap.fe.navigation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.110.0",
|
|
4
4
|
"description": "SAPUI5 Library sap.fe.navigation",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sapui5",
|
|
7
|
+
"ui5"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
|
|
5
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
11
|
"author": "SAP SE (https://www.sap.com)",
|
|
7
|
-
"homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
|
|
8
12
|
"scripts": {
|
|
9
13
|
"build": "echo 'nothing to do'",
|
|
10
|
-
"
|
|
11
|
-
"prepare-
|
|
12
|
-
"prepare-
|
|
14
|
+
"lint": "eslint --ext .ts --fix src",
|
|
15
|
+
"prepare-npm-sources": "babel target/npm-sources/src --out-dir target/npm-sources/src --extensions \".ts,.tsx\" --config-file ../../.babelrc && babel target/npm-sources/src --out-dir target/npm-sources/src --extensions \".mdx\" --config-file ../../.babelrc-next",
|
|
16
|
+
"prepare-ts-class-doc": "ts-node ../../lib/docbuilder/prepareTSClassDoc sap.fe.navigation",
|
|
17
|
+
"prepare-ui5-build-sources": "babel target/ui5-build-tmp/src --out-dir target/ui5-build-tmp/src --extensions \".ts,.tsx\" --config-file ../../.babelrc && babel target/ui5-build-tmp/src --out-dir target/ui5-build-tmp/src --extensions \".mdx\" --config-file ../../.babelrc-next && babel target/ui5-build-tmp/test --out-dir target/ui5-build-tmp/test --extensions \".ts,.tsx\" --config-file ../../.babelrc && babel target/ui5-build-tmp/test --out-dir target/ui5-build-tmp/test --extensions \".mdx\" --config-file ../../.babelrc-next",
|
|
13
18
|
"test": "jest --maxWorkers=4",
|
|
14
19
|
"test-refs": "jest --runInBand --config jest.config-refs.js",
|
|
15
20
|
"test-updateSnapshots": "jest --maxWorkers=4 -u"
|
|
16
21
|
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"sapui5",
|
|
19
|
-
"ui5"
|
|
20
|
-
],
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@babel/cli": "^7.14.8",
|
|
23
|
-
"@
|
|
24
|
+
"@babel/core": "^7.20.5",
|
|
25
|
+
"@types/node": "14.10.1",
|
|
26
|
+
"@ui5/cli": "^2.14.0",
|
|
27
|
+
"ts-node": "^10.8.1",
|
|
28
|
+
"typescript": "4.7.4"
|
|
24
29
|
}
|
|
25
30
|
}
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
2
|
<library xmlns="http://www.sap.com/sap.ui.library.xsd">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<name>sap.fe.navigation</name>
|
|
4
|
+
<vendor>SAP SE</vendor>
|
|
5
|
+
<copyright>
|
|
6
|
+
SAP UI development toolkit for HTML5 (SAPUI5)
|
|
7
7
|
(c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
</copyright>
|
|
9
|
+
<version>1.110.0</version>
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<documentation>UI5 library: sap.fe.navigation</documentation>
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
<dependencies>
|
|
14
|
+
<dependency>
|
|
15
|
+
<libraryName>sap.ui.core</libraryName>
|
|
16
|
+
</dependency>
|
|
17
|
+
</dependencies>
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
<appData>
|
|
20
|
+
<!-- excludes for the JSDoc -->
|
|
21
|
+
<jsdoc xmlns="http://www.sap.com/ui5/buildext/jsdoc">
|
|
22
|
+
<exclude name="sap.fe.navigation.js." />
|
|
23
|
+
</jsdoc>
|
|
24
|
+
<!-- excludes for the JSCoverage -->
|
|
25
25
|
<jscoverage xmlns="http://www.sap.com/ui5/buildext/jscoverage">
|
|
26
|
-
<exclude name="sap.fe.navigation.js."/>
|
|
26
|
+
<exclude name="sap.fe.navigation.js." />
|
|
27
27
|
</jscoverage>
|
|
28
|
-
<releasenotes
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
<releasenotes
|
|
29
|
+
xmlns="http://www.sap.com/ui5/buildext/releasenotes"
|
|
30
|
+
url="../../../../test-resources/sap/fe/navigation/relnotes/changes-{major}.{minor}.json"
|
|
31
|
+
resolve="lib"
|
|
32
|
+
/>
|
|
33
|
+
<ownership xmlns="http://www.sap.com/ui5/buildext/ownership">
|
|
34
|
+
<component>CA-UI5-FE-NAV</component>
|
|
35
|
+
<!-- default component for library, embedded text as a shortcut for <name>text</name> -->
|
|
36
|
+
</ownership>
|
|
37
|
+
</appData>
|
|
36
38
|
</library>
|
|
@@ -1,49 +1,52 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
5
4
|
*/
|
|
6
|
-
|
|
7
5
|
sap.ui.define(["sap/ui/base/Object"], function (BaseObject) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @class
|
|
12
|
-
* This is the successor of {@link sap.ui.generic.app.navigation.service.NavError}.<br> An object that provides error handling information during runtime.
|
|
13
|
-
* @extends sap.ui.base.Object
|
|
14
|
-
* @class
|
|
15
|
-
* @public
|
|
16
|
-
* @since 1.83.0
|
|
17
|
-
* @alias sap.fe.navigation.NavError
|
|
18
|
-
* @param {string} sErrorCode The code for an internal error of a consumer that allows you to track the source locations
|
|
19
|
-
*/
|
|
20
|
-
var NavError = BaseObject.extend("sap.fe.navigation.NavError" /** @lends sap.fe.navigation.NavError */, {
|
|
21
|
-
metadata: {
|
|
22
|
-
publicMethods: [
|
|
23
|
-
// getter methods of properties
|
|
24
|
-
"getErrorCode"
|
|
25
|
-
],
|
|
26
|
-
properties: {},
|
|
27
|
-
library: "sap.fe.navigation"
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
constructor: function (sErrorCode) {
|
|
31
|
-
BaseObject.apply(this);
|
|
32
|
-
|
|
33
|
-
this._sErrorCode = sErrorCode;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
6
|
+
"use strict";
|
|
36
7
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
8
|
+
var _exports = {};
|
|
9
|
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
10
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
/**
|
|
12
|
+
* This is the successor of {@link sap.ui.generic.app.navigation.service.NavError}.<br> An object that provides error handling information during runtime.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
* @class
|
|
16
|
+
* @param {string} errorCode The code for an internal error of a consumer that allows you to track the source locations
|
|
17
|
+
* @extends sap.ui.base.Object
|
|
18
|
+
* @since 1.83.0
|
|
19
|
+
* @name sap.fe.navigation.NavError
|
|
20
|
+
*/
|
|
21
|
+
var NavError = /*#__PURE__*/function (_BaseObject) {
|
|
22
|
+
_inheritsLoose(NavError, _BaseObject);
|
|
23
|
+
/**
|
|
24
|
+
* Constructor requiring the error code as input.
|
|
25
|
+
*
|
|
26
|
+
* @param errorCode String based error code.
|
|
27
|
+
*/
|
|
28
|
+
function NavError(errorCode) {
|
|
29
|
+
var _this;
|
|
30
|
+
_this = _BaseObject.call(this) || this;
|
|
31
|
+
_this._sErrorCode = errorCode;
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
46
34
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Returns the error code with which the instance has been created.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
* @returns {string} The error code of the error
|
|
40
|
+
*/
|
|
41
|
+
_exports.NavError = NavError;
|
|
42
|
+
var _proto = NavError.prototype;
|
|
43
|
+
_proto.getErrorCode = function getErrorCode() {
|
|
44
|
+
return this._sErrorCode;
|
|
45
|
+
};
|
|
46
|
+
return NavError;
|
|
47
|
+
}(BaseObject); // Exporting the class as properly typed UI5Class
|
|
48
|
+
_exports.NavError = NavError;
|
|
49
|
+
var UI5Class = BaseObject.extend("sap.fe.navigation.NavError", NavError.prototype);
|
|
50
|
+
return UI5Class;
|
|
51
|
+
}, false);
|
|
52
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJOYXZFcnJvciIsImVycm9yQ29kZSIsIl9zRXJyb3JDb2RlIiwiZ2V0RXJyb3JDb2RlIiwiQmFzZU9iamVjdCIsIlVJNUNsYXNzIiwiZXh0ZW5kIiwicHJvdG90eXBlIl0sInNvdXJjZVJvb3QiOiIuIiwic291cmNlcyI6WyJOYXZFcnJvci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQmFzZU9iamVjdCBmcm9tIFwic2FwL3VpL2Jhc2UvT2JqZWN0XCI7XG5cbi8qKlxuICogVGhpcyBpcyB0aGUgc3VjY2Vzc29yIG9mIHtAbGluayBzYXAudWkuZ2VuZXJpYy5hcHAubmF2aWdhdGlvbi5zZXJ2aWNlLk5hdkVycm9yfS48YnI+IEFuIG9iamVjdCB0aGF0IHByb3ZpZGVzIGVycm9yIGhhbmRsaW5nIGluZm9ybWF0aW9uIGR1cmluZyBydW50aW1lLlxuICpcbiAqIEBwdWJsaWNcbiAqIEBjbG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FzcyA9IEJhc2VPYmplY3QuZXh0ZW5kKFwic2FwLmZlLm5hdmlnYXRpb24uTmF2RXJyb3JcIiwgTmF2RXJyb3IucHJvdG90eXBlIGFzIGFueSkgYXMgdHlwZW9mIE5hdkVycm9yO1xudHlwZSBVSTVDbGFzcyA9IEluc3RhbmNlVHlwZTx0eXBlb2YgTmF2RXJyb3I+O1xuZXhwb3J0IGRlZmF1bHQgVUk1Q2xhc3M7XG4iXSwibWFwcGluZ3MiOiI7QUFBQTtBQUFBO0FBQUE7Ozs7Ozs7RUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtFQVRBLElBVWFBLFFBQVE7SUFBQTtJQUdwQjtBQUNEO0FBQ0E7QUFDQTtBQUNBO0lBQ0Msa0JBQW1CQyxTQUFpQixFQUFFO01BQUE7TUFDckMsOEJBQU87TUFDUCxNQUFLQyxXQUFXLEdBQUdELFNBQVM7TUFBQztJQUM5Qjs7SUFFQTtBQUNEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7SUFMQztJQUFBO0lBQUEsT0FNT0UsWUFBWSxHQUFuQix3QkFBOEI7TUFDN0IsT0FBTyxJQUFJLENBQUNELFdBQVc7SUFDeEIsQ0FBQztJQUFBO0VBQUEsRUFyQjRCRSxVQUFVLEdBd0J4QztFQUFBO0VBQ0EsSUFBTUMsUUFBUSxHQUFHRCxVQUFVLENBQUNFLE1BQU0sQ0FBQyw0QkFBNEIsRUFBRU4sUUFBUSxDQUFDTyxTQUFTLENBQTJCO0VBQUMsT0FFaEdGLFFBQVE7QUFBQSJ9
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import BaseObject from "sap/ui/base/Object";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This is the successor of {@link sap.ui.generic.app.navigation.service.NavError}.<br> An object that provides error handling information during runtime.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @class
|
|
8
|
+
* @param {string} errorCode The code for an internal error of a consumer that allows you to track the source locations
|
|
9
|
+
* @extends sap.ui.base.Object
|
|
10
|
+
* @since 1.83.0
|
|
11
|
+
* @name sap.fe.navigation.NavError
|
|
12
|
+
*/
|
|
13
|
+
export class NavError extends BaseObject {
|
|
14
|
+
private _sErrorCode: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Constructor requiring the error code as input.
|
|
18
|
+
*
|
|
19
|
+
* @param errorCode String based error code.
|
|
20
|
+
*/
|
|
21
|
+
public constructor(errorCode: string) {
|
|
22
|
+
super();
|
|
23
|
+
this._sErrorCode = errorCode;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the error code with which the instance has been created.
|
|
28
|
+
*
|
|
29
|
+
* @public
|
|
30
|
+
* @returns {string} The error code of the error
|
|
31
|
+
*/
|
|
32
|
+
public getErrorCode(): string {
|
|
33
|
+
return this._sErrorCode;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Exporting the class as properly typed UI5Class
|
|
38
|
+
const UI5Class = BaseObject.extend("sap.fe.navigation.NavError", NavError.prototype as any) as typeof NavError;
|
|
39
|
+
type UI5Class = InstanceType<typeof NavError>;
|
|
40
|
+
export default UI5Class;
|