@openui5/sap.ui.documentation 1.104.0 → 1.105.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/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/documentation/.library +6 -6
- package/src/sap/ui/documentation/library.js +2 -2
- package/src/sap/ui/documentation/messagebundle.properties +0 -2
- package/src/sap/ui/documentation/sdk/Component.js +10 -16
- package/src/sap/ui/documentation/sdk/controller/App.controller.js +6 -2
- package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +20 -1
- package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +2 -4
- package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +9 -4
- package/src/sap/ui/documentation/sdk/controller/util/URLUtil.js +4 -0
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/Component.js +9 -66
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +2 -19
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/i18n/i18n.properties +0 -8
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/view/CookieSettingsDialog.fragment.xml +2 -18
- package/src/sap/ui/documentation/sdk/css/style.css +36 -22
- package/src/sap/ui/documentation/sdk/images/tools/AccessibilityGuide.png +0 -0
- package/src/sap/ui/documentation/sdk/manifest.json +5 -0
- package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
- package/src/sap/ui/documentation/sdk/model/libraryData.js +13 -2
- package/src/sap/ui/documentation/sdk/view/App.view.xml +1 -1
- package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +30 -7
- package/src/sap/ui/documentation/sdk/view/VisibilityInformation.fragment.xml +12 -0
- package/src/sap/ui/documentation/themes/base/ObjectPageSubSection.less +7 -0
- package/src/sap/ui/documentation/themes/sap_horizon/Panel.less +3 -0
- package/src/sap/ui/documentation/themes/sap_horizon/library.source.less +1 -0
- package/src/sap/ui/documentation/themes/sap_horizon_dark/Panel.less +3 -0
- package/src/sap/ui/documentation/themes/sap_horizon_dark/library.source.less +1 -0
package/.reuse/dep5
CHANGED
|
@@ -159,7 +159,7 @@ Copyright:
|
|
|
159
159
|
License: Apache-2.0 and MIT
|
|
160
160
|
Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
|
|
161
161
|
|
|
162
|
-
Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite
|
|
162
|
+
Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
|
|
163
163
|
Copyright: jQuery Foundation and other contributors
|
|
164
164
|
License: MIT
|
|
165
165
|
Comment: these files belong to: QUnit Composite
|
package/THIRDPARTY.txt
CHANGED
|
@@ -104,7 +104,7 @@ Component: QUnit Composite, version: 1.0.2-pre
|
|
|
104
104
|
Copyright: jQuery Foundation and other contributors
|
|
105
105
|
License: MIT
|
|
106
106
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
107
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite
|
|
107
|
+
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
|
|
108
108
|
|
|
109
109
|
Component: JUnit Reporter for QUnit, version: 1.1.1
|
|
110
110
|
Copyright: jQuery Foundation and other contributors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.documentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.105.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,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
20
|
-
"@openui5/themelib_sap_belize": "1.
|
|
21
|
-
"@openui5/themelib_sap_fiori_3": "1.
|
|
17
|
+
"@openui5/sap.m": "1.105.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.105.1",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.105.1",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.105.1",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.105.1"
|
|
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.
|
|
9
|
+
<version>1.105.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library for the Demokit 2.0.</documentation>
|
|
12
12
|
|
|
@@ -47,27 +47,27 @@
|
|
|
47
47
|
</packaging>
|
|
48
48
|
<!-- Thirdparty references -->
|
|
49
49
|
<thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty" >
|
|
50
|
-
<lib name="esprima" displayName="Esprima" version="1.2.2" homepage="http://esprima.org">
|
|
50
|
+
<lib name="esprima" displayName="Esprima" version="1.2.2" homepage="http://esprima.org" id="73554900106100003281">
|
|
51
51
|
<license url="http://esprima.org/doc/index.html#license" type="BSD-2-Clause" />
|
|
52
52
|
<copyright>2013 Ariya Hidayat and other contributors</copyright>
|
|
53
53
|
<pattern>sap/ui/documentation/sdk/thirdparty/esprima.js</pattern>
|
|
54
54
|
</lib>
|
|
55
|
-
<lib name="highlight.js" displayName="highlight.js" version="10.4.1" homepage="https://highlightjs.org/">
|
|
55
|
+
<lib name="highlight.js" displayName="highlight.js" version="10.4.1" homepage="https://highlightjs.org/" id="73555000106100051976">
|
|
56
56
|
<license url="https://github.com/highlightjs/highlight.js/blob/10.4.1/LICENSE" type="BSD-3-Clause" />
|
|
57
57
|
<copyright>2006-2020, Ivan Sagalaev</copyright>
|
|
58
58
|
<pattern>sap/ui/documentation/sdk/thirdparty/highlight.js/*</pattern>
|
|
59
59
|
</lib>
|
|
60
|
-
<lib name="elasticlunr" displayName="Elasticlunr" version="0.9.5" homepage="http://elasticlunr.com/">
|
|
60
|
+
<lib name="elasticlunr" displayName="Elasticlunr" version="0.9.5" homepage="http://elasticlunr.com/" id="73554900106100021592">
|
|
61
61
|
<license url="https://github.com/weixsong/elasticlunr.js/blob/v0.9.5/LICENSE" type="MIT" />
|
|
62
62
|
<copyright>2017 Wei Song and Oliver Nightingale</copyright>
|
|
63
63
|
<pattern>sap/ui/documentation/sdk/thirdparty/elasticlunr.js</pattern>
|
|
64
64
|
</lib>
|
|
65
|
-
<lib name="datatables" displayName="DataTables" version="1.10.15" homepage="https://datatables.net/">
|
|
65
|
+
<lib name="datatables" displayName="DataTables" version="1.10.15" homepage="https://datatables.net/" id="73555000106100009470">
|
|
66
66
|
<license url="https://datatables.net/license/" type="MIT" />
|
|
67
67
|
<copyright>2008-2017 SpryMedia Ltd</copyright>
|
|
68
68
|
<pattern>sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*</pattern>
|
|
69
69
|
</lib>
|
|
70
|
-
<lib name="datatables-buttons" displayName="Buttons extension for DataTables" version="1.4.0" homepage="https://datatables.net/extensions/buttons/">
|
|
70
|
+
<lib name="datatables-buttons" displayName="Buttons extension for DataTables" version="1.4.0" homepage="https://datatables.net/extensions/buttons/" id="73555000106100007649">
|
|
71
71
|
<license url="https://datatables.net/license/" type="MIT" />
|
|
72
72
|
<copyright>2016 SpryMedia Ltd</copyright>
|
|
73
73
|
<pattern>sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*</pattern>
|
|
@@ -25,13 +25,13 @@ sap.ui.define([
|
|
|
25
25
|
* @namespace
|
|
26
26
|
* @alias sap.ui.documentation
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.105.1
|
|
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.
|
|
34
|
+
version: '1.105.1',
|
|
35
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
36
36
|
types: [],
|
|
37
37
|
interfaces: [],
|
|
@@ -411,8 +411,6 @@ APP_SETTINGS_DIALOG_CANCEL_BTN = Cancel
|
|
|
411
411
|
|
|
412
412
|
#XHED: The title of the dialog for configuring the cookie settings
|
|
413
413
|
COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
|
|
414
|
-
#XTXT: Summary note that explains why we use cookies
|
|
415
|
-
COOKIE_SETTINGS_DIALOG_SUMMARY = We use cookies and SAP Web Analytics to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
|
|
416
414
|
#XTXT: Title of the section about the required cookies used in the application
|
|
417
415
|
COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
|
|
418
416
|
#XTXT: Summary note that explains what are the required cookies in the application
|
|
@@ -76,18 +76,14 @@ sap.ui.define([
|
|
|
76
76
|
getCookiesManagement: function() {
|
|
77
77
|
var sId = "sap.ui.documentation.sdk.cookieSettingsDialog";
|
|
78
78
|
|
|
79
|
-
if (!this.
|
|
80
|
-
this.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
return this._oCookiesComponent;
|
|
87
|
-
}.bind(this));
|
|
79
|
+
if (!this._pCookiesComponent) {
|
|
80
|
+
this._pCookiesComponent = this.createComponent({
|
|
81
|
+
usage: "cookieSettingsDialog",
|
|
82
|
+
id: 'cookiesComp-' + sId
|
|
83
|
+
});
|
|
88
84
|
}
|
|
89
85
|
|
|
90
|
-
return this.
|
|
86
|
+
return this._pCookiesComponent;
|
|
91
87
|
},
|
|
92
88
|
|
|
93
89
|
/**
|
|
@@ -100,7 +96,9 @@ sap.ui.define([
|
|
|
100
96
|
this._oErrorHandler.destroy();
|
|
101
97
|
this._oConfigUtil.destroy();
|
|
102
98
|
this._oConfigUtil = null;
|
|
103
|
-
this.
|
|
99
|
+
this._pCookiesComponent && this._pCookiesComponent.then(function(oCookiesMgmtComponent) {
|
|
100
|
+
oCookiesMgmtComponent.destroy();
|
|
101
|
+
});
|
|
104
102
|
// call the base component's destroy function
|
|
105
103
|
UIComponent.prototype.destroy.apply(this, arguments);
|
|
106
104
|
},
|
|
@@ -176,7 +174,6 @@ sap.ui.define([
|
|
|
176
174
|
bOpenUI5,
|
|
177
175
|
sVersionSuffix,
|
|
178
176
|
bIsInternal,
|
|
179
|
-
bSupportsSWA,
|
|
180
177
|
sVersionPrefixPath = ResourcesUtil.getResourcesVersion();
|
|
181
178
|
|
|
182
179
|
this.aAllowedMembers = ["public", "protected"];
|
|
@@ -189,9 +186,6 @@ sap.ui.define([
|
|
|
189
186
|
sVersionSuffix = oVersion.getSuffix();
|
|
190
187
|
bSnapshot = /-SNAPSHOT$/i.test(sVersionSuffix);
|
|
191
188
|
bOpenUI5 = oVersionInfo.gav && /openui5/i.test(oVersionInfo.gav);
|
|
192
|
-
bSupportsSWA = oVersionInfo.libraries.some(function (lib) {
|
|
193
|
-
return lib.name === "sap.webanalytics.core";
|
|
194
|
-
});
|
|
195
189
|
|
|
196
190
|
// We show restricted members for internal versions
|
|
197
191
|
if (ResourcesUtil.isInternal(oVersionInfo)) {
|
|
@@ -200,6 +194,7 @@ sap.ui.define([
|
|
|
200
194
|
}
|
|
201
195
|
|
|
202
196
|
this.getModel("versionData").setData({
|
|
197
|
+
enableAdvancedCookieSettings: false, // this flag is left for eventual future advanced cookie settings
|
|
203
198
|
versionGav: oVersionInfo.gav,
|
|
204
199
|
versionName: oVersionInfo.name,
|
|
205
200
|
version: [oVersion.getMajor(), oVersion.getMinor(), oVersion.getPatch()].join("."),
|
|
@@ -210,7 +205,6 @@ sap.ui.define([
|
|
|
210
205
|
isDevVersion: bSnapshot,
|
|
211
206
|
isBetaVersion: !bOpenUI5 && !bSnapshot && /-beta$/i.test(sVersionSuffix),
|
|
212
207
|
isInternal: !!bIsInternal,
|
|
213
|
-
supportsSWA: bSupportsSWA,
|
|
214
208
|
libraries: oVersionInfo.libraries,
|
|
215
209
|
allowedMembers: this.aAllowedMembers
|
|
216
210
|
});
|
|
@@ -266,7 +266,9 @@ sap.ui.define([
|
|
|
266
266
|
}
|
|
267
267
|
}.bind(this));
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
oComponent.getCookiesManagement().then(function(oCookieMgmtComponent) {
|
|
270
|
+
oCookieMgmtComponent.enable(oComponent.getRootControl());
|
|
271
|
+
});
|
|
270
272
|
|
|
271
273
|
},
|
|
272
274
|
|
|
@@ -464,7 +466,9 @@ sap.ui.define([
|
|
|
464
466
|
} else if (sTargetText === CHANGE_SETTINGS_TEXT) {
|
|
465
467
|
this.settingsDialogOpen();
|
|
466
468
|
} else if (sTargetText === CHANGE_COOKIE_PREFERENCES_TEXT) {
|
|
467
|
-
this.getOwnerComponent().getCookiesManagement().
|
|
469
|
+
this.getOwnerComponent().getCookiesManagement().then(function(oCookieMgmtComponent) {
|
|
470
|
+
oCookieMgmtComponent.cookieSettingsDialogOpen({ showCookieDetails: true }, this.getView());
|
|
471
|
+
}.bind(this));
|
|
468
472
|
} else if (sTargetText === CHANGE_VERSION_TEXT) {
|
|
469
473
|
this.onChangeVersionButtonPress();
|
|
470
474
|
} else if (DEMOKIT_APPEARANCE[sTargetText]) {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/thirdparty/jquery",
|
|
9
|
+
"sap/ui/core/Fragment",
|
|
9
10
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
10
11
|
"sap/ui/documentation/sdk/util/ToggleFullScreenHandler",
|
|
11
12
|
"sap/ui/documentation/sdk/model/formatter",
|
|
@@ -23,7 +24,7 @@ sap.ui.define([
|
|
|
23
24
|
"sap/m/List",
|
|
24
25
|
"sap/ui/dom/includeStylesheet",
|
|
25
26
|
"sap/ui/dom/includeScript"
|
|
26
|
-
], function (jQuery, BaseController, ToggleFullScreenHandler,
|
|
27
|
+
], function (jQuery, Fragment, BaseController, ToggleFullScreenHandler,
|
|
27
28
|
formatter, Image, Label, Link, Text, HBox, ObjectAttribute, ObjectStatus, Popover,
|
|
28
29
|
library, coreLibrary, CustomListItem, List, includeStylesheet, includeScript) {
|
|
29
30
|
"use strict";
|
|
@@ -253,6 +254,24 @@ sap.ui.define([
|
|
|
253
254
|
}
|
|
254
255
|
},
|
|
255
256
|
|
|
257
|
+
onVisibilityInformationClick: function (oEvent) {
|
|
258
|
+
var oIcon = oEvent.getSource(),
|
|
259
|
+
oView = this.getView();
|
|
260
|
+
|
|
261
|
+
if (!this._oPopover) {
|
|
262
|
+
this._oPopover = Fragment.load({
|
|
263
|
+
name: "sap.ui.documentation.sdk.view.VisibilityInformation",
|
|
264
|
+
controller: this
|
|
265
|
+
}).then(function(oPopover) {
|
|
266
|
+
oView.addDependent(oPopover);
|
|
267
|
+
return oPopover;
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
this._oPopover.then(function(oPopover) {
|
|
271
|
+
oPopover.openBy(oIcon);
|
|
272
|
+
});
|
|
273
|
+
},
|
|
274
|
+
|
|
256
275
|
/* =========================================================== */
|
|
257
276
|
/* begin: internal methods aa*/
|
|
258
277
|
/* =========================================================== */
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
/* Utility class that facilitates route configuration handling */
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/base/Object",
|
|
10
|
-
"sap/base/strings/capitalize"
|
|
11
|
-
|
|
12
|
-
], function (BaseObject, capitalize, merge) {
|
|
10
|
+
"sap/base/strings/capitalize"
|
|
11
|
+
], function (BaseObject, capitalize) {
|
|
13
12
|
"use strict";
|
|
14
13
|
|
|
15
14
|
return BaseObject.extend("sap.ui.documentation.sdk.controller.util.ConfigUtil", {
|
|
@@ -17,7 +16,6 @@ sap.ui.define([
|
|
|
17
16
|
"COOKIE_NAMES": {
|
|
18
17
|
"APPROVAL_REQUESTED": "dk_approval_requested",
|
|
19
18
|
"ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies",
|
|
20
|
-
"ALLOW_USAGE_TRACKING": "dk_allow_usage_tracking",
|
|
21
19
|
"DEMOKIT_IMPORTANT_MESSAGES_READ": "IMR"
|
|
22
20
|
},
|
|
23
21
|
|
|
@@ -373,14 +373,19 @@ sap.ui.define([
|
|
|
373
373
|
oOption = null;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
if (oOption && oOption.
|
|
376
|
+
if (oOption && oOption.is("p")) {
|
|
377
|
+
var sText = oOption.text();
|
|
378
|
+
if (aOptions.indexOf(sText) < 0) {
|
|
379
|
+
aOptions.push(sText);
|
|
380
|
+
}
|
|
381
|
+
} else if (oOption && oOption.length > 0) {
|
|
377
382
|
oOption.find('li').each(function (i, sOption) {
|
|
378
383
|
if (aOptions.indexOf(sOption.textContent) < 0) {
|
|
379
384
|
aOptions.push(sOption.textContent);
|
|
380
385
|
}
|
|
381
386
|
});
|
|
382
387
|
} else {
|
|
383
|
-
aOptions.push(sOption);
|
|
388
|
+
sOption && aOptions.push(sOption);
|
|
384
389
|
}
|
|
385
390
|
|
|
386
391
|
});
|
|
@@ -398,7 +403,7 @@ sap.ui.define([
|
|
|
398
403
|
that.API = this.api();
|
|
399
404
|
|
|
400
405
|
// Create new table row to append filters
|
|
401
|
-
var oTableHeader = $('#' + sId + ' thead'),
|
|
406
|
+
var oTableHeader = $('#' + sId + ' > thead'),
|
|
402
407
|
oNewTableRow = $('<tr/>'),
|
|
403
408
|
oFilterHeader,
|
|
404
409
|
oHighlighter,
|
|
@@ -449,7 +454,7 @@ sap.ui.define([
|
|
|
449
454
|
control: oFilter.control
|
|
450
455
|
});
|
|
451
456
|
});
|
|
452
|
-
oFilter.control.placeAt(oFilterHeader);
|
|
457
|
+
oFilter.control.placeAt(oFilterHeader[0]);
|
|
453
458
|
}
|
|
454
459
|
|
|
455
460
|
oNewTableRow.append(oFilterHeader);
|
|
@@ -45,6 +45,10 @@ sap.ui.define(["sap/ui/thirdparty/URI"], function(URI) {
|
|
|
45
45
|
aSegments = oURI.segment(),
|
|
46
46
|
sVersion;
|
|
47
47
|
|
|
48
|
+
if (pathMatchesDemokitRoute(oURI.path())) {
|
|
49
|
+
return; // no version in path
|
|
50
|
+
}
|
|
51
|
+
|
|
48
52
|
for (var i = 0, l = aSegments.length; i < l; i++) {
|
|
49
53
|
if (reVersion.test(aSegments[i])) {
|
|
50
54
|
sVersion = aSegments[i];
|
|
@@ -17,18 +17,9 @@ sap.ui.define([
|
|
|
17
17
|
|
|
18
18
|
"COOKIE_NAMES": {
|
|
19
19
|
"APPROVAL_REQUESTED": "dk_approval_requested",
|
|
20
|
-
"ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies"
|
|
21
|
-
"ALLOW_USAGE_TRACKING": "dk_allow_usage_tracking"
|
|
20
|
+
"ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies"
|
|
22
21
|
},
|
|
23
22
|
|
|
24
|
-
SWA_CONFIG: {
|
|
25
|
-
pubToken: 'd5a5359b-0b55-415c-acc8-314511b613ca',
|
|
26
|
-
baseUrl: 'https://webanalytics2.cfapps.eu10.hana.ondemand.com/tracker/',
|
|
27
|
-
owner: null
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
SWA_TRACKER_URL: "sap/webanalytics/core/tracker/js/track.js",
|
|
31
|
-
|
|
32
23
|
metadata : {
|
|
33
24
|
manifest: "json"
|
|
34
25
|
},
|
|
@@ -44,24 +35,14 @@ sap.ui.define([
|
|
|
44
35
|
|
|
45
36
|
if (this.sCookieSettingsParameterValue === "true" || this.sCookieSettingsParameterValue === "" || !bCookieSettingsParameter) {
|
|
46
37
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
this.cookieSettingsDialogOpen({
|
|
56
|
-
showCookieDetails: false,
|
|
57
|
-
supportsUsageTracking: bSupportsSWA
|
|
58
|
-
}, oRootView);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (bSupportsSWA && bHasConsentUseSWA) {
|
|
62
|
-
this.enableUsageTracking();
|
|
63
|
-
}
|
|
64
|
-
}.bind(this));
|
|
38
|
+
var bApprovalRequested = this.getCookieValue(this.COOKIE_NAMES.APPROVAL_REQUESTED) === "1";
|
|
39
|
+
|
|
40
|
+
if (!bApprovalRequested) {
|
|
41
|
+
this.cookieSettingsDialogOpen({
|
|
42
|
+
showCookieDetails: false,
|
|
43
|
+
enableAdvancedSettings: false // this flag is left for eventual future advanced cookie settings
|
|
44
|
+
}, oRootView);
|
|
45
|
+
}
|
|
65
46
|
}
|
|
66
47
|
},
|
|
67
48
|
|
|
@@ -92,44 +73,6 @@ sap.ui.define([
|
|
|
92
73
|
return "";
|
|
93
74
|
},
|
|
94
75
|
|
|
95
|
-
enableUsageTracking: function() {
|
|
96
|
-
this._loadSWA().then(function(swa) {
|
|
97
|
-
if (swa && typeof swa.enable === "function") {
|
|
98
|
-
swa.enable();
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
disableUsageTracking: function() {
|
|
104
|
-
var swa = window['swa'];
|
|
105
|
-
if (swa && typeof swa.disable === "function") {
|
|
106
|
-
swa.disable();
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
_loadSWA: function() {
|
|
111
|
-
if (!this._oPromiseLoadSWA) {
|
|
112
|
-
this._oPromiseLoadSWA = new Promise(function(resolve, reject) {
|
|
113
|
-
var oSWAConfig = merge({}, this.SWA_CONFIG),
|
|
114
|
-
oDoc = document,
|
|
115
|
-
oNewScriptEl = oDoc.createElement('script'),
|
|
116
|
-
oFirstScriptEl = oDoc.getElementsByTagName('script')[0];
|
|
117
|
-
|
|
118
|
-
oNewScriptEl.type = 'text/javascript';
|
|
119
|
-
oNewScriptEl.defer = true;
|
|
120
|
-
oNewScriptEl.async = true;
|
|
121
|
-
oNewScriptEl.src = sap.ui.require.toUrl(this.SWA_TRACKER_URL);
|
|
122
|
-
window.addEventListener("swaLoadSuccess", function(){
|
|
123
|
-
resolve(window["swa"]);
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
oFirstScriptEl.parentNode.insertBefore(oNewScriptEl, oFirstScriptEl);
|
|
127
|
-
window["swa"] = oSWAConfig;
|
|
128
|
-
}.bind(this));
|
|
129
|
-
}
|
|
130
|
-
return this._oPromiseLoadSWA;
|
|
131
|
-
},
|
|
132
|
-
|
|
133
76
|
/**
|
|
134
77
|
* Opens the cookie settings dialog
|
|
135
78
|
* @public
|
|
@@ -79,24 +79,20 @@ sap.ui.define([
|
|
|
79
79
|
|
|
80
80
|
onAcceptAllCookies: function () {
|
|
81
81
|
this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, true);
|
|
82
|
-
this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, this._oModel.getProperty("/supportsUsageTracking"));
|
|
83
82
|
|
|
84
83
|
this._oCookieSettingsDialog.close();
|
|
85
84
|
},
|
|
86
85
|
|
|
87
86
|
onRejectAllCookies: function () {
|
|
88
87
|
this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, false);
|
|
89
|
-
this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, false);
|
|
90
88
|
|
|
91
89
|
this._oCookieSettingsDialog.close();
|
|
92
90
|
},
|
|
93
91
|
|
|
94
92
|
onSaveCookies: function() {
|
|
95
|
-
var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState()
|
|
96
|
-
bHasConsentFunctionalCookies = Core.byId("functionalCookiesSwitch").getState();
|
|
93
|
+
var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState();
|
|
97
94
|
|
|
98
95
|
this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, bHasConsentRequiredCookies);
|
|
99
|
-
this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, bHasConsentFunctionalCookies);
|
|
100
96
|
|
|
101
97
|
this._oCookieSettingsDialog.close();
|
|
102
98
|
},
|
|
@@ -130,21 +126,10 @@ sap.ui.define([
|
|
|
130
126
|
onCancelEditCookies: function() {
|
|
131
127
|
this._oCookieSettingsDialog.close();
|
|
132
128
|
Core.byId("requiredCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES) === "1");
|
|
133
|
-
Core.byId("functionalCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING) === "1");
|
|
134
129
|
},
|
|
135
130
|
|
|
136
131
|
_saveCookiePreference: function(sCookieName, bEnable) {
|
|
137
|
-
var sValue = bEnable ? "1" : "0"
|
|
138
|
-
sOldValue;
|
|
139
|
-
|
|
140
|
-
if (sCookieName === this._oCookieNames.ALLOW_USAGE_TRACKING) {
|
|
141
|
-
sOldValue = this._oCookiesUtil.getCookieValue(sCookieName);
|
|
142
|
-
|
|
143
|
-
if (sOldValue !== sValue) {
|
|
144
|
-
bEnable && this._oCookiesUtil.enableUsageTracking();
|
|
145
|
-
!bEnable && this._oCookiesUtil.disableUsageTracking();
|
|
146
|
-
}
|
|
147
|
-
}
|
|
132
|
+
var sValue = bEnable ? "1" : "0";
|
|
148
133
|
|
|
149
134
|
this._oCookiesUtil.setCookie(sCookieName, sValue);
|
|
150
135
|
this._oModel.setProperty("/" + sCookieName, sValue);
|
|
@@ -166,10 +151,8 @@ sap.ui.define([
|
|
|
166
151
|
// when the user opens the edit dialog for a first time, show the cookies enabled
|
|
167
152
|
// the user will then edit and save his choice
|
|
168
153
|
oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = "1";
|
|
169
|
-
oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = "1";
|
|
170
154
|
} else {
|
|
171
155
|
oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES);
|
|
172
|
-
oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING);
|
|
173
156
|
}
|
|
174
157
|
|
|
175
158
|
this._oModel.setData(oData, true /* merge */);
|
|
@@ -3,20 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
#XHED: The title of the dialog for configuring the cookie settings
|
|
5
5
|
COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
|
|
6
|
-
#XTXT: Summary note that explains why we use cookies
|
|
7
|
-
COOKIE_SETTINGS_DIALOG_SUMMARY = We use cookies and SAP Web Analytics to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
|
|
8
6
|
#XTXT: Title of the section about the required cookies used in the application
|
|
9
7
|
COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
|
|
10
8
|
#XTXT: Summary note that explains what are the required cookies in the application
|
|
11
9
|
COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_SUMMARY = These cookies are required to enable core site functionality.
|
|
12
10
|
#XTXT: Detailed note that explains why we use the required cookies in the application
|
|
13
11
|
COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT = We use cookies to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
|
|
14
|
-
#XTXT: Title of the section about the extra functional cookies used in the application
|
|
15
|
-
COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TITLE = Functional Cookies
|
|
16
|
-
#XTXT: Summary note that explains what are the functional cookies in the application
|
|
17
|
-
COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SUMMARY = These cookies are used to analyse site usage for the purpose of measuring and improving site performance.
|
|
18
|
-
#XTXT: Detailed note that explains why we use the functional cookies in the application
|
|
19
|
-
COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT = This site uses SAP Web Analytics to analyze how users use this site. The information generated (including a part of your IP address and a browser ID) will be transmitted to and stored by SAP on its servers. Cookies are used to identify your repeat visit and your visit origin page. We will use this information only for the purpose of evaluating website usage and compiling reports on website activity for website operators - and finally, to improve the site. If you would like to opt-in for SAP Web Analytics tracking, please specify your preference using the "On"/"Off" switch above. By opt-in, you consent to the processing of analytics data about you in the manner and for the purposes set out above.
|
|
20
12
|
#XTXT: Title of the panel that contains more detailed information
|
|
21
13
|
COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_MORE_INFO = More Info
|
|
22
14
|
#XTXT: Title of the button to accept all cookies
|
package/src/sap/ui/documentation/sdk/cookieSettingsDialog/view/CookieSettingsDialog.fragment.xml
CHANGED
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
<Dialog title="{i18n>COOKIE_SETTINGS_DIALOG_TITLE}" contentWidth="45rem">
|
|
8
8
|
<content>
|
|
9
9
|
<html:div class="sapUiSmallMargin">
|
|
10
|
-
<Text text="{i18n>COOKIE_SETTINGS_DIALOG_SUMMARY}"
|
|
11
|
-
visible="{= !${cookieData>/showCookieDetails} && ${cookieData>/supportsUsageTracking} }"/>
|
|
12
10
|
<Text text="{i18n>COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT}"
|
|
13
|
-
visible="{= !${cookieData>/showCookieDetails}
|
|
11
|
+
visible="{= !${cookieData>/showCookieDetails} }"/>
|
|
14
12
|
<f:GridList visible="{cookieData>/showCookieDetails}">
|
|
15
13
|
<f:customLayout>
|
|
16
14
|
<grid:GridBasicLayout gridTemplateColumns="1fr" gridGap="1rem"/>
|
|
@@ -28,20 +26,6 @@
|
|
|
28
26
|
<Text text="{i18n>COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT}"/>
|
|
29
27
|
</Panel>
|
|
30
28
|
</f:GridListItem>
|
|
31
|
-
|
|
32
|
-
<f:GridListItem>
|
|
33
|
-
<HBox justifyContent="SpaceBetween" class="sapUiSmallMarginBeginEnd sapUiSmallMarginTop">
|
|
34
|
-
<VBox>
|
|
35
|
-
<Title text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TITLE}"/>
|
|
36
|
-
<Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SUMMARY}"/>
|
|
37
|
-
</VBox>
|
|
38
|
-
<Switch id="functionalCookiesSwitch" class="sapUiSmallMarginBegin"
|
|
39
|
-
state="{path: 'cookieData>/dk_allow_usage_tracking', type: 'sap.ui.model.type.Boolean', formatter: '.formatCookieValue'}"/>
|
|
40
|
-
</HBox>
|
|
41
|
-
<Panel headerText="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_MORE_INFO}" expandable="true" class="sapUiTinyMarginTop">
|
|
42
|
-
<Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT}"/>
|
|
43
|
-
</Panel>
|
|
44
|
-
</f:GridListItem>
|
|
45
29
|
</f:GridList>
|
|
46
30
|
</html:div>
|
|
47
31
|
</content>
|
|
@@ -51,7 +35,7 @@
|
|
|
51
35
|
<OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
52
36
|
</layoutData>
|
|
53
37
|
</Button>
|
|
54
|
-
<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SET_PREFERENCES}" id="btnSetPreferences" type="Ghost" press="showCookieDetails" visible="{= !${cookieData>/showCookieDetails} && ${cookieData>/
|
|
38
|
+
<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SET_PREFERENCES}" id="btnSetPreferences" type="Ghost" press="showCookieDetails" visible="{= !${cookieData>/showCookieDetails} && ${cookieData>/enableAdvancedSettings} }"></Button>
|
|
55
39
|
<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_REJECT_ALL}" press="onRejectAllCookies" visible="{=! ${cookieData>/showCookieDetails} }">
|
|
56
40
|
<layoutData>
|
|
57
41
|
<OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
@@ -214,11 +214,6 @@ html:not(.sapUiMedia-StdExt-Phone) .sapUiDocumentationFooter {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
/********************************************* Header navigation on phone *********************************************/
|
|
217
|
-
.sapUiMedia-Std-Phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect,
|
|
218
|
-
.sap-phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect {
|
|
219
|
-
height: 3rem;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
217
|
.sapUiTheme-sap_fiori_3 .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect,
|
|
223
218
|
.sapUiTheme-sap_fiori_3_dark .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect,
|
|
224
219
|
.sapUiTheme-sap_fiori_3 .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltArrow,
|
|
@@ -273,11 +268,6 @@ html.sap-desktop .sapContrast.sapMSlt.sapUiDocumentationSelect:not(.sapMSltExpan
|
|
|
273
268
|
outline: none;
|
|
274
269
|
}
|
|
275
270
|
|
|
276
|
-
.sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltLabel,
|
|
277
|
-
.sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltArrow {
|
|
278
|
-
line-height: 2.7rem;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
271
|
/* Menu Select`s label */
|
|
282
272
|
.sapUiTheme-sap_fiori_3 .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltLabel,
|
|
283
273
|
.sapUiTheme-sap_fiori_3_dark .sapTntToolHeader .sapMSlt.menuSelect.sapUiDocumentationSelect .sapMSltLabel {
|
|
@@ -295,11 +285,6 @@ html.sap-desktop .sapContrast.sapMSlt.sapUiDocumentationSelect:not(.sapMSltExpan
|
|
|
295
285
|
}
|
|
296
286
|
|
|
297
287
|
/* Menu Select`s arrow color on press */
|
|
298
|
-
:not(.sapUiTheme-sap_fiori_3) .sapTntToolHeader .sapMSlt.sapMSltPressed > .sapMSltArrow::before,
|
|
299
|
-
:not(.sapUiTheme-sap_fiori_3_dark) .sapTntToolHeader .sapMSlt.sapMSltPressed > .sapMSltArrow::before {
|
|
300
|
-
color: #cae4fb;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
288
|
.sapUiTheme-sap_fiori_3_hcb .sapTntToolHeader .sapMSlt.sapMSltPressed > .sapMSltArrow::before,
|
|
304
289
|
.sapUiTheme-sap_belize_hcb .sapTntToolHeader .sapMSlt.sapMSltPressed > .sapMSltArrow::before {
|
|
305
290
|
color: #fff;
|
|
@@ -327,18 +312,26 @@ html.sap-desktop .sapContrast.sapMSlt.sapUiDocumentationSelect:not(.sapMSltExpan
|
|
|
327
312
|
|
|
328
313
|
/* Topics - dynamic page */
|
|
329
314
|
.sapUiDocumentationTopicTitle {
|
|
330
|
-
font-size:
|
|
315
|
+
font-size: 2rem;
|
|
316
|
+
font-family: "72Black", "72", "72full", Arial, Helvetica, sans-serif;
|
|
331
317
|
}
|
|
332
318
|
|
|
333
|
-
|
|
334
|
-
font-size: 1.
|
|
319
|
+
.sapUiMedia-Std-Phone .sapUiDocumentationTopicTitle {
|
|
320
|
+
font-size: 1.5rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.sapFDynamicPage:not(.sapFDynamicPage-Std-Phone):not(.sapFDynamicPage-Std-Desktop-XL)
|
|
324
|
+
.sapFDynamicPageHeader.sapFDynamicPageHeaderWithContent {
|
|
325
|
+
padding-left: 2rem;
|
|
326
|
+
padding-right: 2rem;
|
|
335
327
|
}
|
|
336
328
|
|
|
337
|
-
.
|
|
338
|
-
|
|
329
|
+
.sapUiTheme-sap_horizon .sapFDynamicPageHeader.sapFDynamicPageHeaderWithContent .sapMText {
|
|
330
|
+
color: #556b82;
|
|
339
331
|
}
|
|
340
|
-
|
|
341
|
-
|
|
332
|
+
|
|
333
|
+
.sapUiTheme-sap_horizon_dark .sapFDynamicPageHeader.sapFDynamicPageHeaderWithContent .sapMText {
|
|
334
|
+
color: #8396a8;
|
|
342
335
|
}
|
|
343
336
|
|
|
344
337
|
.sapUiDocumentation2ColumnsEqualTable {
|
|
@@ -349,6 +342,14 @@ html.sap-phone .sapUiDocumentationTopicTitle {
|
|
|
349
342
|
font-size: 1.25rem !important;
|
|
350
343
|
}
|
|
351
344
|
|
|
345
|
+
.sapUiDocumentationVisibilityInformationText {
|
|
346
|
+
margin: 0.375rem;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.sapUiDocumentationVisibilityInformationIcon {
|
|
350
|
+
margin-left: 0.375rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
352
353
|
.sapUiBody#content {
|
|
353
354
|
padding-left: 0; /* overrides the padding of documentation */
|
|
354
355
|
}
|
|
@@ -1848,4 +1849,17 @@ html[dir="rtl"] .sapUiDemoKitTreeItemIcon {
|
|
|
1848
1849
|
.sapUiDemokit .sapUiHomePage .sapMTitleStyleH1,
|
|
1849
1850
|
.sapUiDemokit .sapUiDemoApps .sapMTitleStyleH1 {
|
|
1850
1851
|
font-size: 1.625rem;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
html.sap-desktop .sapMFocus > .sapMSFF::before {
|
|
1855
|
+
border: 0.125rem solid #0070f2 !important;
|
|
1856
|
+
position: absolute;
|
|
1857
|
+
content: " ";
|
|
1858
|
+
top: 0;
|
|
1859
|
+
right: 0;
|
|
1860
|
+
left: 0;
|
|
1861
|
+
bottom: 0;
|
|
1862
|
+
border-radius: inherit;
|
|
1863
|
+
z-index: 2;
|
|
1864
|
+
pointer-events: none;
|
|
1851
1865
|
}
|
|
Binary file
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
*/
|
|
43
43
|
libraryLink: function (sNamespace) {
|
|
44
44
|
if (sNamespace && sNamespace.search("sap\\.") === 0) {
|
|
45
|
-
return this.formatter.crossLink("
|
|
45
|
+
return this.formatter.crossLink("api/" + sNamespace);
|
|
46
46
|
} else {
|
|
47
47
|
return "";
|
|
48
48
|
}
|
|
@@ -18,8 +18,19 @@ sap.ui.define([
|
|
|
18
18
|
|
|
19
19
|
// function to compute the app objects for a demo object
|
|
20
20
|
function createDemoAppData(oDemoAppMetadata, sLibUrl, sLibNamespace) {
|
|
21
|
+
|
|
22
|
+
//Define the default Demo Kit theme
|
|
23
|
+
var DEFAULT_THEME = sap.ui.getCore().getConfiguration().getTheme();
|
|
24
|
+
|
|
21
25
|
// transform simple demo app link to a configuration object
|
|
22
|
-
var aLinks = []
|
|
26
|
+
var aLinks = [],
|
|
27
|
+
sRef = oDemoAppMetadata.ref;
|
|
28
|
+
//Attach theme parameter to Demo app link
|
|
29
|
+
if (sRef.indexOf("#") > 0) {
|
|
30
|
+
sRef = sRef.slice(0, sRef.indexOf("#")) + "?sap-ui-theme=" + DEFAULT_THEME + sRef.slice(sRef.indexOf("#"));
|
|
31
|
+
} else {
|
|
32
|
+
sRef = sRef + "?sap-ui-theme=" + DEFAULT_THEME;
|
|
33
|
+
}
|
|
23
34
|
// transform link object to a bindable array of objects
|
|
24
35
|
if (isPlainObject(oDemoAppMetadata.links)) {
|
|
25
36
|
aLinks = Object.keys(oDemoAppMetadata.links).map(function (sKey) {
|
|
@@ -38,7 +49,7 @@ sap.ui.define([
|
|
|
38
49
|
config : oDemoAppMetadata.config,
|
|
39
50
|
teaser : oDemoAppMetadata.teaser,
|
|
40
51
|
category : oDemoAppMetadata.category,
|
|
41
|
-
ref : (oDemoAppMetadata.resolve === "lib" ? sLibUrl : "") +
|
|
52
|
+
ref : (oDemoAppMetadata.resolve === "lib" ? sLibUrl : "") + sRef,
|
|
42
53
|
links : aLinks
|
|
43
54
|
};
|
|
44
55
|
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
<MenuItem icon="sap-icon://tree" text="{i18n>APP_INFORMATION_BTN_SITEMAP}" key="sitemap" visible="{versionData>/isOpenUI5}"/>
|
|
149
149
|
<MenuItem icon="sap-icon://hello-world" text="{i18n>APP_SETTINGS_DIALOG_LANGUAGE}" key="settings"/>
|
|
150
150
|
<MenuItem icon="sap-icon://customize" text="{i18n>APP_SETTINGS_DIALOG_COOKIE_PREFERENCES}" key="cookie_preferences"
|
|
151
|
-
visible="{= ${versionData>/
|
|
151
|
+
visible="{= ${versionData>/enableAdvancedCookieSettings}}"/>
|
|
152
152
|
</items>
|
|
153
153
|
</Menu>
|
|
154
154
|
</menu>
|
|
@@ -280,8 +280,16 @@
|
|
|
280
280
|
<m:Text text="{defaultValue}"/>
|
|
281
281
|
<layout:VerticalLayout width="100%">
|
|
282
282
|
<custom:JSDocText sanitizeContent="false" text="{description}"/>
|
|
283
|
-
<
|
|
284
|
-
|
|
283
|
+
<layout:HorizontalLayout width="100%">
|
|
284
|
+
<m:ObjectStatus text="Visibility: {parts : [{path : 'visibility'}, {path : 'allowedFor'}], formatter : 'sap.ui.documentation.sdk.model.formatter.formatVisibility'}"
|
|
285
|
+
state="{= ${visibility} === 'public' ? 'Success' : 'Warning'}"/>
|
|
286
|
+
<core:Icon
|
|
287
|
+
src="sap-icon://sys-help-2"
|
|
288
|
+
color="#286eb4"
|
|
289
|
+
class="sapUiDocumentationVisibilityInformationIcon"
|
|
290
|
+
press="onVisibilityInformationClick">
|
|
291
|
+
</core:Icon>
|
|
292
|
+
</layout:HorizontalLayout>
|
|
285
293
|
<m:MessageStrip
|
|
286
294
|
visible="{=${deprecatedText} !== undefined}"
|
|
287
295
|
text="{deprecatedText}"
|
|
@@ -474,9 +482,16 @@
|
|
|
474
482
|
|
|
475
483
|
<custom:JSDocText sanitizeContent="false" text="{path: 'event>description', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"/>
|
|
476
484
|
|
|
477
|
-
<
|
|
485
|
+
<layout:HorizontalLayout width="100%">
|
|
486
|
+
<m:ObjectStatus text="Visibility: {parts : [{path : 'event>visibility'}, {path : 'event>allowedFor'}], formatter : 'sap.ui.documentation.sdk.model.formatter.formatVisibility'}"
|
|
478
487
|
state="{= ${event>visibility} === 'public' ? 'Success' : 'Warning'}" class="sapUiSmallMarginBottom"/>
|
|
479
|
-
|
|
488
|
+
<core:Icon
|
|
489
|
+
src="sap-icon://sys-help-2"
|
|
490
|
+
color="#286eb4"
|
|
491
|
+
class="sapUiDocumentationVisibilityInformationIcon"
|
|
492
|
+
press="onVisibilityInformationClick">
|
|
493
|
+
</core:Icon>
|
|
494
|
+
</layout:HorizontalLayout>
|
|
480
495
|
<template:if test="{=${event>deprecated} !== undefined}">
|
|
481
496
|
<m:MessageStrip
|
|
482
497
|
text="{event>deprecatedText}"
|
|
@@ -584,9 +599,17 @@
|
|
|
584
599
|
</layout:VerticalLayout>
|
|
585
600
|
|
|
586
601
|
<m:FlexBox class="sapUiTinyMarginBottom">
|
|
602
|
+
<layout:HorizontalLayout width="100%">
|
|
587
603
|
<m:ObjectStatus text="Visibility: {parts : [{path : 'method>visibility'}, {path : 'method>allowedFor'}], formatter : 'sap.ui.documentation.sdk.model.formatter.formatVisibility'}"
|
|
588
|
-
state="{= ${method>visibility} === 'public' ? 'Success' : 'Warning'}"
|
|
604
|
+
state="{= ${method>visibility} === 'public' ? 'Success' : 'Warning'}"/>
|
|
605
|
+
<core:Icon
|
|
606
|
+
src="sap-icon://sys-help-2"
|
|
607
|
+
color="#286eb4"
|
|
608
|
+
class="sapUiDocumentationVisibilityInformationIcon sapUiTinyMarginEnd"
|
|
609
|
+
press="onVisibilityInformationClick">
|
|
610
|
+
</core:Icon>
|
|
589
611
|
<m:ObjectStatus visible="{=${method>since} !== undefined}" text="Since: {method>since}"/>
|
|
612
|
+
</layout:HorizontalLayout>
|
|
590
613
|
</m:FlexBox>
|
|
591
614
|
<template:if test="{=${method>deprecated} !== undefined}">
|
|
592
615
|
<m:MessageStrip
|
|
@@ -609,7 +632,7 @@
|
|
|
609
632
|
</m:MessageStrip>
|
|
610
633
|
</template:if>
|
|
611
634
|
|
|
612
|
-
<custom:JSDocText text="{method>code}" />
|
|
635
|
+
<custom:JSDocText text="{path: 'method>code', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}" />
|
|
613
636
|
|
|
614
637
|
<template:if test="{= !!${method>parameters} && ${method>parameters}.length > 0}">
|
|
615
638
|
<custom:LightTable
|
|
@@ -647,7 +670,7 @@
|
|
|
647
670
|
<custom:Row>
|
|
648
671
|
<layout:VerticalLayout class="sapUiDocumentationOrList" width="100%">
|
|
649
672
|
<template:repeat list="{method>returnValue/types}" var="rtype">
|
|
650
|
-
<m:Link text="{rtype>value}"
|
|
673
|
+
<m:Link text="{path: 'rtype>value', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"
|
|
651
674
|
href="{rtype>href}"
|
|
652
675
|
enabled="{= !!${rtype>linkEnabled} }"/>
|
|
653
676
|
</template:repeat>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:layout="sap.ui.layout">
|
|
5
|
+
<Popover
|
|
6
|
+
id="visibilityInformationPopover"
|
|
7
|
+
placement="Right"
|
|
8
|
+
showHeader="false">
|
|
9
|
+
<FormattedText class="sapUiDocumentationVisibilityInformationText"
|
|
10
|
+
htmlText="For more information about different API types click <a href='topic/b0d5fe2f1b0b497cbd67cd5a1d35fa4c'>here</a>" />
|
|
11
|
+
</Popover>
|
|
12
|
+
</core:FragmentDefinition>
|
|
@@ -6,4 +6,11 @@
|
|
|
6
6
|
.sapUxAPObjectPageSectionContainer .sapUxAPObjectPageSubSection .sapUxAPBlockContainer {
|
|
7
7
|
padding: 1rem;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
.sapUiDemokit .sapUxAPObjectPageLayout-Std-Phone .sapUxAPObjectPageSection
|
|
11
|
+
.sapUxAPObjectPageSectionContainer .sapUxAPObjectPageSubSection .sapUxAPBlockContainer {
|
|
12
|
+
margin-left: 1rem;
|
|
13
|
+
margin-right: 1rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
}
|