@angular/material 17.1.0-next.0 → 17.1.0-next.1
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/autocomplete/_autocomplete-theme.scss +47 -14
- package/autocomplete/index.d.ts +14 -10
- package/badge/_badge-theme.scss +67 -35
- package/badge/index.d.ts +5 -5
- package/bottom-sheet/_bottom-sheet-theme.scss +51 -18
- package/bottom-sheet/index.d.ts +6 -6
- package/button/_button-theme.scss +4 -1
- package/button/_fab-theme.scss +65 -32
- package/button/_icon-button-theme.scss +89 -56
- package/button/index.d.ts +13 -13
- package/button-toggle/_button-toggle-theme.scss +66 -32
- package/button-toggle/index.d.ts +5 -5
- package/card/index.d.ts +18 -18
- package/checkbox/index.d.ts +6 -6
- package/chips/_chips-theme.scss +64 -32
- package/chips/index.d.ts +46 -73
- package/core/_core-theme.scss +1 -3
- package/core/index.d.ts +50 -31
- package/core/option/_optgroup-theme.scss +47 -16
- package/core/option/_option-theme.scss +54 -23
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +18 -58
- package/core/tokens/m2/_index.scss +38 -0
- package/core/tokens/m2/mat/_full-pseudo-checkbox.scss +49 -0
- package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +43 -0
- package/datepicker/_datepicker-theme.scss +70 -38
- package/datepicker/index.d.ts +88 -86
- package/dialog/_dialog-theme.scss +48 -17
- package/divider/_divider-theme.scss +49 -16
- package/divider/index.d.ts +4 -4
- package/esm2022/autocomplete/autocomplete-origin.mjs +5 -4
- package/esm2022/autocomplete/autocomplete-trigger.mjs +27 -11
- package/esm2022/autocomplete/autocomplete.mjs +6 -6
- package/esm2022/autocomplete/module.mjs +23 -7
- package/esm2022/autocomplete/public-api.mjs +3 -1
- package/esm2022/badge/badge-module.mjs +6 -7
- package/esm2022/badge/badge.mjs +5 -4
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -6
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +8 -7
- package/esm2022/bottom-sheet/bottom-sheet.mjs +5 -6
- package/esm2022/button/button-base.mjs +6 -6
- package/esm2022/button/button.mjs +9 -9
- package/esm2022/button/fab.mjs +17 -17
- package/esm2022/button/icon-button.mjs +9 -9
- package/esm2022/button/module.mjs +16 -12
- package/esm2022/button-toggle/button-toggle-module.mjs +6 -7
- package/esm2022/button-toggle/button-toggle.mjs +10 -9
- package/esm2022/card/card.mjs +57 -46
- package/esm2022/card/module.mjs +7 -8
- package/esm2022/checkbox/checkbox-required-validator.mjs +6 -4
- package/esm2022/checkbox/checkbox.mjs +5 -6
- package/esm2022/checkbox/module.mjs +11 -12
- package/esm2022/chips/chip-action.mjs +5 -4
- package/esm2022/chips/chip-edit-input.mjs +5 -4
- package/esm2022/chips/chip-grid.mjs +39 -51
- package/esm2022/chips/chip-icons.mjs +13 -10
- package/esm2022/chips/chip-input.mjs +5 -4
- package/esm2022/chips/chip-listbox.mjs +5 -5
- package/esm2022/chips/chip-option.mjs +7 -7
- package/esm2022/chips/chip-row.mjs +7 -8
- package/esm2022/chips/chip-set.mjs +5 -5
- package/esm2022/chips/chip.mjs +5 -6
- package/esm2022/chips/module.mjs +7 -8
- package/esm2022/chips/tokens.mjs +8 -2
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/common-behaviors/error-state.mjs +50 -11
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/datetime/index.mjs +8 -8
- package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2022/core/error/error-options.mjs +6 -6
- package/esm2022/core/line/line.mjs +10 -10
- package/esm2022/core/option/index.mjs +6 -7
- package/esm2022/core/option/optgroup.mjs +5 -5
- package/esm2022/core/option/option.mjs +9 -9
- package/esm2022/core/private/ripple-loader.mjs +3 -3
- package/esm2022/core/ripple/index.mjs +6 -7
- package/esm2022/core/ripple/ripple.mjs +5 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +6 -7
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +6 -6
- package/esm2022/datepicker/calendar.mjs +12 -16
- package/esm2022/datepicker/date-range-input-parts.mjs +41 -20
- package/esm2022/datepicker/date-range-input.mjs +7 -7
- package/esm2022/datepicker/date-range-picker.mjs +5 -4
- package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
- package/esm2022/datepicker/date-selection-model.mjs +9 -9
- package/esm2022/datepicker/datepicker-actions.mjs +13 -11
- package/esm2022/datepicker/datepicker-base.mjs +23 -20
- package/esm2022/datepicker/datepicker-input-base.mjs +6 -5
- package/esm2022/datepicker/datepicker-input.mjs +5 -4
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +18 -16
- package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
- package/esm2022/datepicker/datepicker.mjs +5 -4
- package/esm2022/datepicker/month-view.mjs +5 -6
- package/esm2022/datepicker/multi-year-view.mjs +5 -6
- package/esm2022/datepicker/year-view.mjs +5 -6
- package/esm2022/dialog/dialog-container.mjs +7 -8
- package/esm2022/dialog/dialog-content-directives.mjs +12 -12
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/dialog/module.mjs +5 -5
- package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
- package/esm2022/divider/divider-module.mjs +6 -7
- package/esm2022/divider/divider.mjs +5 -5
- package/esm2022/expansion/accordion.mjs +5 -4
- package/esm2022/expansion/expansion-module.mjs +16 -9
- package/esm2022/expansion/expansion-panel-content.mjs +5 -4
- package/esm2022/expansion/expansion-panel-header.mjs +13 -11
- package/esm2022/expansion/expansion-panel.mjs +11 -11
- package/esm2022/form-field/directives/error.mjs +5 -4
- package/esm2022/form-field/directives/floating-label.mjs +5 -4
- package/esm2022/form-field/directives/hint.mjs +5 -4
- package/esm2022/form-field/directives/label.mjs +5 -4
- package/esm2022/form-field/directives/line-ripple.mjs +5 -4
- package/esm2022/form-field/directives/notched-outline.mjs +5 -5
- package/esm2022/form-field/directives/prefix.mjs +5 -4
- package/esm2022/form-field/directives/suffix.mjs +5 -4
- package/esm2022/form-field/form-field-control.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +14 -13
- package/esm2022/form-field/module.mjs +16 -18
- package/esm2022/grid-list/grid-list-module.mjs +15 -11
- package/esm2022/grid-list/grid-list.mjs +5 -5
- package/esm2022/grid-list/grid-tile.mjs +21 -18
- package/esm2022/grid-list/tile-coordinator.mjs +1 -1
- package/esm2022/icon/icon-module.mjs +6 -7
- package/esm2022/icon/icon-registry.mjs +3 -3
- package/esm2022/icon/icon.mjs +5 -5
- package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
- package/esm2022/input/input.mjs +28 -30
- package/esm2022/input/module.mjs +6 -7
- package/esm2022/input/public-api.mjs +3 -1
- package/esm2022/list/action-list.mjs +5 -5
- package/esm2022/list/list-base.mjs +9 -7
- package/esm2022/list/list-item-sections.mjs +25 -19
- package/esm2022/list/list-module.mjs +15 -16
- package/esm2022/list/list-option.mjs +8 -8
- package/esm2022/list/list.mjs +10 -10
- package/esm2022/list/nav-list.mjs +5 -5
- package/esm2022/list/selection-list.mjs +5 -5
- package/esm2022/list/subheader.mjs +5 -4
- package/esm2022/menu/menu-content.mjs +5 -4
- package/esm2022/menu/menu-item.mjs +6 -6
- package/esm2022/menu/menu-trigger.mjs +12 -5
- package/esm2022/menu/menu.mjs +6 -6
- package/esm2022/menu/module.mjs +25 -7
- package/esm2022/paginator/module.mjs +6 -7
- package/esm2022/paginator/paginator-intl.mjs +3 -3
- package/esm2022/paginator/paginator.mjs +10 -11
- package/esm2022/progress-bar/module.mjs +6 -6
- package/esm2022/progress-bar/progress-bar.mjs +5 -5
- package/esm2022/progress-spinner/module.mjs +6 -7
- package/esm2022/progress-spinner/progress-spinner.mjs +6 -6
- package/esm2022/radio/module.mjs +6 -7
- package/esm2022/radio/radio.mjs +10 -9
- package/esm2022/select/module.mjs +21 -7
- package/esm2022/select/public-api.mjs +5 -1
- package/esm2022/select/select.mjs +51 -42
- package/esm2022/sidenav/drawer.mjs +13 -12
- package/esm2022/sidenav/sidenav-module.mjs +14 -10
- package/esm2022/sidenav/sidenav.mjs +13 -12
- package/esm2022/slide-toggle/module.mjs +20 -12
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +5 -4
- package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
- package/esm2022/slider/module.mjs +19 -7
- package/esm2022/slider/slider-input.mjs +9 -7
- package/esm2022/slider/slider-thumb.mjs +5 -6
- package/esm2022/slider/slider.mjs +6 -6
- package/esm2022/snack-bar/module.mjs +6 -6
- package/esm2022/snack-bar/simple-snack-bar.mjs +6 -8
- package/esm2022/snack-bar/snack-bar-container.mjs +7 -8
- package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
- package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
- package/esm2022/snack-bar/snack-bar.mjs +3 -3
- package/esm2022/sort/sort-header-intl.mjs +3 -3
- package/esm2022/sort/sort-header.mjs +5 -5
- package/esm2022/sort/sort-module.mjs +6 -7
- package/esm2022/sort/sort.mjs +5 -4
- package/esm2022/stepper/step-content.mjs +5 -4
- package/esm2022/stepper/step-header.mjs +8 -8
- package/esm2022/stepper/step-label.mjs +5 -4
- package/esm2022/stepper/stepper-button.mjs +9 -7
- package/esm2022/stepper/stepper-icon.mjs +5 -4
- package/esm2022/stepper/stepper-intl.mjs +3 -3
- package/esm2022/stepper/stepper-module.mjs +17 -16
- package/esm2022/stepper/stepper.mjs +14 -16
- package/esm2022/table/cell.mjs +29 -22
- package/esm2022/table/module.mjs +7 -8
- package/esm2022/table/row.mjs +33 -24
- package/esm2022/table/table.mjs +11 -11
- package/esm2022/table/text-column.mjs +8 -6
- package/esm2022/tabs/module.mjs +10 -43
- package/esm2022/tabs/paginated-tab-header.mjs +3 -3
- package/esm2022/tabs/tab-body.mjs +10 -8
- package/esm2022/tabs/tab-content.mjs +5 -4
- package/esm2022/tabs/tab-group.mjs +20 -13
- package/esm2022/tabs/tab-header.mjs +7 -7
- package/esm2022/tabs/tab-label-wrapper.mjs +5 -4
- package/esm2022/tabs/tab-label.mjs +5 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
- package/esm2022/tabs/tab.mjs +5 -5
- package/esm2022/toolbar/toolbar-module.mjs +6 -7
- package/esm2022/toolbar/toolbar.mjs +9 -8
- package/esm2022/tooltip/module.mjs +6 -7
- package/esm2022/tooltip/tooltip.mjs +18 -12
- package/esm2022/tree/node.mjs +13 -10
- package/esm2022/tree/outlet.mjs +5 -4
- package/esm2022/tree/padding.mjs +5 -4
- package/esm2022/tree/toggle.mjs +5 -4
- package/esm2022/tree/tree-module.mjs +7 -8
- package/esm2022/tree/tree.mjs +5 -6
- package/expansion/_expansion-theme.scss +56 -22
- package/expansion/index.d.ts +15 -15
- package/fesm2022/autocomplete.mjs +60 -27
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +9 -9
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +25 -26
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +14 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +53 -49
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +62 -52
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -19
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +94 -96
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +115 -78
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +178 -146
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +2 -2
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +9 -10
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +47 -36
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +61 -48
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +38 -31
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon.mjs +12 -13
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +33 -35
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +77 -71
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +51 -27
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +17 -22
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +9 -9
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +10 -12
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +14 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +72 -48
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +37 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +28 -20
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +36 -23
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +32 -34
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +16 -16
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +58 -55
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +81 -63
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +408 -424
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -13
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +22 -17
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +34 -29
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +33 -45
- package/grid-list/index.d.ts +10 -10
- package/icon/_icon-theme.scss +55 -23
- package/icon/index.d.ts +4 -4
- package/input/index.d.ts +33 -32
- package/list/index.d.ts +36 -36
- package/menu/_menu-theme.scss +50 -18
- package/menu/index.d.ts +12 -12
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +62 -29
- package/paginator/index.d.ts +6 -6
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +2 -2
- package/progress-spinner/index.d.ts +4 -4
- package/radio/index.d.ts +6 -6
- 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 +427 -201
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
- package/schematics/ng-update/index_bundled.js +41 -37
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/select/_select-theme.scss +71 -38
- package/select/index.d.ts +47 -35
- package/sidenav/_sidenav-theme.scss +49 -16
- package/sidenav/index.d.ts +11 -11
- package/slide-toggle/index.d.ts +6 -6
- package/slider/index.d.ts +9 -9
- package/sort/index.d.ts +6 -6
- package/stepper/index.d.ts +29 -29
- package/table/index.d.ts +24 -24
- package/tabs/index.d.ts +18 -43
- package/toolbar/index.d.ts +5 -5
- package/tooltip/index.d.ts +8 -8
- package/tree/index.d.ts +15 -15
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '../core/theming/theming';
|
|
2
3
|
@use '../core/theming/inspection';
|
|
3
4
|
@use '../core/typography/typography';
|
|
@@ -5,30 +6,62 @@
|
|
|
5
6
|
@use '../core/tokens/token-utils';
|
|
6
7
|
@use '../core/tokens/m2/mat/autocomplete' as tokens-mat-autocomplete;
|
|
7
8
|
|
|
8
|
-
@mixin base($theme) {
|
|
9
|
+
@mixin base($theme) {
|
|
10
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
|
+
}
|
|
13
|
+
@else {}
|
|
14
|
+
}
|
|
9
15
|
|
|
10
16
|
@mixin color($theme) {
|
|
11
|
-
@
|
|
12
|
-
@include
|
|
13
|
-
|
|
17
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
18
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
19
|
+
}
|
|
20
|
+
@else {
|
|
21
|
+
@include sass-utils.current-selector-or-root() {
|
|
22
|
+
@include token-utils.create-token-values(tokens-mat-autocomplete.$prefix,
|
|
23
|
+
tokens-mat-autocomplete.get-color-tokens($theme));
|
|
24
|
+
}
|
|
14
25
|
}
|
|
15
26
|
}
|
|
16
27
|
|
|
17
|
-
@mixin typography($theme) {
|
|
28
|
+
@mixin typography($theme) {
|
|
29
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
30
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
31
|
+
}
|
|
32
|
+
@else {}
|
|
33
|
+
}
|
|
18
34
|
|
|
19
|
-
@mixin density($theme) {
|
|
35
|
+
@mixin density($theme) {
|
|
36
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
37
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
38
|
+
}
|
|
39
|
+
@else {}
|
|
40
|
+
}
|
|
20
41
|
|
|
21
42
|
@mixin theme($theme) {
|
|
22
43
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-autocomplete') {
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
@include color($theme);
|
|
26
|
-
}
|
|
27
|
-
@if inspection.theme-has($theme, density) {
|
|
28
|
-
@include density($theme);
|
|
44
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
45
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
29
46
|
}
|
|
30
|
-
@
|
|
31
|
-
@include
|
|
47
|
+
@else {
|
|
48
|
+
@include base($theme);
|
|
49
|
+
@if inspection.theme-has($theme, color) {
|
|
50
|
+
@include color($theme);
|
|
51
|
+
}
|
|
52
|
+
@if inspection.theme-has($theme, density) {
|
|
53
|
+
@include density($theme);
|
|
54
|
+
}
|
|
55
|
+
@if inspection.theme-has($theme, typography) {
|
|
56
|
+
@include typography($theme);
|
|
57
|
+
}
|
|
32
58
|
}
|
|
33
59
|
}
|
|
34
60
|
}
|
|
61
|
+
|
|
62
|
+
@mixin _theme-from-tokens($tokens) {
|
|
63
|
+
@if ($tokens != ()) {
|
|
64
|
+
@include token-utils.create-token-values(
|
|
65
|
+
tokens-mat-autocomplete.$prefix, map.get($tokens, tokens-mat-autocomplete.$prefix));
|
|
66
|
+
}
|
|
67
|
+
}
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ import { Directionality } from '@angular/cdk/bidi';
|
|
|
8
8
|
import { ElementRef } from '@angular/core';
|
|
9
9
|
import { EventEmitter } from '@angular/core';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
11
|
+
import * as i1 from '@angular/cdk/overlay';
|
|
12
|
+
import * as i2 from '@angular/material/core';
|
|
13
|
+
import * as i3 from '@angular/common';
|
|
14
14
|
import * as i7 from '@angular/cdk/scrolling';
|
|
15
15
|
import { InjectionToken } from '@angular/core';
|
|
16
16
|
import { MatFormField } from '@angular/material/form-field';
|
|
@@ -37,7 +37,7 @@ import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
|
37
37
|
*/
|
|
38
38
|
export declare function getMatAutocompleteMissingPanelError(): Error;
|
|
39
39
|
|
|
40
|
-
declare namespace
|
|
40
|
+
declare namespace i4 {
|
|
41
41
|
export {
|
|
42
42
|
MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
|
|
43
43
|
MatAutocompleteSelectedEvent,
|
|
@@ -48,7 +48,7 @@ declare namespace i1 {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
declare namespace
|
|
51
|
+
declare namespace i5 {
|
|
52
52
|
export {
|
|
53
53
|
getMatAutocompleteMissingPanelError,
|
|
54
54
|
MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
|
|
@@ -59,7 +59,7 @@ declare namespace i2 {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
declare namespace
|
|
62
|
+
declare namespace i6 {
|
|
63
63
|
export {
|
|
64
64
|
MatAutocompleteOrigin
|
|
65
65
|
}
|
|
@@ -199,7 +199,7 @@ export declare class MatAutocomplete implements AfterContentInit, OnDestroy {
|
|
|
199
199
|
private _setThemeClasses;
|
|
200
200
|
protected _skipPredicate(): boolean;
|
|
201
201
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocomplete, never>;
|
|
202
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocomplete, "mat-autocomplete", ["matAutocomplete"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "requireSelection": { "alias": "requireSelection"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; }, { "optionSelected": "optionSelected"; "opened": "opened"; "closed": "closed"; "optionActivated": "optionActivated"; }, ["options", "optionGroups"], ["*"],
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocomplete, "mat-autocomplete", ["matAutocomplete"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "autoSelectActiveOption": { "alias": "autoSelectActiveOption"; "required": false; }; "requireSelection": { "alias": "requireSelection"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; }, { "optionSelected": "optionSelected"; "opened": "opened"; "closed": "closed"; "optionActivated": "optionActivated"; }, ["options", "optionGroups"], ["*"], true, never>;
|
|
203
203
|
static ngAcceptInputType_autoActiveFirstOption: unknown;
|
|
204
204
|
static ngAcceptInputType_autoSelectActiveOption: unknown;
|
|
205
205
|
static ngAcceptInputType_requireSelection: unknown;
|
|
@@ -234,7 +234,7 @@ export declare interface MatAutocompleteDefaultOptions {
|
|
|
234
234
|
|
|
235
235
|
export declare class MatAutocompleteModule {
|
|
236
236
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
|
|
237
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, [typeof i1.
|
|
237
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i1.OverlayModule, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i3.CommonModule, typeof i4.MatAutocomplete, typeof i5.MatAutocompleteTrigger, typeof i6.MatAutocompleteOrigin], [typeof i7.CdkScrollableModule, typeof i4.MatAutocomplete, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i5.MatAutocompleteTrigger, typeof i6.MatAutocompleteOrigin]>;
|
|
238
238
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -249,7 +249,7 @@ export declare class MatAutocompleteOrigin {
|
|
|
249
249
|
/** Reference to the element on which the directive is applied. */
|
|
250
250
|
elementRef: ElementRef<HTMLElement>);
|
|
251
251
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteOrigin, never>;
|
|
252
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never,
|
|
252
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never, true, never>;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/** Event object that is emitted when an autocomplete option is selected. */
|
|
@@ -470,8 +470,12 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
|
|
|
470
470
|
/** Clears the references to the listbox overlay element from the modal it was added to. */
|
|
471
471
|
private _clearFromModal;
|
|
472
472
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
473
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteTrigger, "input[matAutocomplete], textarea[matAutocomplete]", ["matAutocompleteTrigger"], { "autocomplete": { "alias": "matAutocomplete"; "required": false; }; "position": { "alias": "matAutocompletePosition"; "required": false; }; "connectedTo": { "alias": "matAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "matAutocompleteDisabled"; "required": false; }; }, {}, never, never,
|
|
473
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteTrigger, "input[matAutocomplete], textarea[matAutocomplete]", ["matAutocompleteTrigger"], { "autocomplete": { "alias": "matAutocomplete"; "required": false; }; "position": { "alias": "matAutocompletePosition"; "required": false; }; "connectedTo": { "alias": "matAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "matAutocompleteDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
474
474
|
static ngAcceptInputType_autocompleteDisabled: unknown;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
export { MatOptgroup }
|
|
478
|
+
|
|
479
|
+
export { MatOption }
|
|
480
|
+
|
|
477
481
|
export { }
|
package/badge/_badge-theme.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
|
+
@use 'sass:map';
|
|
2
3
|
@use 'sass:math';
|
|
3
4
|
@use '@angular/cdk';
|
|
4
|
-
|
|
5
5
|
@use '../core/theming/theming';
|
|
6
6
|
@use '../core/theming/inspection';
|
|
7
7
|
@use '../core/typography/typography';
|
|
@@ -164,57 +164,89 @@ $_emit-fallback-vars: true;
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
@mixin base($theme) {
|
|
167
|
+
@mixin base($theme) {
|
|
168
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
169
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
170
|
+
}
|
|
171
|
+
@else {}
|
|
172
|
+
}
|
|
168
173
|
|
|
169
174
|
@mixin color($theme) {
|
|
170
|
-
@
|
|
171
|
-
@include
|
|
172
|
-
tokens-mat-badge.get-color-tokens($theme));
|
|
175
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
176
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
173
177
|
}
|
|
178
|
+
@else {
|
|
179
|
+
@include sass-utils.current-selector-or-root() {
|
|
180
|
+
@include token-utils.create-token-values(tokens-mat-badge.$prefix,
|
|
181
|
+
tokens-mat-badge.get-color-tokens($theme));
|
|
182
|
+
}
|
|
174
183
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
184
|
+
.mat-badge-accent {
|
|
185
|
+
@include token-utils.create-token-values(tokens-mat-badge.$prefix,
|
|
186
|
+
tokens-mat-badge.private-get-color-palette-color-tokens($theme, accent));
|
|
187
|
+
}
|
|
179
188
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
189
|
+
.mat-badge-warn {
|
|
190
|
+
@include token-utils.create-token-values(tokens-mat-badge.$prefix,
|
|
191
|
+
tokens-mat-badge.private-get-color-palette-color-tokens($theme, warn));
|
|
192
|
+
}
|
|
183
193
|
}
|
|
184
194
|
}
|
|
185
195
|
|
|
186
196
|
@mixin typography($theme) {
|
|
187
|
-
@
|
|
188
|
-
@include
|
|
189
|
-
|
|
197
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
198
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
199
|
+
}
|
|
200
|
+
@else {
|
|
201
|
+
@include sass-utils.current-selector-or-root() {
|
|
202
|
+
@include token-utils.create-token-values(tokens-mat-badge.$prefix,
|
|
203
|
+
tokens-mat-badge.get-typography-tokens($theme));
|
|
204
|
+
}
|
|
190
205
|
}
|
|
191
206
|
}
|
|
192
207
|
|
|
193
|
-
@mixin density($theme) {
|
|
208
|
+
@mixin density($theme) {
|
|
209
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
210
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
211
|
+
}
|
|
212
|
+
@else {}
|
|
213
|
+
}
|
|
194
214
|
|
|
195
215
|
@mixin theme($theme) {
|
|
196
216
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-badge') {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
@include _badge-structure;
|
|
200
|
-
|
|
201
|
-
// Only flip the flag if the mixin is included at the top level. Otherwise the first
|
|
202
|
-
// inclusion might be inside of a theme class which will exclude the structural styles
|
|
203
|
-
// from all other themes.
|
|
204
|
-
@if not & {
|
|
205
|
-
$_badge-structure-emitted: true !global;
|
|
206
|
-
}
|
|
217
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
218
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
207
219
|
}
|
|
220
|
+
@else {
|
|
221
|
+
// Try to reduce the number of times that the structural styles are emitted.
|
|
222
|
+
@if not $_badge-structure-emitted {
|
|
223
|
+
@include _badge-structure;
|
|
224
|
+
|
|
225
|
+
// Only flip the flag if the mixin is included at the top level. Otherwise the first
|
|
226
|
+
// inclusion might be inside of a theme class which will exclude the structural styles
|
|
227
|
+
// from all other themes.
|
|
228
|
+
@if not & {
|
|
229
|
+
$_badge-structure-emitted: true !global;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
208
232
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
233
|
+
@include base($theme);
|
|
234
|
+
@if inspection.theme-has($theme, color) {
|
|
235
|
+
@include color($theme);
|
|
236
|
+
}
|
|
237
|
+
@if inspection.theme-has($theme, density) {
|
|
238
|
+
@include density($theme);
|
|
239
|
+
}
|
|
240
|
+
@if inspection.theme-has($theme, typography) {
|
|
241
|
+
@include typography($theme);
|
|
242
|
+
}
|
|
218
243
|
}
|
|
219
244
|
}
|
|
220
245
|
}
|
|
246
|
+
|
|
247
|
+
@mixin _theme-from-tokens($tokens) {
|
|
248
|
+
@if ($tokens != ()) {
|
|
249
|
+
@include token-utils.create-token-values(
|
|
250
|
+
tokens-mat-badge.$prefix, map.get($tokens, tokens-mat-badge.$prefix));
|
|
251
|
+
}
|
|
252
|
+
}
|
package/badge/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AriaDescriber } from '@angular/cdk/a11y';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
5
|
+
import * as i2 from '@angular/material/core';
|
|
6
6
|
import { NgZone } from '@angular/core';
|
|
7
7
|
import { OnDestroy } from '@angular/core';
|
|
8
8
|
import { OnInit } from '@angular/core';
|
|
9
9
|
import { Renderer2 } from '@angular/core';
|
|
10
10
|
import { ThemePalette } from '@angular/material/core';
|
|
11
11
|
|
|
12
|
-
declare namespace
|
|
12
|
+
declare namespace i3 {
|
|
13
13
|
export {
|
|
14
14
|
MatBadgePosition,
|
|
15
15
|
MatBadgeSize,
|
|
@@ -87,7 +87,7 @@ export declare class MatBadge implements OnInit, OnDestroy {
|
|
|
87
87
|
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
88
88
|
private _clearExistingBadges;
|
|
89
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadge, [null, null, null, null, { optional: true; }]>;
|
|
90
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never,
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatBadge, "[matBadge]", never, { "color": { "alias": "matBadgeColor"; "required": false; }; "overlap": { "alias": "matBadgeOverlap"; "required": false; }; "disabled": { "alias": "matBadgeDisabled"; "required": false; }; "position": { "alias": "matBadgePosition"; "required": false; }; "content": { "alias": "matBadge"; "required": false; }; "description": { "alias": "matBadgeDescription"; "required": false; }; "size": { "alias": "matBadgeSize"; "required": false; }; "hidden": { "alias": "matBadgeHidden"; "required": false; }; }, {}, never, never, true, never>;
|
|
91
91
|
static ngAcceptInputType_overlap: unknown;
|
|
92
92
|
static ngAcceptInputType_disabled: unknown;
|
|
93
93
|
static ngAcceptInputType_hidden: unknown;
|
|
@@ -95,7 +95,7 @@ export declare class MatBadge implements OnInit, OnDestroy {
|
|
|
95
95
|
|
|
96
96
|
export declare class MatBadgeModule {
|
|
97
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeModule, never>;
|
|
98
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, [typeof i1.
|
|
98
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof i2.MatCommonModule, typeof i3.MatBadge], [typeof i3.MatBadge, typeof i2.MatCommonModule]>;
|
|
99
99
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatBadgeModule>;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '../core/typography/typography';
|
|
2
3
|
@use '../core/theming/theming';
|
|
3
4
|
@use '../core/theming/inspection';
|
|
@@ -6,39 +7,71 @@
|
|
|
6
7
|
@use '../core/tokens/m2/mat/bottom-sheet' as tokens-mat-bottom-sheet;
|
|
7
8
|
|
|
8
9
|
@mixin base($theme) {
|
|
9
|
-
@
|
|
10
|
-
@include
|
|
11
|
-
|
|
10
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
|
+
}
|
|
13
|
+
@else {
|
|
14
|
+
@include sass-utils.current-selector-or-root() {
|
|
15
|
+
@include token-utils.create-token-values(
|
|
16
|
+
tokens-mat-bottom-sheet.$prefix, tokens-mat-bottom-sheet.get-unthemable-tokens());
|
|
17
|
+
}
|
|
12
18
|
}
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
@mixin color($theme) {
|
|
16
|
-
@
|
|
17
|
-
@include
|
|
18
|
-
|
|
22
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
23
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
24
|
+
}
|
|
25
|
+
@else {
|
|
26
|
+
@include sass-utils.current-selector-or-root() {
|
|
27
|
+
@include token-utils.create-token-values(tokens-mat-bottom-sheet.$prefix,
|
|
28
|
+
tokens-mat-bottom-sheet.get-color-tokens($theme));
|
|
29
|
+
}
|
|
19
30
|
}
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
@mixin typography($theme) {
|
|
23
|
-
@
|
|
24
|
-
@include
|
|
25
|
-
|
|
34
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
35
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
36
|
+
}
|
|
37
|
+
@else {
|
|
38
|
+
@include sass-utils.current-selector-or-root() {
|
|
39
|
+
@include token-utils.create-token-values(tokens-mat-bottom-sheet.$prefix,
|
|
40
|
+
tokens-mat-bottom-sheet.get-typography-tokens($theme));
|
|
41
|
+
}
|
|
26
42
|
}
|
|
27
43
|
}
|
|
28
44
|
|
|
29
|
-
@mixin density($theme) {
|
|
45
|
+
@mixin density($theme) {
|
|
46
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
47
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
48
|
+
}
|
|
49
|
+
@else {}
|
|
50
|
+
}
|
|
30
51
|
|
|
31
52
|
@mixin theme($theme) {
|
|
32
53
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-bottom-sheet') {
|
|
33
|
-
@
|
|
34
|
-
|
|
35
|
-
@include color($theme);
|
|
54
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
55
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
36
56
|
}
|
|
37
|
-
@
|
|
38
|
-
@include
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
@else {
|
|
58
|
+
@include base($theme);
|
|
59
|
+
@if inspection.theme-has($theme, color) {
|
|
60
|
+
@include color($theme);
|
|
61
|
+
}
|
|
62
|
+
@if inspection.theme-has($theme, density) {
|
|
63
|
+
@include density($theme);
|
|
64
|
+
}
|
|
65
|
+
@if inspection.theme-has($theme, typography) {
|
|
66
|
+
@include typography($theme);
|
|
67
|
+
}
|
|
42
68
|
}
|
|
43
69
|
}
|
|
44
70
|
}
|
|
71
|
+
|
|
72
|
+
@mixin _theme-from-tokens($tokens) {
|
|
73
|
+
@if ($tokens != ()) {
|
|
74
|
+
@include token-utils.create-token-values(
|
|
75
|
+
tokens-mat-bottom-sheet.$prefix, map.get($tokens, tokens-mat-bottom-sheet.$prefix));
|
|
76
|
+
}
|
|
77
|
+
}
|
package/bottom-sheet/index.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ import { EventEmitter } from '@angular/core';
|
|
|
13
13
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
14
14
|
import { FocusTrapFactory } from '@angular/cdk/a11y';
|
|
15
15
|
import * as i0 from '@angular/core';
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
16
|
+
import * as i1 from '@angular/cdk/dialog';
|
|
17
|
+
import * as i2 from '@angular/material/core';
|
|
18
|
+
import * as i3 from '@angular/cdk/portal';
|
|
19
19
|
import { InjectionToken } from '@angular/core';
|
|
20
20
|
import { Injector } from '@angular/core';
|
|
21
21
|
import { InteractivityChecker } from '@angular/cdk/a11y';
|
|
@@ -31,7 +31,7 @@ import { ViewContainerRef } from '@angular/core';
|
|
|
31
31
|
/** Options for where to set focus to automatically on dialog open */
|
|
32
32
|
export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
33
33
|
|
|
34
|
-
declare namespace
|
|
34
|
+
declare namespace i4 {
|
|
35
35
|
export {
|
|
36
36
|
MatBottomSheetContainer
|
|
37
37
|
}
|
|
@@ -152,12 +152,12 @@ export declare class MatBottomSheetContainer extends CdkDialogContainer implemen
|
|
|
152
152
|
protected _captureInitialFocus(): void;
|
|
153
153
|
private _toggleClass;
|
|
154
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, [null, null, { optional: true; }, null, null, null, null, null, null, null]>;
|
|
155
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never,
|
|
155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
export declare class MatBottomSheetModule {
|
|
159
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
|
|
160
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, [typeof i1.
|
|
160
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof i2.MatCommonModule, typeof i3.PortalModule, typeof i4.MatBottomSheetContainer], [typeof i4.MatBottomSheetContainer, typeof i2.MatCommonModule]>;
|
|
161
161
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -169,7 +169,10 @@
|
|
|
169
169
|
@include mdc-button.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.mat-mdc-
|
|
172
|
+
.mat-mdc-button,
|
|
173
|
+
.mat-mdc-raised-button,
|
|
174
|
+
.mat-mdc-outlined-button,
|
|
175
|
+
.mat-mdc-unelevated-button {
|
|
173
176
|
line-height: inherit;
|
|
174
177
|
}
|
|
175
178
|
}
|
package/button/_fab-theme.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '@material/fab/fab' as mdc-fab;
|
|
2
3
|
@use '@material/fab/fab-theme' as mdc-fab-theme;
|
|
3
4
|
@use '@material/fab/extended-fab-theme' as mdc-extended-fab-theme;
|
|
4
|
-
|
|
5
5
|
@use '../core/mdc-helpers/mdc-helpers';
|
|
6
6
|
@use '../core/style/sass-utils';
|
|
7
7
|
@use '../core/theming/theming';
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
@use '../core/typography/typography';
|
|
14
14
|
|
|
15
15
|
@mixin base($theme) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
)
|
|
16
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
17
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
18
|
+
}
|
|
19
|
+
@else {
|
|
20
|
+
// Add default values for tokens not related to color, typography, or density.
|
|
21
|
+
@include sass-utils.current-selector-or-root() {
|
|
22
|
+
@include mdc-fab-theme.theme(tokens-mdc-fab.get-unthemable-tokens());
|
|
23
|
+
@include mdc-extended-fab-theme.theme(
|
|
24
|
+
tokens-mdc-extended-fab.get-unthemable-tokens()
|
|
25
|
+
);
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
|
|
@@ -38,51 +43,79 @@
|
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
@mixin color($theme) {
|
|
41
|
-
@
|
|
42
|
-
@include
|
|
46
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
47
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
48
|
+
}
|
|
49
|
+
@else {
|
|
50
|
+
@include sass-utils.current-selector-or-root() {
|
|
51
|
+
@include _fab-variant($theme, null);
|
|
43
52
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
.mat-mdc-fab,
|
|
54
|
+
.mat-mdc-mini-fab {
|
|
55
|
+
&.mat-primary {
|
|
56
|
+
@include _fab-variant($theme, primary);
|
|
57
|
+
}
|
|
49
58
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
59
|
+
&.mat-accent {
|
|
60
|
+
@include _fab-variant($theme, accent);
|
|
61
|
+
}
|
|
53
62
|
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
&.mat-warn {
|
|
64
|
+
@include _fab-variant($theme, warn);
|
|
65
|
+
}
|
|
56
66
|
}
|
|
57
67
|
}
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
70
|
|
|
61
71
|
@mixin typography($theme) {
|
|
62
|
-
@
|
|
63
|
-
@include
|
|
72
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
73
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
64
74
|
}
|
|
75
|
+
@else {
|
|
76
|
+
@include mdc-helpers.using-mdc-typography($theme) {
|
|
77
|
+
@include mdc-fab.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
|
|
78
|
+
}
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
$typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($theme);
|
|
81
|
+
@include sass-utils.current-selector-or-root() {
|
|
82
|
+
@include mdc-extended-fab-theme.theme($typography-tokens);
|
|
83
|
+
}
|
|
69
84
|
}
|
|
70
85
|
}
|
|
71
86
|
|
|
72
87
|
@mixin density($theme) {
|
|
88
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
89
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
90
|
+
}
|
|
91
|
+
@else {}
|
|
73
92
|
}
|
|
74
93
|
|
|
75
94
|
@mixin theme($theme) {
|
|
76
95
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-fab') {
|
|
77
|
-
@
|
|
78
|
-
|
|
79
|
-
@include color($theme);
|
|
80
|
-
}
|
|
81
|
-
@if inspection.theme-has($theme, density) {
|
|
82
|
-
@include density($theme);
|
|
96
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
97
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
83
98
|
}
|
|
84
|
-
@
|
|
85
|
-
@include
|
|
99
|
+
@else {
|
|
100
|
+
@include base($theme);
|
|
101
|
+
@if inspection.theme-has($theme, color) {
|
|
102
|
+
@include color($theme);
|
|
103
|
+
}
|
|
104
|
+
@if inspection.theme-has($theme, density) {
|
|
105
|
+
@include density($theme);
|
|
106
|
+
}
|
|
107
|
+
@if inspection.theme-has($theme, typography) {
|
|
108
|
+
@include typography($theme);
|
|
109
|
+
}
|
|
86
110
|
}
|
|
87
111
|
}
|
|
88
112
|
}
|
|
113
|
+
|
|
114
|
+
@mixin _theme-from-tokens($tokens) {
|
|
115
|
+
@if ($tokens != ()) {
|
|
116
|
+
@include mdc-extended-fab-theme.theme(map.get($tokens, tokens-mdc-extended-fab.$prefix));
|
|
117
|
+
@include mdc-fab-theme.theme(map.get($tokens, tokens-mdc-fab.$prefix));
|
|
118
|
+
@include token-utils.create-token-values(
|
|
119
|
+
tokens-mat-fab.$prefix, map.get($tokens, tokens-mat-fab.$prefix));
|
|
120
|
+
}
|
|
121
|
+
}
|