@@ -35,6 +35,9 @@ export const MAT_CHIP: InjectionToken<unknown>;
3535// @public
3636export const MAT_CHIP_AVATAR: InjectionToken <unknown >;
3737
38+ // @public
39+ export const MAT_CHIP_EDIT: InjectionToken <unknown >;
40+
3841// @public
3942export const MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR: any ;
4043
@@ -50,6 +53,7 @@ export const MAT_CHIPS_DEFAULT_OPTIONS: InjectionToken<MatChipsDefaultOptions>;
5053// @public
5154export class MatChip implements OnInit , AfterViewInit , AfterContentInit , DoCheck , OnDestroy {
5255 constructor (... args : unknown []);
56+ protected _allEditIcons: QueryList <MatChipEdit >;
5357 protected _allLeadingIcons: QueryList <MatChipAvatar >;
5458 protected _allRemoveIcons: QueryList <MatChipRemove >;
5559 protected _allTrailingIcons: QueryList <MatChipTrailingIcon >;
@@ -68,6 +72,8 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
6872 disableRipple: boolean ;
6973 // (undocumented)
7074 protected _document: Document ;
75+ _edit(event : Event ): void ;
76+ editIcon: MatChipEdit ;
7177 // (undocumented)
7278 _elementRef: ElementRef <HTMLElement >;
7379 focus(): void ;
@@ -119,7 +125,7 @@ export class MatChip implements OnInit, AfterViewInit, AfterContentInit, DoCheck
119125 // (undocumented)
120126 protected _value: any ;
121127 // (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 >;
123129 // (undocumented)
124130 static ɵfac: i0 .ɵɵFactoryDeclaration <MatChip , never >;
125131}
@@ -132,6 +138,20 @@ export class MatChipAvatar {
132138 static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipAvatar , never >;
133139}
134140
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+
135155// @public
136156export interface MatChipEditedEvent extends MatChipEvent {
137157 value: string ;
@@ -420,6 +440,8 @@ export class MatChipRow extends MatChip implements AfterViewInit {
420440 contentEditInput? : MatChipEditInput ;
421441 defaultEditInput? : MatChipEditInput ;
422442 // (undocumented)
443+ _edit(): void ;
444+ // (undocumented)
423445 editable: boolean ;
424446 readonly edited: EventEmitter <MatChipEditedEvent >;
425447 // (undocumented)
@@ -428,13 +450,15 @@ export class MatChipRow extends MatChip implements AfterViewInit {
428450 // (undocumented)
429451 _handleKeydown(event : KeyboardEvent ): void ;
430452 // (undocumented)
453+ protected _hasLeadingActionIcon(): boolean ;
454+ // (undocumented)
431455 _hasTrailingIcon(): boolean ;
432456 // (undocumented)
433457 _isEditing: boolean ;
434458 // (undocumented)
435459 _isRippleDisabled(): boolean ;
436460 // (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 >;
461+ 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 >;
438462 // (undocumented)
439463 static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRow , never >;
440464}
@@ -511,7 +535,7 @@ export class MatChipsModule {
511535 // (undocumented)
512536 static ɵinj: i0 .ɵɵInjectorDeclaration <MatChipsModule >;
513537 // (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 ]>;
538+ 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 ]>;
515539}
516540
517541// @public
0 commit comments