@openui5/sap.ui.support 1.97.1 → 1.98.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 +25 -30
- package/THIRDPARTY.txt +13 -20
- package/package.json +6 -6
- package/src/sap/ui/support/.library +1 -1
- package/src/sap/ui/support/.supportrc +1 -1
- package/src/sap/ui/support/Bootstrap.js +3 -5
- package/src/sap/ui/support/RuleAnalyzer.js +1 -1
- package/src/sap/ui/support/jQuery.sap.support.js +6 -3
- package/src/sap/ui/support/library.js +7 -7
- package/src/sap/ui/support/supportRules/Analyzer.js +4 -4
- package/src/sap/ui/support/supportRules/CommunicationBus.js +1 -2
- package/src/sap/ui/support/supportRules/ExecutionScope.js +4 -4
- package/src/sap/ui/support/supportRules/IssueManager.js +6 -6
- package/src/sap/ui/support/supportRules/Main.js +10 -10
- package/src/sap/ui/support/supportRules/RuleSet.js +16 -15
- package/src/sap/ui/support/supportRules/RuleSetLoader.js +34 -22
- package/src/sap/ui/support/supportRules/Storage.js +1 -1
- package/src/sap/ui/support/supportRules/WCBConfig.js +4 -4
- package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +4 -4
- package/src/sap/ui/support/supportRules/report/Archiver.js +8 -8
- package/src/sap/ui/support/supportRules/report/DataCollector.js +8 -8
- package/src/sap/ui/support/supportRules/report/IssueRenderer.js +5 -5
- package/src/sap/ui/support/supportRules/report/ReportProvider.js +16 -16
- package/src/sap/ui/support/supportRules/ui/IFrameController.js +9 -8
- package/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js +6 -6
- package/src/sap/ui/support/supportRules/ui/controllers/Main.controller.js +1 -1
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +4 -4
- package/src/sap/ui/support/supportRules/ui/external/ElementTree.js +6 -6
- package/src/sap/ui/support/supportRules/ui/models/CustomListSelection.js +1 -1
- package/src/sap/ui/support/supportRules/ui/models/Documentation.js +7 -5
- package/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js +4 -4
- package/src/sap/ui/support/supportRules/util/RuleValidator.js +1 -1
- package/src/sap/ui/support/supportRules/util/StringAnalyzer.js +1 -1
- package/src/sap/ui/support/supportRules/util/Utils.js +3 -3
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"jquery.sap.global",
|
|
9
8
|
"sap/ui/support/supportRules/ui/controllers/BaseController",
|
|
10
9
|
"sap/ui/model/json/JSONModel",
|
|
11
10
|
"sap/ui/support/supportRules/CommunicationBus",
|
|
@@ -15,8 +14,9 @@ sap.ui.define([
|
|
|
15
14
|
"sap/ui/support/supportRules/WCBChannels",
|
|
16
15
|
"sap/ui/support/supportRules/ui/models/formatter",
|
|
17
16
|
"sap/ui/support/supportRules/Constants",
|
|
18
|
-
"sap/m/OverflowToolbarAssociativePopoverControls"
|
|
19
|
-
|
|
17
|
+
"sap/m/OverflowToolbarAssociativePopoverControls",
|
|
18
|
+
"sap/base/util/deepExtend"
|
|
19
|
+
], function (BaseController, JSONModel, CommunicationBus, SharedModel, ElementTree, IssueManager, channelNames, formatter, constants, OverflowToolbarAssociativePopoverControls, deepExtend) {
|
|
20
20
|
"use strict";
|
|
21
21
|
|
|
22
22
|
var mIssueSettings = {
|
|
@@ -178,11 +178,11 @@ sap.ui.define([
|
|
|
178
178
|
var sevFilter = this.model.getProperty("/severityFilter"),
|
|
179
179
|
sevFilterApplied = issue.severity === sevFilter || sevFilter === constants.FILTER_VALUE_ALL,
|
|
180
180
|
catFilter = this.model.getProperty("/categoryFilter"),
|
|
181
|
-
catFilterApplied =
|
|
181
|
+
catFilterApplied = (issue.categories && issue.categories.indexOf(catFilter) > -1) || catFilter === constants.FILTER_VALUE_ALL,
|
|
182
182
|
elementFilter = this.model.getProperty("/elementFilter"),
|
|
183
183
|
elementFilterApplied = elementFilter === issue.context.id || elementFilter === constants.FILTER_VALUE_ALL,
|
|
184
184
|
audFilter = this.model.getProperty("/audienceFilter"),
|
|
185
|
-
audienceFilterApplied =
|
|
185
|
+
audienceFilterApplied = (issue.audiences && issue.audiences.indexOf(audFilter) > -1) || audFilter === constants.FILTER_VALUE_ALL,
|
|
186
186
|
bEnabledFilterButton = sevFilter === constants.FILTER_VALUE_ALL && catFilter === constants.FILTER_VALUE_ALL && audFilter === constants.FILTER_VALUE_ALL && elementFilter === constants.FILTER_VALUE_ALL;
|
|
187
187
|
|
|
188
188
|
this.model.setProperty("/bEnabledFilterButton", !bEnabledFilterButton);
|
|
@@ -221,7 +221,7 @@ sap.ui.define([
|
|
|
221
221
|
selectionCopy;
|
|
222
222
|
if (this.model.getProperty("/visibleIssuesCount") > 0) {
|
|
223
223
|
selectedIssues = this.structuredIssuesModel[selection.ruleLibName][selection.ruleId];
|
|
224
|
-
selectionCopy =
|
|
224
|
+
selectionCopy = deepExtend({}, selection); // clone the model so that the TreeTable will not be affected
|
|
225
225
|
selectionCopy.issues = selectedIssues;
|
|
226
226
|
selectionCopy.resolutionUrls = selectedIssues[0].resolutionUrls;
|
|
227
227
|
this.issueTable.setSelectedIndex(0);
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
VersionInfo.load({ library: "sap.ui.core" }).then(function (oCoreLibInfo) {
|
|
97
97
|
CommunicationBus.publish(channelNames.POST_UI_INFORMATION, {
|
|
98
98
|
version: oCoreLibInfo,
|
|
99
|
-
location: new URI(
|
|
99
|
+
location: new URI(sap.ui.require.toUrl("sap/ui/support"), window.location.origin + window.location.pathname).toString()
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
"sap/ui/support/supportRules/ui/models/Documentation",
|
|
15
15
|
"sap/ui/support/supportRules/util/Utils",
|
|
16
16
|
"sap/m/GroupHeaderListItem",
|
|
17
|
-
"sap/
|
|
17
|
+
"sap/base/util/deepExtend",
|
|
18
18
|
"sap/ui/core/library"
|
|
19
19
|
], function (
|
|
20
20
|
BaseController,
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
Documentation,
|
|
27
27
|
Utils,
|
|
28
28
|
GroupHeaderListItem,
|
|
29
|
-
|
|
29
|
+
deepExtend,
|
|
30
30
|
coreLibrary
|
|
31
31
|
) {
|
|
32
32
|
"use strict";
|
|
@@ -89,7 +89,7 @@ sap.ui.define([
|
|
|
89
89
|
*
|
|
90
90
|
* @extends sap.ui.support.supportRules.ui.controllers.BaseController
|
|
91
91
|
* @author SAP SE
|
|
92
|
-
* @version 1.
|
|
92
|
+
* @version 1.98.0
|
|
93
93
|
* @private
|
|
94
94
|
* @alias sap.ui.support.supportRules.ui.controllers.PresetsController
|
|
95
95
|
*/
|
|
@@ -658,7 +658,7 @@ sap.ui.define([
|
|
|
658
658
|
aSelectedPresets.push(oPresetOptions);
|
|
659
659
|
|
|
660
660
|
// keep the original version of the preset
|
|
661
|
-
aCustomPresets.push(
|
|
661
|
+
aCustomPresets.push(deepExtend({}, oPresetOptions));
|
|
662
662
|
|
|
663
663
|
if (PresetsUtils.isPersistingAllowed()) {
|
|
664
664
|
PresetsUtils.persistCustomPresets();
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define(["
|
|
8
|
-
function (jQuery) {
|
|
7
|
+
sap.ui.define(["sap/base/Log", "sap/ui/thirdparty/jquery"],
|
|
8
|
+
function (Log, jQuery) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
function _isObject(data) {
|
|
@@ -212,7 +212,7 @@ sap.ui.define(["jquery.sap.global"],
|
|
|
212
212
|
var isDataAnObject = _isObject(data);
|
|
213
213
|
|
|
214
214
|
if (isDataAnObject === false) {
|
|
215
|
-
|
|
215
|
+
Log.warning("The parameter should be an Object");
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
|
|
@@ -257,14 +257,14 @@ sap.ui.define(["jquery.sap.global"],
|
|
|
257
257
|
var selectedElement;
|
|
258
258
|
|
|
259
259
|
if (typeof elementID !== "string") {
|
|
260
|
-
|
|
260
|
+
Log.warning("Please use a valid string parameter");
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
selectedElement = this._ElementTreeContainer.querySelector("[data-id='" + elementID + "']");
|
|
265
265
|
|
|
266
266
|
if (selectedElement === null) {
|
|
267
|
-
|
|
267
|
+
Log.warning("The selected element is not a child of the ElementTree");
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
270
|
|
|
@@ -293,7 +293,7 @@ sap.ui.define(["jquery.sap.global"],
|
|
|
293
293
|
html += this._createTreeContainer();
|
|
294
294
|
|
|
295
295
|
this._ElementTreeContainer.innerHTML = html;
|
|
296
|
-
// Save
|
|
296
|
+
// Save references for future use
|
|
297
297
|
this._setReferences();
|
|
298
298
|
|
|
299
299
|
if (this.getData() !== undefined) {
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
|
|
81
81
|
function doCallOnHelper(sName, oHelper) {
|
|
82
82
|
return function() {
|
|
83
|
-
//
|
|
83
|
+
//Log.warning("Function called on helper: " + sName);
|
|
84
84
|
return TABLESELECTIONADAPTER[sName].apply(oHelper, arguments);
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"
|
|
8
|
+
"sap/base/Log",
|
|
9
|
+
"sap/base/util/Version",
|
|
10
|
+
"sap/ui/thirdparty/jquery",
|
|
9
11
|
"sap/m/library",
|
|
10
12
|
"sap/ui/VersionInfo"
|
|
11
|
-
], function (jQuery, mLibrary, VersionInfo) {
|
|
13
|
+
], function (Log, Version, jQuery, mLibrary, VersionInfo) {
|
|
12
14
|
"use strict";
|
|
13
15
|
|
|
14
16
|
var Documentation = {
|
|
@@ -21,8 +23,8 @@ sap.ui.define([
|
|
|
21
23
|
var sUrl = "",
|
|
22
24
|
sVersion = "",
|
|
23
25
|
sFullVersion = oCoreLibInfo.version,
|
|
24
|
-
iMajorVersion =
|
|
25
|
-
iMinorVersion =
|
|
26
|
+
iMajorVersion = Version(sFullVersion).getMajor(),
|
|
27
|
+
iMinorVersion = Version(sFullVersion).getMinor(),
|
|
26
28
|
sOrigin = window.location.origin;
|
|
27
29
|
|
|
28
30
|
//This check is to make sure that version is even. Example: 1.53 will back down to 1.52
|
|
@@ -55,7 +57,7 @@ sap.ui.define([
|
|
|
55
57
|
this._pingUrl(sUrl).then(function success() {
|
|
56
58
|
mLibrary.URLHelper.redirect(sUrl, true);
|
|
57
59
|
}, function error() {
|
|
58
|
-
|
|
60
|
+
Log.info("Support Assistant tried to load documentation link in " + sUrl + "but fail");
|
|
59
61
|
sUrl = "https://ui5.sap.com/#/topic/" + sTopicId;
|
|
60
62
|
mLibrary.URLHelper.redirect(sUrl, true);
|
|
61
63
|
});
|
|
@@ -10,9 +10,9 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/support/supportRules/ui/models/SelectionUtils",
|
|
11
11
|
"sap/ui/support/supportRules/ui/models/SharedModel",
|
|
12
12
|
"sap/ui/core/util/File",
|
|
13
|
-
"sap/
|
|
13
|
+
"sap/base/util/extend",
|
|
14
14
|
"sap/ui/support/library"
|
|
15
|
-
], function (Storage, constants, SelectionUtils, SharedModel, File,
|
|
15
|
+
], function (Storage, constants, SelectionUtils, SharedModel, File, extend, library) {
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
18
|
var PresetsUtils = {
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
if (oSystemPreset.id === oPreset.id) {
|
|
52
52
|
if (!oPreset.isModified) {
|
|
53
53
|
var bIsSelected = oPreset.selected;
|
|
54
|
-
oPreset =
|
|
54
|
+
oPreset = extend({}, oSystemPreset);
|
|
55
55
|
oPreset.selected = bIsSelected;
|
|
56
56
|
if (bIsSelected) {
|
|
57
57
|
SelectionUtils.setSelectedRules(oPreset.selections);
|
|
@@ -66,7 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
disableDelete: true,
|
|
67
67
|
isSystemPreset: true
|
|
68
68
|
};
|
|
69
|
-
aPresets.splice(iLastSystemPresetPosition + 1, 0,
|
|
69
|
+
aPresets.splice(iLastSystemPresetPosition + 1, 0, extend(mSystemPresetConfig, oSystemPreset));
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
iLastSystemPresetPosition++;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Contains functionality that may be used trough the whole Support Assistant
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define([],
|
|
11
|
-
function() {
|
|
10
|
+
sap.ui.define(["sap/ui/thirdparty/jquery"],
|
|
11
|
+
function(jQuery) {
|
|
12
12
|
"use strict";
|
|
13
|
-
var sInternalPingFilePath =
|
|
13
|
+
var sInternalPingFilePath = sap.ui.require.toUrl("sap/ui/support").replace(/(^|\/)resources\//, "$1test-resources/") + "/internal/.ping";
|
|
14
14
|
|
|
15
15
|
var Utils = {
|
|
16
16
|
bCanLoadInternalRules: null,
|