@rxap/ngx-theme 21.0.1-dev.0 → 21.0.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.
- package/CHANGELOG.md +37 -0
- package/compodoc/changelog.html +35 -0
- package/compodoc/dependencies.html +4 -4
- package/compodoc/injectables/ThemeModeService.html +94 -83
- package/compodoc/injectables/ThemeService.html +58 -83
- package/compodoc/interfaces/ColorPaletteConfig.html +8 -3
- package/compodoc/interfaces/ColorPaletteConfigWithName.html +8 -3
- package/compodoc/interfaces/ThemeConfig.html +8 -3
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +479 -541
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ThemeModeService.html +6 -6
- package/docs/html/classes/ThemeService.html +2 -2
- package/docs/html/enums/ColorPaletteAlgorithm.html +2 -2
- package/docs/html/functions/ComputeColorPalette.html +1 -1
- package/docs/html/functions/ObserveCurrentThemeDensity.html +1 -1
- package/docs/html/functions/provideTheme.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ColorPalette.html +2 -2
- package/docs/html/interfaces/ColorPaletteConfig.html +2 -2
- package/docs/html/interfaces/ColorPaletteConfigWithName.html +2 -2
- package/docs/html/interfaces/ThemeConfig.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/ActiveTheme.html +1 -1
- package/docs/html/types/ThemeSetting.html +1 -1
- package/docs/html/variables/THEME_SETTING_KEY.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ThemeModeService.md +23 -33
- package/docs/markdown/classes/ThemeService.md +32 -38
- package/docs/markdown/enumerations/ColorPaletteAlgorithm.md +4 -4
- package/docs/markdown/functions/ComputeColorPalette.md +2 -2
- package/docs/markdown/functions/ObserveCurrentThemeDensity.md +2 -2
- package/docs/markdown/functions/provideTheme.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ColorPalette.md +16 -16
- package/docs/markdown/interfaces/ColorPaletteConfig.md +5 -5
- package/docs/markdown/interfaces/ColorPaletteConfigWithName.md +6 -6
- package/docs/markdown/interfaces/ThemeConfig.md +7 -7
- package/docs/markdown/type-aliases/ActiveTheme.md +2 -2
- package/docs/markdown/type-aliases/ThemeSetting.md +2 -2
- package/docs/markdown/variables/THEME_SETTING_KEY.md +2 -2
- package/docs/wiki/Class.ThemeModeService.md +22 -32
- package/docs/wiki/Class.ThemeService.md +31 -37
- package/docs/wiki/Enumeration.ColorPaletteAlgorithm.md +3 -3
- package/docs/wiki/Function.ComputeColorPalette.md +1 -1
- package/docs/wiki/Function.ObserveCurrentThemeDensity.md +1 -1
- package/docs/wiki/Function.provideTheme.md +1 -1
- package/docs/wiki/Interface.ColorPalette.md +15 -15
- package/docs/wiki/Interface.ColorPaletteConfig.md +4 -4
- package/docs/wiki/Interface.ColorPaletteConfigWithName.md +5 -5
- package/docs/wiki/Interface.ThemeConfig.md +6 -6
- package/docs/wiki/TypeAlias.ActiveTheme.md +1 -1
- package/docs/wiki/TypeAlias.ThemeSetting.md +1 -1
- package/docs/wiki/Variable.THEME_SETTING_KEY.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-theme.mjs +18 -16
- package/fesm2022/rxap-ngx-theme.mjs.map +1 -1
- package/package.json +10 -10
- package/types/rxap-ngx-theme.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ColorPalette
|
|
8
8
|
|
|
9
|
-
Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L8)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [compute-color-palette.ts:8](https://gitlab.com/rxap/packages/-/blob
|
|
|
14
14
|
|
|
15
15
|
> **100**: `string`
|
|
16
16
|
|
|
17
|
-
Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L10)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [compute-color-palette.ts:10](https://gitlab.com/rxap/packages/-/blo
|
|
|
22
22
|
|
|
23
23
|
> **200**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L11)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [compute-color-palette.ts:11](https://gitlab.com/rxap/packages/-/blo
|
|
|
30
30
|
|
|
31
31
|
> **300**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L12)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [compute-color-palette.ts:12](https://gitlab.com/rxap/packages/-/blo
|
|
|
38
38
|
|
|
39
39
|
> **400**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L13)
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ Defined in: [compute-color-palette.ts:13](https://gitlab.com/rxap/packages/-/blo
|
|
|
46
46
|
|
|
47
47
|
> **50**: `string`
|
|
48
48
|
|
|
49
|
-
Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L9)
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ Defined in: [compute-color-palette.ts:9](https://gitlab.com/rxap/packages/-/blob
|
|
|
54
54
|
|
|
55
55
|
> **500**: `string`
|
|
56
56
|
|
|
57
|
-
Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
57
|
+
Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L14)
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ Defined in: [compute-color-palette.ts:14](https://gitlab.com/rxap/packages/-/blo
|
|
|
62
62
|
|
|
63
63
|
> **600**: `string`
|
|
64
64
|
|
|
65
|
-
Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
65
|
+
Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L15)
|
|
66
66
|
|
|
67
67
|
***
|
|
68
68
|
|
|
@@ -70,7 +70,7 @@ Defined in: [compute-color-palette.ts:15](https://gitlab.com/rxap/packages/-/blo
|
|
|
70
70
|
|
|
71
71
|
> **700**: `string`
|
|
72
72
|
|
|
73
|
-
Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
73
|
+
Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L16)
|
|
74
74
|
|
|
75
75
|
***
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ Defined in: [compute-color-palette.ts:16](https://gitlab.com/rxap/packages/-/blo
|
|
|
78
78
|
|
|
79
79
|
> **800**: `string`
|
|
80
80
|
|
|
81
|
-
Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
81
|
+
Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L17)
|
|
82
82
|
|
|
83
83
|
***
|
|
84
84
|
|
|
@@ -86,7 +86,7 @@ Defined in: [compute-color-palette.ts:17](https://gitlab.com/rxap/packages/-/blo
|
|
|
86
86
|
|
|
87
87
|
> **900**: `string`
|
|
88
88
|
|
|
89
|
-
Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
89
|
+
Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L18)
|
|
90
90
|
|
|
91
91
|
***
|
|
92
92
|
|
|
@@ -94,7 +94,7 @@ Defined in: [compute-color-palette.ts:18](https://gitlab.com/rxap/packages/-/blo
|
|
|
94
94
|
|
|
95
95
|
> **A100**: `string`
|
|
96
96
|
|
|
97
|
-
Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
97
|
+
Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L19)
|
|
98
98
|
|
|
99
99
|
***
|
|
100
100
|
|
|
@@ -102,7 +102,7 @@ Defined in: [compute-color-palette.ts:19](https://gitlab.com/rxap/packages/-/blo
|
|
|
102
102
|
|
|
103
103
|
> **A200**: `string`
|
|
104
104
|
|
|
105
|
-
Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
105
|
+
Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L20)
|
|
106
106
|
|
|
107
107
|
***
|
|
108
108
|
|
|
@@ -110,7 +110,7 @@ Defined in: [compute-color-palette.ts:20](https://gitlab.com/rxap/packages/-/blo
|
|
|
110
110
|
|
|
111
111
|
> **A400**: `string`
|
|
112
112
|
|
|
113
|
-
Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
113
|
+
Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L21)
|
|
114
114
|
|
|
115
115
|
***
|
|
116
116
|
|
|
@@ -118,4 +118,4 @@ Defined in: [compute-color-palette.ts:21](https://gitlab.com/rxap/packages/-/blo
|
|
|
118
118
|
|
|
119
119
|
> **A700**: `string`
|
|
120
120
|
|
|
121
|
-
Defined in: [compute-color-palette.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
121
|
+
Defined in: [compute-color-palette.ts:22](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/compute-color-palette.ts#L22)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ColorPaletteConfig
|
|
8
8
|
|
|
9
|
-
Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L40)
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [theme.service.ts:40](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
18
18
|
|
|
19
19
|
> `optional` **algorithm**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L41)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
26
26
|
|
|
27
27
|
> `optional` **base**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L42)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,4 +34,4 @@ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
34
34
|
|
|
35
35
|
> `optional` **color**: `Partial`\<[`ColorPalette`](ColorPalette.md)\>
|
|
36
36
|
|
|
37
|
-
Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L43)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ColorPaletteConfigWithName
|
|
8
8
|
|
|
9
|
-
Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L28)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [theme.service.ts:28](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
18
18
|
|
|
19
19
|
> `optional` **algorithm**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L41)
|
|
22
22
|
|
|
23
23
|
#### Inherited from
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Defined in: [theme.service.ts:41](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
30
30
|
|
|
31
31
|
> `optional` **base**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L42)
|
|
34
34
|
|
|
35
35
|
#### Inherited from
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Defined in: [theme.service.ts:42](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
42
42
|
|
|
43
43
|
> `optional` **color**: `Partial`\<[`ColorPalette`](ColorPalette.md)\>
|
|
44
44
|
|
|
45
|
-
Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L43)
|
|
46
46
|
|
|
47
47
|
#### Inherited from
|
|
48
48
|
|
|
@@ -54,4 +54,4 @@ Defined in: [theme.service.ts:43](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
54
54
|
|
|
55
55
|
> `optional` **name**: `string`
|
|
56
56
|
|
|
57
|
-
Defined in: [theme.service.ts:29](https://gitlab.com/rxap/packages/-/blob/
|
|
57
|
+
Defined in: [theme.service.ts:29](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L29)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ThemeConfig
|
|
8
8
|
|
|
9
|
-
Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L32)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [theme.service.ts:32](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
14
14
|
|
|
15
15
|
> `optional` **accentColor**: [`ColorPaletteConfigWithName`](ColorPaletteConfigWithName.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L34)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [theme.service.ts:34](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
22
22
|
|
|
23
23
|
> `optional` **density**: `ThemeDensity`
|
|
24
24
|
|
|
25
|
-
Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L36)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [theme.service.ts:36](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
30
30
|
|
|
31
31
|
> `optional` **primaryColor**: [`ColorPaletteConfigWithName`](ColorPaletteConfigWithName.md)
|
|
32
32
|
|
|
33
|
-
Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L33)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [theme.service.ts:33](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
38
38
|
|
|
39
39
|
> `optional` **typography**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L37)
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
@@ -46,4 +46,4 @@ Defined in: [theme.service.ts:37](https://gitlab.com/rxap/packages/-/blob/b20eda
|
|
|
46
46
|
|
|
47
47
|
> `optional` **warnColor**: [`ColorPaletteConfigWithName`](ColorPaletteConfigWithName.md)
|
|
48
48
|
|
|
49
|
-
Defined in: [theme.service.ts:35](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [theme.service.ts:35](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme.service.ts#L35)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> **ActiveTheme**: `"light"` \| `"dark"`
|
|
10
10
|
|
|
11
|
-
Defined in: [theme-mode.service.ts:
|
|
11
|
+
Defined in: [theme-mode.service.ts:20](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L20)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> **ThemeSetting**: `"system"` \| `"light"` \| `"dark"`
|
|
10
10
|
|
|
11
|
-
Defined in: [theme-mode.service.ts:
|
|
11
|
+
Defined in: [theme-mode.service.ts:18](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L18)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-theme v21.0.1
|
|
1
|
+
[**@rxap/ngx-theme v21.0.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **THEME\_SETTING\_KEY**: `"rxap_theme_settings"` = `'rxap_theme_settings'`
|
|
10
10
|
|
|
11
|
-
Defined in: [theme-mode.service.ts:
|
|
11
|
+
Defined in: [theme-mode.service.ts:22](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L22)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: ThemeModeService
|
|
4
4
|
|
|
5
|
-
Defined in: [theme-mode.service.ts:
|
|
5
|
+
Defined in: [theme-mode.service.ts:36](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L36)
|
|
6
6
|
|
|
7
7
|
Service to manage theme mode (light/dark/system) for the application.
|
|
8
8
|
It provides functionality to handle theme preferences, persist them, and synchronize changes.
|
|
@@ -22,19 +22,9 @@ theme changes.
|
|
|
22
22
|
|
|
23
23
|
### new ThemeModeService()
|
|
24
24
|
|
|
25
|
-
> **new ThemeModeService**(
|
|
25
|
+
> **new ThemeModeService**(): [`ThemeModeService`](../wiki/Class.ThemeModeService)
|
|
26
26
|
|
|
27
|
-
Defined in: [theme-mode.service.ts:
|
|
28
|
-
|
|
29
|
-
#### Parameters
|
|
30
|
-
|
|
31
|
-
##### mediaMatcher
|
|
32
|
-
|
|
33
|
-
`MediaMatcher`
|
|
34
|
-
|
|
35
|
-
##### document
|
|
36
|
-
|
|
37
|
-
`Document`
|
|
27
|
+
Defined in: [theme-mode.service.ts:55](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L55)
|
|
38
28
|
|
|
39
29
|
#### Returns
|
|
40
30
|
|
|
@@ -46,7 +36,7 @@ Defined in: [theme-mode.service.ts:63](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
46
36
|
|
|
47
37
|
> `readonly` **activeTheme**: `WritableSignal`\<[`ActiveTheme`](../wiki/TypeAlias.ActiveTheme)\>
|
|
48
38
|
|
|
49
|
-
Defined in: [theme-mode.service.ts:
|
|
39
|
+
Defined in: [theme-mode.service.ts:44](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L44)
|
|
50
40
|
|
|
51
41
|
***
|
|
52
42
|
|
|
@@ -54,7 +44,7 @@ Defined in: [theme-mode.service.ts:52](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
54
44
|
|
|
55
45
|
> `readonly` **config**: `ConfigService`\<`any`\>
|
|
56
46
|
|
|
57
|
-
Defined in: [theme-mode.service.ts:
|
|
47
|
+
Defined in: [theme-mode.service.ts:41](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L41)
|
|
58
48
|
|
|
59
49
|
***
|
|
60
50
|
|
|
@@ -62,7 +52,7 @@ Defined in: [theme-mode.service.ts:49](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
62
52
|
|
|
63
53
|
> `protected` `readonly` **darkColorSchemaMediaQuery**: `MediaQueryList`
|
|
64
54
|
|
|
65
|
-
Defined in: [theme-mode.service.ts:
|
|
55
|
+
Defined in: [theme-mode.service.ts:48](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L48)
|
|
66
56
|
|
|
67
57
|
***
|
|
68
58
|
|
|
@@ -70,7 +60,7 @@ Defined in: [theme-mode.service.ts:56](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
70
60
|
|
|
71
61
|
> `readonly` **darkMode**: `Signal`\<`boolean`\>
|
|
72
62
|
|
|
73
|
-
Defined in: [theme-mode.service.ts:
|
|
63
|
+
Defined in: [theme-mode.service.ts:46](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L46)
|
|
74
64
|
|
|
75
65
|
***
|
|
76
66
|
|
|
@@ -78,7 +68,7 @@ Defined in: [theme-mode.service.ts:54](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
78
68
|
|
|
79
69
|
> `protected` `readonly` **document**: `Document`
|
|
80
70
|
|
|
81
|
-
Defined in: [theme-mode.service.ts:
|
|
71
|
+
Defined in: [theme-mode.service.ts:38](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L38)
|
|
82
72
|
|
|
83
73
|
***
|
|
84
74
|
|
|
@@ -86,7 +76,7 @@ Defined in: [theme-mode.service.ts:65](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
86
76
|
|
|
87
77
|
> `protected` `readonly` **mediaMatcher**: `MediaMatcher`
|
|
88
78
|
|
|
89
|
-
Defined in: [theme-mode.service.ts:
|
|
79
|
+
Defined in: [theme-mode.service.ts:37](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L37)
|
|
90
80
|
|
|
91
81
|
***
|
|
92
82
|
|
|
@@ -94,7 +84,7 @@ Defined in: [theme-mode.service.ts:64](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
94
84
|
|
|
95
85
|
> `protected` `readonly` **mediaQueryListener**: (`this`, `ev`) => `any`
|
|
96
86
|
|
|
97
|
-
Defined in: [theme-mode.service.ts:
|
|
87
|
+
Defined in: [theme-mode.service.ts:51](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L51)
|
|
98
88
|
|
|
99
89
|
#### Parameters
|
|
100
90
|
|
|
@@ -116,7 +106,7 @@ Defined in: [theme-mode.service.ts:59](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
116
106
|
|
|
117
107
|
> `readonly` **pubSub**: `PubSubService`
|
|
118
108
|
|
|
119
|
-
Defined in: [theme-mode.service.ts:
|
|
109
|
+
Defined in: [theme-mode.service.ts:42](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L42)
|
|
120
110
|
|
|
121
111
|
***
|
|
122
112
|
|
|
@@ -124,7 +114,7 @@ Defined in: [theme-mode.service.ts:50](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
124
114
|
|
|
125
115
|
> `protected` `readonly` **subscriptions**: `null` \| `Subscription` = `null`
|
|
126
116
|
|
|
127
|
-
Defined in: [theme-mode.service.ts:
|
|
117
|
+
Defined in: [theme-mode.service.ts:50](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L50)
|
|
128
118
|
|
|
129
119
|
***
|
|
130
120
|
|
|
@@ -132,7 +122,7 @@ Defined in: [theme-mode.service.ts:58](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
132
122
|
|
|
133
123
|
> `protected` `optional` **syncSubscription**: `Subscription`
|
|
134
124
|
|
|
135
|
-
Defined in: [theme-mode.service.ts:
|
|
125
|
+
Defined in: [theme-mode.service.ts:53](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L53)
|
|
136
126
|
|
|
137
127
|
***
|
|
138
128
|
|
|
@@ -140,7 +130,7 @@ Defined in: [theme-mode.service.ts:61](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
140
130
|
|
|
141
131
|
> `readonly` **themeSetting**: `WritableSignal`\<[`ThemeSetting`](../wiki/TypeAlias.ThemeSetting)\>
|
|
142
132
|
|
|
143
|
-
Defined in: [theme-mode.service.ts:
|
|
133
|
+
Defined in: [theme-mode.service.ts:45](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L45)
|
|
144
134
|
|
|
145
135
|
## Methods
|
|
146
136
|
|
|
@@ -148,7 +138,7 @@ Defined in: [theme-mode.service.ts:53](https://gitlab.com/rxap/packages/-/blob/b
|
|
|
148
138
|
|
|
149
139
|
> **ngOnDestroy**(): `void`
|
|
150
140
|
|
|
151
|
-
Defined in: [theme-mode.service.ts:
|
|
141
|
+
Defined in: [theme-mode.service.ts:118](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L118)
|
|
152
142
|
|
|
153
143
|
Cleans up subscriptions and event listeners when the service is destroyed.
|
|
154
144
|
|
|
@@ -166,7 +156,7 @@ Cleans up subscriptions and event listeners when the service is destroyed.
|
|
|
166
156
|
|
|
167
157
|
> `protected` **removeThemeClasses**(): `void`
|
|
168
158
|
|
|
169
|
-
Defined in: [theme-mode.service.ts:
|
|
159
|
+
Defined in: [theme-mode.service.ts:138](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L138)
|
|
170
160
|
|
|
171
161
|
#### Returns
|
|
172
162
|
|
|
@@ -178,7 +168,7 @@ Defined in: [theme-mode.service.ts:149](https://gitlab.com/rxap/packages/-/blob/
|
|
|
178
168
|
|
|
179
169
|
> `protected` **restoreFromPubSub**(): `void`
|
|
180
170
|
|
|
181
|
-
Defined in: [theme-mode.service.ts:
|
|
171
|
+
Defined in: [theme-mode.service.ts:98](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L98)
|
|
182
172
|
|
|
183
173
|
#### Returns
|
|
184
174
|
|
|
@@ -190,7 +180,7 @@ Defined in: [theme-mode.service.ts:109](https://gitlab.com/rxap/packages/-/blob/
|
|
|
190
180
|
|
|
191
181
|
> `protected` **restoreThemeSetting**(): [`ThemeSetting`](../wiki/TypeAlias.ThemeSetting)
|
|
192
182
|
|
|
193
|
-
Defined in: [theme-mode.service.ts:
|
|
183
|
+
Defined in: [theme-mode.service.ts:126](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L126)
|
|
194
184
|
|
|
195
185
|
#### Returns
|
|
196
186
|
|
|
@@ -202,7 +192,7 @@ Defined in: [theme-mode.service.ts:137](https://gitlab.com/rxap/packages/-/blob/
|
|
|
202
192
|
|
|
203
193
|
> **setTheme**(`active`, `publish`?): `void`
|
|
204
194
|
|
|
205
|
-
Defined in: [theme-mode.service.ts:
|
|
195
|
+
Defined in: [theme-mode.service.ts:169](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L169)
|
|
206
196
|
|
|
207
197
|
Sets the active theme for the application and optionally publishes the change.
|
|
208
198
|
|
|
@@ -230,7 +220,7 @@ Indicates whether to publish the theme change event.
|
|
|
230
220
|
|
|
231
221
|
> `protected` **setThemeClasses**(`active`): `void`
|
|
232
222
|
|
|
233
|
-
Defined in: [theme-mode.service.ts:
|
|
223
|
+
Defined in: [theme-mode.service.ts:143](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L143)
|
|
234
224
|
|
|
235
225
|
#### Parameters
|
|
236
226
|
|
|
@@ -248,7 +238,7 @@ Defined in: [theme-mode.service.ts:154](https://gitlab.com/rxap/packages/-/blob/
|
|
|
248
238
|
|
|
249
239
|
> `protected` **storeThemeSetting**(`setting`): `void`
|
|
250
240
|
|
|
251
|
-
Defined in: [theme-mode.service.ts:
|
|
241
|
+
Defined in: [theme-mode.service.ts:134](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L134)
|
|
252
242
|
|
|
253
243
|
#### Parameters
|
|
254
244
|
|
|
@@ -266,7 +256,7 @@ Defined in: [theme-mode.service.ts:145](https://gitlab.com/rxap/packages/-/blob/
|
|
|
266
256
|
|
|
267
257
|
> **toggleTheme**(): `void`
|
|
268
258
|
|
|
269
|
-
Defined in: [theme-mode.service.ts:
|
|
259
|
+
Defined in: [theme-mode.service.ts:154](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/theme/src/lib/theme-mode.service.ts#L154)
|
|
270
260
|
|
|
271
261
|
Toggles the application theme between 'light' and 'dark' modes.
|
|
272
262
|
It checks the currently active theme and switches to the opposite mode.
|