@angular/material 16.0.2 → 16.0.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/_index.scss +4 -4
- package/core/mdc-helpers/_mdc-helpers.scss +13 -28
- package/core/tokens/_token-utils.scss +2 -2
- package/core/tokens/m2/mdc/_linear-progress.scss +1 -0
- package/core/typography/_all-typography.scss +1 -154
- package/core/typography/_typography.scss +162 -0
- package/esm2022/chips/chip-grid.mjs +2 -2
- package/esm2022/chips/chip-listbox.mjs +2 -2
- package/esm2022/chips/chip-set.mjs +2 -2
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/progress-bar/progress-bar.mjs +2 -2
- package/esm2022/slider/slider-input.mjs +21 -9
- package/esm2022/table/row.mjs +2 -2
- package/fesm2022/chips.mjs +6 -6
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +2 -2
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/slider.mjs +20 -8
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/table.mjs +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/package.json +49 -49
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
- package/schematics/ng-update/index_bundled.js +25 -25
- package/slider/index.d.ts +10 -1
- package/table/index.d.ts +1 -1
package/_index.scss
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
$amber-palette, $orange-palette, $deep-orange-palette, $brown-palette, $grey-palette,
|
|
10
10
|
$gray-palette, $blue-grey-palette, $blue-gray-palette, $light-theme-background-palette,
|
|
11
11
|
$dark-theme-background-palette, $light-theme-foreground-palette, $dark-theme-foreground-palette;
|
|
12
|
-
@forward './core/typography/typography' show define-typography-level,
|
|
13
|
-
define-
|
|
12
|
+
@forward './core/typography/typography' show define-typography-level, define-rem-typography-config,
|
|
13
|
+
define-typography-config, typography-hierarchy, define-legacy-typography-config,
|
|
14
|
+
legacy-typography-hierarchy;
|
|
14
15
|
@forward './core/typography/typography-utils' show typography-level,
|
|
15
16
|
font-size, line-height, font-weight, letter-spacing, font-family, font-shorthand;
|
|
16
17
|
|
|
@@ -48,8 +49,7 @@
|
|
|
48
49
|
// Theme bundles
|
|
49
50
|
@forward './core/theming/all-theme' show all-component-themes;
|
|
50
51
|
@forward './core/color/all-color' show all-component-colors;
|
|
51
|
-
@forward './core/typography/all-typography' show all-component-typographies
|
|
52
|
-
define-rem-typography-config, define-typography-config;
|
|
52
|
+
@forward './core/typography/all-typography' show all-component-typographies;
|
|
53
53
|
@forward './legacy-core/theming/all-theme' show all-legacy-component-themes;
|
|
54
54
|
@forward './legacy-core/color/all-color' show all-legacy-component-colors;
|
|
55
55
|
@forward './legacy-core/typography/all-typography' show all-legacy-component-typographies;
|
|
@@ -83,21 +83,6 @@ $mat-typography-mdc-level-mappings: (
|
|
|
83
83
|
@return $mdc-config;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// Converts an MDC typography level config to an Angular Material one.
|
|
87
|
-
@function typography-config-level-from-mdc($mdc-level, $font-family: null) {
|
|
88
|
-
$mdc-level-config: map.get(mdc-typography.$styles, $mdc-level);
|
|
89
|
-
|
|
90
|
-
// Explicitly default the font family to null since we'll apply it globally
|
|
91
|
-
// through the `define-typgraphy-config`/`define-legacy-typography-config`.
|
|
92
|
-
@return typography.define-typography-level(
|
|
93
|
-
$font-family: $font-family,
|
|
94
|
-
$font-size: map.get($mdc-level-config, font-size),
|
|
95
|
-
$line-height: map.get($mdc-level-config, line-height),
|
|
96
|
-
$font-weight: map.get($mdc-level-config, font-weight),
|
|
97
|
-
$letter-spacing: map.get($mdc-level-config, letter-spacing)
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
86
|
// MDC logs a warning if the `contrast-tone` function is called with a CSS variable.
|
|
102
87
|
// This function falls back to determining the tone based on whether the theme is light or dark.
|
|
103
88
|
@function _variable-safe-contrast-tone($value, $is-dark) {
|
|
@@ -238,19 +223,19 @@ $mat-typography-mdc-level-mappings: (
|
|
|
238
223
|
$font-family: mdc-typography.$font-family;
|
|
239
224
|
@return (
|
|
240
225
|
font-family: $font-family,
|
|
241
|
-
headline-1: typography-config-level-from-mdc(headline1, $font-family),
|
|
242
|
-
headline-2: typography-config-level-from-mdc(headline2, $font-family),
|
|
243
|
-
headline-3: typography-config-level-from-mdc(headline3, $font-family),
|
|
244
|
-
headline-4: typography-config-level-from-mdc(headline4, $font-family),
|
|
245
|
-
headline-5: typography-config-level-from-mdc(headline5, $font-family),
|
|
246
|
-
headline-6: typography-config-level-from-mdc(headline6, $font-family),
|
|
247
|
-
subtitle-1: typography-config-level-from-mdc(subtitle1, $font-family),
|
|
248
|
-
subtitle-2: typography-config-level-from-mdc(subtitle2, $font-family),
|
|
249
|
-
body-1: typography-config-level-from-mdc(body1, $font-family),
|
|
250
|
-
body-2: typography-config-level-from-mdc(body2, $font-family),
|
|
251
|
-
caption: typography-config-level-from-mdc(caption, $font-family),
|
|
252
|
-
button: typography-config-level-from-mdc(button, $font-family),
|
|
253
|
-
overline: typography-config-level-from-mdc(overline, $font-family),
|
|
226
|
+
headline-1: typography.typography-config-level-from-mdc(headline1, $font-family),
|
|
227
|
+
headline-2: typography.typography-config-level-from-mdc(headline2, $font-family),
|
|
228
|
+
headline-3: typography.typography-config-level-from-mdc(headline3, $font-family),
|
|
229
|
+
headline-4: typography.typography-config-level-from-mdc(headline4, $font-family),
|
|
230
|
+
headline-5: typography.typography-config-level-from-mdc(headline5, $font-family),
|
|
231
|
+
headline-6: typography.typography-config-level-from-mdc(headline6, $font-family),
|
|
232
|
+
subtitle-1: typography.typography-config-level-from-mdc(subtitle1, $font-family),
|
|
233
|
+
subtitle-2: typography.typography-config-level-from-mdc(subtitle2, $font-family),
|
|
234
|
+
body-1: typography.typography-config-level-from-mdc(body1, $font-family),
|
|
235
|
+
body-2: typography.typography-config-level-from-mdc(body2, $font-family),
|
|
236
|
+
caption: typography.typography-config-level-from-mdc(caption, $font-family),
|
|
237
|
+
button: typography.typography-config-level-from-mdc(button, $font-family),
|
|
238
|
+
overline: typography.typography-config-level-from-mdc(overline, $font-family),
|
|
254
239
|
);
|
|
255
240
|
}
|
|
256
241
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
@use '@material/theme/custom-properties' as mdc-custom-properties;
|
|
4
4
|
@use '@material/theme/theme' as mdc-theme;
|
|
5
5
|
@use '@material/theme/keys' as mdc-keys;
|
|
6
|
-
@use '../mdc-helpers/mdc-helpers';
|
|
7
6
|
@use '../theming/palette';
|
|
8
7
|
@use '../theming/theming';
|
|
8
|
+
@use '../typography/typography';
|
|
9
9
|
|
|
10
10
|
$_placeholder-color-palette: theming.define-palette(palette.$red-palette);
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ $placeholder-color-config: (
|
|
|
20
20
|
background: palette.$light-theme-background-palette,
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
$_placeholder-typography-level-config:
|
|
23
|
+
$_placeholder-typography-level-config: typography.typography-config-level-from-mdc(body1);
|
|
24
24
|
|
|
25
25
|
// Placeholder typography config that can be passed to token getter functions when generating token
|
|
26
26
|
// slots.
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
@use '@material/typography' as mdc-typography;
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use 'sass:math';
|
|
4
|
-
@use 'sass:meta';
|
|
5
1
|
@use './typography';
|
|
6
2
|
@use '../../autocomplete/autocomplete-theme';
|
|
7
3
|
@use '../../badge/badge-theme';
|
|
@@ -41,155 +37,6 @@
|
|
|
41
37
|
@use '../../tree/tree-theme';
|
|
42
38
|
@use '../theming/theming';
|
|
43
39
|
@use '../core-theme';
|
|
44
|
-
@use '../mdc-helpers/mdc-helpers';
|
|
45
|
-
|
|
46
|
-
// TODO(mmalerba): define-mdc-typography-config is defined here rather than in _typography.scss
|
|
47
|
-
// (where define-typography-config is defined) because putting it there would cause a circular
|
|
48
|
-
// dependency with mdc-helpers. We should refactor so these can live in the same place.
|
|
49
|
-
|
|
50
|
-
// Converts a map containing rem values to a map containing px values.
|
|
51
|
-
@function _rem-to-px($x, $px-per-rem: 16px) {
|
|
52
|
-
@if meta.type-of($x) == 'map' {
|
|
53
|
-
@each $key, $val in $x {
|
|
54
|
-
$x: map.merge($x, ($key: _rem-to-px($val)));
|
|
55
|
-
}
|
|
56
|
-
@return $x;
|
|
57
|
-
}
|
|
58
|
-
@if meta.type-of($x) == 'number' and math.unit($x) == 'rem' {
|
|
59
|
-
@return math.div($x, 1rem) * $px-per-rem;
|
|
60
|
-
}
|
|
61
|
-
@else {
|
|
62
|
-
@return $x;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Applies the default font family to all levels in a typography config.
|
|
67
|
-
@function _apply-font-family($font-family, $initial-config) {
|
|
68
|
-
$config: $initial-config;
|
|
69
|
-
|
|
70
|
-
@each $key, $level in $config {
|
|
71
|
-
@if map.get($level, 'font-family') == null {
|
|
72
|
-
// Sass maps are immutable so we have to re-assign the variable each time.
|
|
73
|
-
$config: map.set($config, $key, map.set($level, 'font-family', $font-family));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@return map.set($config, 'font-family', $font-family);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/// Generates an Angular Material typography config based on values from the official Material
|
|
81
|
-
/// Design spec implementation (MDC Web). All arguments are optional, but may be passed to override
|
|
82
|
-
/// the default values. The `mat-typography-level` function can be used to generate a custom
|
|
83
|
-
/// typography level map which can be passed to this function to override one of the default levels.
|
|
84
|
-
/// All default typography sizing generated by this function is in `px` units.
|
|
85
|
-
///
|
|
86
|
-
/// @param {String} $font-family The font family to use for levels where it is not explicitly
|
|
87
|
-
/// specified.
|
|
88
|
-
/// @param {Map} $headline-1 The font settings for the headline-1 font level.
|
|
89
|
-
/// @param {Map} $headline-2 The font settings for the headline-2 font level.
|
|
90
|
-
/// @param {Map} $headline-3 The font settings for the headline-3 font level.
|
|
91
|
-
/// @param {Map} $headline-4 The font settings for the headline-4 font level.
|
|
92
|
-
/// @param {Map} $headline-5 The font settings for the headline-5 font level.
|
|
93
|
-
/// @param {Map} $headline-6 The font settings for the headline-6 font level.
|
|
94
|
-
/// @param {Map} $subtitle-1 The font settings for the subtitle-1 font level.
|
|
95
|
-
/// @param {Map} $subtitle-2 The font settings for the subtitle-2 font level.
|
|
96
|
-
/// @param {Map} $body-1 The font settings for the body-1 font level.
|
|
97
|
-
/// @param {Map} $body-2 The font settings for the body-2 font level.
|
|
98
|
-
/// @param {Map} $caption The font settings for the caption font level.
|
|
99
|
-
/// @param {Map} $button The font settings for the button font level.
|
|
100
|
-
/// @param {Map} $overline The font settings for the overline font level.
|
|
101
|
-
/// @return {Map} A map containing font settings for each of the levels in the Material Design spec.
|
|
102
|
-
@function define-typography-config(
|
|
103
|
-
// TODO(mmalerba): rename this function to define-typography-config,
|
|
104
|
-
// and create a predefined px based config for people that need it.
|
|
105
|
-
$font-family: mdc-typography.$font-family,
|
|
106
|
-
$headline-1: null,
|
|
107
|
-
$headline-2: null,
|
|
108
|
-
$headline-3: null,
|
|
109
|
-
$headline-4: null,
|
|
110
|
-
$headline-5: null,
|
|
111
|
-
$headline-6: null,
|
|
112
|
-
$subtitle-1: null,
|
|
113
|
-
$subtitle-2: null,
|
|
114
|
-
$body-1: null,
|
|
115
|
-
$body-2: null,
|
|
116
|
-
$caption: null,
|
|
117
|
-
$button: null,
|
|
118
|
-
$overline: null,
|
|
119
|
-
) {
|
|
120
|
-
@return _apply-font-family($font-family, (
|
|
121
|
-
headline-1: $headline-1 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline1)),
|
|
122
|
-
headline-2: $headline-2 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline2)),
|
|
123
|
-
headline-3: $headline-3 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline3)),
|
|
124
|
-
headline-4: $headline-4 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline4)),
|
|
125
|
-
headline-5: $headline-5 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline5)),
|
|
126
|
-
headline-6: $headline-6 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(headline6)),
|
|
127
|
-
subtitle-1: $subtitle-1 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(subtitle1)),
|
|
128
|
-
subtitle-2: $subtitle-2 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(subtitle2)),
|
|
129
|
-
body-1: $body-1 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(body1)),
|
|
130
|
-
body-2: $body-2 or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(body2)),
|
|
131
|
-
caption: $caption or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(caption)),
|
|
132
|
-
button: $button or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(button)),
|
|
133
|
-
overline: $overline or _rem-to-px(mdc-helpers.typography-config-level-from-mdc(overline)),
|
|
134
|
-
));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/// Generates an Angular Material typography config based on values from the official Material
|
|
138
|
-
/// Design spec implementation (MDC Web). All arguments are optional, but may be passed to override
|
|
139
|
-
/// the default values. The `mat-typography-level` function can be used to generate a custom
|
|
140
|
-
/// typography level map which can be passed to this function to override one of the default levels.
|
|
141
|
-
/// All default typography sizing generated by this function is in `rem` units.
|
|
142
|
-
///
|
|
143
|
-
/// @param {String} $font-family The font family to use for levels where it is not explicitly
|
|
144
|
-
/// specified.
|
|
145
|
-
/// @param {Map} $headline-1 The font settings for the headline-1 font level.
|
|
146
|
-
/// @param {Map} $headline-2 The font settings for the headline-2 font level.
|
|
147
|
-
/// @param {Map} $headline-3 The font settings for the headline-3 font level.
|
|
148
|
-
/// @param {Map} $headline-4 The font settings for the headline-4 font level.
|
|
149
|
-
/// @param {Map} $headline-5 The font settings for the headline-5 font level.
|
|
150
|
-
/// @param {Map} $headline-6 The font settings for the headline-6 font level.
|
|
151
|
-
/// @param {Map} $subtitle-1 The font settings for the subtitle-1 font level.
|
|
152
|
-
/// @param {Map} $subtitle-2 The font settings for the subtitle-2 font level.
|
|
153
|
-
/// @param {Map} $body-1 The font settings for the body-1 font level.
|
|
154
|
-
/// @param {Map} $body-2 The font settings for the body-2 font level.
|
|
155
|
-
/// @param {Map} $caption The font settings for the caption font level.
|
|
156
|
-
/// @param {Map} $button The font settings for the button font level.
|
|
157
|
-
/// @param {Map} $overline The font settings for the overline font level.
|
|
158
|
-
/// @return {Map} A map containing font settings for each of the levels in the Material Design spec.
|
|
159
|
-
@function define-rem-typography-config(
|
|
160
|
-
// TODO(mmalerba): rename this function to define-typography-config,
|
|
161
|
-
// and create a predefined px based config for people that need it.
|
|
162
|
-
$font-family: mdc-typography.$font-family,
|
|
163
|
-
$headline-1: null,
|
|
164
|
-
$headline-2: null,
|
|
165
|
-
$headline-3: null,
|
|
166
|
-
$headline-4: null,
|
|
167
|
-
$headline-5: null,
|
|
168
|
-
$headline-6: null,
|
|
169
|
-
$subtitle-1: null,
|
|
170
|
-
$subtitle-2: null,
|
|
171
|
-
$body-1: null,
|
|
172
|
-
$body-2: null,
|
|
173
|
-
$caption: null,
|
|
174
|
-
$button: null,
|
|
175
|
-
$overline: null,
|
|
176
|
-
) {
|
|
177
|
-
@return _apply-font-family($font-family, (
|
|
178
|
-
headline-1: $headline-1 or mdc-helpers.typography-config-level-from-mdc(headline1),
|
|
179
|
-
headline-2: $headline-2 or mdc-helpers.typography-config-level-from-mdc(headline2),
|
|
180
|
-
headline-3: $headline-3 or mdc-helpers.typography-config-level-from-mdc(headline3),
|
|
181
|
-
headline-4: $headline-4 or mdc-helpers.typography-config-level-from-mdc(headline4),
|
|
182
|
-
headline-5: $headline-5 or mdc-helpers.typography-config-level-from-mdc(headline5),
|
|
183
|
-
headline-6: $headline-6 or mdc-helpers.typography-config-level-from-mdc(headline6),
|
|
184
|
-
subtitle-1: $subtitle-1 or mdc-helpers.typography-config-level-from-mdc(subtitle1),
|
|
185
|
-
subtitle-2: $subtitle-2 or mdc-helpers.typography-config-level-from-mdc(subtitle2),
|
|
186
|
-
body-1: $body-1 or mdc-helpers.typography-config-level-from-mdc(body1),
|
|
187
|
-
body-2: $body-2 or mdc-helpers.typography-config-level-from-mdc(body2),
|
|
188
|
-
caption: $caption or mdc-helpers.typography-config-level-from-mdc(caption),
|
|
189
|
-
button: $button or mdc-helpers.typography-config-level-from-mdc(button),
|
|
190
|
-
overline: $overline or mdc-helpers.typography-config-level-from-mdc(overline),
|
|
191
|
-
));
|
|
192
|
-
}
|
|
193
40
|
|
|
194
41
|
// Includes all of the typographic styles.
|
|
195
42
|
@mixin all-component-typographies($config-or-theme: null) {
|
|
@@ -198,7 +45,7 @@
|
|
|
198
45
|
|
|
199
46
|
// If no actual color configuration has been specified, create a default one.
|
|
200
47
|
@if not $config {
|
|
201
|
-
$config: define-typography-config();
|
|
48
|
+
$config: typography.define-typography-config();
|
|
202
49
|
}
|
|
203
50
|
|
|
204
51
|
// TODO: COMP-309: Do not use individual mixins. Instead, use the all-theme mixin and only
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:meta';
|
|
2
4
|
@use 'typography-utils';
|
|
3
5
|
@use '../theming/theming';
|
|
6
|
+
@use '@material/typography' as mdc-typography;
|
|
4
7
|
|
|
5
8
|
/// Defines a typography level from the Material Design spec.
|
|
6
9
|
/// @param {String} $font-size The font-size for this level.
|
|
@@ -97,6 +100,165 @@
|
|
|
97
100
|
@return map.merge($config, (font-family: $font-family));
|
|
98
101
|
}
|
|
99
102
|
|
|
103
|
+
// Converts a map containing rem values to a map containing px values.
|
|
104
|
+
@function _rem-to-px($x, $px-per-rem: 16px) {
|
|
105
|
+
@if meta.type-of($x) == 'map' {
|
|
106
|
+
@each $key, $val in $x {
|
|
107
|
+
$x: map.merge($x, ($key: _rem-to-px($val)));
|
|
108
|
+
}
|
|
109
|
+
@return $x;
|
|
110
|
+
}
|
|
111
|
+
@if meta.type-of($x) == 'number' and math.unit($x) == 'rem' {
|
|
112
|
+
@return math.div($x, 1rem) * $px-per-rem;
|
|
113
|
+
}
|
|
114
|
+
@else {
|
|
115
|
+
@return $x;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Applies the default font family to all levels in a typography config.
|
|
120
|
+
@function _apply-font-family($font-family, $initial-config) {
|
|
121
|
+
$config: $initial-config;
|
|
122
|
+
|
|
123
|
+
@each $key, $level in $config {
|
|
124
|
+
@if map.get($level, 'font-family') == null {
|
|
125
|
+
// Sass maps are immutable so we have to re-assign the variable each time.
|
|
126
|
+
$config: map.set($config, $key, map.set($level, 'font-family', $font-family));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@return map.set($config, 'font-family', $font-family);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Converts an MDC typography level config to an Angular Material one.
|
|
134
|
+
@function typography-config-level-from-mdc($mdc-level, $font-family: null) {
|
|
135
|
+
$mdc-level-config: map.get(mdc-typography.$styles, $mdc-level);
|
|
136
|
+
|
|
137
|
+
// Explicitly default the font family to null since we'll apply it globally
|
|
138
|
+
// through the `define-typgraphy-config`/`define-legacy-typography-config`.
|
|
139
|
+
@return define-typography-level(
|
|
140
|
+
$font-family: $font-family,
|
|
141
|
+
$font-size: map.get($mdc-level-config, font-size),
|
|
142
|
+
$line-height: map.get($mdc-level-config, line-height),
|
|
143
|
+
$font-weight: map.get($mdc-level-config, font-weight),
|
|
144
|
+
$letter-spacing: map.get($mdc-level-config, letter-spacing)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/// Generates an Angular Material typography config based on values from the official Material
|
|
149
|
+
/// Design spec implementation (MDC Web). All arguments are optional, but may be passed to override
|
|
150
|
+
/// the default values. The `mat-typography-level` function can be used to generate a custom
|
|
151
|
+
/// typography level map which can be passed to this function to override one of the default levels.
|
|
152
|
+
/// All default typography sizing generated by this function is in `px` units.
|
|
153
|
+
///
|
|
154
|
+
/// @param {String} $font-family The font family to use for levels where it is not explicitly
|
|
155
|
+
/// specified.
|
|
156
|
+
/// @param {Map} $headline-1 The font settings for the headline-1 font level.
|
|
157
|
+
/// @param {Map} $headline-2 The font settings for the headline-2 font level.
|
|
158
|
+
/// @param {Map} $headline-3 The font settings for the headline-3 font level.
|
|
159
|
+
/// @param {Map} $headline-4 The font settings for the headline-4 font level.
|
|
160
|
+
/// @param {Map} $headline-5 The font settings for the headline-5 font level.
|
|
161
|
+
/// @param {Map} $headline-6 The font settings for the headline-6 font level.
|
|
162
|
+
/// @param {Map} $subtitle-1 The font settings for the subtitle-1 font level.
|
|
163
|
+
/// @param {Map} $subtitle-2 The font settings for the subtitle-2 font level.
|
|
164
|
+
/// @param {Map} $body-1 The font settings for the body-1 font level.
|
|
165
|
+
/// @param {Map} $body-2 The font settings for the body-2 font level.
|
|
166
|
+
/// @param {Map} $caption The font settings for the caption font level.
|
|
167
|
+
/// @param {Map} $button The font settings for the button font level.
|
|
168
|
+
/// @param {Map} $overline The font settings for the overline font level.
|
|
169
|
+
/// @return {Map} A map containing font settings for each of the levels in the Material Design spec.
|
|
170
|
+
@function define-typography-config(
|
|
171
|
+
// TODO(mmalerba): rename this function to define-typography-config,
|
|
172
|
+
// and create a predefined px based config for people that need it.
|
|
173
|
+
$font-family: mdc-typography.$font-family,
|
|
174
|
+
$headline-1: null,
|
|
175
|
+
$headline-2: null,
|
|
176
|
+
$headline-3: null,
|
|
177
|
+
$headline-4: null,
|
|
178
|
+
$headline-5: null,
|
|
179
|
+
$headline-6: null,
|
|
180
|
+
$subtitle-1: null,
|
|
181
|
+
$subtitle-2: null,
|
|
182
|
+
$body-1: null,
|
|
183
|
+
$body-2: null,
|
|
184
|
+
$caption: null,
|
|
185
|
+
$button: null,
|
|
186
|
+
$overline: null,
|
|
187
|
+
) {
|
|
188
|
+
@return _apply-font-family($font-family, (
|
|
189
|
+
headline-1: $headline-1 or _rem-to-px(typography-config-level-from-mdc(headline1)),
|
|
190
|
+
headline-2: $headline-2 or _rem-to-px(typography-config-level-from-mdc(headline2)),
|
|
191
|
+
headline-3: $headline-3 or _rem-to-px(typography-config-level-from-mdc(headline3)),
|
|
192
|
+
headline-4: $headline-4 or _rem-to-px(typography-config-level-from-mdc(headline4)),
|
|
193
|
+
headline-5: $headline-5 or _rem-to-px(typography-config-level-from-mdc(headline5)),
|
|
194
|
+
headline-6: $headline-6 or _rem-to-px(typography-config-level-from-mdc(headline6)),
|
|
195
|
+
subtitle-1: $subtitle-1 or _rem-to-px(typography-config-level-from-mdc(subtitle1)),
|
|
196
|
+
subtitle-2: $subtitle-2 or _rem-to-px(typography-config-level-from-mdc(subtitle2)),
|
|
197
|
+
body-1: $body-1 or _rem-to-px(typography-config-level-from-mdc(body1)),
|
|
198
|
+
body-2: $body-2 or _rem-to-px(typography-config-level-from-mdc(body2)),
|
|
199
|
+
caption: $caption or _rem-to-px(typography-config-level-from-mdc(caption)),
|
|
200
|
+
button: $button or _rem-to-px(typography-config-level-from-mdc(button)),
|
|
201
|
+
overline: $overline or _rem-to-px(typography-config-level-from-mdc(overline)),
|
|
202
|
+
));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/// Generates an Angular Material typography config based on values from the official Material
|
|
206
|
+
/// Design spec implementation (MDC Web). All arguments are optional, but may be passed to override
|
|
207
|
+
/// the default values. The `mat-typography-level` function can be used to generate a custom
|
|
208
|
+
/// typography level map which can be passed to this function to override one of the default levels.
|
|
209
|
+
/// All default typography sizing generated by this function is in `rem` units.
|
|
210
|
+
///
|
|
211
|
+
/// @param {String} $font-family The font family to use for levels where it is not explicitly
|
|
212
|
+
/// specified.
|
|
213
|
+
/// @param {Map} $headline-1 The font settings for the headline-1 font level.
|
|
214
|
+
/// @param {Map} $headline-2 The font settings for the headline-2 font level.
|
|
215
|
+
/// @param {Map} $headline-3 The font settings for the headline-3 font level.
|
|
216
|
+
/// @param {Map} $headline-4 The font settings for the headline-4 font level.
|
|
217
|
+
/// @param {Map} $headline-5 The font settings for the headline-5 font level.
|
|
218
|
+
/// @param {Map} $headline-6 The font settings for the headline-6 font level.
|
|
219
|
+
/// @param {Map} $subtitle-1 The font settings for the subtitle-1 font level.
|
|
220
|
+
/// @param {Map} $subtitle-2 The font settings for the subtitle-2 font level.
|
|
221
|
+
/// @param {Map} $body-1 The font settings for the body-1 font level.
|
|
222
|
+
/// @param {Map} $body-2 The font settings for the body-2 font level.
|
|
223
|
+
/// @param {Map} $caption The font settings for the caption font level.
|
|
224
|
+
/// @param {Map} $button The font settings for the button font level.
|
|
225
|
+
/// @param {Map} $overline The font settings for the overline font level.
|
|
226
|
+
/// @return {Map} A map containing font settings for each of the levels in the Material Design spec.
|
|
227
|
+
@function define-rem-typography-config(
|
|
228
|
+
// TODO(mmalerba): rename this function to define-typography-config,
|
|
229
|
+
// and create a predefined px based config for people that need it.
|
|
230
|
+
$font-family: mdc-typography.$font-family,
|
|
231
|
+
$headline-1: null,
|
|
232
|
+
$headline-2: null,
|
|
233
|
+
$headline-3: null,
|
|
234
|
+
$headline-4: null,
|
|
235
|
+
$headline-5: null,
|
|
236
|
+
$headline-6: null,
|
|
237
|
+
$subtitle-1: null,
|
|
238
|
+
$subtitle-2: null,
|
|
239
|
+
$body-1: null,
|
|
240
|
+
$body-2: null,
|
|
241
|
+
$caption: null,
|
|
242
|
+
$button: null,
|
|
243
|
+
$overline: null,
|
|
244
|
+
) {
|
|
245
|
+
@return _apply-font-family($font-family, (
|
|
246
|
+
headline-1: $headline-1 or typography-config-level-from-mdc(headline1),
|
|
247
|
+
headline-2: $headline-2 or typography-config-level-from-mdc(headline2),
|
|
248
|
+
headline-3: $headline-3 or typography-config-level-from-mdc(headline3),
|
|
249
|
+
headline-4: $headline-4 or typography-config-level-from-mdc(headline4),
|
|
250
|
+
headline-5: $headline-5 or typography-config-level-from-mdc(headline5),
|
|
251
|
+
headline-6: $headline-6 or typography-config-level-from-mdc(headline6),
|
|
252
|
+
subtitle-1: $subtitle-1 or typography-config-level-from-mdc(subtitle1),
|
|
253
|
+
subtitle-2: $subtitle-2 or typography-config-level-from-mdc(subtitle2),
|
|
254
|
+
body-1: $body-1 or typography-config-level-from-mdc(body1),
|
|
255
|
+
body-2: $body-2 or typography-config-level-from-mdc(body2),
|
|
256
|
+
caption: $caption or typography-config-level-from-mdc(caption),
|
|
257
|
+
button: $button or typography-config-level-from-mdc(button),
|
|
258
|
+
overline: $overline or typography-config-level-from-mdc(overline),
|
|
259
|
+
));
|
|
260
|
+
}
|
|
261
|
+
|
|
100
262
|
// Whether a config is for the Material Design 2018 typography system.
|
|
101
263
|
@function private-typography-is-2018-config($config) {
|
|
102
264
|
@return map.get($config, headline-1) != null;
|
|
@@ -346,7 +346,7 @@ class MatChipGrid extends _MatChipGridMixinBase {
|
|
|
346
346
|
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
347
347
|
<ng-content></ng-content>
|
|
348
348
|
</div>
|
|
349
|
-
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
349
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
350
350
|
}
|
|
351
351
|
export { MatChipGrid };
|
|
352
352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatChipGrid, decorators: [{
|
|
@@ -366,7 +366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
366
366
|
'[class.mat-mdc-chip-list-required]': 'required',
|
|
367
367
|
'(focus)': 'focus()',
|
|
368
368
|
'(blur)': '_blur()',
|
|
369
|
-
}, providers: [{ provide: MatFormFieldControl, useExisting: MatChipGrid }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
369
|
+
}, providers: [{ provide: MatFormFieldControl, useExisting: MatChipGrid }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
370
370
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Directionality, decorators: [{
|
|
371
371
|
type: Optional
|
|
372
372
|
}] }, { type: i2.NgForm, decorators: [{
|
|
@@ -320,7 +320,7 @@ class MatChipListbox extends MatChipSet {
|
|
|
320
320
|
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
321
321
|
<ng-content></ng-content>
|
|
322
322
|
</div>
|
|
323
|
-
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
323
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
324
324
|
}
|
|
325
325
|
export { MatChipListbox };
|
|
326
326
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatChipListbox, decorators: [{
|
|
@@ -345,7 +345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
345
345
|
'(focus)': 'focus()',
|
|
346
346
|
'(blur)': '_blur()',
|
|
347
347
|
'(keydown)': '_keydown($event)',
|
|
348
|
-
}, providers: [MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
348
|
+
}, providers: [MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
349
349
|
}], propDecorators: { multiple: [{
|
|
350
350
|
type: Input
|
|
351
351
|
}], ariaOrientation: [{
|
|
@@ -248,7 +248,7 @@ class MatChipSet extends _MatChipSetMixinBase {
|
|
|
248
248
|
<div class="mdc-evolution-chip-set__chips" role="presentation">
|
|
249
249
|
<ng-content></ng-content>
|
|
250
250
|
</div>
|
|
251
|
-
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
251
|
+
`, isInline: true, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
252
252
|
}
|
|
253
253
|
export { MatChipSet };
|
|
254
254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: MatChipSet, decorators: [{
|
|
@@ -261,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
261
261
|
'class': 'mat-mdc-chip-set mdc-evolution-chip-set',
|
|
262
262
|
'(keydown)': '_handleKeydown($event)',
|
|
263
263
|
'[attr.role]': 'role',
|
|
264
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
264
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"] }]
|
|
265
265
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Directionality, decorators: [{
|
|
266
266
|
type: Optional
|
|
267
267
|
}] }]; }, propDecorators: { disabled: [{
|
package/esm2022/core/version.mjs
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Version } from '@angular/core';
|
|
9
9
|
/** Current version of Angular Material. */
|
|
10
|
-
export const VERSION = new Version('16.0.
|
|
10
|
+
export const VERSION = new Version('16.0.3');
|
|
11
11
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9jb3JlL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0QywyQ0FBMkM7QUFDM0MsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHtWZXJzaW9ufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqIEN1cnJlbnQgdmVyc2lvbiBvZiBBbmd1bGFyIE1hdGVyaWFsLiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|