@angular/material 17.0.2 → 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/index.d.ts +14 -10
- package/badge/index.d.ts +5 -5
- package/bottom-sheet/index.d.ts +6 -6
- package/button/_fab-theme.scss +65 -32
- package/button/_icon-button-theme.scss +91 -54
- package/button/index.d.ts +13 -13
- package/button-toggle/index.d.ts +5 -5
- package/card/index.d.ts +18 -18
- package/card/testing/index.d.ts +1 -1
- package/checkbox/index.d.ts +7 -7
- package/chips/index.d.ts +103 -126
- package/core/index.d.ts +51 -32
- package/core/tokens/m2/_index.scss +10 -0
- package/datepicker/index.d.ts +109 -109
- package/datepicker/testing/index.d.ts +1 -1
- package/dialog/index.d.ts +1 -1
- package/dialog/testing/index.d.ts +1 -1
- package/divider/index.d.ts +4 -4
- package/esm2022/autocomplete/autocomplete-origin.mjs +3 -2
- package/esm2022/autocomplete/autocomplete-trigger.mjs +11 -4
- package/esm2022/autocomplete/autocomplete.mjs +4 -4
- package/esm2022/autocomplete/module.mjs +21 -5
- package/esm2022/autocomplete/public-api.mjs +3 -1
- package/esm2022/badge/badge-module.mjs +3 -4
- package/esm2022/badge/badge.mjs +3 -2
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +6 -5
- package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -4
- package/esm2022/button/button.mjs +5 -5
- package/esm2022/button/fab.mjs +9 -9
- package/esm2022/button/icon-button.mjs +5 -5
- package/esm2022/button/module.mjs +14 -10
- package/esm2022/button-toggle/button-toggle-module.mjs +3 -4
- package/esm2022/button-toggle/button-toggle.mjs +6 -5
- package/esm2022/card/card.mjs +29 -18
- package/esm2022/card/module.mjs +4 -5
- package/esm2022/card/testing/card-harness.mjs +9 -1
- package/esm2022/checkbox/checkbox-required-validator.mjs +4 -2
- package/esm2022/checkbox/checkbox.mjs +31 -17
- package/esm2022/checkbox/module.mjs +5 -6
- package/esm2022/chips/chip-action.mjs +15 -13
- package/esm2022/chips/chip-edit-input.mjs +3 -2
- package/esm2022/chips/chip-grid.mjs +41 -40
- package/esm2022/chips/chip-icons.mjs +7 -4
- package/esm2022/chips/chip-input.mjs +15 -17
- package/esm2022/chips/chip-listbox.mjs +20 -23
- package/esm2022/chips/chip-option.mjs +13 -12
- package/esm2022/chips/chip-row.mjs +6 -7
- package/esm2022/chips/chip-set.mjs +20 -19
- package/esm2022/chips/chip.mjs +50 -44
- package/esm2022/chips/module.mjs +4 -5
- package/esm2022/chips/tokens.mjs +8 -2
- package/esm2022/core/common-behaviors/error-state.mjs +50 -11
- package/esm2022/core/common-behaviors/index.mjs +2 -2
- package/esm2022/core/line/line.mjs +5 -5
- package/esm2022/core/option/index.mjs +3 -4
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +7 -7
- package/esm2022/core/ripple/index.mjs +3 -4
- package/esm2022/core/ripple/ripple-ref.mjs +10 -2
- package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
- package/esm2022/core/ripple/ripple.mjs +3 -2
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +3 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +4 -4
- package/esm2022/datepicker/calendar.mjs +8 -12
- package/esm2022/datepicker/date-range-input-parts.mjs +35 -14
- package/esm2022/datepicker/date-range-input.mjs +13 -13
- package/esm2022/datepicker/date-range-picker.mjs +3 -2
- package/esm2022/datepicker/datepicker-actions.mjs +7 -5
- package/esm2022/datepicker/datepicker-base.mjs +57 -62
- package/esm2022/datepicker/datepicker-input-base.mjs +8 -7
- package/esm2022/datepicker/datepicker-input.mjs +3 -2
- package/esm2022/datepicker/datepicker-module.mjs +15 -13
- package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
- package/esm2022/datepicker/datepicker.mjs +3 -2
- package/esm2022/datepicker/month-view.mjs +3 -4
- package/esm2022/datepicker/multi-year-view.mjs +3 -4
- package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
- package/esm2022/datepicker/year-view.mjs +3 -4
- package/esm2022/dialog/dialog-container.mjs +5 -6
- package/esm2022/dialog/dialog-ref.mjs +10 -4
- package/esm2022/dialog/module.mjs +2 -2
- package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
- package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
- package/esm2022/dialog/testing/public-api.mjs +2 -2
- package/esm2022/divider/divider-module.mjs +3 -4
- package/esm2022/divider/divider.mjs +3 -3
- package/esm2022/expansion/accordion.mjs +8 -13
- package/esm2022/expansion/expansion-module.mjs +14 -7
- package/esm2022/expansion/expansion-panel-content.mjs +3 -2
- package/esm2022/expansion/expansion-panel-header.mjs +18 -16
- package/esm2022/expansion/expansion-panel.mjs +11 -11
- package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
- package/esm2022/form-field/directives/error.mjs +3 -2
- package/esm2022/form-field/directives/floating-label.mjs +3 -2
- package/esm2022/form-field/directives/hint.mjs +3 -2
- package/esm2022/form-field/directives/label.mjs +3 -2
- package/esm2022/form-field/directives/line-ripple.mjs +3 -2
- package/esm2022/form-field/directives/notched-outline.mjs +3 -3
- package/esm2022/form-field/directives/prefix.mjs +3 -2
- package/esm2022/form-field/directives/suffix.mjs +3 -2
- package/esm2022/form-field/form-field.mjs +12 -11
- package/esm2022/form-field/module.mjs +14 -16
- package/esm2022/grid-list/grid-list-module.mjs +13 -9
- package/esm2022/grid-list/grid-list.mjs +3 -3
- package/esm2022/grid-list/grid-tile.mjs +11 -8
- package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
- package/esm2022/grid-list/tile-coordinator.mjs +1 -1
- package/esm2022/icon/icon-module.mjs +3 -4
- package/esm2022/icon/icon.mjs +25 -29
- package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
- package/esm2022/icon/testing/icon-harness.mjs +4 -3
- package/esm2022/input/input.mjs +26 -28
- package/esm2022/input/module.mjs +3 -4
- package/esm2022/input/public-api.mjs +3 -1
- package/esm2022/list/action-list.mjs +3 -3
- package/esm2022/list/list-base.mjs +5 -3
- package/esm2022/list/list-item-sections.mjs +13 -7
- package/esm2022/list/list-module.mjs +12 -13
- package/esm2022/list/list-option.mjs +6 -6
- package/esm2022/list/list.mjs +6 -6
- package/esm2022/list/nav-list.mjs +3 -3
- package/esm2022/list/selection-list.mjs +3 -3
- package/esm2022/list/subheader.mjs +3 -2
- package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
- package/esm2022/list/testing/public-api.mjs +2 -2
- package/esm2022/menu/menu-content.mjs +3 -2
- package/esm2022/menu/menu-item.mjs +4 -4
- package/esm2022/menu/menu-trigger.mjs +10 -3
- package/esm2022/menu/menu.mjs +4 -4
- package/esm2022/menu/module.mjs +23 -5
- package/esm2022/paginator/module.mjs +4 -5
- package/esm2022/paginator/paginator.mjs +37 -41
- package/esm2022/progress-bar/module.mjs +3 -3
- package/esm2022/progress-bar/progress-bar.mjs +25 -20
- package/esm2022/progress-spinner/module.mjs +3 -4
- package/esm2022/progress-spinner/progress-spinner.mjs +35 -34
- package/esm2022/radio/module.mjs +3 -4
- package/esm2022/radio/radio.mjs +42 -35
- package/esm2022/select/module.mjs +19 -5
- package/esm2022/select/public-api.mjs +5 -1
- package/esm2022/select/select.mjs +83 -66
- package/esm2022/sidenav/drawer.mjs +7 -6
- package/esm2022/sidenav/sidenav-module.mjs +12 -8
- package/esm2022/sidenav/sidenav.mjs +7 -6
- package/esm2022/slide-toggle/module.mjs +15 -7
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -2
- package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
- package/esm2022/slider/module.mjs +17 -5
- package/esm2022/slider/slider-input.mjs +26 -23
- package/esm2022/slider/slider-interface.mjs +16 -1
- package/esm2022/slider/slider-thumb.mjs +8 -9
- package/esm2022/slider/slider.mjs +74 -73
- package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
- package/esm2022/slider/testing/slider-harness.mjs +4 -3
- package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
- package/esm2022/snack-bar/module.mjs +2 -2
- package/esm2022/snack-bar/simple-snack-bar.mjs +4 -6
- package/esm2022/snack-bar/snack-bar-container.mjs +5 -6
- package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
- package/esm2022/sort/sort-header.mjs +17 -25
- package/esm2022/sort/sort-module.mjs +3 -4
- package/esm2022/sort/sort.mjs +13 -19
- package/esm2022/stepper/step-content.mjs +3 -2
- package/esm2022/stepper/step-header.mjs +11 -16
- package/esm2022/stepper/step-label.mjs +3 -2
- package/esm2022/stepper/stepper-button.mjs +5 -3
- package/esm2022/stepper/stepper-icon.mjs +3 -2
- package/esm2022/stepper/stepper-module.mjs +14 -13
- package/esm2022/stepper/stepper.mjs +11 -13
- package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
- package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
- package/esm2022/table/cell.mjs +15 -8
- package/esm2022/table/module.mjs +4 -5
- package/esm2022/table/row.mjs +19 -10
- package/esm2022/table/table.mjs +7 -7
- package/esm2022/table/text-column.mjs +6 -4
- package/esm2022/tabs/module.mjs +8 -41
- package/esm2022/tabs/paginated-tab-header.mjs +12 -18
- package/esm2022/tabs/tab-body.mjs +6 -4
- package/esm2022/tabs/tab-content.mjs +3 -2
- package/esm2022/tabs/tab-group.mjs +69 -78
- package/esm2022/tabs/tab-header.mjs +10 -16
- package/esm2022/tabs/tab-label-wrapper.mjs +13 -8
- package/esm2022/tabs/tab-label.mjs +3 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +51 -45
- package/esm2022/tabs/tab.mjs +12 -12
- package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
- package/esm2022/toolbar/toolbar-module.mjs +3 -4
- package/esm2022/toolbar/toolbar.mjs +14 -18
- package/esm2022/tooltip/module.mjs +3 -4
- package/esm2022/tooltip/tooltip.mjs +14 -8
- package/esm2022/tree/node.mjs +24 -21
- package/esm2022/tree/outlet.mjs +3 -2
- package/esm2022/tree/padding.mjs +12 -4
- package/esm2022/tree/toggle.mjs +3 -2
- package/esm2022/tree/tree-module.mjs +4 -5
- package/esm2022/tree/tree.mjs +3 -4
- package/expansion/_expansion-theme.scss +56 -22
- package/expansion/index.d.ts +25 -33
- package/expansion/testing/index.d.ts +1 -1
- package/fesm2022/autocomplete.mjs +39 -15
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +4 -4
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +21 -22
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +7 -8
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +29 -25
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs +9 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +31 -21
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +38 -23
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +179 -156
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +87 -42
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs +11 -4
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +183 -156
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +13 -6
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +15 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +4 -5
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs +14 -6
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +51 -44
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +38 -25
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +9 -3
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +24 -17
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +10 -3
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +27 -31
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +28 -30
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +18 -6
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +44 -38
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +42 -18
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +39 -47
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +27 -21
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +37 -37
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +43 -37
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +102 -70
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +23 -17
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +19 -11
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs +11 -4
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +133 -102
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +13 -15
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +29 -42
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs +10 -3
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +42 -43
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +44 -26
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +594 -621
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs +7 -2
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +16 -20
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +36 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +33 -45
- package/grid-list/index.d.ts +10 -10
- package/grid-list/testing/index.d.ts +1 -1
- package/icon/index.d.ts +14 -20
- package/icon/testing/index.d.ts +1 -1
- package/input/index.d.ts +33 -32
- package/list/index.d.ts +36 -36
- package/list/testing/index.d.ts +2 -2
- package/menu/index.d.ts +12 -12
- package/package.json +7 -7
- package/paginator/index.d.ts +21 -22
- 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 +14 -17
- package/progress-spinner/index.d.ts +18 -19
- package/radio/index.d.ts +25 -27
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +11 -4
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
- package/select/index.d.ts +66 -49
- package/sidenav/index.d.ts +11 -11
- package/slide-toggle/index.d.ts +6 -6
- package/slider/index.d.ts +38 -38
- package/slider/testing/index.d.ts +1 -1
- package/sort/index.d.ts +19 -24
- package/stepper/index.d.ts +33 -43
- package/stepper/testing/index.d.ts +1 -1
- package/table/index.d.ts +24 -24
- package/tabs/index.d.ts +75 -103
- package/toolbar/index.d.ts +10 -17
- package/toolbar/testing/index.d.ts +1 -1
- package/tooltip/index.d.ts +8 -8
- package/tree/index.d.ts +26 -28
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/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
|
|
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
|
|
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
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
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
|
+
@use '../core/style/sass-utils';
|
|
7
8
|
@use './button-base';
|
|
8
9
|
@use '../core/tokens/token-utils';
|
|
9
10
|
@use '../core/theming/theming';
|
|
@@ -11,7 +12,15 @@
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@mixin base($theme) {
|
|
14
|
-
|
|
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
|
+
}
|
|
23
|
+
}
|
|
15
24
|
}
|
|
16
25
|
|
|
17
26
|
@mixin _icon-button-variant($theme, $palette) {
|
|
@@ -30,74 +39,102 @@
|
|
|
30
39
|
}
|
|
31
40
|
|
|
32
41
|
@mixin color($theme) {
|
|
33
|
-
.
|
|
34
|
-
@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);
|
|
35
48
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
&.mat-primary {
|
|
50
|
+
@include _icon-button-variant($theme, primary);
|
|
51
|
+
}
|
|
39
52
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
53
|
+
&.mat-accent {
|
|
54
|
+
@include _icon-button-variant($theme, accent);
|
|
55
|
+
}
|
|
43
56
|
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
&.mat-warn {
|
|
58
|
+
@include _icon-button-variant($theme, warn);
|
|
59
|
+
}
|
|
46
60
|
}
|
|
47
61
|
}
|
|
48
62
|
}
|
|
49
63
|
|
|
50
|
-
@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
|
+
}
|
|
51
70
|
|
|
52
71
|
@mixin density($theme) {
|
|
53
|
-
$
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$density-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
+
),
|
|
63
87
|
),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
+
}
|
|
87
111
|
}
|
|
88
112
|
}
|
|
89
113
|
|
|
90
114
|
@mixin theme($theme) {
|
|
91
115
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-icon-button') {
|
|
92
|
-
@
|
|
93
|
-
|
|
94
|
-
@include color($theme);
|
|
116
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
117
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
95
118
|
}
|
|
96
|
-
@
|
|
97
|
-
@include
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
+
}
|
|
101
130
|
}
|
|
102
131
|
}
|
|
103
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 { }
|