@angular/material 11.2.1 → 11.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/_theming.scss +153 -150
  2. package/autocomplete/_autocomplete-theme.import.scss +2 -0
  3. package/autocomplete/autocomplete.d.ts +1 -1
  4. package/badge/_badge-theme.import.scss +5 -0
  5. package/bottom-sheet/_bottom-sheet-theme.import.scss +4 -0
  6. package/bottom-sheet/bottom-sheet-container.d.ts +2 -0
  7. package/bottom-sheet/index.metadata.json +1 -1
  8. package/bundles/material-autocomplete.umd.js.map +1 -1
  9. package/bundles/material-bottom-sheet.umd.js +11 -3
  10. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  11. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  12. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  13. package/bundles/material-core.umd.js +3 -3
  14. package/bundles/material-core.umd.js.map +1 -1
  15. package/bundles/material-core.umd.min.js +3 -3
  16. package/bundles/material-core.umd.min.js.map +1 -1
  17. package/bundles/material-form-field-testing.umd.js +137 -140
  18. package/bundles/material-form-field-testing.umd.js.map +1 -1
  19. package/bundles/material-form-field-testing.umd.min.js +3 -3
  20. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  21. package/bundles/material-select.umd.js +1 -1
  22. package/bundles/material-select.umd.js.map +1 -1
  23. package/bundles/material-select.umd.min.js.map +1 -1
  24. package/button/_button-base.import.scss +4 -0
  25. package/button/_button-theme.import.scss +3 -0
  26. package/button-toggle/_button-toggle-theme.import.scss +6 -0
  27. package/button-toggle/_button-toggle-variables.import.scss +1 -0
  28. package/card/_card-theme.import.scss +4 -0
  29. package/checkbox/_checkbox-theme.import.scss +3 -0
  30. package/chips/_chips-theme.import.scss +4 -0
  31. package/core/_core.import.scss +10 -0
  32. package/core/color/_all-color.import.scss +3 -0
  33. package/core/density/private/_all-density.import.scss +9 -0
  34. package/core/density/private/_compatibility.import.scss +1 -0
  35. package/core/focus-indicators/_focus-indicators.import.scss +3 -0
  36. package/core/index.metadata.json +1 -1
  37. package/core/option/_optgroup-theme.import.scss +4 -0
  38. package/core/option/_option-theme.import.scss +4 -0
  39. package/core/ripple/_ripple.import.scss +3 -0
  40. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.import.scss +2 -0
  41. package/core/style/_button-common.import.scss +2 -0
  42. package/core/style/_checkbox-common.import.scss +2 -0
  43. package/core/style/_elevation.import.scss +2 -0
  44. package/core/style/_form-common.import.scss +2 -0
  45. package/core/style/_layout-common.import.scss +1 -0
  46. package/core/style/_list-common.import.scss +1 -0
  47. package/core/style/_menu-common.import.scss +5 -0
  48. package/core/style/_private.import.scss +2 -0
  49. package/core/style/_variables.import.scss +1 -0
  50. package/core/style/_vendor-prefixes.import.scss +1 -0
  51. package/core/theming/_all-theme.import.scss +37 -0
  52. package/core/theming/_palette.import.scss +1 -0
  53. package/core/theming/_theming.import.scss +2 -0
  54. package/core/theming/_theming.scss +1 -0
  55. package/core/typography/_all-typography.import.scss +38 -0
  56. package/core/typography/_typography-utils.import.scss +1 -0
  57. package/core/typography/_typography.import.scss +2 -0
  58. package/datepicker/_datepicker-theme.import.scss +4 -0
  59. package/dialog/_dialog-theme.import.scss +4 -0
  60. package/divider/_divider-offset.import.scss +1 -0
  61. package/divider/_divider-theme.import.scss +3 -0
  62. package/esm2015/autocomplete/autocomplete.js +1 -1
  63. package/esm2015/bottom-sheet/bottom-sheet-container.js +12 -4
  64. package/esm2015/core/common-behaviors/common-module.js +1 -1
  65. package/esm2015/core/option/optgroup.js +2 -2
  66. package/esm2015/core/version.js +1 -1
  67. package/esm2015/form-field/testing/form-field-harness.js +68 -76
  68. package/esm2015/select/select.js +2 -2
  69. package/expansion/_expansion-mixins.import.scss +1 -0
  70. package/expansion/_expansion-theme.import.scss +6 -0
  71. package/expansion/_expansion-variables.import.scss +1 -0
  72. package/fesm2015/autocomplete.js.map +1 -1
  73. package/fesm2015/bottom-sheet.js +11 -3
  74. package/fesm2015/bottom-sheet.js.map +1 -1
  75. package/fesm2015/core.js +3 -3
  76. package/fesm2015/core.js.map +1 -1
  77. package/fesm2015/form-field/testing.js +69 -77
  78. package/fesm2015/form-field/testing.js.map +1 -1
  79. package/fesm2015/select.js +1 -1
  80. package/fesm2015/select.js.map +1 -1
  81. package/form-field/_form-field-fill-theme.import.scss +5 -0
  82. package/form-field/_form-field-legacy-theme.import.scss +5 -0
  83. package/form-field/_form-field-outline-theme.import.scss +5 -0
  84. package/form-field/_form-field-standard-theme.import.scss +5 -0
  85. package/form-field/_form-field-theme.import.scss +9 -0
  86. package/form-field/testing/form-field-harness.d.ts +47 -32
  87. package/grid-list/_grid-list-theme.import.scss +5 -0
  88. package/icon/_icon-theme.import.scss +2 -0
  89. package/input/_input-theme.import.scss +6 -0
  90. package/list/_list-theme.import.scss +5 -0
  91. package/menu/_menu-theme.import.scss +4 -0
  92. package/package.json +2 -2
  93. package/paginator/_paginator-theme.import.scss +5 -0
  94. package/paginator/_paginator-variables.import.scss +1 -0
  95. package/prebuilt-themes/deeppurple-amber.css +1 -1
  96. package/prebuilt-themes/indigo-pink.css +1 -1
  97. package/prebuilt-themes/pink-bluegrey.css +1 -1
  98. package/prebuilt-themes/purple-green.css +1 -1
  99. package/progress-bar/_progress-bar-theme.import.scss +3 -0
  100. package/progress-spinner/_progress-spinner-theme.import.scss +3 -0
  101. package/radio/_radio-theme.import.scss +4 -0
  102. package/schematics/ng-add/index.js +1 -1
  103. package/select/_select-theme.import.scss +5 -0
  104. package/select/select.d.ts +1 -1
  105. package/sidenav/_sidenav-theme.import.scss +3 -0
  106. package/slide-toggle/_slide-toggle-theme.import.scss +4 -0
  107. package/slider/_slider-theme.import.scss +4 -0
  108. package/snack-bar/_snack-bar-theme.import.scss +4 -0
  109. package/sort/_sort-theme.import.scss +2 -0
  110. package/stepper/_stepper-theme.import.scss +5 -0
  111. package/stepper/_stepper-variables.import.scss +1 -0
  112. package/table/_table-flex-styles.import.scss +1 -0
  113. package/table/_table-flex-styles.scss +72 -0
  114. package/table/_table-theme.import.scss +4 -0
  115. package/tabs/_tabs-common.import.scss +4 -0
  116. package/tabs/_tabs-theme.import.scss +4 -0
  117. package/toolbar/_toolbar-theme.import.scss +6 -0
  118. package/toolbar/_toolbar-variables.import.scss +1 -0
  119. package/tooltip/_tooltip-theme.import.scss +4 -0
  120. package/tree/_tree-theme.import.scss +4 -0
  121. package/tree/_tree-variables.import.scss +1 -0
package/_theming.scss CHANGED
@@ -2,6 +2,86 @@
2
2
  // the `@angular/material` theming Sass bundle. See `//src/material:theming_bundle`.
3
3
 
4
4
  // Import all the theming functionality.
5
+ @mixin cdk-a11y {
6
+ .cdk-visually-hidden {
7
+ border: 0;
8
+ clip: rect(0 0 0 0);
9
+ height: 1px;
10
+ margin: -1px;
11
+ overflow: hidden;
12
+ padding: 0;
13
+ position: absolute;
14
+ width: 1px;
15
+
16
+ // Avoid browsers rendering the focus ring in some cases.
17
+ outline: 0;
18
+
19
+ // Avoid some cases where the browser will still render the native controls (see #9049).
20
+ -webkit-appearance: none;
21
+ -moz-appearance: none;
22
+ }
23
+ }
24
+
25
+ /// Emits the mixin's content nested under `$selector-context` if `$selector-context`
26
+ /// is non-empty.
27
+ /// @param selector-context The selector under which to nest the mixin's content.
28
+ @mixin _cdk-optionally-nest-content($selector-context) {
29
+ @if ($selector-context == '') {
30
+ @content;
31
+ }
32
+ @else {
33
+ #{$selector-context} {
34
+ @content;
35
+ }
36
+ }
37
+ }
38
+
39
+ /// Applies styles for users in high contrast mode. Note that this only applies
40
+ /// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
41
+ /// attribute, however Chrome handles high contrast differently.
42
+ ///
43
+ /// @param target Which kind of high contrast setting to target. Defaults to `active`, can be
44
+ /// `white-on-black` or `black-on-white`.
45
+ /// @param encapsulation Whether to emit styles for view encapsulation. Values are:
46
+ /// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
47
+ /// * `off` - works for `None`
48
+ /// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
49
+ @mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
50
+ @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
51
+ @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
52
+ 'Allowed values are "active", "black-on-white", and "white-on-black"';
53
+ }
54
+
55
+ @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
56
+ @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
57
+ 'Allowed values are "on", "off", and "any"';
58
+ }
59
+
60
+ // If the selector context has multiple parts, such as `.section, .region`, just doing
61
+ // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
62
+ // context. We address this by nesting the selector context under .cdk-high-contrast.
63
+ @at-root {
64
+ $selector-context: #{&};
65
+
66
+ @if ($encapsulation != 'on') {
67
+ .cdk-high-contrast-#{$target} {
68
+ @include _cdk-optionally-nest-content($selector-context) {
69
+ @content;
70
+ }
71
+ }
72
+ }
73
+
74
+ @if ($encapsulation != 'off') {
75
+ .cdk-high-contrast-#{$target} :host {
76
+ @include _cdk-optionally-nest-content($selector-context) {
77
+ @content;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+
5
85
  // We want overlays to always appear over user content, so set a baseline
6
86
  // very high z-index for the overlay container, which is where we create the new
7
87
  // stacking context for all overlays.
@@ -88,7 +168,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
88
168
  // to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
89
169
  // mixin, because we can't normalize the import path to the _a11y.scss both for the
90
170
  // source and when this file is distributed. See #10908.
91
- @media screen and (-ms-high-contrast: active) {
171
+ @include cdk-high-contrast(active, off) {
92
172
  opacity: 0.6;
93
173
  }
94
174
  }
@@ -144,84 +224,6 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
144
224
  }
145
225
  }
146
226
 
147
- @mixin cdk-a11y {
148
- .cdk-visually-hidden {
149
- border: 0;
150
- clip: rect(0 0 0 0);
151
- height: 1px;
152
- margin: -1px;
153
- overflow: hidden;
154
- padding: 0;
155
- position: absolute;
156
- width: 1px;
157
-
158
- // Avoid browsers rendering the focus ring in some cases.
159
- outline: 0;
160
-
161
- // Avoid some cases where the browser will still render the native controls (see #9049).
162
- -webkit-appearance: none;
163
- -moz-appearance: none;
164
- }
165
- }
166
-
167
- /// Emits the mixin's content nested under `$selector-context` if `$selector-context`
168
- /// is non-empty.
169
- /// @param selector-context The selector under which to nest the mixin's content.
170
- @mixin _cdk-optionally-nest-content($selector-context) {
171
- @if ($selector-context == '') {
172
- @content;
173
- }
174
- @else {
175
- #{$selector-context} {
176
- @content;
177
- }
178
- }
179
- }
180
-
181
- /// Applies styles for users in high contrast mode. Note that this only applies
182
- /// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
183
- /// attribute, however Chrome handles high contrast differently.
184
- ///
185
- /// @param target Which kind of high contrast setting to target. Defaults to `active`, can be
186
- /// `white-on-black` or `black-on-white`.
187
- /// @param encapsulation Whether to emit styles for view encapsulation. Values are:
188
- /// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
189
- /// * `off` - works for `None`
190
- /// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
191
- @mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
192
- @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
193
- @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
194
- 'Allowed values are "active", "black-on-white", and "white-on-black"';
195
- }
196
-
197
- @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
198
- @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
199
- 'Allowed values are "on", "off", and "any"';
200
- }
201
-
202
- // If the selector context has multiple parts, such as `.section, .region`, just doing
203
- // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
204
- // context. We address this by nesting the selector context under .cdk-high-contrast.
205
- @at-root {
206
- $selector-context: #{&};
207
-
208
- @if ($encapsulation != 'on') {
209
- .cdk-high-contrast-#{$target} {
210
- @include _cdk-optionally-nest-content($selector-context) {
211
- @content;
212
- }
213
- }
214
- }
215
-
216
- @if ($encapsulation != 'off') {
217
- .cdk-high-contrast-#{$target} :host {
218
- @include _cdk-optionally-nest-content($selector-context) {
219
- @content;
220
- }
221
- }
222
- }
223
- }
224
- }
225
227
 
226
228
  // Core styles that enable monitoring autofill state of text fields.
227
229
  @mixin cdk-text-field {
@@ -1334,6 +1336,78 @@ $mat-dark-theme-foreground: (
1334
1336
  slider-off-active: rgba(white, 0.3),
1335
1337
  );
1336
1338
 
1339
+ // Note that this file is called `private`, because the APIs in it aren't public yet.
1340
+ // Once they're made available, the code should be moved out into an `index.scss`.
1341
+
1342
+ // Taken from mat-density with small modifications to not rely on the new Sass module
1343
+ // system, and to support arbitrary properties in a density configuration.
1344
+ // https://github.com/material-components/material-components-web/blob/master/packages/mdc-density
1345
+
1346
+ $_mat-density-interval: 4px !default;
1347
+ $_mat-density-minimum-scale: minimum !default;
1348
+ $_mat-density-maximum-scale: maximum !default;
1349
+ $_mat-density-supported-scales: (default, minimum, maximum) !default;
1350
+ $_mat-density-default-scale: 0 !default;
1351
+
1352
+ // Whether density should be generated at root. This will be temporarily set to `true`
1353
+ // whenever density styles for legacy themes are generated.
1354
+ $mat-private-density-generate-at-root: false;
1355
+ // Whether density styles should be generated. This will be temporarily set to `false` if
1356
+ // duplicate density styles for a legacy theme would be generated. For legacy themes,
1357
+ // we always generate the default density **only once** at root.
1358
+ $mat-private-density-generate-styles: true;
1359
+
1360
+ // Mixin that can be used to wrap density styles of given components. The mixin will
1361
+ // move the density styles to root if the `$mat-private-density-generate-at-root` global variable
1362
+ // is set. If `$mat-private-density-generate-styles` is set to `false`, generation of density
1363
+ // styles wrapped in this mixin is skipped. This mixin exists to improve backwards compatibility
1364
+ // of the new theming API where density styles are included as part of themes. Previously,
1365
+ // density styles of components were part of their base styles. With the new API, they are
1366
+ // part of the theming system. The `<..>-theme` mixins generate density by default unless
1367
+ // the density configuration is explicitly specified as per new API. This means, that projects
1368
+ // using `<..>-theme` mixins for separate themes (like `.dark-theme`) will cause duplicate
1369
+ // density styles. This is breaking as it increases specificity of density styles. This mixin
1370
+ // provides an API to control generation of density styles so that we can ensure they are only
1371
+ // created *once* and at root.
1372
+ @mixin mat-private-density-legacy-compatibility() {
1373
+ @if $mat-private-density-generate-styles and $mat-private-density-generate-at-root {
1374
+ @at-root {
1375
+ @content;
1376
+ }
1377
+ }
1378
+ @else if $mat-private-density-generate-styles {
1379
+ @content;
1380
+ }
1381
+ }
1382
+
1383
+ @function mat-private-density-prop-value($density-config, $density-scale, $property-name) {
1384
+ @if (type-of($density-scale) == 'string' and
1385
+ index($list: $_mat-density-supported-scales, $value: $density-scale) == null) {
1386
+ @error 'mat-density: Supported density scales #{$_mat-density-supported-scales}, ' +
1387
+ 'but received #{$density-scale}.';
1388
+ }
1389
+
1390
+ $value: null;
1391
+ $property-scale-map: map-get($density-config, $property-name);
1392
+
1393
+ @if map-has-key($property-scale-map, $density-scale) {
1394
+ $value: map-get($property-scale-map, $density-scale);
1395
+ }
1396
+ @else {
1397
+ $value: map-get($property-scale-map, default) + $density-scale * $_mat-density-interval;
1398
+ }
1399
+
1400
+ $min-value: map-get($property-scale-map, $_mat-density-minimum-scale);
1401
+ $max-value: map-get($property-scale-map, $_mat-density-maximum-scale);
1402
+
1403
+ @if ($value < $min-value or $value > $max-value) {
1404
+ @error 'mat-density: #{$property-name} must be between #{$min-value} and ' +
1405
+ '#{$max-value} (inclusive), but received #{$value}.';
1406
+ }
1407
+
1408
+ @return $value;
1409
+ }
1410
+
1337
1411
 
1338
1412
  // Whether duplication warnings should be disabled. Warnings enabled by default.
1339
1413
  $mat-theme-ignore-duplication-warnings: false !default;
@@ -2971,77 +3045,6 @@ $_mat-button-ripple-opacity: 0.1;
2971
3045
 
2972
3046
 
2973
3047
 
2974
- // Note that this file is called `private`, because the APIs in it aren't public yet.
2975
- // Once they're made available, the code should be moved out into an `index.scss`.
2976
-
2977
- // Taken from mat-density with small modifications to not rely on the new Sass module
2978
- // system, and to support arbitrary properties in a density configuration.
2979
- // https://github.com/material-components/material-components-web/blob/master/packages/mdc-density
2980
-
2981
- $_mat-density-interval: 4px !default;
2982
- $_mat-density-minimum-scale: minimum !default;
2983
- $_mat-density-maximum-scale: maximum !default;
2984
- $_mat-density-supported-scales: (default, minimum, maximum) !default;
2985
- $_mat-density-default-scale: 0 !default;
2986
-
2987
- // Whether density should be generated at root. This will be temporarily set to `true`
2988
- // whenever density styles for legacy themes are generated.
2989
- $mat-private-density-generate-at-root: false;
2990
- // Whether density styles should be generated. This will be temporarily set to `false` if
2991
- // duplicate density styles for a legacy theme would be generated. For legacy themes,
2992
- // we always generate the default density **only once** at root.
2993
- $mat-private-density-generate-styles: true;
2994
-
2995
- // Mixin that can be used to wrap density styles of given components. The mixin will
2996
- // move the density styles to root if the `$mat-private-density-generate-at-root` global variable
2997
- // is set. If `$mat-private-density-generate-styles` is set to `false`, generation of density
2998
- // styles wrapped in this mixin is skipped. This mixin exists to improve backwards compatibility
2999
- // of the new theming API where density styles are included as part of themes. Previously,
3000
- // density styles of components were part of their base styles. With the new API, they are
3001
- // part of the theming system. The `<..>-theme` mixins generate density by default unless
3002
- // the density configuration is explicitly specified as per new API. This means, that projects
3003
- // using `<..>-theme` mixins for separate themes (like `.dark-theme`) will cause duplicate
3004
- // density styles. This is breaking as it increases specificity of density styles. This mixin
3005
- // provides an API to control generation of density styles so that we can ensure they are only
3006
- // created *once* and at root.
3007
- @mixin mat-private-density-legacy-compatibility() {
3008
- @if $mat-private-density-generate-styles and $mat-private-density-generate-at-root {
3009
- @at-root {
3010
- @content;
3011
- }
3012
- }
3013
- @else if $mat-private-density-generate-styles {
3014
- @content;
3015
- }
3016
- }
3017
-
3018
- @function mat-private-density-prop-value($density-config, $density-scale, $property-name) {
3019
- @if (type-of($density-scale) == 'string' and
3020
- index($list: $_mat-density-supported-scales, $value: $density-scale) == null) {
3021
- @error 'mat-density: Supported density scales #{$_mat-density-supported-scales}, ' +
3022
- 'but received #{$density-scale}.';
3023
- }
3024
-
3025
- $value: null;
3026
- $property-scale-map: map-get($density-config, $property-name);
3027
-
3028
- @if map-has-key($property-scale-map, $density-scale) {
3029
- $value: map-get($property-scale-map, $density-scale);
3030
- }
3031
- @else {
3032
- $value: map-get($property-scale-map, default) + $density-scale * $_mat-density-interval;
3033
- }
3034
-
3035
- $min-value: map-get($property-scale-map, $_mat-density-minimum-scale);
3036
- $max-value: map-get($property-scale-map, $_mat-density-maximum-scale);
3037
-
3038
- @if ($value < $min-value or $value > $max-value) {
3039
- @error 'mat-density: #{$property-name} must be between #{$min-value} and ' +
3040
- '#{$max-value} (inclusive), but received #{$value}.';
3041
- }
3042
-
3043
- @return $value;
3044
- }
3045
3048
 
3046
3049
  $mat-button-toggle-standard-height: 48px !default;
3047
3050
  // Minimum height for highest density can vary based on the content that developers
@@ -0,0 +1,2 @@
1
+ @forward 'autocomplete-theme';
2
+ @forward '../core/theming/theming';
@@ -68,7 +68,7 @@ export declare abstract class _MatAutocompleteBase extends _MatAutocompleteMixin
68
68
  abstract options: QueryList<_MatOptionBase>;
69
69
  /** @docs-private */
70
70
  abstract optionGroups: QueryList<_MatOptgroupBase>;
71
- /** Aria label of the select. If not specified, the placeholder will be used as label. */
71
+ /** Aria label of the autocomplete. */
72
72
  ariaLabel: string;
73
73
  /** Input that can be used to specify the `aria-labelledby` attribute. */
74
74
  ariaLabelledby: string;
@@ -0,0 +1,5 @@
1
+ @forward 'badge-theme';
2
+ @forward '../core/theming/palette';
3
+ @forward '../core/theming/theming';
4
+ @forward '../core/typography/typography-utils';
5
+ @forward '../../cdk/a11y/a11y';
@@ -0,0 +1,4 @@
1
+ @forward 'bottom-sheet-theme';
2
+ @forward '../core/typography/typography-utils';
3
+ @forward '../core/theming/palette';
4
+ @forward '../core/theming/theming';
@@ -65,4 +65,6 @@ export declare class MatBottomSheetContainer extends BasePortalOutlet implements
65
65
  private _restoreFocus;
66
66
  /** Saves a reference to the element that was focused before the bottom sheet was opened. */
67
67
  private _savePreviouslyFocusedElement;
68
+ /** Gets the currently-focused element on the page. */
69
+ private _getActiveElement;
68
70
  }
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"MatBottomSheetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":19,"character":4}],"exports":[{"__symbolic":"reference","name":"MatBottomSheetContainer"},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":21,"character":37}],"declarations":[{"__symbolic":"reference","name":"MatBottomSheetContainer"}],"entryComponents":[{"__symbolic":"reference","name":"MatBottomSheetContainer"}]}]}],"members":{}},"MAT_BOTTOM_SHEET_DEFAULT_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":8},"arguments":["mat-bottom-sheet-default-options"]},"MatBottomSheet":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":37,"character":1},"arguments":[{"providedIn":{"__symbolic":"reference","name":"MatBottomSheetModule"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":58,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":58,"character":19}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":59,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":59,"character":19},"arguments":[{"__symbolic":"reference","name":"MAT_BOTTOM_SHEET_DEFAULT_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"Overlay","line":56,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":57,"character":25},{"__symbolic":"reference","name":"MatBottomSheet"},{"__symbolic":"reference","name":"MatBottomSheetConfig"}]}],"open":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_attachContainer":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_createInjector":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"MAT_BOTTOM_SHEET_DATA":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":41},"arguments":["MatBottomSheetData"]},"MatBottomSheetConfig":{"__symbolic":"class","arity":1,"members":{}},"MatBottomSheetContainer":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/cdk/portal","name":"BasePortalOutlet","line":65,"character":45},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":43,"character":1},"arguments":[{"selector":"mat-bottom-sheet-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":51,"character":19},"member":"Default"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":52,"character":17},"member":"None"},"animations":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"matBottomSheetAnimations"},"member":"bottomSheetState"}],"host":{"class":"mat-bottom-sheet-container","tabindex":"-1","role":"dialog","aria-modal":"true","[attr.aria-label]":"bottomSheetConfig?.ariaLabel","[@state]":"_animationState","(@state.start)":"_onAnimationStart($event)","(@state.done)":"_onAnimationDone($event)","$quoted$":["class","tabindex","role","aria-modal","[attr.aria-label]","[@state]","(@state.start)","(@state.done)"]},"template":"<ng-template cdkPortalOutlet></ng-template>\r\n","styles":[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"]}]}],"members":{"_portalOutlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":69,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/cdk/portal","name":"CdkPortalOutlet","line":69,"character":13},{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":94,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":94,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":94,"character":24}]}],null],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":90,"character":36,"context":{"typeName":"HTMLElement"},"module":"./bottom-sheet-container"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":91,"character":32},{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusTrapFactory","line":92,"character":31},{"__symbolic":"reference","module":"@angular/cdk/layout","name":"BreakpointObserver","line":93,"character":24},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"MatBottomSheetConfig"}]}],"attachComponentPortal":[{"__symbolic":"method"}],"attachTemplatePortal":[{"__symbolic":"method"}],"enter":[{"__symbolic":"method"}],"exit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_onAnimationDone":[{"__symbolic":"method"}],"_onAnimationStart":[{"__symbolic":"method"}],"_toggleClass":[{"__symbolic":"method"}],"_validatePortalAttached":[{"__symbolic":"method"}],"_setPanelClass":[{"__symbolic":"method"}],"_trapFocus":[{"__symbolic":"method"}],"_restoreFocus":[{"__symbolic":"method"}],"_savePreviouslyFocusedElement":[{"__symbolic":"method"}]}},"matBottomSheetAnimations":{"bottomSheetState":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":22,"character":20},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":23,"character":4},"arguments":["void, hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":23,"character":26},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":24,"character":4},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":24,"character":21},"arguments":[{"transform":"translateY(0%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":25,"character":4},"arguments":["visible => void, visible => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":26,"character":8},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationDurations","line":26,"character":19},"member":"COMPLEX"},"right":" "},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationCurves","line":26,"character":49},"member":"ACCELERATION_CURVE"}}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":27,"character":4},"arguments":["void => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":28,"character":8},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationDurations","line":28,"character":19},"member":"EXITING"},"right":" "},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationCurves","line":28,"character":49},"member":"DECELERATION_CURVE"}}]}]}]]}},"MatBottomSheetRef":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MatBottomSheetContainer"},{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayRef","line":45,"character":25}]}],"dismiss":[{"__symbolic":"method"}],"afterDismissed":[{"__symbolic":"method"}],"afterOpened":[{"__symbolic":"method"}],"backdropClick":[{"__symbolic":"method"}],"keydownEvents":[{"__symbolic":"method"}]}}},"origins":{"MatBottomSheetModule":"./bottom-sheet-module","MAT_BOTTOM_SHEET_DEFAULT_OPTIONS":"./bottom-sheet","MatBottomSheet":"./bottom-sheet","MAT_BOTTOM_SHEET_DATA":"./bottom-sheet-config","MatBottomSheetConfig":"./bottom-sheet-config","MatBottomSheetContainer":"./bottom-sheet-container","matBottomSheetAnimations":"./bottom-sheet-animations","MatBottomSheetRef":"./bottom-sheet-ref"},"importAs":"@angular/material/bottom-sheet"}
1
+ {"__symbolic":"module","version":4,"metadata":{"MatBottomSheetModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":19,"character":4}],"exports":[{"__symbolic":"reference","name":"MatBottomSheetContainer"},{"__symbolic":"reference","module":"@angular/material/core","name":"MatCommonModule","line":21,"character":37}],"declarations":[{"__symbolic":"reference","name":"MatBottomSheetContainer"}],"entryComponents":[{"__symbolic":"reference","name":"MatBottomSheetContainer"}]}]}],"members":{}},"MAT_BOTTOM_SHEET_DEFAULT_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":8},"arguments":["mat-bottom-sheet-default-options"]},"MatBottomSheet":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":37,"character":1},"arguments":[{"providedIn":{"__symbolic":"reference","name":"MatBottomSheetModule"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":58,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":58,"character":19}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":59,"character":7}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":59,"character":19},"arguments":[{"__symbolic":"reference","name":"MAT_BOTTOM_SHEET_DEFAULT_OPTIONS"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"Overlay","line":56,"character":24},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":57,"character":25},{"__symbolic":"reference","name":"MatBottomSheet"},{"__symbolic":"reference","name":"MatBottomSheetConfig"}]}],"open":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_attachContainer":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_createInjector":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"MAT_BOTTOM_SHEET_DATA":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":41},"arguments":["MatBottomSheetData"]},"MatBottomSheetConfig":{"__symbolic":"class","arity":1,"members":{}},"MatBottomSheetContainer":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/cdk/portal","name":"BasePortalOutlet","line":65,"character":45},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":43,"character":1},"arguments":[{"selector":"mat-bottom-sheet-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":51,"character":19},"member":"Default"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":52,"character":17},"member":"None"},"animations":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"matBottomSheetAnimations"},"member":"bottomSheetState"}],"host":{"class":"mat-bottom-sheet-container","tabindex":"-1","role":"dialog","aria-modal":"true","[attr.aria-label]":"bottomSheetConfig?.ariaLabel","[@state]":"_animationState","(@state.start)":"_onAnimationStart($event)","(@state.done)":"_onAnimationDone($event)","$quoted$":["class","tabindex","role","aria-modal","[attr.aria-label]","[@state]","(@state.start)","(@state.done)"]},"template":"<ng-template cdkPortalOutlet></ng-template>\r\n","styles":[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"]}]}],"members":{"_portalOutlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":69,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/cdk/portal","name":"CdkPortalOutlet","line":69,"character":13},{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":94,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":94,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":94,"character":24}]}],null],"parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":90,"character":36,"context":{"typeName":"HTMLElement"},"module":"./bottom-sheet-container"}]},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":91,"character":32},{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusTrapFactory","line":92,"character":31},{"__symbolic":"reference","module":"@angular/cdk/layout","name":"BreakpointObserver","line":93,"character":24},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"MatBottomSheetConfig"}]}],"attachComponentPortal":[{"__symbolic":"method"}],"attachTemplatePortal":[{"__symbolic":"method"}],"enter":[{"__symbolic":"method"}],"exit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_onAnimationDone":[{"__symbolic":"method"}],"_onAnimationStart":[{"__symbolic":"method"}],"_toggleClass":[{"__symbolic":"method"}],"_validatePortalAttached":[{"__symbolic":"method"}],"_setPanelClass":[{"__symbolic":"method"}],"_trapFocus":[{"__symbolic":"method"}],"_restoreFocus":[{"__symbolic":"method"}],"_savePreviouslyFocusedElement":[{"__symbolic":"method"}],"_getActiveElement":[{"__symbolic":"method"}]}},"matBottomSheetAnimations":{"bottomSheetState":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":22,"character":20},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":23,"character":4},"arguments":["void, hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":23,"character":26},"arguments":[{"transform":"translateY(100%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state","line":24,"character":4},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":24,"character":21},"arguments":[{"transform":"translateY(0%)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":25,"character":4},"arguments":["visible => void, visible => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":26,"character":8},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationDurations","line":26,"character":19},"member":"COMPLEX"},"right":" "},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationCurves","line":26,"character":49},"member":"ACCELERATION_CURVE"}}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":27,"character":4},"arguments":["void => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":28,"character":8},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationDurations","line":28,"character":19},"member":"EXITING"},"right":" "},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/material/core","name":"AnimationCurves","line":28,"character":49},"member":"DECELERATION_CURVE"}}]}]}]]}},"MatBottomSheetRef":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MatBottomSheetContainer"},{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayRef","line":45,"character":25}]}],"dismiss":[{"__symbolic":"method"}],"afterDismissed":[{"__symbolic":"method"}],"afterOpened":[{"__symbolic":"method"}],"backdropClick":[{"__symbolic":"method"}],"keydownEvents":[{"__symbolic":"method"}]}}},"origins":{"MatBottomSheetModule":"./bottom-sheet-module","MAT_BOTTOM_SHEET_DEFAULT_OPTIONS":"./bottom-sheet","MatBottomSheet":"./bottom-sheet","MAT_BOTTOM_SHEET_DATA":"./bottom-sheet-config","MatBottomSheetConfig":"./bottom-sheet-config","MatBottomSheetContainer":"./bottom-sheet-container","matBottomSheetAnimations":"./bottom-sheet-animations","MatBottomSheetRef":"./bottom-sheet-ref"},"importAs":"@angular/material/bottom-sheet"}