@ui5/webcomponents-base 1.22.0-rc.1 → 1.22.0-rc.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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Some private variable used for creation of (pseudo-)unique IDs.
3
+ * @type int
4
+ * @private
5
+ */ /*!
6
+ * OpenUI5
7
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
9
+ */
10
+
11
+ var iIdCounter = 0;
12
+
13
+ /**
14
+ * Creates and returns a pseudo-unique ID.
15
+ *
16
+ * No means for detection of overlap with already present or future UIDs.
17
+ *
18
+ * @function
19
+ * @since 1.58
20
+ * @alias module:sap/base/util/uid
21
+ * @return {string} A pseudo-unique id.
22
+ * @public
23
+ */
24
+ var fnUid = function uid() {
25
+ return "id-" + new Date().valueOf() + "-" + iIdCounter++;
26
+ };
27
+ export default fnUid;
@@ -2004,7 +2004,7 @@ if (typeof window !== 'undefined') {
2004
2004
  }
2005
2005
  /*!
2006
2006
  * OpenUI5
2007
- * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
2007
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
2008
2008
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
2009
2009
  */
2010
2010
  // Based on coding from the HTML4 Sanitizer by Google Inc.
@@ -5,7 +5,7 @@ const assetParametersScript = resolve.sync("@ui5/webcomponents-base/lib/generate
5
5
  const stylesScript = resolve.sync("@ui5/webcomponents-base/lib/generate-styles/index.js");
6
6
  const versionScript = resolve.sync("@ui5/webcomponents-base/lib/generate-version-info/index.js");
7
7
  const copyUsedModules = resolve.sync("@ui5/webcomponents-tools/lib/copy-list/index.js");
8
- const esmAbsToRel = resolve.sync("@ui5/webcomponents-tools/lib/esm-abs-to-rel/index.js");
8
+ const amdToES6 = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/index.js");
9
9
 
10
10
  const LIB = path.join(__dirname, `../tools/lib/`);
11
11
 
@@ -18,11 +18,9 @@ const scripts = {
18
18
  prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript",
19
19
  typescript: "tsc -b",
20
20
  integrate: {
21
- default: "nps integrate.copy-used-modules integrate.replace-amd integrate.amd-to-es6 integrate.esm-abs-to-rel integrate.third-party",
21
+ default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
22
22
  "copy-used-modules": `node "${copyUsedModules}" ./used-modules.txt dist/`,
23
- "replace-amd": "replace-in-file sap.ui.define define dist/**/*.js",
24
- "amd-to-es6": "amdtoes6 --src=dist/ --replace --glob=**/*.js",
25
- "esm-abs-to-rel": `node "${esmAbsToRel}" dist/ dist/`,
23
+ "amd-to-es6": `node "${amdToES6}" dist/`,
26
24
  "third-party": {
27
25
  default: "nps integrate.third-party.copy integrate.third-party.fix",
28
26
  copy: "mkdirp dist/sap/ui/thirdparty/ && copy-and-watch ../../node_modules/@openui5/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js dist/sap/ui/thirdparty/",
@@ -43,8 +41,8 @@ const scripts = {
43
41
  generateTemplates: `mkdirp src/generated/templates && cross-env UI5_BASE=true UI5_TS=true node "${LIB}/hbs2ui5/index.js" -d test/elements -o src/generated/templates`,
44
42
  generateAPI: {
45
43
  default: "nps generateAPI.generateCEM generateAPI.validateCEM",
46
- generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs"`,
47
- validateCEM: `node "${LIB}/cem/validate.js"`,
44
+ generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
45
+ validateCEM: `node "${LIB}/cem/validate.js" --dev`,
48
46
  },
49
47
  watch: {
50
48
  default: 'concurrently "nps watch.src" "nps watch.styles"',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "1.22.0-rc.1",
3
+ "version": "1.22.0-rc.2",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -38,9 +38,8 @@
38
38
  "lit-html": "^2.0.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@buxlabs/amd-to-es6": "0.16.1",
42
- "@openui5/sap.ui.core": "1.116.0",
43
- "@ui5/webcomponents-tools": "1.22.0-rc.1",
41
+ "@openui5/sap.ui.core": "1.120.3",
42
+ "@ui5/webcomponents-tools": "1.22.0-rc.2",
44
43
  "chromedriver": "119.0.1",
45
44
  "clean-css": "^5.2.2",
46
45
  "copy-and-watch": "^0.1.5",
@@ -50,5 +49,5 @@
50
49
  "replace-in-file": "^6.3.5",
51
50
  "resolve": "^1.20.0"
52
51
  },
53
- "gitHead": "1a4ba450e7d222535ddaf4f1d3b0ff91b020bb2a"
52
+ "gitHead": "7075f9a181e13ac1be2a319b2de876ace16dd564"
54
53
  }
package/used-modules.txt CHANGED
@@ -1,7 +1,11 @@
1
1
  # Needed files from OpenUI5
2
2
 
3
+ # ./ui5loader-autoconfig.js
3
4
  sap/base/util/now.js
5
+ sap/base/util/uid.js
4
6
  sap/base/Log.js
7
+ # sap/base/config.js
8
+ sap/base/config/MemoryConfigurationProvider.js
5
9
  sap/base/assert.js
6
10
  sap/base/security/URLListValidator.js
7
11
  sap/base/security/sanitizeHTML.js