@openui5/sap.ui.documentation 1.122.1 → 1.123.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.122.1",
3
+ "version": "1.123.1",
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.122.1",
18
- "@openui5/sap.ui.core": "1.122.1",
19
- "@openui5/sap.ui.layout": "1.122.1",
20
- "@openui5/themelib_sap_belize": "1.122.1",
21
- "@openui5/themelib_sap_fiori_3": "1.122.1",
22
- "@openui5/themelib_sap_horizon": "1.122.1"
17
+ "@openui5/sap.m": "1.123.1",
18
+ "@openui5/sap.ui.core": "1.123.1",
19
+ "@openui5/sap.ui.layout": "1.123.1",
20
+ "@openui5/themelib_sap_belize": "1.123.1",
21
+ "@openui5/themelib_sap_fiori_3": "1.123.1",
22
+ "@openui5/themelib_sap_horizon": "1.123.1"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.122.1</version>
9
+ <version>1.123.1</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -41,7 +41,7 @@
41
41
  </packaging>
42
42
  <!-- Thirdparty references -->
43
43
  <thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty" >
44
- <lib name="highlight.js" displayName="highlight.js" npmName="highlight.js" hash="96a6c881e38caa1b71ffeb11fe783b80" version="11.9.0" homepage="https://highlightjs.org/" id="73555000106100051976">
44
+ <lib name="highlight.js" displayName="highlight.js" npmName="highlight.js" hash="ad04c8737a21411588b021733d622c49" version="11.9.0" homepage="https://highlightjs.org/" id="73555000106100051976">
45
45
  <license url="https://github.com/highlightjs/highlight.js/blob/11.9.0/LICENSE" type="BSD-3-Clause" />
46
46
  <copyright>2006-2020, Ivan Sagalaev</copyright>
47
47
  <pattern>sap/ui/documentation/sdk/thirdparty/highlight.js/*</pattern>
@@ -25,14 +25,14 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.ui.documentation
27
27
  * @author SAP SE
28
- * @version 1.122.1
28
+ * @version 1.123.1
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = Lib.init({
33
33
  apiVersion: 2,
34
34
  name : 'sap.ui.documentation',
35
- version: '1.122.1',
35
+ version: '1.123.1',
36
36
  dependencies : ['sap.ui.core','sap.m'],
37
37
  types: [],
38
38
  interfaces: [],
@@ -1569,7 +1569,7 @@ sap.ui.define([
1569
1569
  aHiddenValues = this._processVersionOverview(oValues[1]),
1570
1570
  aFilteredVersionsEOCP = this._filterVersionsPastEOCP(oValues[1]);
1571
1571
 
1572
- if (Array.isArray(aNeoAppVersions)) {
1572
+ if (Array.isArray(aNeoAppVersions) && aNeoAppVersions.length > 0) {
1573
1573
  aNeoAppVersions = aNeoAppVersions.filter(function (oVersion) {
1574
1574
  return aHiddenValues.indexOf(oVersion.version) === -1;
1575
1575
  });
@@ -91,12 +91,14 @@ sap.ui.define([
91
91
  },
92
92
 
93
93
  /**
94
- * Handler for the SearchField
95
- * @param oEvent
94
+ * Handler for the SearchField event.
95
+ *
96
+ * @param {sap.ui.base.Event} oEvent - The event object.
96
97
  */
97
98
  onTreeFilter: function (oEvent) {
98
99
  // Update filter value
99
- this._sFilter = oEvent.getParameter("newValue").trim();
100
+ var newValue = oEvent.getParameter("newValue").trim();
101
+ this._sFilter = newValue.replace(/\//g, '.');
100
102
 
101
103
  if (this._filterTimeout) {
102
104
  clearTimeout(this._filterTimeout);
@@ -162,7 +162,7 @@ sap.ui.define([
162
162
  if ($aNotApplied.length > 0 && window.hljs) {
163
163
  $aNotApplied.addClass('hljs');
164
164
  document.querySelectorAll('pre').forEach(function(block) {
165
- window.hljs.highlightBlock(block);
165
+ window.hljs.highlightElement(block);
166
166
  });
167
167
  }
168
168
  }.bind(this), 200);
@@ -301,7 +301,7 @@ sap.ui.define([
301
301
  _hljs: function () {
302
302
  if (window.hljs) {
303
303
  document.querySelectorAll('pre').forEach(function(block) {
304
- window.hljs.highlightBlock(block);
304
+ window.hljs.highlightElement(block);
305
305
  });
306
306
  }
307
307
  },
@@ -345,7 +345,7 @@ sap.ui.define([
345
345
 
346
346
  if (window.hljs) {
347
347
  document.querySelectorAll('pre:not([class*="lines"])').forEach(function(block) {
348
- window.hljs.highlightBlock(block);
348
+ window.hljs.highlightElement(block);
349
349
  });
350
350
  }
351
351
  },
@@ -1575,7 +1575,7 @@ html:not(.sapUiMedia-Std-Phone) .sapUiParamText.depth-2 {
1575
1575
  padding-left: 4rem;
1576
1576
  }
1577
1577
  html:not(.sapUiMedia-Std-Phone) .sapUiParamText.depth-3 {
1578
- padding-left: 2.25rem;
1578
+ padding-left: 6rem;
1579
1579
  }
1580
1580
  html:not(.sapUiMedia-Std-Phone) .sapUiParamText.depth-4 {
1581
1581
  padding-left: 8rem;
@@ -0,0 +1 @@
1
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 412.38 204"><defs><style>.cls-1,.cls-2{fill-rule:evenodd;}.cls-1{fill:url(#linear-gradient);}.cls-2{fill:#fff;}</style><linearGradient id="linear-gradient" x1="206.19" x2="206.19" y2="204" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#00b8f1"/><stop offset="0.02" stop-color="#01b6f0"/><stop offset="0.31" stop-color="#0d90d9"/><stop offset="0.58" stop-color="#1775c8"/><stop offset="0.82" stop-color="#1c65bf"/><stop offset="1" stop-color="#1e5fbb"/></linearGradient></defs><title>SAP_grad_R_scrn_Zeichenfläche 1</title><polyline class="cls-1" points="0 204 208.41 204 412.38 0 0 0 0 204"/><path class="cls-2" d="M244.73,38.36l-40.6,0v96.52L168.67,38.33H133.51l-30.27,80.72C100,98.7,79,91.67,62.4,86.4,51.46,82.89,39.85,77.72,40,72c.09-4.68,6.23-9,18.38-8.38,8.17.43,15.37,1.09,29.71,8l14.1-24.55C89.06,40.42,71,36.21,56.17,36.19h-.09c-17.28,0-31.68,5.6-40.6,14.83A34.23,34.23,0,0,0,5.77,74.7C5.54,87.15,10.11,96,19.71,103c8.1,5.94,18.46,9.79,27.6,12.62,11.27,3.49,20.47,6.53,20.36,13A9.57,9.57,0,0,1,65,135c-2.81,2.9-7.13,4-13.09,4.1-11.49.24-20-1.56-33.61-9.59L5.77,154.42a93.77,93.77,0,0,0,46,12.22l2.11,0c14.24-.25,25.74-4.31,34.92-11.71.53-.41,1-.84,1.49-1.28L86.17,164.5H123l6.19-18.82a67.46,67.46,0,0,0,21.68,3.43,68.33,68.33,0,0,0,21.16-3.25l6,18.64h60.14v-39h13.11c31.71,0,50.46-16.15,50.46-43.2C301.74,52.19,283.52,38.36,244.73,38.36ZM150.91,121a36.93,36.93,0,0,1-13-2.28l12.87-40.59H151l12.65,40.71A38.5,38.5,0,0,1,150.91,121Zm96.2-23.33h-8.94V64.91h8.94c11.93,0,21.44,4,21.44,16.14,0,12.6-9.51,16.57-21.44,16.57"/></svg>
@@ -208,6 +208,7 @@
208
208
  "box-sizing": "content-box"
209
209
  });
210
210
  oRta.destroy();
211
+ objRta = null;
211
212
  });
212
213
  });
213
214
  });
@@ -998,10 +998,10 @@ var hljs = (function () {
998
998
  * @param {string} message
999
999
  */
1000
1000
  const deprecated = (version, message) => {
1001
- if (seenDeprecations[`1.122.1/${message}`]) return;
1001
+ if (seenDeprecations[`1.123.1/${message}`]) return;
1002
1002
 
1003
- console.log(`Deprecated as of 1.122.1. ${message}`);
1004
- seenDeprecations[`1.122.1/${message}`] = true;
1003
+ console.log(`Deprecated as of 1.123.1. ${message}`);
1004
+ seenDeprecations[`1.123.1/${message}`] = true;
1005
1005
  };
1006
1006
 
1007
1007
  /* eslint-disable no-throw-literal */
@@ -15826,5 +15826,191 @@ if (typeof exports === 'object' && typeof module !== 'undefined') { module.expor
15826
15826
 
15827
15827
  })();
15828
15828
 
15829
+ // ##### BEGIN MODIFIED BY SAP
15830
+ // Source: https://github.com/highlightjs/highlight.js/issues/2889
15831
+ var mergeHTMLPlugin = (function () {
15832
+ 'use strict';
15833
+
15834
+ var originalStream;
15835
+
15836
+ /**
15837
+ * @param {string} value
15838
+ * @returns {string}
15839
+ */
15840
+ function escapeHTML(value) {
15841
+ return value
15842
+ .replace(/&/g, '&amp;')
15843
+ .replace(/</g, '&lt;')
15844
+ .replace(/>/g, '&gt;')
15845
+ .replace(/"/g, '&quot;')
15846
+ .replace(/'/g, '&#x27;');
15847
+ }
15848
+
15849
+ /* plugin itself */
15850
+
15851
+ /** @type {HLJSPlugin} */
15852
+ const mergeHTMLPlugin = {
15853
+ // preserve the original HTML token stream
15854
+ "before:highlightElement": ({ el }) => {
15855
+ originalStream = nodeStream(el);
15856
+ },
15857
+ // merge it afterwards with the highlighted token stream
15858
+ "after:highlightElement": ({ el, result, text }) => {
15859
+ if (!originalStream.length) return;
15860
+
15861
+ const resultNode = document.createElement('div');
15862
+ resultNode.innerHTML = result.value;
15863
+ result.value = mergeStreams(originalStream, nodeStream(resultNode), text);
15864
+ el.innerHTML = result.value;
15865
+ }
15866
+ };
15867
+
15868
+ /* Stream merging support functions */
15869
+
15870
+ /**
15871
+ * @typedef Event
15872
+ * @property {'start'|'stop'} event
15873
+ * @property {number} offset
15874
+ * @property {Node} node
15875
+ */
15876
+
15877
+ /**
15878
+ * @param {Node} node
15879
+ */
15880
+ function tag(node) {
15881
+ return node.nodeName.toLowerCase();
15882
+ }
15883
+
15884
+ /**
15885
+ * @param {Node} node
15886
+ */
15887
+ function nodeStream(node) {
15888
+ /** @type Event[] */
15889
+ const result = [];
15890
+ (function _nodeStream(node, offset) {
15891
+ for (let child = node.firstChild; child; child = child.nextSibling) {
15892
+ if (child.nodeType === 3) {
15893
+ offset += child.nodeValue.length;
15894
+ } else if (child.nodeType === 1) {
15895
+ result.push({
15896
+ event: 'start',
15897
+ offset: offset,
15898
+ node: child
15899
+ });
15900
+ offset = _nodeStream(child, offset);
15901
+ // Prevent void elements from having an end tag that would actually
15902
+ // double them in the output. There are more void elements in HTML
15903
+ // but we list only those realistically expected in code display.
15904
+ if (!tag(child).match(/br|hr|img|input/)) {
15905
+ result.push({
15906
+ event: 'stop',
15907
+ offset: offset,
15908
+ node: child
15909
+ });
15910
+ }
15911
+ }
15912
+ }
15913
+ return offset;
15914
+ })(node, 0);
15915
+ return result;
15916
+ }
15917
+
15918
+ /**
15919
+ * @param {any} original - the original stream
15920
+ * @param {any} highlighted - stream of the highlighted source
15921
+ * @param {string} value - the original source itself
15922
+ */
15923
+ function mergeStreams(original, highlighted, value) {
15924
+ let processed = 0;
15925
+ let result = '';
15926
+ const nodeStack = [];
15927
+
15928
+ function selectStream() {
15929
+ if (!original.length || !highlighted.length) {
15930
+ return original.length ? original : highlighted;
15931
+ }
15932
+ if (original[0].offset !== highlighted[0].offset) {
15933
+ return (original[0].offset < highlighted[0].offset) ? original : highlighted;
15934
+ }
15935
+
15936
+ /*
15937
+ To avoid starting the stream just before it should stop the order is
15938
+ ensured that original always starts first and closes last:
15939
+
15940
+ if (event1 == 'start' && event2 == 'start')
15941
+ return original;
15942
+ if (event1 == 'start' && event2 == 'stop')
15943
+ return highlighted;
15944
+ if (event1 == 'stop' && event2 == 'start')
15945
+ return original;
15946
+ if (event1 == 'stop' && event2 == 'stop')
15947
+ return highlighted;
15948
+
15949
+ ... which is collapsed to:
15950
+ */
15951
+ return highlighted[0].event === 'start' ? original : highlighted;
15952
+ }
15953
+
15954
+ /**
15955
+ * @param {Node} node
15956
+ */
15957
+ function open(node) {
15958
+ /** @param {Attr} attr */
15959
+ function attributeString(attr) {
15960
+ return ' ' + attr.nodeName + '="' + escapeHTML(attr.value) + '"';
15961
+ }
15962
+ // @ts-ignore
15963
+ result += '<' + tag(node) + [].map.call(node.attributes, attributeString).join('') + '>';
15964
+ }
15965
+
15966
+ /**
15967
+ * @param {Node} node
15968
+ */
15969
+ function close(node) {
15970
+ result += '</' + tag(node) + '>';
15971
+ }
15972
+
15973
+ /**
15974
+ * @param {Event} event
15975
+ */
15976
+ function render(event) {
15977
+ (event.event === 'start' ? open : close)(event.node);
15978
+ }
15979
+
15980
+ while (original.length || highlighted.length) {
15981
+ let stream = selectStream();
15982
+ result += escapeHTML(value.substring(processed, stream[0].offset));
15983
+ processed = stream[0].offset;
15984
+ if (stream === original) {
15985
+ /*
15986
+ On any opening or closing tag of the original markup we first close
15987
+ the entire highlighted node stack, then render the original tag along
15988
+ with all the following original tags at the same offset and then
15989
+ reopen all the tags on the highlighted stack.
15990
+ */
15991
+ nodeStack.reverse().forEach(close);
15992
+ do {
15993
+ render(stream.splice(0, 1)[0]);
15994
+ stream = selectStream();
15995
+ } while (stream === original && stream.length && stream[0].offset === processed);
15996
+ nodeStack.reverse().forEach(open);
15997
+ } else {
15998
+ if (stream[0].event === 'start') {
15999
+ nodeStack.push(stream[0].node);
16000
+ } else {
16001
+ nodeStack.pop();
16002
+ }
16003
+ render(stream.splice(0, 1)[0]);
16004
+ }
16005
+ }
16006
+ return result + escapeHTML(value.substr(processed));
16007
+ }
16008
+
16009
+ return mergeHTMLPlugin;
16010
+
16011
+ }());
16012
+
16013
+ hljs.addPlugin(mergeHTMLPlugin);
16014
+ // ##### END MODIFIED BY SAP
15829
16015
  hljs.registerLanguage('yaml', hljsGrammar);
15830
16016
  })();
@@ -449,6 +449,13 @@ sap.ui.define([
449
449
  }
450
450
  }.bind(this));
451
451
 
452
+ if (!sMemberType && aEntity.includes("methods")) {
453
+ var iSeparatorIndex = aEntity.indexOf("methods");
454
+ sMemberType = "methods";
455
+ aMember = aEntity.slice(iSeparatorIndex + 1);
456
+ aEntity = aEntity.slice(0, iSeparatorIndex);
457
+ }
458
+
452
459
  return {
453
460
  id: aEntity.join("/"),
454
461
  entityId: aMember.length ? aMember.join("/") : undefined,
@@ -9,8 +9,9 @@
9
9
  width="100%">
10
10
  <items>
11
11
  <Image
12
- src="./resources/sap/ui/documentation/sdk/images/logo_sap.png"
12
+ src="./resources/sap/ui/documentation/sdk/images/logo_sap.svg"
13
13
  densityAware="false"
14
+ alt="SAP Company Logo"
14
15
  width="3rem"
15
16
  height="1.5rem">
16
17
  </Image>
@@ -1012,6 +1012,12 @@ html.sapUiMedia-Std-Tablet {
1012
1012
  top: -0.125rem;
1013
1013
  }
1014
1014
  }
1015
+
1016
+ .sapUiDemoKitHeaderActionsVersionSwitch .sapMBtnInner {
1017
+ &:after {
1018
+ top: 0.75rem;
1019
+ }
1020
+ }
1015
1021
  }
1016
1022
 
1017
1023
  // Media queries
@@ -1073,6 +1079,23 @@ html.sap-desktop {
1073
1079
  html.sap-tablet {
1074
1080
  &:not(html.sap-combi) .sapUiDemokit.sapTntToolPage {
1075
1081
  padding: 0;
1082
+
1083
+ // Adjust the style of the version switch button to match the design specifiaction
1084
+ .sapUiDemoKitHeaderActionsVersionSwitch .sapMBtnInner {
1085
+ padding: 0;
1086
+
1087
+ &:after {
1088
+ content: none;
1089
+ }
1090
+
1091
+ .sapMBtnIcon {
1092
+ padding: 0;
1093
+ }
1094
+ }
1095
+
1096
+ .sapUiDemoKitHeaderActionsVersionSwitchTextContent {
1097
+ display: none;
1098
+ }
1076
1099
  }
1077
1100
 
1078
1101
  .sapUiDemokit {
@@ -1102,23 +1125,6 @@ html.sap-tablet {
1102
1125
  .sapUiDocumentationMasterToggleButton {
1103
1126
  margin-left: 1rem;
1104
1127
  }
1105
-
1106
- // Adjust the style of the version switch button to match the design specifiaction
1107
- .sapUiDemoKitHeaderActionsVersionSwitch .sapMBtnInner {
1108
- padding: 0;
1109
-
1110
- &:after {
1111
- content: none;
1112
- }
1113
-
1114
- .sapMBtnIcon {
1115
- padding: 0;
1116
- }
1117
- }
1118
-
1119
- .sapUiDemoKitHeaderActionsVersionSwitchTextContent {
1120
- display: none;
1121
- }
1122
1128
  }
1123
1129
  }
1124
1130
  }