@alauda/ui 5.7.7-beta.28 → 5.7.7-beta.31

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 (99) hide show
  1. package/alauda-ui.metadata.json +1 -1
  2. package/bundles/alauda-ui.umd.js +116 -36
  3. package/bundles/alauda-ui.umd.js.map +1 -1
  4. package/bundles/alauda-ui.umd.min.js +1 -1
  5. package/bundles/alauda-ui.umd.min.js.map +1 -1
  6. package/esm2015/accordion/accordion.module.ngfactory.js +4 -3
  7. package/esm2015/accordion/accordion.module.ngsummary.json +1 -1
  8. package/esm2015/alauda-ui.ngsummary.json +1 -1
  9. package/esm2015/back-top/back-top.module.ngfactory.js +3 -2
  10. package/esm2015/back-top/back-top.module.ngsummary.json +1 -1
  11. package/esm2015/breadcrumb/breadcrumb.module.ngfactory.js +3 -2
  12. package/esm2015/breadcrumb/breadcrumb.module.ngsummary.json +1 -1
  13. package/esm2015/button/button-group/button-group.component.js +1 -1
  14. package/esm2015/button/button-group/button-group.component.scss.ngstyle.js +1 -1
  15. package/esm2015/button/button.component.js +1 -1
  16. package/esm2015/button/button.component.scss.ngstyle.js +1 -1
  17. package/esm2015/button/button.module.ngfactory.js +3 -2
  18. package/esm2015/button/button.module.ngsummary.json +1 -1
  19. package/esm2015/checkbox/checkbox.module.ngfactory.js +3 -2
  20. package/esm2015/checkbox/checkbox.module.ngsummary.json +1 -1
  21. package/esm2015/date-picker/date-picker.module.ngfactory.js +13 -12
  22. package/esm2015/date-picker/date-picker.module.ngsummary.json +1 -1
  23. package/esm2015/dialog/dialog.module.ngfactory.js +4 -3
  24. package/esm2015/dialog/dialog.module.ngsummary.json +1 -1
  25. package/esm2015/drawer/drawer.module.ngfactory.js +6 -5
  26. package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
  27. package/esm2015/dropdown/dropdown.module.ngfactory.js +4 -3
  28. package/esm2015/dropdown/dropdown.module.ngsummary.json +1 -1
  29. package/esm2015/icon/icon.component.js +13 -12
  30. package/esm2015/icon/icon.component.ngfactory.js +10 -7
  31. package/esm2015/icon/icon.component.ngsummary.json +1 -1
  32. package/esm2015/icon/icon.module.js +3 -2
  33. package/esm2015/icon/icon.module.ngfactory.js +3 -2
  34. package/esm2015/icon/icon.module.ngsummary.json +1 -1
  35. package/esm2015/inline-alert/inline-alert.module.ngfactory.js +3 -2
  36. package/esm2015/inline-alert/inline-alert.module.ngsummary.json +1 -1
  37. package/esm2015/input/input-group/input-group.component.js +1 -1
  38. package/esm2015/input/input-group/input-group.component.scss.ngstyle.js +1 -1
  39. package/esm2015/input/input.module.ngfactory.js +6 -5
  40. package/esm2015/input/input.module.ngsummary.json +1 -1
  41. package/esm2015/input/search/search.component.js +1 -1
  42. package/esm2015/input/search/search.component.scss.ngstyle.js +1 -1
  43. package/esm2015/message/message.module.ngfactory.js +3 -2
  44. package/esm2015/message/message.module.ngsummary.json +1 -1
  45. package/esm2015/nav-menu/nav-menu.module.ngfactory.js +5 -4
  46. package/esm2015/nav-menu/nav-menu.module.ngsummary.json +1 -1
  47. package/esm2015/nav-menu/platform-nav.module.ngfactory.js +6 -5
  48. package/esm2015/nav-menu/platform-nav.module.ngsummary.json +1 -1
  49. package/esm2015/notification/notification.module.ngfactory.js +3 -2
  50. package/esm2015/notification/notification.module.ngsummary.json +1 -1
  51. package/esm2015/paginator/paginator.module.ngfactory.js +13 -12
  52. package/esm2015/paginator/paginator.module.ngsummary.json +1 -1
  53. package/esm2015/public-api.ngsummary.json +1 -1
  54. package/esm2015/radio/radio.module.ngfactory.js +3 -2
  55. package/esm2015/radio/radio.module.ngsummary.json +1 -1
  56. package/esm2015/select/select.module.ngfactory.js +12 -11
  57. package/esm2015/select/select.module.ngsummary.json +1 -1
  58. package/esm2015/steps/steps.module.ngfactory.js +3 -2
  59. package/esm2015/steps/steps.module.ngsummary.json +1 -1
  60. package/esm2015/table/table-cell.component.js +2 -2
  61. package/esm2015/table/table-cell.component.ngfactory.js +1 -1
  62. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  63. package/esm2015/table/table.component.js +1 -1
  64. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  65. package/esm2015/table/table.module.ngfactory.js +8 -7
  66. package/esm2015/table/table.module.ngsummary.json +1 -1
  67. package/esm2015/tabs/tabs.module.ngfactory.js +6 -5
  68. package/esm2015/tabs/tabs.module.ngsummary.json +1 -1
  69. package/esm2015/tag/tag.module.ngfactory.js +3 -2
  70. package/esm2015/tag/tag.module.ngsummary.json +1 -1
  71. package/esm2015/theme/public-api.js +4 -1
  72. package/esm2015/theme/public-api.ngsummary.json +1 -1
  73. package/esm2015/theme/theme.module.js +13 -0
  74. package/esm2015/theme/theme.module.ngfactory.js +12 -0
  75. package/esm2015/theme/theme.module.ngsummary.json +1 -0
  76. package/esm2015/theme/theme.pipe.js +33 -0
  77. package/esm2015/theme/theme.pipe.ngsummary.json +1 -0
  78. package/esm2015/theme/theme.service.js +42 -7
  79. package/esm2015/theme/theme.service.ngsummary.json +1 -1
  80. package/esm2015/theme/theme.types.js +2 -0
  81. package/esm2015/theme/theme.types.ngsummary.json +1 -0
  82. package/esm2015/time-picker/time-picker.module.ngfactory.js +9 -8
  83. package/esm2015/time-picker/time-picker.module.ngsummary.json +1 -1
  84. package/esm2015/tree-select/tree-select.module.ngfactory.js +7 -6
  85. package/esm2015/tree-select/tree-select.module.ngsummary.json +1 -1
  86. package/fesm2015/alauda-ui.js +110 -37
  87. package/fesm2015/alauda-ui.js.map +1 -1
  88. package/icon/icon.component.d.ts +6 -4
  89. package/package.json +1 -1
  90. package/theme/_base-var.scss +2 -0
  91. package/theme/_mixin.scss +36 -2
  92. package/theme/_pattern.scss +13 -7
  93. package/theme/public-api.d.ts +3 -0
  94. package/theme/style.css +120 -111
  95. package/theme/theme.module.d.ts +2 -0
  96. package/theme/theme.module.ngfactory.d.ts +3 -0
  97. package/theme/theme.pipe.d.ts +10 -0
  98. package/theme/theme.service.d.ts +10 -3
  99. package/theme/theme.types.d.ts +3 -0
@@ -1,18 +1,20 @@
1
1
  import { Bem } from '../utils';
2
2
  import { IconRegisterService } from './icon-register.service';
3
3
  export declare class IconComponent {
4
- private readonly iconRegistryService;
4
+ private readonly iconRegisterService;
5
5
  icon: string;
6
+ light: string;
7
+ dark: string;
6
8
  link: string;
7
9
  margin: 'left' | 'right';
8
10
  size: string;
9
11
  color: string;
10
12
  bem: Bem;
11
13
  id: number;
12
- constructor(iconRegistryService: IconRegisterService);
14
+ constructor(iconRegisterService: IconRegisterService);
13
15
  private parseIcon;
14
16
  getWidth(): string | false;
15
17
  getHeight(): string | false;
16
- getIconId(): string;
17
- getClass(): string;
18
+ getIconId(icon: string): string;
19
+ getClass(id: string): string;
18
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "5.7.7-beta.28",
3
+ "version": "5.7.7-beta.31",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
@@ -20,6 +20,8 @@
20
20
  @return get-color(n-4);
21
21
  } @else if $level == disabled or $level == placeholder {
22
22
  @return get-color(n-6);
23
+ } @else {
24
+ @return get-color($level);
23
25
  }
24
26
  }
25
27
 
package/theme/_mixin.scss CHANGED
@@ -1,10 +1,44 @@
1
1
  @import 'base-var';
2
2
  @import 'var';
3
3
 
4
- @mixin text-set($size: m, $color: main) {
4
+ @mixin theme-light {
5
+ :root {
6
+ @content;
7
+ }
8
+
9
+ html[aui-color-mode='light'] {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ @mixin theme-dark {
15
+ @media (prefers-color-scheme: dark) {
16
+ html[aui-color-mode='auto'] {
17
+ @content;
18
+ }
19
+ }
20
+
21
+ html[aui-color-mode='dark'] {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin text-set($size: m, $color: none) {
5
27
  font-size: get-size(font-size-#{$size});
6
28
  line-height: get-size(line-height-#{$size});
7
- color: get-text-color($color);
29
+ @if $color != none {
30
+ color: get-text-color($color);
31
+ }
32
+ }
33
+
34
+ @mixin icon-set($size: m, $color: none) {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ height: get-size(line-height-#{$size});
38
+ font-size: get-size(font-size-#{$size});
39
+ @if $color != none {
40
+ color: get-text-color($color);
41
+ }
8
42
  }
9
43
 
10
44
  // 使用 box-shadow 模拟带圆角的 outline
@@ -95,16 +95,15 @@
95
95
  }
96
96
  &.aui-table__cell {
97
97
  width: 100%;
98
- padding: 0;
99
98
  flex-shrink: 0;
100
99
  flex-basis: 100%;
100
+ padding: 0 calc(#{get-size(table-cell-padding-lr)} / 2);
101
101
  overflow: hidden;
102
- margin: get-size(table-header-cell-padding-tb) 0
103
- get-neg-size(table-header-cell-padding-tb) 0;
104
- background-color: get-color(n-9);
105
- border-width: 0 calc(var(--aui-table-cell-padding-lr) / 2);
106
- border-style: solid;
107
- border-color: get-color(n-10);
102
+ .aui-table__cell-expand-detail {
103
+ background-color: get-color(n-9);
104
+ margin-top: get-size(table-cell-padding-tb-m);
105
+ padding: get-size(table-cell-padding-tb-m);
106
+ }
108
107
  }
109
108
  }
110
109
  }
@@ -119,6 +118,13 @@
119
118
  var(--aui-table-cell-padding-lr) / 2 + var(--aui-font-size-l)
120
119
  );
121
120
  padding-right: 0;
121
+ /* stylelint-disable function-calc-no-unspaced-operator */
122
+ line-height: calc(
123
+ #{get-size(table-row-min-height-m)} - 2 * #{get-size(
124
+ table-cell-padding-tb-m
125
+ )}
126
+ );
127
+ /* stylelint-enable function-calc-no-unspaced-operator */
122
128
 
123
129
  .aui-table__cell-expand-button {
124
130
  width: get-size(font-size-l);
@@ -1 +1,4 @@
1
+ export * from './theme.pipe';
2
+ export * from './theme.module';
1
3
  export * from './theme.service';
4
+ export * from './theme.types';
package/theme/style.css CHANGED
@@ -15,63 +15,6 @@
15
15
  ******************************
16
16
  */
17
17
  :root {
18
- --aui-inline-height-l: 40px;
19
- --aui-inline-height-m: 32px;
20
- --aui-inline-height-s: 28px;
21
- --aui-inline-height-xs: 24px;
22
- --aui-inline-padding-l: 19px;
23
- --aui-inline-padding-m: 15px;
24
- --aui-inline-padding-s: 11px;
25
- --aui-inline-padding-xs: 7px;
26
- --aui-inline-padding-xxs: 5px;
27
- --aui-spacing-xxxxxl: 40px;
28
- --aui-spacing-xxxxl: 32px;
29
- --aui-spacing-xxxl: 24px;
30
- --aui-spacing-xxl: 20px;
31
- --aui-spacing-xl: 16px;
32
- --aui-spacing-l: 12px;
33
- --aui-spacing-m: 8px;
34
- --aui-spacing-s: 4px;
35
- --aui-spacing-xs: 2px;
36
- --aui-font-weight-bold: 500;
37
- --aui-font-weight-normal: 400;
38
- --aui-font-size-xxl: 20px;
39
- --aui-font-size-xl: 18px;
40
- --aui-font-size-l: 16px;
41
- --aui-font-size-m: 14px;
42
- --aui-font-size-s: 12px;
43
- --aui-line-height-xxxl: 32px;
44
- --aui-line-height-xxl: 28px;
45
- --aui-line-height-xl: 24px;
46
- --aui-line-height-l: 22px;
47
- --aui-line-height-m: 20px;
48
- --aui-line-height-s: 16px;
49
- --aui-icon-size-xxl: 24px;
50
- --aui-icon-size-xl: 24px;
51
- --aui-icon-size-l: 16px;
52
- --aui-icon-size-m: 16px;
53
- --aui-icon-size-s: 12px;
54
- --aui-border-radius-l: 4px;
55
- --aui-border-radius-m: 2px;
56
- --aui-page-header-height: 60px;
57
- --aui-page-toolbar-height: 44px;
58
- --aui-page-snackbar-height: 60px;
59
- --aui-page-sider-width: 260px;
60
- --aui-page-padding-m: 20px;
61
- --aui-page-padding-s: 16px;
62
- --aui-form-item-width-l: 732px;
63
- --aui-form-item-width-m: 436px;
64
- --aui-form-item-width-s: 140px;
65
- --aui-border-m: 1px;
66
- --aui-table-margin: 12px;
67
- --aui-table-cell-padding-lr: 20px;
68
- --aui-table-cell-padding-tb-s: 16px;
69
- --aui-table-cell-padding-tb-m: 20px;
70
- --aui-table-header-cell-padding-tb: 12px;
71
- --aui-table-header-height: 44px;
72
- --aui-table-border-width: 1px;
73
- --aui-select-width: 100%;
74
- --aui-select-options-padding: 8px;
75
18
  --aui-color-blue: 0, 122, 245;
76
19
  --aui-color-b-0: 0, 103, 208;
77
20
  --aui-color-b-1: 38, 141, 246;
@@ -113,19 +56,54 @@
113
56
  --aui-color-n-8: 237, 239, 242;
114
57
  --aui-color-n-9: 247, 249, 252;
115
58
  --aui-color-n-10: 255, 255, 255;
116
- --aui-color-primary: var(--aui-color-blue);
117
- --aui-color-p-0: var(--aui-color-b-0);
118
- --aui-color-p-1: var(--aui-color-b-1);
119
- --aui-color-p-2: var(--aui-color-b-2);
120
- --aui-color-p-3: var(--aui-color-b-3);
121
- --aui-color-p-4: var(--aui-color-b-4);
122
- --aui-color-p-5: var(--aui-color-b-5);
123
- --aui-color-p-6: var(--aui-color-b-6);
124
- --aui-color-p-7: var(--aui-color-b-7);
59
+ }
60
+
61
+ html[aui-color-mode=light] {
62
+ --aui-color-blue: 0, 122, 245;
63
+ --aui-color-b-0: 0, 103, 208;
64
+ --aui-color-b-1: 38, 141, 246;
65
+ --aui-color-b-2: 77, 162, 248;
66
+ --aui-color-b-3: 102, 175, 249;
67
+ --aui-color-b-4: 179, 215, 252;
68
+ --aui-color-b-5: 204, 228, 253;
69
+ --aui-color-b-6: 229, 241, 254;
70
+ --aui-color-b-7: 242, 248, 254;
71
+ --aui-color-green: 0, 194, 97;
72
+ --aui-color-g-0: 0, 165, 82;
73
+ --aui-color-g-1: 38, 203, 120;
74
+ --aui-color-g-2: 76, 212, 144;
75
+ --aui-color-g-4: 179, 236, 207;
76
+ --aui-color-g-6: 230, 249, 239;
77
+ --aui-color-g-7: 242, 251, 246;
78
+ --aui-color-yellow: 245, 163, 0;
79
+ --aui-color-y-0: 220, 146, 0;
80
+ --aui-color-y-1: 246, 176, 38;
81
+ --aui-color-y-2: 248, 190, 77;
82
+ --aui-color-y-4: 252, 227, 179;
83
+ --aui-color-y-6: 254, 245, 230;
84
+ --aui-color-y-7: 254, 250, 243;
85
+ --aui-color-red: 235, 0, 39;
86
+ --aui-color-r-0: 199, 0, 33;
87
+ --aui-color-r-1: 237, 38, 71;
88
+ --aui-color-r-2: 241, 76, 103;
89
+ --aui-color-r-4: 249, 179, 190;
90
+ --aui-color-r-6: 253, 230, 233;
91
+ --aui-color-r-7: 254, 243, 244;
92
+ --aui-color-n-0: 0, 0, 0;
93
+ --aui-color-n-1: 50, 52, 55;
94
+ --aui-color-n-2: 100, 102, 105;
95
+ --aui-color-n-3: 124, 126, 129;
96
+ --aui-color-n-4: 150, 152, 155;
97
+ --aui-color-n-5: 174, 176, 179;
98
+ --aui-color-n-6: 200, 202, 205;
99
+ --aui-color-n-7: 212, 214, 217;
100
+ --aui-color-n-8: 237, 239, 242;
101
+ --aui-color-n-9: 247, 249, 252;
102
+ --aui-color-n-10: 255, 255, 255;
125
103
  }
126
104
 
127
105
  @media (prefers-color-scheme: dark) {
128
- [aui-color-mode=auto] {
106
+ html[aui-color-mode=auto] {
129
107
  --aui-color-blue: 0, 122, 245;
130
108
  --aui-color-b-0: 0, 103, 208;
131
109
  --aui-color-b-1: 38, 141, 246;
@@ -169,7 +147,7 @@
169
147
  --aui-color-n-10: 255, 255, 255;
170
148
  }
171
149
  }
172
- html[aui-color-mode=light] {
150
+ html[aui-color-mode=dark] {
173
151
  --aui-color-blue: 0, 122, 245;
174
152
  --aui-color-b-0: 0, 103, 208;
175
153
  --aui-color-b-1: 38, 141, 246;
@@ -213,48 +191,75 @@ html[aui-color-mode=light] {
213
191
  --aui-color-n-10: 255, 255, 255;
214
192
  }
215
193
 
216
- html[aui-color-mode=dark] {
217
- --aui-color-blue: 0, 122, 245;
218
- --aui-color-b-0: 0, 103, 208;
219
- --aui-color-b-1: 38, 141, 246;
220
- --aui-color-b-2: 77, 162, 248;
221
- --aui-color-b-3: 102, 175, 249;
222
- --aui-color-b-4: 179, 215, 252;
223
- --aui-color-b-5: 204, 228, 253;
224
- --aui-color-b-6: 229, 241, 254;
225
- --aui-color-b-7: 242, 248, 254;
226
- --aui-color-green: 0, 194, 97;
227
- --aui-color-g-0: 0, 165, 82;
228
- --aui-color-g-1: 38, 203, 120;
229
- --aui-color-g-2: 76, 212, 144;
230
- --aui-color-g-4: 179, 236, 207;
231
- --aui-color-g-6: 230, 249, 239;
232
- --aui-color-g-7: 242, 251, 246;
233
- --aui-color-yellow: 245, 163, 0;
234
- --aui-color-y-0: 220, 146, 0;
235
- --aui-color-y-1: 246, 176, 38;
236
- --aui-color-y-2: 248, 190, 77;
237
- --aui-color-y-4: 252, 227, 179;
238
- --aui-color-y-6: 254, 245, 230;
239
- --aui-color-y-7: 254, 250, 243;
240
- --aui-color-red: 235, 0, 39;
241
- --aui-color-r-0: 199, 0, 33;
242
- --aui-color-r-1: 237, 38, 71;
243
- --aui-color-r-2: 241, 76, 103;
244
- --aui-color-r-4: 249, 179, 190;
245
- --aui-color-r-6: 253, 230, 233;
246
- --aui-color-r-7: 254, 243, 244;
247
- --aui-color-n-0: 0, 0, 0;
248
- --aui-color-n-1: 50, 52, 55;
249
- --aui-color-n-2: 100, 102, 105;
250
- --aui-color-n-3: 124, 126, 129;
251
- --aui-color-n-4: 150, 152, 155;
252
- --aui-color-n-5: 174, 176, 179;
253
- --aui-color-n-6: 200, 202, 205;
254
- --aui-color-n-7: 212, 214, 217;
255
- --aui-color-n-8: 237, 239, 242;
256
- --aui-color-n-9: 247, 249, 252;
257
- --aui-color-n-10: 255, 255, 255;
194
+ :root {
195
+ --aui-inline-height-l: 40px;
196
+ --aui-inline-height-m: 32px;
197
+ --aui-inline-height-s: 28px;
198
+ --aui-inline-height-xs: 24px;
199
+ --aui-inline-padding-l: 19px;
200
+ --aui-inline-padding-m: 15px;
201
+ --aui-inline-padding-s: 11px;
202
+ --aui-inline-padding-xs: 7px;
203
+ --aui-inline-padding-xxs: 5px;
204
+ --aui-spacing-xxxxxl: 40px;
205
+ --aui-spacing-xxxxl: 32px;
206
+ --aui-spacing-xxxl: 24px;
207
+ --aui-spacing-xxl: 20px;
208
+ --aui-spacing-xl: 16px;
209
+ --aui-spacing-l: 12px;
210
+ --aui-spacing-m: 8px;
211
+ --aui-spacing-s: 4px;
212
+ --aui-spacing-xs: 2px;
213
+ --aui-font-weight-bold: 500;
214
+ --aui-font-weight-normal: 400;
215
+ --aui-font-size-xxl: 20px;
216
+ --aui-font-size-xl: 18px;
217
+ --aui-font-size-l: 16px;
218
+ --aui-font-size-m: 14px;
219
+ --aui-font-size-s: 12px;
220
+ --aui-line-height-xxxl: 32px;
221
+ --aui-line-height-xxl: 28px;
222
+ --aui-line-height-xl: 24px;
223
+ --aui-line-height-l: 22px;
224
+ --aui-line-height-m: 20px;
225
+ --aui-line-height-s: 16px;
226
+ --aui-icon-size-xxl: 24px;
227
+ --aui-icon-size-xl: 24px;
228
+ --aui-icon-size-l: 16px;
229
+ --aui-icon-size-m: 16px;
230
+ --aui-icon-size-s: 12px;
231
+ --aui-border-radius-l: 4px;
232
+ --aui-border-radius-m: 2px;
233
+ --aui-page-header-height: 60px;
234
+ --aui-page-toolbar-height: 44px;
235
+ --aui-page-snackbar-height: 60px;
236
+ --aui-page-sider-width: 260px;
237
+ --aui-page-padding-m: 20px;
238
+ --aui-page-padding-s: 16px;
239
+ --aui-form-item-width-l: 732px;
240
+ --aui-form-item-width-m: 436px;
241
+ --aui-form-item-width-s: 140px;
242
+ --aui-border-m: 1px;
243
+ --aui-table-margin: 12px;
244
+ --aui-table-cell-padding-lr: 20px;
245
+ --aui-table-cell-padding-tb-s: 12px;
246
+ --aui-table-cell-padding-tb-m: 16px;
247
+ --aui-table-row-min-height-s: 52px;
248
+ --aui-table-row-min-height-m: 60px;
249
+ --aui-table-header-cell-padding-tb: 12px;
250
+ --aui-table-header-height: 44px;
251
+ --aui-table-border-width: 1px;
252
+ --aui-select-width: 100%;
253
+ --aui-select-options-padding: 8px;
254
+ --aui-color-primary: var(--aui-color-blue);
255
+ --aui-color-p-0: var(--aui-color-b-0);
256
+ --aui-color-p-1: var(--aui-color-b-1);
257
+ --aui-color-p-2: var(--aui-color-b-2);
258
+ --aui-color-p-3: var(--aui-color-b-3);
259
+ --aui-color-p-4: var(--aui-color-b-4);
260
+ --aui-color-p-5: var(--aui-color-b-5);
261
+ --aui-color-p-6: var(--aui-color-b-6);
262
+ --aui-color-p-7: var(--aui-color-b-7);
258
263
  }
259
264
 
260
265
  body {
@@ -268,7 +273,11 @@ a {
268
273
  color: rgb(var(--aui-color-primary));
269
274
  text-decoration: none;
270
275
  }
271
- a:hover, a:active, a:focus {
276
+ a:hover {
277
+ color: rgb(var(--aui-color-p-1));
278
+ text-decoration: underline;
279
+ }
280
+ a:active, a:focus {
272
281
  color: rgb(var(--aui-color-p-0));
273
282
  text-decoration: underline;
274
283
  }
@@ -0,0 +1,2 @@
1
+ export declare class ThemeModule {
2
+ }
@@ -0,0 +1,3 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from './theme.module';
3
+ export declare const ThemeModuleNgFactory: i0.NgModuleFactory<i1.ThemeModule>;
@@ -0,0 +1,10 @@
1
+ import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2
+ import { ThemeService } from './theme.service';
3
+ import { ThemeSet } from './theme.types';
4
+ export declare class ThemePipe<T> implements PipeTransform, OnDestroy {
5
+ private currentTheme;
6
+ private readonly destroy$$;
7
+ constructor(themeService: ThemeService, cdr: ChangeDetectorRef);
8
+ transform(v: ThemeSet<T>): T;
9
+ ngOnDestroy(): void;
10
+ }
@@ -1,5 +1,12 @@
1
+ import { Theme, ThemeMode } from './theme.types';
1
2
  export declare class ThemeService {
2
- getCurrentColorMode(): ColorMode;
3
- setColorMode(mode: ColorMode): void;
3
+ private readonly htmlEl;
4
+ private browserTheme;
5
+ private themeMode;
6
+ private readonly currentAppTheme$$;
7
+ currentAppTheme$: import("rxjs").Observable<Theme>;
8
+ constructor();
9
+ setThemeMode(mode: ThemeMode): void;
10
+ getAppTheme(): Theme;
11
+ private themeChanged;
4
12
  }
5
- export declare type ColorMode = 'auto' | 'light' | 'dark';
@@ -0,0 +1,3 @@
1
+ export declare type Theme = 'light' | 'dark';
2
+ export declare type ThemeMode = 'auto' | 'light' | 'dark';
3
+ export declare type ThemeSet<T> = Record<Theme, T> | ((theme: Theme) => T);