@ui5/webcomponents-theming 0.0.0-deac3098a → 0.0.0-e55c2cec6

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 (65) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +5 -6
  3. package/config/postcss.themes/postcss.config.js +1 -1
  4. package/css-vars-usage.json +91 -5
  5. package/dist/Assets-static.d.ts +1 -0
  6. package/dist/Assets-static.js +1 -0
  7. package/dist/Assets-static.js.map +1 -0
  8. package/dist/Assets.d.ts +1 -0
  9. package/dist/Assets.js +1 -0
  10. package/dist/Assets.js.map +1 -0
  11. package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
  12. package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
  13. package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
  14. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  15. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  16. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  17. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  18. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  19. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  20. package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
  21. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  22. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  23. package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
  24. package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
  25. package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
  26. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  27. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  28. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  29. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  30. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  31. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  32. package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
  33. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  34. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  35. package/dist/generated/json-imports/Themes-static.js +1 -1
  36. package/dist/generated/json-imports/Themes.js +2 -2
  37. package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
  38. package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
  39. package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
  40. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  41. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  42. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  43. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  44. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  45. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  46. package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
  47. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  48. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  49. package/dist/themes/sap_belize/css_variables.css +101 -27
  50. package/dist/themes/sap_belize_hcb/css_variables.css +88 -14
  51. package/dist/themes/sap_belize_hcw/css_variables.css +88 -14
  52. package/dist/themes/sap_fiori_3/css_variables.css +101 -27
  53. package/dist/themes/sap_fiori_3_dark/css_variables.css +90 -16
  54. package/dist/themes/sap_fiori_3_hcb/css_variables.css +88 -14
  55. package/dist/themes/sap_fiori_3_hcw/css_variables.css +88 -14
  56. package/dist/themes/sap_horizon/css_variables.css +96 -22
  57. package/dist/themes/sap_horizon_dark/css_variables.css +98 -24
  58. package/dist/themes/sap_horizon_exp/css_variables.css +96 -22
  59. package/dist/themes/sap_horizon_hcb/css_variables.css +92 -18
  60. package/dist/themes/sap_horizon_hcw/css_variables.css +92 -18
  61. package/lib/generate-css-vars-usage-report/index.js +17 -12
  62. package/package-scripts.js +2 -6
  63. package/package.json +6 -8
  64. package/tsconfig.json +14 -0
  65. package/hash.txt +0 -1
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Copyright (c) 2012-2020 SAP SE or an SAP affiliate company. All rights reserved.
2
+ * Copyright (c) 2012-2020 SAP SE or an SAP affiliate company and Theming Base Content contributors. Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
3
3
  *
4
- * Theming Engine 1.69.2
5
- * data:{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.69.2"}, "Version": { "Build": "11.1.37.20220329125434", "Source": "11.1.37"}}
4
+ * Theming Engine 1.23011.0-20221202113725
5
+ * data:{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.23011.0-20221202113725"}, "Version": { "Build": "11.1.48.20221207133419", "Source": "11.1.48"}}
6
6
  */
7
7
 
8
- .sapThemeMetaData-Base-baseLib{background-image: url('data:text/plain;utf-8,{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.69.2"}, "Version": { "Build": "11.1.37.20220329125434", "Source": "11.1.37"}}');}
9
- :root{--sapThemeMetaData-Base-baseLib:{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.69.2"}, "Version": { "Build": "11.1.37.20220329125434", "Source": "11.1.37"}};}
8
+ .sapThemeMetaData-Base-baseLib{background-image: url('data:text/plain;utf-8,{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.23011.0-20221202113725"}, "Version": { "Build": "11.1.48.20221207133419", "Source": "11.1.48"}}');}
9
+ :root{--sapThemeMetaData-Base-baseLib:{"Path": "Base.baseLib.sap_horizon_hcw.css_variables", "PathPattern": "/%frameworkId%/%libId%/%themeId%/%fileId%.css", "Extends": ["sap_horizon","baseTheme"], "Tags": ["Fiori_3","HighContrast","LightColorScheme"], "FallbackThemeId": "sap_horizon", "Engine": {"Name": "theming-engine", "Version": "1.23011.0-20221202113725"}, "Version": { "Build": "11.1.48.20221207133419", "Source": "11.1.48"}};}
10
10
  :root {
11
11
  --sapBrandColor: #e97624;
12
12
  --sapHighlightColor: #e97624;
@@ -18,7 +18,7 @@
18
18
  --sapFontBoldFamily: "72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif;
19
19
  --sapFontSemiboldFamily: "72-Semibold", "72-Semiboldfull", "72", "72full", Arial, Helvetica, sans-serif;
20
20
  --sapFontSemiboldDuplexFamily: "72-SemiboldDuplex", "72-SemiboldDuplexfull", "72", "72full", Arial, Helvetica, sans-serif;
21
- --sapFontBlackFamily: "72Black", "72", "72full", Arial, Helvetica, sans-serif;
21
+ --sapFontBlackFamily: "72Black", "72Blackfull","72", "72full", Arial, Helvetica, sans-serif;
22
22
  --sapFontHeaderFamily: "72", "72full", Arial, Helvetica, sans-serif;
23
23
  --sapFontSize: .875rem;
24
24
  --sapFontSmallSize: .75rem;
@@ -238,6 +238,70 @@
238
238
  --sapShell_PositiveColor: #006362;
239
239
  --sapShell_InformativeColor: #000;
240
240
  --sapShell_NeutralColor: #000;
241
+ --sapShell_Category_1_Background: #fff;
242
+ --sapShell_Category_1_BorderColor: #004ccb;
243
+ --sapShell_Category_1_TextColor: #000;
244
+ --sapShell_Category_1_TextShadow: none;
245
+ --sapShell_Category_2_Background: #fff;
246
+ --sapShell_Category_2_BorderColor: #973333;
247
+ --sapShell_Category_2_TextColor: #000;
248
+ --sapShell_Category_2_TextShadow: none;
249
+ --sapShell_Category_3_Background: #fff;
250
+ --sapShell_Category_3_BorderColor: #5f5800;
251
+ --sapShell_Category_3_TextColor: #000;
252
+ --sapShell_Category_3_TextShadow: none;
253
+ --sapShell_Category_4_Background: #fff;
254
+ --sapShell_Category_4_BorderColor: #6c3d62;
255
+ --sapShell_Category_4_TextColor: #000;
256
+ --sapShell_Category_4_TextShadow: none;
257
+ --sapShell_Category_5_Background: #fff;
258
+ --sapShell_Category_5_BorderColor: #734f00;
259
+ --sapShell_Category_5_TextColor: #000;
260
+ --sapShell_Category_5_TextShadow: none;
261
+ --sapShell_Category_6_Background: #fff;
262
+ --sapShell_Category_6_BorderColor: #105b5b;
263
+ --sapShell_Category_6_TextColor: #000;
264
+ --sapShell_Category_6_TextShadow: none;
265
+ --sapShell_Category_7_Background: #fff;
266
+ --sapShell_Category_7_BorderColor: #961d7c;
267
+ --sapShell_Category_7_TextColor: #000;
268
+ --sapShell_Category_7_TextShadow: none;
269
+ --sapShell_Category_8_Background: #fff;
270
+ --sapShell_Category_8_BorderColor: #26340b;
271
+ --sapShell_Category_8_TextColor: #000;
272
+ --sapShell_Category_8_TextShadow: none;
273
+ --sapShell_Category_9_Background: #fff;
274
+ --sapShell_Category_9_BorderColor: #002a86;
275
+ --sapShell_Category_9_TextColor: #000;
276
+ --sapShell_Category_9_TextShadow: none;
277
+ --sapShell_Category_10_Background: #fff;
278
+ --sapShell_Category_10_BorderColor: #47596c;
279
+ --sapShell_Category_10_TextColor: #000;
280
+ --sapShell_Category_10_TextShadow: none;
281
+ --sapShell_Category_11_Background: #fff;
282
+ --sapShell_Category_11_BorderColor: #af080b;
283
+ --sapShell_Category_11_TextColor: #000;
284
+ --sapShell_Category_11_TextShadow: none;
285
+ --sapShell_Category_12_Background: #fff;
286
+ --sapShell_Category_12_BorderColor: #7000e0;
287
+ --sapShell_Category_12_TextColor: #000;
288
+ --sapShell_Category_12_TextShadow: none;
289
+ --sapShell_Category_13_Background: #fff;
290
+ --sapShell_Category_13_BorderColor: #580440;
291
+ --sapShell_Category_13_TextColor: #000;
292
+ --sapShell_Category_13_TextShadow: none;
293
+ --sapShell_Category_14_Background: #fff;
294
+ --sapShell_Category_14_BorderColor: #035663;
295
+ --sapShell_Category_14_TextColor: #000;
296
+ --sapShell_Category_14_TextShadow: none;
297
+ --sapShell_Category_15_Background: #fff;
298
+ --sapShell_Category_15_BorderColor: #223548;
299
+ --sapShell_Category_15_TextColor: #000;
300
+ --sapShell_Category_15_TextShadow: none;
301
+ --sapShell_Category_16_Background: #fff;
302
+ --sapShell_Category_16_BorderColor: #1e592f;
303
+ --sapShell_Category_16_TextColor: #000;
304
+ --sapShell_Category_16_TextShadow: none;
241
305
  --sapAvatar_1_Background: #fff;
242
306
  --sapAvatar_1_BorderColor: #000;
243
307
  --sapAvatar_1_TextColor: #000;
@@ -570,7 +634,7 @@
570
634
  --sapPageHeader_BorderColor: #000;
571
635
  --sapPageHeader_TextColor: #000;
572
636
  --sapPageFooter_Background: #fff;
573
- --sapPageFooter_BorderColor: #fff;
637
+ --sapPageFooter_BorderColor: #000;
574
638
  --sapPageFooter_TextColor: #000;
575
639
  --sapInfobar_Background: #fff;
576
640
  --sapInfobar_Hover_Background: #e97624;
@@ -694,39 +758,49 @@
694
758
  --sapFontUrl_SAP-icons-TNT_ttf: url('../../../Base/baseLib/baseTheme/fonts/SAP-icons-TNT.ttf');
695
759
  --sapFontUrl_SAP-icons-TNT_woff: url('../../../Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff');
696
760
  --sapFontUrl_SAP-icons-TNT_woff2: url('../../../Base/baseLib/baseTheme/fonts/SAP-icons-TNT.woff2');
697
- --sapFontUrl_SAP-icons-Business-Suite_ttf: url('../../../Base/baseLib/baseTheme/fonts/BusinessSuiteInAppSymbols.ttf');
698
- --sapFontUrl_SAP-icons-Business-Suite_woff: url('../../../Base/baseLib/baseTheme/fonts/BusinessSuiteInAppSymbols.woff');
699
- --sapFontUrl_SAP-icons-Business-Suite_woff2: url('../../../Base/baseLib/baseTheme/fonts/BusinessSuiteInAppSymbols.woff2');
761
+ --sapFontUrl_SAP-icons-Business-Suite_ttf: url('../../../Base/baseLib/sap_horizon/fonts/BusinessSuiteInAppSymbols.ttf');
762
+ --sapFontUrl_SAP-icons-Business-Suite_woff: url('../../../Base/baseLib/sap_horizon/fonts/BusinessSuiteInAppSymbols.woff');
763
+ --sapFontUrl_SAP-icons-Business-Suite_woff2: url('../../../Base/baseLib/sap_horizon/fonts/BusinessSuiteInAppSymbols.woff2');
700
764
  --sapFontUrl_72_Regular_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Regular.woff2');
701
765
  --sapFontUrl_72_Regular_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Regular.woff');
702
- --sapFontUrl_72_Bold_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Bold.woff2');
703
- --sapFontUrl_72_Bold_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Bold.woff');
704
- --sapFontUrl_72_Semibold_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold.woff2');
705
- --sapFontUrl_72_Semibold_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold.woff');
706
- --sapFontUrl_72_SemiboldDuplex_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff2');
707
- --sapFontUrl_72_SemiboldDuplex_woff: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff');
708
- --sapFontUrl_72_Light_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Light.woff2');
709
- --sapFontUrl_72_Light_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Light.woff');
710
766
  --sapFontUrl_72_Regular_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Regular-full.woff2');
711
767
  --sapFontUrl_72_Regular_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Regular-full.woff');
768
+ --sapFontUrl_72_Bold_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Bold.woff2');
769
+ --sapFontUrl_72_Bold_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Bold.woff');
712
770
  --sapFontUrl_72_Bold_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Bold-full.woff2');
713
771
  --sapFontUrl_72_Bold_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Bold-full.woff');
772
+ --sapFontUrl_72_Semibold_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold.woff2');
773
+ --sapFontUrl_72_Semibold_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold.woff');
714
774
  --sapFontUrl_72_Semibold_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold-full.woff2');
715
775
  --sapFontUrl_72_Semibold_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Semibold-full.woff');
776
+ --sapFontUrl_72_SemiboldDuplex_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff2');
777
+ --sapFontUrl_72_SemiboldDuplex_woff: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex.woff');
716
778
  --sapFontUrl_72_SemiboldDuplex_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex-full.woff2');
717
779
  --sapFontUrl_72_SemiboldDuplex_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-SemiboldDuplex-full.woff');
780
+ --sapFontUrl_72_Light_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Light.woff2');
781
+ --sapFontUrl_72_Light_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Light.woff');
718
782
  --sapFontUrl_72_Light_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Light-full.woff2');
719
783
  --sapFontUrl_72_Light_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Light-full.woff');
720
784
  --sapFontUrl_72_Black_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Black.woff2');
721
785
  --sapFontUrl_72_Black_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Black.woff');
786
+ --sapFontUrl_72_Black_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Black-full.woff2');
787
+ --sapFontUrl_72_Black_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Black-full.woff');
722
788
  --sapFontUrl_72_BoldItalic_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-BoldItalic.woff2');
723
789
  --sapFontUrl_72_BoldItalic_woff: url('../../../Base/baseLib/baseTheme/fonts/72-BoldItalic.woff');
790
+ --sapFontUrl_72_BoldItalic_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-BoldItalic-full.woff2');
791
+ --sapFontUrl_72_BoldItalic_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-BoldItalic-full.woff');
724
792
  --sapFontUrl_72_Condensed_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Condensed.woff2');
725
793
  --sapFontUrl_72_Condensed_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Condensed.woff');
794
+ --sapFontUrl_72_Condensed_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Condensed-full.woff2');
795
+ --sapFontUrl_72_Condensed_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Condensed-full.woff');
726
796
  --sapFontUrl_72_CondensedBold_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-CondensedBold.woff2');
727
797
  --sapFontUrl_72_CondensedBold_woff: url('../../../Base/baseLib/baseTheme/fonts/72-CondensedBold.woff');
798
+ --sapFontUrl_72_CondensedBold_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-CondensedBold-full.woff2');
799
+ --sapFontUrl_72_CondensedBold_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-CondensedBold-full.woff');
728
800
  --sapFontUrl_72_Italic_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Italic.woff2');
729
801
  --sapFontUrl_72_Italic_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Italic.woff');
802
+ --sapFontUrl_72_Italic_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72-Italic-full.woff2');
803
+ --sapFontUrl_72_Italic_full_woff: url('../../../Base/baseLib/baseTheme/fonts/72-Italic-full.woff');
730
804
  --sapFontUrl_72Mono_Regular_woff2: url('../../../Base/baseLib/baseTheme/fonts/72Mono-Regular.woff2');
731
805
  --sapFontUrl_72Mono_Regular_woff: url('../../../Base/baseLib/baseTheme/fonts/72Mono-Regular.woff');
732
806
  --sapFontUrl_72Mono_Regular_full_woff2: url('../../../Base/baseLib/baseTheme/fonts/72Mono-Regular-full.woff2');
@@ -1,12 +1,11 @@
1
- const fs = require('fs');
1
+ const fs = require('fs').promises;
2
2
  const path = require("path");
3
- const glob = require("glob");
4
3
  const beautify = require("json-beautify");
5
4
 
6
5
  const vars = new Set();
7
6
 
8
- const processFile = file => {
9
- const content = fs.readFileSync(file);
7
+ const processFile = async file => {
8
+ const content = await fs.readFile(file);
10
9
  const matches = `${content}`.match(/var\(--sap[\-_A-Za-z0-9]+\)/g);
11
10
  matches && matches.forEach(match => {
12
11
  const cssVar = match.match(/--sap[\-_A-Za-z0-9]+/)[0];
@@ -14,14 +13,20 @@ const processFile = file => {
14
13
  });
15
14
  };
16
15
 
17
- // Main
18
- glob.sync(path.join(__dirname, "../../../main/src/themes/**/*.css")).forEach(file => processFile(file));
16
+ const generate = async () => {
17
+ const { globby } = await import("globby");
19
18
 
20
- // Fiori
21
- glob.sync(path.join(__dirname, "../../../fiori/src/themes/**/*.css")).forEach(file => processFile(file));
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, "/"));
22
21
 
23
- const collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
24
- const result = Array.from(vars).sort(collator.compare); // natural sort
22
+ await Promise.all([...mainFiles.map(processFile), ...fioriFiles.map(processFile)]);
25
23
 
26
- fs.writeFileSync(path.join(__dirname, "../../css-vars-usage.json"), beautify(result, null, 2, 100));
27
- console.log("CSS Vars usage report generated.");
24
+ const collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});
25
+ const result = Array.from(vars).sort(collator.compare); // natural sort
26
+
27
+ return fs.writeFile(path.join(__dirname, "../../css-vars-usage.json"), beautify(result, null, 2, 100));
28
+ }
29
+
30
+ generate().then(() => {
31
+ console.log("CSS Vars usage report generated.");
32
+ });
@@ -15,16 +15,13 @@ allThemes.forEach(theme => {
15
15
  buildThemesCommands[`copy_${theme}_bundle`] = `copy-and-watch "src/themes/${theme}/parameters-bundle.css" dist/themes/${theme}/`;
16
16
  });
17
17
 
18
- const generateHash = resolve.sync("@ui5/webcomponents-tools/lib/hash/generate.js");
19
- const hashIsUpToDate = resolve.sync("@ui5/webcomponents-tools/lib/hash/upToDate.js");
20
- const UP_TO_DATE = `node "${hashIsUpToDate}" dist/ hash.txt && echo "Up to date."`;
21
-
22
18
  module.exports = {
23
19
  scripts: {
24
20
  clean: "rimraf dist",
25
21
  build: {
26
- default: `${UP_TO_DATE} || nps clean build.src build.themes build.postcss build.jsonImports generateReport hash`,
22
+ default: `nps clean build.src build.typescript build.themes build.postcss build.jsonImports generateReport`,
27
23
  src: `copy-and-watch "src/**/*.js" dist/`,
24
+ typescript: "tsc",
28
25
  themes: {
29
26
  default: `nps build.themes.prepare ${buildThemesCommandsNames}`,
30
27
  ...buildThemesCommands
@@ -33,6 +30,5 @@ module.exports = {
33
30
  jsonImports: `node "${jsonImportsScript}" dist/generated/assets/themes dist/generated/json-imports`,
34
31
  },
35
32
  generateReport: `node "${generateReportScript}"`,
36
- hash: `node ${generateHash} dist/ hash.txt`,
37
33
  },
38
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-theming",
3
- "version": "0.0.0-deac3098a",
3
+ "version": "0.0.0-e55c2cec6",
4
4
  "description": "UI5 Web Components: webcomponents.theming",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -20,7 +20,6 @@
20
20
  "build": "nps build",
21
21
  "start": "nps start",
22
22
  "verify": "node ./lib/verify-vars/index.js",
23
- "hash": "nps hash",
24
23
  "prepublishOnly": "npm run clean && npm run build"
25
24
  },
26
25
  "repository": {
@@ -29,18 +28,17 @@
29
28
  "directory": "packages/theming"
30
29
  },
31
30
  "dependencies": {
32
- "@sap-theming/theming-base-content": "11.1.37",
33
- "@ui5/webcomponents-base": "0.0.0-deac3098a"
31
+ "@sap-theming/theming-base-content": "11.1.48",
32
+ "@ui5/webcomponents-base": "0.0.0-e55c2cec6"
34
33
  },
35
34
  "devDependencies": {
36
- "@ui5/webcomponents-tools": "0.0.0-deac3098a",
37
- "chromedriver": "100.0.0",
35
+ "@ui5/webcomponents-tools": "0.0.0-e55c2cec6",
36
+ "chromedriver": "108.0.0",
38
37
  "cssnano": "^4.1.11",
39
- "glob": "^7.1.6",
38
+ "globby": "^13.1.1",
40
39
  "json-beautify": "^1.1.1",
41
40
  "nps": "^5.10.0",
42
41
  "postcss": "^8.4.5",
43
- "postcss-combine-duplicated-selectors": "^10.0.3",
44
42
  "postcss-import": "^14.0.2",
45
43
  "resolve": "^1.20.0"
46
44
  },
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "include": ["src/**/*"],
3
+ "compilerOptions": {
4
+ "target": "ES2021",
5
+ // Generate d.ts files
6
+ "declaration": true,
7
+ "outDir": "dist",
8
+ "skipLibCheck": true,
9
+ "sourceMap": true,
10
+ "strict": true,
11
+ "moduleResolution": "node",
12
+ "experimentalDecorators": true,
13
+ },
14
+ }
package/hash.txt DELETED
@@ -1 +0,0 @@
1
- 5cRcd16xPQ6SL0cTQosGtwcesyE=