@openui5/sap.ui.documentation 1.100.0 → 1.101.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/.eslintrc.json +17 -0
- package/THIRDPARTY.txt +5 -5
- package/package.json +6 -6
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/library.js +12 -15
- package/src/sap/ui/documentation/sdk/controller/Code.controller.js +8 -1
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +2 -1
- package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ResourceDownloadUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/index.html +69 -6
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
/*
|
|
4
|
+
* Productive code, sample and unit test code of sap.ui.documentation has been cleaned up.
|
|
5
|
+
* No more references to the global jQuery allowed
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"src/**/*.js",
|
|
10
|
+
"test/sap/ui/documentation/sdk/**/*.js"
|
|
11
|
+
],
|
|
12
|
+
"globals": {
|
|
13
|
+
"jQuery": "off"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
package/THIRDPARTY.txt
CHANGED
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.38
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.101.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.101.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.101.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.101.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.101.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.101.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.101.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library for the Demokit 2.0.</documentation>
|
|
12
12
|
|
|
@@ -19,10 +19,19 @@ sap.ui.define([
|
|
|
19
19
|
|
|
20
20
|
'use strict';
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* SAPUI5 library with controls specialized for administrative applications.
|
|
24
|
+
*
|
|
25
|
+
* @namespace
|
|
26
|
+
* @alias sap.ui.documentation
|
|
27
|
+
* @author SAP SE
|
|
28
|
+
* @version 1.101.0
|
|
29
|
+
* @since 1.48
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
var thisLibrary = sap.ui.getCore().initLibrary({
|
|
24
33
|
name : 'sap.ui.documentation',
|
|
25
|
-
version: '1.
|
|
34
|
+
version: '1.101.0',
|
|
26
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
27
36
|
types: [],
|
|
28
37
|
interfaces: [],
|
|
@@ -42,18 +51,6 @@ sap.ui.define([
|
|
|
42
51
|
]
|
|
43
52
|
});
|
|
44
53
|
|
|
45
|
-
/**
|
|
46
|
-
* SAPUI5 library with controls specialized for administrative applications.
|
|
47
|
-
*
|
|
48
|
-
* @namespace
|
|
49
|
-
* @name sap.ui.documentation
|
|
50
|
-
* @author SAP SE
|
|
51
|
-
* @version 1.100.0
|
|
52
|
-
* @since 1.48
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
var thisLibrary = sap.ui.documentation;
|
|
56
|
-
|
|
57
54
|
var _libraryInfoSingleton;
|
|
58
55
|
|
|
59
56
|
var DocumentationLibraryInfo = LibraryInfo.extend("sap.ui.documentation.DocumentationLibraryInfo", {});
|
|
@@ -242,7 +242,14 @@ sap.ui.define([
|
|
|
242
242
|
|
|
243
243
|
_getFileType : function (sFileName) {
|
|
244
244
|
var sFileExtension = sFileName.split('.').pop();
|
|
245
|
-
|
|
245
|
+
switch (sFileExtension) {
|
|
246
|
+
case "js":
|
|
247
|
+
return "javascript";
|
|
248
|
+
case "feature":
|
|
249
|
+
return "text";
|
|
250
|
+
default:
|
|
251
|
+
return sFileExtension;
|
|
252
|
+
}
|
|
246
253
|
},
|
|
247
254
|
|
|
248
255
|
_getInitialFileName : function() {
|
|
@@ -412,7 +412,8 @@ sap.ui.define([
|
|
|
412
412
|
|
|
413
413
|
this.sIFrameUrl = ResourcesUtil.getResourceOrigin() +
|
|
414
414
|
"/resources/sap/ui/documentation/sdk/index.html" +
|
|
415
|
-
"?
|
|
415
|
+
(new URL(document.location.href).search ? new URL(document.location.href).search + "&" : "?") +
|
|
416
|
+
"sap-ui-xx-sample-id=" + sSampleId
|
|
416
417
|
+ "&sap-ui-xx-sample-origin=" + sSampleOrigin + sSampleVersion
|
|
417
418
|
+ "&sap-ui-xx-dk-origin=" + window.location.origin;
|
|
418
419
|
|
|
@@ -19,7 +19,7 @@ sap.ui.define([
|
|
|
19
19
|
|
|
20
20
|
var OPENUI5_LIBS = ["sap.ui.core", "sap.ui.dt", "sap.m", "sap.ui.fl", "sap.ui.layout", "sap.ui.mdc", "sap.ui.unified",
|
|
21
21
|
"sap.f", "sap.ui.rta", "sap.ui.commons", "sap.ui.codeeditor", "sap.ui.table", "sap.uxap", "sap.ui.integration",
|
|
22
|
-
"sap.tnt", "sap.ui.ux3", "sap.ui.suite"];
|
|
22
|
+
"sap.tnt", "sap.ui.ux3", "sap.ui.suite", "sap.ui.webc.common", "sap.ui.webc.fiori", "sap.ui.webc.main" ];
|
|
23
23
|
var SAPUI5_LIBS = ["sap.ushell", "sap.fe", "sap.viz", "sap.suite.ui.microchart", "sap.chart", "sap.ui.comp", "sap.ui.generic.app",
|
|
24
24
|
"sap.fe.navigation", "sap.suite.ui.generic.template", "sap.ui.richtexteditor", "sap.suite.ui.commons", "sap.ui.export",
|
|
25
25
|
"sap.ndc", "sap.me", "sap.fe.core", "sap.fe.macros", "sap.collaboration", "sap.fe.templates", "sap.ui.generic.template",
|
|
@@ -57,7 +57,7 @@ sap.ui.define([], function() {
|
|
|
57
57
|
},
|
|
58
58
|
|
|
59
59
|
_getExpectedResponseType: function(sResourceUrl, bTreatAsText) {
|
|
60
|
-
if (sResourceUrl.match(/.+(.js|.json|.less|.xml|.html|.properties|.css|.svg|.md|.txt|.yaml|.yml)$/i) || bTreatAsText) { // supported text types
|
|
60
|
+
if (sResourceUrl.match(/.+(.js|.json|.less|.xml|.html|.properties|.css|.svg|.md|.txt|.feature|.yaml|.yml)$/i) || bTreatAsText) { // supported text types
|
|
61
61
|
return "text";
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -21,17 +21,20 @@
|
|
|
21
21
|
|
|
22
22
|
var sSampleId = getUrlParam('sap-ui-xx-sample-id'),
|
|
23
23
|
sOrigin = getUrlParam('sap-ui-xx-sample-origin'),
|
|
24
|
+
sPresetTheme = getUrlParam('sap-ui-theme') || 'sap_fiori_3',
|
|
25
|
+
sPresetRTL = getUrlParam('sap-ui-rtl') || false,
|
|
24
26
|
oPath = {};
|
|
25
27
|
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
+
if (sOrigin === "" || sOrigin === ".") {
|
|
29
|
+
var sHref = document.location.href;
|
|
30
|
+
sOrigin = sHref.substring(0, sHref.lastIndexOf('resources/sap/ui/documentation/sdk/') - 1);
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
oPath["sap/ui/demo/mock"] = sOrigin + "/test-resources/sap/ui/documentation/sdk";
|
|
31
34
|
oPath["test-resources/sap/ui/documentation/sdk"] = ".";
|
|
32
35
|
|
|
33
36
|
document.write("<script src=" + encodeOrigin(sOrigin) + '/resources/sap-ui-core.js' + " id='sap-ui-bootstrap' " +
|
|
34
|
-
"data-sap-ui-libs='sap.m' data-sap-ui-bindingSyntax='complex' data-sap-ui-theme=
|
|
37
|
+
"data-sap-ui-libs='sap.m' data-sap-ui-bindingSyntax='complex' data-sap-ui-rtl=" + sPresetRTL + " data-sap-ui-theme=" + sPresetTheme + " data-sap-ui-compatVersion='edge' data-sap-ui-resourceroots=" + JSON.stringify(oPath) + "></scr" + "ipt>");
|
|
35
38
|
document.write("<base href=" + encodeOrigin(sOrigin) + "/>");
|
|
36
39
|
</script>
|
|
37
40
|
</head>
|
|
@@ -41,11 +44,70 @@
|
|
|
41
44
|
sap.ui.require([
|
|
42
45
|
"sap/ui/core/ComponentContainer",
|
|
43
46
|
"sap/ui/core/Component",
|
|
47
|
+
"sap/ui/documentation/library",
|
|
44
48
|
"sap/ui/documentation/sdk/controller/util/ControlsInfo",
|
|
45
49
|
"sap/base/Log"
|
|
46
|
-
], function (ComponentContainer, Component, ControlsInfo, Log) {
|
|
50
|
+
], function (ComponentContainer, Component, library, ControlsInfo, Log) {
|
|
51
|
+
|
|
52
|
+
var loadInfo = function() {
|
|
53
|
+
return new Promise(function (resolve) {
|
|
54
|
+
var fnCallback = function(oAppInfo) {
|
|
55
|
+
if (oAppInfo && oAppInfo.libraries) {
|
|
56
|
+
var aLibPromises = [];
|
|
57
|
+
oAppInfo.libraries.forEach(function(oLib) {
|
|
58
|
+
var oLibPromise = new Promise(function(innResolve) {
|
|
59
|
+
library._getLibraryInfoSingleton()._getDocuIndex(oLib.name, function(oDoc) {
|
|
60
|
+
if (!oDoc.explored) {
|
|
61
|
+
innResolve();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (Array.isArray(oDoc.explored.samplesRef)) {
|
|
66
|
+
// register an array of namespaces
|
|
67
|
+
oDoc.explored.samplesRef.forEach(function (oItem) {
|
|
68
|
+
var paths = {};
|
|
69
|
+
paths[oItem.namespace.replace(/\./g, "/")] = "" + (oItem.ref || ".");
|
|
70
|
+
sap.ui.loader.config({paths: paths});
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
// register a single namespace
|
|
74
|
+
|
|
75
|
+
var paths = {};
|
|
76
|
+
paths[oDoc.explored.samplesRef.namespace.replace(/\./g, "/")] = "" + (oDoc.explored.samplesRef.ref || ".");
|
|
77
|
+
sap.ui.loader.config({paths: paths});
|
|
78
|
+
}
|
|
79
|
+
innResolve();
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
aLibPromises.push(oLibPromise);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
Promise.all(aLibPromises).then(function(){
|
|
86
|
+
resolve();
|
|
87
|
+
})
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
jQuery.ajax({
|
|
91
|
+
url: sap.ui.require.toUrl("sap-ui-version.json"),
|
|
92
|
+
dataType: "json",
|
|
93
|
+
error: function(xhr, status, e) {
|
|
94
|
+
Log.error("failed to load library list from '" + sUrl + "': " + status + ", " + e);
|
|
95
|
+
resolve();
|
|
96
|
+
},
|
|
97
|
+
success : function(oAppInfo, sStatus, oXHR) {
|
|
98
|
+
if (!oAppInfo) {
|
|
99
|
+
Log.error("failed to load library list from '" + sUrl + "': " + sStatus + ", Data: " + oAppInfo);
|
|
100
|
+
resolve();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
fnCallback(oAppInfo);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
loadInfo().then(function(){
|
|
47
110
|
|
|
48
|
-
ControlsInfo.loadData().then(function(){
|
|
49
111
|
Log.info("Samples paths added successfully");
|
|
50
112
|
|
|
51
113
|
var sCompId = 'sampleComp-' + sSampleId;
|
|
@@ -155,7 +217,8 @@
|
|
|
155
217
|
}
|
|
156
218
|
}, getUrlParam('sap-ui-xx-dk-origin'));
|
|
157
219
|
});
|
|
158
|
-
|
|
220
|
+
|
|
221
|
+
});
|
|
159
222
|
});
|
|
160
223
|
});
|
|
161
224
|
</script>
|