@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.
Files changed (166) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +7 -6
  4. package/src/sap/ui/documentation/.library +2 -2
  5. package/src/sap/ui/documentation/BorrowedList.js +1 -1
  6. package/src/sap/ui/documentation/DemokitTreeItem.js +1 -1
  7. package/src/sap/ui/documentation/DemokitTreeItemRenderer.js +1 -1
  8. package/src/sap/ui/documentation/JSDocText.js +1 -1
  9. package/src/sap/ui/documentation/LightTable.js +1 -1
  10. package/src/sap/ui/documentation/ObjectPageSubSection.js +1 -1
  11. package/src/sap/ui/documentation/ParamText.js +1 -1
  12. package/src/sap/ui/documentation/Row.js +1 -1
  13. package/src/sap/ui/documentation/Search.js +4 -2
  14. package/src/sap/ui/documentation/TitleLink.js +1 -1
  15. package/src/sap/ui/documentation/WebPageTitleUtil.js +1 -1
  16. package/src/sap/ui/documentation/library.js +3 -3
  17. package/src/sap/ui/documentation/messagebundle.properties +6 -2
  18. package/src/sap/ui/documentation/messagebundle_ar.properties +4 -2
  19. package/src/sap/ui/documentation/messagebundle_bg.properties +4 -2
  20. package/src/sap/ui/documentation/messagebundle_ca.properties +4 -2
  21. package/src/sap/ui/documentation/messagebundle_cs.properties +4 -2
  22. package/src/sap/ui/documentation/messagebundle_cy.properties +4 -2
  23. package/src/sap/ui/documentation/messagebundle_da.properties +4 -2
  24. package/src/sap/ui/documentation/messagebundle_de.properties +4 -2
  25. package/src/sap/ui/documentation/messagebundle_el.properties +4 -2
  26. package/src/sap/ui/documentation/messagebundle_en.properties +4 -2
  27. package/src/sap/ui/documentation/messagebundle_en_GB.properties +4 -2
  28. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +4 -2
  29. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +4 -2
  30. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +4 -2
  31. package/src/sap/ui/documentation/messagebundle_es.properties +4 -2
  32. package/src/sap/ui/documentation/messagebundle_es_MX.properties +4 -2
  33. package/src/sap/ui/documentation/messagebundle_et.properties +4 -2
  34. package/src/sap/ui/documentation/messagebundle_fi.properties +4 -2
  35. package/src/sap/ui/documentation/messagebundle_fr.properties +4 -2
  36. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +4 -2
  37. package/src/sap/ui/documentation/messagebundle_hi.properties +4 -2
  38. package/src/sap/ui/documentation/messagebundle_hr.properties +4 -2
  39. package/src/sap/ui/documentation/messagebundle_hu.properties +4 -2
  40. package/src/sap/ui/documentation/messagebundle_id.properties +4 -2
  41. package/src/sap/ui/documentation/messagebundle_it.properties +4 -2
  42. package/src/sap/ui/documentation/messagebundle_iw.properties +4 -2
  43. package/src/sap/ui/documentation/messagebundle_ja.properties +7 -5
  44. package/src/sap/ui/documentation/messagebundle_kk.properties +4 -2
  45. package/src/sap/ui/documentation/messagebundle_ko.properties +4 -2
  46. package/src/sap/ui/documentation/messagebundle_lt.properties +4 -2
  47. package/src/sap/ui/documentation/messagebundle_lv.properties +4 -2
  48. package/src/sap/ui/documentation/messagebundle_ms.properties +4 -2
  49. package/src/sap/ui/documentation/messagebundle_nl.properties +4 -2
  50. package/src/sap/ui/documentation/messagebundle_no.properties +4 -2
  51. package/src/sap/ui/documentation/messagebundle_pl.properties +4 -2
  52. package/src/sap/ui/documentation/messagebundle_pt.properties +4 -2
  53. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +4 -2
  54. package/src/sap/ui/documentation/messagebundle_ro.properties +4 -2
  55. package/src/sap/ui/documentation/messagebundle_ru.properties +4 -2
  56. package/src/sap/ui/documentation/messagebundle_sh.properties +4 -2
  57. package/src/sap/ui/documentation/messagebundle_sk.properties +4 -2
  58. package/src/sap/ui/documentation/messagebundle_sl.properties +4 -2
  59. package/src/sap/ui/documentation/messagebundle_sv.properties +4 -2
  60. package/src/sap/ui/documentation/messagebundle_th.properties +6 -4
  61. package/src/sap/ui/documentation/messagebundle_tr.properties +4 -2
  62. package/src/sap/ui/documentation/messagebundle_uk.properties +4 -2
  63. package/src/sap/ui/documentation/messagebundle_vi.properties +4 -2
  64. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +4 -2
  65. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +4 -2
  66. package/src/sap/ui/documentation/sdk/Component.js +1 -1
  67. package/src/sap/ui/documentation/sdk/blocks/IndexEntry.js +1 -1
  68. package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +29 -3
  69. package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -1
  70. package/src/sap/ui/documentation/sdk/controller/ApiDetailInitial.controller.js +1 -1
  71. package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +1 -1
  72. package/src/sap/ui/documentation/sdk/controller/App.controller.js +13 -18
  73. package/src/sap/ui/documentation/sdk/controller/BPSupport.controller.js +1 -1
  74. package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
  75. package/src/sap/ui/documentation/sdk/controller/Code.controller.js +1 -1
  76. package/src/sap/ui/documentation/sdk/controller/Controls.controller.js +1 -1
  77. package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +3 -179
  78. package/src/sap/ui/documentation/sdk/controller/DemoApps.controller.js +13 -12
  79. package/src/sap/ui/documentation/sdk/controller/Downloads.controller.js +1 -1
  80. package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -1
  81. package/src/sap/ui/documentation/sdk/controller/ErrorHandler.js +1 -1
  82. package/src/sap/ui/documentation/sdk/controller/Group.controller.js +1 -1
  83. package/src/sap/ui/documentation/sdk/controller/License.controller.js +1 -1
  84. package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +1 -1
  85. package/src/sap/ui/documentation/sdk/controller/MasterTreeBaseController.js +1 -1
  86. package/src/sap/ui/documentation/sdk/controller/News.controller.js +1 -1
  87. package/src/sap/ui/documentation/sdk/controller/NotFound.controller.js +1 -1
  88. package/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js +1 -1
  89. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +2 -2
  90. package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +1 -1
  91. package/src/sap/ui/documentation/sdk/controller/SampleNotFound.controller.js +1 -1
  92. package/src/sap/ui/documentation/sdk/controller/SearchPage.controller.js +1 -1
  93. package/src/sap/ui/documentation/sdk/controller/Sitemap.controller.js +1 -1
  94. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +2 -2
  95. package/src/sap/ui/documentation/sdk/controller/TermsOfUse.controller.js +1 -1
  96. package/src/sap/ui/documentation/sdk/controller/Tools.controller.js +1 -1
  97. package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +1 -1
  98. package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +1 -1
  99. package/src/sap/ui/documentation/sdk/controller/TopicMaster.controller.js +1 -1
  100. package/src/sap/ui/documentation/sdk/controller/VersionNotFound.controller.js +1 -1
  101. package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +1 -1
  102. package/src/sap/ui/documentation/sdk/controller/config/datatable.js +1 -1
  103. package/src/sap/ui/documentation/sdk/controller/config/sampleForwardingConfig.js +1 -1
  104. package/src/sap/ui/documentation/sdk/controller/util/APIInfo.js +1 -1
  105. package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +1 -1
  106. package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +1 -1
  107. package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +1 -1
  108. package/src/sap/ui/documentation/sdk/controller/util/DataTableHelper.js +1 -1
  109. package/src/sap/ui/documentation/sdk/controller/util/DataTableUtil.js +1 -1
  110. package/src/sap/ui/documentation/sdk/controller/util/DocuInfo.js +1 -1
  111. package/src/sap/ui/documentation/sdk/controller/util/EntityInfo.js +42 -33
  112. package/src/sap/ui/documentation/sdk/controller/util/Highlighter.js +47 -27
  113. package/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js +1 -1
  114. package/src/sap/ui/documentation/sdk/controller/util/JSDocUtil.js +1 -1
  115. package/src/sap/ui/documentation/sdk/controller/util/NewsInfo.js +1 -1
  116. package/src/sap/ui/documentation/sdk/controller/util/ResourceDownloadUtil.js +1 -1
  117. package/src/sap/ui/documentation/sdk/controller/util/ResponsiveImageMap.js +1 -1
  118. package/src/sap/ui/documentation/sdk/controller/util/SearchUtil.js +1 -1
  119. package/src/sap/ui/documentation/sdk/controller/util/SidyBySideImageMap.js +1 -1
  120. package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +1 -1
  121. package/src/sap/ui/documentation/sdk/controller/util/Tooltip.js +1 -1
  122. package/src/sap/ui/documentation/sdk/controller/util/TreeUtil.js +1 -1
  123. package/src/sap/ui/documentation/sdk/controller/util/URLUtil.js +1 -1
  124. package/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js +1 -1
  125. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDown.js +1 -1
  126. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDownRenderer.js +1 -1
  127. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRange.js +1 -1
  128. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRangeRenderer.js +1 -1
  129. package/src/sap/ui/documentation/sdk/controller/util/overlay/Overlay.js +1 -1
  130. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Circle.js +1 -1
  131. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Polygon.js +1 -1
  132. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Rect.js +1 -1
  133. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/Shape.js +1 -1
  134. package/src/sap/ui/documentation/sdk/controller/util/overlay/shapes/ShapeFactory.js +1 -1
  135. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/Component.js +1 -1
  136. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +1 -1
  137. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/manifest.json +4 -1
  138. package/src/sap/ui/documentation/sdk/css/style.css +1 -1
  139. package/src/sap/ui/documentation/sdk/index.js +1 -1
  140. package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
  141. package/src/sap/ui/documentation/sdk/model/libraryData.js +1 -1
  142. package/src/sap/ui/documentation/sdk/model/models.js +1 -1
  143. package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +1 -1
  144. package/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js +1 -1
  145. package/src/sap/ui/documentation/sdk/util/Resources.js +2 -2
  146. package/src/sap/ui/documentation/sdk/util/ToggleFullScreenHandler.js +1 -1
  147. package/src/sap/ui/documentation/sdk/view/App.view.xml +5 -10
  148. package/src/sap/ui/documentation/sdk/view/ControlsMaster.view.xml +0 -1
  149. package/src/sap/ui/documentation/sdk/view/License.view.xml +0 -1
  150. package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +3 -0
  151. package/src/sap/ui/documentation/sdk/view/TermsOfUse.view.xml +0 -1
  152. package/src/sap/ui/documentation/sdk/view/TopicDetail.view.xml +0 -1
  153. package/src/sap/ui/documentation/sdk/view/VersionInfo.view.xml +0 -1
  154. package/src/sap/ui/documentation/themes/base/library.source.less +1 -1
  155. package/src/sap/ui/documentation/themes/sap_belize/library.source.less +1 -1
  156. package/src/sap/ui/documentation/themes/sap_belize_hcb/library.source.less +1 -1
  157. package/src/sap/ui/documentation/themes/sap_belize_hcw/library.source.less +1 -1
  158. package/src/sap/ui/documentation/themes/sap_belize_plus/library.source.less +1 -1
  159. package/src/sap/ui/documentation/themes/sap_fiori_3/library.source.less +1 -1
  160. package/src/sap/ui/documentation/themes/sap_fiori_3_dark/library.source.less +1 -1
  161. package/src/sap/ui/documentation/themes/sap_fiori_3_hcb/library.source.less +1 -1
  162. package/src/sap/ui/documentation/themes/sap_fiori_3_hcw/library.source.less +1 -1
  163. package/src/sap/ui/documentation/themes/sap_horizon/library.source.less +1 -1
  164. package/src/sap/ui/documentation/themes/sap_horizon_dark/library.source.less +1 -1
  165. package/src/sap/ui/documentation/themes/sap_horizon_hcb/library.source.less +1 -1
  166. 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-2022 SAP SE or an SAP affiliate company.
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
- var oVersionInfo = sap.ui.getVersionInfo(),
17
- oLibrary,
18
- iLen,
19
- i;
20
-
21
- if ( oVersionInfo && Array.isArray(oVersionInfo.libraries) ) {
22
- iLen = oVersionInfo.libraries.length;
23
- for (i = 0; i < iLen; i++) {
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
- // fallback to core (this ensures that the extraordinary packages of sap.ui.core are found, but doesn't work as
32
- // soon as other libs do the same)
33
- return "sap.ui.core";
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 getAsync(sEntityName, sLibraryName) {
37
- var oEntityDoc;
34
+ function findLibraryName(sEntityName, sLibraryName) {
38
35
 
39
- if (!sLibraryName) {
40
- var oClass = ObjectPath.get(sEntityName || "");
41
- if (oClass && oClass.getMetadata) {
42
- var oMetadata = oClass.getMetadata();
43
- if (oMetadata.getLibraryName) {
44
- sLibraryName = oMetadata.getLibraryName();
45
- } else {
46
- sLibraryName = "sap.ui.core";
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 = findLibraryFromEntityName(sEntityName);
49
+ sLibraryName = "sap.ui.core";
50
50
  }
51
+ return Promise.resolve(sLibraryName);
51
52
  }
52
53
 
53
- // If we have APIInfo json file we return a new promise which will return the oEntityDoc
54
- return APIInfo.getLibraryElementsJSONPromise(sLibraryName).then(function (oEntityCollection) {
55
- var oEntity;
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-2022 SAP SE or an SAP affiliate company.
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
- sText = this._highlightTerms(oMatches, sText);
172
- this._replaceNode(oNode, sText);
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, sHtml) {
199
- var oWrapper;
199
+ Highlighter.prototype._replaceNode = function (oNode, oHighligtedNode) {
200
200
 
201
201
  if (oNode.parentNode) {
202
- oWrapper = document.createElement('span');
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(oWrapper); // Highlighted Node with span
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._highlightTerms = function (oMatches, sText) {
234
- var sOpeningTag = this._bUseExternalStyles ? '<span class="highlightedText">'
235
- : '<span class="defaultHighlightedText">',
236
- sClosingTag = '</span>',
237
- sCurrMatch,
238
- iUpdatedIndex,
239
- iCounter = 0,
240
- iIndex;
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
- for (iIndex in oMatches) {
243
- iUpdatedIndex = +iIndex + (iCounter * (sOpeningTag.length + sClosingTag.length));
257
+ if (iStartIndex < sText.length) {
258
+ aAllTokens.push(sText.substring(iStartIndex));
259
+ }
244
260
 
245
- sCurrMatch = oMatches[iIndex];
246
- sText = sText.substring(0, iUpdatedIndex)
247
- + sOpeningTag + sCurrMatch + sClosingTag
248
- + sText.substring(iUpdatedIndex + sCurrMatch.length);
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
- iCounter++;
270
+ oRootNode.appendChild(oNextNode);
251
271
  }
252
272
 
253
- return sText;
273
+ return oRootNode;
254
274
  };
255
275
 
256
276
  Highlighter.prototype._addMutationObserver = function () {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
  /* global fetch */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -8,7 +8,10 @@
8
8
  "sap.ui5": {
9
9
  "dependencies": {
10
10
  "libs": {
11
- "sap.m": {}
11
+ "sap.f": {},
12
+ "sap.m": {},
13
+ "sap.ui.core": {},
14
+ "sap.ui.layout": {}
12
15
  }
13
16
  },
14
17
  "resources": {
@@ -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,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -1,7 +1,7 @@
1
1
  /* global hasher */
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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-2022 SAP SE or an SAP affiliate company.
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-2022 SAP SE or an SAP affiliate company.
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/", "").replace("/openui5/", "");
48
+ return this.getConfig().replace("/sapui5", "").replace("/openui5", "");
49
49
  },
50
50
  _formatPath: function(sPath) {
51
51
  sPath = sPath.replace(/^\.\//, '/');
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
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
 
@@ -90,14 +90,7 @@
90
90
 
91
91
  <custom:Search id="searchControl" toggle="onToggleSearchMode" search="onSearch" liveChange="onSearchLiveChange" width="{= (${appView>/bPhoneSize} &amp;&amp; ${appView>/bSearchMode}) ? '100%' : ''}"/>
92
92
 
93
- <Button id="feedBackDialogButton" tooltip="{i18n>APP_FEEDBACK_BTN_TOOLTIP}" press="feedbackDialogOpen" icon="sap-icon://comment" type="Transparent" visible="{=${appView>/bUseFeedbackDialog} &amp;&amp; !${appView>/bPhoneSize} &amp;&amp; !${appView>/bSearchMode}}">
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} &amp;&amp; !${appView>/bPhoneSize} &amp;&amp; !${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} &amp;&amp; !${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
- visible="{= ${versionData>/enableAdvancedCookieSettings}}"/>
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
 
@@ -1,5 +1,4 @@
1
1
  <mvc:View controllerName="sap.ui.documentation.sdk.controller.License"
2
- id="license"
3
2
  height="100%"
4
3
  xmlns:mvc="sap.ui.core.mvc"
5
4
  xmlns="sap.m">
@@ -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: &lt;a style='vertical-align:initial' target='_self' href='api/{borrowedFrom}' &gt;{borrowedFrom}&lt;/a&gt;">
201
+ </m:FormattedText>
199
202
  </layout:VerticalLayout>
200
203
  </custom:Row>
201
204
  </custom:LightTable>
@@ -1,5 +1,4 @@
1
1
  <mvc:View controllerName="sap.ui.documentation.sdk.controller.TermsOfUse"
2
- id="termsOfUse"
3
2
  height="100%"
4
3
  xmlns:mvc="sap.ui.core.mvc"
5
4
  xmlns="sap.m">
@@ -1,7 +1,6 @@
1
1
  <mvc:View
2
2
  height="100%"
3
3
  controllerName="sap.ui.documentation.sdk.controller.TopicDetail"
4
- id="sap.ui.documentation.sdk.controller.TopicDetail"
5
4
  xmlns="sap.f"
6
5
  xmlns:m="sap.m"
7
6
  xmlns:l="sap.ui.layout"
@@ -1,5 +1,4 @@
1
1
  <mvc:View
2
- id="versionInfo"
3
2
  height="100%"
4
3
  xmlns:mvc="sap.ui.core.mvc"
5
4
  xmlns:core="sap.ui.core">