diff --git a/apps/website/content/docs/chat/api/api-docs.json b/apps/website/content/docs/chat/api/api-docs.json index 91aa630a8..dd1481740 100644 --- a/apps/website/content/docs/chat/api/api-docs.json +++ b/apps/website/content/docs/chat/api/api-docs.json @@ -2369,7 +2369,7 @@ "optional": false }, { - "name": "close", + "name": "closed", "type": "OutputEmitterRef", "description": "", "optional": false diff --git a/examples/chat/angular/src/app/shell/demo-shell.component.html b/examples/chat/angular/src/app/shell/demo-shell.component.html index 74a2c8a77..9d58c8183 100644 --- a/examples/chat/angular/src/app/shell/demo-shell.component.html +++ b/examples/chat/angular/src/app/shell/demo-shell.component.html @@ -40,7 +40,7 @@ [(query)]="searchQuery" [results]="searchResults()" (threadSelected)="onSearchSelect($event)" - (close)="paletteOpen.set(false)" + (closed)="paletteOpen.set(false)" /> } - + `, }) export class ChatSidenavComponent { diff --git a/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.spec.ts b/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.spec.ts index 57f8c638d..221592c18 100644 --- a/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.spec.ts +++ b/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.spec.ts @@ -114,7 +114,7 @@ describe('ChatHistorySearchPaletteComponent', () => { it('Esc emits close', () => { const fixture = render(); let emits = 0; - fixture.componentInstance.close.subscribe(() => emits++); + fixture.componentInstance.closed.subscribe(() => emits++); const input = fixture.nativeElement.querySelector('input') as HTMLInputElement; input.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })); expect(emits).toBe(1); @@ -123,7 +123,7 @@ describe('ChatHistorySearchPaletteComponent', () => { it('Scrim click emits close', () => { const fixture = render(); let emits = 0; - fixture.componentInstance.close.subscribe(() => emits++); + fixture.componentInstance.closed.subscribe(() => emits++); const scrim = fixture.nativeElement.querySelector('.chat-history-search-palette__scrim') as HTMLButtonElement; scrim.click(); expect(emits).toBe(1); diff --git a/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.ts b/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.ts index 32de1fa16..052fecbee 100644 --- a/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.ts +++ b/libs/chat/src/lib/primitives/chat-history-search-palette/chat-history-search-palette.component.ts @@ -34,7 +34,7 @@ let paletteInstanceCounter = 0; type="button" class="chat-history-search-palette__scrim" aria-label="Close search" - (click)="close.emit()" + (click)="closed.emit()" >