@ui5/webcomponents-theming 1.4.0 → 1.5.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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.5.0](https://github.com/SAP/ui5-webcomponents/compare/v1.4.0...v1.5.0) (2022-07-03)
7
+
8
+
9
+
10
+
11
+
12
+
6
13
  # [1.4.0](https://github.com/SAP/ui5-webcomponents/compare/v1.3.1...v1.4.0) (2022-05-25)
7
14
 
8
15
 
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/master/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # UI5 Web Components - Theming
4
4
 
5
- [![Travis CI Build Status](https://travis-ci.org/SAP/ui5-webcomponents.svg?branch=master)](https://travis-ci.org/SAP/ui5-webcomponents)
6
5
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
6
 
8
7
  Provides common theming assets, used by other UI5 Web Components packages, such as `main` and `fiori`.
@@ -18,16 +17,16 @@ The assets, provided by this package, are additional themes:
18
17
  *Note:* These assets are already imported by the UI5 Web Components packages that need them.
19
18
 
20
19
  ## Resources
21
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
20
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
22
21
  - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
23
22
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
24
23
 
25
24
  ## Support
26
- We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
25
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
27
26
 
28
27
  ## Contribute
29
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/docs/6-contributing/02-conventions-and-guidelines.md).
28
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
30
29
 
31
30
  ## License
32
31
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
33
- This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt) file.
32
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
@@ -310,7 +310,6 @@
310
310
  "--sapLink_Active_Color",
311
311
  "--sapLink_Hover_Color",
312
312
  "--sapLink_SubtleColor",
313
- "--sapLink_Visited_Color",
314
313
  "--sapLinkColor",
315
314
  "--sapList_Active_Background",
316
315
  "--sapList_Active_TextColor",
@@ -35,7 +35,7 @@ const loadThemeProperties = async (themeName) => {
35
35
  throw new Error("[themes] Inlined JSON not supported with static imports of assets. Use dynamic imports of assets or configure JSON imports as URLs");
36
36
  }
37
37
  return (await fetch(themeUrlsByName[themeName])).json();
38
- }
38
+ };
39
39
 
40
40
  ["sap_belize", "sap_belize_hcb", "sap_belize_hcw", "sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_exp", "sap_horizon_hcb", "sap_horizon_hcw"]
41
41
  .forEach(themeName => registerThemePropertiesLoader("@ui5/webcomponents-theming", themeName, loadThemeProperties));
@@ -16,7 +16,7 @@ const loadThemeProperties = async (themeName) => {
16
16
  case "sap_horizon_hcw": return (await import("../assets/themes/sap_horizon_hcw/parameters-bundle.css.json")).default;
17
17
  default: throw "unknown theme"
18
18
  }
19
- }
19
+ };
20
20
 
21
21
  const loadAndCheck = async (themeName) => {
22
22
  const data = await loadThemeProperties(themeName);
@@ -24,7 +24,7 @@ const loadAndCheck = async (themeName) => {
24
24
  throw new Error(`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use 'import ".../Assets-static.js"'. Check the "Assets" documentation for more information.`);
25
25
  }
26
26
  return data;
27
- }
27
+ };
28
28
 
29
29
  ["sap_belize", "sap_belize_hcb", "sap_belize_hcw", "sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_exp", "sap_horizon_hcb", "sap_horizon_hcw"]
30
30
  .forEach(themeName => registerThemePropertiesLoader("@ui5/webcomponents-theming", themeName, loadAndCheck));
@@ -16,8 +16,9 @@ const processFile = async file => {
16
16
  const generate = async () => {
17
17
  const { globby } = await import("globby");
18
18
 
19
- const mainFiles = await globby(path.join(__dirname, "../../../main/src/themes/**/*.css"));
20
- const fioriFiles = await globby(path.join(__dirname, "../../../fiori/src/themes/**/*.css"));
19
+ const mainFiles = await globby(path.join(__dirname, "../../../main/src/themes/**/*.css").replace(/\\/g, "/"));
20
+ const fioriFiles = await globby(path.join(__dirname, "../../../fiori/src/themes/**/*.css").replace(/\\/g, "/"));
21
+
21
22
  await Promise.all([...mainFiles.map(processFile), ...fioriFiles.map(processFile)]);
22
23
 
23
24
  const collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-theming",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "UI5 Web Components: webcomponents.theming",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@sap-theming/theming-base-content": "11.1.38",
32
- "@ui5/webcomponents-base": "1.4.0"
32
+ "@ui5/webcomponents-base": "1.5.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@ui5/webcomponents-tools": "1.4.0",
36
- "chromedriver": "101.0.0",
35
+ "@ui5/webcomponents-tools": "1.5.0",
36
+ "chromedriver": "102.0.0",
37
37
  "cssnano": "^4.1.11",
38
38
  "globby": "^13.1.1",
39
39
  "json-beautify": "^1.1.1",