@openui5/sap.ui.support 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/THIRDPARTY.txt +6 -6
- package/package.json +6 -6
- package/src/sap/ui/support/.library +1 -1
- package/src/sap/ui/support/RuleAnalyzer.js +1 -1
- package/src/sap/ui/support/jQuery.sap.support.js +1 -1
- package/src/sap/ui/support/library.js +17 -19
- package/src/sap/ui/support/supportRules/Constants.js +23 -2
- package/src/sap/ui/support/supportRules/IssueManager.js +2 -1
- package/src/sap/ui/support/supportRules/RuleSet.js +1 -1
- package/src/sap/ui/support/supportRules/Storage.js +1 -1
- package/src/sap/ui/support/supportRules/WCBChannels.js +5 -11
- package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +1 -1
- package/src/sap/ui/support/supportRules/report/IssueRenderer.js +2 -2
- package/src/sap/ui/support/supportRules/report/ReportProvider.js +4 -4
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +1 -1
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.support",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.101.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.support",
|
|
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.codeeditor": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.101.0",
|
|
18
|
+
"@openui5/sap.ui.codeeditor": "1.101.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.101.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.101.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "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>UI5 library: sap.ui.support</documentation>
|
|
12
12
|
|
|
@@ -35,7 +35,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery",
|
|
|
35
35
|
* @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
|
|
36
36
|
* @alias jQuery.sap.support
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.101.0
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
jQuery.sap.support = {
|
|
@@ -21,17 +21,13 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
21
21
|
* rules to check all aspects of an application.
|
|
22
22
|
*
|
|
23
23
|
* @namespace
|
|
24
|
-
* @
|
|
24
|
+
* @alias sap.ui.support
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.101.0
|
|
27
27
|
* @since 1.50
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
// library dependencies
|
|
32
|
-
|
|
33
|
-
// delegate further initialization of this library to the Core
|
|
34
|
-
sap.ui.getCore().initLibrary({
|
|
30
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
35
31
|
name : "sap.ui.support",
|
|
36
32
|
dependencies : ["sap.ui.core"],
|
|
37
33
|
types: [
|
|
@@ -41,7 +37,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
41
37
|
controls: [],
|
|
42
38
|
elements: [],
|
|
43
39
|
noLibraryCSS: true,
|
|
44
|
-
version: "1.
|
|
40
|
+
version: "1.101.0",
|
|
45
41
|
extensions: {
|
|
46
42
|
//Configuration used for rule loading of Support Assistant
|
|
47
43
|
"sap.ui.support": {
|
|
@@ -53,10 +49,10 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
53
49
|
/**
|
|
54
50
|
* Defines severity types.
|
|
55
51
|
* @enum {string}
|
|
56
|
-
* @since 1.
|
|
52
|
+
* @since 1.50
|
|
57
53
|
* @public
|
|
58
54
|
*/
|
|
59
|
-
|
|
55
|
+
thisLib.Severity = {
|
|
60
56
|
/**
|
|
61
57
|
* Medium issue severity.
|
|
62
58
|
* @public
|
|
@@ -77,10 +73,10 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
77
73
|
/**
|
|
78
74
|
* Defines the Audiences.
|
|
79
75
|
* @enum {string}
|
|
80
|
-
* @since 1.
|
|
76
|
+
* @since 1.50
|
|
81
77
|
* @public
|
|
82
78
|
*/
|
|
83
|
-
|
|
79
|
+
thisLib.Audiences = {
|
|
84
80
|
/**
|
|
85
81
|
* Audience just on Control level.
|
|
86
82
|
* @public
|
|
@@ -101,10 +97,10 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
101
97
|
/**
|
|
102
98
|
* Issue Categories.
|
|
103
99
|
* @enum {string}
|
|
104
|
-
* @since 1.
|
|
100
|
+
* @since 1.50
|
|
105
101
|
* @public
|
|
106
102
|
*/
|
|
107
|
-
|
|
103
|
+
thisLib.Categories = {
|
|
108
104
|
/**
|
|
109
105
|
* Accessibility issue category.
|
|
110
106
|
* @public
|
|
@@ -132,6 +128,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
132
128
|
Consistency: "Consistency",
|
|
133
129
|
/**
|
|
134
130
|
* Fiori Guidelines issue category.
|
|
131
|
+
* @since 1.58
|
|
135
132
|
* @public
|
|
136
133
|
*/
|
|
137
134
|
FioriGuidelines : "FioriGuidelines",
|
|
@@ -152,6 +149,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
152
149
|
DataModel: "DataModel",
|
|
153
150
|
/**
|
|
154
151
|
* Modularization issue category.
|
|
152
|
+
* @since 1.60
|
|
155
153
|
* @public
|
|
156
154
|
*/
|
|
157
155
|
Modularization: "Modularization",
|
|
@@ -170,10 +168,10 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
170
168
|
/**
|
|
171
169
|
* Analysis history formats.
|
|
172
170
|
* @enum {string}
|
|
173
|
-
* @since 1.
|
|
171
|
+
* @since 1.58
|
|
174
172
|
* @public
|
|
175
173
|
*/
|
|
176
|
-
|
|
174
|
+
thisLib.HistoryFormats = {
|
|
177
175
|
/**
|
|
178
176
|
* ABAP history format.
|
|
179
177
|
* @public
|
|
@@ -189,10 +187,10 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
189
187
|
/**
|
|
190
188
|
* Contains the available system presets.
|
|
191
189
|
* @enum {object}
|
|
192
|
-
* @since 1.
|
|
190
|
+
* @since 1.60
|
|
193
191
|
* @public
|
|
194
192
|
*/
|
|
195
|
-
|
|
193
|
+
thisLib.SystemPresets = {
|
|
196
194
|
/**
|
|
197
195
|
* The accessibility preset.
|
|
198
196
|
*
|
|
@@ -226,5 +224,5 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
226
224
|
}
|
|
227
225
|
};
|
|
228
226
|
|
|
229
|
-
return
|
|
227
|
+
return thisLib;
|
|
230
228
|
});
|
|
@@ -18,118 +18,139 @@ sap.ui.define([],
|
|
|
18
18
|
* @returns {Object} Object that contains all the constants.
|
|
19
19
|
*/
|
|
20
20
|
return {
|
|
21
|
-
|
|
22
|
-
* @readonly
|
|
21
|
+
/*
|
|
23
22
|
* The following constants are used to store rules and user data in the local storage.
|
|
24
23
|
*/
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
26
|
* Stores temporary rules.
|
|
27
|
+
* @readonly
|
|
28
28
|
*/
|
|
29
29
|
TEMP_RULESETS_NAME: "temporary",
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Name of the SupportAssistant.
|
|
33
|
+
* @readonly
|
|
33
34
|
*/
|
|
34
35
|
SUPPORT_ASSISTANT_NAME: "Support Assistant",
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Key for storing temporary rules in the local storage.
|
|
39
|
+
* @readonly
|
|
38
40
|
*/
|
|
39
41
|
LOCAL_STORAGE_TEMP_RULES_KEY: "support-assistant-temprules",
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* Key for storing selected rules in the local storage.
|
|
45
|
+
* @readonly
|
|
43
46
|
*/
|
|
44
47
|
LOCAL_STORAGE_SELECTED_RULES_KEY: "support-assistant-selected-rules",
|
|
45
48
|
|
|
46
49
|
/**
|
|
47
50
|
* Key for storing selected context in the local storage.
|
|
51
|
+
* @readonly
|
|
48
52
|
*/
|
|
49
53
|
LOCAL_STORAGE_SELECTED_CONTEXT_KEY: "support-assistant-settings-selected-context",
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* Stores temporary rules in the local storage.
|
|
57
|
+
* @readonly
|
|
53
58
|
*/
|
|
54
59
|
LOCAL_STORAGE_SELECTED_CONTEXT_COMPONENT_KEY: "support-assistant-settings-selected-context-components",
|
|
55
60
|
|
|
56
61
|
/**
|
|
57
62
|
* Stores the visible column setting
|
|
63
|
+
* @readonly
|
|
58
64
|
*/
|
|
59
65
|
LOCAL_STORAGE_SELECTED_VISIBLE_COLUMN_KEY: "support-assistant-visible-column-setting",
|
|
60
66
|
|
|
61
67
|
/**
|
|
62
68
|
* Stores selections presets list
|
|
69
|
+
* @readonly
|
|
63
70
|
*/
|
|
64
71
|
LOCAL_STORAGE_SELECTION_PRESETS_KEY: "support-assistant-selection-presets",
|
|
65
72
|
|
|
66
73
|
/**
|
|
67
74
|
* Stores custom presets list
|
|
75
|
+
* @readonly
|
|
68
76
|
*/
|
|
69
77
|
LOCAL_STORAGE_CUSTOM_PRESETS_KEY: "support-assistant-custom-presets",
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
80
|
* Tells if the user was already warned that temp rules are disabled
|
|
81
|
+
* @readonly
|
|
73
82
|
*/
|
|
74
83
|
LOCAL_STORAGE_TEMP_RULES_DISABLED_WARNED: "support-assistant-temp-rules-disabled-warned",
|
|
75
84
|
|
|
76
85
|
/**
|
|
77
86
|
* The name of the persistence cookie.
|
|
87
|
+
* @readonly
|
|
78
88
|
*/
|
|
79
89
|
COOKIE_NAME: "persistence-cookie",
|
|
80
90
|
|
|
81
91
|
/**
|
|
82
92
|
* Color used for severity high issues
|
|
93
|
+
* @readonly
|
|
83
94
|
*/
|
|
84
95
|
SUPPORT_ASSISTANT_SEVERITY_HIGH_COLOR: "#bb0000",
|
|
85
96
|
|
|
86
97
|
/**
|
|
87
98
|
* Color used for severity medium issues
|
|
99
|
+
* @readonly
|
|
88
100
|
*/
|
|
89
101
|
SUPPORT_ASSISTANT_SEVERITY_MEDIUM_COLOR: "#e78c07",
|
|
90
102
|
|
|
91
103
|
/**
|
|
92
104
|
* Color used for severity high issues
|
|
105
|
+
* @readonly
|
|
93
106
|
*/
|
|
94
107
|
SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR: "#5e696e",
|
|
95
108
|
|
|
96
109
|
/**
|
|
97
110
|
* Low severity of produced issue by Support Assistant
|
|
111
|
+
* @readonly
|
|
98
112
|
*/
|
|
99
113
|
SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW: "Low",
|
|
100
114
|
|
|
101
115
|
/**
|
|
102
116
|
* Medium severity of produced issue by Support Assistant
|
|
117
|
+
* @readonly
|
|
103
118
|
*/
|
|
104
119
|
SUPPORT_ASSISTANT_ISSUE_SEVERITY_MEDIUM: "Medium",
|
|
105
120
|
|
|
106
121
|
/**
|
|
107
122
|
* High severity of produced issue by Support Assistant
|
|
123
|
+
* @readonly
|
|
108
124
|
*/
|
|
109
125
|
SUPPORT_ASSISTANT_ISSUE_SEVERITY_HIGH: "High",
|
|
110
126
|
|
|
111
127
|
/**
|
|
112
128
|
* Extension added to library.js files of every library that contains support rules
|
|
129
|
+
* @readonly
|
|
113
130
|
*/
|
|
114
131
|
SUPPORT_ASSISTANT_EXTENSION: "sap.ui.support",
|
|
115
132
|
|
|
116
133
|
/**
|
|
117
134
|
* The maximum number of visible issues for selected rule (in the issues table)
|
|
135
|
+
* @readonly
|
|
118
136
|
*/
|
|
119
137
|
MAX_VISIBLE_ISSUES_FOR_RULE: 5,
|
|
120
138
|
|
|
121
139
|
/**
|
|
122
140
|
* Copy text for ruleset loading indicator
|
|
141
|
+
* @readonly
|
|
123
142
|
*/
|
|
124
143
|
RULESET_LOADING: "Loading ruleset files:",
|
|
125
144
|
|
|
126
145
|
/**
|
|
127
146
|
* Initial value of all filters in Support Assistant views
|
|
147
|
+
* @readonly
|
|
128
148
|
*/
|
|
129
149
|
FILTER_VALUE_ALL: "All",
|
|
130
150
|
|
|
131
151
|
/**
|
|
132
152
|
* Name of file produced by selection export
|
|
153
|
+
* @readonly
|
|
133
154
|
*/
|
|
134
155
|
RULE_SELECTION_EXPORT_FILE_NAME: "sa-rule-preset",
|
|
135
156
|
|
|
@@ -12,7 +12,8 @@ sap.ui.define(["sap/base/util/deepExtend", "sap/ui/base/Object", "sap/ui/support
|
|
|
12
12
|
function (deepExtend, BaseObject, library, constants) {
|
|
13
13
|
"use strict";
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Issues stored in the IssueManager.
|
|
16
|
+
* @type {object[]}
|
|
16
17
|
* @private
|
|
17
18
|
*/
|
|
18
19
|
var _aIssues = [];
|
|
@@ -39,7 +39,7 @@ function (Log, Version, library, storage, constants) {
|
|
|
39
39
|
* @name sap.ui.support.RuleSet
|
|
40
40
|
* @memberof sap.ui.support
|
|
41
41
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.101.0
|
|
43
43
|
* @param {object} oSettings Name of the initiated
|
|
44
44
|
* @returns {void}
|
|
45
45
|
*/
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @name sap.ui.support.Storage
|
|
58
58
|
* @alias sap.ui.support.Storage
|
|
59
59
|
* @author SAP SE.
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.101.0
|
|
61
61
|
* @private
|
|
62
62
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
63
63
|
*/
|
|
@@ -11,22 +11,16 @@ function () {
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* <h3>Overview</h3>
|
|
14
|
-
*
|
|
14
|
+
* Channel constants which can be used to subscribe to the {@link sap.ui.support.WindowCommunicationBus}
|
|
15
|
+
*
|
|
15
16
|
* <h3>Usage</h3>
|
|
16
17
|
* These channels are used for communication with Main.
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
18
|
+
*
|
|
19
|
+
* @enum {string} sap.ui.support.WCBChannels
|
|
19
20
|
* @readonly
|
|
20
21
|
* @protected
|
|
21
|
-
* @returns {Object} Returns the channel constants which are used to subscribe to sap.ui.support.WindowCommunicationBus
|
|
22
22
|
*/
|
|
23
|
-
return {
|
|
24
|
-
/**
|
|
25
|
-
* @enum
|
|
26
|
-
* @readonly
|
|
27
|
-
* The following channels can subscribe to the WindowCommunicationBus
|
|
28
|
-
*/
|
|
29
|
-
|
|
23
|
+
return /** @lends sap.ui.support.WCBChannels */ {
|
|
30
24
|
/**
|
|
31
25
|
* State change in the core.
|
|
32
26
|
* @type {string}
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @name sap.ui.support.WindowCommunicationBus
|
|
27
27
|
* @memberof sap.ui.support
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.101.0
|
|
30
30
|
* @private
|
|
31
31
|
*/
|
|
32
32
|
var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
|
|
@@ -162,8 +162,8 @@ sap.ui.define(['sap/base/Log', 'sap/base/security/encodeXML'], function(Log, enc
|
|
|
162
162
|
/**
|
|
163
163
|
* Creates an html string containing the issues.
|
|
164
164
|
* @param {Object} issues - the issues in viewmodel format
|
|
165
|
-
* @param {
|
|
166
|
-
* @returns {
|
|
165
|
+
* @param {boolean} enableFiltering - if true renders the severity filters
|
|
166
|
+
* @returns {string}
|
|
167
167
|
*/
|
|
168
168
|
function render(issues, enableFiltering) {
|
|
169
169
|
var content = '';
|
|
@@ -306,8 +306,8 @@ sap.ui.define(['sap/ui/thirdparty/jquery', 'sap/base/Log', 'sap/base/security/en
|
|
|
306
306
|
/**
|
|
307
307
|
* Creates an html string containing the whole report.
|
|
308
308
|
* @param {Object} oData - the data required to create a report
|
|
309
|
-
* @param {
|
|
310
|
-
* @returns {
|
|
309
|
+
* @param {string} [sBaseUrl] - the base path to javascript and css resources
|
|
310
|
+
* @returns {string} the complete html.
|
|
311
311
|
*/
|
|
312
312
|
function getReportHtml(oData, sBaseUrl) {
|
|
313
313
|
if (!sBaseUrl) {
|
|
@@ -339,9 +339,9 @@ sap.ui.define(['sap/ui/thirdparty/jquery', 'sap/base/Log', 'sap/base/security/en
|
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* Replace any placeholder like {{placeholder}} with the corresponding value from oContext.
|
|
342
|
-
* @param {
|
|
342
|
+
* @param {string} sTemplate the string template containing the placeholders.
|
|
343
343
|
* @param {Object} oContext the object containing the values for the placeholders.
|
|
344
|
-
* @returns {
|
|
344
|
+
* @returns {string} the processed template.
|
|
345
345
|
*/
|
|
346
346
|
function replacePlaceholders(sTemplate, oContext) {
|
|
347
347
|
var sPlaceholder,
|