@openui5/sap.ui.documentation 1.98.0 → 1.99.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/package.json +6 -6
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/library.js +2 -2
- package/src/sap/ui/documentation/sdk/controller/App.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +14 -3
- package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +7 -7
- package/src/sap/ui/documentation/sdk/controller/config/sampleForwardingConfig.js +40 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.documentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.99.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.documentation",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
20
|
-
"@openui5/themelib_sap_belize": "1.
|
|
21
|
-
"@openui5/themelib_sap_fiori_3": "1.
|
|
17
|
+
"@openui5/sap.m": "1.99.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.99.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.99.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.99.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.99.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.99.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library for the Demokit 2.0.</documentation>
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
// delegate further initialization of this library to the Core
|
|
24
24
|
sap.ui.getCore().initLibrary({
|
|
25
25
|
name : 'sap.ui.documentation',
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.99.0',
|
|
27
27
|
dependencies : ['sap.ui.core','sap.m'],
|
|
28
28
|
types: [],
|
|
29
29
|
interfaces: [],
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @namespace
|
|
50
50
|
* @name sap.ui.documentation
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.99.0
|
|
53
53
|
* @since 1.48
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
@@ -1340,7 +1340,7 @@ sap.ui.define([
|
|
|
1340
1340
|
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Event handler for the rating to update the label and the data
|
|
1343
|
-
* @param {sap.ui.base.Event}
|
|
1343
|
+
* @param {sap.ui.base.Event} oEvent
|
|
1344
1344
|
*/
|
|
1345
1345
|
onPressRatingButton: function(oEvent) {
|
|
1346
1346
|
var that = this;
|
|
@@ -161,7 +161,7 @@ sap.ui.define([
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Opens a legal disclaimer for Links Popover.
|
|
164
|
-
* @param {sap.ui.base.Event} oEvent
|
|
164
|
+
* @param {sap.ui.base.Event} oEvent the <code>Image</code> press event
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
onDisclaimerLinkPress: function (oEvent) {
|
|
@@ -19,7 +19,8 @@ sap.ui.define([
|
|
|
19
19
|
"sap/base/Log",
|
|
20
20
|
"sap/base/util/UriParameters",
|
|
21
21
|
"sap/ui/core/Fragment",
|
|
22
|
-
"sap/ui/documentation/sdk/util/Resources"
|
|
22
|
+
"sap/ui/documentation/sdk/util/Resources",
|
|
23
|
+
"./config/sampleForwardingConfig"
|
|
23
24
|
], function(
|
|
24
25
|
jQuery,
|
|
25
26
|
SampleBaseController,
|
|
@@ -34,7 +35,8 @@ sap.ui.define([
|
|
|
34
35
|
Log,
|
|
35
36
|
UriParameters,
|
|
36
37
|
Fragment,
|
|
37
|
-
ResourcesUtil
|
|
38
|
+
ResourcesUtil,
|
|
39
|
+
sampleForwardingConfig
|
|
38
40
|
) {
|
|
39
41
|
"use strict";
|
|
40
42
|
|
|
@@ -68,6 +70,7 @@ sap.ui.define([
|
|
|
68
70
|
|
|
69
71
|
this._sId = null; // Used to hold sample ID
|
|
70
72
|
this._sEntityId = null; // Used to hold entity ID for the sample currently shown
|
|
73
|
+
this.router = this.getRouter();
|
|
71
74
|
|
|
72
75
|
// Load runtime authoring asynchronously
|
|
73
76
|
if (!ResourcesUtil.getHasProxy()) {
|
|
@@ -104,6 +107,14 @@ sap.ui.define([
|
|
|
104
107
|
this._sEntityId = event.getParameter("arguments").entityId;
|
|
105
108
|
|
|
106
109
|
this.byId("page").setBusy(true);
|
|
110
|
+
|
|
111
|
+
if (sampleForwardingConfig[this._sId]) {
|
|
112
|
+
return this.router.navTo("sample", {
|
|
113
|
+
entityId: sampleForwardingConfig[this._sId].entityId,
|
|
114
|
+
sampleId: sampleForwardingConfig[this._sId].sampleId
|
|
115
|
+
}, true);
|
|
116
|
+
}
|
|
117
|
+
|
|
107
118
|
this.getModel("appView").setProperty("/bHasMaster", false);
|
|
108
119
|
|
|
109
120
|
ControlsInfo.loadData().then(this._loadSample.bind(this));
|
|
@@ -422,7 +433,7 @@ sap.ui.define([
|
|
|
422
433
|
/**
|
|
423
434
|
* Extends the sSampleId with the relative path defined in sIframePath and returns the resulting path.
|
|
424
435
|
* @param {string} sSampleId
|
|
425
|
-
* @param {string}
|
|
436
|
+
* @param {string} sIframePath
|
|
426
437
|
* @returns {string}
|
|
427
438
|
* @private
|
|
428
439
|
*/
|
|
@@ -405,7 +405,7 @@ sap.ui.define([
|
|
|
405
405
|
/**
|
|
406
406
|
* Iterates over all links marked as external and adds a icon and disclaimer proxy
|
|
407
407
|
*
|
|
408
|
-
* @param oElement
|
|
408
|
+
* @param {Element} oElement the DOM ref to the container
|
|
409
409
|
* @private
|
|
410
410
|
*/
|
|
411
411
|
_fixExternalLinks: function (oElement) {
|
|
@@ -432,7 +432,7 @@ sap.ui.define([
|
|
|
432
432
|
* 1. First loop - calculates the sum of all colgroup children
|
|
433
433
|
* 2. Second loop - transforms the origin values to percent
|
|
434
434
|
*
|
|
435
|
-
* @param oElement
|
|
435
|
+
* @param {Element} oElement the DOM ref to the container
|
|
436
436
|
* @private
|
|
437
437
|
*/
|
|
438
438
|
_computeColumnGroupValues: function (oElement) {
|
|
@@ -471,8 +471,8 @@ sap.ui.define([
|
|
|
471
471
|
* 1) The link is a non SAP and the icon image is link-external.png
|
|
472
472
|
* 2) The link is a SAP and the icon image is link-sap.png
|
|
473
473
|
*
|
|
474
|
-
* @param aDomRef
|
|
475
|
-
* @param sHref
|
|
474
|
+
* @param {Element} aDomRef the DOM ref to the external link
|
|
475
|
+
* @param {string} sHref the url string
|
|
476
476
|
* @private
|
|
477
477
|
*/
|
|
478
478
|
_addIconToExternalUrl: function (aDomRef, sHref) {
|
|
@@ -529,9 +529,9 @@ sap.ui.define([
|
|
|
529
529
|
* 3) The first seven symbols from the ID used in the Demo Kit URLs are added at the end
|
|
530
530
|
* 4) The file type is added at the end “.md”
|
|
531
531
|
*
|
|
532
|
-
* @param sUrl
|
|
533
|
-
* @param sTitle
|
|
534
|
-
* @returns {string}
|
|
532
|
+
* @param {string} sUrl the url of the file in the internal repo
|
|
533
|
+
* @param {string} sTitle the title of the file
|
|
534
|
+
* @returns {string} the url of the file in the GitHub repo
|
|
535
535
|
* @private
|
|
536
536
|
*/
|
|
537
537
|
_formatToGitHubUrl: function(sUrl, sTitle) {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([], function () {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
"sap.f.sample.IllustratedMessageInCardNoActivities": {
|
|
12
|
+
entityId: "sap.m.IllustratedMessage",
|
|
13
|
+
sampleId: "sap.m.sample.IllustratedMessageInCardNoActivities"
|
|
14
|
+
},
|
|
15
|
+
"sap.f.sample.IllustratedMessageInCardNoEmail": {
|
|
16
|
+
entityId: "sap.m.IllustratedMessage",
|
|
17
|
+
sampleId: "sap.m.sample.IllustratedMessageInCardNoEmail"
|
|
18
|
+
},
|
|
19
|
+
"sap.f.sample.IllustratedMessageInDialog": {
|
|
20
|
+
entityId: "sap.m.IllustratedMessage",
|
|
21
|
+
sampleId: "sap.m.sample.IllustratedMessageInDialog"
|
|
22
|
+
},
|
|
23
|
+
"sap.f.sample.IllustratedMessageInPage": {
|
|
24
|
+
entityId: "sap.m.IllustratedMessage",
|
|
25
|
+
sampleId: "sap.m.sample.IllustratedMessageInPage"
|
|
26
|
+
},
|
|
27
|
+
"sap.f.sample.IllustratedMessageInPageTNT": {
|
|
28
|
+
entityId: "sap.m.IllustratedMessage",
|
|
29
|
+
sampleId: "sap.m.sample.IllustratedMessageInPageTNT"
|
|
30
|
+
},
|
|
31
|
+
"sap.f.sample.IllustratedMessageSessionTimeout": {
|
|
32
|
+
entityId: "sap.m.IllustratedMessage",
|
|
33
|
+
sampleId: "sap.m.sample.IllustratedMessageSessionTimeout"
|
|
34
|
+
},
|
|
35
|
+
"sap.f.sample.Avatar": {
|
|
36
|
+
entityId: "sap.m.Avatar",
|
|
37
|
+
sampleId: "sap.m.sample.Avatar"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
});
|