@rxap/ngx-theme 19.1.0-dev.0 → 19.1.0-dev.1

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 (81) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +5 -0
  4. package/compodoc/classes/ThemeColor.html +874 -0
  5. package/compodoc/dependencies.html +3 -1
  6. package/compodoc/index.html +1 -1
  7. package/compodoc/interfaces/BasePalette.html +844 -0
  8. package/compodoc/interfaces/ThemeColors.html +898 -0
  9. package/compodoc/js/menu-wc.js +19 -0
  10. package/compodoc/js/menu-wc_es5.js +1 -1
  11. package/compodoc/js/search/search_index.js +2 -2
  12. package/compodoc/miscellaneous/functions.html +60 -1
  13. package/compodoc/miscellaneous/typealiases.html +129 -0
  14. package/compodoc/miscellaneous/variables.html +161 -0
  15. package/compodoc/overview.html +9 -1
  16. package/compodoc/properties.html +1 -1
  17. package/docs/documentation.json +1088 -464
  18. package/docs/html/assets/hierarchy.js +1 -1
  19. package/docs/html/assets/navigation.js +1 -1
  20. package/docs/html/assets/search.js +1 -1
  21. package/docs/html/classes/ThemeColor.html +4 -0
  22. package/docs/html/classes/ThemeModeService.html +6 -6
  23. package/docs/html/classes/ThemeService.html +2 -2
  24. package/docs/html/enums/ColorPaletteAlgorithm.html +2 -2
  25. package/docs/html/functions/ComputeColorPalette.html +1 -1
  26. package/docs/html/functions/ObserveCurrentThemeDensity.html +1 -1
  27. package/docs/html/functions/applyThemeColorBootstrapHook.html +1 -0
  28. package/docs/html/functions/provideTheme.html +1 -1
  29. package/docs/html/hierarchy.html +1 -1
  30. package/docs/html/index.html +3 -3
  31. package/docs/html/interfaces/ColorPalette.html +2 -2
  32. package/docs/html/interfaces/ColorPaletteConfig.html +2 -2
  33. package/docs/html/interfaces/ColorPaletteConfigWithName.html +2 -2
  34. package/docs/html/interfaces/ThemeColors.html +7 -0
  35. package/docs/html/interfaces/ThemeConfig.html +2 -2
  36. package/docs/html/modules.html +1 -1
  37. package/docs/html/types/ActiveTheme.html +1 -1
  38. package/docs/html/types/ThemeSetting.html +1 -1
  39. package/docs/html/variables/THEME_SETTING_KEY.html +1 -1
  40. package/docs/markdown/README.md +2 -2
  41. package/docs/markdown/classes/ThemeColor.md +83 -0
  42. package/docs/markdown/classes/ThemeModeService.md +22 -22
  43. package/docs/markdown/classes/ThemeService.md +31 -31
  44. package/docs/markdown/enumerations/ColorPaletteAlgorithm.md +4 -4
  45. package/docs/markdown/functions/ComputeColorPalette.md +2 -2
  46. package/docs/markdown/functions/ObserveCurrentThemeDensity.md +2 -2
  47. package/docs/markdown/functions/applyThemeColorBootstrapHook.md +31 -0
  48. package/docs/markdown/functions/provideTheme.md +2 -2
  49. package/docs/markdown/globals.md +5 -2
  50. package/docs/markdown/interfaces/ColorPalette.md +16 -16
  51. package/docs/markdown/interfaces/ColorPaletteConfig.md +5 -5
  52. package/docs/markdown/interfaces/ColorPaletteConfigWithName.md +6 -6
  53. package/docs/markdown/interfaces/ThemeColors.md +57 -0
  54. package/docs/markdown/interfaces/ThemeConfig.md +7 -7
  55. package/docs/markdown/type-aliases/ActiveTheme.md +2 -2
  56. package/docs/markdown/type-aliases/ThemeSetting.md +2 -2
  57. package/docs/markdown/variables/THEME_SETTING_KEY.md +2 -2
  58. package/docs/wiki/Class.ThemeColor.md +79 -0
  59. package/docs/wiki/Class.ThemeModeService.md +21 -21
  60. package/docs/wiki/Class.ThemeService.md +30 -30
  61. package/docs/wiki/Enumeration.ColorPaletteAlgorithm.md +3 -3
  62. package/docs/wiki/Function.ComputeColorPalette.md +1 -1
  63. package/docs/wiki/Function.ObserveCurrentThemeDensity.md +1 -1
  64. package/docs/wiki/Function.applyThemeColorBootstrapHook.md +27 -0
  65. package/docs/wiki/Function.provideTheme.md +1 -1
  66. package/docs/wiki/Home.md +1 -1
  67. package/docs/wiki/Interface.ColorPalette.md +15 -15
  68. package/docs/wiki/Interface.ColorPaletteConfig.md +4 -4
  69. package/docs/wiki/Interface.ColorPaletteConfigWithName.md +5 -5
  70. package/docs/wiki/Interface.ThemeColors.md +53 -0
  71. package/docs/wiki/Interface.ThemeConfig.md +6 -6
  72. package/docs/wiki/TypeAlias.ActiveTheme.md +1 -1
  73. package/docs/wiki/TypeAlias.ThemeSetting.md +1 -1
  74. package/docs/wiki/Variable.THEME_SETTING_KEY.md +1 -1
  75. package/docs/wiki/_Sidebar.md +3 -0
  76. package/docs/wiki/globals.md +4 -1
  77. package/fesm2022/rxap-ngx-theme.mjs +251 -1
  78. package/fesm2022/rxap-ngx-theme.mjs.map +1 -1
  79. package/index.d.ts +1 -0
  80. package/lib/theme-color.d.ts +29 -0
  81. package/package.json +5 -4
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ColorPalette
4
4
 
5
- Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L8)
5
+ Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L8)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob
10
10
 
11
11
  > **100**: `string`
12
12
 
13
- Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L10)
13
+ Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L10)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blo
18
18
 
19
19
  > **200**: `string`
20
20
 
21
- Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L11)
21
+ Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L11)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blo
26
26
 
27
27
  > **300**: `string`
28
28
 
29
- Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L12)
29
+ Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L12)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blo
34
34
 
35
35
  > **400**: `string`
36
36
 
37
- Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L13)
37
+ Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L13)
38
38
 
39
39
  ***
40
40
 
@@ -42,7 +42,7 @@ Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blo
42
42
 
43
43
  > **50**: `string`
44
44
 
45
- Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L9)
45
+ Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L9)
46
46
 
47
47
  ***
48
48
 
@@ -50,7 +50,7 @@ Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob
50
50
 
51
51
  > **500**: `string`
52
52
 
53
- Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L14)
53
+ Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L14)
54
54
 
55
55
  ***
56
56
 
@@ -58,7 +58,7 @@ Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blo
58
58
 
59
59
  > **600**: `string`
60
60
 
61
- Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L15)
61
+ Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L15)
62
62
 
63
63
  ***
64
64
 
@@ -66,7 +66,7 @@ Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blo
66
66
 
67
67
  > **700**: `string`
68
68
 
69
- Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L16)
69
+ Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L16)
70
70
 
71
71
  ***
72
72
 
@@ -74,7 +74,7 @@ Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blo
74
74
 
75
75
  > **800**: `string`
76
76
 
77
- Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L17)
77
+ Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L17)
78
78
 
79
79
  ***
80
80
 
@@ -82,7 +82,7 @@ Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blo
82
82
 
83
83
  > **900**: `string`
84
84
 
85
- Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L18)
85
+ Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L18)
86
86
 
87
87
  ***
88
88
 
@@ -90,7 +90,7 @@ Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blo
90
90
 
91
91
  > **A100**: `string`
92
92
 
93
- Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L19)
93
+ Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L19)
94
94
 
95
95
  ***
96
96
 
@@ -98,7 +98,7 @@ Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blo
98
98
 
99
99
  > **A200**: `string`
100
100
 
101
- Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L20)
101
+ Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L20)
102
102
 
103
103
  ***
104
104
 
@@ -106,7 +106,7 @@ Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blo
106
106
 
107
107
  > **A400**: `string`
108
108
 
109
- Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L21)
109
+ Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L21)
110
110
 
111
111
  ***
112
112
 
@@ -114,4 +114,4 @@ Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blo
114
114
 
115
115
  > **A700**: `string`
116
116
 
117
- Defined in: [compute-color-palette.ts:22](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/compute-color-palette.ts#L22)
117
+ Defined in: [compute-color-palette.ts:22](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/compute-color-palette.ts#L22)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ColorPaletteConfig
4
4
 
5
- Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L40)
5
+ Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L40)
6
6
 
7
7
  ## Extended by
8
8
 
@@ -14,7 +14,7 @@ Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/b32f11
14
14
 
15
15
  > `optional` **algorithm**: `string`
16
16
 
17
- Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L41)
17
+ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L41)
18
18
 
19
19
  ***
20
20
 
@@ -22,7 +22,7 @@ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b32f11
22
22
 
23
23
  > `optional` **base**: `string`
24
24
 
25
- Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L42)
25
+ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L42)
26
26
 
27
27
  ***
28
28
 
@@ -30,4 +30,4 @@ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b32f11
30
30
 
31
31
  > `optional` **color**: `Partial`\<[`ColorPalette`](../wiki/Interface.ColorPalette)\>
32
32
 
33
- Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L43)
33
+ Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L43)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ColorPaletteConfigWithName
4
4
 
5
- Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L28)
5
+ Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L28)
6
6
 
7
7
  ## Extends
8
8
 
@@ -14,7 +14,7 @@ Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/b32f11
14
14
 
15
15
  > `optional` **algorithm**: `string`
16
16
 
17
- Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L41)
17
+ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L41)
18
18
 
19
19
  #### Inherited from
20
20
 
@@ -26,7 +26,7 @@ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b32f11
26
26
 
27
27
  > `optional` **base**: `string`
28
28
 
29
- Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L42)
29
+ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L42)
30
30
 
31
31
  #### Inherited from
32
32
 
@@ -38,7 +38,7 @@ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b32f11
38
38
 
39
39
  > `optional` **color**: `Partial`\<[`ColorPalette`](../wiki/Interface.ColorPalette)\>
40
40
 
41
- Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L43)
41
+ Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L43)
42
42
 
43
43
  #### Inherited from
44
44
 
@@ -50,4 +50,4 @@ Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/b32f11
50
50
 
51
51
  > `optional` **name**: `string`
52
52
 
53
- Defined in: [theme.service.ts:29](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L29)
53
+ Defined in: [theme.service.ts:29](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L29)
@@ -0,0 +1,53 @@
1
+ [@rxap/ngx-theme](../wiki/globals) / ThemeColors
2
+
3
+ # Interface: ThemeColors
4
+
5
+ Defined in: [theme-color.ts:179](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L179)
6
+
7
+ ## Properties
8
+
9
+ ### error?
10
+
11
+ > `optional` **error**: `string`
12
+
13
+ Defined in: [theme-color.ts:185](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L185)
14
+
15
+ ***
16
+
17
+ ### neutral?
18
+
19
+ > `optional` **neutral**: `string`
20
+
21
+ Defined in: [theme-color.ts:183](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L183)
22
+
23
+ ***
24
+
25
+ ### neutralVariant?
26
+
27
+ > `optional` **neutralVariant**: `string`
28
+
29
+ Defined in: [theme-color.ts:184](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L184)
30
+
31
+ ***
32
+
33
+ ### primary
34
+
35
+ > **primary**: `string`
36
+
37
+ Defined in: [theme-color.ts:180](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L180)
38
+
39
+ ***
40
+
41
+ ### secondary?
42
+
43
+ > `optional` **secondary**: `string`
44
+
45
+ Defined in: [theme-color.ts:181](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L181)
46
+
47
+ ***
48
+
49
+ ### tertiary?
50
+
51
+ > `optional` **tertiary**: `string`
52
+
53
+ Defined in: [theme-color.ts:182](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-color.ts#L182)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ThemeConfig
4
4
 
5
- Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L32)
5
+ Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L32)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/b32f11
10
10
 
11
11
  > `optional` **accentColor**: [`ColorPaletteConfigWithName`](../wiki/Interface.ColorPaletteConfigWithName)
12
12
 
13
- Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L34)
13
+ Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L34)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/b32f11
18
18
 
19
19
  > `optional` **density**: `ThemeDensity`
20
20
 
21
- Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L36)
21
+ Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L36)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/b32f11
26
26
 
27
27
  > `optional` **primaryColor**: [`ColorPaletteConfigWithName`](../wiki/Interface.ColorPaletteConfigWithName)
28
28
 
29
- Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L33)
29
+ Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L33)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/b32f11
34
34
 
35
35
  > `optional` **typography**: `string`
36
36
 
37
- Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L37)
37
+ Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L37)
38
38
 
39
39
  ***
40
40
 
@@ -42,4 +42,4 @@ Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/b32f11
42
42
 
43
43
  > `optional` **warnColor**: [`ColorPaletteConfigWithName`](../wiki/Interface.ColorPaletteConfigWithName)
44
44
 
45
- Defined in: [theme.service.ts:35](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme.service.ts#L35)
45
+ Defined in: [theme.service.ts:35](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme.service.ts#L35)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **ActiveTheme**: `"light"` \| `"dark"`
6
6
 
7
- Defined in: [theme-mode.service.ts:30](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme-mode.service.ts#L30)
7
+ Defined in: [theme-mode.service.ts:30](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-mode.service.ts#L30)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **ThemeSetting**: `"system"` \| `"light"` \| `"dark"`
6
6
 
7
- Defined in: [theme-mode.service.ts:28](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme-mode.service.ts#L28)
7
+ Defined in: [theme-mode.service.ts:28](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-mode.service.ts#L28)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **THEME\_SETTING\_KEY**: `"rxap_theme_settings"` = `'rxap_theme_settings'`
6
6
 
7
- Defined in: [theme-mode.service.ts:32](https://gitlab.com/rxap/packages/-/blob/b32f110144dafee760d535d217a2855e77f154a5/packages/angular/theme/src/lib/theme-mode.service.ts#L32)
7
+ Defined in: [theme-mode.service.ts:32](https://gitlab.com/rxap/packages/-/blob/866b7365240b548b3b9407b594ddd5dc9b9bfc59/packages/angular/theme/src/lib/theme-mode.service.ts#L32)
@@ -6,6 +6,7 @@
6
6
 
7
7
  ### Classes
8
8
 
9
+ - [ThemeColor](../wiki/Class.ThemeColor)
9
10
  - [ThemeModeService](../wiki/Class.ThemeModeService)
10
11
  - [ThemeService](../wiki/Class.ThemeService)
11
12
 
@@ -14,6 +15,7 @@
14
15
  - [ColorPalette](../wiki/Interface.ColorPalette)
15
16
  - [ColorPaletteConfig](../wiki/Interface.ColorPaletteConfig)
16
17
  - [ColorPaletteConfigWithName](../wiki/Interface.ColorPaletteConfigWithName)
18
+ - [ThemeColors](../wiki/Interface.ThemeColors)
17
19
  - [ThemeConfig](../wiki/Interface.ThemeConfig)
18
20
 
19
21
  ### Type Aliases
@@ -27,6 +29,7 @@
27
29
 
28
30
  ### Functions
29
31
 
32
+ - [applyThemeColorBootstrapHook](../wiki/Function.applyThemeColorBootstrapHook)
30
33
  - [ComputeColorPalette](../wiki/Function.ComputeColorPalette)
31
34
  - [ObserveCurrentThemeDensity](../wiki/Function.ObserveCurrentThemeDensity)
32
35
  - [provideTheme](../wiki/Function.provideTheme)
@@ -1,4 +1,4 @@
1
- # @rxap/ngx-theme v19.1.0-dev.0
1
+ # @rxap/ngx-theme v19.1.0-dev.1
2
2
 
3
3
  ## Enumerations
4
4
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  ## Classes
8
8
 
9
+ - [ThemeColor](../wiki/Class.ThemeColor)
9
10
  - [ThemeModeService](../wiki/Class.ThemeModeService)
10
11
  - [ThemeService](../wiki/Class.ThemeService)
11
12
 
@@ -14,6 +15,7 @@
14
15
  - [ColorPalette](../wiki/Interface.ColorPalette)
15
16
  - [ColorPaletteConfig](../wiki/Interface.ColorPaletteConfig)
16
17
  - [ColorPaletteConfigWithName](../wiki/Interface.ColorPaletteConfigWithName)
18
+ - [ThemeColors](../wiki/Interface.ThemeColors)
17
19
  - [ThemeConfig](../wiki/Interface.ThemeConfig)
18
20
 
19
21
  ## Type Aliases
@@ -27,6 +29,7 @@
27
29
 
28
30
  ## Functions
29
31
 
32
+ - [applyThemeColorBootstrapHook](../wiki/Function.applyThemeColorBootstrapHook)
30
33
  - [ComputeColorPalette](../wiki/Function.ComputeColorPalette)
31
34
  - [ObserveCurrentThemeDensity](../wiki/Function.ObserveCurrentThemeDensity)
32
35
  - [provideTheme](../wiki/Function.provideTheme)
@@ -7,6 +7,7 @@ import { ConfigService } from '@rxap/config';
7
7
  import { PubSubService, RXAP_TOPICS } from '@rxap/ngx-pub-sub';
8
8
  import { isDefined } from '@rxap/rxjs';
9
9
  import { DOCUMENT } from '@angular/common';
10
+ import { CorePalette } from '@material/material-color-utilities';
10
11
 
11
12
  var ColorPaletteAlgorithm;
12
13
  (function (ColorPaletteAlgorithm) {
@@ -525,6 +526,255 @@ function provideTheme() {
525
526
  ];
526
527
  }
527
528
 
529
+ // --- Mappings from System Roles to Reference Palette Keys ---
530
+ const lightRoleToRefKeyMap = {
531
+ background: 'neutral98',
532
+ error: 'error40',
533
+ 'error-container': 'error90',
534
+ 'inverse-on-surface': 'neutral95',
535
+ 'inverse-primary': 'primary80',
536
+ 'inverse-surface': 'neutral20',
537
+ 'on-background': 'neutral10',
538
+ 'on-error': 'error100',
539
+ 'on-error-container': 'error10',
540
+ 'on-primary': 'primary100',
541
+ 'on-primary-container': 'primary10',
542
+ 'on-primary-fixed': 'primary10',
543
+ 'on-primary-fixed-variant': 'primary30',
544
+ 'on-secondary': 'secondary100',
545
+ 'on-secondary-container': 'secondary10',
546
+ 'on-secondary-fixed': 'secondary10',
547
+ 'on-secondary-fixed-variant': 'secondary30',
548
+ 'on-surface': 'neutral10',
549
+ 'on-surface-variant': 'neutral-variant30',
550
+ 'on-tertiary': 'tertiary100',
551
+ 'on-tertiary-container': 'tertiary10',
552
+ 'on-tertiary-fixed': 'tertiary10',
553
+ 'on-tertiary-fixed-variant': 'tertiary30',
554
+ outline: 'neutral-variant50',
555
+ 'outline-variant': 'neutral-variant80',
556
+ primary: 'primary40',
557
+ 'primary-container': 'primary90',
558
+ 'primary-fixed': 'primary90',
559
+ 'primary-fixed-dim': 'primary80',
560
+ scrim: 'neutral0',
561
+ secondary: 'secondary40',
562
+ 'secondary-container': 'secondary90',
563
+ 'secondary-fixed': 'secondary90',
564
+ 'secondary-fixed-dim': 'secondary80',
565
+ shadow: 'neutral0',
566
+ surface: 'neutral98',
567
+ 'surface-bright': 'neutral98',
568
+ 'surface-container': 'neutral94',
569
+ 'surface-container-high': 'neutral92',
570
+ 'surface-container-highest': 'neutral90',
571
+ 'surface-container-low': 'neutral96',
572
+ 'surface-container-lowest': 'neutral100',
573
+ 'surface-dim': 'neutral87',
574
+ 'surface-tint': 'primary40',
575
+ 'surface-variant': 'neutral-variant90',
576
+ tertiary: 'tertiary40',
577
+ 'tertiary-container': 'tertiary90',
578
+ 'tertiary-fixed': 'tertiary90',
579
+ 'tertiary-fixed-dim': 'tertiary80',
580
+ };
581
+ const darkRoleToRefKeyMap = {
582
+ background: 'neutral6',
583
+ error: 'error80',
584
+ 'error-container': 'error30',
585
+ 'inverse-on-surface': 'neutral20',
586
+ 'inverse-primary': 'primary40',
587
+ 'inverse-surface': 'neutral90',
588
+ 'on-background': 'neutral90',
589
+ 'on-error': 'error20',
590
+ 'on-error-container': 'error90',
591
+ 'on-primary': 'primary20',
592
+ 'on-primary-container': 'primary90',
593
+ 'on-primary-fixed': 'primary10',
594
+ 'on-primary-fixed-variant': 'primary30',
595
+ 'on-secondary': 'secondary20',
596
+ 'on-secondary-container': 'secondary90',
597
+ 'on-secondary-fixed': 'secondary10',
598
+ 'on-secondary-fixed-variant': 'secondary30',
599
+ 'on-surface': 'neutral90',
600
+ 'on-surface-variant': 'neutral-variant90',
601
+ 'on-tertiary': 'tertiary20',
602
+ 'on-tertiary-container': 'tertiary90',
603
+ 'on-tertiary-fixed': 'tertiary10',
604
+ 'on-tertiary-fixed-variant': 'tertiary30',
605
+ outline: 'neutral-variant60',
606
+ 'outline-variant': 'neutral-variant30',
607
+ primary: 'primary80',
608
+ 'primary-container': 'primary30',
609
+ 'primary-fixed': 'primary90',
610
+ 'primary-fixed-dim': 'primary80',
611
+ scrim: 'neutral0',
612
+ secondary: 'secondary80',
613
+ 'secondary-container': 'secondary30',
614
+ 'secondary-fixed': 'secondary90',
615
+ 'secondary-fixed-dim': 'secondary80',
616
+ shadow: 'neutral0',
617
+ surface: 'neutral6',
618
+ 'surface-bright': 'neutral24',
619
+ 'surface-container': 'neutral12',
620
+ 'surface-container-high': 'neutral17',
621
+ 'surface-container-highest': 'neutral24',
622
+ 'surface-container-low': 'neutral10',
623
+ 'surface-container-lowest': 'neutral4',
624
+ 'surface-dim': 'neutral6',
625
+ 'surface-tint': 'primary80',
626
+ 'surface-variant': 'neutral-variant30',
627
+ tertiary: 'tertiary80',
628
+ 'tertiary-container': 'tertiary30',
629
+ 'tertiary-fixed': 'tertiary90',
630
+ 'tertiary-fixed-dim': 'tertiary80',
631
+ };
632
+ class ThemeColor {
633
+ static apply(document, { primary, secondary, tertiary, neutral, neutralVariant, error, }) {
634
+ const themeColor = new ThemeColor();
635
+ themeColor.apply(document, primary, secondary, tertiary, neutral, neutralVariant, error);
636
+ }
637
+ generateSystemLevelColors(primaryPalette, themeType, tertiaryPalette, cssVarPrefix = '--mat-sys-') {
638
+ const tertiary = tertiaryPalette ?? primaryPalette; // Default tertiary to primary
639
+ const output = {};
640
+ // 1. Create the flattened reference palette (md-ref-palette equivalent)
641
+ // We use kebab-case for keys like 'neutral-variant' to match the role maps.
642
+ const refPalette = {};
643
+ const palettesToFlatten = {
644
+ primary: primaryPalette,
645
+ secondary: primaryPalette.secondary,
646
+ tertiary: tertiary, // Use the resolved tertiary palette (just tones)
647
+ neutral: primaryPalette.neutral,
648
+ 'neutral-variant': primaryPalette.neutralVariant,
649
+ error: primaryPalette.error,
650
+ };
651
+ for (const [name, palette] of Object.entries(palettesToFlatten)) {
652
+ if (!palette) {
653
+ console.warn(`Warning: Palette source '${name}' is missing or undefined.`);
654
+ continue;
655
+ }
656
+ for (const [tone, value] of Object.entries(palette)) {
657
+ // Check if the key is a valid tone number (string representation) and value is a string color
658
+ if (!isNaN(Number(tone)) && typeof value === 'string') {
659
+ const key = `${name}${tone}`; // e.g., primary40, neutral98, neutral-variant30
660
+ refPalette[key] = value;
661
+ }
662
+ }
663
+ }
664
+ // 2. Select the correct role mapping based on theme type
665
+ const roleToRefKeyMap = themeType === 'light' ? lightRoleToRefKeyMap : darkRoleToRefKeyMap;
666
+ // 3. Generate CSS variables from the mapping
667
+ for (const [role, refKey] of Object.entries(roleToRefKeyMap)) {
668
+ const colorValue = refPalette[refKey];
669
+ if (colorValue === undefined) {
670
+ // Log a warning if a required reference color is missing in the provided palettes
671
+ console.warn(`Warning: Reference color key '${refKey}' not found in generated reference palette for CSS variable role '${role}'. Skipping variable '${cssVarPrefix}${role}'.`);
672
+ continue; // Skip this variable if the color isn't found
673
+ }
674
+ output[`${cssVarPrefix}${role}`] = colorValue;
675
+ }
676
+ // 4. Add the extra manually inserted colors (as per _m3-system.scss logic)
677
+ // These seem to be directly used sometimes instead of going through roles.
678
+ const extraRefKeys = {
679
+ 'neutral-variant20': 'neutral-variant20', // Role name maps directly to ref key
680
+ neutral10: 'neutral10',
681
+ };
682
+ for (const [role, refKey] of Object.entries(extraRefKeys)) {
683
+ const colorValue = refPalette[refKey];
684
+ if (colorValue !== undefined) {
685
+ // Check if it wasn't already added via the main mapping (unlikely but safe)
686
+ if (!output[`${cssVarPrefix}${role}`]) {
687
+ output[`${cssVarPrefix}${role}`] = colorValue;
688
+ }
689
+ }
690
+ else {
691
+ console.warn(`Warning: Extra color key '${refKey}' not found in generated reference palette for role '${role}'.`);
692
+ }
693
+ }
694
+ return output;
695
+ }
696
+ /**
697
+ * Helper function to convert a TonalPalette to a TonePalette.
698
+ * @param tonalPalette TonalPalette instance
699
+ * @returns TonePalette object
700
+ */
701
+ convertTonalPalette(tonalPalette) {
702
+ const tones = [
703
+ 0, 4, 6, 10, 12, 17, 20, 22, 24, 25, 30, 35, 40, 50, 60, 70, 80, 87, 90,
704
+ 92, 94, 95, 96, 98, 99, 100,
705
+ ];
706
+ const result = {};
707
+ for (const tone of tones) {
708
+ result[tone] = tonalPalette.tone(tone).toString(16).replace(/^ff/i, '#'); // Convert ARGB to HEX
709
+ }
710
+ return result;
711
+ }
712
+ /**
713
+ * Converts a CorePalette into a BasePalette structure.
714
+ * @param corePalette CorePalette instance
715
+ * @returns BasePalette object
716
+ */
717
+ convertCorePaletteToBasePalette(corePalette) {
718
+ return {
719
+ ...this.convertTonalPalette(corePalette.a1), // Primary tones
720
+ secondary: this.convertTonalPalette(corePalette.a2),
721
+ tertiary: this.convertTonalPalette(corePalette.a3),
722
+ neutral: this.convertTonalPalette(corePalette.n1),
723
+ neutralVariant: this.convertTonalPalette(corePalette.n2),
724
+ error: this.convertTonalPalette(corePalette.error),
725
+ };
726
+ }
727
+ mergeLightAndDarkVars(lightVars, darkVars) {
728
+ const output = {};
729
+ for (const [key, value] of Object.entries(lightVars)) {
730
+ output[key] = value;
731
+ }
732
+ for (const [key, value] of Object.entries(darkVars)) {
733
+ output[key] = `light-dark(${output[key]}, ${value})`;
734
+ }
735
+ return output;
736
+ }
737
+ convertBasePaletteToCss(lightDarkVars) {
738
+ return `:root {
739
+ ${Object.entries(lightDarkVars)
740
+ .map(([key, value]) => `${key}: ${value};`)
741
+ .join('\n ')}
742
+ }
743
+ `;
744
+ }
745
+ apply(document, primary, secondary, tertiary, neutral, neutralVariant, error) {
746
+ const corePalette = CorePalette.fromColors({
747
+ primary: parseInt(primary.replace('#', 'FF'), 16),
748
+ secondary: secondary
749
+ ? parseInt(secondary.replace('#', 'FF'), 16)
750
+ : undefined,
751
+ tertiary: tertiary
752
+ ? parseInt(tertiary.replace('#', 'FF'), 16)
753
+ : undefined,
754
+ neutral: neutral ? parseInt(neutral.replace('#', 'FF'), 16) : undefined,
755
+ neutralVariant: neutralVariant
756
+ ? parseInt(neutralVariant.replace('#', 'FF'), 16)
757
+ : undefined,
758
+ error: error ? parseInt(error.replace('#', 'FF'), 16) : undefined,
759
+ });
760
+ const basePalette = this.convertCorePaletteToBasePalette(corePalette);
761
+ const lightVars = this.generateSystemLevelColors(basePalette, 'light');
762
+ const darkVars = this.generateSystemLevelColors(basePalette, 'dark');
763
+ const lightDarkVars = this.mergeLightAndDarkVars(lightVars, darkVars);
764
+ for (const [key, value] of Object.entries(lightDarkVars)) {
765
+ document.documentElement.style.setProperty(key, value);
766
+ }
767
+ }
768
+ }
769
+ function applyThemeColorBootstrapHook(defaultThemeControls) {
770
+ return (config) => {
771
+ const themeColors = config.get('theme.colors', defaultThemeControls);
772
+ if (themeColors) {
773
+ ThemeColor.apply(window.document, themeColors);
774
+ }
775
+ };
776
+ }
777
+
528
778
  // region
529
779
  // endregion
530
780
 
@@ -532,5 +782,5 @@ function provideTheme() {
532
782
  * Generated bundle index. Do not edit.
533
783
  */
534
784
 
535
- export { ColorPaletteAlgorithm, ComputeColorPalette, ObserveCurrentThemeDensity, THEME_SETTING_KEY, ThemeModeService, ThemeService, provideTheme };
785
+ export { ColorPaletteAlgorithm, ComputeColorPalette, ObserveCurrentThemeDensity, THEME_SETTING_KEY, ThemeColor, ThemeModeService, ThemeService, applyThemeColorBootstrapHook, provideTheme };
536
786
  //# sourceMappingURL=rxap-ngx-theme.mjs.map