viewkitjs 0.36.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/package.json +1 -1
  3. package/views/dist/atoms/types.d.ts +32 -4
  4. package/views/dist/contract.d.ts +18 -9
  5. package/views/dist/contract.js +18 -1
  6. package/views/dist/controls/button/own-look-moved.d.ts +11 -0
  7. package/views/dist/controls/button/own-look-moved.js +3 -0
  8. package/views/dist/controls/date-editor/date-behaviour.d.ts +80 -0
  9. package/views/dist/controls/date-editor/date-behaviour.js +187 -0
  10. package/views/dist/controls/date-editor/date-editor.d.ts +3 -2
  11. package/views/dist/controls/date-editor/date-editor.js +29 -166
  12. package/views/dist/controls/field/field.d.ts +3 -2
  13. package/views/dist/controls/field/field.js +7 -2
  14. package/views/dist/controls/field/looks.d.ts +1 -1
  15. package/views/dist/controls/field/looks.js +7 -4
  16. package/views/dist/controls/field.css +64 -1
  17. package/views/dist/controls/filter-editor/filter-editor.js +2 -2
  18. package/views/dist/controls/filter-editor/parts.d.ts +2 -0
  19. package/views/dist/controls/filter-editor/parts.js +1 -1
  20. package/views/dist/controls/glyphs/glyphs.js +2 -0
  21. package/views/dist/controls/index.d.ts +3 -1
  22. package/views/dist/controls/index.js +3 -1
  23. package/views/dist/controls/inline-input.css +10 -0
  24. package/views/dist/controls/internal/phone.d.ts +1 -1
  25. package/views/dist/controls/internal/phone.js +3 -2
  26. package/views/dist/controls/internal/read-token.d.ts +2 -1
  27. package/views/dist/controls/internal/read-token.js +2 -1
  28. package/views/dist/controls/list/tokens.d.ts +1 -1
  29. package/views/dist/controls/list/tokens.js +1 -1
  30. package/views/dist/controls/list.css +5 -2
  31. package/views/dist/controls/menu-list/menu-list.js +3 -2
  32. package/views/dist/controls/menu.css +4 -4
  33. package/views/dist/controls/number-editor/tokens.d.ts +8 -0
  34. package/views/dist/controls/number-editor/tokens.js +2 -0
  35. package/views/dist/controls/number-editor.css +20 -0
  36. package/views/dist/controls/pane.css +1 -1
  37. package/views/dist/controls/picker.css +5 -3
  38. package/views/dist/controls/popover/looks.d.ts +1 -1
  39. package/views/dist/controls/popover/looks.js +5 -0
  40. package/views/dist/controls/popover/tokens.d.ts +13 -1
  41. package/views/dist/controls/popover/tokens.js +4 -1
  42. package/views/dist/controls/popover.css +59 -8
  43. package/views/dist/controls/select/select.js +1 -1
  44. package/views/dist/controls/sort-editor.css +4 -2
  45. package/views/dist/controls/text-editor/tokens.d.ts +8 -0
  46. package/views/dist/controls/text-editor/tokens.js +2 -0
  47. package/views/dist/controls/text-editor.css +28 -0
  48. package/views/dist/controls/toolbar/toolbar.d.ts +4 -2
  49. package/views/dist/controls/toolbar/toolbar.js +7 -2
  50. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +1 -1
  51. package/views/dist/controls/toolbar.css +5 -0
  52. package/views/dist/controls/tooltip/tokens.d.ts +1 -1
  53. package/views/dist/controls/tooltip/tokens.js +1 -1
  54. package/views/dist/controls/tooltip/tooltip.js +2 -1
  55. package/views/dist/controls/tooltip.css +5 -3
  56. package/views/dist/controls/values-editor.css +20 -5
  57. package/views/dist/display/entity-chip.d.ts +7 -1
  58. package/views/dist/display/entity-chip.js +2 -1
  59. package/views/dist/field-row/FieldRow.js +25 -12
  60. package/views/dist/field-row/field-row-button.d.ts +12 -0
  61. package/views/dist/field-row/field-row-button.js +5 -0
  62. package/views/dist/fields/binding.d.ts +4 -0
  63. package/views/dist/grid/chrome/GridCellEditors.d.ts +4 -1
  64. package/views/dist/grid/chrome/GridCellEditors.js +3 -2
  65. package/views/dist/grid/chrome/GridCellOutline.d.ts +15 -5
  66. package/views/dist/grid/chrome/GridCellOutline.js +20 -5
  67. package/views/dist/grid/chrome/GridChipsEditor.js +1 -1
  68. package/views/dist/grid/chrome/GridDateEditor.d.ts +1 -1
  69. package/views/dist/grid/chrome/GridDateEditor.js +1 -1
  70. package/views/dist/grid/chrome/GridLongTextEditor.d.ts +1 -1
  71. package/views/dist/grid/chrome/GridLongTextEditor.js +8 -5
  72. package/views/dist/grid/chrome/GridNameEditor.d.ts +1 -1
  73. package/views/dist/grid/chrome/GridNameEditor.js +1 -1
  74. package/views/dist/grid/chrome/GridNumberEditor.d.ts +1 -1
  75. package/views/dist/grid/chrome/GridNumberEditor.js +3 -2
  76. package/views/dist/grid/chrome/GridPlaceEditor.d.ts +1 -1
  77. package/views/dist/grid/chrome/GridPlaceEditor.js +1 -1
  78. package/views/dist/grid/chrome/GridRangeEditor.d.ts +2 -2
  79. package/views/dist/grid/chrome/GridRangeEditor.js +1 -1
  80. package/views/dist/grid/chrome/GridRelationEditor.js +2 -2
  81. package/views/dist/grid/chrome/GridRowCells.js +6 -5
  82. package/views/dist/grid/chrome/GridSelectEditor.js +1 -1
  83. package/views/dist/grid/chrome/GridStructure.js +3 -3
  84. package/views/dist/grid/chrome/GridTable.d.ts +2 -1
  85. package/views/dist/grid/chrome/GridTable.js +7 -2
  86. package/views/dist/grid/chrome/GridTextEditor.d.ts +1 -1
  87. package/views/dist/grid/chrome/GridTextEditor.js +4 -2
  88. package/views/dist/grid/chrome/GridValueListEditor.d.ts +1 -1
  89. package/views/dist/grid/chrome/GridValueListEditor.js +1 -1
  90. package/views/dist/grid/chrome/grid-body-place.d.ts +7 -2
  91. package/views/dist/grid/chrome/grid-body-place.js +9 -4
  92. package/views/dist/grid/chrome/grid-cell-classes.js +2 -2
  93. package/views/dist/grid/chrome/grid-edit-session.d.ts +8 -0
  94. package/views/dist/grid/chrome/grid-edit-session.js +21 -3
  95. package/views/dist/grid/chrome/grid-editor-layer.d.ts +11 -0
  96. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  97. package/views/dist/grid/chrome/grid-fitted-box.d.ts +4 -4
  98. package/views/dist/grid/chrome/grid-fitted-box.js +1 -3
  99. package/views/dist/grid/chrome/grid-hover.d.ts +3 -3
  100. package/views/dist/grid/chrome/grid-hover.js +2 -3
  101. package/views/dist/grid/chrome/grid-row-props.d.ts +6 -2
  102. package/views/dist/grid/chrome/grid-styles.d.ts +1 -5
  103. package/views/dist/grid/chrome/grid-styles.js +0 -1
  104. package/views/dist/grid/chrome/useGridKeyboard.d.ts +5 -2
  105. package/views/dist/grid/chrome/useGridKeyboard.js +11 -15
  106. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +3 -1
  107. package/views/dist/grid/chrome/useGridTableInteractionModel.js +30 -2
  108. package/views/dist/grid/core/useGridEditing.d.ts +3 -0
  109. package/views/dist/grid/core/useGridEditing.js +2 -0
  110. package/views/dist/grid/grid.css +4 -19
  111. package/views/dist/internal/length.d.ts +2 -0
  112. package/views/dist/internal/length.js +16 -0
  113. package/views/dist/internal/screen-forms.d.ts +11 -0
  114. package/views/dist/internal/screen-forms.js +31 -0
  115. package/views/dist/list/list.js +2 -1
  116. package/views/dist/list/parts.d.ts +8 -2
  117. package/views/dist/list/parts.js +31 -7
  118. package/views/dist/list/toolbar.js +7 -3
  119. package/views/dist/looks/index.d.ts +1 -0
  120. package/views/dist/looks/index.js +1 -0
  121. package/views/dist/panels/react/popover.d.ts +3 -1
  122. package/views/dist/panels/react/popover.js +2 -2
  123. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +6 -3
  124. package/views/dist/panels/react/toolbar/Toolbar.d.ts +12 -1
  125. package/views/dist/panels/react/toolbar/Toolbar.js +5 -1
  126. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +1 -1
  127. package/views/dist/panels/react/toolbar/ToolbarButton.js +3 -2
  128. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +1 -3
  129. package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
  130. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +1 -1
  131. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
  132. package/views/dist/panels/react/toolbar/ToolbarSave.d.ts +3 -1
  133. package/views/dist/panels/react/toolbar/ToolbarSave.js +28 -20
  134. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  135. package/views/dist/panels/react/toolbar/context.d.ts +3 -2
  136. package/views/dist/panels/react/views-row/FoldingViewRow.js +24 -7
  137. package/views/dist/panels/react/views-row/ViewPicker.js +1 -1
  138. package/views/dist/panels/react/views-row/more-views.d.ts +2 -0
  139. package/views/dist/panels/react/views-row/more-views.js +3 -0
  140. package/views/dist/panels/react.d.ts +1 -1
  141. package/views/dist/panels/toolbar/model.d.ts +2 -2
  142. package/views/dist/provider/components.d.ts +8 -7
  143. package/views/dist/provider/desktop.d.ts +2 -1
  144. package/views/dist/provider/desktop.js +5 -2
  145. package/views/dist/selection/bar-overflow.d.ts +2 -0
  146. package/views/dist/selection/bar-overflow.js +2 -1
  147. package/views/dist/selection/bar-props.d.ts +1 -1
  148. package/views/dist/selection/verbs.d.ts +2 -2
  149. package/views/dist/styles.css +341 -80
  150. package/views/dist/styles.unlayered.css +341 -80
  151. package/views/docs/contract.md +77 -23
  152. package/views/docs/controls/list.md +2 -0
  153. package/views/docs/controls/menu.md +2 -0
  154. package/views/docs/controls/number-editor.md +2 -0
  155. package/views/docs/controls/picker.md +2 -0
  156. package/views/docs/controls/popover.md +7 -0
  157. package/views/docs/controls/text-editor.md +2 -0
  158. package/views/docs/controls/tooltip.md +2 -0
  159. package/views/docs/guides/atoms.md +11 -10
  160. package/views/docs/guides/selection.md +1 -1
  161. package/views/docs/guides/the-grid.md +7 -5
  162. package/views/docs/guides/the-provider.md +2 -2
  163. package/views/docs/reference/controls.md +11 -6
  164. package/views/docs/reference/display.md +1 -1
  165. package/views/docs/reference/field-row.md +1 -1
  166. package/views/docs/reference/list.md +5 -6
  167. package/views/docs/reference/looks.md +4 -1
  168. package/views/docs/reference/panels-react.md +5 -4
  169. package/views/docs/reference/panels.md +1 -1
  170. package/views/docs/reference/react.md +6 -6
  171. package/views/docs/reference/selection.md +1 -1
  172. package/views/docs/reference/views.md +3 -3
  173. package/views/docs/reshaping.md +2 -2
  174. package/views/skills/views/SKILL.md +1 -1
@@ -6,7 +6,7 @@ Every view reads what it takes from its app, other than its own props, from one
6
6
 
7
7
  `ViewsProvider` sits once at your app's client root, above every view. It needs one thing and the children: `components` (your primitives; `components={CONTROLS}` is ViewKit's own, every slot filled). Three more have defaults, so you hand them only to draw your own: `icons` (your glyphs by meaning; absent, each drawn through your `AppIcon` by its name, which `CONTROLS.AppIcon` draws with ViewKit's own glyphs), `ports` (your haptics, clipboard, per-device store, toast and confirm dialog, each optional; [ports](ports.md)) and `conventions` (absent, `en-US` in `UTC`). Eleven more are optional: `atoms`, `messages`, `presentation`, `desktopQuery`, `sheetActions`, `escape`, `oneValue`, `severalValues`, `selectionBar`, `datePicks` and `panelControls` (your own controls inside ViewKit's panels and field editors, below).
8
8
 
9
- `desktopQuery` says which screens are desktops: there an editor opens as a popover, and elsewhere as a sheet; so do the toolbar's panels and the views picker outside a `Toolbar` (inside one, the toolbar's phone form decides), and the grid's own chrome: a row's and a group's ⋯ and the row actions show on hover on a desktop, and a row's and a group's ⋯ always elsewhere, where the row actions don't show. It defaults to `DEFAULT_DESKTOP_QUERY`, `(min-width: 1024px)`; hand in the query your own shell switches on, so the editors and your layout change at the same width. A server render counts as a desktop.
9
+ `desktopQuery` says which screens are desktops: there an editor opens as a popover, and elsewhere as a sheet; so do the toolbar's panels and the views picker outside a `Toolbar` (inside one, the toolbar's phone form decides), and the grid's own chrome: a row's and a group's ⋯ and the row actions show on hover on a desktop, and a row's and a group's ⋯ always elsewhere, where the row actions don't show. It defaults to `DEFAULT_DESKTOP_QUERY`, `(min-width: 1024px)`; hand in the query your own shell switches on, so the editors and your layout change at the same width. A server render draws a list's toolbar and grid, and a record's field rows, in both forms, and CSS shows the one your `desktopQuery` picks, so a phone's first paint is already the phone's; once the page comes alive, the screen's form alone stays, the very elements the person saw (each in a `display: contents` box). Anything else that reads it counts a server render as a desktop.
10
10
 
11
11
  `escape` says what Escape does in an editor, per field type: `{ date: "keep", location: "keep" }` keeps what was typed in a date's and a place's editor and closes it, as a press outside does, and a value the editor or your app refuses on the spot stays open with its reason, until a second Escape throws the edit away. A refusal your server sends after the save arrives once the editor has closed, as it does after Enter: on the cell in the grid, and under the row in a field row, whose editor, pressed again, opens on the refused value with your server's reason until the value changes. A type you leave out throws the edit away, which is the default for every type. It holds on a desktop: on a phone, every way out of the sheet throws the edit away. Pass a module-level object.
12
12
 
@@ -18,7 +18,7 @@ The grid says why your app refused an edit it sent, through your toast's `error`
18
18
 
19
19
  The popover around a whole body your app hands, its `Picker`, `PartsBody`, `ValuesBody` or `LinksBody`, takes no width and no padding of ViewKit's, only its layer, so your `Popover` stands at its own width; it is marked with the body it holds: `data-vk-body` is `picker`, `parts`, `values` or `links`. A phone's sheet is unchanged. Give the popover that opens with `chrome: "menu"` a width that doesn't follow its content (or it widens and narrows as a list filters), cap it by the room on screen, and pad it as you want; a body that needs more room, a place's parts on one line, is reached by `[data-vk-body="parts"]`.
20
20
 
21
- A grid editor opens the popover around a whole body you hand, your `Picker`, `DateBody`, `PartsBody`, `ValuesBody` or `LinksBody`, with its top on the cell's top, as Attio's editors and long text open. Give that popover at least the cell's width, so a press where the cell was lands inside it. A field row opens its body under the value, unchanged.
21
+ A grid editor opens the popover around a whole body you hand, your `Picker`, `DateBody`, `PartsBody`, `ValuesBody` or `LinksBody`, one spacing step above and one step left of the cell, covering the cell and its lines, as Attio's editors and long text open. Give that popover at least the cell's width and two steps, so it covers the cell's far line too and a press where the cell was lands inside it. A field row opens its body under the value, unchanged.
22
22
 
23
23
  `selectionBar` says where the selection bar sits: its `bottom`, its `zIndex` and your `className` on the desktop and on the phone, and a `phoneQuery` when your shell switches to its phone layout at another width than `desktopQuery`. An app with a bottom nav lifts the phone's pill above it; pass a module-level object.
24
24
 
@@ -23,9 +23,8 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
23
23
  - `ButtonGroup` — Buttons joined in a row or a column, the corners between them square and the edges shared.
24
24
  - `ButtonGroupText` — words inside a group: a unit, a count.
25
25
  - `ButtonGroupSeparator` — a line between two Buttons of a group that have no edge of their own.
26
- - `ButtonOwnLook` — a Button's own look, set on one Button: its radius, words, colour, icons, room, hover, open and pressed states and the rest, each an attribute on the Button beside `data-button-own`. It may change before 1.0.
27
- - `buttonOwnOptions` — each own option, the attribute it sets and its values.
28
- - `buttonOwnAttrs` — `buttonOwnAttrs(look)`: the attributes of an own look.
26
+
27
+ A Button's own look (`ButtonOwnLook`, `buttonOwnOptions`, `buttonOwnAttrs`) is read from `viewkitjs/views/looks`, beside the Input's, without React ([the looks reference](looks.md)). This door still exports the three, deprecated, so an app that reads them here compiles; they go from here in a later release that breaks something anyway.
29
28
 
30
29
  ## The Spinner
31
30
 
@@ -135,7 +134,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
135
134
  - `FieldSet` — fields or choices that answer one question under their own `legend`, with their own note and error; `disabled` reaches every choice in it.
136
135
  - `FieldSetProps` — its props.
137
136
  - `FieldSeparator` — a line between fields, with a word on it.
138
- - `FieldRows` — Field rows' card: fields as rows of one card on a phone, or each its own card; `look` its own, whole. A `Field` placed in it is the card's row: its label in the row's column, its Input or InputGroup typed in place beside it (no box, the caret in the brand, an InputGroup's start words its prefix and its end button in the brand), `saving` and `saved` at the row's end; its note and error stand under the card, in a foot it draws while any Field in it has one (`o-field-rows-foot`), an error in place of every note, each still describing its control. A Field inside a `FieldRowsRow` is not a row. A `FieldRow` inside it draws as one of its rows on a phone.
137
+ - `FieldRows` — Field rows' card: fields as rows of one card on a phone, or each its own card; `look` its own, whole. A `Field` placed in it is the card's row: its label in the row's column, its Input or InputGroup typed in place beside it (no box, the caret in the brand, an InputGroup's start words its prefix and its end button in the brand), `saving` and `saved` at the row's end; its note and error stand under the card, in a foot it draws while any Field in it has one (`o-field-rows-foot`), an error in place of every note, each still describing its control. A Field inside a `FieldRowsRow` is not a row. A `FieldRow` inside it draws as one of its rows on a phone. Server-rendered, outside a PhoneHost and a ComputerHost, the card stands whole in both forms, CSS showing the one your `desktopQuery` picks until the page comes alive, so a phone's first paint holds the phone's rows.
139
138
  - `FieldRowsProps` — its props.
140
139
  - `FieldRowsRow` — a row of Field rows: its label beside its control (`as`: `label`, `button`, `div`).
141
140
  - `FieldRowsRowProps` — its props.
@@ -149,7 +148,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
149
148
  - `CheckboxList` — checkboxes in rows in a bordered box, Base UI's checkbox group.
150
149
  - `CheckboxListProps` — its props.
151
150
 
152
- Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`, `number-field.css` and `checkbox.css`; the Checkbox's words (`o-choice-*`) are drawn by `choice.css` and the phone's larger pressing area by `press.css` (below). Their phone rules hold on an element marked `data-vk-phone` and inside it: each control marks its own root on a phone, by the line the app hands the provider (`desktopQuery`), a PhoneHost screen or a ComputerHost, and an app marks a box it shows as a phone's screen the same way. A control told its `form` changes only its layout; its sizes stay the device's. On the server and before the page comes alive a control draws the computer's form. `input.css` keeps one Outright Showcase hook, `[data-computer-host]`: a box marked so keeps typable words at 16px, so iOS never zooms into a field drawn at a computer's size on a phone.
151
+ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`, `number-field.css` and `checkbox.css`; the Checkbox's words (`o-choice-*`) are drawn by `choice.css` and the phone's larger pressing area by `press.css` (below). Their phone rules hold on an element marked `data-vk-phone` and inside it: each control marks its own root on a phone, by the line the app hands the provider (`desktopQuery`), a PhoneHost screen or a ComputerHost, and an app marks a box it shows as a phone's screen the same way. A control told its `form` changes only its layout; its sizes stay the device's. On the server and before the page comes alive a control draws the computer's form, unless it stands in a toolbar (`ToolbarControl`), a grid or Field rows' card (`FieldRows`), which a server render draws in both forms, CSS showing the screen's. `input.css` keeps one Outright Showcase hook, `[data-computer-host]`: a box marked so keeps typable words at 16px, so iOS never zooms into a field drawn at a computer's size on a phone.
153
152
 
154
153
 
155
154
  <!-- The rows: the Option, the Tag, the Status, the Switch, the menu list -->
@@ -752,7 +751,7 @@ What picked rows bring, the Outright kit's (after Attio's): on a computer a surf
752
751
 
753
752
  ## The Text editor
754
753
 
755
- `CONTROLS` fills its `TextBody` with the Text editor: ViewKit's text bodies, held as a shell that keeps the draft. A line, an email, a phone, a link and a domain type into the inline input over the cell, growing over the rows below a row at a time to eight; long text and rich text are its long text, as plain lines; a url is a link. A phone opens with its country first (its country, its dial code and its country's pattern, the countries the Picker's list in a Popover, on a phone a step of the Sheet), its extension after its digits and kept. In a field row (`place: "row"`) it stands in the row's flow instead: a line one list row high (28px), long text growing with its text to 320px, then scrolling, so the row grows with it. ViewKit's text editor keeps the draft, Escape, Tab, ⌘ or Ctrl Enter, the check and the save; a refusal is the host's to show.
754
+ `CONTROLS` fills its `TextBody` with the Text editor: ViewKit's text bodies, held as a shell that keeps the draft. A line, an email, a phone, a link and a domain type into the inline input over the cell, growing over the rows below a row at a time to eight (in a grid's cell they grow from the cell, as its In the cell look does); long text and rich text are its long text, as plain lines; a url is a link. A phone opens with its country first (its country, its dial code and its country's pattern, the countries the Picker's list in a Popover, on a phone a step of the Sheet), its extension after its digits and kept. In a field row (`place: "row"`) it stands in the row's flow instead: a line one list row high (28px), long text growing with its text to 320px, then scrolling, so the row grows with it. ViewKit's text editor keeps the draft, Escape, Tab, ⌘ or Ctrl Enter, the check and the save; a refusal is the host's to show.
756
755
 
757
756
  - `useTextEditor` — the Text editor, as the parts a shell pours in: its `body` (on a computer what stands in the cell, on a phone what the Sheet's body holds), and on a phone the Sheet head's buttons (`head`) and a step's `title`. Standing alone (`draft: "own"`, the default) it keeps on Enter or a press elsewhere and leaves on Escape, says why a value is refused just under the box, and on a phone hands its head ✕ and ✓; held (`draft: "shell"`) it hands every change, the whole text each time, and keeps nothing. Its props are `TextEditorProps`.
758
757
  - `TextEditor` — the body alone, for a shell that holds only a body.
@@ -800,6 +799,12 @@ Its stylesheet is `viewkitjs/views/controls/text-editor.css`, beside the inline
800
799
 
801
800
  - `useDateEditor` — the Date editor, as the parts a shell pours in: its `body`, and on a phone the Sheet head's ✕ and ✓ (`head`). Standing alone (`draft: "own"`, the default) it keeps on Enter, Escape or a press elsewhere and, on a phone, hands its head ✕ and ✓; held (`draft: "shell"`) it hands every change as it is made and keeps nothing. Its `words` and `language` say what it writes.
802
801
  - `DateEditor` — the body alone, for a shell that holds only a body.
802
+ - `useDateEditorBehaviour` — the Date editor's behaviour with no drawing, for your own date body (handed as `DateBody`) or editor: what it holds, what the line reads and why it is refused, its quick picks with their days and words, its actions (`pick`, `enterDay`, `moveKey`, `moveMonth`, `type`, `setDay`, `setTime`, `keep`, `leave`) and the props to spread on its root (`root`) and its line (`line`). Enter keeps and closes, a refused line stays open, a day on a date and time stays open for the time; standing alone on a computer a press elsewhere and Escape keep. In a `DateBody`, pass `draft: "shell"` yourself (and `words: dateEditorWordsOf(conventions.messages)` and the conventions' `language`, as ViewKit's own body does): held, it hands every change, and ViewKit's date editor keeps the draft, Escape, Tab out, the save and the undo. ViewKit's own Date editor is drawn on it.
803
+ - `DateEditorBehaviourProps` — its props: the Date editor's `value`, `onValueChange`, `onDone`, `time`, `empty`, `days`, `picks`, `today`, `typed`, `autoFocus`, `form`, `draft`, `words` and `language`, and `line`: `box` (the default, empty at rest) or `written` (the day held written out, the first key or a delete starting over).
804
+ - `DateEditorBehaviour` — what `useDateEditorBehaviour` hands back.
805
+ - `dateEditorWordsOf` — the Date editor's words in your conventions' messages (`date.*` and `time.*`), as ViewKit's own date body takes them: hand them to `useDateEditorBehaviour` or the Date editor as `words`.
806
+ - `DateEditorRootProps` — the props for the element that holds it: `ref`, `onBlur`, `onFocus`, `onKeyDown`.
807
+ - `DateEditorLineProps` — the props for its line: `ref`, `value`, `aria-invalid`, `onChange`, `onKeyDown`, `onBeforeInput`.
803
808
  - `DateEditorProps` — its props: the field's `label`, its `value` (`"2026-11-12"`, `"2026-11-12T14:30"` or null), `onValueChange`, `onDone`, `time`, `empty`, `days`, `picks`, `today`, `typed`, `opens`, `autoFocus`, `form`, `worn`, `draft`, `words` and `language`.
804
809
  - `DateEditorParts` — what `useDateEditor` hands back: its `body` and its phone `head`.
805
810
  - `useDateEditorWorn` — the options worn round an element, as a ref callback and what it wears, read again as a frame's attributes change.
@@ -16,7 +16,7 @@ Guide: [display](../guides/display.md).
16
16
  - A boolean's: `booleanIcon` (the two-state glyph), `marker`, `markerReason` and `onResolve` (the marker style's words, reason and clearing verb), `onToggle` (its presence makes a checkbox or icon boolean clickable; without it the glyph is plain), `booleanDisabled` (keeps the control's shape, disabled) and `booleanCheckbox` (a checkbox control, `ViewsCheckboxProps`, the checkbox style draws alone in place of the tick box and its switch: handed `checked`, the field's label, `tabIndex` -1 and `onCheckedChange`, or `readOnly` without `onToggle`).
17
17
  - A relation's: `entityIcon` (your glyph for an entity kind) and `relationWrap` (where a chip goes; absent, the chip is inert).
18
18
  - The host's slot: `slotOwnsClick`, set by a host whose own element is the button, such as a calendar card. Every core then draws bare content: an overflow count as plain text, a boolean with no toggle. `hostOwnsPlainClick`, set by a host whose plain click on a value is its own, such as the grid: an email, phone, url or domain stays a link, marked `data-cell-link`, not draggable, and lets its click through for the host to decide.
19
- - `RelationWrap` — the type of `relationWrap`: `(relation, chip) => ReactNode`. The core draws the chip (its picture or glyph, through your `Avatar` atom, and its label); your function wraps it in your own link or button, since where a record opens is your app's.
19
+ - `RelationWrap` — the type of `relationWrap`: `(relation, chip) => ReactNode`. The core draws the chip (its picture or glyph, through your `Avatar` atom, in one slot the photo's size, 16px, a smaller glyph centred in it, so every chip's label starts at the same place; and its label); your function wraps it in your own link or button, since where a record opens is your app's.
20
20
  - `MultiValueCell` — the layout for a value that holds several: several emails, phones, links or domains, a multiselect, the far side of a relation. It takes `items` (one drawn node per value), and optionally `details` (a word beside each value in the list, never in the cell), `wrap`, `title` (the native hover text) and `slotOwnsClick`. On one line it shows as many whole values as fit its width (at most 20 are measured), or three when wrapped, then a `+N` count that opens every value in a read-only list in the components map's `Popover`, drawn with the `List` and `Row` atoms. With `slotOwnsClick` the count is plain text and nothing opens. No items draws nothing.
21
21
  It follows its width, and the first shows cut when even it doesn't fit. With the provider's `severalValues: "first"`, on one line it shows its first value and the count instead, at any width. The count is drawn by the `CellMore` atom inside `data-slot="vk-cell-more"`, with `data-open` while the list is open.
22
22
  - `ConvertedFigure` — a money figure shown in another currency than its record's own, marked: ≈ before its `children`, and a title naming the currency it came `from` ("Converted from USD", the `views.display.converted-from` message). `renderTypedCellValue` draws it around a converted cell, and a field row around a figure its host reads in another currency; an app draws it on a surface of its own.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Import from `viewkitjs/views/field-row` in a client component, under your `ViewsProvider`: the door opens with the client directive. It holds a record's field row: one field drawn as its label, its value and, on a click, its type's editor in place, and the write path that admits each edit at once, queues one record's writes, settles each on the save's receipt and rolls a failure back. The row knows no entity, only a binding, a value and a commit, so your app builds its record's panel (its sections, its related records) around the rows. It draws with your provider's `Popover`, `Sheet`, `Collapse`, `AppIcon`, icons, `CommandMenu` atom and toast port. The shapes its writes go through (the write target, the receipt, the admission, a value's note, the reconciliation error) are the root door's, described under [A write's target](views.md#a-writes-target), and this door re-exports them. Guide: [editors](../guides/editors.md).
4
4
 
5
- - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
5
+ - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. The row says its form in `data-form`: `computer` (one line), `phone` (the label above the value) or `rows` (a Field rows card's row on a phone); outside a card the two forms differ only by what reads it. A server render can't ask the screen, so a row outside a card stands in both forms, and a card stands whole in both, CSS showing the one your `desktopQuery` picks: a phone's first paint is the phone's, and as the page comes alive the screen's form is the one kept, the very elements the person saw. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. Under the Field's Action (`data-field-row-action="icon"` on a frame round the rows, `FIELD_LOOKS`), a writable row outside a card shows one icon at its box's end on hover and keyboard focus: `edit` where its editor opens in a popover, `expand` for a long text or a rich text, none where the box is the input, or the binding's `action`. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
6
6
  - `FieldRowProps` — the row's props: `binding`, `row`, `value` (the display value), `editValue` (the stored value the editor opens on), `writable`, `ready` (false refuses gestures while the record loads), `unread` (the value isn't read yet, drawn blank), `refusal` (why it's read-only here), `onCommit` (admits or refuses a draft, then settles; an editor still open when the page or the row goes is asked as for a press outside, so it can be called inside `pagehide`), `opts` (display options), `menu` (a `command` field's verbs), `meta` (a few words in the value's line), `note` (a sentence under the value, with an optional quote a tap opens) and `kindIcon` (your icon name for a record kind, the glyph a relation's candidates wear; unanswered, they wear the type's glyph).
7
7
  - `RowEditor` — the editor a row mounts for its field's type, picked from `ROW_HOSTS`.
8
8
  - `ROW_HOSTS` — the host each field type mounts in a row, or `null` for a type the row never opens (a boolean, a derived or system field).
@@ -308,7 +308,7 @@ place it stands in, and a place's second kind of button by a name of its own. Ea
308
308
  | `sort` | `sort` (Sort, or the sort's pill where it stands in this place); `sort-add`, the + after the pill |
309
309
  | `sort-pill` | `sort-pill`; `sort-add`, the + after it |
310
310
  | `filters` | `filters` (each rule's four joined buttons, told apart by `joined`); `filter` (the bar's Filter while it holds none) or `filter-add` (its + after them); `more-filters` ("+N filters") |
311
- | `views`, `views-stacked`, `save` | none outside your own frame: ViewKit's own pills and your `Button`. In your own frame, `views-chip`, `views-tab`, `views-more`, `views-add`, `clear` and `save` (`ViewsFramePart`) |
311
+ | `views`, `views-stacked`, `clear`, `save` | none outside your own frame: ViewKit's own pills and your `Button` (the views row's "+N" yours through the toolbar's `moreViews`). In your own frame, `views-chip`, `views-tab`, `views-more`, `views-add`, `clear` and `save` (`ViewsFramePart`) |
312
312
  | ⋯ (no place) | `more` |
313
313
 
314
314
  ## Parts as data
@@ -337,16 +337,16 @@ export function DealsToolbar(props: ReadyToolbarProps<Deal>) {
337
337
 
338
338
  - The function, `(parts, ctx) => parts` ([`ToolbarParts`, `ToolbarPartPlace` and `ToolbarPartsContext`, in `/panels/react`](./panels-react.md#the-toolbar)): handed the form's parts in the order they are placed (the row's start, its end, then the bar's start and end, as they draw on a computer; a kit phone's one line as it reads; in the `row` arrangement's narrow and phone forms the search still moves where the form puts it), it hands back the parts drawn, in their order. A part left out isn't drawn; a key the form doesn't hold is skipped, unless it brings its own `node`; a key handed twice counts once. Handed back as it came, the toolbar is exactly as with nothing handed. It is called as the toolbar draws: keep it pure and cheap, and call no hooks in it. Not `parts`, which is the builder's own (a field's part columns in Customize).
339
339
  - A part's place: `{ key, line, side, words, node?, className?, button?, panel? }`.
340
- - `key`: the part's public name: `views` (and `views-stacked`, a second axis of views on the bar), `options` (Customize), `search`, `sort` (on the row, or the bar's sort in the old form), `sort-pill` (the bar's sort in Mihai's look with `bar: "always"`), `filter` and `filter-add` (Filter), `filters` (the filters on the bar), `advanced-filters`, `sep` (the bar's separator), `quick`, `new`, `save` (Clear and Save).
340
+ - `key`: the part's public name: `views` (and `views-stacked`, a second axis of views on the bar), `options` (Customize), `search`, `sort` (on the row, or the bar's sort in the old form), `sort-pill` (the bar's sort in Mihai's look with `bar: "always"`), `filter` and `filter-add` (Filter), `filters` (the filters on the bar), `advanced-filters`, `sep` (the bar's separator), `quick`, `new`, `clear` and `save` (the bar's Clear and Save, handed side by side: back side by side, `clear` first, on one line and side, they draw as one item, as they always stood; parted, reordered or with one left out, each draws on its own where you place it).
341
341
  - `line`: `"row"`, `"bar"` (the filter bar; in the `row` arrangement, the line below the row) or `"foot"` (a kit phone list's foot, New's place; anywhere else it means the row). On a kit phone the row and the bar are one line, so `"bar"` stands a part on it too, and New stands on the line once you place it anywhere but `"foot"`.
342
342
  - `side`: `"start"` or `"end"`.
343
- - `words`: `"both"`, as the look's words say (icon and word where the buttons on the right show theirs), or `"icon"`, its icon alone whatever the look. It means something for a part whose button has an icon and a word: `search`, `quick`, `sort`, `filter`, `filter-add`, `options`, `new`. The search and, in Mihai's look, the quick filters' button are handed `"icon"`, as they always stood; placed `"both"`, they read their word and give it up first as the line narrows, as Sort and Filter do. A button with no icon (Clear, Save) keeps its words.
343
+ - `words`: `"both"`, as the look's words say (icon and word where the buttons on the right show theirs), `"icon"`, its icon alone whatever the look, or `"word"`, its word alone, no icon, whatever the look. It means something for a part whose button has an icon and a word: `search`, `quick`, `sort`, `filter`, `filter-add`, `options`, `new`. The search and, in Mihai's look, the quick filters' button are handed `"icon"`, as they always stood; placed `"both"`, they read their word and give it up first as the line narrows, as Sort and Filter do. Placed `"word"`, every button of the part that has a word draws it with no icon (your `ToolbarButton` handed `icon: null` and the word as its `children`), and never gives it up as the line narrows: the part folds into ⋯ instead. A button whose glyph is its word (Sort's +, the bar's +) and New's round + at a phone list's foot keep their glyph; a button with no icon (Clear, Save) keeps its words.
344
344
  - `node`: a part of your own, under a key of your own, drawn where you place it (it doesn't fold into ⋯). `menu.add` places it. The keys above are the toolbar's, even while a part of theirs isn't handed: don't name your own part by one.
345
345
  - `className`: put on every toolbar button the part draws (each handed its `part`, [Default keys](#default-keys)'s table), on the button itself, through your `ToolbarButton` (ViewKit's own puts it on its `<button>`, `CONTROL_ATOMS`' on the toolbar button or New's `Button`).
346
346
  - `panel`: where what it opens hangs at its button, `{ side?, align?, offset? }` (`ToolbarPanelPlace`), your `Popover`'s `side`, `align` and `sideOffset`: `{ align: "start" }` opens Sort's panel from its button's start wherever Sort stands. Absent, a part on its line's end side opens its panel aligned to its button's end and one on its start side to its start, 8 px below it; a host of yours (`hosts`) or a phone's sheet takes none of it.
347
347
  - `button`: your own button for the part, a component taking `ViewsToolbarButtonProps` ([`/react`](./react.md)), drawn for each of its toolbar buttons in place of your `ToolbarButton` and handed the very props it would get: `part`, `open`, `count`, `onClick`, `ref` and the rest. What it opens stays ViewKit's and hangs at your button through `ref`: put `ref` on the element you draw.
348
348
  - Which form: `ctx` is `{ arrangement, phone }` (`"kit"` or `"row"`, and whether it is a phone's), so one function can place each form its own way.
349
- - A part that comes and goes stays the toolbar's: the bar's `filters`, `save`, `sort-pill` and `sep` are handed only while the bar stands, so find them by key (a move by a key the list doesn't hold changes nothing). A part you place on the bar in Mihai's look at rest brings the bar with it; Clear and Save then still wait in Customize's foot.
349
+ - A part that comes and goes stays the toolbar's: the bar's `filters`, `clear`, `save`, `sort-pill` and `sep` are handed only while the bar stands, so find them by key (a move by a key the list doesn't hold changes nothing). A part you place on the bar in Mihai's look at rest brings the bar with it; Clear and Save then still wait in Customize's foot.
350
350
  - Dressing a place, New your own button, Sort a ghost and Customize outlined by your stylesheet:
351
351
 
352
352
  ```tsx
@@ -371,8 +371,7 @@ const dressedParts: ToolbarParts = (parts) =>
371
371
  ```
372
372
 
373
373
  - What stays fixed:
374
- - Clear and Save move as one part (`save`); a part's words are `both` or `icon`, never its word alone.
375
- - The views row (its chip, tabs, "+N" and "+", and `views-stacked`) and Clear and Save draw ViewKit's own pills and your `Button` in the ready toolbar: they take no `part`, and their place's `className` and `button` don't reach them (in your own frame they draw through your `ToolbarButton`, [`/panels/react`](./panels-react.md#the-toolbar)).
374
+ - The views row (its chip, tabs, "+N" and "+", and `views-stacked`) and Clear and Save draw ViewKit's own pills and your `Button` in the ready toolbar: they take no `part`, and their place's `className` and `button` don't reach them (in your own frame they draw through your `ToolbarButton`, [`/panels/react`](./panels-react.md#the-toolbar)). The views row's "+N" is yours through the toolbar's `moreViews` (`ToolbarMoreViews`, [`/panels/react`](./panels-react.md)): your class on ViewKit's own, or your whole button, handed the props your `ToolbarButton` would get.
376
375
  - ⋯ is named (`more`) but has no place: its look comes through the toolbar's `overflow` (`ToolbarOverflow`, [`/panels/react`](./panels-react.md)), your glyph, your class or your whole button, handed the props your `ToolbarButton` would get; or dress it in your `ToolbarButton` by its `part`.
377
376
  - A place's second buttons (Sort's +, the bar's Filter and +, "+N filters", a rule's four) share their place's one `className` and one `button`; tell them apart by `part` and `joined`.
378
377
  - The kit's own `Toolbar` control ([`/controls`](./controls.md)) still places its parts from its look options, `settings: "right"` included, while the ready toolbar never reads `settings`: Customize's side comes through `toolbarParts`.
@@ -30,6 +30,9 @@ on a frame round the controls as `data-<piece>-*`, which each control's styleshe
30
30
 
31
31
  - `BUTTON_LOOKS` — the Button's: 7 options (`radius`, a scale from `xs` to `full`; `smoothing`; `depth`; `hover`; `press`; `soft`; `weight`) and four looks, `classic` (every option's default), `keycap`, `pill` and `soft-lift`.
32
32
  - `ButtonLookOptionId` — the Button's option ids.
33
+ - `ButtonOwnLook` — a Button's own look, set on one Button: its radius, words, colour, icons, room, hover, open and pressed states and the rest, each an attribute on the Button beside `data-button-own`. It may change before 1.0.
34
+ - `buttonOwnOptions` — each own option, the attribute it sets and its values.
35
+ - `buttonOwnAttrs` — `buttonOwnAttrs(look)`: the attributes of an own look.
33
36
  - `SPINNER_LOOKS` — the Spinner's: 6 options (`kind`, `breath`, `line`, `track`, `bars`, `loading`, the four in the middle meaning nothing under some kinds) and thirteen looks, from `arc` to `pulse`.
34
37
  - `SpinnerLookOptionId` — the Spinner's option ids.
35
38
 
@@ -67,7 +70,7 @@ on a frame round the controls as `data-<piece>-*`, which each control's styleshe
67
70
  - `attioBox` — `attioBox(phone)`: the labelled box's own look, its computer form keeping its own size on a phone.
68
71
  - `INLINE_INPUT_LOOKS` — the inline input's: 4 options (`edge`, `corners` from `none` to `full`, `ground`, `tint` from 10% to 100% under the tint ground) and three looks, `attio`, `mihais` (named Outright) and `tinted`. Nothing picked is the line, `md` corners, on a 20% tint, which no look matches.
69
72
  - `InlineInputLookOptionId` — its option ids.
70
- - `FIELD_LOOKS` — Field rows', the phone's: 5 options (`rows-cards`, `rows-edge`, `rows-height`, `rows-label`, `rows-lines`) and three looks, `card` (every option's default), `each` and `rows`.
73
+ - `FIELD_LOOKS` — Field rows', the phone's: 5 options (`rows-cards`, `rows-edge`, `rows-height`, `rows-label`, `rows-lines`) and three looks, `card` (every option's default), `each` and `rows`; and a computer's field row's: `row-icon` (`on`, `off`), every look keeping it on: off (`data-field-row-icon="off"` on a section or any ancestor), each row draws its label, value and lane with no type icon, the label at the row's start; and `row-box` (`target`, `box`), every look keeping today's `target`: box (`data-field-row-box="box"`), a computer's row draws one rectangle for its hover, its press, its in-place text and number input and the place a picker opens from, so its words never move and it keeps its height, no press scale; in a narrow window, outside a card, the stacked row takes the same box at rest, hovered and pressed, and its editor stays the phone's (`--vk-field-row-box-h`, `-x`, `-r`, docs/contract.md); and `row-action` (`none`, `icon`), every look keeping today's `none`: icon (`data-field-row-action="icon"`), a row outside a card shows one icon at its box's right end on the box's hover and keyboard focus, saying what a click does: `edit` where its editor opens in a popover (a select, a person, a date, several values), `expand` for a long text or a rich text, and none where the box is the input (a text, a number, one link); a binding's `action` says otherwise for its field. The icon is your `icons.edit` or `icons.expand`, 15 in a 24 square 4 in from the box's end, and the box keeps its room at its end, so a value ends there (cut with its "…" on one line) and the words never move. The lock, ⋯ and › stay in the row's lane.
71
74
  - `FieldLookOptionId` — its option ids.
72
75
  - `FieldRowsLook` — a card's own look, each option without its `rows-`.
73
76
  - `fieldRowsAttrs` — `fieldRowsAttrs(look)`: a card's own look as its attributes.
@@ -65,7 +65,7 @@ The panel a list's Options button opens: your components map's `CustomizeBody` (
65
65
  The frame that holds a list's controls, and the parts that need no list settings. `Toolbar` takes the parts your app hands it, each placed at the start or the end, on the first line or the second, and draws them in one of three forms (`/panels`' [arrangement](panels.md#the-toolbars-arrangement)): `row`, `narrow` (its own box under 700px) or `phone` (your provider's `desktopQuery` says it is not a desktop). Pass `phone` or `narrow` to decide either yourself. A part is any node: the frame tells it where it stands through `useToolbarSlot`, and its buttons draw through the `ToolbarButton` atom at their line's size. A part that opens something (a menu, a panel, a pane your app holds) registers it with `useToolbarPanel`, and opening one closes every other, however it opened. A change of form draws the parts afresh, so keep what must last across it (a search's text, a panel's open state) in your app: a panel part left to hold its own state closes when the box crosses 700px, and one handed its state from `useToolbarPanelState`, held above the `Toolbar`, stays open on its page. The row's end controls float over the views on a fade of `--vk-ground` (`data-toolbar-cluster`), which the folding views row measures. Its look is plain; its pieces carry the `data-slot`s the [contract](../contract.md) lists.
66
66
 
67
67
  - `Toolbar` — the frame (one radio for its parts, or, inside a `ListRoot`, the root's). Takes `parts` (`ToolbarPart[]`), and optionally `phone`, `narrow`, `narrowBelow` (700 by default), `fold`, `more` (`ToolbarMore`, ⋯ as data: handed the folded parts' rows, each keyed by its part, and `{ line }`, `"row"` or `"bar"`, since each line folds into its own ⋯, it returns the rows ⋯ shows; a press on any of them closes ⋯ first), `overflow` (`ToolbarOverflow`, ⋯ as you draw it) and `className`. Each of its lines is a toolbar of its own (`role="toolbar"`): the filter bar (and the three forms' second line) named `views.panels.toolbar-bar` ("Sort and filters"), every other line `views.panels.toolbar-row` ("List tools"). With `fold` it draws the kit's arrangement (`/panels`' fold arrangement): the row and the filter bar under it, each a band with a line across under it (on a computer its padding, the room between its tools and the line are `--vk-toolbar-line-py`, `--vk-toolbar-line-gap` and `--vk-toolbar-line-w`, [Tokens](../contract.md)), or a phone's one line, with no narrow form; each line measures itself and gives way as it narrows (it contains its own inline size, so its width comes from where it stands and never from what its lines hold: in a holder sized from its content, a main beside a sidebar, it still gives way, with no wrapper of yours), a part's words turning to its icon (the `ToolbarButton` atom's `iconAlone`), the views folding tabs into "+N", a part's filters folding into "+N filters", then what may fold going behind ⋯ (`data-slot="vk-toolbar-overflow"`, your `Menu`, each row the folded part's `menu`). A folded part keeps its state, and what it opens hangs under ⋯; while ⋯'s menu, a folded part's panel, the views' "+N" list, a filter with a part open (`data-slot="vk-toolbar-filter-rule"` marked `data-open`), an open advanced filter (`data-slot="vk-toolbar-advanced-filter"` marked `data-open`) or "+N filters"' menu (the button in `data-slot="vk-toolbar-more-filters"`, `aria-expanded`) is open, the line holds still. The frame holds the search's open state: open, the line gives way around it, and on a phone the search takes the line beside the views.
68
- - `ToolbarPart` — a part as your app hands it: a `ToolbarPlacement` (its `key`, `side`, `line`, `role`, in the fold arrangement `shed`, `tabs`, `filters` and `fold`, and `words` and `foot`), its `node`, and for a part that may fold its `menu`: `{ label, icon?, onSelect }`, its row in ⋯. `words`: `"icon"` stands a `ToolbarButton` drawn in it as its icon alone, its words given up (a button with no icon keeps them); `"both"` gives the search's button, and the quick filters' button handed `word={null}`, their word, as the look's words say; absent, each its own. `foot: false` keeps New on a phone's folding line instead of at the list's foot.
68
+ - `ToolbarPart` — a part as your app hands it: a `ToolbarPlacement` (its `key`, `side`, `line`, `role`, in the fold arrangement `shed`, `tabs`, `filters` and `fold`, and `words` and `foot`), its `node`, and for a part that may fold its `menu`: `{ label, icon?, onSelect }`, its row in ⋯. `words`: `"icon"` stands a `ToolbarButton` drawn in it as its icon alone, its words given up (a button with no icon keeps them); `"both"` gives the search's button, and the quick filters' button handed `word={null}`, their word, as the look's words say; `"word"` stands one with a word as its word alone, no icon (handed `icon: null`, its word as its `children`), never turning to its icon as the line narrows (a button handed `word={null}`, a +, and New at a phone's foot keep their glyph); absent, each its own. `foot: false` keeps New on a phone's folding line instead of at the list's foot.
69
69
  - `ToolbarSeparator` — the line between the sort and the filters on a filter bar (or Filter while there is none), placed with `role: "separator"`: drawn only while a part stands drawn on each side of it, and never on a phone's line.
70
70
  - `ToolbarViews` — the views row: `views` (`CollectionViewsInput`) and `viewsLayout`. On the row and in the narrow panel it draws `ViewAxes`, or with `as="picker"` and one axis alone its `ViewPicker`; placed again with `stacked` on the second line, it draws the axes a stacked layout pushes beneath, small. On the phone it draws a `ViewPicker` per axis, every axis, and nothing for `stacked`. With `showCounts` the toolbar owns Show counts (`withCounts`). Place it only when the list has views: the phone's search fills the row when nothing is placed at the start.
71
71
  - `ToolbarSearch` — the search, placed with `role: "search"`: `value`, `onChange`, `placeholder` (`views.panels.search` by default) and `searching` (while true, a spinner, worded `views.panels.searching`, stands where its glass is, on the button and in the field, and the field, marked `aria-busy`, keeps its value and its typing; your app decides when it is true). On the row, and beside the phone's views, a button that opens an inline field; in the narrow panel, and on a phone with no views, a field that fills its line. A field that holds a value shows from the start. Escape and its ✕ clear it and close a field the button opened; a blur with nothing typed closes it. The field is your `Input`, or, handed `SearchField` in your components map, your whole search box: it stands in place of the glass, the field and the ✕, handed the value, the clear and its form, while the button, the open state, the caret on a press, Escape and a blur stay ViewKit's ([the components map](../contract.md#the-components-map)). Shut, its button is its glass alone, reading "Search" beside it only where its part is placed `words: "both"`, as the look's words say.
@@ -154,13 +154,14 @@ Options, Sort and Filter each open their panel from their own button, and each t
154
154
  - `useToolbarPanelState` — a panel part's state for your app to hold (`ToolbarPanelState`): `open`, `onOpenChange`, `page` and `onPageChange`; closing forgets the page.
155
155
  - `ToolbarPanelState` — what `useToolbarPanelState` returns.
156
156
  - `FilterPanelContent` — the Filter panel standing alone, for a host of your own: the filter list at its root (titled `views.panels.filter`, no back arrow) and the pages it opens, with `filters`, `timeScopeConfig`, `dateRangeConfigs`, `page`, `onPageChange`, `onClose` and `fill`.
157
- - `ToolbarSave` — Clear and Save, at the end of a filter bar while the list differs (`data-slot="vk-toolbar-save"`): takes `view` (a `CollectionViewState`: Clear is its `onReset`, Save its `onPublish`, shown only where `canPublish`, both waiting while `pending`, nothing while `changes` is 0 unless `layered`, the reader's own layer holding something, when Clear stands alone to empty it), or with no shared view `onClear`, Clear alone taking the list back to its default; nothing when neither has anything to do. Clear has no ground and Save wears the field's look, each your `Button`.
158
- - `ReadyToolbar` — the toolbar for an app that doesn't arrange its own (`ReadyToolbarProps`): the builder's input (`settings`, `layer`, `columns`, `onChange`, `onLayerChange` and the rest of `SettingsPanelsInput`), and optionally `views`, `viewsLayout`, `onAdd` or `addItems` and `addLabel`, `view`, `toggles`, `fieldEditor`, `searchPlaceholder`, `searching` (handed to its search), `hosts` (`{ options, sort, filter, quick }`), `customizeIn` (`"popover"` by default; `"pane"`: on a computer Customize opens in your map's `Pane`, `CONTROLS.Pane`, at the right edge of `paneBox`, under the toolbar and as tall as the list, the list in use beside it; on a phone its Sheet either way; a map with no `Pane`, or your own `hosts.options`, keeps theirs) and `paneBox` (the list's box the Pane stands in: positioned, holding the grid under the toolbar, never scrolling itself; null until it is on the page; not handed, the popover), `quickFilters` (a `QuickFiltersConfig`: handed, the quick filters' button stands on the row's end before the search, in the row arrangement before Options, folding into ⋯ as the row narrows; its counts follow the toolbar's Show counts unless the config carries its own `showCounts`), `quickFiltersOpen` with `onQuickFiltersOpenChange` (the quick filters' panel open, held by you, so a `QuickFiltersReminder` at your list's foot can open it; absent, the toolbar holds it), `phone`, `narrow`, `severalSorts` (true by default: the sort holds up to 3 rules, the row's Sort opening the sort editor on them, or in the old form the sort pill on the bar; `false` keeps Sort's one rule, which opens its own list whether or not a sort stands), `addAfter` (true by default: the + after the sort pill; `false` draws none, and the pill's editor, or your `SortBody`, has Add sort at its foot, as `ToolbarSortPill`'s), `filterGroups` (true by default: and/or groups, each filter on the filter bar on a computer, in the row arrangement each advanced filter's pill after Filter and Convert to advanced filter on a filter's page, and on a phone Filter opening the filter editor on every rule; `false` keeps Filter, counting what is applied, in either arrangement), `arrangement` (`"kit"` by default, or `"row"`), `sortFilter` (`"right"` by default, or `"bar"`), `bar` (`"added"` by default, or `"always"`: with Sort and Filter on the row's right, the bar then always shows, its empty Sort and Filter included), `viewName`, `onRenameView`, `onCopyLink`, `onExport` and `exportCount` (handed on to Customize, as `ToolbarOptions` takes them), `menus` (`ToolbarMenus`: a view's menu, New's, ⋯, Customize's rows and the sort, filter and group editors' menus as data), `toolbarParts` (`ToolbarParts`: where each part stands, every form's parts handed as data and drawn as you hand them back, [`/list`'s Parts as data](./list.md#parts-as-data)), `overflow` (`ToolbarOverflow`: ⋯ as you draw it where the parts don't fit) and `className`. It calls the builder and draws its parts in the kit's arrangement (`Toolbar`'s `fold`). By default, on a computer, one row at rest: the views with Customize beside them, then on its right Sort and Filter with their words, the quick filters' button and the search, each its icon alone, and New. The toolbar shows only what differs from the saved view (the open view's `saved`, or with no view the list's defaults; a view handed without `saved` keeps the older lighting, lit while a sort stands, the bar for every filter). Sort holds the sort (`ToolbarSortPill`'s `row`): lit while it differs, counted from two, it opens the sort editor to change or remove the rules, Add sort at its foot; with none, the fields. Filter (`ToolbarFilterAdd`, `opens="filters"`), lit while the filter differs, opens the view's filters, editable, with Add filter under them, as Sort opens its rules (with no filter, the editor's fields); the bar's + adds one filter to the bar. Under the row the filter bar, a step smaller, holds what changed: it comes while the sort or the filter differs, a filter is held (or one of its parts is open), or a second axis of views stands there, holding the changed sort ("Sorted by", a list with one sort's included: `ToolbarSort`'s `bar`), the filters that aren't the saved view's own (an edited one as edited; each as below, + after the last, no empty Filter) and Clear and Save at its end. Something taken away (a saved rule removed) brings Clear and Save alone. Customize's foot holds Reset and Save too while anything differs, the bar standing or not (on a shared view Customize also carries its dot), as on a phone. Each of the row's Sort and Filter is a panel of its own, apart from the bar's, so a press opens one list. `sortFilter: "bar"` with `bar: "always"` draws the kit arrangement's old form: the row, the views with Customize beside them and the search and New at its end, and under it the filter bar, always shown, a step smaller: the sort pill first, a separator, the filters (`ToolbarFilters`: each filter as its four joined parts, each advanced filter's pill, + after the last; while there is none, Filter, an empty place; the rule held until whole is held by the toolbar, so the bar counts it as it folds; with `filterGroups` false, Filter as before, with what is applied counted), and at its end Clear and Save (`ToolbarSave`) while the list differs: on a shared view (`view`) Clear takes it back and Save, where `canPublish`, keeps it for everyone; with no shared view, Clear alone takes the list back to its default (nothing filtered, the default sort, no group: so a list that starts grouped or filtered shows Clear at once); Customize's foot then draws neither. A row with no room folds as the kit's does (words to icons, the view tabs into "+N", the bar's last filters into "+N filters", then into ⋯: by default Customize and the row's Sort and Filter, whatever is set; in the old form Customize, and the sort and Filter while no filter stands), with no narrow form. On a phone one line in either form (the views, the sort, Filter, the quick filters' button when handed, Customize, then the search, which opens across the line), Clear and Save in Customize's foot (`views.panels.view-clear`, `views.panels.view-save`; with no shared view, Clear alone), and New a round + at the list's foot, lifted by `--vk-toolbar-foot`. `arrangement: "row"` draws the order of 12 Nov instead: the views on the left; search, sort, filter, options and new on the right, the narrow form under 700px, and Reset and Save for everyone in Customize's foot. Every change comes back as a `ListSettingsChange` or a layer patch: its search writes the settings' search, its ✕s clear in one change (`settingsCleared`), and the active view's menu gains "Edit view…" (`withEditView`), which opens Customize. It is a `ListRoot` around `ListToolbar` ([`/list`](./list.md)): its panels' state is held in that root, above its frame, so a change of form keeps a panel open on its page, in a sheet once the form is the phone's. Show counts is the view's: read from `settings.showCounts` for the views row and the quick filters, absent meaning on, it joins Customize's toggles where the views carry counts and is written back through `onChange`. Group steps aside on a board (`groupShown`).
157
+ - `ToolbarSave` — Clear and Save, at the end of a filter bar while the list differs (`data-slot="vk-toolbar-save"`): takes `view` (a `CollectionViewState`: Clear is its `onReset`, Save its `onPublish`, shown only where `canPublish`, both waiting while `pending`, nothing while `changes` is 0 unless `layered`, the reader's own layer holding something, when Clear stands alone to empty it), or with no shared view `onClear`, Clear alone taking the list back to its default; nothing when neither has anything to do. Clear has no ground and Save wears the field's look, each your `Button`. `only` (`"clear"` or `"save"`) draws that one button alone, with no `vk-toolbar-save` box around it, as the ready toolbar draws each where an app places Clear and Save apart.
158
+ - `ReadyToolbar` — the toolbar for an app that doesn't arrange its own (`ReadyToolbarProps`): the builder's input (`settings`, `layer`, `columns`, `onChange`, `onLayerChange` and the rest of `SettingsPanelsInput`), and optionally `views`, `viewsLayout`, `onAdd` or `addItems` and `addLabel`, `view`, `toggles`, `fieldEditor`, `searchPlaceholder`, `searching` (handed to its search), `hosts` (`{ options, sort, filter, quick }`), `customizeIn` (`"popover"` by default; `"pane"`: on a computer Customize opens in your map's `Pane`, `CONTROLS.Pane`, at the right edge of `paneBox`, under the toolbar and as tall as the list, the list in use beside it; on a phone its Sheet either way; a map with no `Pane`, or your own `hosts.options`, keeps theirs) and `paneBox` (the list's box the Pane stands in: positioned, holding the grid under the toolbar, never scrolling itself; null until it is on the page; not handed, the popover), `quickFilters` (a `QuickFiltersConfig`: handed, the quick filters' button stands on the row's end before the search, in the row arrangement before Options, folding into ⋯ as the row narrows; its counts follow the toolbar's Show counts unless the config carries its own `showCounts`), `quickFiltersOpen` with `onQuickFiltersOpenChange` (the quick filters' panel open, held by you, so a `QuickFiltersReminder` at your list's foot can open it; absent, the toolbar holds it), `phone`, `narrow`, `severalSorts` (true by default: the sort holds up to 3 rules, the row's Sort opening the sort editor on them, or in the old form the sort pill on the bar; `false` keeps Sort's one rule, which opens its own list whether or not a sort stands), `addAfter` (true by default: the + after the sort pill; `false` draws none, and the pill's editor, or your `SortBody`, has Add sort at its foot, as `ToolbarSortPill`'s), `filterGroups` (true by default: and/or groups, each filter on the filter bar on a computer, in the row arrangement each advanced filter's pill after Filter and Convert to advanced filter on a filter's page, and on a phone Filter opening the filter editor on every rule; `false` keeps Filter, counting what is applied, in either arrangement), `arrangement` (`"kit"` by default, or `"row"`), `sortFilter` (`"right"` by default, or `"bar"`), `bar` (`"added"` by default, or `"always"`: with Sort and Filter on the row's right, the bar then always shows, its empty Sort and Filter included), `viewName`, `onRenameView`, `onCopyLink`, `onExport` and `exportCount` (handed on to Customize, as `ToolbarOptions` takes them), `menus` (`ToolbarMenus`: a view's menu, New's, ⋯, Customize's rows and the sort, filter and group editors' menus as data), `toolbarParts` (`ToolbarParts`: where each part stands, every form's parts handed as data and drawn as you hand them back, [`/list`'s Parts as data](./list.md#parts-as-data)), `overflow` (`ToolbarOverflow`: ⋯ as you draw it where the parts don't fit), `moreViews` (`ToolbarMoreViews`: the views row's "+N" as you draw it) and `className`. It calls the builder and draws its parts in the kit's arrangement (`Toolbar`'s `fold`). By default, on a computer, one row at rest: the views with Customize beside them, then on its right Sort and Filter with their words, the quick filters' button and the search, each its icon alone, and New. The toolbar shows only what differs from the saved view (the open view's `saved`, or with no view the list's defaults; a view handed without `saved` keeps the older lighting, lit while a sort stands, the bar for every filter). Sort holds the sort (`ToolbarSortPill`'s `row`): lit while it differs, counted from two, it opens the sort editor to change or remove the rules, Add sort at its foot; with none, the fields. Filter (`ToolbarFilterAdd`, `opens="filters"`), lit while the filter differs, opens the view's filters, editable, with Add filter under them, as Sort opens its rules (with no filter, the editor's fields); the bar's + adds one filter to the bar. Under the row the filter bar, a step smaller, holds what changed: it comes while the sort or the filter differs, a filter is held (or one of its parts is open), or a second axis of views stands there, holding the changed sort ("Sorted by", a list with one sort's included: `ToolbarSort`'s `bar`), the filters that aren't the saved view's own (an edited one as edited; each as below, + after the last, no empty Filter) and Clear and Save at its end. Something taken away (a saved rule removed) brings Clear and Save alone. Customize's foot holds Reset and Save too while anything differs, the bar standing or not (on a shared view Customize also carries its dot), as on a phone. Each of the row's Sort and Filter is a panel of its own, apart from the bar's, so a press opens one list. `sortFilter: "bar"` with `bar: "always"` draws the kit arrangement's old form: the row, the views with Customize beside them and the search and New at its end, and under it the filter bar, always shown, a step smaller: the sort pill first, a separator, the filters (`ToolbarFilters`: each filter as its four joined parts, each advanced filter's pill, + after the last; while there is none, Filter, an empty place; the rule held until whole is held by the toolbar, so the bar counts it as it folds; with `filterGroups` false, Filter as before, with what is applied counted), and at its end Clear and Save (`ToolbarSave`) while the list differs: on a shared view (`view`) Clear takes it back and Save, where `canPublish`, keeps it for everyone; with no shared view, Clear alone takes the list back to its default (nothing filtered, the default sort, no group: so a list that starts grouped or filtered shows Clear at once); Customize's foot then draws neither. A row with no room folds as the kit's does (words to icons, the view tabs into "+N", the bar's last filters into "+N filters", then into ⋯: by default Customize and the row's Sort and Filter, whatever is set; in the old form Customize, and the sort and Filter while no filter stands), with no narrow form. On a phone one line in either form (the views, the sort, Filter, the quick filters' button when handed, Customize, then the search, which opens across the line), Clear and Save in Customize's foot (`views.panels.view-clear`, `views.panels.view-save`; with no shared view, Clear alone), and New a round + at the list's foot, lifted by `--vk-toolbar-foot`. `arrangement: "row"` draws the order of 12 Nov instead: the views on the left; search, sort, filter, options and new on the right, the narrow form under 700px, and Reset and Save for everyone in Customize's foot. Every change comes back as a `ListSettingsChange` or a layer patch: its search writes the settings' search, its ✕s clear in one change (`settingsCleared`), and the active view's menu gains "Edit view…" (`withEditView`), which opens Customize. It is a `ListRoot` around `ListToolbar` ([`/list`](./list.md)): its panels' state is held in that root, above its frame, so a change of form keeps a panel open on its page, in a sheet once the form is the phone's. Show counts is the view's: read from `settings.showCounts` for the views row and the quick filters, absent meaning on, it joins Customize's toggles where the views carry counts and is written back through `onChange`. Group steps aside on a board (`groupShown`).
159
159
  - `ReadyToolbarProps` — what `ReadyToolbar` takes.
160
160
  - `ToolbarParts` — `ReadyToolbar`'s and `ListToolbar`'s `toolbarParts`: `(parts: ToolbarPartPlace[], ctx: ToolbarPartsContext) => ToolbarPartPlace[]`, handed the form's parts in the order they are placed and handing back the parts drawn, in their order. The rules and an example are [`/list`'s Parts as data](./list.md#parts-as-data).
161
- - `ToolbarPartPlace` — a part's place: `{ key, line, side, words, node?, className?, button?, panel? }`: its public key, its line (`"row"`, `"bar"`, or `"foot"`, New's place at a kit phone list's foot), its side (`"start"` or `"end"`), its words (`"both"` or `"icon"`), `node` for a part of your own under a key of your own, and its look: `className`, put on every toolbar button the part draws, and `button`, your own button drawn for each of them in place of your `ToolbarButton`, handed the same props (`ref` included: put it on your button); and `panel` (`ToolbarPanelPlace`), where what it opens hangs at its button. [`/list`'s Parts as data](./list.md#parts-as-data) lists each place's buttons and what stays fixed.
161
+ - `ToolbarPartPlace` — a part's place: `{ key, line, side, words, node?, className?, button?, panel? }`: its public key, its line (`"row"`, `"bar"`, or `"foot"`, New's place at a kit phone list's foot), its side (`"start"` or `"end"`), its words (`"both"`, `"icon"` or `"word"`, its word alone), `node` for a part of your own under a key of your own, and its look: `className`, put on every toolbar button the part draws, and `button`, your own button drawn for each of them in place of your `ToolbarButton`, handed the same props (`ref` included: put it on your button); and `panel` (`ToolbarPanelPlace`), where what it opens hangs at its button. [`/list`'s Parts as data](./list.md#parts-as-data) lists each place's buttons and what stays fixed.
162
162
  - `ToolbarPartsContext` — which form the parts are for: `{ arrangement, phone }` (`"kit"` or `"row"`, and whether it is a phone's).
163
163
  - `ToolbarMore` — ⋯ as data, `Toolbar`'s `more` and `ToolbarMenus`' `more`: `(items, { line }) => items`.
164
+ - `ToolbarMoreViews` — the views row's "+N" as you draw it, `ReadyToolbar`'s and `ListToolbar`'s `moreViews`, as ⋯ is handed: `className` (put on ViewKit's own "+N") and `button` (your own button in its place, handed the props your `ToolbarButton` would get: `part: "views-more"`, `icon: null`, `word: null`, the count as its `children` ("+2"), its name as `label`, `popup: "dialog"`, `open`, `size` and `ref`, `onClick` and `onPointerDown`: put `ref` on your button, so the folded views' list hangs at it). Absent, ViewKit's own "+N", as before. In your own frame "+N" is your `ToolbarButton` (`part: "views-more"`), whatever you hand here.
164
165
  - `ToolbarOverflow` — ⋯ as you draw it, `Toolbar`'s, `ReadyToolbar`'s and `ListToolbar`'s `overflow`, as a `toolbarParts` place's look is handed: `icon` (your glyph over your `icons.more`), `className` (put on it) and `button` (your own button in place of your `ToolbarButton`, handed the very props it would get, `part: "more"` and `ref` included: put `ref` on your button, so ⋯'s menu hangs at it). Absent, ⋯ is your `ToolbarButton` with `icons.more`, as before.
165
166
  - `ToolbarMenus` — the toolbar's menus as data, `ReadyToolbar`'s and `ListToolbar`'s `menus`: `view(items, { view })` (a view's menu: an option's own rows, Edit view… among them, and the menu a views list draws from the axis's verbs), `add(items)` (New's items: `addItems`, or with `onAdd` alone one row keyed `new`; New opens what it returns as a menu) `more(items, { line })` (⋯'s rows, each keyed by its part, on the row's line or the filter bar's) `customize(items, { page, form, layout })` (Customize's rows: its list's, Layout's and Columns', a `ViewsCustomizeItems`, VK-1062; the older popover route, `ViewOptionsPopoverPanel`, hands none), and `sortEditor`, `filterEditor` and `groupEditor` (the editors' menus, `ViewsSortEditorItems`, `ViewsFilterEditorItems`, `ViewsGroupEditorItems`, VK-1063, wherever this toolbar draws the editors). The helpers, the keys and the rules are [`/list`'s Menus as data](./list.md#menus-as-data).
166
167
  - `useListSettingsState` — a list's settings and layer held in memory, for an app that keeps none yet (a proof page, a test): `{ settings, layer? }` in, `{ settings, layer, onChange, onLayerChange }` out, ready to spread into `ReadyToolbar` beside its `columns`, or into a `ListRoot` ([`/list`](./list.md)): it is the root's memory mode. Each change is applied to the latest settings (`applySettingsChange`), each patch merged into the latest layer.
@@ -84,7 +84,7 @@ Which form a toolbar draws and where each part stands in it; [`viewkitjs/views/p
84
84
  The fold arrangement (`arrangeToolbar`'s `{ fold: true }`) is the kit's: on a computer the row (line 1) and, under it, the filter bar (line 2), a step smaller; on a phone one line holding the row's start in the order handed, the bar's start going in right after the views (first where there are none), then the row's and the bar's ends. It has no narrow form: a line with no room folds instead, in steps from its end: the words of every part that may `shed` them turn to its icon, then the view tabs fold into "+N" one at a time, then each part's filters fold into "+N filters" one at a time, then every part that may `fold` goes into ⋯.
85
85
 
86
86
  - `ToolbarForm` — `"row"`, `"narrow"` or `"phone"`.
87
- - `ToolbarPlacement` — where a part stands: its `key`, its `side` (`start`, the default, or `end`), its `line` (`1`, the default, or `2`) and `role: "search"` for the search (a second part marked as the search stands as a plain part) or `role: "separator"` for a line between the parts either side of it. In the fold arrangement, `shed` (its words may turn to its icon), `tabs` (how many of its view tabs may fold into "+N"), `filters` (how many of its filters may fold into "+N filters") and `fold` (it may fold into ⋯). And `words` (`"icon"`: its buttons stand as their icon alone; `"both"`: the search's, and a quick filters' button handed no word, read theirs; absent, each its own) and `foot` (`false` keeps New on a phone's folding line instead of at the list's foot), both reaching the part through its slot.
87
+ - `ToolbarPlacement` — where a part stands: its `key`, its `side` (`start`, the default, or `end`), its `line` (`1`, the default, or `2`) and `role: "search"` for the search (a second part marked as the search stands as a plain part) or `role: "separator"` for a line between the parts either side of it. In the fold arrangement, `shed` (its words may turn to its icon), `tabs` (how many of its view tabs may fold into "+N"), `filters` (how many of its filters may fold into "+N filters") and `fold` (it may fold into ⋯). And `words` (`"icon"`: its buttons stand as their icon alone; `"both"`: the search's, and a quick filters' button handed no word, read theirs; `"word"`: its buttons with a word stand as their word alone, no icon; absent, each its own) and `foot` (`false` keeps New on a phone's folding line instead of at the list's foot), both reaching the part through its slot.
88
88
  - `ToolbarSlot` — one part in a line: its `key`, and `fill` when it takes the line's room (the search as a field); in the fold arrangement also `shed`, `tabs`, `filters`, `fold`, `separator` and `search`, each only where it holds.
89
89
  - `ToolbarLine` — one line: its `kind` (`main`, `search`, `views`, `below`, or the fold arrangement's `bar`), its `start` and `end` slots, and the `size` its buttons take (`md` or `sm`).
90
90
  - `TOOLBAR_NARROW_BELOW` — the box width under which a toolbar is narrow (700).
@@ -15,7 +15,7 @@ Guide: [the provider](../guides/the-provider.md).
15
15
  - `PANEL_CONTROL_NAMES` — `Button`, `Select`, `Menu`, `Popover`, `Input`, `Calendar` and `Avatar` (your `atoms.Avatar`, VK-1044): the controls the provider's `panelControls` can name.
16
16
  - `PanelControlName` — one member of `PANEL_CONTROL_NAMES`.
17
17
  - `flatSelectItems` — a Select's rows (`ViewsSelectItem[]`) with every `level` flattened, each row one level in standing in its parent's place, named by its path ("Company › Region"), its value as handed: for a `Select` of yours that draws no levels.
18
- - `DEFAULT_DESKTOP_QUERY` — `(min-width: 1024px)`: the width a desktop starts at when the provider is handed no `desktopQuery`, the default controls' phone line too (`PhoneLine`, in controls.md). Where the screen can't be asked (a server render, a browser with no `matchMedia`), it is a desktop.
18
+ - `DEFAULT_DESKTOP_QUERY` — `(min-width: 1024px)`: the width a desktop starts at when the provider is handed no `desktopQuery`, the default controls' phone line too (`PhoneLine`, in controls.md). Where the screen can't be asked (a server render, a browser with no `matchMedia`), it is a desktop, except for a list's toolbar and grid and a record's field rows, which a server render draws in both forms, CSS showing the screen's (`VK_INTERNAL_MARKS` in the contract).
19
19
  - Required: `components` (your primitives, `ViewsComponents`: `CONTROLS`, or it with your own spread after it, or every one of your own) and `children`.
20
20
  - Defaulted (VK-198): `icons` (your glyphs by meaning, `ViewsIcons`; absent, each meaning drawn through your `AppIcon` by its name, which `CONTROLS.AppIcon` draws with ViewKit's own glyphs); `ports` (your runtime services, `ViewsPorts`, each optional: absent, haptics that do nothing, the browser's clipboard, a store on `localStorage` at the package's `vk:` keys, and the toast and confirm `PortsHost` draws); `conventions` (the `FieldConventions` of `viewkitjs/fields` every value is read with; absent, `en-US` in `UTC`, the same on the server and in the browser). What you hand wins.
21
21
  - Optional: `atoms`, any of your own atoms, each laid over the default of its name, or over `CONTROL_ATOMS`' where `components` is `CONTROLS` as it stands (a map spread from it carries none); `messages`, your wording for the package's own messages, defaulting to `resolveViewsMessage` (the package's English); `presentation`, `(defaults: FieldPresentation) => FieldPresentation`, how your numbers, dates and durations read: given the package's defaults in the conventions' locale, return yours. It is called where a value is drawn, so your provider imports none of the display.
@@ -148,23 +148,23 @@ Guide: [atoms](../guides/atoms.md).
148
148
  The pieces the rendering is built from, and your app's own pieces it cannot draw itself. Each ships as a default, drawn from your app's colours and marked with its own `data-slot`; your app swaps any of them through the provider's `atoms`, and the rest stay the defaults. A swapped atom marks itself as your app does. The [contract](../contract.md) lists their slots and states.
149
149
 
150
150
  - `DEFAULT_VIEWS_ATOMS` — the atoms every app starts with, one default per name of `ViewsAtoms`; the provider lays your `atoms` over it.
151
- - `ViewsAtoms` — the full set, one component per atom: `List`, `Row`, `RowContent`, `TickBox`, `Avatar`, `StatusBadge`, `StatusMarker`, `Tag`, `CommandMenu`, `RelationLink`, `RelationRoles`, `RelationChip`, `CellMore`, `Loading`, `LoadMore`, `PlatformMark`, `RowMenu`, and the panels' rows `ChoiceRow`, `CheckRow`, `RadioRow`, `DirectionButton`, `MenuRow`, `ToggleRow` and `PanelSearch`, the selection's `SelectionSheet`, the filter panel's month `RangeCalendar`, the views row's `Pill`, and the toolbar's `ToolbarButton`. The provider's `atoms` takes any part of it.
152
- - `ViewsChoiceRowProps` — a panel's value row: `label`, a `description` under it, a right-hand `meta` (a sample, a count; a row with one draws no check), `leading`, `trailing`, `selected`, `onClick`, `onMouseDown`, `disabled`, `role` and `aria-selected`.
151
+ - `ViewsAtoms` — the full set, one component per atom: `List`, `Row`, `RowContent` (deprecated, drawn by nothing), `TickBox`, `Avatar`, `StatusBadge`, `StatusMarker`, `Tag`, `CommandMenu`, `RelationLink`, `RelationRoles`, `RelationChip`, `CellMore`, `Loading`, `LoadMore`, `PlatformMark`, `RowMenu`, and the rows ViewKit's own filter and sort bodies draw, `CheckRow`, `RadioRow`, `DirectionButton`, `MenuRow` and `PanelSearch` (the older panels, `severalSorts: false` or `filterGroups: false`, and the value body a filter rule falls back to), with `ChoiceRow` and `ToggleRow` (deprecated, drawn by nothing), the selection's `SelectionSheet`, the filter panel's month `RangeCalendar`, the views row's `Pill`, and the toolbar's `ToolbarButton`. The provider's `atoms` takes any part of it.
152
+ - `ViewsChoiceRowProps` — deprecated with the `ChoiceRow` atom, which nothing draws; a panel's value row: `label`, a `description` under it, a right-hand `meta` (a sample, a count; a row with one draws no check), `leading`, `trailing`, `selected`, `onClick`, `onMouseDown`, `disabled`, `role` and `aria-selected`.
153
153
  - `ViewsCheckRowProps` — toggles one of many, a tick box on the left: `checked`, `onClick`, its `children`, `leading`, `trailing`, `disabled`.
154
154
  - `ViewsRadioRowProps` — picks one of a set: `selected`, `label`, `onClick`, `leading`, `trailing`, `mark` (`"check"` or `"box"`), `disabled` and the `disabledReason` your `Tooltip` shows, and class hooks for the check and the label.
155
155
  - `ViewsDirectionButtonProps` — a sort's direction arrow: `dir` (`"asc"` or `"desc"`) and `onClick`; a press never reaches the row around it.
156
156
  - `ViewsMenuRowProps` — a drill-in row: `icon`, `label`, `value` (where the section stands), `active`, `disabled` and the `disabledReason` your `Tooltip` shows, `onClick`.
157
- - `ViewsToggleRowProps` — a boolean flipped in place: `icon`, `label`, `active`, `disabled` and the `disabledReason` your `Tooltip` shows, `onClick`, and `reset` (`{ onReset }`), the way back to the reader's default.
157
+ - `ViewsToggleRowProps` — deprecated with the `ToggleRow` atom, which nothing draws; a boolean flipped in place: `icon`, `label`, `active`, `disabled` and the `disabledReason` your `Tooltip` shows, `onClick`, and `reset` (`{ onReset }`), the way back to the reader's default.
158
158
  - `ViewsPanelSearchProps` — a panel's text box: `value`, `onChange`, `onClear`, `placeholder`, `autoFocus`, `onKeyDown`, `onFocus`, `inputRef`, `leading` (`null` drops the magnifier), `suffix` and `inputMode`.
159
159
  - `ViewsPillProps` — one option of a row of pills: `active`, `variant` (`solid` or `plain`), `size` (`default` or `sm`), `leading` and `leadingSlot`, your own `activeClassName` and `hoverClassName`, `onClick`, `onContextMenu`, `onPointerDown`, `menuOpen` (it opens a menu) and `ref`.
160
160
  - `ViewsToolbarButtonProps` — a toolbar's button: its `icon`, its `label` (its name, and the word a dress shows unless `word` says another, or `null` for none), a `count` in its corner that becomes a ✕ badge clearing what it counts when handed `onClear`, a `dot` drawn instead of a count, `open`, `changed`, `edge` (the row's outermost button), `disabled`, `size` (`md` or `sm`), `popup` (`menu` or `dialog`, with `aria-expanded` from `open`), `joined` (`start`, `middle` or `end`: one of buttons joined as one, its outer corners alone rounded, `data-joined`), `waits` (its words say what it waits for, in the placeholder's colour, `data-waits`), `part` (which button it is, below), `className` (its toolbar place's class: put it on the button), `onClick`, `onPointerDown` and `ref`; its own words (`children`) keep to one line, cut with "…" where a holder caps its width.
161
161
  - `ViewsToolbarButtonPart` — which of the toolbar's buttons a `ToolbarButton` stands for, handed as `part` by every button the toolbar draws: named after the `toolbarParts` place it stands in (`options`, `search`, `quick`, `new`, `sort`, `filter`, `filter-add`, `filters`, `advanced-filters`, `sort-pill`), a place's second kind of button by a name of its own (`sort-add`, Sort's +; `more-filters`, "+N filters"), ⋯ `more`, and the frame's parts (`ViewsFramePart`). Which place draws which is [`/list`'s Default keys](./list.md#default-keys). An atom that spreads its leftover props onto its element takes `part` out first.
162
162
  - `ViewsFramePart` — the six a `ToolbarButton` is handed only where your own toolbar frame draws them: `views-chip`, `views-tab`, `views-more`, `views-add`, `clear` or `save`, with `current` (a view tab; `true`, the open one) and `onContextMenu` (a tab's verbs); draw each as its `data-slot` (`vk-views-chip`, `vk-views-tab`, `vk-views-more`, `vk-views-add`, `vk-toolbar-clear`, `vk-toolbar-save-button`). Dress by these, not by any `part`: `if (part && FRAME.has(part))`.
163
163
  - `ViewsListProps` — the rows' container, the inset a run of rows sits in inside a panel or a command list's group: its `children` and a class.
164
- - `ViewsRowContentProps` — a row's inside, all the row is inside a command list's item, which owns the element, the highlight and the keyboard.
164
+ - `ViewsRowContentProps` — a row's inside, what `ViewsRowProps` is built on (the `RowContent` atom that took it alone is deprecated).
165
165
  - What it says: a `label` (text truncates to one line, any other node is laid out in a row so it centres; `wrap` lets a long label break), a `description` line under it, a `leading` glyph (with `leadingLane` to keep its width when there is none), `trailing` content after the label, and a `detail` at its right edge in the subtle colour, such as a setting's current choice.
166
166
  - How it reads: `chosen` draws a trailing check (a chosen row with a `detail` draws the detail in the brand colour and no check), `chosenTint` false keeps a badge label's own colour, `tone` `muted` for a row that offers rather than lists (none, create, add), and `size` `compact` (13px) or `regular` (your menu size, the default).
167
- - `ViewsRowProps` — a whole row: everything `ViewsRowContentProps` takes, as a button, or with `interactive` false a static line. It adds `onClick`, `onMouseDown` (for a row inside an editor that keeps its input focused), `disabled`, `title`, a `role` with `aria-selected`, and `opens` and `open` for a row that opens a flyout beside its menu.
167
+ - `ViewsRowProps` — a whole row: everything `ViewsRowContentProps` takes, as a button, or with `interactive` false a static line. It adds `onClick`, `onMouseDown` (for a row inside an editor that keeps its input focused), `disabled`, `title`, a `role` with `aria-selected`, and `opens` and `open`, deprecated: nothing in ViewKit hands them, since it draws no flyout beside a menu.
168
168
  - `ViewsTickBoxProps` — a paint-only tick box: `checked` and a class. The control around it is the caller's.
169
169
  - `ViewsAvatarProps` — a person's or a record's picture, drawn in a user's, a relation's and an actor's chip (`size: "chip"`) and before the name when the list's `rowIcon` hands the row's `avatar` (`size: "glyph"`, sized by `--vk-glyph`): `label` (whose picture it is, for initials), `avatarUrl` (the picture, when there is one), `kind` (the record's kind as your app names it: a relation's `entity`, `user` for a member, an actor's type) and `fallback` (the glyph the chip or the name draws without a picture). Where the provider's `panelControls` names `Avatar`, it also draws every record's mark ViewKit's panels draw (the Picker's rows, the links editor's, the bulk bar's choices, the quick filters' values), its `size` then a number in pixels (20, 24, 32 or 40) and its `fallback` ViewKit's own Avatar (VK-1044). The default draws the picture while it loads and the fallback otherwise; yours may hand back the fallback for a kind it doesn't dress. It only paints: what wraps the chip owns the click.
170
170
  - `ViewsStatusBadgeProps` — a pill coloured by a status slot of `viewkitjs/fields`: its `slot` and `label`, a `leading` mark that replaces the slot's own, a `title`, a `size` (`compact`, 11px, the default; `regular`; or `row`, the text size of the row it sits in, which a cell's status value hands) and a class. It is handed `place` wherever a field's option is drawn (a cell, the select editor, the selection bar): where the status stands among the field's steps.
@@ -15,7 +15,7 @@ Guide: [selection](../guides/selection.md).
15
15
 
16
16
  ## The bar
17
17
 
18
- - `SelectionBar` — the bar a selection opens, portalled to the body and placed by the provider's `selectionBar`. On a desktop, an island: the count chip (a press clears the selection; its tooltip names Escape; ViewKit's own, or your `Button` with `selectionBar`'s `chip: "button"`), the first four verbs, the trash when `onDelete` is handed, a hairline and More, always drawn (when nothing spills into it, a Tab stop that opens nothing, `aria-disabled`, saying why in your `Tooltip`: `views.selection.more-none`), holding the rest (a group or an options verb opening its rows beside it). On a phone, a pill reading the count, Actions and ✕; Actions opens the `SelectionSheet` atom. It draws nothing while `count` is zero. Handed a `SelectionBar` in the components map (`CONTROLS`: the Outright bulk bar), it draws that one in its place instead, in the box that holds it, at every count; `noun` and `deleteLine` are for that bar.
18
+ - `SelectionBar` — the bar a selection opens, portalled to the body and placed by the provider's `selectionBar`. On a desktop, an island: the count chip (a press clears the selection; its tooltip names Escape; ViewKit's own, or your `Button` with `selectionBar`'s `chip: "button"`), the first four verbs not marked `more`, the trash when `onDelete` is handed, a hairline and More, always drawn (when nothing spills into it, a Tab stop that opens nothing, `aria-disabled`, saying why in your `Tooltip`: `views.selection.more-none`), holding the verbs marked `more`, then the rest (a group or an options verb opening its rows beside it). On a phone, a pill reading the count, Actions and ✕; Actions opens the `SelectionSheet` atom. It draws nothing while `count` is zero. Handed a `SelectionBar` in the components map (`CONTROLS`: the Outright bulk bar), it draws that one in its place instead, in the box that holds it, at every count; `noun` and `deleteLine` are for that bar.
19
19
  - `SelectionBarProps` — what `SelectionBar` takes: `count`, `onClear`, `verbs` (`SelectionVerb`s, in order), optional `busy` (disables every control), `onDelete` (the bar's own verb, the trailing trash; never a verb in `verbs`) and `deleteLabel` (the trash's name; default the `views.selection.delete` message).
20
20
  - `SelectionVerb` — one verb, as data: `{ kind: "action" }` with a `SelectionVerbItem`'s fields; `{ kind: "group", label, icon?, disabled?, disabledReason?, items }`, a button opening a menu of `SelectionVerbItem`s, whose rows that give no reason carry the group's; or a `SelectionOptionsVerb`.
21
21
  - `SelectionVerbItem` — an action: `label`, optional `icon` (your glyph), `onClick`, `destructive` (the danger colour), `disabled`, and `disabledReason`, why it is disabled: More's row, the bar's button and the phone's sheet carry it.
@@ -19,12 +19,12 @@ Guide: [the provider](../guides/the-provider.md).
19
19
  - `VkColour` — one member of `VK_COLOURS`.
20
20
  - `VK_OPTIONAL_COLOURS` — the status hues (`--vk-success`, `--vk-warning`, `--vk-info`) and the category hues (`--vk-label-blue` to `--vk-label-teal`) the default atoms and the display read when your app declares them, each with a built-in fallback; the status washes (`--vk-success-subtlest`, `--vk-warning-subtlest`, `--vk-info-subtlest`), the words on a filled status (`--vk-fg-inverse`, `--vk-fg-warning-inverse`), and each hue's soft fill and the default Tag's pill rungs (`--vk-label-blue-soft`, `--vk-label-blue-fill`, `--vk-label-blue-edge`, `--vk-label-blue-strong` and the same for each hue); beside the shadows, the selected ground and the cell outlines' colours listed under [Tokens](../contract.md#tokens).
21
21
  - `VkOptionalColour` — one member of `VK_OPTIONAL_COLOURS`.
22
- - `VK_OPTIONAL_LAYOUT` — the layout your app may declare, each read with a fallback: `--vk-gutter` (`0px`), the side padding your page gives its content, which the grid's rows line their content up with; `--vk-scroll-inset-bottom` (`0px`), how much of the grid's foot your app covers with something it floats there (a phone's bottom bar), so the grid's scroll area runs underneath it and its last row scrolls clear of it; and `--vk-panel-padding` (`0.375rem`), the inset a panel's list keeps from the panel's edge; and the rail, outline, gap, type, line and timing variables listed under [Tokens](../contract.md#tokens).
22
+ - `VK_OPTIONAL_LAYOUT` — the layout your app may declare, each read with a fallback: `--vk-gutter` (`0px`), the side padding your page gives its content, which the grid's rows line their content up with; `--vk-scroll-inset-bottom` (`0px`), how much of the grid's foot your app covers with something it floats there (a phone's bottom bar), so the grid's scroll area runs underneath it and its last row scrolls clear of it; and `--vk-panel-padding` (`0.375rem`), the inset a panel's list keeps from the panel's edge; and the rail, outline, gap, type, line and timing variables and a popup's motion (`--vk-popup-*`), listed under [Tokens](../contract.md#tokens).
23
23
  - `VkOptionalLayout` — one member of `VK_OPTIONAL_LAYOUT`.
24
24
  - `VK_INTERNAL` — the grid's own variables, set and read by the grid alone: `--vk-drag-shift`, a header cell's offset while its column is dragged. Prefixed because they share the global namespace, and not public: your app neither sets nor reads them, and they may change in any release.
25
25
  - `VkInternal` — one member of `VK_INTERNAL`.
26
26
  - `VK_INTERNAL_FAMILIES` — the grid's internal variable families, a prefix with one variable per key after it: `--vk-col-w-<id>`, one column's resolved width, set on the grid's root for every visible column. Not public, like `VK_INTERNAL`.
27
- - `VK_INTERNAL_MARKS` — the display's own marks, set and read by ViewKit alone: `vk-fit` on a cell fitting its values and `vk-fit-value` on each value's box, which its measure reads. Not public, like `VK_INTERNAL`: your app neither sets, reads nor styles them, and they may change in any release.
27
+ - `VK_INTERNAL_MARKS` — the display's own marks, set and read by ViewKit alone: `vk-fit` on a cell fitting its values and `vk-fit-value` on each value's box, which its measure reads; `vk-screen-forms` on the box a server-rendered list, toolbar, grid, Field rows' card or field row outside one stands in, and `vk-twin` and `vk-twin-line` on its two forms' boxes while the page comes alive. Not public, like `VK_INTERNAL`: your app neither sets, reads nor styles them, and they may change in any release.
28
28
  - `VkInternalMark` — one member of `VK_INTERNAL_MARKS`.
29
29
  - `VK_CONTROL_TOKENS` — every name ViewKit's default controls (`viewkitjs/views/controls`) read, each with its `kind` (`colour`, `shadow`, `size` or `motion`): all optional, the ready stylesheet declaring each at the Outright look's value, and each standing for the Outright token [the controls' tokens](../contract.md#the-controls-tokens) names.
30
30
  - `VkControlToken` — one name of `VK_CONTROL_TOKENS`.
@@ -267,7 +267,7 @@ A binding says how one field reads and writes on one entity's row. Your app decl
267
267
  - what it binds and reads: `field`, the field; `read`, the display value (a relation reads its resolved value); and `editRead`, the stored value when it differs (a relation's id, the raw value behind a fallback);
268
268
  - how it writes: `write` maps a commit onto a `FieldPatch`, the request body or a refusal with the reason the surface shows, and absent, the field is never writable on any surface; `history`, a `FieldHistoryAdapter`, covers a write that also moves companion state;
269
269
  - what its editor needs: `unit`, a `FieldUnit`, for an amount whose code is the row's (the number editor's unit chip is a picker only with it); `region`, the record's country read off the row, where a phone typed without its country code is read (absent, the conventions' region); `relation`, a writable relation's candidates as a `RelationSource`; `create`, a relation's `RelationCellCreate` (refused on a member field, on any field but a relation, and without a `write`); `addOption`, a select's or multiselect's `OptionAdd`, which + Add in its cells and its field row asks for an option made from a typed word (refused on any other field and without a `write`; hand it only to the readers who may add, and `columnFrom` carries it to the column's `addOption`). A writable relation that stores refs or links binds, and the grid and a record's field row save it in its stored shape; a surface built on `RelationEditor` alone (a card, a form field) commits one bare id, so it can't save such a relation yet; and `labels: false` on a field holding several values that keeps only the values, so its editor offers no label box;
270
- - how it draws and totals: `icon`, your app's own icon name for the field, drawn by the host (the type's glyph when absent); and `ratio`, a ratio formula's two parts read off the row, which a footer sums.
270
+ - how it draws and totals: `icon`, your app's own icon name for the field, drawn by the host (the type's glyph when absent); `action` (`none`, `edit` or `expand`), the one icon a record's field row shows at its box's end under the Field's Action (`row-action: icon`), where absent the row answers by the field's type; and `ratio`, a ratio formula's two parts read off the row, which a footer sums.
271
271
  - `FieldBindingSpec` — a `FieldBinding` without its `field`: what `bindField` and `bindFields` take for each field.
272
272
  - `BoundFields` — what `bindFields` returns: a frozen binding for every key of the registry, each typed to its own field.
273
273
  - `FieldUnit` — a per-row unit: `read`, the row's code (the unit chip's value), and `options`, the codes the chip offers. With `rates`, the row's own multipliers into every readable currency, a surface may read the field in another currency: the binding then states every accessor in the row's own currency, never converted, and the list converts (`readMoneyColumn`). Without it the field is read in its own currency only.
@@ -43,8 +43,8 @@ Cheapest change first. Each step reaches further and costs more to keep current.
43
43
  **What ViewKit draws by itself is yours when you hand it.** ViewKit says which actions exist and what they do; it never
44
44
  decides how your buttons look. Anything it draws on screen of its own accord, the ⋯ a toolbar folds its parts into first,
45
45
  takes yours where you hand one: `overflow` on the list's toolbar (`ReadyToolbar`, `ListToolbar`, `List`'s `toolbar`) and on
46
- the kit's `ToolbarControl`, your glyph, your class or your whole button; on `ToolbarControl` "+N" and "+N filters" too
47
- (`moreViews`, `moreFilters`), your class or your whole button. Hand nothing and it draws its own. The toolbar is the
46
+ the kit's `ToolbarControl`, your glyph, your class or your whole button; the views row's "+N" too, `moreViews` on the list's
47
+ toolbar and on `ToolbarControl`, and "+N filters" on `ToolbarControl` (`moreFilters`), your class or your whole button. Hand nothing and it draws its own. The toolbar is the
48
48
  bar above a list and nothing else: a row of a page's actions (a record's) is yours, on your Button.
49
49
 
50
50
  An `if` in a skin that is not about layout is engine code in the wrong place: file it as a package
@@ -79,7 +79,7 @@ next-intl, scope the translator to the namespace (`useTranslations("views")`; a
79
79
  typed catalog can overflow TypeScript) and read each key without its `views.` prefix:
80
80
  `(m) => { const key = m.key.slice("views.".length); return t.has(key) ? t(key, "values" in m ? m.values : undefined) : resolveViewsMessage(m); }`.
81
81
 
82
- The atoms — `List`, `Row`, `RowContent`, `TickBox`, `StatusBadge`, `StatusMarker`, `Tag`, `CommandMenu`,
82
+ The atoms — `List`, `Row`, `TickBox`, `StatusBadge`, `StatusMarker`, `Tag`, `CommandMenu`,
83
83
  `RelationLink`, `RelationRoles`, `RelationChip`, `Loading`, `LoadMore`, `PlatformMark`, `RowMenu` — ship as defaults drawn from your theme. Swap any of them through `atoms` so the views wear
84
84
  your own menus and pills. `CommandMenu`, `RowMenu` and `RelationLink` are your app's own pieces — the verb menu a
85
85
  command cell opens, the row's right-click menu, and where a relation chip goes; their defaults are the map's menu,