@openui5/sap.ui.testrecorder 1.148.0 → 1.148.2

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
@@ -6,19 +6,19 @@ 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
@@ -39,7 +39,7 @@ Contained in: src/sap.f/src/sap/f/thirdparty/**
39
39
 
40
40
  Library: sap.m:
41
41
 
42
- Component: purify.js, version: 3.2.4
42
+ Component: purify.js, version: 3.4.1
43
43
  Copyright: Mario Heiderich
44
44
  License: Apache-2.0
45
45
  License Text: https://github.com/UI5/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.testrecorder",
3
- "version": "1.148.0",
3
+ "version": "1.148.2",
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.148.0",
18
- "@openui5/sap.ui.codeeditor": "1.148.0",
19
- "@openui5/sap.ui.core": "1.148.0",
20
- "@openui5/sap.ui.layout": "1.148.0",
21
- "@openui5/sap.ui.support": "1.148.0"
17
+ "@openui5/sap.m": "1.148.2",
18
+ "@openui5/sap.ui.codeeditor": "1.148.2",
19
+ "@openui5/sap.ui.core": "1.148.2",
20
+ "@openui5/sap.ui.layout": "1.148.2",
21
+ "@openui5/sap.ui.support": "1.148.2"
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.148.0</version>
9
+ <version>1.148.2</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.148.0
27
+ * @version 1.148.2
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.148.0",
42
+ version: "1.148.2",
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;