@openui5/sap.ui.documentation 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/.reuse/dep5 +16 -16
- package/THIRDPARTY.txt +2 -2
- package/package.json +7 -6
- package/src/sap/ui/documentation/.library +2 -2
- package/src/sap/ui/documentation/BorrowedList.js +1 -1
- package/src/sap/ui/documentation/DemokitTreeItem.js +1 -1
- package/src/sap/ui/documentation/DemokitTreeItemRenderer.js +1 -1
- package/src/sap/ui/documentation/JSDocText.js +1 -1
- package/src/sap/ui/documentation/LightTable.js +1 -1
- package/src/sap/ui/documentation/ObjectPageSubSection.js +1 -1
- package/src/sap/ui/documentation/ParamText.js +1 -1
- package/src/sap/ui/documentation/Row.js +1 -1
- package/src/sap/ui/documentation/Search.js +4 -2
- package/src/sap/ui/documentation/TitleLink.js +1 -1
- package/src/sap/ui/documentation/WebPageTitleUtil.js +1 -1
- package/src/sap/ui/documentation/library.js +3 -3
- package/src/sap/ui/documentation/messagebundle.properties +6 -2
- package/src/sap/ui/documentation/messagebundle_ar.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_bg.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ca.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_cs.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_cy.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_da.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_de.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_el.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_en.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_en_GB.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_es.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_es_MX.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_et.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_fi.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_fr.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_fr_CA.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_hi.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_hr.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_hu.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_id.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_it.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_iw.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ja.properties +7 -5
- package/src/sap/ui/documentation/messagebundle_kk.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ko.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_lt.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_lv.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ms.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_nl.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_no.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_pl.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_pt.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_pt_PT.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ro.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ru.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_sh.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_sk.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_sl.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_sv.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_th.properties +6 -4
- package/src/sap/ui/documentation/messagebundle_tr.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_uk.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_vi.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_zh_CN.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_zh_TW.properties +4 -2
- package/src/sap/ui/documentation/sdk/Component.js +1 -1
- package/src/sap/ui/documentation/sdk/blocks/IndexEntry.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +29 -3
- package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ApiDetailInitial.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/App.controller.js +13 -18
- package/src/sap/ui/documentation/sdk/controller/BPSupport.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Code.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Controls.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +3 -179
- package/src/sap/ui/documentation/sdk/controller/DemoApps.controller.js +13 -12
- package/src/sap/ui/documentation/sdk/controller/Downloads.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ErrorHandler.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Group.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/License.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/MasterTreeBaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/News.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/NotFound.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +2 -2
- package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/SampleNotFound.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/SearchPage.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Sitemap.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +2 -2
- package/src/sap/ui/documentation/sdk/controller/TermsOfUse.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Tools.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/TopicMaster.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/VersionNotFound.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/config/datatable.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/config/sampleForwardingConfig.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/APIInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/DataTableHelper.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/DataTableUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/DocuInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/EntityInfo.js +42 -33
- package/src/sap/ui/documentation/sdk/controller/util/Highlighter.js +47 -27
- package/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/JSDocUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/NewsInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ResourceDownloadUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ResponsiveImageMap.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/SearchUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/SidyBySideImageMap.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/Tooltip.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/TreeUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/URLUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDown.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDownRenderer.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRange.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRangeRenderer.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/Overlay.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Circle.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Polygon.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Rect.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Shape.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/ShapeFactory.js +1 -1
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/Component.js +1 -1
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/manifest.json +4 -1
- package/src/sap/ui/documentation/sdk/css/style.css +1 -1
- package/src/sap/ui/documentation/sdk/index.js +1 -1
- package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
- package/src/sap/ui/documentation/sdk/model/libraryData.js +1 -1
- package/src/sap/ui/documentation/sdk/model/models.js +1 -1
- package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +1 -1
- package/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js +1 -1
- package/src/sap/ui/documentation/sdk/util/Resources.js +2 -2
- package/src/sap/ui/documentation/sdk/util/ToggleFullScreenHandler.js +1 -1
- package/src/sap/ui/documentation/sdk/view/App.view.xml +5 -10
- package/src/sap/ui/documentation/sdk/view/ControlsMaster.view.xml +0 -1
- package/src/sap/ui/documentation/sdk/view/License.view.xml +0 -1
- package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +3 -0
- package/src/sap/ui/documentation/sdk/view/TermsOfUse.view.xml +0 -1
- package/src/sap/ui/documentation/sdk/view/TopicDetail.view.xml +0 -1
- package/src/sap/ui/documentation/sdk/view/VersionInfo.view.xml +0 -1
- package/src/sap/ui/documentation/themes/base/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_belize/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_belize_hcb/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_belize_hcw/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_belize_plus/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_fiori_3/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_horizon/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_horizon_dark/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_horizon_hcb/library.source.less +1 -1
- package/src/sap/ui/documentation/themes/sap_horizon_hcw/library.source.less +1 -1
|
@@ -1,58 +1,67 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Provides reuse functionality for reading documentation from metamodel entities
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'./APIInfo',
|
|
10
|
-
"sap/base/util/ObjectPath"
|
|
10
|
+
"sap/base/util/ObjectPath",
|
|
11
|
+
"sap/ui/VersionInfo"
|
|
11
12
|
],
|
|
12
|
-
function(APIInfo, ObjectPath) {
|
|
13
|
+
function(APIInfo, ObjectPath, VersionInfo) {
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
15
16
|
function findLibraryFromEntityName(sEntityName) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
oLibrary = oVersionInfo.libraries[i];
|
|
25
|
-
if ( sEntityName === oLibrary.name || sEntityName.indexOf(oLibrary.name + ".") === 0 ) {
|
|
26
|
-
return oLibrary.name;
|
|
17
|
+
return VersionInfo.load().catch(function() {}).then(function(oVersionInfo) {
|
|
18
|
+
if ( oVersionInfo && Array.isArray(oVersionInfo.libraries) ) {
|
|
19
|
+
var iLen = oVersionInfo.libraries.length;
|
|
20
|
+
for (var i = 0; i < iLen; i++) {
|
|
21
|
+
var oLibrary = oVersionInfo.libraries[i];
|
|
22
|
+
if ( sEntityName === oLibrary.name || sEntityName.indexOf(oLibrary.name + ".") === 0 ) {
|
|
23
|
+
return oLibrary.name;
|
|
24
|
+
}
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
|
-
}
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
// fallback to core (this ensures that the extraordinary packages of sap.ui.core are found, but doesn't work as
|
|
29
|
+
// soon as other libs do the same)
|
|
30
|
+
return "sap.ui.core";
|
|
31
|
+
});
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
function
|
|
37
|
-
var oEntityDoc;
|
|
34
|
+
function findLibraryName(sEntityName, sLibraryName) {
|
|
38
35
|
|
|
39
|
-
if
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
// if library name is provided, go with it
|
|
37
|
+
if (sLibraryName) {
|
|
38
|
+
return Promise.resolve(sLibraryName);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// check if sEntityName represents a subclass of BaseObject and if so, use the metadata
|
|
42
|
+
// TODO this relies on global names and needs to be refactored
|
|
43
|
+
var oClass = ObjectPath.get(sEntityName || "");
|
|
44
|
+
if (oClass && oClass.getMetadata) {
|
|
45
|
+
var oMetadata = oClass.getMetadata();
|
|
46
|
+
if (oMetadata.getLibraryName) {
|
|
47
|
+
sLibraryName = oMetadata.getLibraryName();
|
|
48
48
|
} else {
|
|
49
|
-
sLibraryName =
|
|
49
|
+
sLibraryName = "sap.ui.core";
|
|
50
50
|
}
|
|
51
|
+
return Promise.resolve(sLibraryName);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
return findLibraryFromEntityName(sEntityName);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function getAsync(sEntityName, sLibraryName) {
|
|
58
|
+
|
|
59
|
+
return findLibraryName(sEntityName, sLibraryName).then(function(sLibraryName) {
|
|
60
|
+
// If we have APIInfo json file, we return a new promise which will return the oEntityDoc
|
|
61
|
+
return APIInfo.getLibraryElementsJSONPromise(sLibraryName);
|
|
62
|
+
}).then(function (oEntityCollection) {
|
|
63
|
+
var oEntity,
|
|
64
|
+
oEntityDoc;
|
|
56
65
|
|
|
57
66
|
// Find single entity entry
|
|
58
67
|
for (var i = 0, iLen = oEntityCollection.length; i < iLen; i++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -131,7 +131,8 @@ function() {
|
|
|
131
131
|
|
|
132
132
|
Highlighter.prototype._processNode = function (oNode) {
|
|
133
133
|
var sText, oRegEx, i, j, oMatches, sCurrentMatch,
|
|
134
|
-
oCurrentMatch, aBlockedIndices, iCurrMatchIndex
|
|
134
|
+
oCurrentMatch, aBlockedIndices, iCurrMatchIndex,
|
|
135
|
+
oHighligtedNode;
|
|
135
136
|
|
|
136
137
|
if (oNode.nodeName === "IFRAME") {
|
|
137
138
|
this._highlightSubTree(oNode.contentDocument.body);
|
|
@@ -168,8 +169,8 @@ function() {
|
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
if (Object.keys(oMatches).length !== 0) {
|
|
171
|
-
|
|
172
|
-
this._replaceNode(oNode,
|
|
172
|
+
oHighligtedNode = this._createHighlightedNode(oMatches, sText);
|
|
173
|
+
this._replaceNode(oNode, oHighligtedNode);
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
};
|
|
@@ -195,17 +196,13 @@ function() {
|
|
|
195
196
|
});
|
|
196
197
|
};
|
|
197
198
|
|
|
198
|
-
Highlighter.prototype._replaceNode = function (oNode,
|
|
199
|
-
var oWrapper;
|
|
199
|
+
Highlighter.prototype._replaceNode = function (oNode, oHighligtedNode) {
|
|
200
200
|
|
|
201
201
|
if (oNode.parentNode) {
|
|
202
|
-
|
|
203
|
-
oWrapper.innerHTML = sHtml;
|
|
204
|
-
|
|
205
|
-
oNode.parentNode.replaceChild(oWrapper, oNode);
|
|
202
|
+
oNode.parentNode.replaceChild(oHighligtedNode, oNode);
|
|
206
203
|
|
|
207
204
|
// we cache which nodes are replaced with such as highlighted spans
|
|
208
|
-
this._aPreviouslyHighlightedNodes.push(
|
|
205
|
+
this._aPreviouslyHighlightedNodes.push(oHighligtedNode); // Highlighted Node with span
|
|
209
206
|
this._aPreviouslyOriginalNodes.push(oNode); // Original Node
|
|
210
207
|
}
|
|
211
208
|
};
|
|
@@ -230,27 +227,50 @@ function() {
|
|
|
230
227
|
this._toggleMutationObserver(true);
|
|
231
228
|
};
|
|
232
229
|
|
|
233
|
-
Highlighter.prototype.
|
|
234
|
-
var
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
230
|
+
Highlighter.prototype._createHighlightedNode = function (oTokensToHighlight, sText) {
|
|
231
|
+
var oRootNode = document.createElement("span"),
|
|
232
|
+
aAllTokens = [],
|
|
233
|
+
fnSort = function(a, b) {return a > b;},
|
|
234
|
+
aIndices = Object.keys(oTokensToHighlight).sort(fnSort),
|
|
235
|
+
iIndex,
|
|
236
|
+
iStartIndex = 0;
|
|
237
|
+
|
|
238
|
+
// split the <code>sText</code> into tokens,
|
|
239
|
+
// including both the tokens to highlight
|
|
240
|
+
// and the remaing parts of the <code>sText</code> string
|
|
241
|
+
for (var i = 0; i < aIndices.length; i++) {
|
|
242
|
+
var iTokenIndex = Number(aIndices[i]),
|
|
243
|
+
sToken = oTokensToHighlight[iTokenIndex],
|
|
244
|
+
iTokenLength = sToken.length,
|
|
245
|
+
sBeforeToken = sText.substring(iStartIndex, iTokenIndex);
|
|
246
|
+
|
|
247
|
+
if (sBeforeToken.length) {
|
|
248
|
+
aAllTokens.push(sBeforeToken);
|
|
249
|
+
}
|
|
250
|
+
aAllTokens.push(sToken);
|
|
251
|
+
|
|
252
|
+
// shift the <code>iStartIndex</code> to the
|
|
253
|
+
// remaining part of the <code>sText</code> string
|
|
254
|
+
iStartIndex = iTokenIndex + iTokenLength;
|
|
255
|
+
}
|
|
241
256
|
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
if (iStartIndex < sText.length) {
|
|
258
|
+
aAllTokens.push(sText.substring(iStartIndex));
|
|
259
|
+
}
|
|
244
260
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
261
|
+
// wrap each token in a span
|
|
262
|
+
// and append to the root span
|
|
263
|
+
for (iIndex in aAllTokens) {
|
|
264
|
+
var oNextNode = document.createElement("span");
|
|
265
|
+
oNextNode.innerText = aAllTokens[iIndex];
|
|
266
|
+
if (Object.values(oTokensToHighlight).indexOf(aAllTokens[iIndex]) > -1) {
|
|
267
|
+
oNextNode.classList.add("defaultHighlightedText");
|
|
268
|
+
}
|
|
249
269
|
|
|
250
|
-
|
|
270
|
+
oRootNode.appendChild(oNextNode);
|
|
251
271
|
}
|
|
252
272
|
|
|
253
|
-
return
|
|
273
|
+
return oRootNode;
|
|
254
274
|
};
|
|
255
275
|
|
|
256
276
|
Highlighter.prototype._addMutationObserver = function () {
|
|
@@ -315,7 +315,7 @@ html.sap-desktop .sapContrast.sapMSlt.sapUiDocumentationSelect:not(.sapMSltExpan
|
|
|
315
315
|
/* Topics - dynamic page */
|
|
316
316
|
.sapUiDocumentationTopicTitle {
|
|
317
317
|
font-size: 2rem;
|
|
318
|
-
font-family: "72Black", "72", "72full", Arial, Helvetica, sans-serif;
|
|
318
|
+
font-family: "72Black", "72Blackfull", "72", "72full", Arial, Helvetica, sans-serif;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.sapUiMedia-Std-Phone .sapUiDocumentationTopicTitle {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* global hasher */
|
|
2
2
|
/*!
|
|
3
3
|
* OpenUI5
|
|
4
|
-
* (c) Copyright 2009-
|
|
4
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
7
|
// Provides a customized router class for the 'documentation' app.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
// Applies the html of a live-edited code-sample
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin || ".";
|
|
46
46
|
},
|
|
47
47
|
getResourceOrigin: function() {
|
|
48
|
-
return this.getConfig().replace("/sapui5
|
|
48
|
+
return this.getConfig().replace("/sapui5", "").replace("/openui5", "");
|
|
49
49
|
},
|
|
50
50
|
_formatPath: function(sPath) {
|
|
51
51
|
sPath = sPath.replace(/^\.\//, '/');
|
|
@@ -90,14 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
<custom:Search id="searchControl" toggle="onToggleSearchMode" search="onSearch" liveChange="onSearchLiveChange" width="{= (${appView>/bPhoneSize} && ${appView>/bSearchMode}) ? '100%' : ''}"/>
|
|
92
92
|
|
|
93
|
-
<Button id="
|
|
94
|
-
|
|
95
|
-
<layoutData>
|
|
96
|
-
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
97
|
-
</layoutData>
|
|
98
|
-
</Button>
|
|
99
|
-
|
|
100
|
-
<Button id="surveyButton" class="surveyButton" tooltip="{i18n>APP_FEEDBACK_BTN_TOOLTIP}" press="launchSurvey" icon="sap-icon://feedback" type="Transparent" visible="{=!${appView>/bUseFeedbackDialog} && !${appView>/bPhoneSize} && !${appView>/bSearchMode}}">
|
|
93
|
+
<Button id="surveyButton" class="surveyButton" tooltip="{i18n>APP_FEEDBACK_BTN_TOOLTIP}" press="launchSurvey" icon="sap-icon://feedback" type="Transparent" visible="{= !${appView>/bPhoneSize} && !${appView>/bSearchMode} }">
|
|
101
94
|
<customData>
|
|
102
95
|
<BadgeCustomData
|
|
103
96
|
visible="{appView>/bShowLongSurvey}"
|
|
@@ -151,6 +144,8 @@
|
|
|
151
144
|
<items>
|
|
152
145
|
<MenuItem key="light" text="{i18n>APP_INFORMATION_BTN_APPEARANCE_LIGHT}" />
|
|
153
146
|
<MenuItem key="dark" text="{i18n>APP_INFORMATION_BTN_APPEARANCE_DARK}" />
|
|
147
|
+
<MenuItem key="hcb" text="{i18n>APP_INFORMATION_BTN_APPEARANCE_HCB}" />
|
|
148
|
+
<MenuItem key="hcw" text="{i18n>APP_INFORMATION_BTN_APPEARANCE_HCW}" />
|
|
154
149
|
<MenuItem key="auto" text="{i18n>APP_INFORMATION_BTN_APPEARANCE_AUTO}" />
|
|
155
150
|
</items>
|
|
156
151
|
</MenuItem>
|
|
@@ -158,8 +153,8 @@
|
|
|
158
153
|
<MenuItem icon="sap-icon://document-text" text="{i18n>APP_INFORMATION_BTN_TERMS_OF_USE}" key="terms_of_use" visible="{versionData>/isOpenUI5}"/>
|
|
159
154
|
<MenuItem icon="sap-icon://tree" text="{i18n>APP_INFORMATION_BTN_SITEMAP}" key="sitemap" visible="{versionData>/isOpenUI5}"/>
|
|
160
155
|
<MenuItem icon="sap-icon://hello-world" text="{i18n>APP_SETTINGS_DIALOG_LANGUAGE}" key="settings"/>
|
|
161
|
-
<MenuItem icon="sap-icon://customize" text="{i18n>APP_SETTINGS_DIALOG_COOKIE_PREFERENCES}" key="cookie_preferences"
|
|
162
|
-
|
|
156
|
+
<MenuItem icon="sap-icon://customize" text="{i18n>APP_SETTINGS_DIALOG_COOKIE_PREFERENCES}" key="cookie_preferences" visible="{= ${versionData>/enableAdvancedCookieSettings}}"/>
|
|
157
|
+
<MenuItem icon="sap-icon://feedback" text="{i18n>APP_FEEDBACK_BTN_TOOLTIP}" key="feedback" />
|
|
163
158
|
</items>
|
|
164
159
|
</Menu>
|
|
165
160
|
</menu>
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
<Toolbar width="100%">
|
|
16
16
|
<SearchField id="searchField" placeholder="{i18n>CONTROLS_MASTER_FILTER_PLACERHOLDER}" liveChange="handleListFilter" class="sapUiDocumentationFilterField" />
|
|
17
17
|
<Button id="listFilterSettings" icon="sap-icon://drop-down-list" press="handleListSettings" tooltip="{i18n>CONTROLS_MASTER_FILTER_BTN_TOOLTIP}"/>
|
|
18
|
-
<Button id="sampleSettings" icon="sap-icon://action-settings" press="handleSettings" />
|
|
19
18
|
</Toolbar>
|
|
20
19
|
</customHeader>
|
|
21
20
|
|
|
@@ -196,6 +196,9 @@
|
|
|
196
196
|
<m:ObjectStatus text="Visibility: {parts : [{path : 'visibility'}, {path : 'allowedFor'}], formatter : 'sap.ui.documentation.sdk.model.formatter.formatVisibility'}"
|
|
197
197
|
state="{= ${visibility} === 'public' ? 'Success' : 'Warning'}"/>
|
|
198
198
|
<m:ObjectStatus visible="{=${since} !== undefined}" text="Since: {since}" />
|
|
199
|
+
<m:FormattedText visible="{=${borrowedFrom} !== undefined}"
|
|
200
|
+
htmlText="Borrowed from: <a style='vertical-align:initial' target='_self' href='api/{borrowedFrom}' >{borrowedFrom}</a>">
|
|
201
|
+
</m:FormattedText>
|
|
199
202
|
</layout:VerticalLayout>
|
|
200
203
|
</custom:Row>
|
|
201
204
|
</custom:LightTable>
|