@openui5/sap.ui.documentation 1.102.3 → 1.102.6

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/THIRDPARTY.txt CHANGED
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.10
200
+ Component: URI.js, version: 1.19.11
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.102.3",
3
+ "version": "1.102.6",
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,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.102.3",
18
- "@openui5/sap.ui.core": "1.102.3",
19
- "@openui5/sap.ui.layout": "1.102.3",
20
- "@openui5/themelib_sap_belize": "1.102.3",
21
- "@openui5/themelib_sap_fiori_3": "1.102.3"
17
+ "@openui5/sap.m": "1.102.6",
18
+ "@openui5/sap.ui.core": "1.102.6",
19
+ "@openui5/sap.ui.layout": "1.102.6",
20
+ "@openui5/themelib_sap_belize": "1.102.6",
21
+ "@openui5/themelib_sap_fiori_3": "1.102.6"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.102.3</version>
9
+ <version>1.102.6</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.102.3
28
+ * @version 1.102.6
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = sap.ui.getCore().initLibrary({
33
33
  name : 'sap.ui.documentation',
34
- version: '1.102.3',
34
+ version: '1.102.6',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -58,7 +58,8 @@ sap.ui.define([],
58
58
  {
59
59
  "id": "liveEditor",
60
60
  "text": "Live Editor",
61
- "href": "liveEditor"
61
+ "href": "liveEditor",
62
+ "hideOnPhone": true
62
63
  },
63
64
  {
64
65
  "id": "fioriTools",
@@ -68,12 +69,15 @@ sap.ui.define([],
68
69
  {
69
70
  "id": "flexibleProgrammingModelExplorer",
70
71
  "text": "Flexible Programming Model Explorer",
71
- "href": "https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/overview/introduction"
72
+ "href": "test-resources/sap/fe/core/fpmExplorer/index.html#/overview/introduction",
73
+ "isDistributionScope": true,
74
+ "hideOnPhone": true
72
75
  },
73
76
  {
74
77
  "id": "accessibilityGuide",
75
78
  "text": "Accessibility Guide",
76
- "href": "test-resources/sap/m/demokit/accessibilityGuide/webapp/index.html"
79
+ "href": "test-resources/sap/m/demokit/accessibilityGuide/webapp/index.html",
80
+ "hideOnPhone": true
77
81
  }
78
82
  ];
79
83
 
@@ -279,6 +279,31 @@ sap.ui.define([
279
279
  formatImportantMessage: function (sMsg, sParam) {
280
280
  var sParam = this._getUI5Distribution();
281
281
  return formatMessage(sMsg, sParam);
282
+ },
283
+
284
+ /**
285
+ * Formats the value of the <code>visibile</code> property of the cards in the Tools section
286
+ *
287
+ * @param {object} oData the model data
288
+ * @returns {boolean}
289
+ * @protected
290
+ */
291
+ formatToolCardVisibility: function (oData) {
292
+ if (!oData) {
293
+ return false;
294
+ }
295
+
296
+ if (oData.hideOnPhone
297
+ && this.getOwnerComponent().getModel("device").getProperty("/system/phone")) {
298
+ return false;
299
+ }
300
+
301
+ if (oData.isDistributionScope
302
+ && this.getOwnerComponent().getModel("versionData").getProperty("/isOpenUI5")) {
303
+ return false;
304
+ }
305
+
306
+ return true;
282
307
  }
283
308
  };
284
309
  return merge(oFormatter, oStaticAPI);
@@ -390,7 +390,10 @@
390
390
  </f:content>
391
391
  </f:Card>
392
392
  <!-- Live Editor -->
393
- <f:Card class="threeColumnLayoutCard" visible="{=! (${device>/system/phone} || ${device>/browser/msie}) }">
393
+ <f:Card class="threeColumnLayoutCard"
394
+ visible="{
395
+ path: '/liveEditor',
396
+ formatter: '.formatter.formatToolCardVisibility'}">
394
397
  <f:content>
395
398
  <VBox justifyContent="SpaceBetween">
396
399
  <VBox class="sapUiSmallMargin toolspageCardInfo">
@@ -409,7 +412,10 @@
409
412
  </f:content>
410
413
  </f:Card>
411
414
  <!-- Flexible Programming Model Explorer -->
412
- <f:Card class="threeColumnLayoutCard" visible="{=! (${device>/system/phone} || ${device>/browser/msie}) }">
415
+ <f:Card class="threeColumnLayoutCard"
416
+ visible="{
417
+ path: '/flexibleProgrammingModelExplorer',
418
+ formatter: '.formatter.formatToolCardVisibility'}">
413
419
  <f:content>
414
420
  <VBox justifyContent="SpaceBetween">
415
421
  <VBox class="sapUiSmallMargin toolspageCardInfo">
@@ -428,7 +434,10 @@
428
434
  </f:content>
429
435
  </f:Card>
430
436
  <!-- Accessibility Guide -->
431
- <f:Card class="threeColumnLayoutCard" visible="{=! (${device>/system/phone} || ${device>/browser/msie}) }">
437
+ <f:Card class="threeColumnLayoutCard"
438
+ visible="{
439
+ path: '/accessibilityGuide',
440
+ formatter: '.formatter.formatToolCardVisibility'}">
432
441
  <f:content>
433
442
  <VBox justifyContent="SpaceBetween">
434
443
  <VBox class="sapUiSmallMargin toolspageCardInfo">