@camaradesuk/m3e-angular 0.0.0-stage → 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +45 -2
- package/fesm2022/camaradesuk-m3e-angular.mjs +5194 -0
- package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -0
- package/package.json +64 -4
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/angular-json.js +78 -0
- package/schematics/ng-add/constants.js +32 -0
- package/schematics/ng-add/index.js +67 -0
- package/schematics/ng-add/prompts.js +39 -0
- package/schematics/ng-add/schema.json +47 -0
- package/schematics/ng-add/stylesheet.js +50 -0
- package/schematics/ng-add/types.js +2 -0
- package/schematics/package.json +3 -0
- package/src/lib/styles/_index.scss +12 -0
- package/src/lib/styles/_mat-exp-styles.scss +18 -0
- package/src/lib/styles/components/all-buttons/_common-selectors.scss +27 -0
- package/src/lib/styles/components/all-buttons/_index.scss +19 -0
- package/src/lib/styles/components/all-buttons/button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/button/_index.scss +119 -0
- package/src/lib/styles/components/all-buttons/button/configs/_default.scss +9 -0
- package/src/lib/styles/components/all-buttons/button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/button/configs/_l.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_m.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_s.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_xl.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/configs/_xs.scss +63 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_common.scss +99 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_index.scss +5 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_l.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_m.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_s.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xl.scss +81 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xs.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_config.scss +16 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-l-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-m-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-s-corners.scss +83 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-xl-corners.scss +81 -0
- package/src/lib/styles/components/all-buttons/button-group/_connected-xs-corners.scss +82 -0
- package/src/lib/styles/components/all-buttons/button-group/_index.scss +117 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_connected.scss +78 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_default.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_index.scss +7 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_l.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_m.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_s.scss +19 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_xl.scss +9 -0
- package/src/lib/styles/components/all-buttons/button-group/configs/_xs.scss +19 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_common.scss +40 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_connected.scss +23 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_l.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_m.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_s.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_xl.scss +12 -0
- package/src/lib/styles/components/all-buttons/button-group/tokens/_xs.scss +12 -0
- package/src/lib/styles/components/all-buttons/fab-menu/_config.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu/_index.scss +92 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_default.scss +9 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_primary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_secondary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/configs/_tertiary.scss +10 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_common.scss +12 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_primary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_secondary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu/tokens/_tertiary.scss +3 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/_config.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/_index.scss +67 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_default.scss +6 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_primary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_secondary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/configs/_tertiary.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_common.scss +7 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_index.scss +4 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_primary.scss +13 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_secondary.scss +13 -0
- package/src/lib/styles/components/all-buttons/fab-menu-trigger/tokens/_tertiary.scss +13 -0
- package/src/lib/styles/components/all-buttons/icon-button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/icon-button/_index.scss +134 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_default.scss +8 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_l.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_m.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_s.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xl.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xs.scss +265 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_common.scss +28 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_index.scss +5 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_l.scss +135 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_m.scss +133 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_s.scss +98 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xl.scss +119 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xs.scss +299 -0
- package/src/lib/styles/components/all-buttons/split-button/_config.scss +13 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-l-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-m-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-s-corners.scss +60 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-xl-corners.scss +59 -0
- package/src/lib/styles/components/all-buttons/split-button/_connected-xs-corners.scss +60 -0
- package/src/lib/styles/components/all-buttons/split-button/_index.scss +114 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_default.scss +8 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_l.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_m.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_s.scss +74 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_xl.scss +56 -0
- package/src/lib/styles/components/all-buttons/split-button/configs/_xs.scss +74 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_common.scss +24 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_l.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_m.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_s.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_xl.scss +36 -0
- package/src/lib/styles/components/all-buttons/split-button/tokens/_xs.scss +36 -0
- package/src/lib/styles/components/all-buttons/utils/_functions.scss +68 -0
- package/src/lib/styles/components/dialog/_index.scss +56 -0
- package/src/lib/styles/components/lists/_index.scss +278 -0
- package/src/lib/styles/components/toolbars/_index.scss +211 -0
- package/src/lib/styles/prebuilt.scss +5 -0
- package/src/lib/styles/utils/_constants.scss +52 -0
- package/src/lib/styles/utils/_generated-attributes.scss +58 -0
- package/src/lib/styles/utils/functions/_filter-config.scss +64 -0
- package/src/lib/styles/utils/functions/_get-state-pseudo.scss +6 -0
- package/src/lib/styles/utils/functions/_index.scss +4 -0
- package/src/lib/styles/utils/functions/_rem.scss +5 -0
- package/src/lib/styles/utils/functions/_validate-config.scss +179 -0
- package/src/lib/styles/utils/mixins/_apply-tokens-properties.scss +25 -0
- package/src/lib/styles/utils/mixins/_index.scss +2 -0
- package/src/lib/styles/utils/mixins/_keyframes.scss +5 -0
- package/src/styles/styles.css +3796 -0
- package/src/styles/styles.css.map +1 -0
- package/types/camaradesuk-m3e-angular.d.ts +1644 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use '../tokens/xs' as xs;
|
|
2
|
+
@use '../../../../utils/functions';
|
|
3
|
+
@use '../../utils/functions' as button-functions;
|
|
4
|
+
|
|
5
|
+
// prettier removes trailing comma
|
|
6
|
+
// prettier-ignore
|
|
7
|
+
$config: (
|
|
8
|
+
(
|
|
9
|
+
size: 'xs',
|
|
10
|
+
properties: xs.$properties,
|
|
11
|
+
),
|
|
12
|
+
(
|
|
13
|
+
size: 'xs',
|
|
14
|
+
properties: (
|
|
15
|
+
' > .mat-exp-icon-button': (
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(48),
|
|
18
|
+
),
|
|
19
|
+
)
|
|
20
|
+
// ' > .mat-exp-icon-button .mat-icon': (
|
|
21
|
+
// font-size : (
|
|
22
|
+
// value: functions.rem(22),
|
|
23
|
+
// ),
|
|
24
|
+
// width: (
|
|
25
|
+
// value: functions.rem(22),
|
|
26
|
+
// ),
|
|
27
|
+
// line-height: (
|
|
28
|
+
// value: functions.rem(20),
|
|
29
|
+
// )
|
|
30
|
+
// ),
|
|
31
|
+
),
|
|
32
|
+
),
|
|
33
|
+
(
|
|
34
|
+
size: 'xs',
|
|
35
|
+
properties: (
|
|
36
|
+
' >:first-child.mat-exp-button': (
|
|
37
|
+
padding-left: (
|
|
38
|
+
value: functions.rem(12),
|
|
39
|
+
),
|
|
40
|
+
padding-right: (
|
|
41
|
+
value: functions.rem(10),
|
|
42
|
+
),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
46
|
+
(
|
|
47
|
+
size: 'xs',
|
|
48
|
+
menu-open: false,
|
|
49
|
+
properties: (
|
|
50
|
+
' >:last-child.mat-exp-icon-button': (
|
|
51
|
+
padding-left: (
|
|
52
|
+
value: functions.rem(12),
|
|
53
|
+
),
|
|
54
|
+
padding-right: (
|
|
55
|
+
value: functions.rem(14),
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
),
|
|
59
|
+
),
|
|
60
|
+
(
|
|
61
|
+
size: 'xs',
|
|
62
|
+
menu-open: true,
|
|
63
|
+
properties: (
|
|
64
|
+
' >:last-child.mat-exp-icon-button': (
|
|
65
|
+
padding-left: (
|
|
66
|
+
value: functions.rem(13),
|
|
67
|
+
),
|
|
68
|
+
padding-right: (
|
|
69
|
+
value: functions.rem(13),
|
|
70
|
+
),
|
|
71
|
+
),
|
|
72
|
+
),
|
|
73
|
+
)
|
|
74
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
|
|
3
|
+
$common-properties: (
|
|
4
|
+
'': (
|
|
5
|
+
position: (
|
|
6
|
+
value: relative,
|
|
7
|
+
),
|
|
8
|
+
display: (
|
|
9
|
+
value: inline-flex,
|
|
10
|
+
),
|
|
11
|
+
flex-direction: (
|
|
12
|
+
value: row,
|
|
13
|
+
),
|
|
14
|
+
white-space: (
|
|
15
|
+
value: nowrap,
|
|
16
|
+
),
|
|
17
|
+
column-gap: (
|
|
18
|
+
value: functions.rem(2),
|
|
19
|
+
),
|
|
20
|
+
// overflow: (
|
|
21
|
+
// value: hidden,
|
|
22
|
+
// ),
|
|
23
|
+
),
|
|
24
|
+
);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../common-selectors';
|
|
4
|
+
@use '../../utils/functions' as button-functions;
|
|
5
|
+
|
|
6
|
+
$properties: (
|
|
7
|
+
'': (
|
|
8
|
+
height: (
|
|
9
|
+
value: functions.rem(96),
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
' > .mat-exp-button:last-child': (
|
|
13
|
+
min-width: (
|
|
14
|
+
value: functions.rem(96),
|
|
15
|
+
),
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(96),
|
|
18
|
+
),
|
|
19
|
+
text-align: (
|
|
20
|
+
value: unset,
|
|
21
|
+
),
|
|
22
|
+
padding-left: (
|
|
23
|
+
value: functions.rem(32),
|
|
24
|
+
),
|
|
25
|
+
padding-right: (
|
|
26
|
+
value: functions.rem(28),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
);
|
|
30
|
+
@each $selector in common-selectors.$button-icon-selectors {
|
|
31
|
+
$properties: map.set(
|
|
32
|
+
$properties,
|
|
33
|
+
' > .mat-exp-button:last-child' + $selector,
|
|
34
|
+
button-functions.icon-size(38)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../common-selectors';
|
|
4
|
+
@use '../../utils/functions' as button-functions;
|
|
5
|
+
|
|
6
|
+
$properties: (
|
|
7
|
+
'': (
|
|
8
|
+
height: (
|
|
9
|
+
value: functions.rem(56),
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
' > .mat-exp-button:last-child': (
|
|
13
|
+
min-width: (
|
|
14
|
+
value: functions.rem(56),
|
|
15
|
+
),
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(56),
|
|
18
|
+
),
|
|
19
|
+
text-align: (
|
|
20
|
+
value: unset,
|
|
21
|
+
),
|
|
22
|
+
padding-left: (
|
|
23
|
+
value: functions.rem(16),
|
|
24
|
+
),
|
|
25
|
+
padding-right: (
|
|
26
|
+
value: functions.rem(14),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
);
|
|
30
|
+
@each $selector in common-selectors.$button-icon-selectors {
|
|
31
|
+
$properties: map.set(
|
|
32
|
+
$properties,
|
|
33
|
+
' > .mat-exp-button:last-child' + $selector,
|
|
34
|
+
button-functions.icon-size(26)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../common-selectors';
|
|
4
|
+
@use '../../utils/functions' as button-functions;
|
|
5
|
+
|
|
6
|
+
$properties: (
|
|
7
|
+
'': (
|
|
8
|
+
height: (
|
|
9
|
+
value: functions.rem(40),
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
' > .mat-exp-button:last-child': (
|
|
13
|
+
min-width: (
|
|
14
|
+
value: functions.rem(48),
|
|
15
|
+
),
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(48),
|
|
18
|
+
),
|
|
19
|
+
text-align: (
|
|
20
|
+
value: unset,
|
|
21
|
+
),
|
|
22
|
+
padding-left: (
|
|
23
|
+
value: functions.rem(14),
|
|
24
|
+
),
|
|
25
|
+
padding-right: (
|
|
26
|
+
value: functions.rem(12),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
);
|
|
30
|
+
@each $selector in common-selectors.$button-icon-selectors {
|
|
31
|
+
$properties: map.set(
|
|
32
|
+
$properties,
|
|
33
|
+
' > .mat-exp-button:last-child' + $selector,
|
|
34
|
+
button-functions.icon-size(22)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../common-selectors';
|
|
4
|
+
@use '../../utils/functions' as button-functions;
|
|
5
|
+
|
|
6
|
+
$properties: (
|
|
7
|
+
'': (
|
|
8
|
+
height: (
|
|
9
|
+
value: functions.rem(136),
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
' > .mat-exp-button:last-child': (
|
|
13
|
+
min-width: (
|
|
14
|
+
value: functions.rem(136),
|
|
15
|
+
),
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(136),
|
|
18
|
+
),
|
|
19
|
+
text-align: (
|
|
20
|
+
value: unset,
|
|
21
|
+
),
|
|
22
|
+
padding-left: (
|
|
23
|
+
value: functions.rem(45),
|
|
24
|
+
),
|
|
25
|
+
padding-right: (
|
|
26
|
+
value: functions.rem(41),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
);
|
|
30
|
+
@each $selector in common-selectors.$button-icon-selectors {
|
|
31
|
+
$properties: map.set(
|
|
32
|
+
$properties,
|
|
33
|
+
' > .mat-exp-button:last-child' + $selector,
|
|
34
|
+
button-functions.icon-size(50)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../../../utils/functions';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../common-selectors';
|
|
4
|
+
@use '../../utils/functions' as button-functions;
|
|
5
|
+
|
|
6
|
+
$properties: (
|
|
7
|
+
'': (
|
|
8
|
+
height: (
|
|
9
|
+
value: functions.rem(32),
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
' > .mat-exp-button:last-child': (
|
|
13
|
+
min-width: (
|
|
14
|
+
value: functions.rem(48),
|
|
15
|
+
),
|
|
16
|
+
width: (
|
|
17
|
+
value: functions.rem(48),
|
|
18
|
+
),
|
|
19
|
+
text-align: (
|
|
20
|
+
value: unset,
|
|
21
|
+
),
|
|
22
|
+
padding-left: (
|
|
23
|
+
value: functions.rem(11),
|
|
24
|
+
),
|
|
25
|
+
padding-right: (
|
|
26
|
+
value: functions.rem(15),
|
|
27
|
+
),
|
|
28
|
+
),
|
|
29
|
+
);
|
|
30
|
+
@each $selector in common-selectors.$button-icon-selectors {
|
|
31
|
+
$properties: map.set(
|
|
32
|
+
$properties,
|
|
33
|
+
' > .mat-exp-icon-button' + $selector,
|
|
34
|
+
button-functions.icon-size(22)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use '../../../utils/functions';
|
|
2
|
+
@use '../common-selectors';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
|
|
5
|
+
@function mdc-button-line-height($value) {
|
|
6
|
+
$line-height-map: ();
|
|
7
|
+
@each $selector in common-selectors.$button-line-height-selectors {
|
|
8
|
+
$line-height-map: map.set(
|
|
9
|
+
$line-height-map,
|
|
10
|
+
$selector,
|
|
11
|
+
(
|
|
12
|
+
line-height: (
|
|
13
|
+
value: $value,
|
|
14
|
+
),
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
@return $line-height-map;
|
|
19
|
+
}
|
|
20
|
+
@function icon-size($value) {
|
|
21
|
+
@return (
|
|
22
|
+
font-size: (
|
|
23
|
+
value: functions.rem($value),
|
|
24
|
+
),
|
|
25
|
+
height: (
|
|
26
|
+
value: functions.rem($value),
|
|
27
|
+
),
|
|
28
|
+
width: (
|
|
29
|
+
value: functions.rem($value),
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
@function button-shape-tokens($value) {
|
|
34
|
+
@return (
|
|
35
|
+
tonal-container-shape: functions.rem($value),
|
|
36
|
+
protected-container-shape: functions.rem($value),
|
|
37
|
+
filled-container-shape: functions.rem($value),
|
|
38
|
+
outlined-container-shape: functions.rem($value),
|
|
39
|
+
text-container-shape: functions.rem($value)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@function button-shape-tokens-raw($value) {
|
|
44
|
+
@return (
|
|
45
|
+
tonal-container-shape: $value,
|
|
46
|
+
protected-container-shape: $value,
|
|
47
|
+
filled-container-shape: $value,
|
|
48
|
+
outlined-container-shape: $value,
|
|
49
|
+
text-container-shape: $value
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@function button-icon-spacing-tokens($value) {
|
|
54
|
+
@return (
|
|
55
|
+
tonal-icon-spacing: functions.rem($value),
|
|
56
|
+
protected-icon-spacing: functions.rem($value),
|
|
57
|
+
filled-icon-spacing: functions.rem($value),
|
|
58
|
+
outlined-icon-spacing: functions.rem($value),
|
|
59
|
+
text-icon-spacing: functions.rem($value)
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@function icon-button-shape-tokens($value) {
|
|
64
|
+
@return (container-shape: functions.rem($value));
|
|
65
|
+
}
|
|
66
|
+
@function icon-button-shape-tokens-raw($value) {
|
|
67
|
+
@return (container-shape: $value);
|
|
68
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '../../utils/functions' as functions;
|
|
3
|
+
|
|
4
|
+
/// Opt-in dialog surface tokens and responsive panel styling. Panel classes are assigned by MatExpDialog;
|
|
5
|
+
/// skip-html-element-styles is therefore inherently respected.
|
|
6
|
+
@mixin mat-exp-dialog-styles($options: ()) {
|
|
7
|
+
.mat-exp-dialog-panel {
|
|
8
|
+
@include mat.dialog-overrides(
|
|
9
|
+
(
|
|
10
|
+
container-color: var(--mat-sys-surface-container-high),
|
|
11
|
+
container-min-width: min(280px, calc(100vw - 32px)),
|
|
12
|
+
actions-padding: functions.rem(24),
|
|
13
|
+
content-padding: functions.rem(24),
|
|
14
|
+
with-actions-content-padding: functions.rem(24) functions.rem(24) 0,
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
// These classes are passed via the public CDK Dialog panelClass API.
|
|
18
|
+
max-height: calc(100dvh - 48px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mat-exp-dialog-panel.mat-exp-dialog-adaptive {
|
|
22
|
+
width: min(560px, calc(100% - 32px));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (max-width: 599px) {
|
|
26
|
+
.mat-exp-dialog-panel.mat-exp-dialog-adaptive {
|
|
27
|
+
@include mat.dialog-overrides(
|
|
28
|
+
(
|
|
29
|
+
container-shape: 0,
|
|
30
|
+
container-min-width: 0,
|
|
31
|
+
container-max-width: 100%,
|
|
32
|
+
container-small-max-width: 100%,
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
width: 100%;
|
|
36
|
+
min-width: 0;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
height: 100dvh;
|
|
39
|
+
max-height: 100dvh;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Suppress CSS effects in projected controls too; the controller independently
|
|
44
|
+
// settles its springs and coordinates CDK disposal.
|
|
45
|
+
.mat-exp-dialog-no-motion * {
|
|
46
|
+
transition-duration: 0s !important;
|
|
47
|
+
animation-duration: 0s !important;
|
|
48
|
+
}
|
|
49
|
+
@media (prefers-reduced-motion: reduce) {
|
|
50
|
+
.mat-exp-dialog-panel *,
|
|
51
|
+
.mat-exp-dialog-backdrop {
|
|
52
|
+
transition-duration: 0s !important;
|
|
53
|
+
animation-duration: 0s !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
/// Opt-in Material list presentation. Internal DOM overrides can be omitted.
|
|
5
|
+
@mixin mat-exp-list-styles($options: ()) {
|
|
6
|
+
.mat-exp-list {
|
|
7
|
+
@include mat.list-overrides(
|
|
8
|
+
(
|
|
9
|
+
list-item-disabled-label-text-opacity: 0.38,
|
|
10
|
+
list-item-leading-icon-size: var(--mat-exp-list-icon-size, 1.25rem),
|
|
11
|
+
list-item-trailing-icon-size: var(--mat-exp-list-icon-size, 1.25rem),
|
|
12
|
+
list-item-leading-avatar-size: var(--mat-exp-list-avatar-size, 2.5rem),
|
|
13
|
+
list-item-selected-container-color: var(
|
|
14
|
+
--mat-exp-list-selected-color,
|
|
15
|
+
var(--mat-sys-secondary-container)
|
|
16
|
+
),
|
|
17
|
+
active-indicator-color: var(
|
|
18
|
+
--mat-exp-list-selected-color,
|
|
19
|
+
var(--mat-sys-secondary-container)
|
|
20
|
+
),
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
@if not map.get($options, skip-html-element-styles) {
|
|
25
|
+
--_mat-exp-list-fill: var(--mat-exp-list-container-color, var(--mat-sys-surface));
|
|
26
|
+
--_mat-exp-list-gap: var(--mat-exp-list-item-gap, 0.125rem);
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: var(--_mat-exp-list-gap);
|
|
30
|
+
padding: 0;
|
|
31
|
+
|
|
32
|
+
&[data-list-appearance='standard'] {
|
|
33
|
+
--_mat-exp-list-fill: transparent;
|
|
34
|
+
--_mat-exp-list-gap: 0px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Optional semantic list wrappers inside a navigation landmark.
|
|
38
|
+
> :is(ul, ol) {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--_mat-exp-list-gap);
|
|
42
|
+
list-style: none;
|
|
43
|
+
padding: 0;
|
|
44
|
+
margin: 0;
|
|
45
|
+
> li {
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
> .mat-mdc-list-item.mdc-list-item,
|
|
51
|
+
> :is(ul, ol) > li > .mat-mdc-list-item.mdc-list-item {
|
|
52
|
+
--_mat-exp-list-top: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
53
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
54
|
+
height: auto;
|
|
55
|
+
min-height: max(48px, 3rem, var(--mat-exp-list-min-height, 3rem));
|
|
56
|
+
padding: var(--mat-exp-list-padding-block, 0.625rem)
|
|
57
|
+
var(--mat-exp-list-padding-inline, 1rem);
|
|
58
|
+
gap: var(--mat-exp-list-content-gap, 0.75rem);
|
|
59
|
+
align-items: center;
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
background-color: var(--_mat-exp-list-fill);
|
|
62
|
+
border-radius: var(--_mat-exp-list-top)
|
|
63
|
+
var(--_mat-exp-list-top)
|
|
64
|
+
var(--_mat-exp-list-bottom)
|
|
65
|
+
var(--_mat-exp-list-bottom);
|
|
66
|
+
|
|
67
|
+
&[hidden] {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Explicit positions override automatic sibling detection for sections.
|
|
72
|
+
&[data-list-position='middle'],
|
|
73
|
+
&[data-list-position='last'] {
|
|
74
|
+
--_mat-exp-list-top: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
75
|
+
}
|
|
76
|
+
&[data-list-position='middle'],
|
|
77
|
+
&[data-list-position='first'] {
|
|
78
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
79
|
+
}
|
|
80
|
+
&[data-list-position='first'],
|
|
81
|
+
&[data-list-position='single'] {
|
|
82
|
+
--_mat-exp-list-top: var(--mat-exp-list-outer-radius, 1rem);
|
|
83
|
+
}
|
|
84
|
+
&[data-list-position='last'],
|
|
85
|
+
&[data-list-position='single'] {
|
|
86
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-outer-radius, 1rem);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.mat-mdc-list-item-interactive:where(
|
|
90
|
+
:not(.mdc-list-item--disabled):not([aria-selected='true']):not(
|
|
91
|
+
.mdc-list-item--activated
|
|
92
|
+
):not(:active):not(:focus-visible)
|
|
93
|
+
):hover {
|
|
94
|
+
border-radius: var(--mat-exp-list-hover-radius, 0.75rem);
|
|
95
|
+
}
|
|
96
|
+
&.mat-mdc-list-item-interactive:not(.mdc-list-item--disabled):focus-visible {
|
|
97
|
+
border-radius: var(--mat-exp-list-focus-radius, 1rem);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[aria-selected='true'],
|
|
101
|
+
&.mdc-list-item--activated {
|
|
102
|
+
border-radius: var(--mat-exp-list-selected-radius, 1rem);
|
|
103
|
+
background-color: var(--mat-exp-list-selected-color, var(--mat-sys-secondary-container));
|
|
104
|
+
--mat-list-list-item-trailing-supporting-text-color: var(
|
|
105
|
+
--mat-exp-list-selected-text-color,
|
|
106
|
+
var(--mat-sys-on-secondary-container)
|
|
107
|
+
);
|
|
108
|
+
--_mat-exp-list-overline-color: var(
|
|
109
|
+
--mat-exp-list-selected-text-color,
|
|
110
|
+
var(--mat-sys-on-secondary-container)
|
|
111
|
+
);
|
|
112
|
+
--mat-list-list-item-supporting-text-color: var(
|
|
113
|
+
--mat-exp-list-selected-text-color,
|
|
114
|
+
var(--mat-sys-on-secondary-container)
|
|
115
|
+
);
|
|
116
|
+
--mat-list-list-item-leading-icon-color: var(
|
|
117
|
+
--mat-exp-list-selected-text-color,
|
|
118
|
+
var(--mat-sys-on-secondary-container)
|
|
119
|
+
);
|
|
120
|
+
--mat-list-list-item-trailing-icon-color: var(
|
|
121
|
+
--mat-exp-list-selected-text-color,
|
|
122
|
+
var(--mat-sys-on-secondary-container)
|
|
123
|
+
);
|
|
124
|
+
--mat-list-list-item-label-text-color: var(
|
|
125
|
+
--mat-exp-list-selected-text-color,
|
|
126
|
+
var(--mat-sys-on-secondary-container)
|
|
127
|
+
);
|
|
128
|
+
--mat-list-list-item-hover-label-text-color: var(
|
|
129
|
+
--mat-exp-list-selected-text-color,
|
|
130
|
+
var(--mat-sys-on-secondary-container)
|
|
131
|
+
);
|
|
132
|
+
--mat-list-list-item-focus-label-text-color: var(
|
|
133
|
+
--mat-exp-list-selected-text-color,
|
|
134
|
+
var(--mat-sys-on-secondary-container)
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
&.mdc-list-item--disabled {
|
|
138
|
+
--mat-list-list-item-supporting-text-color: var(--mat-sys-on-surface);
|
|
139
|
+
--mat-list-list-item-trailing-supporting-text-color: var(--mat-sys-on-surface);
|
|
140
|
+
--_mat-exp-list-overline-color: var(--mat-sys-on-surface);
|
|
141
|
+
.mat-mdc-list-item-meta:not(mat-icon) {
|
|
142
|
+
opacity: 0.38;
|
|
143
|
+
}
|
|
144
|
+
&[aria-selected='true'],
|
|
145
|
+
&.mdc-list-item--activated {
|
|
146
|
+
background-color: var(
|
|
147
|
+
--mat-exp-list-selected-disabled-color,
|
|
148
|
+
color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&.mat-mdc-list-item-interactive:focus-visible {
|
|
153
|
+
outline: 3px solid var(--mat-sys-primary);
|
|
154
|
+
outline-offset: -3px;
|
|
155
|
+
}
|
|
156
|
+
&.mat-mdc-list-item-interactive:not(.mdc-list-item--disabled):active {
|
|
157
|
+
border-radius: var(--mat-exp-list-pressed-radius, 1rem);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
> .mdc-list-item__start,
|
|
161
|
+
> .mdc-list-item__end {
|
|
162
|
+
margin: 0;
|
|
163
|
+
align-self: center;
|
|
164
|
+
}
|
|
165
|
+
> mat-icon.mat-mdc-list-item-meta,
|
|
166
|
+
> .mat-mdc-list-item-meta > mat-icon {
|
|
167
|
+
width: var(--mat-exp-list-icon-size, 1.25rem);
|
|
168
|
+
height: var(--mat-exp-list-icon-size, 1.25rem);
|
|
169
|
+
font-size: var(--mat-exp-list-icon-size, 1.25rem);
|
|
170
|
+
}
|
|
171
|
+
> .mdc-list-item__content {
|
|
172
|
+
min-width: 0;
|
|
173
|
+
flex-basis: min(8rem, 100%);
|
|
174
|
+
align-self: center;
|
|
175
|
+
overflow: visible;
|
|
176
|
+
}
|
|
177
|
+
.mdc-list-item__primary-text,
|
|
178
|
+
.mdc-list-item__secondary-text {
|
|
179
|
+
margin: 0;
|
|
180
|
+
line-height: var(--mat-sys-body-large-line-height, 1.5rem);
|
|
181
|
+
&::before,
|
|
182
|
+
&::after {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
.mat-mdc-list-item-line.mdc-list-item__secondary-text {
|
|
187
|
+
line-height: var(--mat-sys-body-medium-line-height, 1.25rem);
|
|
188
|
+
}
|
|
189
|
+
.mat-mdc-list-item-unscoped-content:empty {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
|
+
.mat-exp-list-overline {
|
|
193
|
+
display: block;
|
|
194
|
+
font: var(--mat-sys-label-small);
|
|
195
|
+
color: var(--_mat-exp-list-overline-color, var(--mat-sys-on-surface-variant));
|
|
196
|
+
}
|
|
197
|
+
// Media uses Material's public avatar projection slot, with an explicit crop.
|
|
198
|
+
> [data-list-media='image'],
|
|
199
|
+
> [data-list-media='video'] {
|
|
200
|
+
width: var(--mat-exp-list-media-size, 3.5rem);
|
|
201
|
+
height: var(--mat-exp-list-media-size, 3.5rem);
|
|
202
|
+
border-radius: var(--mat-exp-list-media-radius, 0.5rem);
|
|
203
|
+
object-fit: cover;
|
|
204
|
+
}
|
|
205
|
+
> [data-list-media='video'] {
|
|
206
|
+
width: var(--mat-exp-list-video-width, 6.25rem);
|
|
207
|
+
}
|
|
208
|
+
> .mat-mdc-list-item-avatar {
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
object-fit: cover;
|
|
211
|
+
}
|
|
212
|
+
&.mdc-list-item--with-three-lines {
|
|
213
|
+
align-items: flex-start;
|
|
214
|
+
> .mdc-list-item__start,
|
|
215
|
+
> .mdc-list-item__end {
|
|
216
|
+
align-self: flex-start;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
> .mat-mdc-list-item.mdc-list-item:where(:nth-child(1 of .mat-mdc-list-item:not([hidden]))) {
|
|
222
|
+
--_mat-exp-list-top: var(--mat-exp-list-outer-radius, 1rem);
|
|
223
|
+
}
|
|
224
|
+
> .mat-mdc-list-item.mdc-list-item:where(
|
|
225
|
+
:nth-last-child(1 of .mat-mdc-list-item:not([hidden]))
|
|
226
|
+
) {
|
|
227
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-outer-radius, 1rem);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Each wrapped row is an only child; resolve shape at the li level instead.
|
|
231
|
+
> :is(ul, ol) > li > .mat-mdc-list-item.mdc-list-item {
|
|
232
|
+
--_mat-exp-list-top: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
233
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-inner-radius, 0.25rem);
|
|
234
|
+
}
|
|
235
|
+
> :is(ul, ol)
|
|
236
|
+
> li:where(:nth-child(1 of li:not([hidden])))
|
|
237
|
+
> .mat-mdc-list-item.mdc-list-item {
|
|
238
|
+
--_mat-exp-list-top: var(--mat-exp-list-outer-radius, 1rem);
|
|
239
|
+
}
|
|
240
|
+
> :is(ul, ol)
|
|
241
|
+
> li:where(:nth-last-child(1 of li:not([hidden])))
|
|
242
|
+
> .mat-mdc-list-item.mdc-list-item {
|
|
243
|
+
--_mat-exp-list-bottom: var(--mat-exp-list-outer-radius, 1rem);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:not([data-list-text-wrap='truncate']) {
|
|
247
|
+
> .mat-mdc-list-item,
|
|
248
|
+
> :is(ul, ol) > li > .mat-mdc-list-item.mdc-list-item {
|
|
249
|
+
.mdc-list-item__primary-text,
|
|
250
|
+
.mdc-list-item__secondary-text {
|
|
251
|
+
white-space: normal;
|
|
252
|
+
overflow: visible;
|
|
253
|
+
overflow-wrap: anywhere;
|
|
254
|
+
display: block;
|
|
255
|
+
-webkit-line-clamp: unset;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
@if not map.get($options, skip-html-element-styles) {
|
|
262
|
+
@media (prefers-reduced-motion: reduce) {
|
|
263
|
+
.mat-exp-list > .mat-mdc-list-option {
|
|
264
|
+
.mdc-checkbox *,
|
|
265
|
+
.mdc-radio * {
|
|
266
|
+
transition: none !important;
|
|
267
|
+
animation: none !important;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
@media (forced-colors: active) {
|
|
272
|
+
.mat-exp-list > .mat-mdc-list-item[aria-selected='true'] {
|
|
273
|
+
outline: 2px solid Highlight;
|
|
274
|
+
outline-offset: -2px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|