@openui5/sap.ui.testrecorder 1.148.1 → 1.149.1
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
CHANGED
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
|
310
310
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/bignumber.js
|
|
311
311
|
|
|
312
|
-
Component: lodash, version: 4.
|
|
312
|
+
Component: lodash, version: 4.18.1
|
|
313
313
|
Copyright: OpenJS Foundation and other contributors
|
|
314
314
|
License: MIT
|
|
315
315
|
License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.testrecorder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.149.1",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.testrecorder",
|
|
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/UI5/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.layout": "1.
|
|
21
|
-
"@openui5/sap.ui.support": "1.
|
|
17
|
+
"@openui5/sap.m": "1.149.1",
|
|
18
|
+
"@openui5/sap.ui.codeeditor": "1.149.1",
|
|
19
|
+
"@openui5/sap.ui.core": "1.149.1",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.149.1",
|
|
21
|
+
"@openui5/sap.ui.support": "1.149.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 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.
|
|
9
|
+
<version>1.149.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.testrecorder</documentation>
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.testrecorder
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.149.1
|
|
28
28
|
* @since 1.74
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
controls: [],
|
|
40
40
|
elements: [],
|
|
41
41
|
noLibraryCSS: true,
|
|
42
|
-
version: "1.
|
|
42
|
+
version: "1.149.1",
|
|
43
43
|
extensions: {
|
|
44
44
|
//Configuration used for rule loading of Support Assistant
|
|
45
45
|
"sap.ui.support": {
|
|
@@ -127,64 +127,11 @@ sap.ui.define([], function() {
|
|
|
127
127
|
}
|
|
128
128
|
sQuery = sQuery.toLowerCase().trim();
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
matchesObjectKeysOrValues(oNode.data, sQuery);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Case-insensitive substring match for a primitive value against a normalized query.
|
|
137
|
-
* @param {string} sQuery - Normalized (lowercase, trimmed) query
|
|
138
|
-
* @param {*} vValue - Primitive value to compare
|
|
139
|
-
* @returns {boolean} True if the value matches the query
|
|
140
|
-
* @private
|
|
141
|
-
*/
|
|
142
|
-
function primitiveMatchesQuery(sQuery, vValue) {
|
|
143
|
-
if (!isPrimitiveValue(vValue)) {
|
|
144
|
-
return false;
|
|
130
|
+
function matches(value) {
|
|
131
|
+
return value != null && String(value).toLowerCase().indexOf(sQuery) !== -1;
|
|
145
132
|
}
|
|
146
|
-
return String(vValue).toLowerCase().indexOf(sQuery) !== -1;
|
|
147
|
-
}
|
|
148
133
|
|
|
149
|
-
|
|
150
|
-
* Whether a data value matches the query. Objects and functions are skipped.
|
|
151
|
-
* Arrays are matched element-wise when elements are primitives.
|
|
152
|
-
* @param {string} sQuery - Normalized (lowercase, trimmed) query
|
|
153
|
-
* @param {*} vValue - Property or association value from node.data
|
|
154
|
-
* @returns {boolean} True if the value matches the query
|
|
155
|
-
* @private
|
|
156
|
-
*/
|
|
157
|
-
function valueMatchesQuery(sQuery, vValue) {
|
|
158
|
-
if (vValue == null) {
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
if (Array.isArray(vValue)) {
|
|
162
|
-
for (var i = 0; i < vValue.length; i++) {
|
|
163
|
-
if (isPrimitiveValue(vValue[i]) && primitiveMatchesQuery(sQuery, vValue[i])) {
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return false;
|
|
168
|
-
}
|
|
169
|
-
if (typeof vValue === "object" || typeof vValue === "function") {
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
return primitiveMatchesQuery(sQuery, vValue);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Whether a value is a JavaScript primitive suitable for query matching.
|
|
177
|
-
* @param {*} vValue - Value to check
|
|
178
|
-
* @returns {boolean} True if the value is a primitive
|
|
179
|
-
* @private
|
|
180
|
-
*/
|
|
181
|
-
function isPrimitiveValue(vValue) {
|
|
182
|
-
if (vValue == null) {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
var sType = typeof vValue;
|
|
186
|
-
return sType === "string" || sType === "number" || sType === "boolean" ||
|
|
187
|
-
sType === "bigint" || sType === "symbol";
|
|
134
|
+
return matches(oNode.id) || matches(oNode.name) || matchesObjectKeysOrValues(oNode.data, matches);
|
|
188
135
|
}
|
|
189
136
|
|
|
190
137
|
/**
|
|
@@ -199,25 +146,27 @@ sap.ui.define([], function() {
|
|
|
199
146
|
}
|
|
200
147
|
|
|
201
148
|
/**
|
|
202
|
-
* Check if any key or value in an object matches the
|
|
149
|
+
* Check if any key or value in an object matches the given matcher function.
|
|
203
150
|
* @param {Object} oObject - Object to check
|
|
204
|
-
* @param {
|
|
151
|
+
* @param {Function} fnMatcher - Function that returns true if a value matches
|
|
205
152
|
* @returns {boolean} True if any key or value matches
|
|
206
153
|
* @private
|
|
207
154
|
*/
|
|
208
|
-
function matchesObjectKeysOrValues(oObject,
|
|
155
|
+
function matchesObjectKeysOrValues(oObject, fnMatcher) {
|
|
209
156
|
if (!oObject || typeof oObject !== 'object') {
|
|
210
157
|
return false;
|
|
211
158
|
}
|
|
212
159
|
var aKeys = Object.keys(oObject);
|
|
213
160
|
for (var i = 0; i < aKeys.length; i++) {
|
|
214
161
|
var sKey = aKeys[i];
|
|
215
|
-
if (
|
|
162
|
+
if (fnMatcher(sKey)) {
|
|
216
163
|
return true;
|
|
217
164
|
}
|
|
218
165
|
var vValue = oObject[sKey];
|
|
219
|
-
if (
|
|
220
|
-
|
|
166
|
+
if (vValue !== null && vValue !== undefined) {
|
|
167
|
+
if (fnMatcher(vValue)) {
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
221
170
|
}
|
|
222
171
|
}
|
|
223
172
|
return false;
|