@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,9 +1,9 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use 'sass:math';
|
|
2
3
|
@use '@material/density/functions' as mdc-density-functions;
|
|
3
4
|
@use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
|
|
4
5
|
@use '../core/tokens/m2/mdc/icon-button' as tokens-mdc-icon-button;
|
|
5
6
|
@use '../core/tokens/m2/mat/icon-button' as tokens-mat-icon-button;
|
|
6
|
-
|
|
7
7
|
@use '../core/style/sass-utils';
|
|
8
8
|
@use './button-base';
|
|
9
9
|
@use '../core/tokens/token-utils';
|
|
@@ -12,9 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@mixin base($theme) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
16
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
17
|
+
}
|
|
18
|
+
@else {
|
|
19
|
+
// Add default values for tokens not related to color, typography, or density.
|
|
20
|
+
@include sass-utils.current-selector-or-root() {
|
|
21
|
+
@include mdc-icon-button-theme.theme(tokens-mdc-icon-button.get-unthemable-tokens());
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
|
|
@@ -34,74 +39,102 @@
|
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
@mixin color($theme) {
|
|
37
|
-
.
|
|
38
|
-
@include
|
|
42
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
43
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
44
|
+
}
|
|
45
|
+
@else {
|
|
46
|
+
.mat-mdc-icon-button {
|
|
47
|
+
@include _icon-button-variant($theme, null);
|
|
39
48
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
&.mat-primary {
|
|
50
|
+
@include _icon-button-variant($theme, primary);
|
|
51
|
+
}
|
|
43
52
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
&.mat-accent {
|
|
54
|
+
@include _icon-button-variant($theme, accent);
|
|
55
|
+
}
|
|
47
56
|
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
&.mat-warn {
|
|
58
|
+
@include _icon-button-variant($theme, warn);
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
}
|
|
52
62
|
}
|
|
53
63
|
|
|
54
|
-
@mixin typography($theme) {
|
|
64
|
+
@mixin typography($theme) {
|
|
65
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
66
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
67
|
+
}
|
|
68
|
+
@else {}
|
|
69
|
+
}
|
|
55
70
|
|
|
56
71
|
@mixin density($theme) {
|
|
57
|
-
$
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
$density-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
72
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
73
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
74
|
+
}
|
|
75
|
+
@else {
|
|
76
|
+
$icon-size: 24px;
|
|
77
|
+
$density-scale: inspection.get-theme-density($theme);
|
|
78
|
+
// Manually apply the expected density theming, and include the padding
|
|
79
|
+
// as it was applied before
|
|
80
|
+
$calculated-size: mdc-density-functions.prop-value(
|
|
81
|
+
$density-config: (
|
|
82
|
+
size: (
|
|
83
|
+
default: 48px,
|
|
84
|
+
maximum: 48px,
|
|
85
|
+
minimum: 28px,
|
|
86
|
+
),
|
|
67
87
|
),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
$density-scale: $density-scale,
|
|
89
|
+
$property-name: size,
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
// Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
|
|
93
|
+
.mat-mdc-icon-button.mat-mdc-button-base {
|
|
94
|
+
// Match the styles that used to be present. This is necessary for backwards
|
|
95
|
+
// compat to match the previous implementations selector count (two classes).
|
|
96
|
+
@include mdc-icon-button-theme.theme((
|
|
97
|
+
state-layer-size: $calculated-size,
|
|
98
|
+
));
|
|
99
|
+
|
|
100
|
+
// TODO: Switch calculated-size to "var(--mdc-icon-button-state-layer-size)"
|
|
101
|
+
// Currently fails validation because the variable is "undefined"
|
|
102
|
+
// in the sass stack.
|
|
103
|
+
// TODO: Switch icon-size to "var(--mdc-icon-button-icon-size)". Currently
|
|
104
|
+
// fails validation because the variable is "undefined" in the sass stack.
|
|
105
|
+
width: var(--mdc-icon-button-state-layer-size);
|
|
106
|
+
height: var(--mdc-icon-button-state-layer-size);
|
|
107
|
+
padding: math.div($calculated-size - $icon-size, 2);
|
|
108
|
+
|
|
109
|
+
@include button-base.mat-private-button-touch-target-density($density-scale);
|
|
110
|
+
}
|
|
91
111
|
}
|
|
92
112
|
}
|
|
93
113
|
|
|
94
114
|
@mixin theme($theme) {
|
|
95
115
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-icon-button') {
|
|
96
|
-
@
|
|
97
|
-
|
|
98
|
-
@include color($theme);
|
|
116
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
117
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
99
118
|
}
|
|
100
|
-
@
|
|
101
|
-
@include
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
119
|
+
@else {
|
|
120
|
+
@include base($theme);
|
|
121
|
+
@if inspection.theme-has($theme, color) {
|
|
122
|
+
@include color($theme);
|
|
123
|
+
}
|
|
124
|
+
@if inspection.theme-has($theme, density) {
|
|
125
|
+
@include density($theme);
|
|
126
|
+
}
|
|
127
|
+
@if inspection.theme-has($theme, typography) {
|
|
128
|
+
@include typography($theme);
|
|
129
|
+
}
|
|
105
130
|
}
|
|
106
131
|
}
|
|
107
132
|
}
|
|
133
|
+
|
|
134
|
+
@mixin _theme-from-tokens($tokens) {
|
|
135
|
+
@if ($tokens != ()) {
|
|
136
|
+
@include mdc-icon-button-theme.theme(map.get($tokens, tokens-mdc-icon-button.$prefix));
|
|
137
|
+
@include token-utils.create-token-values(
|
|
138
|
+
tokens-mat-icon-button.$prefix, map.get($tokens, tokens-mat-icon-button.$prefix));
|
|
139
|
+
}
|
|
140
|
+
}
|
package/button/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i1 from '@angular/material/core';
|
|
6
6
|
import { InjectionToken } from '@angular/core';
|
|
7
7
|
import { MatRipple } from '@angular/material/core';
|
|
8
8
|
import { MatRippleLoader } from '@angular/material/core';
|
|
@@ -12,21 +12,21 @@ import { OnInit } from '@angular/core';
|
|
|
12
12
|
import { Platform } from '@angular/cdk/platform';
|
|
13
13
|
import { ThemePalette } from '@angular/material/core';
|
|
14
14
|
|
|
15
|
-
declare namespace
|
|
15
|
+
declare namespace i2 {
|
|
16
16
|
export {
|
|
17
17
|
MatButton,
|
|
18
18
|
MatAnchor
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
declare namespace
|
|
22
|
+
declare namespace i3 {
|
|
23
23
|
export {
|
|
24
24
|
MatIconButton,
|
|
25
25
|
MatIconAnchor
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare namespace
|
|
29
|
+
declare namespace i4 {
|
|
30
30
|
export {
|
|
31
31
|
MAT_FAB_DEFAULT_OPTIONS_FACTORY,
|
|
32
32
|
MatFabDefaultOptions,
|
|
@@ -57,7 +57,7 @@ export declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
|
|
|
57
57
|
export declare class MatAnchor extends MatAnchorBase {
|
|
58
58
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, [null, null, null, { optional: true; }]>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -86,7 +86,7 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
|
|
|
86
86
|
export declare class MatButton extends MatButtonBase {
|
|
87
87
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, [null, null, null, { optional: true; }]>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/** Base class for all buttons. */
|
|
@@ -133,7 +133,7 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
|
|
|
133
133
|
|
|
134
134
|
export declare class MatButtonModule {
|
|
135
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
|
|
136
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, [typeof i1.
|
|
136
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i3.MatIconButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton], [typeof i2.MatAnchor, typeof i2.MatButton, typeof i3.MatIconAnchor, typeof i3.MatIconButton, typeof i4.MatMiniFabAnchor, typeof i4.MatMiniFabButton, typeof i4.MatFabAnchor, typeof i4.MatFabButton, typeof i1.MatCommonModule]>;
|
|
137
137
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonModule>;
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -150,7 +150,7 @@ export declare class MatFabAnchor extends MatAnchor {
|
|
|
150
150
|
extended: boolean;
|
|
151
151
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
|
|
152
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
153
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
154
154
|
static ngAcceptInputType_extended: unknown;
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -167,7 +167,7 @@ export declare class MatFabButton extends MatButtonBase {
|
|
|
167
167
|
extended: boolean;
|
|
168
168
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
|
|
169
169
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
171
171
|
static ngAcceptInputType_extended: unknown;
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -184,7 +184,7 @@ export declare interface MatFabDefaultOptions {
|
|
|
184
184
|
export declare class MatIconAnchor extends MatAnchorBase {
|
|
185
185
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
186
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
|
|
187
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
/**
|
|
@@ -195,7 +195,7 @@ export declare class MatIconAnchor extends MatAnchorBase {
|
|
|
195
195
|
export declare class MatIconButton extends MatButtonBase {
|
|
196
196
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
197
197
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
|
|
198
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"],
|
|
198
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], true, never>;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
@@ -208,7 +208,7 @@ export declare class MatMiniFabAnchor extends MatAnchor {
|
|
|
208
208
|
_isFab: boolean;
|
|
209
209
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
|
|
210
210
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
211
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
211
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/**
|
|
@@ -221,7 +221,7 @@ export declare class MatMiniFabButton extends MatButtonBase {
|
|
|
221
221
|
_isFab: boolean;
|
|
222
222
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
|
|
223
223
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
224
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],
|
|
224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
export { }
|
|
@@ -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';
|
|
@@ -7,56 +8,89 @@
|
|
|
7
8
|
@use '../core/style/sass-utils';
|
|
8
9
|
|
|
9
10
|
@mixin base($theme) {
|
|
10
|
-
@
|
|
11
|
-
@include
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
12
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
13
|
+
}
|
|
14
|
+
@else {
|
|
15
|
+
@include sass-utils.current-selector-or-root() {
|
|
16
|
+
@include token-utils.create-token-values(
|
|
17
|
+
tokens-mat-legacy-button-toggle.$prefix,
|
|
18
|
+
tokens-mat-legacy-button-toggle.get-unthemable-tokens()
|
|
19
|
+
);
|
|
20
|
+
@include token-utils.create-token-values(
|
|
21
|
+
tokens-mat-standard-button-toggle.$prefix,
|
|
22
|
+
tokens-mat-standard-button-toggle.get-unthemable-tokens()
|
|
23
|
+
);
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
@mixin color($theme) {
|
|
23
|
-
@
|
|
24
|
-
@include
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
30
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
31
|
+
}
|
|
32
|
+
@else {
|
|
33
|
+
@include sass-utils.current-selector-or-root() {
|
|
34
|
+
@include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
|
|
35
|
+
tokens-mat-legacy-button-toggle.get-color-tokens($theme));
|
|
36
|
+
@include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
|
|
37
|
+
tokens-mat-standard-button-toggle.get-color-tokens($theme));
|
|
38
|
+
}
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
@mixin typography($theme) {
|
|
32
|
-
@
|
|
33
|
-
@include
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
44
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
45
|
+
}
|
|
46
|
+
@else {
|
|
47
|
+
@include sass-utils.current-selector-or-root() {
|
|
48
|
+
@include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
|
|
49
|
+
tokens-mat-legacy-button-toggle.get-typography-tokens($theme));
|
|
50
|
+
@include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
|
|
51
|
+
tokens-mat-standard-button-toggle.get-typography-tokens($theme));
|
|
52
|
+
}
|
|
37
53
|
}
|
|
38
54
|
}
|
|
39
55
|
|
|
40
56
|
@mixin density($theme) {
|
|
41
|
-
@
|
|
42
|
-
@include
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
58
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
59
|
+
}
|
|
60
|
+
@else {
|
|
61
|
+
@include sass-utils.current-selector-or-root() {
|
|
62
|
+
@include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
|
|
63
|
+
tokens-mat-legacy-button-toggle.get-density-tokens($theme));
|
|
64
|
+
@include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
|
|
65
|
+
tokens-mat-standard-button-toggle.get-density-tokens($theme));
|
|
66
|
+
}
|
|
46
67
|
}
|
|
47
68
|
}
|
|
48
69
|
|
|
49
70
|
@mixin theme($theme) {
|
|
50
71
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-button-toggle') {
|
|
51
|
-
@
|
|
52
|
-
|
|
53
|
-
@include color($theme);
|
|
72
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
73
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
54
74
|
}
|
|
55
|
-
@
|
|
56
|
-
@include
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
75
|
+
@else {
|
|
76
|
+
@include base($theme);
|
|
77
|
+
@if inspection.theme-has($theme, color) {
|
|
78
|
+
@include color($theme);
|
|
79
|
+
}
|
|
80
|
+
@if inspection.theme-has($theme, density) {
|
|
81
|
+
@include density($theme);
|
|
82
|
+
}
|
|
83
|
+
@if inspection.theme-has($theme, typography) {
|
|
84
|
+
@include typography($theme);
|
|
85
|
+
}
|
|
60
86
|
}
|
|
61
87
|
}
|
|
62
88
|
}
|
|
89
|
+
|
|
90
|
+
@mixin _theme-from-tokens($tokens) {
|
|
91
|
+
@if ($tokens != ()) {
|
|
92
|
+
@include token-utils.create-token-values(
|
|
93
|
+
tokens-mat-standard-button-toggle.$prefix,
|
|
94
|
+
map.get($tokens, tokens-mat-standard-button-toggle.$prefix));
|
|
95
|
+
}
|
|
96
|
+
}
|
package/button-toggle/index.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ import { ElementRef } from '@angular/core';
|
|
|
6
6
|
import { EventEmitter } from '@angular/core';
|
|
7
7
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i1 from '@angular/material/core';
|
|
10
10
|
import { InjectionToken } from '@angular/core';
|
|
11
11
|
import { OnDestroy } from '@angular/core';
|
|
12
12
|
import { OnInit } from '@angular/core';
|
|
13
13
|
import { QueryList } from '@angular/core';
|
|
14
14
|
|
|
15
|
-
declare namespace
|
|
15
|
+
declare namespace i2 {
|
|
16
16
|
export {
|
|
17
17
|
ToggleType,
|
|
18
18
|
MatButtonToggleAppearance,
|
|
@@ -109,7 +109,7 @@ export declare class MatButtonToggle implements OnInit, AfterViewInit, OnDestroy
|
|
|
109
109
|
/** Whether the toggle is in single selection mode. */
|
|
110
110
|
private _isSingleSelector;
|
|
111
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggle, [{ optional: true; }, null, null, null, { attribute: "tabindex"; }, { optional: true; }]>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"],
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
113
113
|
static ngAcceptInputType_disableRipple: unknown;
|
|
114
114
|
static ngAcceptInputType_checked: unknown;
|
|
115
115
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -228,7 +228,7 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
|
|
|
228
228
|
/** Marks all of the child button toggles to be checked. */
|
|
229
229
|
private _markButtonsForCheck;
|
|
230
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleGroup, [null, { optional: true; }]>;
|
|
231
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleGroup, "mat-button-toggle-group", ["matButtonToggleGroup"], { "appearance": { "alias": "appearance"; "required": false; }; "name": { "alias": "name"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["_buttonToggles"], never,
|
|
231
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleGroup, "mat-button-toggle-group", ["matButtonToggleGroup"], { "appearance": { "alias": "appearance"; "required": false; }; "name": { "alias": "name"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["_buttonToggles"], never, true, never>;
|
|
232
232
|
static ngAcceptInputType_vertical: unknown;
|
|
233
233
|
static ngAcceptInputType_multiple: unknown;
|
|
234
234
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -236,7 +236,7 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
|
|
|
236
236
|
|
|
237
237
|
export declare class MatButtonToggleModule {
|
|
238
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleModule, never>;
|
|
239
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonToggleModule, [typeof i1.
|
|
239
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonToggleModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatButtonToggleGroup, typeof i2.MatButtonToggle], [typeof i1.MatCommonModule, typeof i2.MatButtonToggleGroup, typeof i2.MatButtonToggle]>;
|
|
240
240
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatButtonToggleModule>;
|
|
241
241
|
}
|
|
242
242
|
|
package/card/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as i1 from '@angular/material/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
4
|
import { InjectionToken } from '@angular/core';
|
|
5
5
|
|
|
6
|
-
declare namespace
|
|
6
|
+
declare namespace i3 {
|
|
7
7
|
export {
|
|
8
8
|
MatCardAppearance,
|
|
9
9
|
MatCardConfig,
|
|
@@ -38,7 +38,7 @@ export declare class MatCard {
|
|
|
38
38
|
appearance: MatCardAppearance;
|
|
39
39
|
constructor(config?: MatCardConfig);
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCard, [{ optional: true; }]>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"],
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class MatCardActions {
|
|
|
52
52
|
/** Position of the actions inside the card. */
|
|
53
53
|
align: 'start' | 'end';
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never,
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export declare type MatCardAppearance = 'outlined' | 'raised';
|
|
@@ -68,7 +68,7 @@ export declare type MatCardAppearance = 'outlined' | 'raised';
|
|
|
68
68
|
*/
|
|
69
69
|
export declare class MatCardAvatar {
|
|
70
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardAvatar, never>;
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never,
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, true, never>;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/** Object that can be used to configure the default options for the card module. */
|
|
@@ -86,7 +86,7 @@ export declare interface MatCardConfig {
|
|
|
86
86
|
*/
|
|
87
87
|
export declare class MatCardContent {
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardContent, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never,
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, true, never>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -98,7 +98,7 @@ export declare class MatCardContent {
|
|
|
98
98
|
*/
|
|
99
99
|
export declare class MatCardFooter {
|
|
100
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardFooter, never>;
|
|
101
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never,
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, true, never>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -111,7 +111,7 @@ export declare class MatCardFooter {
|
|
|
111
111
|
*/
|
|
112
112
|
export declare class MatCardHeader {
|
|
113
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardHeader, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"],
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], true, never>;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/**
|
|
@@ -125,31 +125,31 @@ export declare class MatCardHeader {
|
|
|
125
125
|
*/
|
|
126
126
|
export declare class MatCardImage {
|
|
127
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardImage, never>;
|
|
128
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never,
|
|
128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, true, never>;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/** Same as `MatCardImage`, but large. */
|
|
132
132
|
export declare class MatCardLgImage {
|
|
133
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardLgImage, never>;
|
|
134
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never,
|
|
134
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, true, never>;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/** Same as `MatCardImage`, but medium. */
|
|
138
138
|
export declare class MatCardMdImage {
|
|
139
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardMdImage, never>;
|
|
140
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never,
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, true, never>;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export declare class MatCardModule {
|
|
144
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardModule, never>;
|
|
145
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, [typeof i1.MatCard, typeof
|
|
145
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, never, [typeof i1.MatCommonModule, typeof i2.CommonModule, typeof i3.MatCard, typeof i3.MatCardActions, typeof i3.MatCardAvatar, typeof i3.MatCardContent, typeof i3.MatCardFooter, typeof i3.MatCardHeader, typeof i3.MatCardImage, typeof i3.MatCardLgImage, typeof i3.MatCardMdImage, typeof i3.MatCardSmImage, typeof i3.MatCardSubtitle, typeof i3.MatCardTitle, typeof i3.MatCardTitleGroup, typeof i3.MatCardXlImage], [typeof i3.MatCard, typeof i3.MatCardActions, typeof i3.MatCardAvatar, typeof i3.MatCardContent, typeof i3.MatCardFooter, typeof i3.MatCardHeader, typeof i3.MatCardImage, typeof i3.MatCardLgImage, typeof i3.MatCardMdImage, typeof i3.MatCardSmImage, typeof i3.MatCardSubtitle, typeof i3.MatCardTitle, typeof i3.MatCardTitleGroup, typeof i3.MatCardXlImage, typeof i1.MatCommonModule]>;
|
|
146
146
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/** Same as `MatCardImage`, but small. */
|
|
150
150
|
export declare class MatCardSmImage {
|
|
151
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSmImage, never>;
|
|
152
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never,
|
|
152
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, true, never>;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
@@ -161,7 +161,7 @@ export declare class MatCardSmImage {
|
|
|
161
161
|
*/
|
|
162
162
|
export declare class MatCardSubtitle {
|
|
163
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
|
|
164
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never,
|
|
164
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, true, never>;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
/**
|
|
@@ -172,7 +172,7 @@ export declare class MatCardSubtitle {
|
|
|
172
172
|
*/
|
|
173
173
|
export declare class MatCardTitle {
|
|
174
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
|
|
175
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never,
|
|
175
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, true, never>;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/**
|
|
@@ -182,13 +182,13 @@ export declare class MatCardTitle {
|
|
|
182
182
|
*/
|
|
183
183
|
export declare class MatCardTitleGroup {
|
|
184
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitleGroup, never>;
|
|
185
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"],
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], true, never>;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
/** Same as `MatCardImage`, but extra-large. */
|
|
189
189
|
export declare class MatCardXlImage {
|
|
190
190
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardXlImage, never>;
|
|
191
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never,
|
|
191
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, true, never>;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
export { }
|