@openui5/sap.ui.support 1.96.2 → 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 +26 -31
- package/THIRDPARTY.txt +15 -21
- package/package.json +6 -6
- package/src/sap/ui/support/.library +2 -2
- package/src/sap/ui/support/.supportrc +1 -1
- package/src/sap/ui/support/Bootstrap.js +4 -6
- package/src/sap/ui/support/RuleAnalyzer.js +2 -2
- package/src/sap/ui/support/jQuery.sap.support.js +7 -4
- package/src/sap/ui/support/library.js +8 -8
- package/src/sap/ui/support/supportRules/Analyzer.js +5 -5
- package/src/sap/ui/support/supportRules/CommunicationBus.js +2 -3
- package/src/sap/ui/support/supportRules/Constants.js +1 -1
- package/src/sap/ui/support/supportRules/CoreFacade.js +1 -1
- package/src/sap/ui/support/supportRules/ExecutionScope.js +5 -5
- package/src/sap/ui/support/supportRules/History.js +1 -1
- package/src/sap/ui/support/supportRules/IssueManager.js +7 -7
- package/src/sap/ui/support/supportRules/Main.js +11 -11
- package/src/sap/ui/support/supportRules/RuleSerializer.js +1 -1
- package/src/sap/ui/support/supportRules/RuleSet.js +17 -16
- package/src/sap/ui/support/supportRules/RuleSetLoader.js +35 -23
- package/src/sap/ui/support/supportRules/Storage.js +2 -2
- package/src/sap/ui/support/supportRules/WCBChannels.js +1 -1
- package/src/sap/ui/support/supportRules/WCBConfig.js +5 -5
- package/src/sap/ui/support/supportRules/WindowCommunicationBus.js +5 -5
- package/src/sap/ui/support/supportRules/report/AbapHistoryFormatter.js +1 -1
- package/src/sap/ui/support/supportRules/report/Archiver.js +9 -9
- package/src/sap/ui/support/supportRules/report/DataCollector.js +9 -9
- package/src/sap/ui/support/supportRules/report/IssueRenderer.js +6 -6
- package/src/sap/ui/support/supportRules/report/ReportProvider.js +17 -17
- package/src/sap/ui/support/supportRules/report/StringHistoryFormatter.js +1 -1
- package/src/sap/ui/support/supportRules/report/resources/index.js +1 -1
- package/src/sap/ui/support/supportRules/ui/IFrameController.js +10 -9
- package/src/sap/ui/support/supportRules/ui/Overlay.js +1 -1
- package/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js +1 -1
- package/src/sap/ui/support/supportRules/ui/controllers/BaseController.js +1 -1
- package/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js +7 -7
- package/src/sap/ui/support/supportRules/ui/controllers/Main.controller.js +2 -2
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +5 -5
- package/src/sap/ui/support/supportRules/ui/external/ElementTree.js +7 -7
- package/src/sap/ui/support/supportRules/ui/external/Highlighter.js +1 -1
- package/src/sap/ui/support/supportRules/ui/models/CustomJSONListSelection.js +1 -1
- package/src/sap/ui/support/supportRules/ui/models/CustomListSelection.js +2 -2
- package/src/sap/ui/support/supportRules/ui/models/Documentation.js +8 -6
- package/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js +5 -5
- package/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js +1 -1
- package/src/sap/ui/support/supportRules/ui/models/SharedModel.js +1 -1
- package/src/sap/ui/support/supportRules/ui/models/formatter.js +1 -1
- package/src/sap/ui/support/supportRules/util/EvalUtils.js +1 -1
- package/src/sap/ui/support/supportRules/util/RuleValidator.js +2 -2
- package/src/sap/ui/support/supportRules/util/StringAnalyzer.js +2 -2
- package/src/sap/ui/support/supportRules/util/Utils.js +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"
|
|
8
|
+
"sap/base/Log",
|
|
9
9
|
"sap/ui/base/ManagedObject",
|
|
10
10
|
"sap/ui/core/Element",
|
|
11
11
|
"sap/ui/core/Component",
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/support/supportRules/RuleSerializer",
|
|
24
24
|
"sap/ui/support/library"
|
|
25
25
|
],
|
|
26
|
-
function (
|
|
26
|
+
function (Log, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
27
27
|
ExecutionScope, Highlighter, CommunicationBus,
|
|
28
28
|
IssueManager, History, DataCollector, channelNames,
|
|
29
29
|
constants, RuleSetLoader, RuleSerializer, library) {
|
|
@@ -57,7 +57,7 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
57
57
|
var evt = document.createEvent("CustomEvent");
|
|
58
58
|
evt.initCustomEvent("supportToolLoaded", true, true, {});
|
|
59
59
|
} else {
|
|
60
|
-
|
|
60
|
+
Log.warning("Only one support tool allowed");
|
|
61
61
|
|
|
62
62
|
return oMain;
|
|
63
63
|
}
|
|
@@ -321,7 +321,7 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
321
321
|
vPresetOrRules = library.SystemPresets[vPresetOrRules];
|
|
322
322
|
|
|
323
323
|
if (!vPresetOrRules) {
|
|
324
|
-
|
|
324
|
+
Log.error("System preset ID is not valid");
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -343,7 +343,7 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
343
343
|
vRuleDescriptors = vPresetOrRules.selections;
|
|
344
344
|
|
|
345
345
|
if (!vPresetOrRules.id || !vPresetOrRules.title) {
|
|
346
|
-
|
|
346
|
+
Log.error("The preset must have an ID and a title");
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -398,7 +398,7 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
398
398
|
i;
|
|
399
399
|
|
|
400
400
|
if (ExecutionScope.possibleScopes.indexOf(oExecutionScope.type) === -1) {
|
|
401
|
-
|
|
401
|
+
Log.error("Invalid execution scope type. Type must be one of the following: "
|
|
402
402
|
+ ExecutionScope.possibleScopes.join(", "));
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
@@ -408,7 +408,7 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
408
408
|
if (oExecutionScope.parentId) {
|
|
409
409
|
aSelectors.push(oExecutionScope.parentId);
|
|
410
410
|
} else if (Array.isArray(oExecutionScope.selectors)) {
|
|
411
|
-
|
|
411
|
+
aSelectors = aSelectors.concat(oExecutionScope.selectors);
|
|
412
412
|
} else if (oExecutionScope.selectors) {
|
|
413
413
|
aSelectors.push(oExecutionScope.selectors);
|
|
414
414
|
}
|
|
@@ -461,20 +461,20 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
461
461
|
mRules;
|
|
462
462
|
|
|
463
463
|
if (!oRuleDescriptor.libName || !oRuleDescriptor.ruleId) {
|
|
464
|
-
|
|
464
|
+
Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Invalid Rule Descriptor.");
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
oRuleset = RuleSetLoader.getRuleSet(oRuleDescriptor.libName);
|
|
469
469
|
|
|
470
470
|
if (!oRuleset || !oRuleset.ruleset) {
|
|
471
|
-
|
|
471
|
+
Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Could not find Ruleset for library " + oRuleDescriptor.libName);
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
mRules = oRuleset.ruleset.getRules();
|
|
476
476
|
if (!mRules || !mRules[oRuleDescriptor.ruleId]) {
|
|
477
|
-
|
|
477
|
+
Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Could not find Rule with id " +
|
|
478
478
|
oRuleDescriptor.ruleId + " for library " + oRuleDescriptor.libName);
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
* The RuleSet is an interface used to create, update and delete ruleset containing rules.
|
|
9
9
|
*/
|
|
10
10
|
sap.ui.define([
|
|
11
|
-
"
|
|
11
|
+
"sap/base/Log",
|
|
12
|
+
"sap/base/util/Version",
|
|
12
13
|
"sap/ui/support/library",
|
|
13
14
|
"sap/ui/support/supportRules/Storage",
|
|
14
15
|
"sap/ui/support/supportRules/Constants"
|
|
15
16
|
],
|
|
16
|
-
function (
|
|
17
|
+
function (Log, Version, library, storage, constants) {
|
|
17
18
|
"use strict";
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -38,7 +39,7 @@ function (jQuery, library, storage, constants) {
|
|
|
38
39
|
* @name sap.ui.support.RuleSet
|
|
39
40
|
* @memberof sap.ui.support
|
|
40
41
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
42
|
+
* @version 1.98.0
|
|
42
43
|
* @param {object} oSettings Name of the initiated
|
|
43
44
|
* @returns {void}
|
|
44
45
|
*/
|
|
@@ -46,7 +47,7 @@ function (jQuery, library, storage, constants) {
|
|
|
46
47
|
oSettings = oSettings || {};
|
|
47
48
|
|
|
48
49
|
if (!oSettings.name) {
|
|
49
|
-
|
|
50
|
+
Log.error("Please provide a name for the RuleSet.");
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
if (mRuleSets[oSettings.name]) {
|
|
@@ -117,37 +118,37 @@ function (jQuery, library, storage, constants) {
|
|
|
117
118
|
RuleSet.prototype._verifySettingsObject = function (oSettings, bUpdate) {
|
|
118
119
|
|
|
119
120
|
if (!oSettings.id) {
|
|
120
|
-
|
|
121
|
+
Log.error("Support rule needs an id.");
|
|
121
122
|
return "Support rule needs an unique id.";
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
if (!bUpdate && this._mRules[oSettings.id]) {
|
|
125
|
-
|
|
126
|
+
Log.error("Support rule with the id " + oSettings.id + " already exists.");
|
|
126
127
|
return "Support rule with the id " + oSettings.id + " already exists.";
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
if (!oSettings.check) {
|
|
130
|
-
|
|
131
|
+
Log.error("Support rule with the id " + oSettings.id + " needs a check function.");
|
|
131
132
|
return "Support rule with the id " + oSettings.id + " needs a check function.";
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
if (!oSettings.title) {
|
|
135
|
-
|
|
136
|
+
Log.error("Support rule with the id " + oSettings.id + " needs a title.");
|
|
136
137
|
return "Support rule with the id " + oSettings.id + " needs a title.";
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
if (!oSettings.description) {
|
|
140
|
-
|
|
141
|
+
Log.error("Support rule with the id " + oSettings.id + " needs a description.");
|
|
141
142
|
return "Support rule with the id " + oSettings.id + " needs a description.";
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
if (!oSettings.resolution && (!oSettings.resolutionurls || oSettings.resolutionurls.length === 0)) {
|
|
145
|
-
|
|
146
|
+
Log.error("Support rule with the id " + oSettings.id + " needs either a resolution or resolutionurls or should have a ticket handler function");
|
|
146
147
|
return "Support rule with the id " + oSettings.id + " needs either a resolution or resolutionurls or should have a ticket handler function";
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
if (!oSettings.audiences || oSettings.audiences.length === 0) {
|
|
150
|
-
|
|
151
|
+
Log.error("Support rule with the id " + oSettings.id + " should have an audience. Applying audience ['Control']");
|
|
151
152
|
oSettings.audiences = [library.Audiences.Control];
|
|
152
153
|
}
|
|
153
154
|
|
|
@@ -162,13 +163,13 @@ function (jQuery, library, storage, constants) {
|
|
|
162
163
|
});
|
|
163
164
|
|
|
164
165
|
if (bIsWrongAudience) {
|
|
165
|
-
|
|
166
|
+
Log.error("Audience " + sAudienceName + " does not exist. Please use the audiences from sap.ui.support.Audiences");
|
|
166
167
|
return "Audience " + sAudienceName + " does not exist. Please use the audiences from sap.ui.support.Audiences";
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
if (!oSettings.categories || oSettings.categories.length === 0) {
|
|
171
|
-
|
|
172
|
+
Log.error("Support rule with the id " + oSettings.id + " should have a category. Applying category ['Performance']");
|
|
172
173
|
oSettings.categories = ["Performance"];
|
|
173
174
|
}
|
|
174
175
|
|
|
@@ -183,7 +184,7 @@ function (jQuery, library, storage, constants) {
|
|
|
183
184
|
});
|
|
184
185
|
|
|
185
186
|
if (bIsWrongCategory) {
|
|
186
|
-
|
|
187
|
+
Log.error("Category " + sCategoryName + " does not exist. Please use the categories from sap.ui.support.Categories");
|
|
187
188
|
return "Category " + sCategoryName + " does not exist. Please use the categories from sap.ui.support.Categories";
|
|
188
189
|
}
|
|
189
190
|
}
|
|
@@ -213,7 +214,7 @@ function (jQuery, library, storage, constants) {
|
|
|
213
214
|
|
|
214
215
|
// Do not add a rule that is for higher version of UI5
|
|
215
216
|
// because APIs might not be in place
|
|
216
|
-
if (sRuleVersion &&
|
|
217
|
+
if (sRuleVersion && Version(sCurrentVersion).compareTo(sRuleVersion) < 0) {
|
|
217
218
|
return "Rule " + oSettings.id + " should be used with a version >= " + oSettings.minversion;
|
|
218
219
|
}
|
|
219
220
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
sap.ui.define([
|
|
13
|
-
"
|
|
13
|
+
"sap/base/Log",
|
|
14
|
+
"sap/base/util/extend",
|
|
15
|
+
"sap/base/util/ObjectPath",
|
|
14
16
|
"sap/ui/VersionInfo",
|
|
15
17
|
"sap/ui/support/supportRules/RuleSet",
|
|
16
18
|
"sap/ui/support/supportRules/CommunicationBus",
|
|
@@ -18,9 +20,13 @@ sap.ui.define([
|
|
|
18
20
|
"sap/ui/support/supportRules/RuleSerializer",
|
|
19
21
|
"sap/ui/support/supportRules/Constants",
|
|
20
22
|
"sap/ui/support/supportRules/util/EvalUtils",
|
|
21
|
-
"sap/ui/support/supportRules/util/Utils"
|
|
23
|
+
"sap/ui/support/supportRules/util/Utils",
|
|
24
|
+
"sap/ui/thirdparty/jquery",
|
|
25
|
+
"sap/ui/thirdparty/URI"
|
|
22
26
|
], function (
|
|
23
|
-
|
|
27
|
+
Log,
|
|
28
|
+
extend,
|
|
29
|
+
ObjectPath,
|
|
24
30
|
VersionInfo,
|
|
25
31
|
RuleSet,
|
|
26
32
|
CommunicationBus,
|
|
@@ -28,7 +34,9 @@ sap.ui.define([
|
|
|
28
34
|
RuleSerializer,
|
|
29
35
|
constants,
|
|
30
36
|
EvalUtils,
|
|
31
|
-
Utils
|
|
37
|
+
Utils,
|
|
38
|
+
jQuery,
|
|
39
|
+
URI
|
|
32
40
|
) {
|
|
33
41
|
"use strict";
|
|
34
42
|
|
|
@@ -48,7 +56,7 @@ sap.ui.define([
|
|
|
48
56
|
})();
|
|
49
57
|
|
|
50
58
|
var sCustomSuffix = "sprt";
|
|
51
|
-
var sSupportModulePath =
|
|
59
|
+
var sSupportModulePath = sap.ui.require.toUrl("sap/ui/support");
|
|
52
60
|
var sSupportModuleRootPath = sSupportModulePath.replace('/sap/ui/support', '');
|
|
53
61
|
var sAbsUrl = getAbsoluteUrl(sSupportModuleRootPath);
|
|
54
62
|
|
|
@@ -215,7 +223,7 @@ sap.ui.define([
|
|
|
215
223
|
RuleSetLoader._fetchLibraryFiles = function (aLibNames, fnProcessFile, bSupressProgressReporting) {
|
|
216
224
|
var aAjaxPromises = [],
|
|
217
225
|
that = this,
|
|
218
|
-
supportModulePath =
|
|
226
|
+
supportModulePath = sap.ui.require.toUrl("sap/ui/support"),
|
|
219
227
|
supportModulesRoot = supportModulePath.replace("sap/ui/support", ""),
|
|
220
228
|
bCanLoadInternalRules = Utils.canLoadInternalRules(),
|
|
221
229
|
bHasInternalRules = bCanLoadInternalRules && aLibNames.internalRules.length > 0,
|
|
@@ -292,26 +300,30 @@ sap.ui.define([
|
|
|
292
300
|
return null;
|
|
293
301
|
}
|
|
294
302
|
|
|
295
|
-
var
|
|
296
|
-
var
|
|
303
|
+
var libResourceName = libraryName.replace(/\./g, "/");
|
|
304
|
+
var customizableLibResourceName = libResourceName;
|
|
297
305
|
var loadFromSupportOrigin = this._getLoadFromSupportOrigin();
|
|
306
|
+
var pathsConfig = {};
|
|
298
307
|
|
|
299
308
|
// Prepare modules root string
|
|
300
309
|
if (loadFromSupportOrigin) {
|
|
301
310
|
// In order to avoid module name collision
|
|
302
311
|
// we need to generate an internal library name
|
|
303
|
-
|
|
304
|
-
|
|
312
|
+
customizableLibResourceName += '/' + sCustomSuffix;
|
|
313
|
+
pathsConfig[customizableLibResourceName] = supportModulesRoot + libResourceName;
|
|
305
314
|
}
|
|
306
315
|
|
|
307
|
-
var
|
|
308
|
-
var libraryInternalResourceRoot = supportModulesRoot.replace('resources/', '') + 'test-resources/' +
|
|
316
|
+
var internalLibResourceName = customizableLibResourceName + '/internal';
|
|
317
|
+
var libraryInternalResourceRoot = supportModulesRoot.replace('resources/', '') + 'test-resources/' + libResourceName + '/internal';
|
|
318
|
+
pathsConfig[internalLibResourceName] = libraryInternalResourceRoot;
|
|
309
319
|
|
|
310
|
-
|
|
320
|
+
sap.ui.loader.config({
|
|
321
|
+
paths: pathsConfig
|
|
322
|
+
});
|
|
311
323
|
|
|
312
324
|
return {
|
|
313
|
-
internalLibName:
|
|
314
|
-
customizableLibName:
|
|
325
|
+
internalLibName: internalLibResourceName.replace(/\//g, "."),
|
|
326
|
+
customizableLibName: customizableLibResourceName.replace(/\//g, ".")
|
|
315
327
|
};
|
|
316
328
|
};
|
|
317
329
|
|
|
@@ -348,7 +360,7 @@ sap.ui.define([
|
|
|
348
360
|
var sNormalizedLibName,
|
|
349
361
|
oLibSupportCopy,
|
|
350
362
|
oLibrary,
|
|
351
|
-
oLibSupport =
|
|
363
|
+
oLibSupport = ObjectPath.get(sLibName).library.support;
|
|
352
364
|
|
|
353
365
|
if (!oLibSupport) {
|
|
354
366
|
// This case usually happens when the library flag bExport is set to true.
|
|
@@ -356,7 +368,7 @@ sap.ui.define([
|
|
|
356
368
|
}
|
|
357
369
|
|
|
358
370
|
sNormalizedLibName = sLibName.replace("." + sCustomSuffix, "").replace(".internal", "");
|
|
359
|
-
oLibSupportCopy =
|
|
371
|
+
oLibSupportCopy = extend({}, oLibSupport);
|
|
360
372
|
oLibrary = this._mRuleSets[sNormalizedLibName];
|
|
361
373
|
|
|
362
374
|
if (!(oLibSupportCopy.ruleset instanceof RuleSet)) {
|
|
@@ -364,14 +376,14 @@ sap.ui.define([
|
|
|
364
376
|
}
|
|
365
377
|
|
|
366
378
|
if (oLibrary) {
|
|
367
|
-
oLibrary.ruleset._mRules =
|
|
379
|
+
oLibrary.ruleset._mRules = extend(oLibrary.ruleset._mRules, oLibSupportCopy.ruleset._mRules);
|
|
368
380
|
} else {
|
|
369
381
|
oLibrary = oLibSupportCopy;
|
|
370
382
|
}
|
|
371
383
|
|
|
372
384
|
this._mRuleSets[sNormalizedLibName] = oLibrary;
|
|
373
385
|
} catch (e) {
|
|
374
|
-
|
|
386
|
+
Log.error("[" + constants.SUPPORT_ASSISTANT_NAME + "] Failed to load RuleSet for " + sLibName + " library", e);
|
|
375
387
|
}
|
|
376
388
|
};
|
|
377
389
|
|
|
@@ -383,8 +395,8 @@ sap.ui.define([
|
|
|
383
395
|
*/
|
|
384
396
|
RuleSetLoader._getLoadFromSupportOrigin = function () {
|
|
385
397
|
var bLoadFromSupportOrigin = false;
|
|
386
|
-
var coreUri = new
|
|
387
|
-
var supportUri = new
|
|
398
|
+
var coreUri = new URI(sap.ui.require.toUrl("sap/ui/core"));
|
|
399
|
+
var supportUri = new URI(sap.ui.require.toUrl("sap/ui/support"));
|
|
388
400
|
|
|
389
401
|
// If loading support tool from different origin,
|
|
390
402
|
// i.e. protocol or host (host name + port) different
|
|
@@ -490,7 +502,7 @@ sap.ui.define([
|
|
|
490
502
|
var mRules = {};
|
|
491
503
|
|
|
492
504
|
Object.keys(this._mRuleSets).map(function (sLibName) {
|
|
493
|
-
mRules =
|
|
505
|
+
mRules = extend(mRules, this._mRuleSets[sLibName].ruleset.getRules());
|
|
494
506
|
}, this);
|
|
495
507
|
|
|
496
508
|
return mRules;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.98.0
|
|
61
61
|
* @private
|
|
62
62
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
63
63
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/
|
|
8
|
+
"sap/base/util/UriParameters",
|
|
9
9
|
"sap/ui/thirdparty/URI"
|
|
10
10
|
],
|
|
11
|
-
function (
|
|
11
|
+
function (UriParameters, URI) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
var DEFAULT_FRAME_ID = '_unnamed_frame_-_use_message_origin_';
|
|
@@ -44,12 +44,12 @@ function (jQuery, URI) {
|
|
|
44
44
|
WCBConfig.prototype.getFrameId = function () {
|
|
45
45
|
// the opener window assigns a tool frame an ID and includes in as a URI parameter upon opening the frame
|
|
46
46
|
// returns the frame's ID or a default value, when running in an opener window
|
|
47
|
-
return
|
|
47
|
+
return UriParameters.fromQuery(window.location.search).get(this._sURIFrameId) || DEFAULT_FRAME_ID;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
WCBConfig.prototype.getOriginURIParameter = function () {
|
|
51
51
|
// the opener window sets its origin as a URI parameter upon opening the frame
|
|
52
|
-
return
|
|
52
|
+
return UriParameters.fromQuery(window.location.search).get(this._sURIOrigin);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
WCBConfig.prototype.getReceivingWindow = function () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
sap.ui.define([
|
|
11
11
|
"sap/ui/base/Object",
|
|
12
12
|
"sap/base/Log",
|
|
13
|
-
"
|
|
14
|
-
], function (BaseObject, Log,
|
|
13
|
+
"sap/base/util/isEmptyObject"
|
|
14
|
+
], function (BaseObject, Log, isEmptyObject) {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -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.98.0
|
|
30
30
|
* @private
|
|
31
31
|
*/
|
|
32
32
|
var WindowCommunicationBus = BaseObject.extend("sap.ui.support.supportRules.WindowCommunicationBus", {
|
|
@@ -150,7 +150,7 @@ sap.ui.define([
|
|
|
150
150
|
* @returns {boolean} true if the message is valid
|
|
151
151
|
*/
|
|
152
152
|
WindowCommunicationBus.prototype._validate = function (eMessage) {
|
|
153
|
-
if (
|
|
153
|
+
if (isEmptyObject(this._frame)) {
|
|
154
154
|
// there are no channels associated with this bus, or
|
|
155
155
|
// when loaded in a tool frame, the CommumnicationBus class will always have an empty 'frame' object.
|
|
156
156
|
// in this case, a message is sent from the opener to the tool frame and no validation is necessary
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates a zip file
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define(['
|
|
11
|
-
function (
|
|
10
|
+
sap.ui.define(['sap/base/Log', 'sap/base/util/isPlainObject', 'sap/ui/thirdparty/jszip', 'sap/ui/core/util/File'],
|
|
11
|
+
function (Log, isPlainObject, JSZip, File) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -23,29 +23,29 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/thirdparty/jszip', 'sap/ui/core/util
|
|
|
23
23
|
*/
|
|
24
24
|
Archiver.prototype.add = function(sName, vData, sType) {
|
|
25
25
|
if (!sName) {
|
|
26
|
-
|
|
26
|
+
Log.error("Archiver: No name was given.");
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
if (!vData) {
|
|
30
|
-
|
|
30
|
+
Log.error("Archiver: No data was given.");
|
|
31
31
|
return false;
|
|
32
32
|
}
|
|
33
33
|
if (typeof vData === "string") {
|
|
34
34
|
this._mData[sName] = vData;
|
|
35
35
|
return true;
|
|
36
36
|
} else if (sType) {
|
|
37
|
-
if ((sType === "json" || sType === "har") && (
|
|
37
|
+
if ((sType === "json" || sType === "har") && (isPlainObject(vData) || Array.isArray(vData))) {
|
|
38
38
|
try {
|
|
39
39
|
this._mData[sName] = JSON.stringify(vData);
|
|
40
40
|
return true;
|
|
41
41
|
} catch (ex) {
|
|
42
|
-
|
|
42
|
+
Log.error("Archiver: JSON data could not be serialized for " + sName);
|
|
43
43
|
}
|
|
44
44
|
} else {
|
|
45
|
-
|
|
45
|
+
Log.error("Archiver: JSON data could not be serialized for " + sType + ". Either the type is unknown or the data has a wrong format.");
|
|
46
46
|
}
|
|
47
47
|
} else {
|
|
48
|
-
|
|
48
|
+
Log.error("Archiver: Data could not be serialized for " + sName + ". Data is is not a string or has a an invalid type.");
|
|
49
49
|
return false;
|
|
50
50
|
}
|
|
51
51
|
return false;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides methods for information retrieval from the core.
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define(["
|
|
11
|
-
function (
|
|
10
|
+
sap.ui.define(["sap/base/util/LoaderExtensions", 'sap/base/security/encodeXML', "sap/ui/core/Component", "sap/ui/core/support/ToolsAPI", "sap/ui/thirdparty/URI"],
|
|
11
|
+
function (LoaderExtensions, encodeXML, Component, ToolsAPI, URI) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -46,9 +46,9 @@ sap.ui.define(["jquery.sap.global", "sap/ui/core/Component", "sap/ui/core/suppor
|
|
|
46
46
|
this._oSupportAssistantInfo.versionAsString = "not available";
|
|
47
47
|
|
|
48
48
|
if (oVersion) {
|
|
49
|
-
this._oSupportAssistantInfo.versionAsString =
|
|
50
|
-
this._oSupportAssistantInfo.versionAsString += " (built at " +
|
|
51
|
-
this._oSupportAssistantInfo.versionAsString += ", last change " +
|
|
49
|
+
this._oSupportAssistantInfo.versionAsString = encodeXML(oVersion.version || "");
|
|
50
|
+
this._oSupportAssistantInfo.versionAsString += " (built at " + encodeXML(oVersion.buildTimestamp || "");
|
|
51
|
+
this._oSupportAssistantInfo.versionAsString += ", last change " + encodeXML(oVersion.scmRevision || "") + ")";
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -114,13 +114,13 @@ sap.ui.define(["jquery.sap.global", "sap/ui/core/Component", "sap/ui/core/suppor
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
//add absolute paths for resources
|
|
117
|
-
var aModules =
|
|
117
|
+
var aModules = LoaderExtensions.getAllRequiredModules();
|
|
118
118
|
var aResults = [];
|
|
119
119
|
for (var i = 0; i < aModules.length; i++) {
|
|
120
120
|
aResults.push({
|
|
121
121
|
moduleName : aModules[i],
|
|
122
|
-
relativePath:
|
|
123
|
-
absolutePath: URI(
|
|
122
|
+
relativePath: sap.ui.require.toUrl(aModules[i]),
|
|
123
|
+
absolutePath: URI(sap.ui.require.toUrl(aModules[i])).absoluteTo(document.location.origin + document.location.pathname).toString()
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
oTechData.resourcePaths = aResults;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Renders issues
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define(['
|
|
10
|
+
sap.ui.define(['sap/base/Log', 'sap/base/security/encodeXML'], function(Log, encodeXML) {
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
13
|
function getEscapedString(value) {
|
|
14
14
|
if (value) {
|
|
15
15
|
if (Array.isArray(value)) {
|
|
16
|
-
return
|
|
16
|
+
return encodeXML(value.join(', '));
|
|
17
17
|
} else {
|
|
18
|
-
return
|
|
18
|
+
return encodeXML(value);
|
|
19
19
|
}
|
|
20
20
|
} else {
|
|
21
21
|
return '';
|
|
@@ -98,7 +98,7 @@ sap.ui.define(['jquery.sap.global'], function(jQuery) {
|
|
|
98
98
|
|
|
99
99
|
content += '</table>';
|
|
100
100
|
} catch (ex) {
|
|
101
|
-
|
|
101
|
+
Log.warning('There was a problem extracting issues info.');
|
|
102
102
|
content = '';
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -150,7 +150,7 @@ sap.ui.define(['jquery.sap.global'], function(jQuery) {
|
|
|
150
150
|
content += getSeverityFilter('Medium', severities['Medium'], false);
|
|
151
151
|
content += getSeverityFilter('Low', severities['Low'], false);
|
|
152
152
|
} catch (ex) {
|
|
153
|
-
|
|
153
|
+
Log.warning('There was a problem creating severity filters.');
|
|
154
154
|
content = '';
|
|
155
155
|
}
|
|
156
156
|
|