@@ -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 ;
@@ -420,21 +440,24 @@ export class MatChipRow extends MatChip implements AfterViewInit {
420
440
contentEditInput? : MatChipEditInput ;
421
441
defaultEditInput? : MatChipEditInput ;
422
442
// (undocumented)
443
+ _edit(): void ;
444
+ // (undocumented)
423
445
editable: boolean ;
424
446
readonly edited: EventEmitter <MatChipEditedEvent >;
425
447
// (undocumented)
426
448
_handleDoubleclick(event : MouseEvent ): void ;
427
449
_handleFocus(): void ;
428
450
// (undocumented)
429
451
_handleKeydown(event : KeyboardEvent ): void ;
452
+ _hasLeadingIcon(): boolean ;
430
453
// (undocumented)
431
454
_hasTrailingIcon(): boolean ;
432
455
// (undocumented)
433
456
_isEditing: boolean ;
434
457
// (undocumented)
435
458
_isRippleDisabled(): boolean ;
436
459
// (undocumented)
437
- 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 >;
460
+ 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 >;
438
461
// (undocumented)
439
462
static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRow , never >;
440
463
}
@@ -511,7 +534,7 @@ export class MatChipsModule {
511
534
// (undocumented)
512
535
static ɵinj: i0 .ɵɵInjectorDeclaration <MatChipsModule >;
513
536
// (undocumented)
514
- 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 ]>;
537
+ 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 ]>;
515
538
}
516
539
517
540
// @public
0 commit comments