s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Reports · Components

ReportConfirmation

No summary has been written for ReportConfirmation. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.

Public export

typescript
import { ReportConfirmation } from '@happyvertical/smrt-reports/svelte';
Import path
@happyvertical/smrt-reports/svelte
Props
9
Props described
3 of 9
Bindable state
0
Callback events
2
Verified release
0.57.40

Props

NameTypeRequiredDescription
proposalRuntimeReportProposalYesNot described
confirm(proposal: RuntimeReportProposal) => Promise<SavedRuntimeReport>YesPosts the exact displayed spec and hash to the authenticated confirm route.
reportHref(id: string) => stringNoNot described
ondecline() => voidNoNot described
onsaved(report: SavedRuntimeReport) => voidNoNot described
outcomeReportConfirmationOutcome | nullNoAn earlier answer (from the transcript): the card shows its outcome line and offers no buttons, so a reloaded or re-rendered card cannot approve twice.
fieldsreadonly ReportFieldInfo[]NoThe source's field labels and formats (its descriptor's `fields`), so groupings and filters read "Issue date", "Total amount" and money, not model field names. Omitted, names are humanized.
localestringNoNot described
currencystringNoNot described

Bindable state

This component has no bindable public state.

Callback events

  • ondecline() => void
  • onsaved(report: SavedRuntimeReport) => void

Examples and explanation