@@ -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,22 @@ 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+ _isLeading: boolean ;
149+ // (undocumented)
150+ _isPrimary: boolean ;
151+ // (undocumented)
152+ static ɵdir: i0 .ɵɵDirectiveDeclaration <MatChipEdit , " [matChipEdit]" , never , {}, {}, never , never , true , never >;
153+ // (undocumented)
154+ static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipEdit , never >;
155+ }
156+
135157// @public
136158export interface MatChipEditedEvent extends MatChipEvent {
137159 value: string ;
@@ -420,6 +442,8 @@ export class MatChipRow extends MatChip implements AfterViewInit {
420442 contentEditInput? : MatChipEditInput ;
421443 defaultEditInput? : MatChipEditInput ;
422444 // (undocumented)
445+ _edit(): void ;
446+ // (undocumented)
423447 editable: boolean ;
424448 readonly edited: EventEmitter <MatChipEditedEvent >;
425449 // (undocumented)
@@ -430,6 +454,8 @@ export class MatChipRow extends MatChip implements AfterViewInit {
430454 // (undocumented)
431455 _handleKeydown(event : KeyboardEvent ): void ;
432456 // (undocumented)
457+ protected _hasLeadingActionIcon(): boolean ;
458+ // (undocumented)
433459 _hasTrailingIcon(): boolean ;
434460 // (undocumented)
435461 _isEditing: boolean ;
@@ -438,7 +464,7 @@ export class MatChipRow extends MatChip implements AfterViewInit {
438464 // (undocumented)
439465 ngAfterViewInit(): void ;
440466 // (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 >;
442468 // (undocumented)
443469 static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRow , never >;
444470}
@@ -515,7 +541,7 @@ export class MatChipsModule {
515541 // (undocumented)
516542 static ɵinj: i0 .ɵɵInjectorDeclaration <MatChipsModule >;
517543 // (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 ]>;
519545}
520546
521547// @public
0 commit comments