@@ -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,21 +440,24 @@ 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)
426448 _handleDoubleclick(event : MouseEvent ): void ;
427449 _handleFocus(): void ;
428450 // (undocumented)
429451 _handleKeydown(event : KeyboardEvent ): void ;
452+ protected _hasLeadingIcon(): boolean ;
430453 // (undocumented)
431454 _hasTrailingIcon(): boolean ;
432455 // (undocumented)
433456 _isEditing: boolean ;
434457 // (undocumented)
435458 _isRippleDisabled(): boolean ;
436459 // (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 >;
438461 // (undocumented)
439462 static ɵfac: i0 .ɵɵFactoryDeclaration <MatChipRow , never >;
440463}
@@ -511,7 +534,7 @@ export class MatChipsModule {
511534 // (undocumented)
512535 static ɵinj: i0 .ɵɵInjectorDeclaration <MatChipsModule >;
513536 // (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 ]>;
515538}
516539
517540// @public
0 commit comments