@openui5/sap.ui.documentation 1.117.0 → 1.118.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 +7 -7
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/library.js +2 -2
- package/src/sap/ui/documentation/messagebundle.properties +4 -4
- package/src/sap/ui/documentation/messagebundle_en.properties +2 -2
- package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +26 -3
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +70 -52
- package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +9 -3
- package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/tmpl/index.html.tmpl +1 -1
- package/src/sap/ui/documentation/sdk/tmpl/indexevo.html.tmpl +1 -1
- package/src/sap/ui/documentation/sdk/tmpl/package.json.tmpl +0 -3
- package/src/sap/ui/documentation/sdk/tmpl/ui5.yaml.tmpl +6 -5
- package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +3 -3
- package/src/sap/ui/documentation/sdk/view/Tools.view.xml +1 -1
- package/src/sap/ui/documentation/themes/base/LightTable.less +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.documentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.118.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.118.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.118.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.118.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.118.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.118.0",
|
|
22
|
+
"@openui5/themelib_sap_horizon": "1.118.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.118.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.118.0
|
|
29
29
|
* @since 1.48
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
32
|
var thisLibrary = Core.initLibrary({
|
|
33
33
|
name : 'sap.ui.documentation',
|
|
34
|
-
version: '1.
|
|
34
|
+
version: '1.118.0',
|
|
35
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
36
36
|
types: [],
|
|
37
37
|
interfaces: [],
|
|
@@ -752,10 +752,10 @@ TOOLS_CARD_14_IMG_ALT = Picture showing Flexible Programming Model Explorer
|
|
|
752
752
|
TOOLS_CARD_15_TEXT = The Accessibility Guide provides in-depth information with examples about web accessibility. Whether you are a control or application developer, or a business user searching to know more about web accessibility in the SAPUI5 area.
|
|
753
753
|
#XALT: Alternative text for image that shows Accessibility Guide
|
|
754
754
|
TOOLS_CARD_15_IMG_ALT = Picture showing Accessibility Guide
|
|
755
|
-
#XTXT:
|
|
756
|
-
TOOLS_CARD_16_TEXT = The
|
|
757
|
-
#XALT: Alternative text for image that shows
|
|
758
|
-
TOOLS_CARD_16_IMG_ALT = Picture showing
|
|
755
|
+
#XTXT: Test Recorder tools description
|
|
756
|
+
TOOLS_CARD_16_TEXT = The Test Recorder is a tool that helps you to create UI5 integration tests by recording your actions in the browser.
|
|
757
|
+
#XALT: Alternative text for image that shows Test Recorder
|
|
758
|
+
TOOLS_CARD_16_IMG_ALT = Picture showing Test Recorder
|
|
759
759
|
#XXLF: Placeholder for filter field
|
|
760
760
|
API_MASTER_PLACEHOLDER = Search
|
|
761
761
|
#XTOL: Tooltip for the button that expands a list of items
|
|
@@ -392,8 +392,8 @@ TOOLS_CARD_14_TEXT=The flexible programming model makes it easy for you to tailo
|
|
|
392
392
|
TOOLS_CARD_14_IMG_ALT=Picture showing Flexible Programming Model Explorer
|
|
393
393
|
TOOLS_CARD_15_TEXT=The Accessibility Guide provides in-depth information with examples about web accessibility, whether you are a control or application developer, or a business user searching to learn more about web accessibility in the SAPUI5 area.
|
|
394
394
|
TOOLS_CARD_15_IMG_ALT=Picture showing Accessibility Guide
|
|
395
|
-
TOOLS_CARD_16_TEXT=The
|
|
396
|
-
TOOLS_CARD_16_IMG_ALT=Picture showing
|
|
395
|
+
TOOLS_CARD_16_TEXT=The Test Recorder is a tool that helps you to create UI5 integration tests by recording your actions in the browser.
|
|
396
|
+
TOOLS_CARD_16_IMG_ALT=Picture showing Test Recorder
|
|
397
397
|
API_MASTER_PLACEHOLDER=Search
|
|
398
398
|
API_MASTER_EXPAND_BTN_TOOLTIP=Expand All
|
|
399
399
|
API_MASTER_COLLAPSE_BTN_TOOLTIP=Collapse All
|
|
@@ -500,8 +500,30 @@ sap.ui.define([
|
|
|
500
500
|
bFilterChanged = false,
|
|
501
501
|
bGroupChanged = false,
|
|
502
502
|
oList = this._oView.byId("exploredMasterList"),
|
|
503
|
-
oBinding = oList.getBinding("items")
|
|
504
|
-
|
|
503
|
+
oBinding = oList.getBinding("items"),
|
|
504
|
+
fnNumericSort;
|
|
505
|
+
|
|
506
|
+
// fnNumericSort is needed to sort the entities only if the numeric sorter is requiered -
|
|
507
|
+
// it is selected the items to be sorted by release
|
|
508
|
+
if (this._oListSettings.groupProperty === "since") {
|
|
509
|
+
fnNumericSort = function(a,b) {
|
|
510
|
+
const aVersionA = a.split('.').map(Number);
|
|
511
|
+
const aVersionB = b.split('.').map(Number);
|
|
512
|
+
|
|
513
|
+
for (let i = 0; i < Math.max(aVersionA.length, aVersionB.length); i++) {
|
|
514
|
+
const iPartA = aVersionA[i] || 0;
|
|
515
|
+
const iPartB = aVersionB[i] || 0;
|
|
516
|
+
|
|
517
|
+
if (iPartA < iPartB) {
|
|
518
|
+
return -1;
|
|
519
|
+
} else if (iPartA > iPartB) {
|
|
520
|
+
return 1;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
return 0;
|
|
525
|
+
};
|
|
526
|
+
}
|
|
505
527
|
bFilterChanged = true;
|
|
506
528
|
aFilters.push(new Filter("searchTags", FilterOperator.Contains, this._sFilterValue));
|
|
507
529
|
|
|
@@ -537,7 +559,8 @@ sap.ui.define([
|
|
|
537
559
|
oSorter = new Sorter(
|
|
538
560
|
this._oListSettings.groupProperty,
|
|
539
561
|
this._oListSettings.groupDescending,
|
|
540
|
-
this._mGroupFunctions[this._oListSettings.groupProperty]
|
|
562
|
+
this._mGroupFunctions[this._oListSettings.groupProperty],
|
|
563
|
+
fnNumericSort);
|
|
541
564
|
aSorters.push(oSorter);
|
|
542
565
|
aSorters.push(new Sorter("name", false));
|
|
543
566
|
oBinding.sort(aSorters);
|
|
@@ -217,7 +217,7 @@ sap.ui.define([
|
|
|
217
217
|
this.getView().byId("apiRefButton").setVisible(bHasAPIReference);
|
|
218
218
|
}.bind(this));
|
|
219
219
|
|
|
220
|
-
this.oModel.setData(oModelData
|
|
220
|
+
this.oModel.setData(oModelData);
|
|
221
221
|
this.appendPageTitle(this.getModel().getProperty("/name"));
|
|
222
222
|
}.bind(this))
|
|
223
223
|
.catch(function (oError) {
|
|
@@ -17,17 +17,6 @@ sap.ui.define([
|
|
|
17
17
|
var TMPL_REF = sap.ui.require.toUrl("sap/ui/documentation/sdk/tmpl"),
|
|
18
18
|
MOCK_DATA_REF = sap.ui.require.toUrl("sap/ui/demo/mock");
|
|
19
19
|
|
|
20
|
-
// TODO : refactor hardcoded libs
|
|
21
|
-
var OPENUI5_LIBS = ["sap.ui.core", "sap.ui.dt", "sap.m", "sap.ui.fl", "sap.ui.layout", "sap.ui.mdc", "sap.ui.unified",
|
|
22
|
-
"sap.f", "sap.ui.rta", "sap.ui.commons", "sap.ui.codeeditor", "sap.ui.table", "sap.uxap", "sap.ui.integration",
|
|
23
|
-
"sap.tnt", "sap.ui.ux3", "sap.ui.suite", "sap.ui.webc.common", "sap.ui.webc.fiori", "sap.ui.webc.main" ];
|
|
24
|
-
var SAPUI5_LIBS = ["sap.ushell", "sap.fe", "sap.viz", "sap.suite.ui.microchart", "sap.chart", "sap.ui.comp", "sap.ui.generic.app",
|
|
25
|
-
"sap.fe.navigation", "sap.suite.ui.generic.template", "sap.ui.richtexteditor", "sap.suite.ui.commons", "sap.ui.export",
|
|
26
|
-
"sap.ndc", "sap.me", "sap.fe.core", "sap.fe.macros", "sap.collaboration", "sap.fe.templates", "sap.ui.generic.template",
|
|
27
|
-
"sap.zen.dsh", "sap.ovp", "sap.zen.crosstab", "sap.zen.commons", "sap.gantt", "sap.ui.mdc", "sap.fe.plugins", "sap.ui.vbm",
|
|
28
|
-
"sap.apf", "sap.rules.ui", "sap.ui.vk", "sap.ui.vtm", "sap.ushell_abap", "sap.fe.placeholder", "sap.feedback.ui",
|
|
29
|
-
"sap.fileviewer", "sap.ca.ui", "sap.landvisz"];
|
|
30
|
-
|
|
31
20
|
return BaseController.extend("sap.ui.documentation.sdk.controller.SampleBaseController", {
|
|
32
21
|
_aMockFiles: ["products.json", "supplier.json", "img.json"],
|
|
33
22
|
|
|
@@ -61,7 +50,7 @@ sap.ui.define([
|
|
|
61
50
|
var sMockFileName = this._aMockFiles[j];
|
|
62
51
|
if ((typeof sRawFile === "string") && sRawFile.indexOf(sMockFileName) > -1) {
|
|
63
52
|
aMockFilePromises.push(this._addFileToZip({
|
|
64
|
-
name: "mockdata/" + sMockFileName,
|
|
53
|
+
name: this._formatWebAppPath("mockdata/" + sMockFileName),
|
|
65
54
|
url: MOCK_DATA_REF + "/" + sMockFileName,
|
|
66
55
|
formatter: this._formatMockFile
|
|
67
56
|
}, oZipFile));
|
|
@@ -80,20 +69,21 @@ sap.ui.define([
|
|
|
80
69
|
if (oFile.name === "manifest.json") {
|
|
81
70
|
oManifestFile = oFile;
|
|
82
71
|
aPromises.push(this._addFileToZip({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
name: this._formatWebAppPath(oFile.name),
|
|
73
|
+
url: sUrl,
|
|
74
|
+
formatter: this._formatManifestJsFile
|
|
86
75
|
}, oZipFile));
|
|
87
76
|
continue;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
} else if (this._isRootLevelFile(oFile.name)) {
|
|
78
|
+
continue;
|
|
79
|
+
} else {
|
|
80
|
+
aPromises.push(this._addFileToZip({
|
|
81
|
+
name: this._formatWebAppPath(oFile.name.replace(new RegExp(/(\.\.\/)+/g), "./")),
|
|
82
|
+
url: sUrl,
|
|
83
|
+
formatter: (bChangeBootstrap && !bCustomIndexHTML) ? this._changeIframeBootstrapToCloud : undefined
|
|
84
|
+
}, oZipFile));
|
|
85
|
+
aPromises.push(this.fetchSourceFile(sUrl).then(fnAddMockFileToZip.bind(this)));
|
|
86
|
+
}
|
|
97
87
|
}
|
|
98
88
|
|
|
99
89
|
// iframe examples have a separate index file and a component file to describe it
|
|
@@ -104,14 +94,14 @@ sap.ui.define([
|
|
|
104
94
|
|
|
105
95
|
|
|
106
96
|
aPromises.push(this._addFileToZip({
|
|
107
|
-
name: "Component.js",
|
|
97
|
+
name: this._formatWebAppPath("Component.js"),
|
|
108
98
|
url: sRef + "/" + "Component.js"
|
|
109
99
|
}, oZipFile));
|
|
110
100
|
|
|
111
101
|
|
|
112
102
|
if (!bCustomIndexHTML) {
|
|
113
103
|
aPromises.push(this._addFileToZip({
|
|
114
|
-
name: "index.html",
|
|
104
|
+
name: this._formatWebAppPath("index.html"),
|
|
115
105
|
url: TMPL_REF + "/" + (bHasManifest ? "indexevo.html.tmpl" : "index.html.tmpl"),
|
|
116
106
|
formatter: function(sIndexFile) {
|
|
117
107
|
return this._changeIframeBootstrapToCloud(this._formatIndexHtmlFile(sIndexFile, oData));
|
|
@@ -122,7 +112,7 @@ sap.ui.define([
|
|
|
122
112
|
|
|
123
113
|
if (!bHasManifest) {
|
|
124
114
|
aPromises.push(this._addFileToZip({
|
|
125
|
-
name: "index.js",
|
|
115
|
+
name: this._formatWebAppPath("index.js"),
|
|
126
116
|
url: TMPL_REF + "/" + "index.js.tmpl",
|
|
127
117
|
formatter: function(sIndexJsFile) {
|
|
128
118
|
return this._changeIframeBootstrapToCloud(this._formatIndexJsFile(sIndexJsFile, oData));
|
|
@@ -135,7 +125,7 @@ sap.ui.define([
|
|
|
135
125
|
// add extra download files
|
|
136
126
|
aExtraFiles.forEach(function (sFileName) {
|
|
137
127
|
aPromises.push(this._addFileToZip({
|
|
138
|
-
name: sFileName,
|
|
128
|
+
name: this._formatWebAppPath(sFileName),
|
|
139
129
|
url: sRef + "/" + sFileName
|
|
140
130
|
}, oZipFile));
|
|
141
131
|
});
|
|
@@ -149,17 +139,17 @@ sap.ui.define([
|
|
|
149
139
|
|
|
150
140
|
aPromises.push(this._addFileToZip({
|
|
151
141
|
name: "ui5.yaml",
|
|
152
|
-
url: sCustomUI5Yaml ? sRef + "/" + sCustomUI5Yaml : TMPL_REF + "/ui5.yaml.tmpl",
|
|
142
|
+
url: sCustomUI5Yaml ? sRef + "/" + sCustomUI5Yaml.name : TMPL_REF + "/ui5.yaml.tmpl",
|
|
153
143
|
formatter: function(sYamlFile) {
|
|
154
|
-
return this.
|
|
144
|
+
return sCustomUI5Yaml ? this._formatCustomUI5Yaml(sYamlFile) : this._formatUI5Yaml(sYamlFile, oData, oManifestFile);
|
|
155
145
|
}.bind(this)
|
|
156
146
|
}, oZipFile, true));
|
|
157
147
|
|
|
158
148
|
aPromises.push(this._addFileToZip({
|
|
159
149
|
name: "package.json",
|
|
160
|
-
url: sCustomPkgJson ? sRef + "/" + sCustomPkgJson : TMPL_REF + "/package.json.tmpl",
|
|
150
|
+
url: sCustomPkgJson ? sRef + "/" + sCustomPkgJson.name : TMPL_REF + "/package.json.tmpl",
|
|
161
151
|
formatter: function(sPackageFile) {
|
|
162
|
-
return this._formatPackageJson(sPackageFile,
|
|
152
|
+
return sCustomPkgJson ? sPackageFile : this._formatPackageJson(sPackageFile, oData);
|
|
163
153
|
}.bind(this)
|
|
164
154
|
}, oZipFile, true));
|
|
165
155
|
|
|
@@ -222,37 +212,42 @@ sap.ui.define([
|
|
|
222
212
|
.join("-");
|
|
223
213
|
},
|
|
224
214
|
|
|
225
|
-
_formatPackageJson: function (sPackageFile,
|
|
215
|
+
_formatPackageJson: function (sPackageFile, oData) {
|
|
226
216
|
var sFormattedPackageFile = sPackageFile.replace(/{{TITLE}}/g, oData.title)
|
|
227
217
|
.replace(/{{SAMPLE_ID}}/g, this._formatNameToNpmSpec(oData.id)),
|
|
228
|
-
oPackageFile = JSON.parse(sFormattedPackageFile)
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
218
|
+
oPackageFile = JSON.parse(sFormattedPackageFile);
|
|
219
|
+
|
|
220
|
+
return JSON.stringify(oPackageFile, null, 2);
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
_formatUI5Yaml: function(sYamlFile, oData, sManifestFile) {
|
|
224
|
+
let sFormattedYamlFile = sYamlFile.replace(/{{SAMPLE_ID}}/g, this._formatNameToNpmSpec(oData.id));
|
|
225
|
+
const bIsOpenUI5 = this.getModel("versionData").getProperty("/isOpenUI5");
|
|
226
|
+
const sUI5Version = this.getModel("versionData").getProperty("/fullVersion");
|
|
227
|
+
sFormattedYamlFile = sFormattedYamlFile.replace(/{{UI5_KIND}}/g, bIsOpenUI5 ? "OpenUI5" : "SAPUI5");
|
|
228
|
+
sFormattedYamlFile = sFormattedYamlFile.replace(/{{UI5_VERSION}}/g, sUI5Version);
|
|
229
|
+
|
|
230
|
+
if (this._isOpenUI5NightlySDK()){
|
|
231
|
+
sFormattedYamlFile = sFormattedYamlFile.replace(/libraries:/g, "libraries:" + this._getSnapshotNote());
|
|
232
|
+
}
|
|
233
233
|
|
|
234
234
|
if (sManifestFile) {
|
|
235
|
-
oManifestFile = JSON.parse(sManifestFile.raw);
|
|
236
|
-
oUi5Config = oManifestFile["sap.ui5"];
|
|
237
|
-
oDependencies = oUi5Config && oUi5Config.dependencies;
|
|
235
|
+
const oManifestFile = JSON.parse(sManifestFile.raw);
|
|
236
|
+
const oUi5Config = oManifestFile["sap.ui5"];
|
|
237
|
+
const oDependencies = oUi5Config && oUi5Config.dependencies;
|
|
238
238
|
|
|
239
239
|
if (oDependencies && oDependencies.libs) {
|
|
240
240
|
Object.keys(oDependencies.libs).forEach(function(sKey) {
|
|
241
|
-
|
|
242
|
-
oPackageDependencies["@openui5/" + sKey] = "^1";
|
|
243
|
-
}
|
|
244
|
-
if (SAPUI5_LIBS.indexOf(sKey) > -1) {
|
|
245
|
-
oPackageDependencies["@sapui5/" + sKey] = "^1";
|
|
246
|
-
}
|
|
241
|
+
sFormattedYamlFile += "\n - name: " + sKey;
|
|
247
242
|
});
|
|
248
243
|
}
|
|
249
244
|
}
|
|
250
|
-
|
|
251
|
-
return JSON.stringify(oPackageFile, null, 2);
|
|
245
|
+
return sFormattedYamlFile;
|
|
252
246
|
},
|
|
253
247
|
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
_formatCustomUI5Yaml: function(sYamlFile){
|
|
249
|
+
const sCommentReplacement = this._isOpenUI5NightlySDK() ? this._getSnapshotNote() : "";
|
|
250
|
+
return sYamlFile.replace(/ #MainVersion#/g, sCommentReplacement);
|
|
256
251
|
},
|
|
257
252
|
|
|
258
253
|
_formatManifestJsFile: function (sRawManifestFileJs) {
|
|
@@ -284,7 +279,30 @@ sap.ui.define([
|
|
|
284
279
|
oRelativeBootstrapURI = new URI(sap.ui.require.toUrl("") + "/sap-ui-core.js"),
|
|
285
280
|
sBootstrapURI = oRelativeBootstrapURI.toString();
|
|
286
281
|
|
|
287
|
-
return sRawIndexFileHtml.replace(rReplaceIndex, 'src="
|
|
282
|
+
return sRawIndexFileHtml.replace(rReplaceIndex, 'src="' + sBootstrapURI + '"');
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
_formatWebAppPath: function(sPath) {
|
|
286
|
+
const sWebAppPath = "webapp/";
|
|
287
|
+
return sPath.startsWith(sWebAppPath) ? sPath : sWebAppPath + sPath;
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
_isRootLevelFile: function(sFileName){
|
|
291
|
+
return ["package.json", "ui5.yaml"].includes(sFileName);
|
|
292
|
+
},
|
|
293
|
+
|
|
294
|
+
_isOpenUI5NightlySDK: function(){
|
|
295
|
+
const oModel = this.getModel("versionData"),
|
|
296
|
+
bIsDevVersion = oModel.getProperty("/isDevVersion"),
|
|
297
|
+
bIsDevEnv = oModel.getProperty("/isDevEnv"),
|
|
298
|
+
bIsOpenUI5 = oModel.getProperty("/isOpenUI5");
|
|
299
|
+
return bIsDevVersion && bIsOpenUI5 && !bIsDevEnv;
|
|
300
|
+
},
|
|
301
|
+
|
|
302
|
+
_getSnapshotNote: function(){
|
|
303
|
+
return "\n # Note: Consumption of SNAPSHOT versions is only available to SAP employees from within the corporate network.\n" +
|
|
304
|
+
" # If this does not apply to you, please adjust the UI5 version to the latest stable version either manually\n" +
|
|
305
|
+
" # or using the command \"ui5 use latest\".";
|
|
288
306
|
}
|
|
289
307
|
});
|
|
290
308
|
}
|
|
@@ -31,6 +31,9 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
31
31
|
},
|
|
32
32
|
|
|
33
33
|
_getIndices: function (aLibs, oDocIndicies, fnComponentLoadCallback) {
|
|
34
|
+
var aInternalCategoryAllowList = [
|
|
35
|
+
"_PRIVATE_"
|
|
36
|
+
];
|
|
34
37
|
|
|
35
38
|
var aCategoryAllowList = [
|
|
36
39
|
"Action",
|
|
@@ -54,7 +57,8 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
54
57
|
"Data Visualization",
|
|
55
58
|
"Map",
|
|
56
59
|
"Utility",
|
|
57
|
-
"Web Components"
|
|
60
|
+
"Web Components",
|
|
61
|
+
"Smart Controls"
|
|
58
62
|
];
|
|
59
63
|
var afilterProps = ["namespace", "since", "category"]; // content density are set manually
|
|
60
64
|
var oFilterSets = {
|
|
@@ -175,7 +179,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
// check category allowlist
|
|
178
|
-
if (aCategoryAllowList.indexOf(oEnt.category) === -1) {
|
|
182
|
+
if (aCategoryAllowList.indexOf(oEnt.category) === -1 && aInternalCategoryAllowList.indexOf(oEnt.category) === -1) {
|
|
179
183
|
Log.error("explored: cannot register entity '" + oEnt.id + "'. category '" + oEnt.category + "' is not allowed");
|
|
180
184
|
return;
|
|
181
185
|
}
|
|
@@ -212,7 +216,9 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
212
216
|
oEnt.library = oDoc.library;
|
|
213
217
|
|
|
214
218
|
// add entity
|
|
215
|
-
|
|
219
|
+
if (aCategoryAllowList.indexOf(oEnt.category) > -1) {
|
|
220
|
+
data.entities.push(oEnt);
|
|
221
|
+
}
|
|
216
222
|
});
|
|
217
223
|
});
|
|
218
224
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<script id="sap-ui-bootstrap"
|
|
9
9
|
src="https://sdk.openui5.org/resources/sap-ui-core.js"
|
|
10
10
|
data-sap-ui-libs="sap.m"
|
|
11
|
-
data-sap-ui-theme="
|
|
11
|
+
data-sap-ui-theme="sap_horizon"
|
|
12
12
|
data-sap-ui-resourceroots='{
|
|
13
13
|
"{{SAMPLE_ID}}": "./",
|
|
14
14
|
"sap.ui.demo.mock": "mockdata"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
specVersion: '3.0'
|
|
2
2
|
metadata:
|
|
3
|
-
name:
|
|
3
|
+
name: {{SAMPLE_ID}}
|
|
4
4
|
type: application
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
framework:
|
|
6
|
+
name: {{UI5_KIND}}
|
|
7
|
+
version: '{{UI5_VERSION}}'
|
|
8
|
+
libraries:
|
|
9
|
+
- name: themelib_sap_horizon
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
columnTitles="Name,Type,Description"
|
|
168
168
|
class="sapUiSmallMarginTop">
|
|
169
169
|
<custom:Row>
|
|
170
|
-
<custom:ParamText class="sapUiDocumentationParamBold" text="{name}" depth="{depth}" optional="{optional}" deprecated="{= ${deprecated} !== undefined }"/>
|
|
170
|
+
<custom:ParamText class="sapUiDocumentationParamBold sapUiDocumentationParamWrap" text="{name}" depth="{depth}" optional="{optional}" deprecated="{= ${deprecated} !== undefined }"/>
|
|
171
171
|
<layout:VerticalLayout content="{path: 'types', templateShareable: false}" width="100%">
|
|
172
172
|
<m:Link text="{path: 'value', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"
|
|
173
173
|
href="{href}"
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
<layout:VerticalLayout width="100%">
|
|
348
348
|
<custom:JSDocText sanitizeContent="false" text="{description}"/>
|
|
349
349
|
<m:MessageStrip
|
|
350
|
-
visible="{=${
|
|
351
|
-
text="
|
|
350
|
+
visible="{=${deprecatedText} !== undefined}"
|
|
351
|
+
text="{path : 'deprecatedText', formatter: 'sap.ui.documentation.sdk.model.formatter.formatMessageStripLinks'}"
|
|
352
352
|
type="Error"
|
|
353
353
|
showIcon="true"
|
|
354
354
|
showCloseButton="false"
|
|
@@ -100,6 +100,10 @@
|
|
|
100
100
|
word-wrap: break-word;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
.sapUiDocumentationParamWrap {
|
|
104
|
+
word-wrap: break-word;
|
|
105
|
+
}
|
|
106
|
+
|
|
103
107
|
.sapUiDocLightTable .head .cell,
|
|
104
108
|
.sapUiDocLightTable .cell div {
|
|
105
109
|
line-height: 1.4rem;
|
|
@@ -174,12 +178,12 @@
|
|
|
174
178
|
background-color: #232931;
|
|
175
179
|
border-bottom: solid 1px #3a4552;
|
|
176
180
|
}
|
|
177
|
-
|
|
181
|
+
|
|
178
182
|
.sapUiDocLightTable .row {
|
|
179
183
|
background-color: #29313a;
|
|
180
184
|
border-bottom: solid 1px #3a4552;
|
|
181
185
|
}
|
|
182
|
-
|
|
186
|
+
|
|
183
187
|
.sapUiDocLightTable .head,
|
|
184
188
|
.sapUiDocLightTable .row {
|
|
185
189
|
border-left: none;
|
|
@@ -196,14 +200,14 @@
|
|
|
196
200
|
border-left: solid 1px #ffffff;
|
|
197
201
|
border-right: solid 1px #ffffff;
|
|
198
202
|
}
|
|
199
|
-
|
|
203
|
+
|
|
200
204
|
.sapUiDocLightTable .head {
|
|
201
205
|
border-top: 1px solid #ffffff;
|
|
202
206
|
border-bottom: 0.125rem solid #ffffff;
|
|
203
207
|
}
|
|
204
208
|
}
|
|
205
209
|
|
|
206
|
-
.sapUiTheme-sap_horizon_hcw
|
|
210
|
+
.sapUiTheme-sap_horizon_hcw
|
|
207
211
|
.sapUiTheme-sap_fiori_3_hcw {
|
|
208
212
|
.sapUiDocLightTable .head,
|
|
209
213
|
.sapUiDocLightTable .row {
|