@openui5/sap.ui.documentation 1.104.0 → 1.105.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.
- 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/sdk/Component.js +9 -11
- 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 -3
- 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/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/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.0",
|
|
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.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.105.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.105.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.105.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.105.0"
|
|
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.0</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.0
|
|
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.0',
|
|
35
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
36
36
|
types: [],
|
|
37
37
|
interfaces: [],
|
|
@@ -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
|
},
|
|
@@ -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", {
|
|
@@ -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];
|
|
@@ -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
|
|
|
@@ -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
|
}
|