@angular/material-experimental 13.2.0-next.1 → 13.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-module.mjs +12 -12
- package/esm2020/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +3 -3
- package/esm2020/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2020/column-resize/resize-strategy.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete.mjs +3 -3
- package/esm2020/mdc-autocomplete/module.mjs +4 -4
- package/esm2020/mdc-button/button-base.mjs +24 -21
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +17 -17
- package/esm2020/mdc-button/icon-button.mjs +11 -13
- package/esm2020/mdc-button/module.mjs +4 -4
- package/esm2020/mdc-card/card.mjs +42 -42
- package/esm2020/mdc-card/module.mjs +4 -4
- package/esm2020/mdc-checkbox/checkbox.mjs +12 -16
- package/esm2020/mdc-checkbox/module.mjs +6 -7
- package/esm2020/mdc-chips/chip-action.mjs +3 -3
- package/esm2020/mdc-chips/chip-edit-input.mjs +3 -3
- package/esm2020/mdc-chips/chip-grid.mjs +7 -9
- package/esm2020/mdc-chips/chip-icons.mjs +9 -9
- package/esm2020/mdc-chips/chip-input.mjs +3 -3
- package/esm2020/mdc-chips/chip-listbox.mjs +3 -3
- package/esm2020/mdc-chips/chip-option.mjs +3 -3
- package/esm2020/mdc-chips/chip-row.mjs +3 -3
- package/esm2020/mdc-chips/chip-set.mjs +3 -3
- package/esm2020/mdc-chips/chip.mjs +3 -3
- package/esm2020/mdc-chips/module.mjs +4 -4
- package/esm2020/mdc-core/option/index.mjs +4 -4
- package/esm2020/mdc-core/option/optgroup.mjs +3 -3
- package/esm2020/mdc-core/option/option.mjs +5 -5
- package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +12 -12
- package/esm2020/mdc-dialog/dialog.mjs +3 -3
- package/esm2020/mdc-dialog/module.mjs +4 -4
- package/esm2020/mdc-form-field/directives/error.mjs +3 -3
- package/esm2020/mdc-form-field/directives/floating-label.mjs +3 -3
- package/esm2020/mdc-form-field/directives/hint.mjs +3 -3
- package/esm2020/mdc-form-field/directives/label.mjs +3 -3
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +3 -3
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +3 -3
- package/esm2020/mdc-form-field/directives/prefix.mjs +3 -3
- package/esm2020/mdc-form-field/directives/suffix.mjs +3 -3
- package/esm2020/mdc-form-field/form-field.mjs +21 -5
- package/esm2020/mdc-form-field/module.mjs +4 -4
- package/esm2020/mdc-input/input.mjs +5 -4
- package/esm2020/mdc-input/module.mjs +4 -4
- package/esm2020/mdc-list/action-list.mjs +3 -3
- package/esm2020/mdc-list/interactive-list-base.mjs +5 -5
- package/esm2020/mdc-list/list-base.mjs +6 -6
- package/esm2020/mdc-list/list-item-sections.mjs +18 -18
- package/esm2020/mdc-list/list-option.mjs +5 -5
- package/esm2020/mdc-list/list.mjs +6 -6
- package/esm2020/mdc-list/module.mjs +4 -4
- package/esm2020/mdc-list/nav-list.mjs +3 -3
- package/esm2020/mdc-list/selection-list.mjs +3 -3
- package/esm2020/mdc-list/subheader.mjs +3 -3
- package/esm2020/mdc-list/testing/list-item-harness-base.mjs +5 -1
- package/esm2020/mdc-list/testing/selection-list-harness.mjs +1 -5
- package/esm2020/mdc-menu/directives.mjs +6 -6
- package/esm2020/mdc-menu/menu-item.mjs +3 -3
- package/esm2020/mdc-menu/menu.mjs +3 -3
- package/esm2020/mdc-menu/module.mjs +4 -4
- package/esm2020/mdc-paginator/module.mjs +4 -4
- package/esm2020/mdc-paginator/paginator.mjs +3 -3
- package/esm2020/mdc-progress-bar/module.mjs +4 -4
- package/esm2020/mdc-progress-bar/progress-bar.mjs +3 -3
- package/esm2020/mdc-progress-spinner/module.mjs +4 -4
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +3 -3
- package/esm2020/mdc-radio/module.mjs +4 -4
- package/esm2020/mdc-radio/radio.mjs +8 -8
- package/esm2020/mdc-select/module.mjs +4 -4
- package/esm2020/mdc-select/select.mjs +6 -6
- package/esm2020/mdc-sidenav/module.mjs +4 -4
- package/esm2020/mdc-slide-toggle/module.mjs +4 -4
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +3 -3
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +3 -3
- package/esm2020/mdc-slider/module.mjs +4 -4
- package/esm2020/mdc-slider/slider.mjs +9 -9
- package/esm2020/mdc-snack-bar/module.mjs +7 -7
- package/esm2020/mdc-snack-bar/public-api.mjs +2 -2
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +7 -7
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +9 -9
- package/esm2020/mdc-snack-bar/snack-bar.mjs +26 -12
- package/esm2020/mdc-table/cell.mjs +21 -21
- package/esm2020/mdc-table/module.mjs +4 -4
- package/esm2020/mdc-table/row.mjs +21 -21
- package/esm2020/mdc-table/table.mjs +8 -8
- package/esm2020/mdc-table/text-column.mjs +3 -3
- package/esm2020/mdc-tabs/module.mjs +4 -4
- package/esm2020/mdc-tabs/tab-body.mjs +8 -8
- package/esm2020/mdc-tabs/tab-content.mjs +3 -3
- package/esm2020/mdc-tabs/tab-group.mjs +7 -7
- package/esm2020/mdc-tabs/tab-header.mjs +5 -5
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +3 -3
- package/esm2020/mdc-tabs/tab-label.mjs +3 -3
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +12 -12
- package/esm2020/mdc-tabs/tab.mjs +5 -5
- package/esm2020/mdc-tooltip/module.mjs +4 -4
- package/esm2020/mdc-tooltip/tooltip.mjs +6 -6
- package/esm2020/menubar/menubar-item.mjs +3 -3
- package/esm2020/menubar/menubar-module.mjs +4 -4
- package/esm2020/menubar/menubar.mjs +3 -3
- package/esm2020/popover-edit/lens-directives.mjs +9 -9
- package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
- package/esm2020/popover-edit/table-directives.mjs +12 -12
- package/esm2020/selection/row-selection.mjs +3 -3
- package/esm2020/selection/select-all.mjs +3 -3
- package/esm2020/selection/selection-column.mjs +3 -3
- package/esm2020/selection/selection-module.mjs +4 -4
- package/esm2020/selection/selection-toggle.mjs +3 -3
- package/esm2020/selection/selection.mjs +3 -3
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-autocomplete.mjs +13 -13
- package/fesm2015/mdc-button.mjs +61 -60
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +46 -46
- package/fesm2015/mdc-checkbox.mjs +16 -21
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +43 -45
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +11 -11
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +23 -23
- package/fesm2015/mdc-form-field.mjs +50 -32
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +8 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list/testing.mjs +6 -6
- package/fesm2015/mdc-list/testing.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +55 -55
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +16 -16
- package/fesm2015/mdc-paginator.mjs +7 -7
- package/fesm2015/mdc-progress-bar.mjs +7 -7
- package/fesm2015/mdc-progress-spinner.mjs +7 -7
- package/fesm2015/mdc-radio.mjs +11 -11
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +10 -10
- package/fesm2015/mdc-sidenav.mjs +4 -4
- package/fesm2015/mdc-slide-toggle.mjs +7 -7
- package/fesm2015/mdc-slider.mjs +16 -16
- package/fesm2015/mdc-snack-bar.mjs +47 -42
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-tabs.mjs +45 -45
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +10 -10
- package/fesm2015/menubar.mjs +10 -10
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/selection.mjs +19 -19
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-autocomplete.mjs +13 -13
- package/fesm2020/mdc-button.mjs +61 -60
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +46 -46
- package/fesm2020/mdc-checkbox.mjs +16 -21
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +43 -45
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +11 -11
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +23 -23
- package/fesm2020/mdc-form-field.mjs +48 -32
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +8 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list/testing.mjs +4 -4
- package/fesm2020/mdc-list/testing.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +55 -55
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +16 -16
- package/fesm2020/mdc-paginator.mjs +7 -7
- package/fesm2020/mdc-progress-bar.mjs +7 -7
- package/fesm2020/mdc-progress-spinner.mjs +7 -7
- package/fesm2020/mdc-radio.mjs +11 -11
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +10 -10
- package/fesm2020/mdc-sidenav.mjs +4 -4
- package/fesm2020/mdc-slide-toggle.mjs +7 -7
- package/fesm2020/mdc-slider.mjs +16 -16
- package/fesm2020/mdc-snack-bar.mjs +45 -35
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-tabs.mjs +45 -45
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +10 -10
- package/fesm2020/menubar.mjs +10 -10
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/selection.mjs +19 -19
- package/mdc-button/_button-base.scss +28 -15
- package/mdc-button/_button-theme-private.scss +35 -28
- package/mdc-button/_button-theme.scss +118 -80
- package/mdc-button/_fab-theme.scss +31 -37
- package/mdc-button/_icon-button-theme.scss +15 -22
- package/mdc-button/button-base.d.ts +7 -5
- package/mdc-button/icon-button.d.ts +2 -2
- package/mdc-checkbox/_checkbox-private.scss +46 -0
- package/mdc-checkbox/_checkbox-theme.scss +18 -47
- package/mdc-checkbox/checkbox.d.ts +0 -6
- package/mdc-checkbox/module.d.ts +2 -3
- package/mdc-chips/chip-grid.d.ts +0 -2
- package/mdc-core/option/_option-theme.scss +3 -3
- package/mdc-core/option/option.d.ts +3 -3
- package/mdc-form-field/_form-field-subscript.scss +11 -0
- package/mdc-form-field/form-field.d.ts +12 -1
- package/mdc-list/_list-option-theme.scss +3 -3
- package/mdc-list/_list-option-trailing-avatar-compat.scss +18 -13
- package/mdc-list/_list-theme.scss +11 -10
- package/mdc-list/testing/list-item-harness-base.d.ts +2 -0
- package/mdc-list/testing/selection-list-harness.d.ts +0 -2
- package/mdc-radio/_radio-theme.scss +0 -6
- package/mdc-snack-bar/module.d.ts +1 -1
- package/mdc-snack-bar/public-api.d.ts +1 -1
- package/mdc-snack-bar/simple-snack-bar.d.ts +4 -4
- package/mdc-snack-bar/snack-bar.d.ts +17 -5
- package/mdc-tabs/_tabs-common.scss +8 -1
- package/mdc-tabs/_tabs-theme.scss +8 -55
- package/mdc-tabs/ink-bar.d.ts +1 -1
- package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
- package/mdc-theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
- package/mdc-theming/prebuilt/purple-green.css +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '@material/icon-button/mixins' as mdc-icon-button;
|
|
2
|
-
@use '@material/
|
|
3
|
+
@use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
|
|
4
|
+
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
3
5
|
@use '../mdc-helpers/mdc-helpers';
|
|
4
6
|
@use '../../material/core/theming/theming';
|
|
5
7
|
@use '../../material/core/typography/typography';
|
|
@@ -8,41 +10,32 @@
|
|
|
8
10
|
@mixin color($config-or-theme) {
|
|
9
11
|
$config: theming.get-color-config($config-or-theme);
|
|
10
12
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
13
|
+
$is-dark: map.get($config, is-dark);
|
|
14
|
+
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
15
|
+
$disabled-color: rgba($on-surface, if($is-dark, 0.5, 0.38));
|
|
16
|
+
|
|
11
17
|
.mat-mdc-icon-button {
|
|
12
|
-
@include
|
|
13
|
-
$query: mdc-helpers.$mat-theme-styles-query,
|
|
14
|
-
$ripple-target: button-theme-private.$button-state-target);
|
|
18
|
+
@include button-theme-private.ripple-theme-styles($config, false);
|
|
15
19
|
|
|
16
20
|
&.mat-primary {
|
|
17
|
-
@include mdc-
|
|
18
|
-
$query: mdc-helpers.$mat-theme-styles-query,
|
|
19
|
-
$ripple-target: button-theme-private.$button-state-target);
|
|
20
|
-
@include mdc-icon-button.ink-color(primary, $query: mdc-helpers.$mat-theme-styles-query);
|
|
21
|
-
@include button-theme-private.ripple-ink-color(primary);
|
|
21
|
+
@include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(primary)));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.mat-accent {
|
|
25
|
-
@include mdc-
|
|
26
|
-
$query: mdc-helpers.$mat-theme-styles-query,
|
|
27
|
-
$ripple-target: button-theme-private.$button-state-target);
|
|
28
|
-
@include mdc-icon-button.ink-color(secondary, $query: mdc-helpers.$mat-theme-styles-query);
|
|
29
|
-
@include button-theme-private.ripple-ink-color(secondary);
|
|
25
|
+
@include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(secondary)));
|
|
30
26
|
}
|
|
31
27
|
|
|
32
28
|
&.mat-warn {
|
|
33
|
-
@include mdc-
|
|
34
|
-
$query: mdc-helpers.$mat-theme-styles-query,
|
|
35
|
-
$ripple-target: button-theme-private.$button-state-target);
|
|
36
|
-
@include mdc-icon-button.ink-color(error, $query: mdc-helpers.$mat-theme-styles-query);
|
|
37
|
-
@include button-theme-private.ripple-ink-color(error);
|
|
29
|
+
@include mdc-icon-button-theme.theme((icon-color: (mdc-theme-color.prop-value(error))));
|
|
38
30
|
}
|
|
39
31
|
|
|
40
32
|
@include button-theme-private.apply-disabled-style() {
|
|
41
|
-
@include button-theme
|
|
33
|
+
@include mdc-icon-button-theme.theme((
|
|
34
|
+
icon-color: $disabled-color,
|
|
35
|
+
disabled-icon-color: $disabled-color,
|
|
36
|
+
));
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
|
-
|
|
45
|
-
@include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
41
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { Platform } from '@angular/cdk/platform';
|
|
9
|
-
import { ElementRef, NgZone } from '@angular/core';
|
|
9
|
+
import { ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
10
10
|
import { CanColor, CanDisable, CanDisableRipple, MatRipple } from '@angular/material-experimental/mdc-core';
|
|
11
11
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -30,10 +30,10 @@ export declare class MatButtonBase extends _MatButtonMixin implements CanDisable
|
|
|
30
30
|
_platform: Platform;
|
|
31
31
|
_ngZone: NgZone;
|
|
32
32
|
_animationMode?: string | undefined;
|
|
33
|
-
/** Whether the ripple is centered on the button. */
|
|
34
|
-
_isRippleCentered: boolean;
|
|
35
33
|
/** Whether this button is a FAB. Used to apply the correct class on the ripple. */
|
|
36
34
|
_isFab: boolean;
|
|
35
|
+
/** Whether this button is an icon button. Used to apply the correct class on the ripple. */
|
|
36
|
+
_isIconButton: boolean;
|
|
37
37
|
/** Reference to the MatRipple instance of the button. */
|
|
38
38
|
ripple: MatRipple;
|
|
39
39
|
constructor(elementRef: ElementRef, _platform: Platform, _ngZone: NgZone, _animationMode?: string | undefined);
|
|
@@ -59,10 +59,12 @@ export declare const MAT_ANCHOR_HOST: {
|
|
|
59
59
|
/**
|
|
60
60
|
* Anchor button base.
|
|
61
61
|
*/
|
|
62
|
-
export declare class MatAnchorBase extends MatButtonBase {
|
|
62
|
+
export declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
|
|
63
63
|
tabIndex: number;
|
|
64
64
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
65
|
-
|
|
65
|
+
ngOnInit(): void;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
_haltDisabledEvents: (event: Event) => void;
|
|
66
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchorBase, never>;
|
|
67
69
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatAnchorBase, never, never, {}, {}, never>;
|
|
68
70
|
}
|
|
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
16
16
|
*/
|
|
17
17
|
export declare class MatIconButton extends MatButtonBase {
|
|
18
|
-
|
|
18
|
+
_isIconButton: boolean;
|
|
19
19
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
|
|
21
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"]>;
|
|
@@ -26,7 +26,7 @@ export declare class MatIconButton extends MatButtonBase {
|
|
|
26
26
|
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
27
27
|
*/
|
|
28
28
|
export declare class MatIconAnchor extends MatAnchorBase {
|
|
29
|
-
|
|
29
|
+
_isIconButton: boolean;
|
|
30
30
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
|
|
32
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"]>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use '@material/checkbox/checkbox-theme' as mdc-checkbox-theme;
|
|
4
|
+
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
5
|
+
|
|
6
|
+
// Configuration used to define the theme-related CSS variables.
|
|
7
|
+
$private-checkbox-theme-config: map.merge(mdc-checkbox-theme.$light-theme, (
|
|
8
|
+
// Exclude all of the ripple-related styles.
|
|
9
|
+
selected-focus-state-layer-color: null,
|
|
10
|
+
selected-focus-state-layer-opacity: null,
|
|
11
|
+
selected-hover-state-layer-color: null,
|
|
12
|
+
selected-hover-state-layer-opacity: null,
|
|
13
|
+
selected-pressed-state-layer-color: null,
|
|
14
|
+
selected-pressed-state-layer-opacity: null,
|
|
15
|
+
unselected-focus-state-layer-color: null,
|
|
16
|
+
unselected-focus-state-layer-opacity: null,
|
|
17
|
+
unselected-hover-state-layer-color: null,
|
|
18
|
+
unselected-hover-state-layer-opacity: null,
|
|
19
|
+
unselected-pressed-state-layer-color: null,
|
|
20
|
+
unselected-pressed-state-layer-opacity: null,
|
|
21
|
+
));
|
|
22
|
+
|
|
23
|
+
// Mixin that includes the checkbox theme styles with a given palette.
|
|
24
|
+
// By default, the MDC checkbox always uses the `secondary` palette.
|
|
25
|
+
@mixin private-checkbox-styles-with-color($color, $mdc-color) {
|
|
26
|
+
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
27
|
+
$border-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$border-color));
|
|
28
|
+
$disabled-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$disabled-color));
|
|
29
|
+
|
|
30
|
+
@include mdc-checkbox-theme.theme((
|
|
31
|
+
selected-checkmark-color: mdc-theme-color.prop-value(on-#{$mdc-color}),
|
|
32
|
+
|
|
33
|
+
selected-focus-icon-color: $color,
|
|
34
|
+
selected-hover-icon-color: $color,
|
|
35
|
+
selected-icon-color: $color,
|
|
36
|
+
selected-pressed-icon-color: $color,
|
|
37
|
+
unselected-focus-icon-color: $color,
|
|
38
|
+
unselected-hover-icon-color: $color,
|
|
39
|
+
|
|
40
|
+
disabled-selected-icon-color: $disabled-color,
|
|
41
|
+
disabled-unselected-icon-color: $disabled-color,
|
|
42
|
+
|
|
43
|
+
unselected-icon-color: $border-color,
|
|
44
|
+
unselected-pressed-icon-color: $border-color,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
@@ -9,48 +9,16 @@
|
|
|
9
9
|
@use '../../material/core/typography/typography';
|
|
10
10
|
@use '../../material/core/theming/theming';
|
|
11
11
|
@use '../../material/core/ripple/ripple-theme';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Mixin that includes the checkbox theme styles with a given palette.
|
|
15
|
-
// By default, the MDC checkbox always uses the `secondary` palette.
|
|
16
|
-
@mixin private-checkbox-styles-with-color($color, $mdcColor) {
|
|
17
|
-
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
18
|
-
$border-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$border-color));
|
|
19
|
-
$disabled-color: rgba($on-surface, color.opacity(mdc-checkbox-theme.$disabled-color));
|
|
20
|
-
|
|
21
|
-
@include mdc-checkbox-theme.theme((
|
|
22
|
-
selected-checkmark-color: mdc-theme-color.prop-value(on-#{$mdcColor}),
|
|
23
|
-
|
|
24
|
-
selected-focus-icon-color: $color,
|
|
25
|
-
selected-hover-icon-color: $color,
|
|
26
|
-
selected-hover-state-layer-color: $color,
|
|
27
|
-
selected-icon-color: $color,
|
|
28
|
-
selected-pressed-icon-color: $color,
|
|
29
|
-
unselected-focus-icon-color: $color,
|
|
30
|
-
unselected-hover-icon-color: $color,
|
|
31
|
-
|
|
32
|
-
selected-focus-state-layer-color: $on-surface,
|
|
33
|
-
selected-pressed-state-layer-color: $on-surface,
|
|
34
|
-
unselected-focus-state-layer-color: $on-surface,
|
|
35
|
-
unselected-hover-state-layer-color: $on-surface,
|
|
36
|
-
unselected-pressed-state-layer-color: $on-surface,
|
|
37
|
-
|
|
38
|
-
disabled-selected-icon-color: $disabled-color,
|
|
39
|
-
disabled-unselected-icon-color: $disabled-color,
|
|
40
|
-
|
|
41
|
-
unselected-icon-color: $border-color,
|
|
42
|
-
unselected-pressed-icon-color: $border-color,
|
|
43
|
-
));
|
|
44
|
-
}
|
|
12
|
+
@use './checkbox-private';
|
|
45
13
|
|
|
46
14
|
// Apply ripple colors to the MatRipple element and the MDC ripple element when the
|
|
47
15
|
// checkbox is selected.
|
|
48
|
-
@mixin _selected-ripple-colors($theme, $
|
|
16
|
+
@mixin _selected-ripple-colors($theme, $mdc-color) {
|
|
49
17
|
.mdc-checkbox--selected ~ {
|
|
50
18
|
.mat-mdc-checkbox-ripple {
|
|
51
19
|
@include ripple-theme.color((
|
|
52
20
|
foreground: (
|
|
53
|
-
base: mdc-theme-color.prop-value($
|
|
21
|
+
base: mdc-theme-color.prop-value($mdc-color)
|
|
54
22
|
),
|
|
55
23
|
));
|
|
56
24
|
}
|
|
@@ -84,17 +52,17 @@
|
|
|
84
52
|
// class for accent and warn style, and applying the appropriate overrides below. Since we
|
|
85
53
|
// don't use MDC's ripple, we also need to set the color for our replacement ripple.
|
|
86
54
|
&.mat-primary {
|
|
87
|
-
@include private-checkbox-styles-with-color($primary, primary);
|
|
55
|
+
@include checkbox-private.private-checkbox-styles-with-color($primary, primary);
|
|
88
56
|
@include _selected-ripple-colors($primary, primary);
|
|
89
57
|
}
|
|
90
58
|
|
|
91
59
|
&.mat-accent {
|
|
92
|
-
@include private-checkbox-styles-with-color($accent, secondary);
|
|
60
|
+
@include checkbox-private.private-checkbox-styles-with-color($accent, secondary);
|
|
93
61
|
@include _selected-ripple-colors($accent, secondary);
|
|
94
62
|
}
|
|
95
63
|
|
|
96
64
|
&.mat-warn {
|
|
97
|
-
@include private-checkbox-styles-with-color($warn, error);
|
|
65
|
+
@include checkbox-private.private-checkbox-styles-with-color($warn, error);
|
|
98
66
|
@include _selected-ripple-colors($warn, error);
|
|
99
67
|
}
|
|
100
68
|
}
|
|
@@ -112,16 +80,19 @@
|
|
|
112
80
|
|
|
113
81
|
@mixin density($config-or-theme) {
|
|
114
82
|
$density-scale: theming.get-density-config($config-or-theme);
|
|
115
|
-
.mat-mdc-checkbox .mdc-checkbox {
|
|
116
|
-
@include mdc-checkbox-theme.density(
|
|
117
|
-
$density-scale,
|
|
118
|
-
$query: mdc-helpers.$mat-base-styles-query
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
83
|
|
|
122
|
-
@
|
|
123
|
-
.mat-mdc-checkbox-
|
|
124
|
-
|
|
84
|
+
@include mdc-helpers.disable-fallback-declarations {
|
|
85
|
+
.mat-mdc-checkbox .mdc-checkbox {
|
|
86
|
+
@include mdc-checkbox-theme.density(
|
|
87
|
+
$density-scale,
|
|
88
|
+
$query: mdc-helpers.$mat-base-styles-query
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@if ($density-scale == -2 or $density-scale == 'minimum') {
|
|
93
|
+
.mat-mdc-checkbox-touch-target {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
125
96
|
}
|
|
126
97
|
}
|
|
127
98
|
}
|
|
@@ -87,10 +87,6 @@ export declare class MatCheckbox extends _MatCheckboxBase implements AfterViewIn
|
|
|
87
87
|
get inputId(): string;
|
|
88
88
|
/** The `MDCCheckboxFoundation` instance for this checkbox. */
|
|
89
89
|
_checkboxFoundation: MDCCheckboxFoundation;
|
|
90
|
-
/** The set of classes that should be applied to the native input. */
|
|
91
|
-
_classes: {
|
|
92
|
-
[key: string]: boolean;
|
|
93
|
-
};
|
|
94
90
|
/** ControlValueAccessor onChange */
|
|
95
91
|
private _cvaOnChange;
|
|
96
92
|
/** ControlValueAccessor onTouch */
|
|
@@ -144,8 +140,6 @@ export declare class MatCheckbox extends _MatCheckboxBase implements AfterViewIn
|
|
|
144
140
|
_onClick(): void;
|
|
145
141
|
/** Gets the value for the `aria-checked` attribute of the native input. */
|
|
146
142
|
_getAriaChecked(): 'true' | 'false' | 'mixed';
|
|
147
|
-
/** Sets whether the given CSS class should be applied to the native input. */
|
|
148
|
-
private _setClass;
|
|
149
143
|
/**
|
|
150
144
|
* Syncs the indeterminate value with the checkbox DOM node.
|
|
151
145
|
*
|
package/mdc-checkbox/module.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./checkbox";
|
|
3
3
|
import * as i2 from "@angular/material-experimental/mdc-core";
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "@angular/material/checkbox";
|
|
4
|
+
import * as i3 from "@angular/material/checkbox";
|
|
6
5
|
export declare class MatCheckboxModule {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, [typeof i1.MatCheckbox], [typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, [typeof i1.MatCheckbox], [typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof i3._MatCheckboxRequiredValidatorModule], [typeof i1.MatCheckbox, typeof i2.MatCommonModule, typeof i3._MatCheckboxRequiredValidatorModule]>;
|
|
9
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
|
|
10
9
|
}
|
package/mdc-chips/chip-grid.d.ts
CHANGED
|
@@ -188,8 +188,6 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
188
188
|
* If the amount of chips changed, we need to focus the next closest chip.
|
|
189
189
|
*/
|
|
190
190
|
private _updateFocusForDestroyedChips;
|
|
191
|
-
/** Focus input element. */
|
|
192
|
-
private _focusInput;
|
|
193
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
194
192
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "tabIndex": "tabIndex"; "disabled": "disabled"; "placeholder": "placeholder"; "required": "required"; "value": "value"; "errorStateMatcher": "errorStateMatcher"; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"]>;
|
|
195
193
|
}
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
theming.get-typography-config($config-or-theme));
|
|
56
56
|
|
|
57
57
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
58
|
-
// MDC uses the `subtitle1` level for list items, but
|
|
59
|
-
//
|
|
60
|
-
.mat-mdc-option
|
|
58
|
+
// MDC uses the `subtitle1` level for list items, but
|
|
59
|
+
// the spec shows `body1` as the correct level.
|
|
60
|
+
.mat-mdc-option {
|
|
61
61
|
@include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -12,8 +12,8 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
/**
|
|
13
13
|
* Single option inside of a `<mat-select>` element.
|
|
14
14
|
*/
|
|
15
|
-
export declare class MatOption extends _MatOptionBase {
|
|
15
|
+
export declare class MatOption<T = any> extends _MatOptionBase<T> {
|
|
16
16
|
constructor(element: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, parent: MatOptionParentComponent, group: MatOptgroup);
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatOption
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatOption
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatOption<any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatOption<any>, "mat-option", ["matOption"], {}, {}, never, ["*"]>;
|
|
19
19
|
}
|
|
@@ -23,12 +23,23 @@
|
|
|
23
23
|
padding: 0 mdc-textfield-variables.$padding-horizontal;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
.mat-mdc-form-field-subscript-dynamic-size {
|
|
27
|
+
.mat-mdc-form-field-hint-wrapper,
|
|
28
|
+
.mat-mdc-form-field-error-wrapper {
|
|
29
|
+
position: static;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
.mat-mdc-form-field-bottom-align::before {
|
|
27
34
|
content: '';
|
|
28
35
|
display: inline-block;
|
|
29
36
|
height: 16px;
|
|
30
37
|
}
|
|
31
38
|
|
|
39
|
+
.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before {
|
|
40
|
+
content: unset;
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
.mat-mdc-form-field-hint-end {
|
|
33
44
|
order: 1;
|
|
34
45
|
}
|
|
@@ -25,6 +25,8 @@ import * as i0 from "@angular/core";
|
|
|
25
25
|
export declare type FloatLabelType = 'always' | 'auto';
|
|
26
26
|
/** Possible appearance styles for the form field. */
|
|
27
27
|
export declare type MatFormFieldAppearance = 'fill' | 'outline';
|
|
28
|
+
/** Behaviors for how the subscript height is set. */
|
|
29
|
+
export declare type SubscriptSizing = 'fixed' | 'dynamic';
|
|
28
30
|
/**
|
|
29
31
|
* Represents the default options for the form field that can be configured
|
|
30
32
|
* using the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
|
|
@@ -33,6 +35,7 @@ export interface MatFormFieldDefaultOptions {
|
|
|
33
35
|
appearance?: MatFormFieldAppearance;
|
|
34
36
|
hideRequiredMarker?: boolean;
|
|
35
37
|
floatLabel?: FloatLabelType;
|
|
38
|
+
subscriptSizing?: SubscriptSizing;
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Injection token that can be used to configure the
|
|
@@ -76,6 +79,14 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
|
|
|
76
79
|
get appearance(): MatFormFieldAppearance;
|
|
77
80
|
set appearance(value: MatFormFieldAppearance);
|
|
78
81
|
private _appearance;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the form field should reserve space for one line of hint/error text (default)
|
|
84
|
+
* or to have the spacing grow from 0px as needed based on the size of the hint/error content.
|
|
85
|
+
* Note that when using dynamic sizing, layout shifts will occur when hint/error text changes.
|
|
86
|
+
*/
|
|
87
|
+
get subscriptSizing(): SubscriptSizing;
|
|
88
|
+
set subscriptSizing(value: SubscriptSizing);
|
|
89
|
+
private _subscriptSizing;
|
|
79
90
|
/** Text for the form field hint. */
|
|
80
91
|
get hintLabel(): string;
|
|
81
92
|
set hintLabel(value: string);
|
|
@@ -185,5 +196,5 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
|
|
|
185
196
|
/** Checks whether the form field is attached to the DOM. */
|
|
186
197
|
private _isAttachedToDom;
|
|
187
198
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
188
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
|
|
199
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "subscriptSizing": "subscriptSizing"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
|
|
189
200
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use '@material/checkbox' as mdc-checkbox;
|
|
2
|
-
@use '../mdc-checkbox/checkbox-
|
|
2
|
+
@use '../mdc-checkbox/checkbox-private';
|
|
3
3
|
@use '../mdc-helpers/mdc-helpers';
|
|
4
4
|
@use './list-option-trailing-avatar-compat';
|
|
5
5
|
|
|
6
6
|
// Mixin that overrides the selected item and checkbox colors for list options. By
|
|
7
7
|
// default, the MDC list uses the `primary` color for list items. The MDC checkbox
|
|
8
8
|
// inside list options by default uses the `primary` color too.
|
|
9
|
-
@mixin private-list-option-color-override($color, $
|
|
9
|
+
@mixin private-list-option-color-override($color, $mdc-color) {
|
|
10
10
|
& .mdc-list-item__start, & .mdc-list-item__end {
|
|
11
|
-
@include checkbox-
|
|
11
|
+
@include checkbox-private.private-checkbox-styles-with-color($color, $mdc-color);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '@material/density/functions' as density-functions;
|
|
4
4
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
5
5
|
@use '@material/list/evolution-variables' as mdc-list-variables;
|
|
6
|
+
@use '../mdc-helpers/mdc-helpers';
|
|
6
7
|
|
|
7
8
|
// For compatibility with the non-MDC selection list, we support avatars that are
|
|
8
9
|
// shown at the end of the list option. This is not supported by the MDC list as the
|
|
@@ -15,19 +16,21 @@
|
|
|
15
16
|
@mixin core-styles($query) {
|
|
16
17
|
$feat-structure: feature-targeting.create-target($query, structure);
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
@include mdc-helpers.disable-fallback-declarations {
|
|
20
|
+
.mat-mdc-list-option-with-trailing-avatar {
|
|
21
|
+
@include mdc-list.item-end-spacing(16px, $query: $query);
|
|
22
|
+
@include mdc-list.item-end-size(40px, $query: $query);
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
&.mdc-list-item--with-two-lines {
|
|
25
|
+
.mdc-list-item__primary-text {
|
|
26
|
+
@include typography.text-baseline($top: 32px, $bottom: 20px, $query: $query);
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
|
-
}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
.mdc-list-item__end {
|
|
31
|
+
@include feature-targeting.targets($feat-structure) {
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -46,8 +49,10 @@
|
|
|
46
49
|
$property-name: height,
|
|
47
50
|
);
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
@include mdc-helpers.disable-fallback-declarations {
|
|
53
|
+
.mat-mdc-list-option-with-trailing-avatar {
|
|
54
|
+
@include mdc-list.one-line-item-height($one-line-tall-height);
|
|
55
|
+
@include mdc-list.two-line-item-height($two-line-tall-height);
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
}
|
|
@@ -16,11 +16,10 @@
|
|
|
16
16
|
$accent: theming.get-color-from-palette(map.get($config, accent));
|
|
17
17
|
$warn: theming.get-color-from-palette(map.get($config, warn));
|
|
18
18
|
|
|
19
|
-
// MDC's state styles are tied in with their ripple. Since we don't use the MDC
|
|
20
|
-
// ripple, we need to add the hover, focus and selected states manually.
|
|
21
|
-
@include interactive-list-theme.private-interactive-list-item-state-colors($config);
|
|
22
|
-
|
|
23
19
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
20
|
+
// MDC's state styles are tied in with their ripple. Since we don't use the MDC
|
|
21
|
+
// ripple, we need to add the hover, focus and selected states manually.
|
|
22
|
+
@include interactive-list-theme.private-interactive-list-item-state-colors($config);
|
|
24
23
|
@include mdc-list.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
25
24
|
|
|
26
25
|
.mat-mdc-list-option {
|
|
@@ -38,13 +37,15 @@
|
|
|
38
37
|
@mixin density($config-or-theme) {
|
|
39
38
|
$density-scale: theming.get-density-config($config-or-theme);
|
|
40
39
|
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
@include mdc-helpers.disable-fallback-declarations {
|
|
41
|
+
.mat-mdc-list-item {
|
|
42
|
+
@include mdc-list.one-line-item-density($density-scale);
|
|
43
|
+
@include mdc-list.two-line-item-density($density-scale);
|
|
44
|
+
@include mdc-list.three-line-item-density($density-scale);
|
|
45
|
+
}
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
@include list-option-theme.private-list-option-density-styles($density-scale);
|
|
48
|
+
}
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
@mixin typography($config-or-theme) {
|
|
@@ -60,6 +60,8 @@ export declare abstract class MatListItemHarnessBase extends ContentContainerCom
|
|
|
60
60
|
getFullText(): Promise<string>;
|
|
61
61
|
/** Gets the title of the list item. */
|
|
62
62
|
getTitle(): Promise<string>;
|
|
63
|
+
/** Whether the list item is disabled. */
|
|
64
|
+
isDisabled(): Promise<boolean>;
|
|
63
65
|
/**
|
|
64
66
|
* Gets the secondary line text of the list item. Null if the list item
|
|
65
67
|
* does not have a secondary line.
|
|
@@ -53,8 +53,6 @@ export declare class MatListOptionHarness extends MatListItemHarnessBase {
|
|
|
53
53
|
getCheckboxPosition(): Promise<MatListOptionCheckboxPosition>;
|
|
54
54
|
/** Whether the list option is selected. */
|
|
55
55
|
isSelected(): Promise<boolean>;
|
|
56
|
-
/** Whether the list option is disabled. */
|
|
57
|
-
isDisabled(): Promise<boolean>;
|
|
58
56
|
/** Focuses the list option. */
|
|
59
57
|
focus(): Promise<void>;
|
|
60
58
|
/** Blurs the list option. */
|
|
@@ -10,12 +10,9 @@
|
|
|
10
10
|
@mixin _color-palette($color-palette) {
|
|
11
11
|
@include mdc-radio-theme.theme((
|
|
12
12
|
selected-focus-icon-color: $color-palette,
|
|
13
|
-
selected-focus-state-layer-color: $color-palette,
|
|
14
13
|
selected-hover-icon-color: $color-palette,
|
|
15
|
-
selected-hover-state-layer-color: $color-palette,
|
|
16
14
|
selected-icon-color: $color-palette,
|
|
17
15
|
selected-pressed-icon-color: $color-palette,
|
|
18
|
-
selected-pressed-state-layer-color: $color-palette,
|
|
19
16
|
));
|
|
20
17
|
|
|
21
18
|
// TODO(crisbeto): this should be included by MDC's `theme-styles`, but it isn't currently.
|
|
@@ -39,12 +36,9 @@
|
|
|
39
36
|
disabled-selected-icon-color: mdc-theme-color.$on-surface,
|
|
40
37
|
disabled-unselected-icon-color: mdc-theme-color.$on-surface,
|
|
41
38
|
unselected-focus-icon-color: $on-surface,
|
|
42
|
-
unselected-focus-state-layer-color: $on-surface,
|
|
43
39
|
unselected-hover-icon-color: $on-surface,
|
|
44
|
-
unselected-hover-state-layer-color: $on-surface,
|
|
45
40
|
unselected-icon-color: $on-surface,
|
|
46
41
|
unselected-pressed-icon-color: $on-surface,
|
|
47
|
-
unselected-pressed-state-layer-color: $on-surface,
|
|
48
42
|
));
|
|
49
43
|
|
|
50
44
|
&.mat-primary {
|
|
@@ -9,6 +9,6 @@ import * as i7 from "@angular/material-experimental/mdc-button";
|
|
|
9
9
|
import * as i8 from "@angular/material-experimental/mdc-core";
|
|
10
10
|
export declare class MatSnackBarModule {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.SimpleSnackBar, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction], [typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatCommonModule], [typeof i8.MatCommonModule, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction]>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
|
|
14
14
|
}
|
|
@@ -10,4 +10,4 @@ export * from './snack-bar-container';
|
|
|
10
10
|
export * from './snack-bar-content';
|
|
11
11
|
export * from './snack-bar';
|
|
12
12
|
export * from './module';
|
|
13
|
-
export { MatSnackBarConfig, MatSnackBarDismiss, MatSnackBarRef,
|
|
13
|
+
export { MatSnackBarConfig, MatSnackBarDismiss, MatSnackBarRef, MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition, TextOnlySnackBar, matSnackBarAnimations, } from '@angular/material/snack-bar';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextOnlySnackBar, MatSnackBarRef
|
|
1
|
+
import { TextOnlySnackBar, MatSnackBarRef } from '@angular/material/snack-bar';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SimpleSnackBar implements TextOnlySnackBar {
|
|
4
4
|
snackBarRef: MatSnackBarRef<SimpleSnackBar>;
|
|
5
5
|
data: {
|
|
6
6
|
message: string;
|
|
@@ -14,6 +14,6 @@ export declare class MatSimpleSnackBar implements TextOnlySnackBar {
|
|
|
14
14
|
action(): void;
|
|
15
15
|
/** If the action button should be shown. */
|
|
16
16
|
get hasAction(): boolean;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSnackBar, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never>;
|
|
19
19
|
}
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
9
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
10
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
11
|
+
import { Injector } from '@angular/core';
|
|
12
|
+
import { MatSnackBarConfig, _MatSnackBarBase } from '@angular/material/snack-bar';
|
|
13
|
+
import { SimpleSnackBar } from './simple-snack-bar';
|
|
3
14
|
import { MatSnackBarContainer } from './snack-bar-container';
|
|
4
15
|
import * as i0 from "@angular/core";
|
|
5
16
|
/**
|
|
6
17
|
* Service to dispatch Material Design snack bar messages.
|
|
7
18
|
*/
|
|
8
|
-
export declare class MatSnackBar extends
|
|
9
|
-
protected simpleSnackBarComponent: typeof
|
|
19
|
+
export declare class MatSnackBar extends _MatSnackBarBase {
|
|
20
|
+
protected simpleSnackBarComponent: typeof SimpleSnackBar;
|
|
10
21
|
protected snackBarContainerComponent: typeof MatSnackBarContainer;
|
|
11
22
|
protected handsetCssClass: string;
|
|
12
|
-
|
|
23
|
+
constructor(overlay: Overlay, live: LiveAnnouncer, injector: Injector, breakpointObserver: BreakpointObserver, parentSnackBar: MatSnackBar, defaultConfig: MatSnackBarConfig);
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, [null, null, null, null, { optional: true; skipSelf: true; }, null]>;
|
|
13
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBar>;
|
|
14
26
|
}
|