@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.
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +116 -36
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/accordion/accordion.module.ngfactory.js +4 -3
- package/esm2015/accordion/accordion.module.ngsummary.json +1 -1
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- package/esm2015/back-top/back-top.module.ngfactory.js +3 -2
- package/esm2015/back-top/back-top.module.ngsummary.json +1 -1
- package/esm2015/breadcrumb/breadcrumb.module.ngfactory.js +3 -2
- package/esm2015/breadcrumb/breadcrumb.module.ngsummary.json +1 -1
- package/esm2015/button/button-group/button-group.component.js +1 -1
- package/esm2015/button/button-group/button-group.component.scss.ngstyle.js +1 -1
- package/esm2015/button/button.component.js +1 -1
- package/esm2015/button/button.component.scss.ngstyle.js +1 -1
- package/esm2015/button/button.module.ngfactory.js +3 -2
- package/esm2015/button/button.module.ngsummary.json +1 -1
- package/esm2015/checkbox/checkbox.module.ngfactory.js +3 -2
- package/esm2015/checkbox/checkbox.module.ngsummary.json +1 -1
- package/esm2015/date-picker/date-picker.module.ngfactory.js +13 -12
- package/esm2015/date-picker/date-picker.module.ngsummary.json +1 -1
- package/esm2015/dialog/dialog.module.ngfactory.js +4 -3
- package/esm2015/dialog/dialog.module.ngsummary.json +1 -1
- package/esm2015/drawer/drawer.module.ngfactory.js +6 -5
- package/esm2015/drawer/drawer.module.ngsummary.json +1 -1
- package/esm2015/dropdown/dropdown.module.ngfactory.js +4 -3
- package/esm2015/dropdown/dropdown.module.ngsummary.json +1 -1
- package/esm2015/icon/icon.component.js +13 -12
- package/esm2015/icon/icon.component.ngfactory.js +10 -7
- package/esm2015/icon/icon.component.ngsummary.json +1 -1
- package/esm2015/icon/icon.module.js +3 -2
- package/esm2015/icon/icon.module.ngfactory.js +3 -2
- package/esm2015/icon/icon.module.ngsummary.json +1 -1
- package/esm2015/inline-alert/inline-alert.module.ngfactory.js +3 -2
- package/esm2015/inline-alert/inline-alert.module.ngsummary.json +1 -1
- package/esm2015/input/input-group/input-group.component.js +1 -1
- package/esm2015/input/input-group/input-group.component.scss.ngstyle.js +1 -1
- package/esm2015/input/input.module.ngfactory.js +6 -5
- package/esm2015/input/input.module.ngsummary.json +1 -1
- package/esm2015/input/search/search.component.js +1 -1
- package/esm2015/input/search/search.component.scss.ngstyle.js +1 -1
- package/esm2015/message/message.module.ngfactory.js +3 -2
- package/esm2015/message/message.module.ngsummary.json +1 -1
- package/esm2015/nav-menu/nav-menu.module.ngfactory.js +5 -4
- package/esm2015/nav-menu/nav-menu.module.ngsummary.json +1 -1
- package/esm2015/nav-menu/platform-nav.module.ngfactory.js +6 -5
- package/esm2015/nav-menu/platform-nav.module.ngsummary.json +1 -1
- package/esm2015/notification/notification.module.ngfactory.js +3 -2
- package/esm2015/notification/notification.module.ngsummary.json +1 -1
- package/esm2015/paginator/paginator.module.ngfactory.js +13 -12
- package/esm2015/paginator/paginator.module.ngsummary.json +1 -1
- package/esm2015/public-api.ngsummary.json +1 -1
- package/esm2015/radio/radio.module.ngfactory.js +3 -2
- package/esm2015/radio/radio.module.ngsummary.json +1 -1
- package/esm2015/select/select.module.ngfactory.js +12 -11
- package/esm2015/select/select.module.ngsummary.json +1 -1
- package/esm2015/steps/steps.module.ngfactory.js +3 -2
- package/esm2015/steps/steps.module.ngsummary.json +1 -1
- package/esm2015/table/table-cell.component.js +2 -2
- package/esm2015/table/table-cell.component.ngfactory.js +1 -1
- package/esm2015/table/table-cell.component.ngsummary.json +1 -1
- package/esm2015/table/table.component.js +1 -1
- package/esm2015/table/table.component.scss.ngstyle.js +1 -1
- package/esm2015/table/table.module.ngfactory.js +8 -7
- package/esm2015/table/table.module.ngsummary.json +1 -1
- package/esm2015/tabs/tabs.module.ngfactory.js +6 -5
- package/esm2015/tabs/tabs.module.ngsummary.json +1 -1
- package/esm2015/tag/tag.module.ngfactory.js +3 -2
- package/esm2015/tag/tag.module.ngsummary.json +1 -1
- package/esm2015/theme/public-api.js +4 -1
- package/esm2015/theme/public-api.ngsummary.json +1 -1
- package/esm2015/theme/theme.module.js +13 -0
- package/esm2015/theme/theme.module.ngfactory.js +12 -0
- package/esm2015/theme/theme.module.ngsummary.json +1 -0
- package/esm2015/theme/theme.pipe.js +33 -0
- package/esm2015/theme/theme.pipe.ngsummary.json +1 -0
- package/esm2015/theme/theme.service.js +42 -7
- package/esm2015/theme/theme.service.ngsummary.json +1 -1
- package/esm2015/theme/theme.types.js +2 -0
- package/esm2015/theme/theme.types.ngsummary.json +1 -0
- package/esm2015/time-picker/time-picker.module.ngfactory.js +9 -8
- package/esm2015/time-picker/time-picker.module.ngsummary.json +1 -1
- package/esm2015/tree-select/tree-select.module.ngfactory.js +7 -6
- package/esm2015/tree-select/tree-select.module.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +110 -37
- package/fesm2015/alauda-ui.js.map +1 -1
- package/icon/icon.component.d.ts +6 -4
- package/package.json +1 -1
- package/theme/_base-var.scss +2 -0
- package/theme/_mixin.scss +36 -2
- package/theme/_pattern.scss +13 -7
- package/theme/public-api.d.ts +3 -0
- package/theme/style.css +120 -111
- package/theme/theme.module.d.ts +2 -0
- package/theme/theme.module.ngfactory.d.ts +3 -0
- package/theme/theme.pipe.d.ts +10 -0
- package/theme/theme.service.d.ts +10 -3
- package/theme/theme.types.d.ts +3 -0
package/icon/icon.component.d.ts
CHANGED
|
@@ -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
|
|
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(
|
|
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
package/theme/_base-var.scss
CHANGED
package/theme/_mixin.scss
CHANGED
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
@import 'base-var';
|
|
2
2
|
@import 'var';
|
|
3
3
|
|
|
4
|
-
@mixin
|
|
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
|
-
|
|
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
|
package/theme/_pattern.scss
CHANGED
|
@@ -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
|
-
|
|
103
|
-
get-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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);
|
package/theme/public-api.d.ts
CHANGED
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
--aui-color-
|
|
120
|
-
--aui-color-
|
|
121
|
-
--aui-color-
|
|
122
|
-
--aui-color-
|
|
123
|
-
--aui-color-
|
|
124
|
-
--aui-color-
|
|
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=
|
|
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
|
-
|
|
217
|
-
--aui-
|
|
218
|
-
--aui-
|
|
219
|
-
--aui-
|
|
220
|
-
--aui-
|
|
221
|
-
--aui-
|
|
222
|
-
--aui-
|
|
223
|
-
--aui-
|
|
224
|
-
--aui-
|
|
225
|
-
--aui-
|
|
226
|
-
--aui-
|
|
227
|
-
--aui-
|
|
228
|
-
--aui-
|
|
229
|
-
--aui-
|
|
230
|
-
--aui-
|
|
231
|
-
--aui-
|
|
232
|
-
--aui-
|
|
233
|
-
--aui-
|
|
234
|
-
--aui-
|
|
235
|
-
--aui-
|
|
236
|
-
--aui-
|
|
237
|
-
--aui-
|
|
238
|
-
--aui-
|
|
239
|
-
--aui-
|
|
240
|
-
--aui-
|
|
241
|
-
--aui-
|
|
242
|
-
--aui-
|
|
243
|
-
--aui-
|
|
244
|
-
--aui-
|
|
245
|
-
--aui-
|
|
246
|
-
--aui-
|
|
247
|
-
--aui-
|
|
248
|
-
--aui-
|
|
249
|
-
--aui-
|
|
250
|
-
--aui-
|
|
251
|
-
--aui-
|
|
252
|
-
--aui-
|
|
253
|
-
--aui-
|
|
254
|
-
--aui-
|
|
255
|
-
--aui-
|
|
256
|
-
--aui-
|
|
257
|
-
--aui-
|
|
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
|
|
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,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
|
+
}
|
package/theme/theme.service.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { Theme, ThemeMode } from './theme.types';
|
|
1
2
|
export declare class ThemeService {
|
|
2
|
-
|
|
3
|
-
|
|
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';
|