@openui5/sap.ui.testrecorder 1.149.0 → 1.150.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.toml CHANGED
@@ -225,6 +225,16 @@ SPDX-FileCopyrightText = "jQuery Foundation and other contributors"
225
225
  SPDX-License-Identifier = "MIT"
226
226
  SPDX-FileComment = "these files belong to: QUnit 2.18"
227
227
 
228
+ [[annotations]]
229
+ path = [
230
+ "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.css",
231
+ "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.js"
232
+ ]
233
+ precedence = "aggregate"
234
+ SPDX-FileCopyrightText = "OpenJS Foundation and other contributors"
235
+ SPDX-License-Identifier = "MIT"
236
+ SPDX-FileComment = "these files belong to: QUnit 2.26.0"
237
+
228
238
  [[annotations]]
229
239
  path = "src/sap.ui.core/src/sap/ui/thirdparty/jquery-compat.js"
230
240
  precedence = "aggregate"
@@ -349,6 +359,20 @@ SPDX-FileCopyrightText = "2010-2022, Christian Johansen, christian@cjohansen.no"
349
359
  SPDX-License-Identifier = "BSD-3-Clause"
350
360
  SPDX-FileComment = "these files belong to: SinonJS 14"
351
361
 
362
+ [[annotations]]
363
+ path = "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-22.0.0.js"
364
+ precedence = "aggregate"
365
+ SPDX-FileCopyrightText = "2010-2024, Christian Johansen, christian@cjohansen.no"
366
+ SPDX-License-Identifier = "BSD-3-Clause"
367
+ SPDX-FileComment = "these files belong to: SinonJS 22"
368
+
369
+ [[annotations]]
370
+ path = "src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/nise-6.1.5.js"
371
+ precedence = "aggregate"
372
+ SPDX-FileCopyrightText = "2010-2017, Christian Johansen, christian@cjohansen.no"
373
+ SPDX-License-Identifier = "BSD-3-Clause"
374
+ SPDX-FileComment = "these files belong to: nise"
375
+
352
376
  [[annotations]]
353
377
  path = "src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js"
354
378
  precedence = "aggregate"
package/THIRDPARTY.txt CHANGED
@@ -6,31 +6,31 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.f:
8
8
 
9
- Component: UI5 Web Components, version: 2.19.2
9
+ Component: UI5 Web Components, version: 2.23.2
10
10
  Copyright: SAP
11
11
  License: Apache-2.0
12
12
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
13
13
  Contained in: src/sap.f/src/sap/f/thirdparty/**
14
14
 
15
- Component: UI5 Web Components Fiori, version: 2.19.2
15
+ Component: UI5 Web Components Fiori, version: 2.23.2
16
16
  Copyright: SAP
17
17
  License: Apache-2.0
18
18
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
19
19
  Contained in: src/sap.f/src/sap/f/thirdparty/**
20
20
 
21
- Component: UI5 Web Components Icons, version: 2.19.2
21
+ Component: UI5 Web Components Icons, version: 2.23.2
22
22
  Copyright: SAP
23
23
  License: Apache-2.0
24
24
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
25
25
  Contained in: src/sap.f/src/sap/f/thirdparty/**
26
26
 
27
- Component: UI5 Web Components Icons Business Suite, version: 2.19.2
27
+ Component: UI5 Web Components Icons Business Suite, version: 2.23.1
28
28
  Copyright: SAP
29
29
  License: Apache-2.0
30
30
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
31
31
  Contained in: src/sap.f/src/sap/f/thirdparty/**
32
32
 
33
- Component: UI5 Web Components Icons TNT, version: 2.19.2
33
+ Component: UI5 Web Components Icons TNT, version: 2.23.1
34
34
  Copyright: SAP
35
35
  License: Apache-2.0
36
36
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -134,6 +134,13 @@ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
134
134
  Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.css
135
135
  src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.js
136
136
 
137
+ Component: QUnit 2.26.0, version: 2.26.0
138
+ Copyright: OpenJS Foundation and other contributors
139
+ License: MIT
140
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/MIT.txt
141
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.css
142
+ src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.26.0.js
143
+
137
144
  Component: jQuery-Migrate, version: 3.3.1
138
145
  Copyright: OpenJS Foundation and other contributors
139
146
  License: MIT
@@ -227,6 +234,18 @@ License: BSD-3-Clause
227
234
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
228
235
  Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.js
229
236
 
237
+ Component: SinonJS 22, version: 22.0.0
238
+ Copyright: 2010-2024, Christian Johansen, christian@cjohansen.no
239
+ License: BSD-3-Clause
240
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
241
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-22.0.0.js
242
+
243
+ Component: nise, version: 6.1.5
244
+ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
245
+ License: BSD-3-Clause
246
+ License Text: https://github.com/UI5/openui5/blob/master/LICENSES/BSD-3-Clause.txt
247
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/nise-6.1.5.js
248
+
230
249
  Component: Sinon-qunit, version: 2.0.0
231
250
  Copyright: 2010-2011, Christian Johansen
232
251
  License: BSD-3-Clause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.testrecorder",
3
- "version": "1.149.0",
3
+ "version": "1.150.0",
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.149.0",
18
- "@openui5/sap.ui.codeeditor": "1.149.0",
19
- "@openui5/sap.ui.core": "1.149.0",
20
- "@openui5/sap.ui.layout": "1.149.0",
21
- "@openui5/sap.ui.support": "1.149.0"
17
+ "@openui5/sap.m": "1.150.0",
18
+ "@openui5/sap.ui.codeeditor": "1.150.0",
19
+ "@openui5/sap.ui.core": "1.150.0",
20
+ "@openui5/sap.ui.layout": "1.150.0",
21
+ "@openui5/sap.ui.support": "1.150.0"
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.149.0</version>
9
+ <version>1.150.0</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.149.0
27
+ * @version 1.150.0
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.149.0",
42
+ version: "1.150.0",
43
43
  extensions: {
44
44
  //Configuration used for rule loading of Support Assistant
45
45
  "sap.ui.support": {
@@ -127,11 +127,64 @@ sap.ui.define([], function() {
127
127
  }
128
128
  sQuery = sQuery.toLowerCase().trim();
129
129
 
130
- function matches(value) {
131
- return value != null && String(value).toLowerCase().indexOf(sQuery) !== -1;
130
+ return primitiveMatchesQuery(sQuery, oNode.id) ||
131
+ primitiveMatchesQuery(sQuery, oNode.name) ||
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;
132
145
  }
146
+ return String(vValue).toLowerCase().indexOf(sQuery) !== -1;
147
+ }
133
148
 
134
- return matches(oNode.id) || matches(oNode.name) || matchesObjectKeysOrValues(oNode.data, matches);
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";
135
188
  }
136
189
 
137
190
  /**
@@ -146,27 +199,25 @@ sap.ui.define([], function() {
146
199
  }
147
200
 
148
201
  /**
149
- * Check if any key or value in an object matches the given matcher function.
202
+ * Check if any key or value in an object matches the query.
150
203
  * @param {Object} oObject - Object to check
151
- * @param {Function} fnMatcher - Function that returns true if a value matches
204
+ * @param {string} sQuery - Normalized (lowercase, trimmed) query
152
205
  * @returns {boolean} True if any key or value matches
153
206
  * @private
154
207
  */
155
- function matchesObjectKeysOrValues(oObject, fnMatcher) {
208
+ function matchesObjectKeysOrValues(oObject, sQuery) {
156
209
  if (!oObject || typeof oObject !== 'object') {
157
210
  return false;
158
211
  }
159
212
  var aKeys = Object.keys(oObject);
160
213
  for (var i = 0; i < aKeys.length; i++) {
161
214
  var sKey = aKeys[i];
162
- if (fnMatcher(sKey)) {
215
+ if (primitiveMatchesQuery(sQuery, sKey)) {
163
216
  return true;
164
217
  }
165
218
  var vValue = oObject[sKey];
166
- if (vValue !== null && vValue !== undefined) {
167
- if (fnMatcher(vValue)) {
168
- return true;
169
- }
219
+ if (valueMatchesQuery(sQuery, vValue)) {
220
+ return true;
170
221
  }
171
222
  }
172
223
  return false;