@angular/material-experimental 14.0.0-rc.0 → 14.0.0
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 +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +13 -13
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete.mjs +4 -4
- package/esm2020/mdc-autocomplete/module.mjs +5 -5
- package/esm2020/mdc-button/button-base.mjs +7 -7
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +17 -17
- package/esm2020/mdc-button/icon-button.mjs +9 -9
- package/esm2020/mdc-button/module.mjs +5 -5
- package/esm2020/mdc-card/card.mjs +43 -43
- package/esm2020/mdc-card/module.mjs +5 -5
- package/esm2020/mdc-checkbox/checkbox.mjs +29 -283
- package/esm2020/mdc-checkbox/module.mjs +5 -5
- package/esm2020/mdc-chips/chip-action.mjs +43 -77
- package/esm2020/mdc-chips/chip-edit-input.mjs +4 -4
- package/esm2020/mdc-chips/chip-grid.mjs +59 -70
- package/esm2020/mdc-chips/chip-icons.mjs +27 -41
- package/esm2020/mdc-chips/chip-input.mjs +5 -8
- package/esm2020/mdc-chips/chip-listbox.mjs +24 -66
- package/esm2020/mdc-chips/chip-option.mjs +38 -83
- package/esm2020/mdc-chips/chip-row.mjs +51 -75
- package/esm2020/mdc-chips/chip-set.mjs +117 -118
- package/esm2020/mdc-chips/chip.mjs +81 -166
- package/esm2020/mdc-chips/module.mjs +6 -6
- package/esm2020/mdc-chips/public-api.mjs +2 -2
- package/esm2020/mdc-chips/tokens.mjs +33 -0
- package/esm2020/mdc-core/option/index.mjs +5 -5
- package/esm2020/mdc-core/option/optgroup.mjs +4 -4
- package/esm2020/mdc-core/option/option.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/mdc-dialog/dialog.mjs +4 -4
- package/esm2020/mdc-dialog/module.mjs +5 -5
- package/esm2020/mdc-form-field/directives/error.mjs +4 -4
- package/esm2020/mdc-form-field/directives/floating-label.mjs +26 -6
- package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
- package/esm2020/mdc-form-field/directives/label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +32 -11
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +25 -46
- package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
- package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
- package/esm2020/mdc-form-field/form-field.mjs +11 -95
- package/esm2020/mdc-form-field/module.mjs +5 -5
- package/esm2020/mdc-input/input.mjs +4 -4
- package/esm2020/mdc-input/module.mjs +5 -5
- package/esm2020/mdc-list/action-list.mjs +5 -5
- package/esm2020/mdc-list/list-base.mjs +7 -15
- package/esm2020/mdc-list/list-item-sections.mjs +19 -19
- package/esm2020/mdc-list/list-option.mjs +39 -21
- package/esm2020/mdc-list/list.mjs +8 -8
- package/esm2020/mdc-list/module.mjs +5 -5
- package/esm2020/mdc-list/nav-list.mjs +5 -5
- package/esm2020/mdc-list/selection-list.mjs +124 -124
- package/esm2020/mdc-list/subheader.mjs +4 -4
- package/esm2020/mdc-menu/directives.mjs +7 -7
- package/esm2020/mdc-menu/menu-item.mjs +4 -4
- package/esm2020/mdc-menu/menu.mjs +4 -4
- package/esm2020/mdc-menu/module.mjs +5 -5
- package/esm2020/mdc-paginator/module.mjs +5 -5
- package/esm2020/mdc-paginator/paginator.mjs +4 -4
- package/esm2020/mdc-progress-bar/module.mjs +5 -5
- package/esm2020/mdc-progress-bar/progress-bar.mjs +39 -103
- package/esm2020/mdc-progress-spinner/module.mjs +5 -5
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +13 -60
- package/esm2020/mdc-radio/module.mjs +5 -5
- package/esm2020/mdc-radio/radio.mjs +9 -43
- package/esm2020/mdc-select/module.mjs +5 -5
- package/esm2020/mdc-select/select.mjs +7 -7
- package/esm2020/mdc-slide-toggle/module.mjs +5 -5
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +16 -178
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
- package/esm2020/mdc-slider/module.mjs +5 -5
- package/esm2020/mdc-slider/slider.mjs +10 -10
- package/esm2020/mdc-snack-bar/module.mjs +5 -5
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +5 -5
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
- package/esm2020/mdc-table/cell.mjs +22 -22
- package/esm2020/mdc-table/module.mjs +5 -5
- package/esm2020/mdc-table/row.mjs +22 -22
- package/esm2020/mdc-table/table.mjs +9 -9
- package/esm2020/mdc-table/text-column.mjs +4 -4
- package/esm2020/mdc-tabs/ink-bar.mjs +93 -114
- package/esm2020/mdc-tabs/module.mjs +5 -5
- package/esm2020/mdc-tabs/tab-body.mjs +7 -7
- package/esm2020/mdc-tabs/tab-content.mjs +4 -4
- package/esm2020/mdc-tabs/tab-group.mjs +4 -4
- package/esm2020/mdc-tabs/tab-header.mjs +4 -4
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +10 -34
- package/esm2020/mdc-tabs/tab-label.mjs +4 -4
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +16 -25
- package/esm2020/mdc-tabs/tab.mjs +4 -4
- package/esm2020/mdc-tooltip/module.mjs +5 -5
- package/esm2020/mdc-tooltip/tooltip.mjs +8 -8
- package/esm2020/menubar/menubar-item.mjs +4 -4
- package/esm2020/menubar/menubar-module.mjs +5 -5
- package/esm2020/menubar/menubar.mjs +5 -5
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/table-directives.mjs +13 -13
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +5 -5
- package/esm2020/selection/selection-module.mjs +5 -5
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/column-resize.mjs.map +1 -1
- 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-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +42 -42
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +46 -46
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +34 -287
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +529 -785
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +10 -10
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +22 -22
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +118 -173
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +7 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +209 -395
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +16 -16
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +7 -7
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-progress-bar.mjs +41 -105
- package/fesm2015/mdc-progress-bar.mjs.map +1 -1
- package/fesm2015/mdc-progress-spinner.mjs +16 -63
- package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2015/mdc-radio.mjs +13 -47
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +10 -10
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle.mjs +20 -184
- package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +16 -16
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +23 -23
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-table.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +140 -192
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +11 -11
- package/fesm2015/mdc-tooltip.mjs.map +1 -1
- package/fesm2015/menubar.mjs +10 -10
- package/fesm2015/menubar.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/selection.mjs +20 -20
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/column-resize.mjs.map +1 -1
- 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-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +42 -42
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +46 -46
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +34 -287
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +442 -701
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +10 -10
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +22 -22
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +110 -172
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +7 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +208 -384
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +16 -16
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +7 -7
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-progress-bar.mjs +41 -104
- package/fesm2020/mdc-progress-bar.mjs.map +1 -1
- package/fesm2020/mdc-progress-spinner.mjs +16 -63
- package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2020/mdc-radio.mjs +13 -47
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +10 -10
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle.mjs +20 -183
- package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +16 -16
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +23 -23
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-table.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +138 -190
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +11 -11
- package/fesm2020/mdc-tooltip.mjs.map +1 -1
- package/fesm2020/menubar.mjs +10 -10
- package/fesm2020/menubar.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/selection.mjs +20 -20
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-checkbox/_checkbox-private.scss +10 -3
- package/mdc-checkbox/_checkbox-theme.scss +3 -3
- package/mdc-checkbox/index.d.ts +17 -138
- package/mdc-chips/index.d.ts +102 -162
- package/mdc-form-field/index.d.ts +12 -20
- package/mdc-list/_list-option-theme.scss +2 -2
- package/mdc-list/_list-theme.scss +3 -3
- package/mdc-list/index.d.ts +42 -66
- package/mdc-progress-bar/index.d.ts +14 -17
- package/mdc-progress-spinner/index.d.ts +5 -18
- package/mdc-radio/_radio-theme.scss +8 -2
- package/mdc-radio/index.d.ts +1 -17
- package/mdc-slide-toggle/index.d.ts +12 -73
- package/mdc-tabs/index.d.ts +14 -62
- 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 +55 -55
- package/esm2020/mdc-chips/chip-default-options.mjs +0 -11
- package/esm2020/mdc-chips/emit-event.mjs +0 -27
- package/esm2020/mdc-list/interactive-list-base.mjs +0 -196
package/mdc-chips/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _AbstractConstructor } from '@angular/material-experimental/mdc-core';
|
|
2
|
-
import { ActionInteractionEvent } from '@material/chips';
|
|
3
2
|
import { AfterContentInit } from '@angular/core';
|
|
4
3
|
import { AfterViewInit } from '@angular/core';
|
|
5
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
@@ -15,6 +14,7 @@ import { DoCheck } from '@angular/core';
|
|
|
15
14
|
import { ElementRef } from '@angular/core';
|
|
16
15
|
import { ErrorStateMatcher } from '@angular/material-experimental/mdc-core';
|
|
17
16
|
import { EventEmitter } from '@angular/core';
|
|
17
|
+
import { FocusKeyManager } from '@angular/cdk/a11y';
|
|
18
18
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
19
19
|
import { FormGroupDirective } from '@angular/forms';
|
|
20
20
|
import { HasTabIndex } from '@angular/material-experimental/mdc-core';
|
|
@@ -22,19 +22,10 @@ import * as i0 from '@angular/core';
|
|
|
22
22
|
import * as i11 from '@angular/material-experimental/mdc-core';
|
|
23
23
|
import * as i12 from '@angular/common';
|
|
24
24
|
import { InjectionToken } from '@angular/core';
|
|
25
|
-
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
26
25
|
import { MatChipAvatar as MatChipAvatar_2 } from '@angular/material-experimental/mdc-chips';
|
|
27
26
|
import { MatFormField } from '@angular/material-experimental/mdc-form-field';
|
|
28
27
|
import { MatFormFieldControl } from '@angular/material-experimental/mdc-form-field';
|
|
29
28
|
import { MatRipple } from '@angular/material-experimental/mdc-core';
|
|
30
|
-
import { MDCChipActionAdapter } from '@material/chips';
|
|
31
|
-
import { MDCChipActionFoundation } from '@material/chips';
|
|
32
|
-
import { MDCChipActionType } from '@material/chips';
|
|
33
|
-
import { MDCChipAdapter } from '@material/chips';
|
|
34
|
-
import { MDCChipFoundation } from '@material/chips';
|
|
35
|
-
import { MDCChipSetAdapter } from '@material/chips';
|
|
36
|
-
import { MDCChipSetFoundation } from '@material/chips';
|
|
37
|
-
import { MDCChipTrailingActionFoundation } from '@material/chips';
|
|
38
29
|
import { NgControl } from '@angular/forms';
|
|
39
30
|
import { NgForm } from '@angular/forms';
|
|
40
31
|
import { NgZone } from '@angular/core';
|
|
@@ -44,7 +35,6 @@ import { OnDestroy } from '@angular/core';
|
|
|
44
35
|
import { OnInit } from '@angular/core';
|
|
45
36
|
import { QueryList } from '@angular/core';
|
|
46
37
|
import { RippleGlobalOptions } from '@angular/material-experimental/mdc-core';
|
|
47
|
-
import { SimpleChanges } from '@angular/core';
|
|
48
38
|
import { Subject } from 'rxjs';
|
|
49
39
|
|
|
50
40
|
declare namespace i1 {
|
|
@@ -68,11 +58,8 @@ declare namespace i2 {
|
|
|
68
58
|
|
|
69
59
|
declare namespace i3 {
|
|
70
60
|
export {
|
|
71
|
-
MAT_CHIP_AVATAR,
|
|
72
61
|
MatChipAvatar,
|
|
73
|
-
MAT_CHIP_TRAILING_ICON,
|
|
74
62
|
MatChipTrailingIcon,
|
|
75
|
-
MAT_CHIP_REMOVE,
|
|
76
63
|
MatChipRemove
|
|
77
64
|
}
|
|
78
65
|
}
|
|
@@ -119,12 +106,17 @@ declare namespace i9 {
|
|
|
119
106
|
}
|
|
120
107
|
}
|
|
121
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Injection token used to avoid a circular dependency between the `MatChip` and `MatChipAction`.
|
|
111
|
+
*/
|
|
112
|
+
export declare const MAT_CHIP: InjectionToken<unknown>;
|
|
113
|
+
|
|
122
114
|
/**
|
|
123
115
|
* Injection token that can be used to reference instances of `MatChipAvatar`. It serves as
|
|
124
116
|
* alternative token to the actual `MatChipAvatar` class which could cause unnecessary
|
|
125
117
|
* retention of the class and its directive metadata.
|
|
126
118
|
*/
|
|
127
|
-
export declare const MAT_CHIP_AVATAR: InjectionToken<
|
|
119
|
+
export declare const MAT_CHIP_AVATAR: InjectionToken<unknown>;
|
|
128
120
|
|
|
129
121
|
/**
|
|
130
122
|
* Provider Expression that allows mat-chip-listbox to register as a ControlValueAccessor.
|
|
@@ -138,14 +130,14 @@ export declare const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any;
|
|
|
138
130
|
* alternative token to the actual `MatChipRemove` class which could cause unnecessary
|
|
139
131
|
* retention of the class and its directive metadata.
|
|
140
132
|
*/
|
|
141
|
-
export declare const MAT_CHIP_REMOVE: InjectionToken<
|
|
133
|
+
export declare const MAT_CHIP_REMOVE: InjectionToken<unknown>;
|
|
142
134
|
|
|
143
135
|
/**
|
|
144
136
|
* Injection token that can be used to reference instances of `MatChipTrailingIcon`. It serves as
|
|
145
137
|
* alternative token to the actual `MatChipTrailingIcon` class which could cause unnecessary
|
|
146
138
|
* retention of the class and its directive metadata.
|
|
147
139
|
*/
|
|
148
|
-
export declare const MAT_CHIP_TRAILING_ICON: InjectionToken<
|
|
140
|
+
export declare const MAT_CHIP_TRAILING_ICON: InjectionToken<unknown>;
|
|
149
141
|
|
|
150
142
|
/** Injection token to be used to override the default options for the chips module. */
|
|
151
143
|
export declare const MAT_CHIPS_DEFAULT_OPTIONS: InjectionToken<MatChipsDefaultOptions>;
|
|
@@ -159,7 +151,6 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
159
151
|
_changeDetectorRef: ChangeDetectorRef;
|
|
160
152
|
protected _ngZone: NgZone;
|
|
161
153
|
private _focusMonitor;
|
|
162
|
-
private _dir;
|
|
163
154
|
private _globalRippleOptions?;
|
|
164
155
|
protected _document: Document;
|
|
165
156
|
/** Whether the ripple is centered on the chip. */
|
|
@@ -173,7 +164,7 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
173
164
|
/** Role for the root of the chip. */
|
|
174
165
|
role: string | null;
|
|
175
166
|
/** Whether the chip has focus. */
|
|
176
|
-
|
|
167
|
+
private _hasFocusInternal;
|
|
177
168
|
/** Whether moving focus into the chip is pending. */
|
|
178
169
|
private _pendingFocus;
|
|
179
170
|
/** Whether animations for the chip are enabled. */
|
|
@@ -183,9 +174,6 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
183
174
|
id: string;
|
|
184
175
|
/** ARIA label for the content of the chip. */
|
|
185
176
|
ariaLabel: string | null;
|
|
186
|
-
get disabled(): boolean;
|
|
187
|
-
set disabled(value: BooleanInput);
|
|
188
|
-
protected _disabled: boolean;
|
|
189
177
|
private _textElement;
|
|
190
178
|
/**
|
|
191
179
|
* The value of the chip. Defaults to the content inside
|
|
@@ -210,8 +198,6 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
210
198
|
readonly removed: EventEmitter<MatChipEvent>;
|
|
211
199
|
/** Emitted when the chip is destroyed. */
|
|
212
200
|
readonly destroyed: EventEmitter<MatChipEvent>;
|
|
213
|
-
/** The MDC foundation containing business logic for MDC chip. */
|
|
214
|
-
_chipFoundation: MDCChipFoundation;
|
|
215
201
|
/** The unstyled chip selector for this component. */
|
|
216
202
|
protected basicChipAttrName: string;
|
|
217
203
|
/** The chip's leading icon. */
|
|
@@ -224,12 +210,7 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
224
210
|
ripple: MatRipple;
|
|
225
211
|
/** Action receiving the primary set of user interactions. */
|
|
226
212
|
primaryAction: MatChipAction;
|
|
227
|
-
|
|
228
|
-
* Implementation of the MDC chip adapter interface.
|
|
229
|
-
* These methods are called by the chip foundation.
|
|
230
|
-
*/
|
|
231
|
-
protected _chipAdapter: MDCChipAdapter;
|
|
232
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, _dir: Directionality, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
213
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
|
|
233
214
|
ngAfterViewInit(): void;
|
|
234
215
|
ngOnDestroy(): void;
|
|
235
216
|
/**
|
|
@@ -238,54 +219,62 @@ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit,
|
|
|
238
219
|
* Informs any listeners of the removal request. Does not remove the chip from the DOM.
|
|
239
220
|
*/
|
|
240
221
|
remove(): void;
|
|
241
|
-
/** Sets whether the given CSS class should be applied to the MDC chip. */
|
|
242
|
-
private _setMdcClass;
|
|
243
222
|
/** Whether or not the ripple should be disabled. */
|
|
244
223
|
_isRippleDisabled(): boolean;
|
|
245
|
-
|
|
246
|
-
_getFoundation(): MDCChipFoundation;
|
|
224
|
+
/** Returns whether the chip has a trailing icon. */
|
|
247
225
|
_hasTrailingIcon(): boolean;
|
|
226
|
+
/** Handles keyboard events on the chip. */
|
|
227
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
248
228
|
/** Allows for programmatic focusing of the chip. */
|
|
249
229
|
focus(): void;
|
|
250
|
-
/**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
230
|
+
/** Gets the action that contains a specific target node. */
|
|
231
|
+
_getSourceAction(target: Node): MatChipAction | undefined;
|
|
232
|
+
/** Gets all of the actions within the chip. */
|
|
233
|
+
_getActions(): MatChipAction[];
|
|
234
|
+
/** Handles interactions with the primary action of the chip. */
|
|
235
|
+
_handlePrimaryActionInteraction(): void;
|
|
236
|
+
/** Starts the focus monitoring process on the chip. */
|
|
237
|
+
private _monitorFocus;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, mat-chip", ["matChip"], { "color": "color"; "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "role": "role"; "id": "id"; "ariaLabel": "aria-label"; "value": "value"; "removable": "removable"; "highlighted": "highlighted"; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false>;
|
|
258
240
|
}
|
|
259
241
|
|
|
260
242
|
/**
|
|
261
|
-
*
|
|
243
|
+
* Section within a chip.
|
|
262
244
|
* @docs-private
|
|
263
245
|
*/
|
|
264
|
-
declare class MatChipAction extends _MatChipActionMixinBase implements
|
|
265
|
-
_elementRef: ElementRef
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
246
|
+
declare class MatChipAction extends _MatChipActionMixinBase implements HasTabIndex {
|
|
247
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
248
|
+
protected _parentChip: {
|
|
249
|
+
_handlePrimaryActionInteraction(): void;
|
|
250
|
+
remove(): void;
|
|
251
|
+
disabled: boolean;
|
|
252
|
+
};
|
|
270
253
|
/** Whether the action is interactive. */
|
|
271
254
|
isInteractive: boolean;
|
|
255
|
+
/** Whether this is the primary action in the chip. */
|
|
256
|
+
_isPrimary: boolean;
|
|
257
|
+
/** Whether the action is disabled. */
|
|
258
|
+
get disabled(): boolean;
|
|
259
|
+
set disabled(value: BooleanInput);
|
|
260
|
+
private _disabled;
|
|
261
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _parentChip: {
|
|
262
|
+
_handlePrimaryActionInteraction(): void;
|
|
263
|
+
remove(): void;
|
|
264
|
+
disabled: boolean;
|
|
265
|
+
});
|
|
266
|
+
focus(): void;
|
|
272
267
|
_handleClick(event: MouseEvent): void;
|
|
273
268
|
_handleKeydown(event: KeyboardEvent): void;
|
|
274
|
-
protected _createFoundation(adapter: MDCChipActionAdapter): MDCChipActionFoundation;
|
|
275
|
-
constructor(_elementRef: ElementRef, _document: any, _changeDetectorRef: ChangeDetectorRef);
|
|
276
|
-
ngAfterViewInit(): void;
|
|
277
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
278
|
-
ngOnDestroy(): void;
|
|
279
|
-
focus(): void;
|
|
280
|
-
_getFoundation(): MDCChipActionFoundation;
|
|
281
|
-
_updateTabindex(value: number): void;
|
|
282
269
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAction, never>;
|
|
283
270
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "isInteractive": "isInteractive"; }, {}, never, never, false>;
|
|
284
271
|
}
|
|
285
272
|
|
|
286
|
-
declare
|
|
287
|
-
|
|
288
|
-
}
|
|
273
|
+
declare abstract class _MatChipActionBase {
|
|
274
|
+
abstract disabled: boolean;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare const _MatChipActionMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & typeof _MatChipActionBase;
|
|
289
278
|
|
|
290
279
|
/**
|
|
291
280
|
* Directive to add CSS classes to chip leading icon.
|
|
@@ -296,16 +285,6 @@ export declare class MatChipAvatar {
|
|
|
296
285
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAvatar, "mat-chip-avatar, [matChipAvatar]", never, {}, {}, never, never, false>;
|
|
297
286
|
}
|
|
298
287
|
|
|
299
|
-
/**
|
|
300
|
-
* Boilerplate for applying mixins to MatChip.
|
|
301
|
-
* @docs-private
|
|
302
|
-
*/
|
|
303
|
-
declare abstract class MatChipBase {
|
|
304
|
-
_elementRef: ElementRef;
|
|
305
|
-
abstract disabled: boolean;
|
|
306
|
-
constructor(_elementRef: ElementRef);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
288
|
/** Represents an event fired on an individual `mat-chip` when it is edited. */
|
|
310
289
|
export declare interface MatChipEditedEvent extends MatChipEvent {
|
|
311
290
|
/** The final edit value. */
|
|
@@ -410,8 +389,6 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
410
389
|
errorStateMatcher: ErrorStateMatcher;
|
|
411
390
|
/** Combined stream of all of the child chips' blur events. */
|
|
412
391
|
get chipBlurChanges(): Observable<MatChipEvent>;
|
|
413
|
-
/** Combined stream of all of the child chips' focus events. */
|
|
414
|
-
get chipFocusChanges(): Observable<MatChipEvent>;
|
|
415
392
|
/** Emits when the chip grid value has been changed by the user. */
|
|
416
393
|
readonly change: EventEmitter<MatChipGridChange>;
|
|
417
394
|
/**
|
|
@@ -421,7 +398,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
421
398
|
*/
|
|
422
399
|
readonly valueChange: EventEmitter<any>;
|
|
423
400
|
_chips: QueryList<MatChipRow>;
|
|
424
|
-
constructor(
|
|
401
|
+
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngControl: NgControl);
|
|
425
402
|
ngAfterContentInit(): void;
|
|
426
403
|
ngAfterViewInit(): void;
|
|
427
404
|
ngDoCheck(): void;
|
|
@@ -472,17 +449,13 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
472
449
|
*/
|
|
473
450
|
protected _allowFocusEscape(): void;
|
|
474
451
|
/** Handles custom keyboard events. */
|
|
475
|
-
|
|
452
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
476
453
|
_focusLastChip(): void;
|
|
477
454
|
/** Emits change event to set the model value. */
|
|
478
455
|
private _propagateChanges;
|
|
479
456
|
/** Mark the field as touched */
|
|
480
457
|
private _markAsTouched;
|
|
481
|
-
|
|
482
|
-
* If the amount of chips changed, we need to focus the next closest chip.
|
|
483
|
-
*/
|
|
484
|
-
private _updateFocusForDestroyedChips;
|
|
485
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
458
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
|
|
486
459
|
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"], ["*"], false>;
|
|
487
460
|
}
|
|
488
461
|
|
|
@@ -506,7 +479,7 @@ declare class MatChipGridBase extends MatChipSet {
|
|
|
506
479
|
* @docs-private
|
|
507
480
|
*/
|
|
508
481
|
readonly stateChanges: Subject<void>;
|
|
509
|
-
constructor(
|
|
482
|
+
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, _defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective,
|
|
510
483
|
/**
|
|
511
484
|
* Form control bound to the component.
|
|
512
485
|
* Implemented as part of `MatFormFieldControl`.
|
|
@@ -651,17 +624,13 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
651
624
|
* is a value from an option. The second is a value from the selection. A boolean
|
|
652
625
|
* should be returned.
|
|
653
626
|
*/
|
|
654
|
-
|
|
655
|
-
set compareWith(fn: (o1: any, o2: any) => boolean);
|
|
656
|
-
private _compareWith;
|
|
627
|
+
compareWith: (o1: any, o2: any) => boolean;
|
|
657
628
|
/** Whether this chip listbox is required. */
|
|
658
629
|
get required(): boolean;
|
|
659
630
|
set required(value: BooleanInput);
|
|
660
631
|
protected _required: boolean;
|
|
661
632
|
/** Combined stream of all of the child chips' selection change events. */
|
|
662
633
|
get chipSelectionChanges(): Observable<MatChipSelectionChange>;
|
|
663
|
-
/** Combined stream of all of the child chips' focus events. */
|
|
664
|
-
get chipFocusChanges(): Observable<MatChipEvent>;
|
|
665
634
|
/** Combined stream of all of the child chips' blur events. */
|
|
666
635
|
get chipBlurChanges(): Observable<MatChipEvent>;
|
|
667
636
|
/** The value of the listbox, which is the combined value of the selected chips. */
|
|
@@ -706,10 +675,6 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
706
675
|
private _markAsTouched;
|
|
707
676
|
/** Emits change event to set the model value. */
|
|
708
677
|
private _propagateChanges;
|
|
709
|
-
/**
|
|
710
|
-
* Initializes the chip listbox selection state to reflect any chips that were preselected.
|
|
711
|
-
*/
|
|
712
|
-
private _initializeSelection;
|
|
713
678
|
/**
|
|
714
679
|
* Deselects every chip in the listbox.
|
|
715
680
|
* @param skip Chip that should not be deselected.
|
|
@@ -724,11 +689,6 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
|
|
|
724
689
|
private _syncListboxProperties;
|
|
725
690
|
/** Returns the first selected chip in this listbox, or undefined if no chips are selected. */
|
|
726
691
|
private _getFirstSelectedChip;
|
|
727
|
-
/**
|
|
728
|
-
* If the amount of chips changed, we need to update the
|
|
729
|
-
* key manager state and focus the next closest chip.
|
|
730
|
-
*/
|
|
731
|
-
private _updateFocusForDestroyedChips;
|
|
732
692
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipListbox, never>;
|
|
733
693
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "tabIndex": "tabIndex"; "multiple": "multiple"; "ariaOrientation": "aria-orientation"; "selectable": "selectable"; "compareWith": "compareWith"; "required": "required"; "value": "value"; }, { "change": "change"; }, ["_chips"], ["*"], false>;
|
|
734
694
|
}
|
|
@@ -746,20 +706,21 @@ export declare class MatChipListboxChange {
|
|
|
746
706
|
value: any);
|
|
747
707
|
}
|
|
748
708
|
|
|
749
|
-
|
|
709
|
+
/**
|
|
710
|
+
* Boilerplate for applying mixins to MatChip.
|
|
711
|
+
* @docs-private
|
|
712
|
+
*/
|
|
713
|
+
declare const _MatChipMixinBase: _Constructor<HasTabIndex> & _AbstractConstructor<HasTabIndex> & _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & {
|
|
714
|
+
new (_elementRef: ElementRef<HTMLElement>): {
|
|
715
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
716
|
+
};
|
|
717
|
+
};
|
|
750
718
|
|
|
751
719
|
/**
|
|
752
720
|
* An extension of the MatChip component that supports chip selection.
|
|
753
721
|
* Used with MatChipListbox.
|
|
754
722
|
*/
|
|
755
|
-
export declare class MatChipOption extends MatChip implements OnInit
|
|
756
|
-
/** Whether the component is done initializing. */
|
|
757
|
-
private _isInitialized;
|
|
758
|
-
/**
|
|
759
|
-
* Selected state that was assigned before the component was initializing
|
|
760
|
-
* and which needs to be synced back up with the foundation.
|
|
761
|
-
*/
|
|
762
|
-
private _pendingSelectedState;
|
|
723
|
+
export declare class MatChipOption extends MatChip implements OnInit {
|
|
763
724
|
/** Whether the chip list is selectable. */
|
|
764
725
|
chipListSelectable: boolean;
|
|
765
726
|
/** Whether the chip list is in multi-selection mode. */
|
|
@@ -777,6 +738,7 @@ export declare class MatChipOption extends MatChip implements OnInit, AfterViewI
|
|
|
777
738
|
/** Whether the chip is selected. */
|
|
778
739
|
get selected(): boolean;
|
|
779
740
|
set selected(value: BooleanInput);
|
|
741
|
+
private _selected;
|
|
780
742
|
/** The ARIA selected applied to the chip. */
|
|
781
743
|
get ariaSelected(): string | null;
|
|
782
744
|
/** The unstyled chip selector for this component. */
|
|
@@ -784,7 +746,6 @@ export declare class MatChipOption extends MatChip implements OnInit, AfterViewI
|
|
|
784
746
|
/** Emitted when the chip is selected or deselected. */
|
|
785
747
|
readonly selectionChange: EventEmitter<MatChipSelectionChange>;
|
|
786
748
|
ngOnInit(): void;
|
|
787
|
-
ngAfterViewInit(): void;
|
|
788
749
|
/** Selects the chip. */
|
|
789
750
|
select(): void;
|
|
790
751
|
/** Deselects the chip. */
|
|
@@ -793,13 +754,11 @@ export declare class MatChipOption extends MatChip implements OnInit, AfterViewI
|
|
|
793
754
|
selectViaInteraction(): void;
|
|
794
755
|
/** Toggles the current selected state of this chip. */
|
|
795
756
|
toggleSelected(isUserInput?: boolean): boolean;
|
|
796
|
-
|
|
797
|
-
_blur(): void;
|
|
798
|
-
protected _onChipInteraction(event: ActionInteractionEvent): void;
|
|
757
|
+
_handlePrimaryActionInteraction(): void;
|
|
799
758
|
_hasLeadingGraphic(): MatChipAvatar_2;
|
|
800
|
-
|
|
759
|
+
_setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean): void;
|
|
801
760
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipOption, never>;
|
|
802
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, mat-chip-option", never, { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "selectable": "selectable"; "selected": "selected"; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false>;
|
|
761
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, mat-chip-option", never, { "color": "color"; "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "selectable": "selectable"; "selected": "selected"; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false>;
|
|
803
762
|
}
|
|
804
763
|
|
|
805
764
|
/**
|
|
@@ -818,7 +777,7 @@ export declare class MatChipOption extends MatChip implements OnInit, AfterViewI
|
|
|
818
777
|
* ```
|
|
819
778
|
*/
|
|
820
779
|
export declare class MatChipRemove extends MatChipAction {
|
|
821
|
-
|
|
780
|
+
_isPrimary: boolean;
|
|
822
781
|
_handleClick(event: MouseEvent): void;
|
|
823
782
|
_handleKeydown(event: KeyboardEvent): void;
|
|
824
783
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRemove, never>;
|
|
@@ -839,25 +798,12 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
|
|
|
839
798
|
/** The projected chip edit input. */
|
|
840
799
|
contentEditInput?: MatChipEditInput;
|
|
841
800
|
_isEditing: boolean;
|
|
842
|
-
|
|
843
|
-
* Timeout used to give some time between `focusin` and `focusout`
|
|
844
|
-
* in order to determine whether focus has left the chip.
|
|
845
|
-
*/
|
|
846
|
-
private _focusoutTimeout;
|
|
847
|
-
constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, ngZone: NgZone, focusMonitor: FocusMonitor, _document: any, dir: Directionality, animationMode?: string, globalRippleOptions?: RippleGlobalOptions, tabIndex?: string);
|
|
801
|
+
constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, ngZone: NgZone, focusMonitor: FocusMonitor, _document: any, animationMode?: string, globalRippleOptions?: RippleGlobalOptions, tabIndex?: string);
|
|
848
802
|
_hasTrailingIcon(): boolean;
|
|
849
|
-
/**
|
|
850
|
-
* Emits a blur event when one of the gridcells loses focus, unless focus moved
|
|
851
|
-
* to the other gridcell.
|
|
852
|
-
*/
|
|
853
|
-
_focusout(): void;
|
|
854
|
-
/** Records that the chip has focus when one of the gridcells is focused. */
|
|
855
|
-
_focusin(): void;
|
|
856
803
|
/** Sends focus to the first gridcell when the user clicks anywhere inside the chip. */
|
|
857
804
|
_mousedown(event: MouseEvent): void;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
_doubleclick(): void;
|
|
805
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
806
|
+
_doubleclick(event: MouseEvent): void;
|
|
861
807
|
private _startEditing;
|
|
862
808
|
private _onEditFinish;
|
|
863
809
|
/**
|
|
@@ -865,8 +811,8 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
|
|
|
865
811
|
* two values is guaranteed to be defined.
|
|
866
812
|
*/
|
|
867
813
|
private _getEditInput;
|
|
868
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, {
|
|
869
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, mat-basic-chip-row", never, { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "editable": "editable"; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "*", "[matChipEditInput]", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false>;
|
|
814
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
815
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, mat-basic-chip-row", never, { "color": "color"; "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "editable": "editable"; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "*", "[matChipEditInput]", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false>;
|
|
870
816
|
}
|
|
871
817
|
|
|
872
818
|
/** Default options, for the chips module, that can be overridden. */
|
|
@@ -897,37 +843,22 @@ export declare class MatChipSelectionChange {
|
|
|
897
843
|
*
|
|
898
844
|
* Extended by MatChipListbox and MatChipGrid for different interaction patterns.
|
|
899
845
|
*/
|
|
900
|
-
export declare class MatChipSet extends _MatChipSetMixinBase implements
|
|
901
|
-
private _liveAnnouncer;
|
|
902
|
-
private _document;
|
|
846
|
+
export declare class MatChipSet extends _MatChipSetMixinBase implements AfterViewInit, HasTabIndex, OnDestroy {
|
|
903
847
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
904
848
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
protected _lastDestroyedChipIndex: number | null;
|
|
911
|
-
/** The MDC foundation containing business logic for MDC chip-set. */
|
|
912
|
-
protected _chipSetFoundation: MDCChipSetFoundation;
|
|
849
|
+
private _dir;
|
|
850
|
+
/** Index of the last destroyed chip that had focus. */
|
|
851
|
+
private _lastDestroyedFocusedChipIndex;
|
|
852
|
+
/** Used to manage focus within the chip list. */
|
|
853
|
+
protected _keyManager: FocusKeyManager<MatChipAction>;
|
|
913
854
|
/** Subject that emits when the component has been destroyed. */
|
|
914
855
|
protected _destroyed: Subject<void>;
|
|
915
856
|
/** Role to use if it hasn't been overwritten by the user. */
|
|
916
857
|
protected _defaultRole: string;
|
|
858
|
+
/** Combined stream of all of the child chips' focus events. */
|
|
859
|
+
get chipFocusChanges(): Observable<MatChipEvent>;
|
|
917
860
|
/** Combined stream of all of the child chips' remove events. */
|
|
918
861
|
get chipDestroyedChanges(): Observable<MatChipEvent>;
|
|
919
|
-
/**
|
|
920
|
-
* Implementation of the MDC chip-set adapter interface.
|
|
921
|
-
* These methods are called by the chip set foundation.
|
|
922
|
-
*/
|
|
923
|
-
protected _chipSetAdapter: MDCChipSetAdapter;
|
|
924
|
-
/**
|
|
925
|
-
* Map from class to whether the class is enabled.
|
|
926
|
-
* Enabled classes are set on the MDC chip-set div.
|
|
927
|
-
*/
|
|
928
|
-
_mdcClasses: {
|
|
929
|
-
[key: string]: boolean;
|
|
930
|
-
};
|
|
931
862
|
/** Whether the chip set is disabled. */
|
|
932
863
|
get disabled(): boolean;
|
|
933
864
|
set disabled(value: BooleanInput);
|
|
@@ -942,9 +873,10 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
942
873
|
get focused(): boolean;
|
|
943
874
|
/** The chips that are part of this chip set. */
|
|
944
875
|
_chips: QueryList<MatChip>;
|
|
945
|
-
|
|
876
|
+
/** Flat list of all the actions contained within the chips. */
|
|
877
|
+
_chipActions: QueryList<MatChipAction>;
|
|
878
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _dir: Directionality);
|
|
946
879
|
ngAfterViewInit(): void;
|
|
947
|
-
ngAfterContentInit(): void;
|
|
948
880
|
ngOnDestroy(): void;
|
|
949
881
|
/** Checks whether any of the chips is focused. */
|
|
950
882
|
protected _hasFocusedChip(): boolean;
|
|
@@ -952,6 +884,8 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
952
884
|
protected _syncChipsState(): void;
|
|
953
885
|
/** Dummy method for subclasses to override. Base chip set cannot be focused. */
|
|
954
886
|
focus(): void;
|
|
887
|
+
/** Handles keyboard events on the chip set. */
|
|
888
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
955
889
|
/**
|
|
956
890
|
* Utility to ensure all indexes are valid.
|
|
957
891
|
*
|
|
@@ -959,8 +893,6 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
959
893
|
* @returns True if the index is valid for our list of chips.
|
|
960
894
|
*/
|
|
961
895
|
protected _isValidIndex(index: number): boolean;
|
|
962
|
-
/** Checks whether an event comes from inside a chip element. */
|
|
963
|
-
protected _originatesFromChip(event: Event): boolean;
|
|
964
896
|
/**
|
|
965
897
|
* Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the
|
|
966
898
|
* user to tab out of it. This prevents the grid from capturing focus and redirecting
|
|
@@ -972,12 +904,20 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
972
904
|
* The stream will automatically incorporate any newly-added chips.
|
|
973
905
|
*/
|
|
974
906
|
protected _getChipStream<T, C extends MatChip = MatChip>(mappingFunction: (chip: C) => Observable<T>): Observable<T>;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
private
|
|
979
|
-
|
|
980
|
-
|
|
907
|
+
/** Checks whether an event comes from inside a chip element. */
|
|
908
|
+
protected _originatesFromChip(event: Event): boolean;
|
|
909
|
+
/** Sets up the chip set's focus management logic. */
|
|
910
|
+
private _setUpFocusManagement;
|
|
911
|
+
/** Listens to changes in the chip set and syncs up the state of the individual chips. */
|
|
912
|
+
private _trackChipSetChanges;
|
|
913
|
+
/** Starts tracking the destroyed chips in order to capture the focused one. */
|
|
914
|
+
private _trackDestroyedFocusedChip;
|
|
915
|
+
/**
|
|
916
|
+
* Finds the next appropriate chip to move focus to,
|
|
917
|
+
* if the currently-focused chip is destroyed.
|
|
918
|
+
*/
|
|
919
|
+
private _redirectDestroyedChipFocus;
|
|
920
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
|
|
981
921
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": "disabled"; "role": "role"; }, {}, ["_chips"], ["*"], false>;
|
|
982
922
|
}
|
|
983
923
|
|
|
@@ -1025,7 +965,7 @@ export declare class MatChipTrailingIcon extends MatChipAction {
|
|
|
1025
965
|
* but we support non-interactive trailing icons.
|
|
1026
966
|
*/
|
|
1027
967
|
isInteractive: boolean;
|
|
1028
|
-
|
|
968
|
+
_isPrimary: boolean;
|
|
1029
969
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipTrailingIcon, never>;
|
|
1030
970
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipTrailingIcon, "mat-chip-trailing-icon, [matChipTrailingIcon]", never, {}, {}, never, never, false>;
|
|
1031
971
|
}
|
|
@@ -19,9 +19,7 @@ import { _MAT_HINT } from '@angular/material/form-field';
|
|
|
19
19
|
import { matFormFieldAnimations } from '@angular/material/form-field';
|
|
20
20
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
21
21
|
import { MatPlaceholder } from '@angular/material/form-field';
|
|
22
|
-
import { MDCLineRipple } from '@material/line-ripple';
|
|
23
22
|
import { NgZone } from '@angular/core';
|
|
24
|
-
import { OnChanges } from '@angular/core';
|
|
25
23
|
import { OnDestroy } from '@angular/core';
|
|
26
24
|
import { Platform } from '@angular/cdk/platform';
|
|
27
25
|
import { QueryList } from '@angular/core';
|
|
@@ -202,9 +200,7 @@ export declare class MatFormField implements AfterContentInit, AfterContentCheck
|
|
|
202
200
|
private _destroyed;
|
|
203
201
|
private _isFocused;
|
|
204
202
|
private _explicitFormFieldControl;
|
|
205
|
-
private _foundation;
|
|
206
203
|
private _needsOutlineLabelOffsetUpdateOnStable;
|
|
207
|
-
private _adapter;
|
|
208
204
|
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _dir: Directionality, _platform: Platform, _defaults?: MatFormFieldDefaultOptions | undefined, _animationMode?: string | undefined, _document?: any);
|
|
209
205
|
ngAfterViewInit(): void;
|
|
210
206
|
ngAfterContentInit(): void;
|
|
@@ -341,7 +337,7 @@ declare class MatFormFieldFloatingLabel {
|
|
|
341
337
|
private _elementRef;
|
|
342
338
|
/** Whether the label is floating. */
|
|
343
339
|
floating: boolean;
|
|
344
|
-
constructor(_elementRef: ElementRef);
|
|
340
|
+
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
345
341
|
/** Gets the width of the label. Used for the outline notch. */
|
|
346
342
|
getWidth(): number;
|
|
347
343
|
/** Gets the HTML element for the floating label. */
|
|
@@ -358,8 +354,12 @@ declare class MatFormFieldFloatingLabel {
|
|
|
358
354
|
* The directive sets up the styles for the line-ripple and provides an API for activating
|
|
359
355
|
* and deactivating the line-ripple.
|
|
360
356
|
*/
|
|
361
|
-
declare class MatFormFieldLineRipple
|
|
362
|
-
|
|
357
|
+
declare class MatFormFieldLineRipple implements OnDestroy {
|
|
358
|
+
private _elementRef;
|
|
359
|
+
constructor(_elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
|
|
360
|
+
activate(): void;
|
|
361
|
+
deactivate(): void;
|
|
362
|
+
private _handleTransitionEnd;
|
|
363
363
|
ngOnDestroy(): void;
|
|
364
364
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldLineRipple, never>;
|
|
365
365
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldLineRipple, "div[matFormFieldLineRipple]", never, {}, {}, never, never, false>;
|
|
@@ -372,29 +372,21 @@ export declare class MatFormFieldModule {
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
|
-
* Internal component that creates an instance of the MDC notched-outline component.
|
|
376
|
-
* a directive allows us to conditionally render a notched-outline in the template without
|
|
377
|
-
* having to manually create and destroy the `MDCNotchedOutline` component whenever the
|
|
378
|
-
* appearance changes.
|
|
375
|
+
* Internal component that creates an instance of the MDC notched-outline component.
|
|
379
376
|
*
|
|
380
377
|
* The component sets up the HTML structure and styles for the notched-outline. It provides
|
|
381
378
|
* inputs to toggle the notch state and width.
|
|
382
379
|
*/
|
|
383
|
-
declare class MatFormFieldNotchedOutline implements AfterViewInit
|
|
380
|
+
declare class MatFormFieldNotchedOutline implements AfterViewInit {
|
|
384
381
|
private _elementRef;
|
|
385
|
-
private
|
|
382
|
+
private _ngZone;
|
|
386
383
|
/** Width of the notch. */
|
|
387
384
|
width: number;
|
|
388
385
|
/** Whether the notch should be opened. */
|
|
389
386
|
open: boolean;
|
|
390
|
-
|
|
391
|
-
private _mdcNotchedOutline;
|
|
392
|
-
constructor(_elementRef: ElementRef, _platform: Platform);
|
|
387
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
|
|
393
388
|
ngAfterViewInit(): void;
|
|
394
|
-
|
|
395
|
-
ngOnDestroy(): void;
|
|
396
|
-
/** Synchronizes the notched outline state to be based on the `width` and `open` inputs. */
|
|
397
|
-
private _syncNotchedOutlineState;
|
|
389
|
+
_getNotchWidth(): string | null;
|
|
398
390
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldNotchedOutline, never>;
|
|
399
391
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormFieldNotchedOutline, "div[matFormFieldNotchedOutline]", never, { "width": "matFormFieldNotchedOutlineWidth"; "open": "matFormFieldNotchedOutlineOpen"; }, {}, never, ["*"], false>;
|
|
400
392
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
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, $mdc-color) {
|
|
9
|
+
@mixin private-list-option-color-override($color-config, $color, $mdc-color) {
|
|
10
10
|
& .mdc-list-item__start, & .mdc-list-item__end {
|
|
11
|
-
@include checkbox-private.private-checkbox-styles-with-color($color, $mdc-color);
|
|
11
|
+
@include checkbox-private.private-checkbox-styles-with-color($color-config, $color, $mdc-color);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|