Expand description
Client-side form model: descriptors, raw values, syntax checks and the submit payload writer. Pure: no database, no wasm, no nomiscript.
Modules§
- address
- Field addresses: a flat field is its key, row
iof arowsfield iskey.iand a cell of that row iskey.i.sub. The index is any display, so a template row can carry a placeholder. - filter
- Report filter grammar: the operator names the server parser reads and the writer the visual builder emits them with.
- labels
- The typed text of a select control. A browser shows an entity by its
label in a control named
label:<address>and submits its id in a hidden input named by the address; the text is only echoed back, never resolved.
Structs§
- Field
- Field
Error - Form
- Form
Values - Raw text values: flat fields by key,
rowsfields as lists of rows.
Enums§
- Action
- Kind
- The seven field kinds; another needs owner sign-off.
- Scope
- The kind of entity whose tags a text cell suggests.
- Source
- Suggest
- Free-text suggestions a text cell offers, served by
form-optionsas plain strings rather than picker options.
Constants§
- ACCOUNT_
CREATE - Create an account under an optional parent.
- ACCOUNT_
EDIT - Rename, re-parent and replace the tags of an account;
tagsexcludes thenametag and is edited, not carried. - ACCOUNT_
MERGE - Fold
fromintointo: its splits, lots, budgets, children and tags move andfromis deleted. - COMMODITY_
CREATE - Create a commodity from a symbol and a name.
- COMMODITY_
EDIT - Replace the symbol, the name and the tags of a commodity;
tagsexcludes both and is edited, not carried. - CONFIG_
SET - Set one of the user’s config values; an empty value is stored as is.
- CONVERT
- Convert an amount between two commodities with the latest price.
- LINK_
CELL - The cell of a nested row naming the key of its parent row.
- PAGING_
KEYS - Keys of
transaction-querythat page a result instead of filtering it. - PARENT_
KEY_ CELL - The cell of a parent row holding the key its nested rows name.
- REPORT_
ACTIVITY - REPORT_
BALANCE - REPORT_
CATEGORY include-uncategorizedis the command’sinclude_uncategorized,yesby default.- SCRIPT_
CREATE - Create a script from an optional name, its source and its state.
- SCRIPT_
EDIT - Replace the name, the source and the state of a script; the revision covers all three.
- SPLITS_
KEY - Keys of the rows fields that split tags nest under.
- SPLIT_
TAGS_ KEY - SSH_
KEY_ ADD - Register a public key with an optional label; without one the key line’s comment names it.
- TAGS_
KEY - TAG_
CREATE - Create a tag from a name, a value and an optional description.
- TAG_
EDIT - Replace the name, the value and the description of a tag; the revision covers all three.
- TEMPLATE_
CREATE - Create a template from an optional name and its source.
- TEMPLATE_
EDIT - Replace the name and the source of a template; the revision covers both.
- TEMPLATE_
TEST - Render a template source against the user’s data without saving it.
- TRANSACTION_
CREATE - TRANSACTION_
EDIT - TRANSACTION_
QUERY
Functions§
- all
- by_name
- descriptor_
sexpr - descriptors_
sexpr - drop_
orphans - Drops the rows of every nested field of
formwhose link cell names a parent row thatvaluesno longer holds; a missing field stays missing. - escape_
str - Quote a string for a nomiscript literal.
- now_
instant - The current instant as a full RFC3339 UTC value, the seed of an empty date.
- parse_
date parse_date_infor UTC.- parse_
date_ in - Parse RFC3339 (full precision),
YYYY-MM-DD,YYYY-MM-DDTHH:MM[:SS]orYYYY-MM-DD HH:MM(offset-free forms are UTC). A date-only value is the start of that day inzone, or, whenrange_endis set, the last microsecond (the finest instant Postgres stores) before the next local day starts. - parse_
day - A calendar day
YYYY-MM-DD; a value with a time is refused, never truncated. - parse_
post_ date parse_datefor a transaction post date: a date-only value is noon UTC, so it stays on that day for every zone from UTC-12 to UTC+11.- step_
date - Add
delta_daysto the date ins. An RFC3339 value keeps its offset, seconds and fractions;YYYY-MM-DDTHH:MM:SSkeeps its seconds; a date-only value stays date-only; other forms step toYYYY-MM-DDTHH:MM.Noneleaves the caller’s buffer untouched (unparseable input or overflow). - write_
payload - Write the payload in descriptor order. Absent values are omitted; a present empty value is written, so an edit can clear the note.