ChatApprovalCardComponent
Displays an approval for a matching agent interrupt or an app-supplied request, as a modal dialog or an inline panel, and emits approve, edit, or cancel actions.
import { ChatApprovalCardComponent } from '@threadplane/angular/chat';Declaration
export declare class ChatApprovalCardComponent {
constructor();
readonly action: import("@angular/core").OutputEmitterRef<ChatApprovalAction>;
readonly agent: import("@angular/core").InputSignal<Agent>;
readonly approveLabel: import("@angular/core").InputSignal<string>;
readonly cancelLabel: import("@angular/core").InputSignal<string>;
readonly destructive: import("@angular/core").InputSignal<boolean>;
readonly interrupt: import("@angular/core").Signal<AgentInterrupt | undefined>;
readonly matchKind: import("@angular/core").InputSignal<string | undefined>;
readonly presentation: import("@angular/core").InputSignal<ChatApprovalPresentation>;
readonly recordLabel: import("@angular/core").InputSignal<string | undefined>;
readonly request: import("@angular/core").InputSignal<unknown>;
readonly showEdit: import("@angular/core").InputSignal<boolean>;
readonly title: import("@angular/core").InputSignal<string>;
}Angular template API
Selector: chat-approval-card
Inputs
agent· requiredAgentapproveLabelstringcancelLabelstringdestructivebooleanmatchKindstring | undefinedpresentationChatApprovalPresentationrecordLabelstring | undefinedrequestunknownshowEditbooleantitlestring
Outputs
actionChatApprovalAction
Members
Constructor · overload 1
Constructs a new instance of the ChatApprovalCardComponent class
constructor();action
readonly action: import("@angular/core").OutputEmitterRef<ChatApprovalAction>;agent
readonly agent: import("@angular/core").InputSignal<Agent>;approveLabel
Primary button text. Name the action, such as "Save note".
readonly approveLabel: import("@angular/core").InputSignal<string>;cancelLabel
Secondary button text. Name the alternative, such as "Don't save".
readonly cancelLabel: import("@angular/core").InputSignal<string>;destructive
Marks an action that cannot be undone: danger tint, the lead "This can't be undone." and a danger primary button. Name the exact effect in approveLabel, such as "Delete 12 drafts".
readonly destructive: import("@angular/core").InputSignal<boolean>;interrupt
The pending interrupt this card answers: the first one the agent lists, or
with matchKind the first whose value has that kind.
readonly interrupt: import("@angular/core").Signal<AgentInterrupt | undefined>;matchKind
readonly matchKind: import("@angular/core").InputSignal<string | undefined>;presentation
inline (default) renders a status panel in place; put the card in a chatInterruptTemplate so it sits at the end of the transcript. dialog opens a modal instead.
readonly presentation: import("@angular/core").InputSignal<ChatApprovalPresentation>;recordLabel
Inline only: what the one-line record names once the approval is answered,
as in "Approved: Save note". Defaults to approveLabel when the app named
the action; otherwise the record reads just "Approved" or "Declined".
readonly recordLabel: import("@angular/core").InputSignal<string | undefined>;request
An approval that is not an agent interrupt, such as a yes-or-no client-tool ask.
While set, the card shows it in place of the interrupt and ignores matchKind; the
body template receives it as its payload. Clear it once the request is answered.
readonly request: import("@angular/core").InputSignal<unknown>;showEdit
readonly showEdit: import("@angular/core").InputSignal<boolean>;title
readonly title: import("@angular/core").InputSignal<string>;