@openui5/sap.ui.documentation 1.99.1 → 1.102.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/.eslintrc.json +17 -0
- package/THIRDPARTY.txt +5 -5
- package/package.json +6 -6
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/TitleLink.js +1 -2
- package/src/sap/ui/documentation/library.js +14 -18
- package/src/sap/ui/documentation/messagebundle.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_ar.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_bg.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ca.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_cs.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_cy.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_da.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_de.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_el.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_en.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_en_GB.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +2 -1
- package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +43 -10
- package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_es.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_es_MX.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_et.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_fi.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_fr.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_fr_CA.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_hi.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_hr.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_hu.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_id.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_it.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_iw.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ja.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_kk.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ko.properties +4 -2
- package/src/sap/ui/documentation/messagebundle_lt.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_lv.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ms.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_nl.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_no.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_pl.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_pt.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_pt_PT.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ro.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_ru.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_sh.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_sk.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_sl.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_sv.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_th.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_tr.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_uk.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_vi.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_zh_CN.properties +3 -1
- package/src/sap/ui/documentation/messagebundle_zh_TW.properties +16 -14
- package/src/sap/ui/documentation/sdk/Component.js +1 -5
- package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +7 -13
- package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -3
- package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +0 -2
- package/src/sap/ui/documentation/sdk/controller/App.controller.js +0 -2
- package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Code.controller.js +11 -6
- package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +11 -15
- package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -2
- package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +1 -2
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +181 -303
- package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +3 -4
- package/src/sap/ui/documentation/sdk/controller/SearchPage.controller.js +4 -5
- package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +8 -9
- package/src/sap/ui/documentation/sdk/controller/TermsOfUse.controller.js +3 -2
- package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +17 -19
- package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +2 -2
- package/src/sap/ui/documentation/sdk/controller/VersionNotFound.controller.js +2 -0
- package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +3 -3
- package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +3 -4
- package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +7 -6
- package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/DataTableHelper.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ResourceDownloadUtil.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +5 -0
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDown.js +0 -2
- package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRange.js +2 -4
- package/src/sap/ui/documentation/sdk/controller/util/overlay/Overlay.js +1 -1
- package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +1 -2
- package/src/sap/ui/documentation/sdk/images/tools/AccessibilityGuide.png +0 -0
- package/src/sap/ui/documentation/sdk/index.html +196 -25
- package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
- package/src/sap/ui/documentation/sdk/model/libraryData.js +18 -4
- package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +8 -4
- package/src/sap/ui/documentation/sdk/util/Resources.js +5 -2
- package/src/sap/ui/documentation/sdk/view/Sample.view.xml +2 -2
- package/src/sap/ui/documentation/sdk/view/Tools.view.xml +19 -0
- package/src/sap/ui/documentation/themes/sap_horizon_dark/library.source.less +9 -0
- package/src/sap/ui/documentation/themes/sap_horizon_hcb/library.source.less +9 -0
- package/src/sap/ui/documentation/themes/sap_horizon_hcw/library.source.less +9 -0
|
@@ -4,15 +4,24 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define([
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/documentation/library",
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/base/util/extend",
|
|
11
|
+
"sap/base/util/isPlainObject"
|
|
12
|
+
],function(library, Log, extend, isPlainObject) {
|
|
8
13
|
"use strict";
|
|
9
14
|
|
|
15
|
+
var IGNORED_GATEGORIES = {
|
|
16
|
+
Template: "Template"
|
|
17
|
+
};
|
|
18
|
+
|
|
10
19
|
// function to compute the app objects for a demo object
|
|
11
20
|
function createDemoAppData(oDemoAppMetadata, sLibUrl, sLibNamespace) {
|
|
12
21
|
// transform simple demo app link to a configuration object
|
|
13
22
|
var aLinks = [];
|
|
14
23
|
// transform link object to a bindable array of objects
|
|
15
|
-
if (
|
|
24
|
+
if (isPlainObject(oDemoAppMetadata.links)) {
|
|
16
25
|
aLinks = Object.keys(oDemoAppMetadata.links).map(function (sKey) {
|
|
17
26
|
return {
|
|
18
27
|
name: sKey,
|
|
@@ -52,7 +61,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
52
61
|
* }
|
|
53
62
|
*
|
|
54
63
|
* Under path /demoApps the following properties can be found: lib, name, icon, desc, type, ref
|
|
55
|
-
* Under path /
|
|
64
|
+
* Under path /demoAppsByCategory the apps are structured by the entry "category" and grouped in batches
|
|
56
65
|
* of 4 items so that they can be bound to the BlockLayoutRow control directly
|
|
57
66
|
* @param {array} aLibs an array of the currently loaded UI5 libraries
|
|
58
67
|
* @param {object} oDocIndicies an object of the currently loaded UI5 library docu metadata
|
|
@@ -86,6 +95,11 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
86
95
|
if (oDemo.links && oDemo.links.length > 0) {
|
|
87
96
|
for (var j = 0; j < oDemo.links.length; j++) {
|
|
88
97
|
var oDemoAppData = createDemoAppData(oDemo.links[j], oDocIndicies[aLibs[i]].libraryUrl, oDemo.text);
|
|
98
|
+
|
|
99
|
+
if (IGNORED_GATEGORIES[oDemoAppData.category]) {
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
|
|
89
103
|
oData.demoApps.push(oDemoAppData);
|
|
90
104
|
|
|
91
105
|
// push demo app into helper structure
|
|
@@ -152,7 +166,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
|
|
|
152
166
|
|
|
153
167
|
// set model
|
|
154
168
|
var oModelData = oModel.getData();
|
|
155
|
-
oModel.setData(
|
|
169
|
+
oModel.setData(extend(oModelData, createModelData(aLibs, oDocIndicies)));
|
|
156
170
|
}
|
|
157
171
|
|
|
158
172
|
// load and process all lib info
|
|
@@ -175,10 +175,14 @@ sap.ui.define([
|
|
|
175
175
|
* @private
|
|
176
176
|
*/
|
|
177
177
|
_destroySampleComponent: function () {
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
var oSample = this._getOwnerComponent()._oCurrentOpenedSample;
|
|
179
|
+
if (oSample) {
|
|
180
|
+
oSample.getDomRef().contentWindow.postMessage({
|
|
181
|
+
type: "EXIT",
|
|
182
|
+
data: {
|
|
183
|
+
"msg": "Destroy the container"
|
|
184
|
+
}
|
|
185
|
+
}, this._getOwnerComponent()._sSampleIframeOrigin);
|
|
182
186
|
}
|
|
183
187
|
}
|
|
184
188
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
if (oUri && oUri.is("absolute")) {
|
|
31
31
|
return sPath;
|
|
32
32
|
}
|
|
33
|
-
sOrigin = this.getConfig()
|
|
33
|
+
sOrigin = this.getConfig();
|
|
34
34
|
|
|
35
35
|
return sOrigin + sVersionPrefixPath + this._formatPath(sPath);
|
|
36
36
|
},
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
return this.getHasProxy() && window.sessionStorage.getItem("versionPrefixPath") || "";
|
|
43
43
|
},
|
|
44
44
|
getConfig: function() {
|
|
45
|
-
return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin;
|
|
45
|
+
return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin || ".";
|
|
46
|
+
},
|
|
47
|
+
getResourceOrigin: function() {
|
|
48
|
+
return this.getConfig().replace("/sapui5", "").replace("/openui5", "");
|
|
46
49
|
},
|
|
47
50
|
_formatPath: function(sPath) {
|
|
48
51
|
sPath = sPath.replace(/^\.\//, '/');
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
class="sapUiHideOnPhone"
|
|
62
62
|
tooltip="{i18n>SAMPLE_ADAPT_BTN_TOOLTIP}"
|
|
63
63
|
press="onToggleAdaptationMode"
|
|
64
|
-
visible="{= ${/rtaLoaded}}" />
|
|
64
|
+
visible="{= ${/rtaLoaded} && !${/iframe} }" />
|
|
65
65
|
<Button
|
|
66
66
|
id="code"
|
|
67
67
|
icon="sap-icon://syntax"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
icon="sap-icon://inspect"
|
|
74
74
|
press="onNewTab" />
|
|
75
75
|
<Button id="sampleSettings"
|
|
76
|
-
visible="{= ${/showSettings}}"
|
|
76
|
+
visible="{= ${/showSettings} && !${/iframe} }"
|
|
77
77
|
icon="sap-icon://action-settings"
|
|
78
78
|
press="handleSettings" />
|
|
79
79
|
<Button
|
|
@@ -427,6 +427,25 @@
|
|
|
427
427
|
</VBox>
|
|
428
428
|
</f:content>
|
|
429
429
|
</f:Card>
|
|
430
|
+
<!-- Accessibility Guide -->
|
|
431
|
+
<f:Card class="threeColumnLayoutCard" visible="{=! (${device>/system/phone} || ${device>/browser/msie}) }">
|
|
432
|
+
<f:content>
|
|
433
|
+
<VBox justifyContent="SpaceBetween">
|
|
434
|
+
<VBox class="sapUiSmallMargin toolspageCardInfo">
|
|
435
|
+
<html:div class="sapUIDisclaimerLink sapUiSmallMarginBottom">
|
|
436
|
+
<custom:TitleLink
|
|
437
|
+
level="H1"
|
|
438
|
+
titleStyle="H1"
|
|
439
|
+
text="{/accessibilityGuide/text}"
|
|
440
|
+
href="{/accessibilityGuide/href}"
|
|
441
|
+
target="_blank"/>
|
|
442
|
+
</html:div>
|
|
443
|
+
<Text class="sapUiSmallMarginBottom" text="{i18n>TOOLS_CARD_15_TEXT}" />
|
|
444
|
+
</VBox>
|
|
445
|
+
<Image src="./resources/sap/ui/documentation/sdk/images/tools/AccessibilityGuide.png" class="toolsPageImage" alt="{i18n>TOOLS_CARD_15_IMG_ALT}"/>
|
|
446
|
+
</VBox>
|
|
447
|
+
</f:content>
|
|
448
|
+
</f:Card>
|
|
430
449
|
</l:Grid>
|
|
431
450
|
<l:BlockLayout>
|
|
432
451
|
<l:BlockLayoutRow>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@import "../base/library.source.less";
|
|
8
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_dark/base.less";
|
|
9
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_dark/global.less";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@import "../base/library.source.less";
|
|
8
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_hcb/base.less";
|
|
9
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_hcb/global.less";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@import "../base/library.source.less";
|
|
8
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_hcw/base.less";
|
|
9
|
+
@import "../../../../../sap/ui/core/themes/sap_horizon_hcw/global.less";
|