@ui5/webcomponents-base 2.21.0-rc.1 → 2.21.0-rc.3

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/.tsbuildinfobuild +1 -1
  3. package/dist/config/ConfigurationSync.d.ts +16 -0
  4. package/dist/config/ConfigurationSync.js +42 -0
  5. package/dist/config/ConfigurationSync.js.map +1 -0
  6. package/dist/config/Language.js +13 -1
  7. package/dist/config/Language.js.map +1 -1
  8. package/dist/config/Theme.js +9 -1
  9. package/dist/config/Theme.js.map +1 -1
  10. package/dist/custom-elements-internal.json +21 -0
  11. package/dist/custom-elements.json +21 -0
  12. package/dist/generated/AssetParameters.js +1 -1
  13. package/dist/generated/AssetParameters.js.map +1 -1
  14. package/dist/generated/VersionInfo.js +3 -3
  15. package/dist/generated/VersionInfo.js.map +1 -1
  16. package/dist/prod/config/ConfigurationSync.js +2 -0
  17. package/dist/prod/config/ConfigurationSync.js.map +7 -0
  18. package/dist/prod/config/Language.js +1 -1
  19. package/dist/prod/config/Language.js.map +3 -3
  20. package/dist/prod/config/Theme.js +1 -1
  21. package/dist/prod/config/Theme.js.map +3 -3
  22. package/dist/prod/generated/AssetParameters.js +1 -1
  23. package/dist/prod/generated/AssetParameters.js.map +2 -2
  24. package/dist/prod/generated/VersionInfo.js +1 -1
  25. package/dist/prod/generated/VersionInfo.js.map +1 -1
  26. package/dist/prod/sap/base/Log.js +15 -29
  27. package/dist/prod/sap/base/assert.js +1 -1
  28. package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +1 -1
  29. package/dist/prod/sap/base/security/URLListValidator.js +9 -5
  30. package/dist/prod/sap/base/security/encodeCSS.js +1 -1
  31. package/dist/prod/sap/base/security/encodeXML.js +1 -1
  32. package/dist/prod/sap/base/security/sanitizeHTML.js +1 -1
  33. package/dist/prod/sap/base/strings/toHex.js +1 -1
  34. package/dist/prod/sap/base/util/now.js +7 -13
  35. package/dist/prod/sap/base/util/uid.js +1 -1
  36. package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +15 -3
  37. package/dist/prod/util/generateHighlightedMarkupFirstMatch.js +2 -0
  38. package/dist/prod/util/generateHighlightedMarkupFirstMatch.js.map +7 -0
  39. package/dist/sap/base/Log.js +15 -29
  40. package/dist/sap/base/assert.js +1 -1
  41. package/dist/sap/base/config/MemoryConfigurationProvider.js +1 -1
  42. package/dist/sap/base/security/URLListValidator.js +9 -5
  43. package/dist/sap/base/security/encodeCSS.js +1 -1
  44. package/dist/sap/base/security/encodeXML.js +1 -1
  45. package/dist/sap/base/security/sanitizeHTML.js +1 -1
  46. package/dist/sap/base/strings/toHex.js +1 -1
  47. package/dist/sap/base/util/now.js +7 -13
  48. package/dist/sap/base/util/uid.js +1 -1
  49. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +15 -3
  50. package/dist/util/generateHighlightedMarkupFirstMatch.d.ts +10 -0
  51. package/dist/util/generateHighlightedMarkupFirstMatch.js +36 -0
  52. package/dist/util/generateHighlightedMarkupFirstMatch.js.map +1 -0
  53. package/package.json +4 -4
@@ -1,9 +1,8 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- import BaseConfig from "./config.js";
7
6
  import now from "./util/now.js";
8
7
  /**
9
8
  * A Logging API for JavaScript.
@@ -202,8 +201,8 @@ function getLogEntryListenerInstance() {
202
201
  * Name of the component that produced the log entry
203
202
  * @param {function} [fnSupportInfo]
204
203
  * Callback that returns an additional support object to be logged in support mode.
205
- * This function is only called if support info mode is turned on with
206
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
204
+ * This function is only called if support info mode is turned on via
205
+ * the Support Assistant. To avoid negative effects regarding execution times and
207
206
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
208
207
  * static and stable content.
209
208
  * @public
@@ -225,8 +224,8 @@ Log.fatal = function (sMessage, vDetails, sComponent, fnSupportInfo) {
225
224
  * Name of the component that produced the log entry
226
225
  * @param {function} [fnSupportInfo]
227
226
  * Callback that returns an additional support object to be logged in support mode.
228
- * This function is only called if support info mode is turned on with
229
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
227
+ * This function is only called if support info mode is turned on via
228
+ * the Support Assistant. To avoid negative effects regarding execution times and
230
229
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
231
230
  * static and stable content.
232
231
  * @public
@@ -248,8 +247,8 @@ Log.error = function (sMessage, vDetails, sComponent, fnSupportInfo) {
248
247
  * Name of the component that produced the log entry
249
248
  * @param {function} [fnSupportInfo]
250
249
  * Callback that returns an additional support object to be logged in support mode.
251
- * This function is only called if support info mode is turned on with
252
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
250
+ * This function is only called if support info mode is turned on via
251
+ * the Support Assistant. To avoid negative effects regarding execution times and
253
252
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
254
253
  * static and stable content.
255
254
  * @public
@@ -271,8 +270,8 @@ Log.warning = function (sMessage, vDetails, sComponent, fnSupportInfo) {
271
270
  * Name of the component that produced the log entry
272
271
  * @param {function} [fnSupportInfo]
273
272
  * Callback that returns an additional support object to be logged in support mode.
274
- * This function is only called if support info mode is turned on with
275
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
273
+ * This function is only called if support info mode is turned on via
274
+ * the Support Assistant. To avoid negative effects regarding execution times and
276
275
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
277
276
  * static and stable content.
278
277
  * @public
@@ -294,8 +293,8 @@ Log.info = function (sMessage, vDetails, sComponent, fnSupportInfo) {
294
293
  * Name of the component that produced the log entry
295
294
  * @param {function} [fnSupportInfo]
296
295
  * Callback that returns an additional support object to be logged in support mode.
297
- * This function is only called if support info mode is turned on with
298
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
296
+ * This function is only called if support info mode is turned on via
297
+ * the Support Assistant. To avoid negative effects regarding execution times and
299
298
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
300
299
  * static and stable content.
301
300
  * @public
@@ -317,8 +316,8 @@ Log.debug = function (sMessage, vDetails, sComponent, fnSupportInfo) {
317
316
  * Name of the component that produced the log entry
318
317
  * @param {function} [fnSupportInfo]
319
318
  * Callback that returns an additional support object to be logged in support mode.
320
- * This function is only called if support info mode is turned on with
321
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
319
+ * This function is only called if support info mode is turned on via
320
+ * the Support Assistant. To avoid negative effects regarding execution times and
322
321
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
323
322
  * static and stable content.
324
323
  * @public
@@ -418,8 +417,8 @@ Log.logSupportInfo = function (bEnabled) {
418
417
  * @param {string} [sComponent]
419
418
  * The log component under which the message should be logged
420
419
  * @param {function} [fnSupportInfo] Callback that returns an additional support object to be
421
- * logged in support mode. This function is only called if support info mode is turned on with
422
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
420
+ * logged in support mode. This function is only called if support info mode is turned on via
421
+ * the Support Assistant. To avoid negative effects regarding execution times and
423
422
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
424
423
  * static and stable content.
425
424
  * @returns {module:sap/base/Log.Entry}
@@ -734,17 +733,4 @@ Log.getLogger = function (sComponent, iDefaultLogLevel) {
734
733
  }
735
734
  return new Logger(sComponent);
736
735
  };
737
-
738
- // set LogLevel
739
- const sLogLevel = BaseConfig.get({
740
- name: "sapUiLogLevel",
741
- type: BaseConfig.Type.String,
742
- defaultValue: undefined,
743
- external: true
744
- });
745
- if (sLogLevel) {
746
- Log.setLevel(Log.Level[sLogLevel.toUpperCase()] || parseInt(sLogLevel));
747
- } else if (!globalThis["sap-ui-optimized"]) {
748
- Log.setLevel(Log.Level.DEBUG);
749
- }
750
736
  export default Log;
@@ -19,7 +19,7 @@
19
19
  *
20
20
  */ /*!
21
21
  * OpenUI5
22
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
22
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
23
23
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
24
24
  */
25
25
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import uid from "../util/uid.js";
@@ -1,11 +1,11 @@
1
1
  // validation regexes
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
8
- var rBasicUrl = /^(?:([^:\/?#]+):)?((?:[\/\\]{2,}((?:\[[^\]]+\]|[^\/?#:]+))(?::([0-9]+))?)?([^?#]*))(?:\?([^#]*))?(?:#(.*))?$/;
8
+ var rBasicUrl = /^(?:([^:\/?#]+):)?((?:[\/\\]{2,}(?:(?:[^@\/?#]*@)?(\[[^\]]+\]|[^\/?#:]+)(?::([0-9]+))?)?)?([^?#]*))(?:\?([^#]*))?(?:#(.*))?$/;
9
9
  var rCheckPath = /^([a-z0-9-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*$/i;
10
10
  var rCheckQuery = /^([a-z0-9-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*$/i;
11
11
  var rCheckFragment = rCheckQuery;
@@ -104,7 +104,8 @@ oURLListValidator.clear = function () {
104
104
  * @param {string} [protocol] The protocol of the URL, can be falsy to allow all protocols for an entry e.g. "", "http", "mailto"
105
105
  * @param {string} [host] The host of the URL, can be falsy to allow all hosts. A wildcard asterisk can be set at the beginning, e.g. "examples.com", "*.example.com"
106
106
  * @param {string} [port] The port of the URL, can be falsy to allow all ports, e.g. "", "8080"
107
- * @param {string} [path] the path of the URL, path of the url, can be falsy to allow all paths. A wildcard asterisk can be set at the end, e.g. "/my-example*", "/my-news"
107
+ * @param {string} [path] the path of the URL, e.g. "/my-news". Can be falsy to allow all paths. A wildcard asterisk can be set at the end to ensure a path starts with the given string, e.g. "/my-example*".
108
+ * When using wildcards, make sure to only provide normalized URLs to the validate function in order to mitigate the risk of path traversal attacks.
108
109
  * @public
109
110
  */
110
111
  oURLListValidator.add = function (protocol, host, port, path) {
@@ -139,13 +140,16 @@ oURLListValidator.entries = function () {
139
140
  * Validates a URL. Check if it's not a script or other security issue.
140
141
  *
141
142
  * <b>Note</b>:
142
- * It is strongly recommended to validate only absolute URLs. There's almost no case
143
+ * It is strongly recommended to validate only absolute, normalized URLs. There's almost no case
143
144
  * where checking only the path of a URL would allow to ensure its validity.
144
- * For compatibility reasons, this API cannot automatically resolve URLs relative to
145
+ * For compatibility reasons, this API does not normalize URLs and cannot automatically resolve URLs relative to
145
146
  * <code>document.baseURI</code>, but callers should do so. In that case, and when the
146
147
  * allow list is not empty, an entry for the origin of <code>document.baseURI</code>
147
148
  * must be added to the allow list.
148
149
  *
150
+ * Any measures to mitigate path traversal or similar attack vectors must be taken by the caller, e.g. by using the
151
+ * {@link https://developer.mozilla.org/docs/Web/API/URL URL} API to normalize the URL beforehand.
152
+ *
149
153
  * <h3>Details</h3>
150
154
  * Splits the given URL into components and checks for allowed characters according to RFC 3986:
151
155
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import toHex from "../strings/toHex.js";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import toHex from "../strings/toHex.js";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  /*
@@ -15,7 +15,7 @@
15
15
  * @returns {string} padded hex representation of the given character code
16
16
  */ /*!
17
17
  * OpenUI5
18
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
18
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
19
19
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
20
20
  */
21
21
  /*
@@ -1,9 +1,6 @@
1
- // @evo-todo window.performance does not exist on node.js, but there is a module performance-now. Maybe use it
2
-
3
1
  /**
4
- * Returns a high resolution timestamp in microseconds if supported by the environment, otherwise in milliseconds.
5
- * The timestamp is based on 01/01/1970 00:00:00 (UNIX epoch) as float with microsecond precision or
6
- * with millisecond precision, if high resolution timestamps are not available.
2
+ * Returns a high resolution timestamp in microseconds.
3
+ * The timestamp is based on 01/01/1970 00:00:00 (UNIX epoch) as float with microsecond precision.
7
4
  * The fractional part of the timestamp represents fractions of a millisecond.
8
5
  * Converting to a <code>Date</code> is possible by using <code>require(["sap/base/util/now"], function(now){new Date(now());}</code>
9
6
  *
@@ -11,18 +8,15 @@
11
8
  * @since 1.58
12
9
  * @public
13
10
  * @alias module:sap/base/util/now
14
- * @returns {float} timestamp in microseconds if supported by the environment otherwise in milliseconds
11
+ * @returns {float} timestamp in microseconds
15
12
  */ /*!
16
13
  * OpenUI5
17
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
14
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
18
15
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
19
16
  */
20
17
  /*global performance */
21
18
 
22
- var fnNow = !(typeof window != "undefined" && window.performance && performance.now && performance.timing) ? Date.now : function () {
23
- var iNavigationStart = performance.timing.navigationStart;
24
- return function perfnow() {
25
- return iNavigationStart + performance.now();
26
- };
27
- }();
19
+ var fnNow = function now() {
20
+ return performance.timeOrigin + performance.now();
21
+ };
28
22
  export default fnNow;
@@ -4,7 +4,7 @@
4
4
  * @private
5
5
  */ /*!
6
6
  * OpenUI5
7
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
9
9
  */
10
10
 
@@ -118,7 +118,11 @@ var cssSchema = (function () {
118
118
  'inset' ], [ 'invert' ], [ 'justify' ], [ 'local' ], [ 'medium' ], [
119
119
  'mix' ], [ 'none' ], [ 'normal' ], [ 'once' ], [ 'repeat' ], [ 'scroll'
120
120
  ], [ 'separate' ], [ 'small-caps' ], [ 'spell-out' ], [ 'transparent' ],
121
- [ 'visible' ] ];
121
+ [ 'visible' ],
122
+ // ##### BEGIN: MODIFIED BY SAP
123
+ [ 'flex', 'inline-flex', 'grid', 'inline-grid', 'flow-root', 'contents' ], [ 'initial', 'revert', 'revert-layer', 'unset' ]
124
+ // ##### END: MODIFIED BY SAP
125
+ ];
122
126
  return {
123
127
  '-moz-border-radius': {
124
128
  'cssExtra': c[ 0 ],
@@ -440,7 +444,9 @@ var cssSchema = (function () {
440
444
  },
441
445
  'display': {
442
446
  'cssPropBits': 32,
443
- 'cssLitGroup': [ L[ 2 ], L[ 47 ], L[ 54 ] ]
447
+ // ##### BEGIN: MODIFIED BY SAP
448
+ 'cssLitGroup': [ L[ 2 ], L[ 47 ], L[ 54 ], L[ 64 ], L[ 65 ] ]
449
+ // ##### END: MODIFIED BY SAP
444
450
  },
445
451
  'elevation': {
446
452
  'cssPropBits': 5,
@@ -707,6 +713,12 @@ var cssSchema = (function () {
707
713
  'cssPropBits': 0,
708
714
  'cssLitGroup': [ L[ 18 ], L[ 47 ], L[ 54 ] ]
709
715
  },
716
+ // ##### BEGIN: MODIFIED BY SAP
717
+ 'text-decoration-line': {
718
+ 'cssPropBits': 0,
719
+ 'cssLitGroup': [ L[ 18 ], L[ 47 ], L[ 54 ] ]
720
+ },
721
+ // ##### END: MODIFIED BY SAP
710
722
  'text-indent': {
711
723
  'cssPropBits': 5,
712
724
  'cssLitGroup': [ L[ 47 ] ]
@@ -2004,7 +2016,7 @@ if (typeof window !== 'undefined') {
2004
2016
  }
2005
2017
  /*!
2006
2018
  * OpenUI5
2007
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
2019
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
2008
2020
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
2009
2021
  */
2010
2022
  // Based on coding from the HTML4 Sanitizer by Google Inc.
@@ -0,0 +1,2 @@
1
+ "use strict";import u from"./escapeRegex.js";import r from"../sap/base/security/encodeXML.js";function m(o,s){const e=o||"";if(!e||!s)return r(e);const i=s.toLowerCase(),n=e.toLowerCase(),a=s.length;let t=n.search(new RegExp(`(^|\\s)${u(i)}`));if(t!==-1&&n[t]===" "&&t++,t===-1)return r(e);const c=r(e.substring(0,t)),g=r(e.substring(t,t+a)),f=r(e.substring(t+a));return`${c}<b>${g}</b>${f}`}export default m;
2
+ //# sourceMappingURL=generateHighlightedMarkupFirstMatch.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/util/generateHighlightedMarkupFirstMatch.ts"],
4
+ "sourcesContent": ["import escapeRegex from \"./escapeRegex.js\";\n// @ts-expect-error\nimport encodeXML from \"../sap/base/security/encodeXML.js\";\n\n/**\n * Generate markup for a raw string where the first match following StartsWithPerTerm pattern is wrapped with `<b>` tag.\n * StartsWithPerTerm pattern: finds the first word (at start or after whitespace) that starts with the search text.\n * All inputs to this function are considered literal text, and special characters will always be escaped.\n * @param {string} text The text to add highlighting to\n * @param {string} textToHighlight The text which should be highlighted (case-insensitive)\n * @return {string} the markup HTML which contains the first match surrounded with a `<b>` tag.\n */\nfunction generateHighlightedMarkupFirstMatch(text: string, textToHighlight: string): string {\n\tconst normalizedText = text || \"\";\n\n\tif (!normalizedText || !textToHighlight) {\n\t\treturn encodeXML(normalizedText) as string;\n\t}\n\n\tconst filterValue = textToHighlight.toLowerCase();\n\tconst lowerText = normalizedText.toLowerCase();\n\tconst matchLength = textToHighlight.length;\n\n\t// Find the first word that starts with textToHighlight (StartsWithPerTerm pattern)\n\tlet matchIndex = lowerText.search(new RegExp(`(^|\\\\s)${escapeRegex(filterValue)}`));\n\tif (matchIndex !== -1 && lowerText[matchIndex] === \" \") {\n\t\tmatchIndex++; // Skip the space\n\t}\n\n\t// If no match found, return encoded text\n\tif (matchIndex === -1) {\n\t\treturn encodeXML(normalizedText) as string;\n\t}\n\n\t// Build highlighted markup with only the first match\n\tconst beforeMatch = encodeXML(normalizedText.substring(0, matchIndex)) as string;\n\tconst match = encodeXML(normalizedText.substring(matchIndex, matchIndex + matchLength)) as string;\n\tconst afterMatch = encodeXML(normalizedText.substring(matchIndex + matchLength)) as string;\n\n\treturn `${beforeMatch}<b>${match}</b>${afterMatch}`;\n}\n\nexport default generateHighlightedMarkupFirstMatch;\n"],
5
+ "mappings": "aAAA,OAAOA,MAAiB,mBAExB,OAAOC,MAAe,oCAUtB,SAASC,EAAoCC,EAAcC,EAAiC,CAC3F,MAAMC,EAAiBF,GAAQ,GAE/B,GAAI,CAACE,GAAkB,CAACD,EACvB,OAAOH,EAAUI,CAAc,EAGhC,MAAMC,EAAcF,EAAgB,YAAY,EAC1CG,EAAYF,EAAe,YAAY,EACvCG,EAAcJ,EAAgB,OAGpC,IAAIK,EAAaF,EAAU,OAAO,IAAI,OAAO,UAAUP,EAAYM,CAAW,CAAC,EAAE,CAAC,EAMlF,GALIG,IAAe,IAAMF,EAAUE,CAAU,IAAM,KAClDA,IAIGA,IAAe,GAClB,OAAOR,EAAUI,CAAc,EAIhC,MAAMK,EAAcT,EAAUI,EAAe,UAAU,EAAGI,CAAU,CAAC,EAC/DE,EAAQV,EAAUI,EAAe,UAAUI,EAAYA,EAAaD,CAAW,CAAC,EAChFI,EAAaX,EAAUI,EAAe,UAAUI,EAAaD,CAAW,CAAC,EAE/E,MAAO,GAAGE,CAAW,MAAMC,CAAK,OAAOC,CAAU,EAClD,CAEA,eAAeV",
6
+ "names": ["escapeRegex", "encodeXML", "generateHighlightedMarkupFirstMatch", "text", "textToHighlight", "normalizedText", "filterValue", "lowerText", "matchLength", "matchIndex", "beforeMatch", "match", "afterMatch"]
7
+ }
@@ -1,9 +1,8 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- import BaseConfig from "./config.js";
7
6
  import now from "./util/now.js";
8
7
  /**
9
8
  * A Logging API for JavaScript.
@@ -202,8 +201,8 @@ function getLogEntryListenerInstance() {
202
201
  * Name of the component that produced the log entry
203
202
  * @param {function} [fnSupportInfo]
204
203
  * Callback that returns an additional support object to be logged in support mode.
205
- * This function is only called if support info mode is turned on with
206
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
204
+ * This function is only called if support info mode is turned on via
205
+ * the Support Assistant. To avoid negative effects regarding execution times and
207
206
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
208
207
  * static and stable content.
209
208
  * @public
@@ -225,8 +224,8 @@ Log.fatal = function (sMessage, vDetails, sComponent, fnSupportInfo) {
225
224
  * Name of the component that produced the log entry
226
225
  * @param {function} [fnSupportInfo]
227
226
  * Callback that returns an additional support object to be logged in support mode.
228
- * This function is only called if support info mode is turned on with
229
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
227
+ * This function is only called if support info mode is turned on via
228
+ * the Support Assistant. To avoid negative effects regarding execution times and
230
229
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
231
230
  * static and stable content.
232
231
  * @public
@@ -248,8 +247,8 @@ Log.error = function (sMessage, vDetails, sComponent, fnSupportInfo) {
248
247
  * Name of the component that produced the log entry
249
248
  * @param {function} [fnSupportInfo]
250
249
  * Callback that returns an additional support object to be logged in support mode.
251
- * This function is only called if support info mode is turned on with
252
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
250
+ * This function is only called if support info mode is turned on via
251
+ * the Support Assistant. To avoid negative effects regarding execution times and
253
252
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
254
253
  * static and stable content.
255
254
  * @public
@@ -271,8 +270,8 @@ Log.warning = function (sMessage, vDetails, sComponent, fnSupportInfo) {
271
270
  * Name of the component that produced the log entry
272
271
  * @param {function} [fnSupportInfo]
273
272
  * Callback that returns an additional support object to be logged in support mode.
274
- * This function is only called if support info mode is turned on with
275
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
273
+ * This function is only called if support info mode is turned on via
274
+ * the Support Assistant. To avoid negative effects regarding execution times and
276
275
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
277
276
  * static and stable content.
278
277
  * @public
@@ -294,8 +293,8 @@ Log.info = function (sMessage, vDetails, sComponent, fnSupportInfo) {
294
293
  * Name of the component that produced the log entry
295
294
  * @param {function} [fnSupportInfo]
296
295
  * Callback that returns an additional support object to be logged in support mode.
297
- * This function is only called if support info mode is turned on with
298
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
296
+ * This function is only called if support info mode is turned on via
297
+ * the Support Assistant. To avoid negative effects regarding execution times and
299
298
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
300
299
  * static and stable content.
301
300
  * @public
@@ -317,8 +316,8 @@ Log.debug = function (sMessage, vDetails, sComponent, fnSupportInfo) {
317
316
  * Name of the component that produced the log entry
318
317
  * @param {function} [fnSupportInfo]
319
318
  * Callback that returns an additional support object to be logged in support mode.
320
- * This function is only called if support info mode is turned on with
321
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
319
+ * This function is only called if support info mode is turned on via
320
+ * the Support Assistant. To avoid negative effects regarding execution times and
322
321
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
323
322
  * static and stable content.
324
323
  * @public
@@ -418,8 +417,8 @@ Log.logSupportInfo = function (bEnabled) {
418
417
  * @param {string} [sComponent]
419
418
  * The log component under which the message should be logged
420
419
  * @param {function} [fnSupportInfo] Callback that returns an additional support object to be
421
- * logged in support mode. This function is only called if support info mode is turned on with
422
- * <code>logSupportInfo(true)</code>. To avoid negative effects regarding execution times and
420
+ * logged in support mode. This function is only called if support info mode is turned on via
421
+ * the Support Assistant. To avoid negative effects regarding execution times and
423
422
  * memory consumption, the returned object should be a simple immutable JSON object with mostly
424
423
  * static and stable content.
425
424
  * @returns {module:sap/base/Log.Entry}
@@ -734,17 +733,4 @@ Log.getLogger = function (sComponent, iDefaultLogLevel) {
734
733
  }
735
734
  return new Logger(sComponent);
736
735
  };
737
-
738
- // set LogLevel
739
- const sLogLevel = BaseConfig.get({
740
- name: "sapUiLogLevel",
741
- type: BaseConfig.Type.String,
742
- defaultValue: undefined,
743
- external: true
744
- });
745
- if (sLogLevel) {
746
- Log.setLevel(Log.Level[sLogLevel.toUpperCase()] || parseInt(sLogLevel));
747
- } else if (!globalThis["sap-ui-optimized"]) {
748
- Log.setLevel(Log.Level.DEBUG);
749
- }
750
736
  export default Log;
@@ -19,7 +19,7 @@
19
19
  *
20
20
  */ /*!
21
21
  * OpenUI5
22
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
22
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
23
23
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
24
24
  */
25
25
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import uid from "../util/uid.js";
@@ -1,11 +1,11 @@
1
1
  // validation regexes
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
8
- var rBasicUrl = /^(?:([^:\/?#]+):)?((?:[\/\\]{2,}((?:\[[^\]]+\]|[^\/?#:]+))(?::([0-9]+))?)?([^?#]*))(?:\?([^#]*))?(?:#(.*))?$/;
8
+ var rBasicUrl = /^(?:([^:\/?#]+):)?((?:[\/\\]{2,}(?:(?:[^@\/?#]*@)?(\[[^\]]+\]|[^\/?#:]+)(?::([0-9]+))?)?)?([^?#]*))(?:\?([^#]*))?(?:#(.*))?$/;
9
9
  var rCheckPath = /^([a-z0-9-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*$/i;
10
10
  var rCheckQuery = /^([a-z0-9-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*$/i;
11
11
  var rCheckFragment = rCheckQuery;
@@ -104,7 +104,8 @@ oURLListValidator.clear = function () {
104
104
  * @param {string} [protocol] The protocol of the URL, can be falsy to allow all protocols for an entry e.g. "", "http", "mailto"
105
105
  * @param {string} [host] The host of the URL, can be falsy to allow all hosts. A wildcard asterisk can be set at the beginning, e.g. "examples.com", "*.example.com"
106
106
  * @param {string} [port] The port of the URL, can be falsy to allow all ports, e.g. "", "8080"
107
- * @param {string} [path] the path of the URL, path of the url, can be falsy to allow all paths. A wildcard asterisk can be set at the end, e.g. "/my-example*", "/my-news"
107
+ * @param {string} [path] the path of the URL, e.g. "/my-news". Can be falsy to allow all paths. A wildcard asterisk can be set at the end to ensure a path starts with the given string, e.g. "/my-example*".
108
+ * When using wildcards, make sure to only provide normalized URLs to the validate function in order to mitigate the risk of path traversal attacks.
108
109
  * @public
109
110
  */
110
111
  oURLListValidator.add = function (protocol, host, port, path) {
@@ -139,13 +140,16 @@ oURLListValidator.entries = function () {
139
140
  * Validates a URL. Check if it's not a script or other security issue.
140
141
  *
141
142
  * <b>Note</b>:
142
- * It is strongly recommended to validate only absolute URLs. There's almost no case
143
+ * It is strongly recommended to validate only absolute, normalized URLs. There's almost no case
143
144
  * where checking only the path of a URL would allow to ensure its validity.
144
- * For compatibility reasons, this API cannot automatically resolve URLs relative to
145
+ * For compatibility reasons, this API does not normalize URLs and cannot automatically resolve URLs relative to
145
146
  * <code>document.baseURI</code>, but callers should do so. In that case, and when the
146
147
  * allow list is not empty, an entry for the origin of <code>document.baseURI</code>
147
148
  * must be added to the allow list.
148
149
  *
150
+ * Any measures to mitigate path traversal or similar attack vectors must be taken by the caller, e.g. by using the
151
+ * {@link https://developer.mozilla.org/docs/Web/API/URL URL} API to normalize the URL beforehand.
152
+ *
149
153
  * <h3>Details</h3>
150
154
  * Splits the given URL into components and checks for allowed characters according to RFC 3986:
151
155
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import toHex from "../strings/toHex.js";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  import toHex from "../strings/toHex.js";
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  /*
@@ -15,7 +15,7 @@
15
15
  * @returns {string} padded hex representation of the given character code
16
16
  */ /*!
17
17
  * OpenUI5
18
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
18
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
19
19
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
20
20
  */
21
21
  /*
@@ -1,9 +1,6 @@
1
- // @evo-todo window.performance does not exist on node.js, but there is a module performance-now. Maybe use it
2
-
3
1
  /**
4
- * Returns a high resolution timestamp in microseconds if supported by the environment, otherwise in milliseconds.
5
- * The timestamp is based on 01/01/1970 00:00:00 (UNIX epoch) as float with microsecond precision or
6
- * with millisecond precision, if high resolution timestamps are not available.
2
+ * Returns a high resolution timestamp in microseconds.
3
+ * The timestamp is based on 01/01/1970 00:00:00 (UNIX epoch) as float with microsecond precision.
7
4
  * The fractional part of the timestamp represents fractions of a millisecond.
8
5
  * Converting to a <code>Date</code> is possible by using <code>require(["sap/base/util/now"], function(now){new Date(now());}</code>
9
6
  *
@@ -11,18 +8,15 @@
11
8
  * @since 1.58
12
9
  * @public
13
10
  * @alias module:sap/base/util/now
14
- * @returns {float} timestamp in microseconds if supported by the environment otherwise in milliseconds
11
+ * @returns {float} timestamp in microseconds
15
12
  */ /*!
16
13
  * OpenUI5
17
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
14
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
18
15
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
19
16
  */
20
17
  /*global performance */
21
18
 
22
- var fnNow = !(typeof window != "undefined" && window.performance && performance.now && performance.timing) ? Date.now : function () {
23
- var iNavigationStart = performance.timing.navigationStart;
24
- return function perfnow() {
25
- return iNavigationStart + performance.now();
26
- };
27
- }();
19
+ var fnNow = function now() {
20
+ return performance.timeOrigin + performance.now();
21
+ };
28
22
  export default fnNow;
@@ -4,7 +4,7 @@
4
4
  * @private
5
5
  */ /*!
6
6
  * OpenUI5
7
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
9
9
  */
10
10
 
@@ -118,7 +118,11 @@ var cssSchema = (function () {
118
118
  'inset' ], [ 'invert' ], [ 'justify' ], [ 'local' ], [ 'medium' ], [
119
119
  'mix' ], [ 'none' ], [ 'normal' ], [ 'once' ], [ 'repeat' ], [ 'scroll'
120
120
  ], [ 'separate' ], [ 'small-caps' ], [ 'spell-out' ], [ 'transparent' ],
121
- [ 'visible' ] ];
121
+ [ 'visible' ],
122
+ // ##### BEGIN: MODIFIED BY SAP
123
+ [ 'flex', 'inline-flex', 'grid', 'inline-grid', 'flow-root', 'contents' ], [ 'initial', 'revert', 'revert-layer', 'unset' ]
124
+ // ##### END: MODIFIED BY SAP
125
+ ];
122
126
  return {
123
127
  '-moz-border-radius': {
124
128
  'cssExtra': c[ 0 ],
@@ -440,7 +444,9 @@ var cssSchema = (function () {
440
444
  },
441
445
  'display': {
442
446
  'cssPropBits': 32,
443
- 'cssLitGroup': [ L[ 2 ], L[ 47 ], L[ 54 ] ]
447
+ // ##### BEGIN: MODIFIED BY SAP
448
+ 'cssLitGroup': [ L[ 2 ], L[ 47 ], L[ 54 ], L[ 64 ], L[ 65 ] ]
449
+ // ##### END: MODIFIED BY SAP
444
450
  },
445
451
  'elevation': {
446
452
  'cssPropBits': 5,
@@ -707,6 +713,12 @@ var cssSchema = (function () {
707
713
  'cssPropBits': 0,
708
714
  'cssLitGroup': [ L[ 18 ], L[ 47 ], L[ 54 ] ]
709
715
  },
716
+ // ##### BEGIN: MODIFIED BY SAP
717
+ 'text-decoration-line': {
718
+ 'cssPropBits': 0,
719
+ 'cssLitGroup': [ L[ 18 ], L[ 47 ], L[ 54 ] ]
720
+ },
721
+ // ##### END: MODIFIED BY SAP
710
722
  'text-indent': {
711
723
  'cssPropBits': 5,
712
724
  'cssLitGroup': [ L[ 47 ] ]
@@ -2004,7 +2016,7 @@ if (typeof window !== 'undefined') {
2004
2016
  }
2005
2017
  /*!
2006
2018
  * OpenUI5
2007
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
2019
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
2008
2020
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
2009
2021
  */
2010
2022
  // Based on coding from the HTML4 Sanitizer by Google Inc.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generate markup for a raw string where the first match following StartsWithPerTerm pattern is wrapped with `<b>` tag.
3
+ * StartsWithPerTerm pattern: finds the first word (at start or after whitespace) that starts with the search text.
4
+ * All inputs to this function are considered literal text, and special characters will always be escaped.
5
+ * @param {string} text The text to add highlighting to
6
+ * @param {string} textToHighlight The text which should be highlighted (case-insensitive)
7
+ * @return {string} the markup HTML which contains the first match surrounded with a `<b>` tag.
8
+ */
9
+ declare function generateHighlightedMarkupFirstMatch(text: string, textToHighlight: string): string;
10
+ export default generateHighlightedMarkupFirstMatch;