@@ -35,6 +35,9 @@ export const MAT_CHIP: InjectionToken<unknown>;
35
35
// @public
36
36
export const MAT_CHIP_AVATAR: InjectionToken <unknown >;
37
37
38
+ // @public
39
+ export const MAT_CHIP_EDIT: InjectionToken <unknown >;
40
+
38
41
// @public
39
42
export const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any ;
40
43
@@ -50,6 +53,7 @@ export const MAT_CHIPS_DEFAULT_OPTIONS: InjectionToken<MatChipsDefaultOptions>;
50
53
// @public
51
54
export class MatChip implements OnInit , AfterViewInit , AfterContentInit , DoCheck , OnDestroy {
52
55
constructor (... args : unknown []);
56
+ protected _allEditIcons: QueryList <MatChipEdit >;
53
57
protected _allLeadingIcons: QueryList <MatChipAvatar >;
54
58
protected _allRemoveIcons: QueryList <MatChipRemove >;
55
59
protected _allTrailingIcons: QueryList <MatChipTrailingIcon >;
@@ -68,6 +72,8 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
68
72
disableRipple: boolean ;
69
73
// (undocumented)
70
74
protected _document: Document ;
75
+ _edit(event : Event ): void ;
76
+ editIcon: MatChipEdit ;
71
77
// (undocumented)
72
78
_elementRef: ElementRef <HTMLElement >;
73
79
focus(): void ;
@@ -119,7 +125,7 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
119
125
// (undocumented)
120
126
protected _value: any ;
121
127
// (undocumented)
122
- static ɵcmp: i0 .ɵɵComponentDeclaration <MatChip , " mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]" , [" matChip" ], { " role" : { " alias" : " role" ; " required" : false ; }; " id" : { " alias" : " id" ; " required" : false ; }; " ariaLabel" : { " alias" : " aria-label" ; " required" : false ; }; " ariaDescription" : { " alias" : " aria-description" ; " required" : false ; }; " value" : { " alias" : " value" ; " required" : false ; }; " color" : { " alias" : " color" ; " required" : false ; }; " removable" : { " alias" : " removable" ; " required" : false ; }; " highlighted" : { " alias" : " highlighted" ; " required" : false ; }; " disableRipple" : { " alias" : " disableRipple" ; " required" : false ; }; " disabled" : { " alias" : " disabled" ; " required" : false ; }; }, { " removed" : " removed" ; " destroyed" : " destroyed" ; }, [" leadingIcon" , " trailingIcon" , " removeIcon" , " _allLeadingIcons" , " _allTrailingIcons" , " _allRemoveIcons" ], [" mat-chip-avatar, [matChipAvatar]" , " *" , " mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]" ], true , never >;
128
+ static ɵcmp: i0 .ɵɵComponentDeclaration <MatChip , " mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]" , [" matChip" ], { " role" : { " alias" : " role" ; " required" : false ; }; " id" : { " alias" : " id" ; " required" : false ; }; " ariaLabel" : { " alias" : " aria-label" ; " required" : false ; }; " ariaDescription" : { " alias" : " aria-description" ; " required" : false ; }; " value" : { " alias" : " value" ; " required" : false ; }; " color" : { " alias" : " color" ; " required" : false ; }; " removable" : { " alias" : " removable" ; " required" : false ; }; " highlighted" : { " alias" : " highlighted" ; " required" : false ; }; " disableRipple" : { " alias" : " disableRipple" ; " required" : false ; }; " disabled" : { " alias" : " disabled" ; " required" : false ; }; }, { " removed" : " removed" ; " destroyed" : " destroyed" ; }, [" leadingIcon" , " editIcon " , " trailingIcon" , " removeIcon" , " _allLeadingIcons" , " _allTrailingIcons" , " _allEditIcons " , " _allRemoveIcons" ], [" mat-chip-avatar, [matChipAvatar]" , " *" , " mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]" ], true , never >;
123
129
// (undocumented)
124
130
static ɵfac: i0 .ɵɵFactoryDeclaration <MatChip , never >;
125
131
}
@@ -132,6 +138,20 @@ export class MatChipAvatar {
132
138
static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipAvatar , never >;
133
139
}
134
140
141
+ // @public
142
+ export class MatChipEdit extends MatChipAction {
143
+ // (undocumented)
144
+ _handleClick(event : MouseEvent ): void ;
145
+ // (undocumented)
146
+ _handleKeydown(event : KeyboardEvent ): void ;
147
+ // (undocumented)
148
+ _isPrimary: boolean ;
149
+ // (undocumented)
150
+ static ɵdir: i0 .ɵɵDirectiveDeclaration <MatChipEdit , " [matChipEdit]" , never , {}, {}, never , never , true , never >;
151
+ // (undocumented)
152
+ static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipEdit , never >;
153
+ }
154
+
135
155
// @public
136
156
export interface MatChipEditedEvent extends MatChipEvent {
137
157
value: string ;
@@ -407,6 +427,8 @@ export class MatChipRemove extends MatChipAction {
407
427
// (undocumented)
408
428
_isPrimary: boolean ;
409
429
// (undocumented)
430
+ _isTrailing: boolean ;
431
+ // (undocumented)
410
432
static ɵdir: i0 .ɵɵDirectiveDeclaration <MatChipRemove , " [matChipRemove]" , never , {}, {}, never , never , true , never >;
411
433
// (undocumented)
412
434
static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRemove , never >;
@@ -420,6 +442,8 @@ export class MatChipRow extends MatChip implements AfterViewInit {
420
442
contentEditInput? : MatChipEditInput ;
421
443
defaultEditInput? : MatChipEditInput ;
422
444
// (undocumented)
445
+ _edit(): void ;
446
+ // (undocumented)
423
447
editable: boolean ;
424
448
readonly edited: EventEmitter <MatChipEditedEvent >;
425
449
// (undocumented)
@@ -430,6 +454,8 @@ export class MatChipRow extends MatChip implements AfterViewInit {
430
454
// (undocumented)
431
455
_handleKeydown(event : KeyboardEvent ): void ;
432
456
// (undocumented)
457
+ protected _hasLeadingActionIcon(): boolean ;
458
+ // (undocumented)
433
459
_hasTrailingIcon(): boolean ;
434
460
// (undocumented)
435
461
_isEditing: boolean ;
@@ -438,7 +464,7 @@ export class MatChipRow extends MatChip implements AfterViewInit {
438
464
// (undocumented)
439
465
ngAfterViewInit(): void ;
440
466
// (undocumented)
441
- static ɵcmp: i0 .ɵɵComponentDeclaration <MatChipRow , " mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]" , never , { " editable" : { " alias" : " editable" ; " required" : false ; }; }, { " edited" : " edited" ; }, [" contentEditInput" ], [" mat-chip-avatar, [matChipAvatar]" , " [matChipEditInput]" , " *" , " mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]" ], true , never >;
467
+ static ɵcmp: i0 .ɵɵComponentDeclaration <MatChipRow , " mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]" , never , { " editable" : { " alias" : " editable" ; " required" : false ; }; }, { " edited" : " edited" ; }, [" contentEditInput" ], [" [matChipEdit] " , " mat-chip-avatar, [matChipAvatar]" , " [matChipEditInput]" , " *" , " mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]" ], true , never >;
442
468
// (undocumented)
443
469
static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRow , never >;
444
470
}
@@ -515,7 +541,7 @@ export class MatChipsModule {
515
541
// (undocumented)
516
542
static ɵinj: i0 .ɵɵInjectorDeclaration <MatChipsModule >;
517
543
// (undocumented)
518
- static ɵmod: i0 .ɵɵNgModuleDeclaration <MatChipsModule , never , [typeof MatCommonModule , typeof MatRippleModule , typeof MatChipAction , typeof MatChip , typeof MatChipAvatar , typeof MatChipEditInput , typeof MatChipGrid , typeof MatChipInput , typeof MatChipListbox , typeof MatChipOption , typeof MatChipRemove , typeof MatChipRow , typeof MatChipSet , typeof MatChipTrailingIcon ], [typeof MatCommonModule , typeof MatChip , typeof MatChipAvatar , typeof MatChipEditInput , typeof MatChipGrid , typeof MatChipInput , typeof MatChipListbox , typeof MatChipOption , typeof MatChipRemove , typeof MatChipRow , typeof MatChipSet , typeof MatChipTrailingIcon ]>;
544
+ static ɵmod: i0 .ɵɵNgModuleDeclaration <MatChipsModule , never , [typeof MatCommonModule , typeof MatRippleModule , typeof MatChipAction , typeof MatChip , typeof MatChipAvatar , typeof MatChipEdit , typeof MatChipEditInput , typeof MatChipGrid , typeof MatChipInput , typeof MatChipListbox , typeof MatChipOption , typeof MatChipRemove , typeof MatChipRow , typeof MatChipSet , typeof MatChipTrailingIcon ], [typeof MatCommonModule , typeof MatChip , typeof MatChipAvatar , typeof MatChipEdit , typeof MatChipEditInput , typeof MatChipGrid , typeof MatChipInput , typeof MatChipListbox , typeof MatChipOption , typeof MatChipRemove , typeof MatChipRow , typeof MatChipSet , typeof MatChipTrailingIcon ]>;
519
545
}
520
546
521
547
// @public
0 commit comments