@openui5/sap.ui.documentation 1.98.0 → 1.101.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 +6 -6
- 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/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 +1 -3
- package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/Code.controller.js +9 -3
- 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 +187 -310
- 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 +24 -26
- 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/config/sampleForwardingConfig.js +40 -0
- 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/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/index.html +199 -28
- package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
- package/src/sap/ui/documentation/sdk/model/libraryData.js +9 -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/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
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
/*
|
|
4
|
+
* Productive code, sample and unit test code of sap.ui.documentation has been cleaned up.
|
|
5
|
+
* No more references to the global jQuery allowed
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"src/**/*.js",
|
|
10
|
+
"test/sap/ui/documentation/sdk/**/*.js"
|
|
11
|
+
],
|
|
12
|
+
"globals": {
|
|
13
|
+
"jQuery": "off"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
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.
|
|
200
|
+
Component: URI.js, version: 1.19.10
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.38
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.documentation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.101.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.101.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.101.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.101.0",
|
|
20
|
+
"@openui5/themelib_sap_belize": "1.101.0",
|
|
21
|
+
"@openui5/themelib_sap_fiori_3": "1.101.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.101.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library for the Demokit 2.0.</documentation>
|
|
12
12
|
|
|
@@ -8,9 +8,8 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/core/Renderer",
|
|
9
9
|
"sap/ui/util/defaultLinkTypes",
|
|
10
10
|
'sap/ui/Device',
|
|
11
|
-
'sap/m/Toolbar',
|
|
12
11
|
'sap/m/Title'
|
|
13
|
-
], function(coreLibrary, Renderer, defaultLinkTypes, Device,
|
|
12
|
+
], function(coreLibrary, Renderer, defaultLinkTypes, Device, Title) {
|
|
14
13
|
"use strict";
|
|
15
14
|
|
|
16
15
|
// shortcut for sap.ui.core.TitleLevel
|
|
@@ -12,18 +12,26 @@ sap.ui.define([
|
|
|
12
12
|
'sap/ui/core/util/LibraryInfo',
|
|
13
13
|
"sap/base/Log",
|
|
14
14
|
"sap/ui/documentation/sdk/util/Resources",
|
|
15
|
-
"sap/base/util/Version",
|
|
16
15
|
'sap/ui/core/library',
|
|
17
16
|
'sap/m/library'
|
|
18
17
|
], // library dependency
|
|
19
|
-
function(jQuery, LibraryInfo, Log, ResourcesUtil
|
|
18
|
+
function(jQuery, LibraryInfo, Log, ResourcesUtil) {
|
|
20
19
|
|
|
21
20
|
'use strict';
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
/**
|
|
23
|
+
* SAPUI5 library with controls specialized for administrative applications.
|
|
24
|
+
*
|
|
25
|
+
* @namespace
|
|
26
|
+
* @alias sap.ui.documentation
|
|
27
|
+
* @author SAP SE
|
|
28
|
+
* @version 1.101.0
|
|
29
|
+
* @since 1.48
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
var thisLibrary = sap.ui.getCore().initLibrary({
|
|
25
33
|
name : 'sap.ui.documentation',
|
|
26
|
-
version: '1.
|
|
34
|
+
version: '1.101.0',
|
|
27
35
|
dependencies : ['sap.ui.core','sap.m'],
|
|
28
36
|
types: [],
|
|
29
37
|
interfaces: [],
|
|
@@ -43,18 +51,6 @@ sap.ui.define([
|
|
|
43
51
|
]
|
|
44
52
|
});
|
|
45
53
|
|
|
46
|
-
/**
|
|
47
|
-
* SAPUI5 library with controls specialized for administrative applications.
|
|
48
|
-
*
|
|
49
|
-
* @namespace
|
|
50
|
-
* @name sap.ui.documentation
|
|
51
|
-
* @author SAP SE
|
|
52
|
-
* @version 1.98.0
|
|
53
|
-
* @since 1.48
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
var thisLibrary = sap.ui.documentation;
|
|
57
|
-
|
|
58
54
|
var _libraryInfoSingleton;
|
|
59
55
|
|
|
60
56
|
var DocumentationLibraryInfo = LibraryInfo.extend("sap.ui.documentation.DocumentationLibraryInfo", {});
|
|
@@ -75,7 +71,7 @@ sap.ui.define([
|
|
|
75
71
|
};
|
|
76
72
|
|
|
77
73
|
thisLibrary._getAppInfo = function(fnCallback) {
|
|
78
|
-
var sUrl = sap.ui.
|
|
74
|
+
var sUrl = sap.ui.require.toUrl("sap-ui-version.json");
|
|
79
75
|
sUrl = ResourcesUtil.getResourceOriginPath(sUrl);
|
|
80
76
|
|
|
81
77
|
jQuery.ajax({
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/thirdparty/jquery",
|
|
9
9
|
"sap/ui/core/UIComponent",
|
|
10
|
-
"sap/ui/VersionInfo",
|
|
11
10
|
"sap/ui/Device",
|
|
12
11
|
"sap/ui/documentation/sdk/model/models",
|
|
13
12
|
"sap/ui/documentation/sdk/controller/ErrorHandler",
|
|
@@ -15,7 +14,6 @@ sap.ui.define([
|
|
|
15
14
|
"sap/ui/documentation/sdk/controller/util/ConfigUtil",
|
|
16
15
|
"sap/base/util/Version",
|
|
17
16
|
"sap/ui/documentation/sdk/util/Resources",
|
|
18
|
-
"sap/base/Log",
|
|
19
17
|
// used via manifest.json
|
|
20
18
|
"sap/ui/documentation/sdk/util/DocumentationRouter",
|
|
21
19
|
// implements sap.m.TablePopin
|
|
@@ -23,15 +21,13 @@ sap.ui.define([
|
|
|
23
21
|
], function(
|
|
24
22
|
jQuery,
|
|
25
23
|
UIComponent,
|
|
26
|
-
VersionInfo,
|
|
27
24
|
Device,
|
|
28
25
|
models,
|
|
29
26
|
ErrorHandler,
|
|
30
27
|
JSONModel,
|
|
31
28
|
ConfigUtil,
|
|
32
29
|
Version,
|
|
33
|
-
ResourcesUtil,
|
|
34
|
-
Log /*, DocumentationRouter, ColumnListItem*/
|
|
30
|
+
ResourcesUtil /*, DocumentationRouter, ColumnListItem*/
|
|
35
31
|
) {
|
|
36
32
|
"use strict";
|
|
37
33
|
|
|
@@ -5,26 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"sap/ui/core/mvc/XMLView",
|
|
16
|
-
"sap/ui/core/library",
|
|
17
|
-
"sap/base/Log"
|
|
8
|
+
"sap/ui/documentation/sdk/controller/BaseController",
|
|
9
|
+
"sap/ui/model/json/JSONModel",
|
|
10
|
+
"sap/ui/core/CustomData",
|
|
11
|
+
"sap/ui/documentation/sdk/controller/util/APIInfo",
|
|
12
|
+
"sap/ui/documentation/sdk/model/formatter",
|
|
13
|
+
"sap/ui/core/mvc/XMLView",
|
|
14
|
+
"sap/base/Log"
|
|
18
15
|
], function(
|
|
19
16
|
BaseController,
|
|
20
17
|
JSONModel,
|
|
21
18
|
CustomData,
|
|
22
|
-
ControlsInfo,
|
|
23
|
-
ToggleFullScreenHandler,
|
|
24
19
|
APIInfo,
|
|
25
20
|
formatter,
|
|
26
21
|
XMLView,
|
|
27
|
-
CoreLibrary,
|
|
28
22
|
Log
|
|
29
23
|
) {
|
|
30
24
|
"use strict";
|
package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js
CHANGED
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/thirdparty/jquery",
|
|
9
8
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
10
9
|
"sap/ui/model/json/JSONModel",
|
|
11
|
-
"sap/ui/documentation/sdk/controller/util/JSDocUtil",
|
|
12
10
|
"sap/ui/documentation/sdk/controller/util/APIInfo",
|
|
13
11
|
"sap/ui/documentation/sdk/model/formatter"
|
|
14
|
-
], function (
|
|
12
|
+
], function (BaseController, JSONModel, APIInfo, globalFormatter) {
|
|
15
13
|
"use strict";
|
|
16
14
|
|
|
17
15
|
return BaseController.extend("sap.ui.documentation.sdk.controller.ApiDetailIndexDeprecatedExperimental", {
|
|
@@ -8,7 +8,6 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/Device",
|
|
9
9
|
"sap/ui/documentation/sdk/controller/MasterTreeBaseController",
|
|
10
10
|
"sap/m/library",
|
|
11
|
-
"sap/base/Log",
|
|
12
11
|
"sap/ui/model/Filter",
|
|
13
12
|
"sap/ui/model/FilterOperator",
|
|
14
13
|
"sap/ui/documentation/sdk/controller/util/APIInfo",
|
|
@@ -18,7 +17,6 @@ sap.ui.define([
|
|
|
18
17
|
Device,
|
|
19
18
|
MasterTreeBaseController,
|
|
20
19
|
mobileLibrary,
|
|
21
|
-
Log,
|
|
22
20
|
Filter,
|
|
23
21
|
FilterOperator,
|
|
24
22
|
APIInfo,
|
|
@@ -10,7 +10,6 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
11
11
|
"sap/ui/documentation/sdk/controller/util/NewsInfo",
|
|
12
12
|
"sap/ui/documentation/sdk/controller/util/SearchUtil",
|
|
13
|
-
"sap/ui/core/mvc/Controller",
|
|
14
13
|
"sap/ui/model/Filter",
|
|
15
14
|
"sap/ui/model/FilterOperator",
|
|
16
15
|
"sap/ui/model/json/JSONModel",
|
|
@@ -39,7 +38,6 @@ sap.ui.define([
|
|
|
39
38
|
BaseController,
|
|
40
39
|
NewsInfo,
|
|
41
40
|
SearchUtil,
|
|
42
|
-
Controller,
|
|
43
41
|
Filter,
|
|
44
42
|
FilterOperator,
|
|
45
43
|
JSONModel,
|
|
@@ -1340,7 +1338,7 @@ sap.ui.define([
|
|
|
1340
1338
|
|
|
1341
1339
|
/**
|
|
1342
1340
|
* Event handler for the rating to update the label and the data
|
|
1343
|
-
* @param {sap.ui.base.Event}
|
|
1341
|
+
* @param {sap.ui.base.Event} oEvent
|
|
1344
1342
|
*/
|
|
1345
1343
|
onPressRatingButton: function(oEvent) {
|
|
1346
1344
|
var that = this;
|
|
@@ -161,7 +161,7 @@ sap.ui.define([
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Opens a legal disclaimer for Links Popover.
|
|
164
|
-
* @param {sap.ui.base.Event} oEvent
|
|
164
|
+
* @param {sap.ui.base.Event} oEvent the <code>Image</code> press event
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
onDisclaimerLinkPress: function (oEvent) {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/thirdparty/jquery",
|
|
9
8
|
"sap/ui/documentation/sdk/controller/SampleBaseController",
|
|
10
9
|
"sap/ui/documentation/sdk/controller/util/ControlsInfo",
|
|
11
10
|
"sap/ui/documentation/sdk/model/formatter",
|
|
@@ -13,7 +12,7 @@ sap.ui.define([
|
|
|
13
12
|
"sap/base/util/merge",
|
|
14
13
|
"sap/ui/core/Component",
|
|
15
14
|
"sap/ui/core/Core"
|
|
16
|
-
], function(
|
|
15
|
+
], function(SampleBaseController, ControlsInfo, formatter, JSONModel, merge, Component, Core) {
|
|
17
16
|
"use strict";
|
|
18
17
|
|
|
19
18
|
return SampleBaseController.extend("sap.ui.documentation.sdk.controller.Code", {
|
|
@@ -243,7 +242,14 @@ sap.ui.define([
|
|
|
243
242
|
|
|
244
243
|
_getFileType : function (sFileName) {
|
|
245
244
|
var sFileExtension = sFileName.split('.').pop();
|
|
246
|
-
|
|
245
|
+
switch (sFileExtension) {
|
|
246
|
+
case "js":
|
|
247
|
+
return "javascript";
|
|
248
|
+
case "feature":
|
|
249
|
+
return "text";
|
|
250
|
+
default:
|
|
251
|
+
return sFileExtension;
|
|
252
|
+
}
|
|
247
253
|
},
|
|
248
254
|
|
|
249
255
|
_getInitialFileName : function() {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"jquery
|
|
8
|
+
"sap/ui/thirdparty/jquery",
|
|
9
9
|
"sap/ui/Device",
|
|
10
10
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
11
11
|
"sap/ui/model/json/JSONModel",
|
|
@@ -15,12 +15,12 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/model/FilterOperator",
|
|
16
16
|
"sap/ui/model/Sorter",
|
|
17
17
|
"sap/base/util/Version",
|
|
18
|
-
"sap/ui/thirdparty/jquery",
|
|
19
18
|
"sap/base/util/UriParameters",
|
|
20
19
|
"sap/ui/util/Storage",
|
|
21
20
|
"sap/ui/core/Core",
|
|
22
21
|
"sap/ui/documentation/sdk/controller/util/Highlighter",
|
|
23
|
-
"sap/ui/documentation/sdk/util/Resources"
|
|
22
|
+
"sap/ui/documentation/sdk/util/Resources",
|
|
23
|
+
"sap/m/BusyDialog"
|
|
24
24
|
], function(
|
|
25
25
|
jQuery,
|
|
26
26
|
Device,
|
|
@@ -32,12 +32,12 @@ sap.ui.define([
|
|
|
32
32
|
FilterOperator,
|
|
33
33
|
Sorter,
|
|
34
34
|
Version,
|
|
35
|
-
jQueryDOM,
|
|
36
35
|
UriParameters,
|
|
37
36
|
Storage,
|
|
38
37
|
Core,
|
|
39
38
|
Highlighter,
|
|
40
|
-
ResourcesUtil
|
|
39
|
+
ResourcesUtil,
|
|
40
|
+
BusyDialog
|
|
41
41
|
) {
|
|
42
42
|
"use strict";
|
|
43
43
|
|
|
@@ -257,7 +257,7 @@ sap.ui.define([
|
|
|
257
257
|
|
|
258
258
|
// Handle content density change
|
|
259
259
|
if (this._oViewSettings.densityMode !== sDensityMode) {
|
|
260
|
-
this._toggleContentDensityClasses(
|
|
260
|
+
this._toggleContentDensityClasses(jQuery(document.body), sDensityMode);
|
|
261
261
|
this._oViewSettings.densityMode = sDensityMode;
|
|
262
262
|
bContentDensityChanged = true;
|
|
263
263
|
}
|
|
@@ -284,7 +284,7 @@ sap.ui.define([
|
|
|
284
284
|
// Apply theme and compact mode also to iframe samples if there is actually a change
|
|
285
285
|
if ((bRTLChanged || bContentDensityChanged || bThemeChanged) && !ResourcesUtil.getHasProxy()) {
|
|
286
286
|
|
|
287
|
-
$SampleFrame =
|
|
287
|
+
$SampleFrame = jQuery("#sampleFrame");
|
|
288
288
|
if ($SampleFrame.length > 0) {
|
|
289
289
|
oSampleFrameContent = $SampleFrame[0].contentWindow;
|
|
290
290
|
if (oSampleFrameContent) {
|
|
@@ -603,10 +603,10 @@ sap.ui.define([
|
|
|
603
603
|
aFilters.push(new Filter("searchTags", FilterOperator.Contains, this._sFilterValue));
|
|
604
604
|
|
|
605
605
|
// add filters for view settings
|
|
606
|
-
|
|
606
|
+
jQuery.each(this._oListSettings.filter, function (sProperty, oValues) {
|
|
607
607
|
var aPropertyFilters = [];
|
|
608
608
|
|
|
609
|
-
|
|
609
|
+
jQuery.each(oValues, function (sKey, bValue) {
|
|
610
610
|
var sOperator = (sProperty === "formFactors") ? FilterOperator.Contains : FilterOperator.EQ;
|
|
611
611
|
aPropertyFilters.push(new Filter(sProperty, sOperator, sKey));
|
|
612
612
|
});
|
|
@@ -662,7 +662,7 @@ sap.ui.define([
|
|
|
662
662
|
// calculate text
|
|
663
663
|
var aFilterTexts = [];
|
|
664
664
|
|
|
665
|
-
|
|
665
|
+
jQuery.each(this._oListSettings.filter, function (sProperty, oValues) {
|
|
666
666
|
aFilterTexts = aFilterTexts.concat(Object.keys(oValues));
|
|
667
667
|
});
|
|
668
668
|
|
|
@@ -715,8 +715,7 @@ sap.ui.define([
|
|
|
715
715
|
* @public
|
|
716
716
|
*/
|
|
717
717
|
handleSaveAppSettings: function () {
|
|
718
|
-
var
|
|
719
|
-
sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(),
|
|
718
|
+
var sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(),
|
|
720
719
|
sTheme = this._oCore.byId('ThemeSelect').getSelectedKey(),
|
|
721
720
|
bRTL = this._oCore.byId('RTLSwitch').getState();
|
|
722
721
|
|
|
@@ -724,9 +723,6 @@ sap.ui.define([
|
|
|
724
723
|
|
|
725
724
|
// Lazy loading of busy dialog
|
|
726
725
|
if (!this._oBusyDialog) {
|
|
727
|
-
//TODO: global jquery call found
|
|
728
|
-
jQuery.sap.require("sap.m.BusyDialog");
|
|
729
|
-
BusyDialog = sap.ui.require("sap/m/BusyDialog");
|
|
730
726
|
this._oBusyDialog = new BusyDialog();
|
|
731
727
|
this.getView().addDependent(this._oBusyDialog);
|
|
732
728
|
}
|
|
@@ -9,7 +9,6 @@ sap.ui.define([
|
|
|
9
9
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
10
10
|
"sap/ui/documentation/sdk/controller/util/ControlsInfo",
|
|
11
11
|
"sap/ui/documentation/sdk/controller/util/EntityInfo",
|
|
12
|
-
"sap/ui/documentation/sdk/controller/util/APIInfo",
|
|
13
12
|
"sap/ui/documentation/sdk/util/ToggleFullScreenHandler",
|
|
14
13
|
"sap/ui/documentation/sdk/controller/util/JSDocUtil",
|
|
15
14
|
"sap/m/Label",
|
|
@@ -17,7 +16,7 @@ sap.ui.define([
|
|
|
17
16
|
"sap/m/Text",
|
|
18
17
|
"sap/m/HBox",
|
|
19
18
|
"sap/m/ObjectAttribute"
|
|
20
|
-
], function (JSONModel, BaseController, ControlsInfo, EntityInfo,
|
|
19
|
+
], function (JSONModel, BaseController, ControlsInfo, EntityInfo, ToggleFullScreenHandler,
|
|
21
20
|
JSDocUtil, Label, Link, Text, HBox, ObjectAttribute) {
|
|
22
21
|
"use strict";
|
|
23
22
|
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/documentation/sdk/controller/BaseController",
|
|
9
|
-
"sap/m/library",
|
|
10
9
|
"sap/ui/model/json/JSONModel",
|
|
11
10
|
"sap/ui/thirdparty/URI",
|
|
12
11
|
"sap/uxap/ThrottledTaskHelper"
|
|
13
|
-
], function (BaseController,
|
|
12
|
+
], function (BaseController, JSONModel, URI, ThrottledTask) {
|
|
14
13
|
"use strict";
|
|
15
14
|
|
|
16
15
|
var SRC_FILE_NAMES = {
|