Expense Amount Input Widget
Component Detail
User Interface
low complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Reusable amount entry widget used for toll fees, parking costs, and public transit fares where a fixed monetary amount is required. Supports optional receipt linking for expenses above the configured threshold and displays currency formatting according to locale.
expense-amount-input-widget
Responsibilities
- Accept and validate monetary amount input for toll, parking, and transit expense types
- Show receipt attachment prompt when amount exceeds the configured threshold
- Format and display currency with locale-aware presentation
- Communicate receipt link state to parent wizard
Interfaces
onAmountChanged(amount)
validateAmount(amount)
getAmount()
setReceiptRequired(threshold)
onReceiptLinked(receiptId)
reset()