@openui5/sap.ui.documentation 1.147.1 → 1.149.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 (65) hide show
  1. package/THIRDPARTY.txt +3 -3
  2. package/package.json +7 -7
  3. package/src/sap/ui/documentation/.library +1 -1
  4. package/src/sap/ui/documentation/library.js +2 -2
  5. package/src/sap/ui/documentation/messagebundle.properties +6 -0
  6. package/src/sap/ui/documentation/messagebundle_ar.properties +9 -0
  7. package/src/sap/ui/documentation/messagebundle_bg.properties +10 -1
  8. package/src/sap/ui/documentation/messagebundle_ca.properties +9 -0
  9. package/src/sap/ui/documentation/messagebundle_cnr.properties +12 -3
  10. package/src/sap/ui/documentation/messagebundle_cs.properties +9 -0
  11. package/src/sap/ui/documentation/messagebundle_cy.properties +9 -0
  12. package/src/sap/ui/documentation/messagebundle_da.properties +9 -0
  13. package/src/sap/ui/documentation/messagebundle_de.properties +9 -0
  14. package/src/sap/ui/documentation/messagebundle_el.properties +9 -0
  15. package/src/sap/ui/documentation/messagebundle_en.properties +9 -0
  16. package/src/sap/ui/documentation/messagebundle_en_GB.properties +9 -0
  17. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +6 -0
  18. package/src/sap/ui/documentation/messagebundle_es.properties +9 -0
  19. package/src/sap/ui/documentation/messagebundle_es_MX.properties +9 -0
  20. package/src/sap/ui/documentation/messagebundle_et.properties +9 -0
  21. package/src/sap/ui/documentation/messagebundle_fi.properties +9 -0
  22. package/src/sap/ui/documentation/messagebundle_fr.properties +9 -0
  23. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +9 -0
  24. package/src/sap/ui/documentation/messagebundle_hi.properties +9 -0
  25. package/src/sap/ui/documentation/messagebundle_hr.properties +15 -6
  26. package/src/sap/ui/documentation/messagebundle_hu.properties +9 -0
  27. package/src/sap/ui/documentation/messagebundle_id.properties +12 -3
  28. package/src/sap/ui/documentation/messagebundle_it.properties +9 -0
  29. package/src/sap/ui/documentation/messagebundle_iw.properties +9 -0
  30. package/src/sap/ui/documentation/messagebundle_ja.properties +9 -0
  31. package/src/sap/ui/documentation/messagebundle_kk.properties +9 -0
  32. package/src/sap/ui/documentation/messagebundle_ko.properties +9 -0
  33. package/src/sap/ui/documentation/messagebundle_lt.properties +9 -0
  34. package/src/sap/ui/documentation/messagebundle_lv.properties +9 -0
  35. package/src/sap/ui/documentation/messagebundle_mk.properties +31 -22
  36. package/src/sap/ui/documentation/messagebundle_ms.properties +9 -0
  37. package/src/sap/ui/documentation/messagebundle_nl.properties +9 -0
  38. package/src/sap/ui/documentation/messagebundle_no.properties +9 -0
  39. package/src/sap/ui/documentation/messagebundle_pl.properties +9 -0
  40. package/src/sap/ui/documentation/messagebundle_pt.properties +9 -0
  41. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +9 -0
  42. package/src/sap/ui/documentation/messagebundle_ro.properties +9 -0
  43. package/src/sap/ui/documentation/messagebundle_ru.properties +12 -3
  44. package/src/sap/ui/documentation/messagebundle_sh.properties +12 -3
  45. package/src/sap/ui/documentation/messagebundle_sk.properties +9 -0
  46. package/src/sap/ui/documentation/messagebundle_sl.properties +9 -0
  47. package/src/sap/ui/documentation/messagebundle_sr.properties +12 -3
  48. package/src/sap/ui/documentation/messagebundle_sv.properties +9 -0
  49. package/src/sap/ui/documentation/messagebundle_th.properties +31 -22
  50. package/src/sap/ui/documentation/messagebundle_tr.properties +9 -0
  51. package/src/sap/ui/documentation/messagebundle_uk.properties +9 -0
  52. package/src/sap/ui/documentation/messagebundle_vi.properties +10 -1
  53. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +9 -0
  54. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +9 -0
  55. package/src/sap/ui/documentation/sdk/controller/App.controller.js +14 -2
  56. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +2 -2
  57. package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +21 -4
  58. package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +1 -1
  59. package/src/sap/ui/documentation/sdk/controller/util/CookiesConsentManager.js +3 -4
  60. package/src/sap/ui/documentation/sdk/controller/util/ResourcesInfo.js +5 -0
  61. package/src/sap/ui/documentation/sdk/controller/util/UsageTracker.js +21 -0
  62. package/src/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js +3 -3
  63. package/src/sap/ui/documentation/sdk/view/ReleaseNotes.view.xml +4 -2
  64. package/src/sap/ui/documentation/sdk/view/Resources.view.xml +23 -0
  65. package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +4 -4
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  */
90
90
  onDownloadButtonPress: function (oEvent) {
91
91
  var isOpenUI5 = this.getView().getModel("welcomeView").getProperty("/isOpenUI5"),
92
- sUrl = isOpenUI5 ? "https://openui5.org/releases/" : "https://tools.hana.ondemand.com/#sapui5";
92
+ sUrl = isOpenUI5 ? "https://openui5.org/releases.html" : "https://tools.hana.ondemand.com/#sapui5";
93
93
  window.open(sUrl, "_blank");
94
94
  },
95
95
 
@@ -290,11 +290,11 @@ sap.ui.define(
290
290
  var oConsetBarElement = this._appendTrustArcConsentBar(),
291
291
  oScript = this._createTrustArcScriptElement();
292
292
  oScript.addEventListener("load", function() {
293
- Log.trace('TrustArc initialization stript loaded successfully');
293
+ Log.trace('TrustArc initialization script loaded successfully');
294
294
  resolve();
295
295
  });
296
296
  oScript.addEventListener('error', function(oError) {
297
- Log.error("Error loading TrustArc initialization stript ", oError);
297
+ Log.error("Error loading TrustArc initialization script ", oError);
298
298
  reject();
299
299
  });
300
300
  this._appendDOMElementAfter(oScript, oConsetBarElement);
@@ -332,8 +332,7 @@ sap.ui.define(
332
332
  _isTrustArcScriptIncluded: function() {
333
333
  const scripts = document.getElementsByTagName('script');
334
334
  for (let i = 0; i < scripts.length; i++) {
335
- const src = scripts[i].getAttribute('src');
336
- if (src && src.startsWith(TRUST_ARC.BASE_URL)) {
335
+ if (scripts[i].src.startsWith(TRUST_ARC.BASE_URL)) {
337
336
  return true;
338
337
  }
339
338
  }
@@ -22,6 +22,11 @@ sap.ui.define([],
22
22
  "text": "Icon Explorer",
23
23
  "href": "test-resources/sap/m/demokit/iconExplorer/webapp/index.html"
24
24
  },
25
+ {
26
+ "id": "illustrationExplorer",
27
+ "text": "Illustration Explorer",
28
+ "href": "test-resources/sap/m/demokit/illustrationExplorer/webapp/index.html"
29
+ },
25
30
  {
26
31
  "id": "accessibilityGuide",
27
32
  "text": "Accessibility Guide",
@@ -302,6 +302,27 @@ sap.ui.define(
302
302
  });
303
303
  this._oLastRouteParameters = null; // clear last route parameters after logging
304
304
  },
305
+ /**
306
+ * Logs an Activity Map click event to Adobe Analytics.
307
+ * @param {object} oActivityMapInfo Activity Map details
308
+ * @param {string} oActivityMapInfo.region Page region where the click occurred (e.g. "body", "footer")
309
+ * @param {string} oActivityMapInfo.link Name of the clicked element (e.g. "download")
310
+ * @param {string} oActivityMapInfo.destination Target URL, or "no destination" if not a redirect
311
+ */
312
+ logActivityMapEvent: function (oActivityMapInfo) {
313
+ if (!this._isStarted) {
314
+ return;
315
+ }
316
+ this._addToLogs({
317
+ event: "activityMap",
318
+ activityMap: {
319
+ region: oActivityMapInfo.region,
320
+ link: oActivityMapInfo.link,
321
+ destination: oActivityMapInfo.destination
322
+ }
323
+ });
324
+ this._publishLoggedInfo(false); // stlBeaconReady — no page reload
325
+ },
305
326
  _publishLoggedInfo: function (bIncrementPageCount) {
306
327
  this._addToLogs({
307
328
  event: bIncrementPageCount
@@ -998,10 +998,10 @@ var hljs = (function () {
998
998
  * @param {string} message
999
999
  */
1000
1000
  const deprecated = (version, message) => {
1001
- if (seenDeprecations[`1.147.1/${message}`]) return;
1001
+ if (seenDeprecations[`1.149.0/${message}`]) return;
1002
1002
 
1003
- console.log(`Deprecated as of 1.147.1. ${message}`);
1004
- seenDeprecations[`1.147.1/${message}`] = true;
1003
+ console.log(`Deprecated as of 1.149.0. ${message}`);
1004
+ seenDeprecations[`1.149.0/${message}`] = true;
1005
1005
  };
1006
1006
 
1007
1007
  /* eslint-disable no-throw-literal */
@@ -21,7 +21,8 @@
21
21
 
22
22
  <headerContent>
23
23
  <layout:VerticalLayout>
24
- <m:Text text="This log includes the library notes for the libraries listed below. The distribution patch information shows when changes were delivered in SAPUI5. The version shown after each change indicates the library version where the change was first included."/>
24
+ <m:Text visible="{= !${versionData>/isOpenUI5} }" text="This log includes the library notes for the libraries listed below. The distribution patch information shows when changes were delivered in SAPUI5. The version shown after each change indicates the library version where the change was first included."/>
25
+ <m:Text visible="{versionData>/isOpenUI5}" text="This log includes the library notes for the libraries listed below. The distribution patch information shows when changes were delivered in OpenUI5."/>
25
26
  <m:Select id="VersionSelect" items="{select>/items}" change=".handleVersionChange" visible="false">
26
27
  <core:Item text="{select>value}" key="{select>key}"/>
27
28
  </m:Select>
@@ -40,7 +41,8 @@
40
41
  class="sapUxAPObjectPageSubSectionAlignContent"
41
42
  width="auto">
42
43
  <layout:VerticalLayout content="{path: 'notes', templateShareable: false}" width="100%">
43
- <m:Text width="100%" text="[{type}] {text} (included in {version})"/>
44
+ <m:Text visible="{= !${versionData>/isOpenUI5} }" width="100%" text="[{type}] {text} (included in {version})"/>
45
+ <m:Text visible="{versionData>/isOpenUI5}" width="100%" text="[{type}] {text}"/>
44
46
  </layout:VerticalLayout>
45
47
  </m:Panel>
46
48
  </layout:VerticalLayout>
@@ -139,6 +139,29 @@
139
139
  </f:content>
140
140
  </f:Card>
141
141
 
142
+ <!-- Illustration Explorer -->
143
+ <f:Card class="sapUiDemoKitResourcesRegularCard">
144
+ <f:header>
145
+ <card:Header title="{i18n>RESOURCES_CARD_TITLE_ILLUSTRATION_EXPLORER}" iconSrc="sap-icon://picture" />
146
+ </f:header>
147
+ <f:content>
148
+ <VBox class="sapUiDemoKitResourcesCardContentSpacing" wrap="Wrap">
149
+ <Text text="{i18n>RESOURCES_CARD_DESC_ILLUSTRATION_EXPLORER}">
150
+ <layoutData>
151
+ <FlexItemData growFactor="1" />
152
+ </layoutData>
153
+ </Text>
154
+ <Link
155
+ class="sapUiDemoKitResourcesCardLink"
156
+ href="{resources>/illustrationExplorer/href}"
157
+ target="_blank"
158
+ text="{i18n>RESOURCES_CARD_LINK_ILLUSTRATION_EXPLORER}"
159
+ tooltip="{i18n>RESOURCES_CARD_LINK_TOOLTIP}"
160
+ wrapping="true" />
161
+ </VBox>
162
+ </f:content>
163
+ </f:Card>
164
+
142
165
  <!-- Accessibility Guide -->
143
166
  <f:Card class="sapUiDemoKitResourcesRegularCard"
144
167
  visible="{
@@ -130,7 +130,7 @@
130
130
  <custom:Row>
131
131
  <custom:ParamText text="{name}" phoneText="{phoneName}" depth="{depth}" optional="{optional}"/>
132
132
  <m:Text text="{type}" wrapping="false"/>
133
- <m:Text text="{defaultValue}" wrapping="false"/>
133
+ <m:Text text="{path: 'defaultValue', formatter: 'formatter.escapeSettingsValue'}"/>
134
134
  <custom:JSDocText sanitizeContent="false" text="{description}"/>
135
135
  </custom:Row>
136
136
  </custom:LightTable>
@@ -254,7 +254,7 @@
254
254
  <custom:Row expandable="{= ${typeInfo/refersToTypedef} === true}" typedefName="{= ${typeInfo/UI5Types} ? ${typeInfo/UI5Types/0} : ${typeInfo/type} }" expandToggle="onTypedefToggle">
255
255
  <custom:ParamText text="{name}" phoneText="{phoneName}" depth="{depth}" optional="{optional}"/>
256
256
  <custom:JSDocType typeInfo="{parts: ['typeInfo', 'types', 'type', 'linkEnabled'], formatter: '.formatter.formatJSDocType'}"/>
257
- <m:Text text="{defaultValue}" wrapping="false"/>
257
+ <m:Text text="{path: 'defaultValue', formatter: '.formatter.escapeSettingsValue'}"/>
258
258
  <custom:JSDocText sanitizeContent="false" text="{description}"/>
259
259
  </custom:Row>
260
260
  </custom:LightTable>
@@ -296,7 +296,7 @@
296
296
  <custom:Row>
297
297
  <custom:ParamText class="sapUiDocumentationParamBold" text="{name}"/>
298
298
  <custom:JSDocType typeInfo="{parts: ['typeInfo', 'types', 'type', 'linkEnabled'], formatter: '.formatter.formatJSDocType'}"/>
299
- <m:Text text="{defaultValue}"/>
299
+ <m:Text text="{path: 'defaultValue', formatter: '.formatter.escapeSettingsValue'}"/>
300
300
  <layout:VerticalLayout width="100%">
301
301
  <custom:JSDocText sanitizeContent="false" text="{description}"/>
302
302
  <layout:HorizontalLayout>
@@ -681,7 +681,7 @@
681
681
  <custom:Row expandable="{= ${parameter>typeInfo/refersToTypedef} === true}" typedefName="{= ${parameter>typeInfo/UI5Types} ? ${parameter>typeInfo/UI5Types/0} : ${parameter>typeInfo/type} }" expandToggle="onTypedefToggle">
682
682
  <custom:ParamText text="{parameter>name}" phoneText="{parameter>phoneName}" depth="{parameter>depth}" optional="{parameter>optional}"/>
683
683
  <custom:JSDocType typeInfo="{parts: ['parameter>typeInfo','parameter>types'], formatter: '.formatter.stringifyJSDocType'}"/>
684
- <m:Text text="{parameter>defaultValue}" wrapping="false"/>
684
+ <m:Text text="{path: 'parameter>defaultValue', formatter: '.formatter.escapeSettingsValue'}"/>
685
685
  <custom:JSDocText sanitizeContent="false" text="{path: 'parameter>description', formatter: '.formatter.escapeSettingsValue'}"/>
686
686
  </custom:Row>
687
687
  </template:repeat>