@devopmaat/badaboom 1.3.0 → 1.3.3
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/fesm2022/devopmaat-badaboom.mjs +576 -256
- package/fesm2022/devopmaat-badaboom.mjs.map +1 -1
- package/lib/application/common/full-table/bdb-full-table.component.d.ts +2 -1
- package/lib/application/common/table/_bdb-table-theme.scss +71 -0
- package/lib/application/common/table/bdb-table.component.d.ts +4 -3
- package/lib/application/media/media-display/media-display.component.d.ts +23 -0
- package/lib/application/media/media-full-table/media-full-table.component.d.ts +24 -0
- package/lib/application/media/media-table/media-table.component.d.ts +21 -0
- package/lib/application/media/media-type.pipe.d.ts +8 -0
- package/lib/application/media/media-upload/media-drop.directive.d.ts +27 -0
- package/lib/application/media/media-upload/media-upload.component.d.ts +15 -0
- package/lib/application/task-log/task-log-outcome.pipe.d.ts +1 -1
- package/lib/application/task-log/task-log-status.pipe.d.ts +1 -1
- package/lib/bdb-options.d.ts +3 -0
- package/lib/common/alert/_bdb-alert-theme.scss +39 -0
- package/lib/common/alert/bdb-alert.component.d.ts +3 -13
- package/lib/common/alert-error-response/bdb-alert-error-response.component.d.ts +0 -2
- package/lib/common/collapse-row/{_collapse-row-theme.scss → _bdb-collapse-row-theme.scss} +6 -5
- package/lib/common/field/_bdb-field-theme.scss +39 -0
- package/lib/common/file-size.pipe.d.ts +7 -0
- package/lib/common/youtube-player/youtube-player.component.d.ts +14 -0
- package/lib/domain/entities/media/media-preview.d.ts +6 -0
- package/lib/domain/entities/media/media.d.ts +6 -9
- package/lib/domain/entities/media/media.service.d.ts +1 -2
- package/lib/domain/enums/media-type.d.ts +1 -0
- package/lib/domain/enums/task-log-outcome.d.ts +1 -0
- package/lib/domain/enums/task-log-status.d.ts +1 -0
- package/lib/styles/_core-theme.scss +42 -5
- package/lib/styles/_theme.scss +55 -138
- package/lib/styles/material/_badge-theme.scss +46 -0
- package/lib/styles/material/_button-theme.scss +66 -0
- package/lib/styles/material/_card-theme.scss +41 -0
- package/lib/styles/material/_checkbox-theme.scss +35 -0
- package/lib/styles/material/_chips-theme.scss +37 -0
- package/lib/styles/material/_datepicker-theme.scss +36 -0
- package/lib/styles/material/_fab-theme.scss +50 -0
- package/lib/styles/material/_form-field-theme.scss +48 -0
- package/lib/styles/material/_icon-button-theme.scss +52 -0
- package/lib/styles/material/{_progress-spinner-m3-theme.scss → _icon-theme.scss} +12 -4
- package/lib/styles/material/_option-theme.scss +45 -0
- package/lib/styles/material/_progress-bar-theme.scss +39 -0
- package/lib/styles/material/_progress-spinner-theme.scss +35 -0
- package/lib/styles/material/_radio-theme.scss +47 -0
- package/lib/styles/material/_slide-toggle-theme.scss +39 -0
- package/lib/styles/material/_slider-theme.scss +59 -0
- package/lib/styles/material/_stepper-theme.scss +45 -0
- package/lib/styles/material/_tabs-theme.scss +32 -0
- package/lib/styles/material/_toolbar-theme.scss +41 -0
- package/package.json +3 -2
- package/public-api.d.ts +10 -3
- package/lib/application/common/query-input/_bdb-query-input-m2-theme.scss +0 -17
- package/lib/application/common/query-input/_bdb-query-input-m3-theme.scss +0 -30
- package/lib/application/common/search/_bdb-search-m2-theme.scss +0 -12
- package/lib/application/common/table/_bdb-table-m2-theme.scss +0 -48
- package/lib/application/common/table/_bdb-table-m3-theme.scss +0 -70
- package/lib/common/_button-m2-theme.scss +0 -87
- package/lib/common/_icon-m2-theme.scss +0 -32
- package/lib/common/alert/_bdb-alert-m2-theme.scss +0 -34
- package/lib/common/alert/_bdb-alert-m3-theme.scss +0 -29
- package/lib/common/boolean-display/_bdb-boolean-display-m2-theme.scss +0 -18
- package/lib/common/boolean-display/_bdb-boolean-display-m3-theme.scss +0 -27
- package/lib/common/color.d.ts +0 -14
- package/lib/common/constructor.d.ts +0 -2
- package/lib/common/field/_bdb-field-m2-theme.scss +0 -13
- package/lib/common/field/_bdb-field-m3-theme.scss +0 -56
- package/lib/domain/entities/media/media-read.d.ts +0 -14
- package/lib/styles/material/_badge-m3-theme.scss +0 -35
- package/lib/styles/material/_button-m3-theme.scss +0 -84
- package/lib/styles/material/_card-m3-theme.scss +0 -34
- package/lib/styles/material/_checkbox-m3-theme.scss +0 -54
- package/lib/styles/material/_chips-m3-theme.scss +0 -58
- package/lib/styles/material/_datepicker-m3-theme.scss +0 -84
- package/lib/styles/material/_fab-m3-theme.scss +0 -84
- package/lib/styles/material/_form-field-m3-theme.scss +0 -36
- package/lib/styles/material/_icon-m3-theme.scss +0 -32
- package/lib/styles/material/_option-m3-theme.scss +0 -34
- package/lib/styles/material/_progress-bar-m3-theme.scss +0 -31
- package/lib/styles/material/_radio-m3-theme.scss +0 -42
- package/lib/styles/material/_slide-toggle-m3-theme.scss +0 -68
- package/lib/styles/material/_slider-m3-theme.scss +0 -48
- package/lib/styles/material/_stepper-m3-theme.scss +0 -44
- package/lib/styles/material/_tabs-m3-theme.scss +0 -32
- package/lib/styles/material/_toolbar-m3-theme.scss +0 -63
- /package/lib/common/collapse-row/{collapse-row.component.d.ts → bdb-collapse-row.component.d.ts} +0 -0
- /package/lib/common/{plain-number-pipe.d.ts → plain-number.pipe.d.ts} +0 -0
package/lib/styles/_theme.scss
CHANGED
|
@@ -2,156 +2,73 @@
|
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use './core-theme' as bdb;
|
|
4
4
|
|
|
5
|
-
@use '
|
|
6
|
-
@use '
|
|
7
|
-
@use '
|
|
8
|
-
@use '
|
|
9
|
-
@use '
|
|
10
|
-
@use '
|
|
11
|
-
@use '
|
|
12
|
-
@use '
|
|
5
|
+
@use './material/badge-theme';
|
|
6
|
+
@use './material/button-theme';
|
|
7
|
+
@use './material/card-theme';
|
|
8
|
+
@use './material/checkbox-theme';
|
|
9
|
+
@use './material/chips-theme';
|
|
10
|
+
@use './material/datepicker-theme';
|
|
11
|
+
@use './material/fab-theme';
|
|
12
|
+
@use './material/form-field-theme';
|
|
13
|
+
@use './material/icon-button-theme';
|
|
14
|
+
@use './material/icon-theme';
|
|
15
|
+
@use './material/option-theme';
|
|
16
|
+
@use './material/progress-bar-theme';
|
|
17
|
+
@use './material/progress-spinner-theme';
|
|
18
|
+
@use './material/radio-theme';
|
|
19
|
+
@use './material/slide-toggle-theme';
|
|
20
|
+
@use './material/slider-theme';
|
|
21
|
+
@use './material/stepper-theme';
|
|
22
|
+
@use './material/tabs-theme';
|
|
23
|
+
@use './material/toolbar-theme';
|
|
13
24
|
|
|
14
|
-
@use '
|
|
15
|
-
@use '
|
|
16
|
-
@use '
|
|
17
|
-
@use '
|
|
18
|
-
@use './material/chips-m3-theme';
|
|
19
|
-
@use './material/datepicker-m3-theme';
|
|
20
|
-
@use './material/fab-m3-theme';
|
|
21
|
-
@use './material/form-field-m3-theme';
|
|
22
|
-
@use './material/icon-m3-theme';
|
|
23
|
-
@use './material/option-m3-theme';
|
|
24
|
-
@use './material/progress-bar-m3-theme';
|
|
25
|
-
@use './material/progress-spinner-m3-theme';
|
|
26
|
-
@use './material/radio-m3-theme';
|
|
27
|
-
@use './material/slide-toggle-m3-theme';
|
|
28
|
-
@use './material/slider-m3-theme';
|
|
29
|
-
@use './material/stepper-m3-theme';
|
|
30
|
-
@use './material/tabs-m3-theme';
|
|
31
|
-
@use './material/toolbar-m3-theme';
|
|
32
|
-
|
|
33
|
-
@use '../application/common/query-input/bdb-query-input-m3-theme';
|
|
34
|
-
@use '../application/common/table/bdb-table-m3-theme';
|
|
35
|
-
@use '../common/alert/bdb-alert-m3-theme';
|
|
36
|
-
@use '../common/boolean-display/bdb-boolean-display-m3-theme';
|
|
37
|
-
@use '../common/field/bdb-field-m3-theme';
|
|
38
|
-
@use '../common/collapse-row/collapse-row-theme';
|
|
39
|
-
|
|
40
|
-
@function define-light-theme($mat-theme, $warn-palette, $danger-palette, $success-palette, $info-palette) {
|
|
41
|
-
@warn "Using Badaboom with Material 2 is deprecated";
|
|
42
|
-
@return map.deep-merge(
|
|
43
|
-
$mat-theme,
|
|
44
|
-
(
|
|
45
|
-
color: (
|
|
46
|
-
warn: $warn-palette,
|
|
47
|
-
danger: $danger-palette,
|
|
48
|
-
success: $success-palette,
|
|
49
|
-
info: $info-palette,
|
|
50
|
-
),
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@mixin all-component-m2-themes($bdb-theme) {
|
|
56
|
-
@warn "Using Badaboom with Material 2 is deprecated";
|
|
57
|
-
@include bdb-alert-m2-theme.theme($bdb-theme);
|
|
58
|
-
@include bdb-boolean-display-m2-theme.theme($bdb-theme);
|
|
59
|
-
@include bdb-field-m2-theme.theme($bdb-theme);
|
|
60
|
-
@include bdb-query-input-m2-theme.theme($bdb-theme);
|
|
61
|
-
@include bdb-search-m2-theme.theme($bdb-theme);
|
|
62
|
-
@include bdb-table-m2-theme.theme($bdb-theme);
|
|
63
|
-
@include button-m2-theme.theme($bdb-theme);
|
|
64
|
-
@include icon-m2-theme.theme($bdb-theme);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
//Material 3
|
|
68
|
-
|
|
69
|
-
@function define-theme($material-theme, $badaboom-palettes) {
|
|
70
|
-
@return map.deep-merge(
|
|
71
|
-
$material-theme,
|
|
72
|
-
(
|
|
73
|
-
color: $badaboom-palettes,
|
|
74
|
-
)
|
|
75
|
-
);
|
|
76
|
-
}
|
|
25
|
+
@use '../application/common/table/bdb-table-theme';
|
|
26
|
+
@use '../common/alert/bdb-alert-theme';
|
|
27
|
+
@use '../common/field/bdb-field-theme';
|
|
28
|
+
@use '../common/collapse-row/bdb-collapse-row-theme';
|
|
77
29
|
|
|
78
30
|
@mixin system-level-colors($bdb-theme) {
|
|
79
31
|
$palettes: map.get($bdb-theme, color);
|
|
80
32
|
@each $palette-name in bdb.$badaboom-palettes {
|
|
81
33
|
$palette: map.get($palettes, $palette-name);
|
|
82
34
|
& {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
--sys-on-#{$palette-name}-container: #{map.get($palette, 90)};
|
|
88
|
-
} @else {
|
|
89
|
-
--sys-#{$palette-name}: #{map.get($palette, 40)};
|
|
90
|
-
--sys-on-#{$palette-name}: #{map.get($palette, 100)};
|
|
91
|
-
--sys-#{$palette-name}-container: #{map.get($palette, 90)};
|
|
92
|
-
--sys-on-#{$palette-name}-container: #{map.get($palette, 10)};
|
|
93
|
-
}
|
|
35
|
+
--bdb-sys-#{$palette-name}: light-dark(#{map.get($palette, 40)}, #{map.get($palette, 80)});
|
|
36
|
+
--bdb-sys-on-#{$palette-name}: light-dark(#{map.get($palette, 100)}, #{map.get($palette, 20)});
|
|
37
|
+
--bdb-sys-#{$palette-name}-container: light-dark(#{map.get($palette, 90)}, #{map.get($palette, 30)});
|
|
38
|
+
--bdb-sys-on-#{$palette-name}-container: light-dark(#{map.get($palette, 10)}, #{map.get($palette, 90)});
|
|
94
39
|
}
|
|
95
40
|
}
|
|
96
41
|
}
|
|
97
42
|
|
|
98
|
-
@mixin all-component-themes($bdb-theme) {
|
|
99
|
-
@include badge-
|
|
100
|
-
@include button-
|
|
101
|
-
@include card-
|
|
102
|
-
@include checkbox-
|
|
103
|
-
@include chips-
|
|
104
|
-
@include datepicker-
|
|
105
|
-
@include fab-
|
|
106
|
-
@include form-field-
|
|
107
|
-
@include icon-
|
|
108
|
-
@include
|
|
109
|
-
@include
|
|
110
|
-
@include progress-
|
|
111
|
-
@include
|
|
112
|
-
@include
|
|
113
|
-
@include
|
|
114
|
-
@include
|
|
115
|
-
@include
|
|
116
|
-
@include
|
|
117
|
-
|
|
118
|
-
@include bdb-table-m3-theme.theme($bdb-theme);
|
|
119
|
-
@include bdb-query-input-m3-theme.theme($bdb-theme);
|
|
43
|
+
@mixin all-component-themes($mat-theme, $bdb-theme) {
|
|
44
|
+
@include badge-theme.theme($bdb-theme);
|
|
45
|
+
@include button-theme.theme($bdb-theme);
|
|
46
|
+
@include card-theme.theme($bdb-theme);
|
|
47
|
+
@include checkbox-theme.theme($bdb-theme);
|
|
48
|
+
@include chips-theme.theme($bdb-theme);
|
|
49
|
+
@include datepicker-theme.theme($bdb-theme);
|
|
50
|
+
@include fab-theme.theme($bdb-theme);
|
|
51
|
+
@include form-field-theme.theme($bdb-theme);
|
|
52
|
+
@include icon-button-theme.theme($bdb-theme);
|
|
53
|
+
@include icon-theme.theme($bdb-theme);
|
|
54
|
+
@include option-theme.theme($bdb-theme);
|
|
55
|
+
@include progress-bar-theme.theme($bdb-theme);
|
|
56
|
+
@include progress-spinner-theme.theme($bdb-theme);
|
|
57
|
+
@include radio-theme.theme($bdb-theme);
|
|
58
|
+
@include slide-toggle-theme.theme($bdb-theme);
|
|
59
|
+
@include slider-theme.theme($bdb-theme);
|
|
60
|
+
@include stepper-theme.theme($bdb-theme);
|
|
61
|
+
@include tabs-theme.theme($bdb-theme);
|
|
62
|
+
@include toolbar-theme.theme($bdb-theme);
|
|
120
63
|
|
|
121
|
-
@include bdb-alert-
|
|
122
|
-
@include bdb-
|
|
123
|
-
@include bdb-field-
|
|
124
|
-
@include
|
|
64
|
+
@include bdb-alert-theme.theme($bdb-theme);
|
|
65
|
+
@include bdb-collapse-row-theme.theme($bdb-theme);
|
|
66
|
+
@include bdb-field-theme.theme($bdb-theme);
|
|
67
|
+
@include bdb-table-theme.theme($mat-theme, $bdb-theme);
|
|
125
68
|
}
|
|
126
69
|
|
|
127
|
-
@mixin
|
|
128
|
-
@
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
@include card-m3-theme.color($bdb-theme);
|
|
132
|
-
@include checkbox-m3-theme.color($bdb-theme);
|
|
133
|
-
@include chips-m3-theme.color($bdb-theme);
|
|
134
|
-
@include datepicker-m3-theme.color($bdb-theme);
|
|
135
|
-
@include fab-m3-theme.color($bdb-theme);
|
|
136
|
-
@include form-field-m3-theme.color($bdb-theme);
|
|
137
|
-
@include icon-m3-theme.color($bdb-theme);
|
|
138
|
-
@include option-m3-theme.color($bdb-theme);
|
|
139
|
-
@include progress-bar-m3-theme.color($bdb-theme);
|
|
140
|
-
@include progress-spinner-m3-theme.color($bdb-theme);
|
|
141
|
-
@include radio-m3-theme.color($bdb-theme);
|
|
142
|
-
@include slide-toggle-m3-theme.color($bdb-theme);
|
|
143
|
-
@include slider-m3-theme.color($bdb-theme);
|
|
144
|
-
@include stepper-m3-theme.color($bdb-theme);
|
|
145
|
-
@include tabs-m3-theme.color($bdb-theme);
|
|
146
|
-
@include toolbar-m3-theme.color($bdb-theme);
|
|
147
|
-
|
|
148
|
-
@include bdb-table-m3-theme.color($bdb-theme);
|
|
149
|
-
@include bdb-query-input-m3-theme.color($bdb-theme);
|
|
150
|
-
|
|
151
|
-
@include bdb-alert-m3-theme.color($bdb-theme);
|
|
152
|
-
@include bdb-boolean-display-m3-theme.color($bdb-theme);
|
|
153
|
-
@include bdb-field-m3-theme.color($bdb-theme);
|
|
154
|
-
@include bdb-field-m3-theme.color($bdb-theme);
|
|
155
|
-
@include collapse-row-theme.color($bdb-theme);
|
|
156
|
-
}
|
|
70
|
+
@mixin theme($mat-theme, $bdb-theme) {
|
|
71
|
+
@include mat.theme($mat-theme);
|
|
72
|
+
@include system-level-colors($bdb-theme);
|
|
73
|
+
@include all-component-themes($mat-theme, $bdb-theme);
|
|
157
74
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
9
|
+
.mat-badge.badge-#{$palette-name} {
|
|
10
|
+
@include mat.badge-overrides(
|
|
11
|
+
(
|
|
12
|
+
background-color: $bg,
|
|
13
|
+
text-color: $fg,
|
|
14
|
+
disabled-state-background-color: $bg,
|
|
15
|
+
disabled-state-text-color: $fg,
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mat-badge.badge-#{$palette-name}-container {
|
|
21
|
+
$bg: bdb.palette-color($palette-name, true);
|
|
22
|
+
$fg: bdb.on-palette-color($palette-name, true);
|
|
23
|
+
@include mat.badge-overrides(
|
|
24
|
+
(
|
|
25
|
+
background-color: $bg,
|
|
26
|
+
text-color: $fg,
|
|
27
|
+
disabled-state-background-color: $bg,
|
|
28
|
+
disabled-state-text-color: $fg,
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin typography($theme) {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin theme($theme) {
|
|
39
|
+
@if mat.theme-has($theme, color) {
|
|
40
|
+
@include color($theme);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@if mat.theme-has($theme, typography) {
|
|
44
|
+
@include typography($theme);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$bg-container: bdb.palette-color($palette-name, true);
|
|
9
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
10
|
+
$fg-container: bdb.on-palette-color($palette-name, true);
|
|
11
|
+
|
|
12
|
+
.mdc-button.#{$palette-name} {
|
|
13
|
+
@include mat.button-overrides(
|
|
14
|
+
(
|
|
15
|
+
filled-container-color: $bg,
|
|
16
|
+
filled-label-text-color: $fg,
|
|
17
|
+
filled-state-layer-color: $fg,
|
|
18
|
+
outlined-label-text-color: $bg,
|
|
19
|
+
outlined-state-layer-color: $bg,
|
|
20
|
+
protected-label-text-color: $bg,
|
|
21
|
+
protected-state-layer-color: $bg,
|
|
22
|
+
text-label-text-color: $bg,
|
|
23
|
+
text-state-layer-color: $bg,
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
.mdc-button.#{$palette-name}-container {
|
|
28
|
+
@include mat.button-overrides(
|
|
29
|
+
(
|
|
30
|
+
filled-container-color: $bg-container,
|
|
31
|
+
filled-label-text-color: $fg-container,
|
|
32
|
+
filled-state-layer-color: $fg-container,
|
|
33
|
+
outlined-label-text-color: $bg-container,
|
|
34
|
+
outlined-state-layer-color: $bg-container,
|
|
35
|
+
protected-label-text-color: $bg-container,
|
|
36
|
+
protected-state-layer-color: $bg-container,
|
|
37
|
+
text-label-text-color: $bg-container,
|
|
38
|
+
text-state-layer-color: $bg-container,
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin typography($theme) {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin theme($theme) {
|
|
49
|
+
// round button corners to 8px
|
|
50
|
+
@include mat.button-overrides(
|
|
51
|
+
(
|
|
52
|
+
filled-container-shape: 8px,
|
|
53
|
+
outlined-container-shape: 8px,
|
|
54
|
+
protected-container-shape: 8px,
|
|
55
|
+
text-container-shape: 8px,
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
@if mat.theme-has($theme, color) {
|
|
60
|
+
@include color($theme);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@if mat.theme-has($theme, typography) {
|
|
64
|
+
@include typography($theme);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
9
|
+
.mdc-card.#{$palette-name} {
|
|
10
|
+
@include mat.card-overrides(
|
|
11
|
+
(
|
|
12
|
+
elevated-container-color: $bg,
|
|
13
|
+
outlined-container-color: $bg,
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mdc-card.#{$palette-name}-container {
|
|
19
|
+
$bg: bdb.palette-color($palette-name, true);
|
|
20
|
+
@include mat.card-overrides(
|
|
21
|
+
(
|
|
22
|
+
elevated-container-color: $bg,
|
|
23
|
+
outlined-container-color: $bg,
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin typography($theme) {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin theme($theme) {
|
|
34
|
+
@if mat.theme-has($theme, color) {
|
|
35
|
+
@include color($theme);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@if mat.theme-has($theme, typography) {
|
|
39
|
+
@include typography($theme);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
.mat-mdc-checkbox.#{$palette-name} {
|
|
8
|
+
$bg: bdb.palette-color($palette-name);
|
|
9
|
+
@include mat.checkbox-overrides(
|
|
10
|
+
(
|
|
11
|
+
selected-pressed-icon-color: $bg,
|
|
12
|
+
selected-focus-icon-color: $bg,
|
|
13
|
+
selected-hover-icon-color: $bg,
|
|
14
|
+
selected-icon-color: $bg,
|
|
15
|
+
selected-focus-state-layer-color: $bg,
|
|
16
|
+
selected-hover-state-layer-color: $bg,
|
|
17
|
+
unselected-pressed-state-layer-color: $bg,
|
|
18
|
+
)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin typography($theme) {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin theme($theme) {
|
|
28
|
+
@if mat.theme-has($theme, color) {
|
|
29
|
+
@include color($theme);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@if mat.theme-has($theme, typography) {
|
|
33
|
+
@include typography($theme);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
9
|
+
.mat-mdc-chip.#{$palette-name} {
|
|
10
|
+
@include mat.chips-overrides(
|
|
11
|
+
(
|
|
12
|
+
outline-color: $bg,
|
|
13
|
+
elevated-selected-container-color: $bg,
|
|
14
|
+
selected-hover-state-layer-color: $bg,
|
|
15
|
+
selected-focus-state-layer-color: $bg,
|
|
16
|
+
selected-label-text-color: $bg,
|
|
17
|
+
label-text-color: $fg,
|
|
18
|
+
with-icon-selected-icon-color: $fg,
|
|
19
|
+
selected-trailing-icon-color: $fg,
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin typography($theme) {
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin theme($theme) {
|
|
30
|
+
@if mat.theme-has($theme, color) {
|
|
31
|
+
@include color($theme);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@if mat.theme-has($theme, typography) {
|
|
35
|
+
@include typography($theme);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
9
|
+
$bg-container: bdb.palette-color($palette-name, true);
|
|
10
|
+
.mat-calendar.#{$palette-name} {
|
|
11
|
+
@include mat.datepicker-overrides(
|
|
12
|
+
(
|
|
13
|
+
calendar-date-selected-state-background-color: $bg,
|
|
14
|
+
calendar-date-today-selected-state-outline-color: $bg,
|
|
15
|
+
calendar-date-in-range-state-background-color: $bg-container,
|
|
16
|
+
calendar-date-selected-state-text-color: $fg,
|
|
17
|
+
calendar-date-today-outline-color: $bg,
|
|
18
|
+
calendar-date-preview-state-outline-color: $bg,
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin typography($theme) {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin theme($theme) {
|
|
29
|
+
@if mat.theme-has($theme, color) {
|
|
30
|
+
@include color($theme);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@if mat.theme-has($theme, typography) {
|
|
34
|
+
@include typography($theme);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
4
|
+
@use '../core-theme' as bdb;
|
|
5
|
+
|
|
6
|
+
@mixin color($theme) {
|
|
7
|
+
@each $palette-name in bdb.$palette-names {
|
|
8
|
+
.mat-mdc-fab.#{$palette-name},
|
|
9
|
+
.mat-mdc-mini-fab.#{$palette-name} {
|
|
10
|
+
$bg: bdb.palette-color($palette-name);
|
|
11
|
+
$bg-container: bdb.palette-color($palette-name, true);
|
|
12
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
13
|
+
$fg-container: bdb.on-palette-color($palette-name, true);
|
|
14
|
+
@include mat.fab-overrides(
|
|
15
|
+
(
|
|
16
|
+
container-color: $bg,
|
|
17
|
+
foreground-color: $fg,
|
|
18
|
+
state-layer-color: $bg,
|
|
19
|
+
// ripple-color: $bg,
|
|
20
|
+
small-container-color: $bg,
|
|
21
|
+
small-foreground-color: $fg,
|
|
22
|
+
small-state-layer-color: $bg,
|
|
23
|
+
// small-ripple-color: $bg,
|
|
24
|
+
small-container-elevation-shadow: var(--mat-sys-level3),
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin typography($theme) {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin theme($theme) {
|
|
35
|
+
// round button corners to 8px
|
|
36
|
+
@include mat.fab-overrides(
|
|
37
|
+
(
|
|
38
|
+
container-shape: 4px,
|
|
39
|
+
small-container-shape: 4px,
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
@if mat.theme-has($theme, color) {
|
|
44
|
+
@include color($theme);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@if mat.theme-has($theme, typography) {
|
|
48
|
+
@include typography($theme);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$palette-names {
|
|
7
|
+
$bg: bdb.palette-color($palette-name);
|
|
8
|
+
$fg: bdb.on-palette-color($palette-name);
|
|
9
|
+
.mat-mdc-form-field.#{$palette-name} {
|
|
10
|
+
@include mat.form-field-overrides(
|
|
11
|
+
(
|
|
12
|
+
filled-caret-color: $bg,
|
|
13
|
+
filled-focus-active-indicator-color: $bg,
|
|
14
|
+
filled-focus-label-text-color: $bg,
|
|
15
|
+
outlined-caret-color: $bg,
|
|
16
|
+
outlined-focus-outline-color: $bg,
|
|
17
|
+
outlined-focus-label-text-color: $bg,
|
|
18
|
+
focus-select-arrow-color: $bg,
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// @each $palette-name in bdb.$badaboom-palettes {
|
|
25
|
+
// .#{$palette-name}.mat-mdc-form-field {
|
|
26
|
+
// --mdc-filled-text-field-caret-color: var(--mat-sys-#{$palette-name});
|
|
27
|
+
// --mdc-filled-text-field-focus-active-indicator-color: var(--mat-sys-#{$palette-name});
|
|
28
|
+
// --mdc-filled-text-field-focus-label-text-color: var(--mat-sys-#{$palette-name});
|
|
29
|
+
// --mdc-outlined-text-field-caret-color: var(--mat-sys-#{$palette-name});
|
|
30
|
+
// --mdc-outlined-text-field-focus-outline-color: var(--mat-sys-#{$palette-name});
|
|
31
|
+
// --mdc-outlined-text-field-focus-label-text-color: var(--mat-sys-#{$palette-name});
|
|
32
|
+
// --mat-form-field-focus-select-arrow-color: var(--mat-sys-#{$palette-name});
|
|
33
|
+
// }
|
|
34
|
+
// }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin typography($theme) {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin theme($theme) {
|
|
41
|
+
@if mat.theme-has($theme, color) {
|
|
42
|
+
@include color($theme);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@if mat.theme-has($theme, typography) {
|
|
46
|
+
@include typography($theme);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../core-theme' as bdb;
|
|
4
|
+
|
|
5
|
+
@mixin color($theme) {
|
|
6
|
+
@each $palette-name in bdb.$material-palettes {
|
|
7
|
+
.mdc-icon-button.#{$palette-name} {
|
|
8
|
+
@include mat.icon-button-overrides(
|
|
9
|
+
(
|
|
10
|
+
icon-color: var(--mat-sys-#{$palette-name}),
|
|
11
|
+
state-layer-color: var(--mat-sys-#{$palette-name}),
|
|
12
|
+
disabled-state-layer-color: var(--mat-sys-#{$palette-name}),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@each $palette-name in bdb.$badaboom-palettes {
|
|
19
|
+
.mdc-icon-button.#{$palette-name} {
|
|
20
|
+
@include mat.icon-button-overrides(
|
|
21
|
+
(
|
|
22
|
+
icon-color: var(--bdb-sys-#{$palette-name}),
|
|
23
|
+
state-layer-color: var(--bdb-sys-#{$palette-name}),
|
|
24
|
+
disabled-state-layer-color: var(--bdb-sys-#{$palette-name}),
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin typography($theme) {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin theme($theme) {
|
|
35
|
+
// round button corners to 8px
|
|
36
|
+
@include mat.button-overrides(
|
|
37
|
+
(
|
|
38
|
+
filled-container-shape: 8px,
|
|
39
|
+
outlined-container-shape: 8px,
|
|
40
|
+
protected-container-shape: 8px,
|
|
41
|
+
text-container-shape: 8px,
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
@if mat.theme-has($theme, color) {
|
|
46
|
+
@include color($theme);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@if mat.theme-has($theme, typography) {
|
|
50
|
+
@include typography($theme);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -4,14 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
@mixin color($theme) {
|
|
6
6
|
@each $palette-name in bdb.$material-palettes {
|
|
7
|
-
.#{$palette-name}
|
|
8
|
-
@include mat.
|
|
7
|
+
.mat-icon.#{$palette-name} {
|
|
8
|
+
@include mat.icon-overrides(
|
|
9
|
+
(
|
|
10
|
+
color: var(--mat-sys-#{$palette-name}),
|
|
11
|
+
)
|
|
12
|
+
);
|
|
9
13
|
}
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
@each $palette-name in bdb.$badaboom-palettes {
|
|
13
|
-
.#{$palette-name}
|
|
14
|
-
|
|
17
|
+
.mat-icon.#{$palette-name} {
|
|
18
|
+
@include mat.icon-overrides(
|
|
19
|
+
(
|
|
20
|
+
color: var(--bdb-sys-#{$palette-name}),
|
|
21
|
+
)
|
|
22
|
+
);
|
|
15
23
|
}
|
|
16
24
|
}
|
|
17
25
|
}
|