Commerce · Components
QuoteEditor
Native quotation/estimate editor; caller retains data, authority and retry identity.Public export
typescript
import { QuoteEditor } from '@happyvertical/smrt-commerce/svelte';- Import path
@happyvertical/smrt-commerce/svelte- Props
- 21
- Props described
- 21 of 21
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
kindQuoteDocumentKindYesExplicit domain of the document.valuesQuoteDraftValuesYesServer-rendered values, including rejected input strings.counterparties{ id: string; label: string; }[]YesAvailable authorized counterparties.actionstringYesNative form destination; no routes are supplied by Commerce.method'post' | 'get'NoNative method (POST by default).hiddenFields{ name: string; value: string; }[]NoCaller-owned repeated hidden values, such as tenant/request/predecessor IDs.namesPartial<QuoteFieldNames>NoOverride payload field names for existing endpoints.errorsRecord<string, string>NoField errors keyed by canonical names or line ID plus field (e.g. a.description).messagestringNoServer failure/uncertain outcome explanation; never clears the form.readonlybooleanNoPresentation capability only; the server must enforce authorization.busybooleanNoDisable writes while the caller handles a request.intents{ name: string; save: string; add: string; removePrefix: string; }NoNative submitter name and action values. Removal appends the stable line ID.labels{ title?: string; counterparty?: string; save?: string; }NoText overrides, including Client terminology.currencyOptionsreadonly CodeSelectOption[]NoCaller-restricted currency choices; omitted uses the shared ISO defaults.cancelHrefstringNoOptional navigation destination.onsubmitHTMLFormAttributes['onsubmit']NoCaller form enhancement; native submission remains enabled unless handler prevents it.formAttributesQuoteFormAttributesNoCaller-controlled form attributes/attachments (e.g. createAttachmentKey for form-retry).extensionsSnippetNoDomain-specific fields, such as allocation or source-selection controls.attachmentsSnippetNoAuthorized attachment composition; this component never loads private files.moneyMoneyHeaderDisplayNoExplicit v2 stored header facts; this editor never recomputes them.moneyFieldNamestringNoNative field name for the explicit document mode.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.