notationTypes top-level constant

Map<String, ({Json node, String type})> const notationTypes

Short names: what an agent writes → the node type and what it implies.

Implementation

const Map<String, ({String type, Json node})> notationTypes = {
  'Input': (type: 'textField', node: {}),
  // A table of records: rows={list} and columns=[{"key":…,"label":…}], sorted
  // from its headers, a row chosen by a tap or by keys.
  'DataTable': (type: 'tableView', node: {}),
  // What a row of a reordered list is dragged by (each row in rows reorder).
  'Handle': (type: 'iconButton', node: {}),
  // A one-time code: one field drawn as boxes (CodeInput @code length=6 digits).
  'CodeInput': (type: 'textField', node: {}),
  // A number between a minus and a plus button, in one border (NumberInput @seats min=1 max=500).
  'NumberInput': (type: 'textField', node: {}),
  'Toggle': (type: 'switch', node: {}),
  'Select': (type: 'dropdown', node: {}),
  'Button': (type: 'filledButton', node: {}),
  'Progress': (type: 'progressBar', node: {}),
  // The words a model reaches for unprompted for a round meter, a round
  // share and a small trend line (design 16: asked with no vocabulary, it
  // writes gauge, dial, ring, sparkline).
  'Gauge': (type: 'radialGauge', node: {}),
  'Ring': (type: 'circularProgressIndicator', node: {}),
  'Sparkline': (type: 'lineChart', node: {}),
  // Shares of a whole, and a line chart that fills under its line.
  'Donut': (type: 'chart', node: {}),
  'Pie': (type: 'chart', node: {}),
  'AreaChart': (type: 'lineChart', node: {}),
  // A person as a round mark: their initials, or their picture.
  'Avatar': (type: 'column', node: {}),
  'Badge': (type: 'row', node: {}),
  // A grid of the children written under it: rows of `cols` equal cells.
  'Grid': (type: 'column', node: {}),
  'Image': (type: 'box', node: {}),
  'Box': (type: 'column', node: {}),
  'Card': (type: 'column', node: {}),
  // Pages swiped across, one at a time: the lines under it are its pages
  // (or, under an `each`, one page per element).
  'Pages': (type: 'pageView', node: {}),
  // A part no component fits, built from plain parts under it; the line
  // names the component wanted for it (see [WantedBlock]).
  'Wanted': (type: 'column', node: {}),
};