@openui5/sap.ui.support 1.71.77 → 1.71.78
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/package.json +7 -7
- 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 +7 -7
- package/src/sap/ui/support/supportRules/Main.js +18 -5
- package/src/sap/ui/support/supportRules/RuleSerializer.js +3 -3
- 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/WindowCommunicationBus.js +1 -1
- package/src/sap/ui/support/supportRules/ui/controllers/Analysis.controller.js +3 -3
- package/src/sap/ui/support/supportRules/ui/controllers/PresetsController.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.support",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.78",
|
|
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,11 +14,11 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.71.
|
|
18
|
-
"@openui5/sap.ui.codeeditor": "1.71.
|
|
19
|
-
"@openui5/sap.ui.core": "1.71.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.71.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.71.
|
|
22
|
-
"@openui5/themelib_sap_belize": "1.71.
|
|
17
|
+
"@openui5/sap.m": "1.71.78",
|
|
18
|
+
"@openui5/sap.ui.codeeditor": "1.71.78",
|
|
19
|
+
"@openui5/sap.ui.core": "1.71.78",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.71.78",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.71.78",
|
|
22
|
+
"@openui5/themelib_sap_belize": "1.71.78"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.71.
|
|
9
|
+
<version>1.71.78</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.support</documentation>
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define(["sap/ui/support/supportRules/Main",
|
|
|
32
32
|
* @deprecated Since version 1.60.0. Please use sap/ui/support/RuleAnalyzer instead.
|
|
33
33
|
* @alias jQuery.sap.support
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.71.
|
|
35
|
+
* @version 1.71.78
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
38
|
jQuery.sap.support = {
|
|
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.support
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.71.
|
|
26
|
+
* @version 1.71.78
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
@@ -41,7 +41,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
41
41
|
controls: [],
|
|
42
42
|
elements: [],
|
|
43
43
|
noLibraryCSS: true,
|
|
44
|
-
version: "1.71.
|
|
44
|
+
version: "1.71.78",
|
|
45
45
|
extensions: {
|
|
46
46
|
//Configuration used for rule loading of Support Assistant
|
|
47
47
|
"sap.ui.support": {
|
|
@@ -53,7 +53,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
53
53
|
/**
|
|
54
54
|
* Defines severity types.
|
|
55
55
|
* @enum {string}
|
|
56
|
-
* @since 1.71.
|
|
56
|
+
* @since 1.71.78
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
59
|
sap.ui.support.Severity = {
|
|
@@ -77,7 +77,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
77
77
|
/**
|
|
78
78
|
* Defines the Audiences.
|
|
79
79
|
* @enum {string}
|
|
80
|
-
* @since 1.71.
|
|
80
|
+
* @since 1.71.78
|
|
81
81
|
* @public
|
|
82
82
|
*/
|
|
83
83
|
sap.ui.support.Audiences = {
|
|
@@ -101,7 +101,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
101
101
|
/**
|
|
102
102
|
* Issue Categories.
|
|
103
103
|
* @enum {string}
|
|
104
|
-
* @since 1.71.
|
|
104
|
+
* @since 1.71.78
|
|
105
105
|
* @public
|
|
106
106
|
*/
|
|
107
107
|
sap.ui.support.Categories = {
|
|
@@ -170,7 +170,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
170
170
|
/**
|
|
171
171
|
* Analysis history formats.
|
|
172
172
|
* @enum {string}
|
|
173
|
-
* @since 1.71.
|
|
173
|
+
* @since 1.71.78
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
sap.ui.support.HistoryFormats = {
|
|
@@ -189,7 +189,7 @@ sap.ui.define(["sap/ui/core/library"],
|
|
|
189
189
|
/**
|
|
190
190
|
* Contains the available system presets.
|
|
191
191
|
* @enum {object}
|
|
192
|
-
* @since 1.71.
|
|
192
|
+
* @since 1.71.78
|
|
193
193
|
* @public
|
|
194
194
|
*/
|
|
195
195
|
sap.ui.support.SystemPresets = {
|
|
@@ -127,7 +127,11 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
127
127
|
|
|
128
128
|
// Validate messages
|
|
129
129
|
CommunicationBus.onMessageChecks.push(function (msg) {
|
|
130
|
-
|
|
130
|
+
try {
|
|
131
|
+
return new window.URL(msg.origin).origin === new window.URL(IFrameController.getFrameOrigin()).origin;
|
|
132
|
+
} catch (e) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
131
135
|
});
|
|
132
136
|
|
|
133
137
|
CommunicationBus.onMessageChecks.push(function (msg) {
|
|
@@ -135,10 +139,19 @@ function (jQuery, ManagedObject, Element, Component, Analyzer, CoreFacade,
|
|
|
135
139
|
});
|
|
136
140
|
|
|
137
141
|
CommunicationBus.onMessageChecks.push(function (msg) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
try {
|
|
143
|
+
var oOriginUrl = new window.URL(msg.data._origin);
|
|
144
|
+
var sFramePath;
|
|
145
|
+
try {
|
|
146
|
+
sFramePath = new window.URL(IFrameController.getFrameUrl()).pathname;
|
|
147
|
+
} catch (e) {
|
|
148
|
+
// relative URL — strip query string and relative path segments manually
|
|
149
|
+
sFramePath = IFrameController.getFrameUrl().split("?")[0].replace(/\.\.\//g, "");
|
|
150
|
+
}
|
|
151
|
+
return oOriginUrl.pathname.endsWith(sFramePath);
|
|
152
|
+
} catch (e) {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
142
155
|
});
|
|
143
156
|
});
|
|
144
157
|
} else {
|
|
@@ -30,11 +30,11 @@ sap.ui.define([],
|
|
|
30
30
|
rule = serializedRule;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/* eslint-disable no-
|
|
33
|
+
/* eslint-disable no-new-func */
|
|
34
34
|
if (!stringifyCheck && rule.check !== undefined) {
|
|
35
|
-
|
|
35
|
+
rule.check = new Function("return (" + rule.check + ")")();
|
|
36
36
|
}
|
|
37
|
-
/* eslint-enable no-
|
|
37
|
+
/* eslint-enable no-new-func */
|
|
38
38
|
|
|
39
39
|
return rule;
|
|
40
40
|
}
|
|
@@ -779,9 +779,9 @@ sap.ui.define([
|
|
|
779
779
|
|
|
780
780
|
checkFunctionString: function (functionString) {
|
|
781
781
|
try {
|
|
782
|
-
/* eslint-disable no-
|
|
783
|
-
|
|
784
|
-
/* eslint-enable no-
|
|
782
|
+
/* eslint-disable no-new-func */
|
|
783
|
+
new Function("return (" + functionString + ")");
|
|
784
|
+
/* eslint-enable no-new-func */
|
|
785
785
|
} catch (err) {
|
|
786
786
|
MessageToast.show("Your check function contains errors, and can't be evaluated:" + err);
|
|
787
787
|
return false;
|