@openui5/sap.ui.documentation 1.112.0 → 1.113.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/THIRDPARTY.txt +1 -1
- package/package.json +7 -7
- 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 +2 -0
- package/src/sap/ui/documentation/sdk/index.js +31 -30
- package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +18 -3
package/THIRDPARTY.txt
CHANGED
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.1
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.2.1
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.documentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.113.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,11 +14,11 @@
|
|
|
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.
|
|
22
|
-
"@openui5/themelib_sap_horizon": "1.
|
|
17
|
+
"@openui5/sap.m": "1.113.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.113.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.113.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.113.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.113.0",
|
|
22
|
+
"@openui5/themelib_sap_horizon": "1.113.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 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.113.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library for the Demokit 2.0.</documentation>
|
|
12
12
|
|
|
@@ -25,13 +25,13 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.documentation
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.113.0
|
|
29
29
|
* @since 1.48
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
32
|
var thisLibrary = sap.ui.getCore().initLibrary({
|
|
33
33
|
name : 'sap.ui.documentation',
|
|
34
|
-
version: '1.
|
|
34
|
+
version: '1.113.0',
|
|
35
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
36
36
|
types: [],
|
|
37
37
|
interfaces: [],
|
|
@@ -78,39 +78,39 @@
|
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
// the fl lib has to be loaded before the Component gets created
|
|
82
|
+
Promise.all([
|
|
83
|
+
loadInfo(),
|
|
84
|
+
sap.ui.getCore().loadLibrary("sap.ui.fl", {async: true}),
|
|
85
|
+
sap.ui.getCore().loadLibrary("sap.ui.rta", {async: true})
|
|
86
|
+
]).then(function(){
|
|
82
87
|
|
|
83
88
|
Log.info("Samples paths added successfully");
|
|
84
89
|
var sCompId = 'sampleComp-' + sSampleId;
|
|
85
90
|
var sCompName = sSampleId;
|
|
86
91
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type: "RTA",
|
|
110
|
-
data: {
|
|
111
|
-
"msg": "RTA is loaded"
|
|
112
|
-
}
|
|
113
|
-
});
|
|
92
|
+
sap.ui.require([
|
|
93
|
+
"sap/ui/fl/Utils",
|
|
94
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
95
|
+
], function(
|
|
96
|
+
Utils,
|
|
97
|
+
JsControlTreeModifier
|
|
98
|
+
) {
|
|
99
|
+
// fake stable IDs and app component
|
|
100
|
+
JsControlTreeModifier.checkControlId = function () {
|
|
101
|
+
return true;
|
|
102
|
+
};
|
|
103
|
+
Utils.checkControlId = function() {
|
|
104
|
+
return true;
|
|
105
|
+
};
|
|
106
|
+
Utils.isApplication = function() {
|
|
107
|
+
return true;
|
|
108
|
+
};
|
|
109
|
+
postMessageToOrigin({
|
|
110
|
+
type: "RTA",
|
|
111
|
+
data: {
|
|
112
|
+
"msg": "RTA is loaded"
|
|
113
|
+
}
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
id: sCompId,
|
|
119
119
|
name: sCompName
|
|
120
120
|
}).then(function (oComponent) {
|
|
121
|
+
var oConfig = oComponent.getManifestEntry("/sap.ui5/config");
|
|
121
122
|
|
|
122
123
|
var oContainer = new ComponentContainer({component : oComponent, height: "100%"})
|
|
123
124
|
.placeAt("content");
|
|
124
125
|
|
|
125
|
-
var oConfig = oComponent.getMetadata().getConfig();
|
|
126
126
|
var bOpenStandalone = new URLSearchParams(window.location.search).has("dk-sample-standalone");
|
|
127
127
|
// if dk-sample-standalone is used,
|
|
128
128
|
// display message for samples with own index.html
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"msg": "fired after component container is placed in DOM"
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
oMessage.config =
|
|
149
|
+
oMessage.config = oConfig;
|
|
150
150
|
postMessageToOrigin(oMessage);
|
|
151
151
|
window.addEventListener("message", function(eMessage){
|
|
152
152
|
if (eMessage.data.type === "EXIT") {
|
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
oScriptTag.dataset.sapUiCompatversion = "edge";
|
|
240
240
|
oScriptTag.dataset.sapUiOninit = "onInit";
|
|
241
241
|
oScriptTag.dataset.sapUiBindingsyntax = "complex";
|
|
242
|
+
oScriptTag.dataset.sapUiFlexibilityservices = '[{"connector": "LocalStorageConnector"}]';
|
|
242
243
|
|
|
243
244
|
document.write(oScriptTag.outerHTML);
|
|
244
245
|
|
|
@@ -47,6 +47,17 @@ sap.ui.define([
|
|
|
47
47
|
}, this);
|
|
48
48
|
},
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Helper function which removes non-standard characters from a URL (see BCP: 2380008679)
|
|
52
|
+
*
|
|
53
|
+
* @param {string} sURL string to be reworked
|
|
54
|
+
* @returns {string} The reworked URL as string or the sURL itself if it's invalid
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
_removeNonStandardEncoding: function (sURL) {
|
|
58
|
+
return typeof sURL === 'string' ? sURL.replace(/[\[\]']+/g,'') : sURL;
|
|
59
|
+
},
|
|
60
|
+
|
|
50
61
|
_onOldEntityRouteMatched: function(oEvent) {
|
|
51
62
|
this.navTo("entity", {
|
|
52
63
|
id: oEvent.getParameter("arguments").id
|
|
@@ -251,6 +262,11 @@ sap.ui.define([
|
|
|
251
262
|
|
|
252
263
|
sTarget = getHref(oAnchorElement);
|
|
253
264
|
|
|
265
|
+
/*eslint-disable no-script-url */
|
|
266
|
+
if (sTarget === "javascript:void(0)") {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
|
|
254
270
|
bParsed = /^blob:/.test(sTarget)
|
|
255
271
|
|| /^https?:\/\//.test(sTarget)
|
|
256
272
|
|| /^test-resources\//.test(sTarget)
|
|
@@ -280,8 +296,7 @@ sap.ui.define([
|
|
|
280
296
|
sPath = sPath.replace("#", "%23");
|
|
281
297
|
}
|
|
282
298
|
|
|
283
|
-
|
|
284
|
-
sPath = sPath.replace(/[\[\]']+/g,''); // removing unwanted brackets from URL BCP: 2380008679
|
|
299
|
+
sPath = this._removeNonStandardEncoding(sPath);
|
|
285
300
|
|
|
286
301
|
this.parse(sPath);
|
|
287
302
|
|
|
@@ -303,7 +318,7 @@ sap.ui.define([
|
|
|
303
318
|
oUri;
|
|
304
319
|
|
|
305
320
|
if (oAnchorElement) {
|
|
306
|
-
sTargetHref = getHref(oAnchorElement);
|
|
321
|
+
sTargetHref = this._removeNonStandardEncoding(getHref(oAnchorElement));
|
|
307
322
|
bNewWindow = bCtrlHold || !getSameWindow(oAnchorElement);
|
|
308
323
|
}
|
|
309
324
|
|