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
@@ -159,7 +159,7 @@ attribute.
159
159
  | `data-selected` | row | the row is checked |
160
160
  | `data-hovered` | row | the app holds the row under the pointer (`GridTable`'s `hoveredRow`), or the row menu is open on it (the `RowMenu` atom's `onOpenChange`), drawn as a real hover draws it; a real pointer's row wears none, its look being `:hover`, so a skin dresses both |
161
161
  | `data-active` | row | the active row, under `GridTable`'s `rowHighlight: "active"`: the row last pressed, or the picked cell's; it wears the row's tint, and no row tints under the pointer |
162
- | `data-editing` | cell | an editor is open here |
162
+ | `data-editing` | cell | an editor is open here, until it starts to close |
163
163
  | `data-in-range` | cell | inside the selected range |
164
164
  | `data-range-edge` | cell | which edges of the range this cell draws |
165
165
  | `data-pending` | cell | a write is in flight |
@@ -315,12 +315,10 @@ picked cell's ring share one geometry: `--vk-outline-radius` is the corners of b
315
315
  radius, exactly what `rounded-sm` drew: the Outright look's with the stylesheet, the app's Tailwind one with `@source`), so an app that draws a picked cell straight declares `0` and the
316
316
  hovered cell follows. Each line takes its own colour: `--vk-outline-hover` the hovered cell's (undeclared,
317
317
  `--vk-border-bold`), `--vk-outline` the picked ring at rest (undeclared, `--vk-fg-subtle`) and
318
- `--vk-outline-active` the picked ring under the pointer or while editing (undeclared, `--vk-border-brand`).
318
+ `--vk-outline-active` the picked ring under the pointer (undeclared, `--vk-border-brand`).
319
319
  The hovered cell's lift is `--vk-outline-hover-shadow`, a whole `box-shadow` value; undeclared,
320
- `0 1px 2px rgb(0 0 0 / 0.05)`, and `0 1px 2px rgb(0 0 0 / 0.22)` in the dark. The open editor's lift, under the
321
- picked cell's ring while it is edited and under the box a value wider than its cell grows into, is
322
- `--vk-editing-shadow`, a whole `box-shadow` value; undeclared, Tailwind's `shadow-lg` in black,
323
- `0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2)`, at `0.5` in the dark; `none` turns it off. The hover is CSS: the hovered cell draws its line as its own `::after`, and nothing renders as the pointer moves.
320
+ `0 1px 2px rgb(0 0 0 / 0.05)`, and `0 1px 2px rgb(0 0 0 / 0.22)` in the dark. `--vk-editing-shadow`, once the open editor's lift, is drawn by nothing since 0.37.0: an open editor lifts nothing,
321
+ and the name stays in the list only so an app that declares it still typechecks. The hover is CSS: the hovered cell draws its line as its own `::after`, and nothing renders as the pointer moves.
324
322
  A picked row's lines, over the first picked row of a run and under every picked row, are `--vk-selection-edge`
325
323
  (undeclared, `--vk-brand`); an app that declares it `transparent` shows the cells' own line there, so a picked row
326
324
  reads by its tint alone. Nothing else in the row reads it, so the brand stays on its focus ring and its checkbox.
@@ -359,7 +357,10 @@ between its glyph, label, value and lane (`calc(var(--spacing)*3)`), `--vk-field
359
357
  in the middle of it (`auto`), `--vk-field-row-py` for its padding above and below (`calc(var(--spacing)*2.5)`), `--vk-field-row-line-w`
360
358
  for the line under every row but the last (`1px`; `0px` draws none), `--vk-field-row-line` for that line's colour
361
359
  (`--vk-border`) and `--vk-field-row-label-fg` for its label's colour (`--vk-fg-subtle`). Undeclared, the row draws as
362
- it always has; declared on a section or any ancestor, every row in it takes them. Inside a Field rows card on a phone the
360
+ it always has; declared on a section or any ancestor, every row in it takes them. Under the Field's Box
361
+ (`data-field-row-box="box"`, Looks) and only there, its one box reads `--vk-field-row-box-h` for its height (undeclared
362
+ `calc(var(--vk-spacing) * 8)`, 32), `--vk-field-row-box-x` for how far it reaches past the words (`calc(var(--vk-spacing) * 2)`, 8)
363
+ and `--vk-field-row-box-r` for its corner (`calc(var(--vk-spacing) * 2)`, 8): the Field's stylesheet (`field.css`) reads them. Inside a Field rows card on a phone the
363
364
  row is one of the card's rows, drawn by the card's frame, and none of them apply there.
364
365
 
365
366
  **The toolbar's band is the app's to declare.** On a computer each line of a folding toolbar (the ready toolbar's, or
@@ -369,13 +370,31 @@ what `py-2.5` drew), `--vk-toolbar-line-gap` for the room between its tools (`ca
369
370
  own line edge to edge). Undeclared, the line draws as it always has; declared on the toolbar or any ancestor, every line
370
371
  in it takes them. A phone's one line takes none of them.
371
372
 
373
+ **A panel's, an editor's and a menu's size are the app's to declare, one variable per kind.** On a computer each is
374
+ optional. Undeclared, every place keeps its own size, the one shown here; declared on `:root`, every place of that kind
375
+ takes it; declared on one panel's slot (`[data-slot="vk-toolbar-sort-panel"] { --vk-panel-w: 420px; }`), that panel
376
+ alone, as the slot stands on the popup itself, wherever it portals. A declared width is the width: what opened it and
377
+ the place's own least and most no longer bound it, the room on screen still does. They size ViewKit's own Popover and
378
+ Menu (`CONTROLS`) and the panels' width classes; an app's own Popover is sized as the app sizes it. A phone's panels,
379
+ editors and menus are its sheets, and take none of them.
380
+
381
+ | variable | what it sets | undeclared |
382
+ | ------------------ | ---------------------------------------------------------------------------------------------- | -------------------------------------------- |
383
+ | `--vk-panel-w` | a toolbar panel's width: Customize, Sort, Filter, the filter bar's, quick filters, a views list | Customize `300px`; Sort as wide as its rules, at least `288px`; a field list as wide as its rows, at most `288px`; the folded views' list `256px`; the others `288px` |
384
+ | `--vk-panel-max-h` | a toolbar panel's height at the most, a views list's aside | the room on screen |
385
+ | `--vk-editor-w` | a field editor's popover's width (`vk-grid-editor`, `vk-editor-panel`) | `288px` |
386
+ | `--vk-editor-max-h`| a field editor's popover's height at the most | the room on screen |
387
+ | `--vk-menu-w` | a menu's width: a column's, a group's, a row's ⋯ | as wide as its widest row, `208px` to `320px` |
388
+ | `--vk-menu-max-h` | a menu's height at the most, its rows scrolling | the room on screen |
389
+ | `--vk-list-rows` | how many rows a computer's list (the Picker's, the Select's) stands before it scrolls | `8.5`; its old, unlisted name, list-rows, still read |
390
+
372
391
  **Type, lines and timing are the app's to dress, one variable per kind.** Each is optional. Undeclared, every
373
392
  place keeps its own value, the one shown here; declared once, on the grid, a panel or an ancestor, every place of
374
393
  that kind takes it.
375
394
 
376
395
  | variable | what it sets | undeclared |
377
396
  | ----------------------- | ---------------------------------------------------------------------------- | -------------------------------------------- |
378
- | `--vk-duration` | how long ViewKit's transitions and a panel's slide take | `150ms`; a cell button's caret `100ms` |
397
+ | `--vk-duration` | how long ViewKit's transitions and a panel's slide take; a toolbar panel's popover takes a popup's motion (below) first | `150ms`; a cell button's caret `100ms` |
379
398
  | `--vk-caption-text` | text under the app's smallest step: the small capitals over a panel's sections and in the group menu, the `+N` count, a candidate's badge, the selection bar's Esc, the layout's choice labels, a relation's lead mark, the date filter's note | `10px`; the group menu, the lead mark and the date note `11px` |
380
399
  | `--vk-caption-leading` | the `+N` count's line height | `0.9rem` |
381
400
  | `--vk-caps-tracking` | the letter spacing of a panel's section label | `0.15em` |
@@ -387,6 +406,32 @@ that kind takes it.
387
406
  | `--vk-thick-line` | the fill handle's rim and a field note's quote bar | `2px` |
388
407
  | `--vk-selected-stroke` | how much the active view's name is thickened in the view picker | `0.4px` |
389
408
 
409
+ **A popup's motion is the app's to declare, one variable per kind (VK-1077).** On a computer every popup ViewKit draws moves
410
+ by them: the Popover (and so the Picker, every field editor's body and every panel ViewKit opens in one), the Menu's and the
411
+ Select's list, and the Tooltip, which nudges half as far. Each is optional. Undeclared, every popup moves as it always has, the
412
+ values shown here; declared on `:root`, every popup takes them, your own too where your popups read them (a Popover or a Menu you
413
+ hand the components map moves like ViewKit's when its transition reads these names, with these defaults as its fallbacks);
414
+ declared on a frame or one popup's slot, those inside it alone. The Popover's options set them too, on the frame that wears its
415
+ picks (`data-popover-motion="scale"`, and `-distance`, `-open`, `-close` and `-ease` beside it; `POPOVER_LOOKS`), so a popup of yours inside that frame
416
+ takes the picks with ViewKit's; a pick left at its default sets nothing, so a value you declare above it stands. A phone's popups
417
+ are its sheets, and take none of them. Under reduced motion every popup just appears.
418
+
419
+ | variable | what it sets | undeclared |
420
+ | --------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------- |
421
+ | `--vk-popup-open-duration` | how long a popup takes to open | `--vk-duration-fast` (`150ms`) |
422
+ | `--vk-popup-close-duration` | how long a popup takes to close | `--vk-duration-fast` (`150ms`) |
423
+ | `--vk-popup-open-ease` | its ease as it opens | `--vk-ease-out` |
424
+ | `--vk-popup-close-ease` | its ease as it closes | the Popover `--vk-ease-in`; the Menu's and the Select's list and the Tooltip `--vk-ease-out` |
425
+ | `--vk-popup-nudge` | how far it moves in from, out from what opened it (`0px`: it only fades) | `--vk-spacing` (`4px`); the Tooltip half of it |
426
+ | `--vk-popup-scale` | the size it grows from as it opens and shrinks to as it closes (`0.95`: 95%) | `none`: it doesn't grow |
427
+
428
+ The Popover's picks, each setting the names above on its frame: How it comes, `fade` (a nudge of `0px`), `nudge` (the default),
429
+ `scale` (a nudge of `0px`, growing from `0.95`) or `none` (both times `0s`); How far, `small` · `medium` · `large`, a nudge of
430
+ `2px` · `4px` · `8px` or growing from `0.98` · `0.95` · `0.9`; Opens in, `100` · `150` · `200` · `300` ms; Closes in, `75` · `100` ·
431
+ `150` · `200` ms; Ease, `out` (out, then in as it closes: the default), `sharp` (`--vk-ease-out-sharp` as it opens), `smooth`
432
+ (`--vk-ease-in-out` both ways) or `spring` (`--vk-ease-spring` as it opens). An ease pick reads the motion token on the frame, so
433
+ the frame must have it: the ready stylesheet declares it on `:root`.
434
+
390
435
  **The grid scrolls inside itself.** Its frame fills the box its app gives it: a definite height, or
391
436
  a flex column (the frame is `height: 100%`, `flex: 1 1 0` and `min-height: 0`). Inside the frame the
392
437
  rows' box holds the table, both ways, and each group's name bar and header row pin at its top (with
@@ -411,7 +456,8 @@ an app neither sets nor reads them, and they may change in any release.
411
456
  ### The controls' tokens
412
457
 
413
458
  ViewKit's default controls (`viewkitjs/views/controls`) read only these names, each optional: the ready stylesheet
414
- declares every one at My preset's value, and an app declares one to change it. Each stands for one Outright token, which an
459
+ declares every one at My preset's value, and an app declares one to change it. Beside them they read a panel's, an editor's
460
+ and a menu's size (above), which the ready stylesheet leaves undeclared, so each place keeps its own. Each stands for one Outright token, which an
415
461
  app on the Outright tokens declares it as. Sixteen are the contract's colours already. **How a new one is named**, so every
416
462
  control that moves names the same way:
417
463
 
@@ -492,7 +538,7 @@ peer; the provider and every other door import neither library, so an app that h
492
538
 
493
539
  `panelControls` (the provider): the names among `Button`, `Select`, `Menu`, `Popover`, `Input`, `Calendar`, `Tooltip`, `Avatar` and `RelationChip` that ViewKit's panels and field editors draw with your own (VK-1013, the sort and filter panels; VK-1014, the group editor, Customize, the views list and view menu, the quick filters' search, the filter bar's typed value and date, and every phone head a panel draws itself; VK-1021, the text, number and date editors, `Calendar` their date's month; VK-1022, the Picker wherever a ViewKit body holds it, the name and place parts, and the values and links editors; VK-1023, the bulk bar, `CONTROLS.SelectionBar`, whose Toolbar holds your Button as one of its stops: forward its `ref`; VK-1044, `Avatar`, your `atoms.Avatar` for every record's mark the panels draw: the Picker's rows, the links editor's, the bulk bar's choices, the quick filters' values and their reminder's, handed the record's `label`, `avatarUrl`, `kind` as your app names it, the panel's size in pixels (20, 24, 32 or 40; a typed Select's chip `chip`) and ViewKit's own Avatar as `fallback`; ViewKit's own Avatar atom is never counted as yours, and an atom handed without this name keeps drawing only the chips and names it always drew; VK-1015, `Tooltip`, the panels' tooltips (Add sort at its most, a set-aside rule's why, Add filter on a relation the list no longer lists), handed `content`, `side`, `align` and, where it says why something can't be used, `reason`; a tooltip ViewKit's own would never show is no tooltip, its child alone; VK-1018, under `Input`, the filter's number and range boxes too, handed `inputMode="decimal"` and the text typed, ViewKit reading it as a number by your conventions (rounded where the field takes whole numbers) and stepping it with ↑ and ↓; VK-1053, `RelationChip`, your `atoms.RelationChip` for every mentioned record, above). Inside a ViewKit field your Input is handed the `id` its label names; a popover ViewKit opens from its own button it opens itself, at that button, handed its `anchor`, and gives the focus back to it; a busy button (the Picker's Add while it adds) is handed `aria-busy` and `aria-disabled`, and a button drawn as a link stays ViewKit's. Inside a ViewKit box group (a date's line, a phone number's digits) your Input is handed `chrome="bare"`: the group draws the frame; a box that grows over lines and a search list's box stay ViewKit's. Each is handed the map's props, never ViewKit's own look, and the part's `data-slot` and `data-key`; a menu's rows carry theirs as `slot` and `key`; a menu's group comes to your Menu as a row with `children` drawn in place, a row of actions or of choices one level in as a row with `children` and `beside` (a choice's rows `checked`, its `detail` the one picked), and a link as a row with its `href` (ViewKit's own router link and new tab aren't handed, and say so in development; its `onSelect` hands no event, as every row's) (VK-1022); a clear ViewKit's own box offers (the place's "No country") comes to your Select as its first row, a pick of it handing `null`; a menu ViewKit opens from your Button it opens itself, at your Button, and gives the focus back to it. Inside the panels and the editors a ViewKit part may hand your Button, Select or Input more props than these (a tooltip's handlers, `type="tel"`, `inputMode`, `enterKeyHint`, `aria-haspopup`): forward the rest to your element. A box group's button (a phone's country, a money's currency) comes to your Button as `variant="ghost"`, `size="sm"`. A control of `CONTROLS`' stays ViewKit's whatever `panelControls` says; without it, the panels and the editors draw ViewKit's own, as before.
494
540
 
495
- `Command`, optional and deprecated: the command list's parts (`ViewsCommandParts`). Nothing reads it: the grid's menus are your `Menu` and the editors' lists your `Picker`. Leave it out; it goes at a later minor.
541
+ `Command`, optional and deprecated: the command list's parts (`ViewsCommandParts`). Nothing reads it: the grid's menus are your `Menu` and the editors' lists your `Picker`. Leave it out; it goes in a later release that breaks something anyway.
496
542
 
497
543
  `Picker`, required: a whole pick list your app draws, `ViewsPickerProps`. The select, several-values, place and relation editors open it, handed their rows as `ViewsPickerItem` data (a value, its words, a status slot or a colour, a glyph, a line, a group), what is held, the empty row's words, the search's words, create (`onCreate`, handed what was typed, returning the value it makes), and where your app adds options from a cell, the add (`onAdd`, handed what was typed, with `adding` while your app answers and `addRefused` for its refusal, and no `onCreate`; `CONTROLS.Picker` doesn't draw it yet), and `form`. The body hands back `onValueChange` (the pick, or the whole new list) and `onDone` (a pick of one is made). The editor keeps the draft, what each close means, Tab, Escape, the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own and hands every change as it is made. Tab is taken before your body hears it. `CONTROLS.Picker` is ViewKit's own, the Picker. A status field's editor hands its active steps by value (`steps`): a row on a step between that isn't one (an archived option held) is placed nowhere, as a cell places it. A relation's list is filtered (a static source, by label) or fetched (a remote one, a page at a time) by the editor, never by your body: it hands every typed query to `onSearch` and draws `items` as handed, with `doing` (`searching` or `failed`), `onRetry` and `onMore` for a remote one; `doing` is `searching` from the keystroke until the typed query answers, and the `items` meanwhile are the held records that match it alone: no row of the last answer is handed, and none can be picked. A relation's rows may carry a `badge` (a word telling kinds apart), a `glyph` (the record's own, unsized), an `avatarUrl` and the record's `kind`; its create rows come as `actions` (`ViewsPickerAction`), after the rows, and picking one closes the editor before it runs; a set whose field leads hands `lead` (which value leads, `onLead`, and its words). Held records come first while nothing is typed, and by the same search once something is. Its popover stands at your `Popover`'s own width, marked `data-vk-body="picker"`.
498
544
 
@@ -504,10 +550,10 @@ peer; the provider and every other door import neither library, so an app that h
504
550
 
505
551
  `PartsBody`, required: a whole body for a field made of parts your app draws, `ViewsPartsBodyProps`, by `kind`: `name`, `place` or `range`; `CONTROLS.PartsBody` is ViewKit's own, the Compound editor. The name, place and range editors open it in the grid and in a field row, in a popover under the value (over the cell, in the grid) on a computer and the sheet on a phone, handed the field's name, the draft as its parts, whether it may be emptied, what was typed on what opened it (already the first part's value where it reads as one), `autoFocus` and `form`. A name is handed `{ given, family, full }`, `full` as the editor's rule shows it: hand it back as handed unless the person typed one, and the editor keeps the full name following the parts until a name of its own is typed; a full name handed back as the parts joined follows them again. A place is handed its parts (`ViewsPlaceParts`), the boxes the field takes (`parts`, `ViewsPlacePart`s), those boxes in the country's own order (`rows`), each box's words for that country (`words`), the boxes it asks for (`required`), every country by name where the field takes the country (`countries`), the country's regions once loaded (`regions`), and `opens: "countries"` where the field takes a country and the place has none as the editor opens (read once, it stays as handed); the next render hands a new country's rows, words and regions. Its `regionCode` is the editor's, read from the region: a region named in the list (by its code, its name, its Latin name or its label, in any case) takes that region's label and code, any other has none, and a new country clears both. A range is handed its ends, the `decimals` the editor rounds to as it closes, its `unit`, its `bands`, which your body draws as picks, and, where the field states them, its limits, `min` and `max`, which each end steps within as the number body's box does (VK-904); `CONTROLS.PartsBody`'s ends step within them and draw an end typed outside back to them as its box is left. The body hands back `onValueChange` (the whole value, every change as it is made) and `onDone` (with no argument it closes as Enter does; `onDone("pick")` closes as a pick, a band picked). The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root (from `viewkitjs/views/editors/panel`), so a popover that hears Escape on the document first leaves it to your popup. A level you draw inside your element (a list in your boxes' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Its popover stands at your `Popover`'s own width, marked `data-vk-body="parts"`.
506
552
 
507
- `ValuesBody`, required: a whole body for a field holding several emails, phones, links or domains, which your app draws, `ViewsValuesBodyProps`; `CONTROLS.ValuesBody` is ViewKit's own, the Values editor. The value list editor opens it in the grid and in a field row, in a popover under the values (over the cell, in the grid) on a computer and the sheet on a phone, handed the field's name (`label`), its type (`kind`: `email`, `phone`, `url` or `domain`), the draft as lines (`ViewsValueLine`: `{ value, label?, main }`, the main one first; `[]` when there are none, so your body draws its own line for adding one), whether a value carries a label (`labels`; false, draw none and none is saved), `holds` (`one` where the field holds one value: one line, no label, no main mark, no line to add another while it holds one), a phone's country (`region`, where a number typed without its code is read), whether it may be emptied, what was typed on what opened it (already the one line's value), `autoFocus` and `form`, and `check`, the field's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as a value is added or changed. The body hands back `onValueChange` (the whole list, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). A line handed back as it was drawn keeps what is stored, so a phone or a link is not rewritten by opening the editor. The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a label list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root. A level you draw inside your element (a list in your rows' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). A list the write check refuses is said once, under your body in the panel; where Escape keeps, an Escape over a refused list shows the reason and a second Escape throws the edit away; and focus leaving your body other than by Tab doesn't close the editor (a press outside does). Its popover stands at your `Popover`'s own width, marked `data-vk-body="values"`.
553
+ `ValuesBody`, required: a whole body for a field holding several emails, phones, links or domains, which your app draws, `ViewsValuesBodyProps`; `CONTROLS.ValuesBody` is ViewKit's own, the Values editor. The value list editor opens it in the grid and in a field row, in a popover under the values (over the cell, in the grid) on a computer and the sheet on a phone, handed the field's name (`label`), its type (`kind`: `email`, `phone`, `url` or `domain`), the draft as lines (`ViewsValueLine`: `{ value, label?, main }`, the main one first; `[]` when there are none, so your body draws its own line for adding one), whether a value carries a label (`labels`; false, draw none and none is saved), `holds` (`one` where the field holds one value: one line, no label, no main mark, no line to add another while it holds one), a phone's country (`region`, where a number typed without its code is read), whether it may be emptied, what was typed on what opened it (already the one line's value), `autoFocus` and `form`, and `check`, the field's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as a value is added or changed. The body hands back `onValueChange` (the whole list, every change as it is made) and `onDone` (it closes as Enter does: the grid writes and keeps the cell). A line handed back as it was drawn keeps what is stored, so a phone or a link is not rewritten by opening the editor. The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a label list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root. A level you draw inside your element (a list in your rows' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). A list the write check refuses is said once, under your body in the panel; where Escape keeps, an Escape over a refused list shows the reason and a second Escape throws the edit away; and focus leaving your body other than by Tab doesn't close the editor (a press outside does). Its popover stands at your `Popover`'s own width, marked `data-vk-body="values"`.
508
554
 
509
- `TextBody`, required: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`; `CONTROLS.TextBody` is ViewKit's own, the Text editor. The grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), `place` (`cell` in a grid cell, where your box may grow over the rows below; `row` in a field row, where it stands in the row's flow, so the row grows with it and a section that clips the row never cuts it; absent, `cell`), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
510
- `NumberBody`, required: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`; `CONTROLS.NumberBody` is ViewKit's own, the Number editor. The grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for money's currencies) while you stand on one, and `null` once you are back (*The sheet's head*).
555
+ `TextBody`, required: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`; `CONTROLS.TextBody` is ViewKit's own, the Text editor. The grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), `place` (`cell` in a grid cell, where your box may grow over the rows below; `row` in a field row, where it stands in the row's flow, so the row grows with it and a section that clips the row never cuts it; absent, `cell`), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid writes and keeps the cell). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
556
+ `NumberBody`, required: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`; `CONTROLS.NumberBody` is ViewKit's own, the Number editor. The grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid writes and keeps the cell). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for money's currencies) while you stand on one, and `null` once you are back (*The sheet's head*).
511
557
 
512
558
  `SortBody`, required: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`; `CONTROLS.SortBody` is ViewKit's own. The sort pill opens it: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody`. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.sortEditor`, VK-1063): a rule's ⋯ and a set-aside rule's, reshaped; honour it or not.
513
559
 
@@ -653,10 +699,10 @@ contract doesn't name is `none`.
653
699
 
654
700
  The pieces the rendering is built from, and the app's own pieces it cannot draw itself, typed in `src/atoms/types.ts`: `List` (the rows'
655
701
  container: the inset a run of rows sits in, inside a panel or a command list's group), `Row` (a whole row,
656
- a button or, with `interactive={false}`, a static line), `RowContent` (a row's inside, for inside a
657
- command list's item, which owns the element and the highlight), `TickBox` (a paint-only tick box), `Avatar` (a person's or a record's picture, `ViewsAvatarProps`: a user's, a relation's and an actor's chip draw it at `size="chip"`, and the name draws it at `size="glyph"`, sized by `--vk-glyph`, when the list's `rowIcon` hands the row's `avatar`; it is handed `label`, whose picture it is, `avatarUrl`, `kind`, the record's kind as the 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; the default draws the picture, marked `data-slot="vk-avatar"`, and the fallback when there is none or it fails to load, so an app that hands none sees its chips and names as before; yours draws initials on a tone, a record in its own shape, or the fallback for a kind it doesn't dress; where the provider's `panelControls` names `Avatar`, every record's mark ViewKit's panels draw is yours too, handed a pixel size, VK-1044: anything ViewKit draws on screen by itself takes your own where you hand it, and ViewKit hands it data only),
702
+ a button or, with `interactive={false}`, a static line), `RowContent` (deprecated: a row's inside, drawn
703
+ by nothing, since the default `Row` draws its own), `TickBox` (a paint-only tick box), `Avatar` (a person's or a record's picture, `ViewsAvatarProps`: a user's, a relation's and an actor's chip draw it at `size="chip"`, and the name draws it at `size="glyph"`, sized by `--vk-glyph`, when the list's `rowIcon` hands the row's `avatar`; it is handed `label`, whose picture it is, `avatarUrl`, `kind`, the record's kind as the 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; the default draws the picture, marked `data-slot="vk-avatar"`, and the fallback when there is none or it fails to load, so an app that hands none sees its chips and names as before; yours draws initials on a tone, a record in its own shape, or the fallback for a kind it doesn't dress; where the provider's `panelControls` names `Avatar`, every record's mark ViewKit's panels draw is yours too, handed a pixel size, VK-1044: anything ViewKit draws on screen by itself takes your own where you hand it, and ViewKit hands it data only),
658
704
  `StatusBadge` (a pill by status slot), `StatusMarker` (an attention badge that opens its reason) and
659
- `Tag` (a category chip, removable, with an optional leading glyph), `CommandMenu` (a `command` cell's verb menu, opened from the trigger the cell drew; the default is the components map's `Menu`), `RowMenu` (the rows' right-click menu, once around each section's rows' container and aimed at the row a press or a right-click came from, its props that row's: Open page, the rows the rendering builds, Delete, where the grid's `menus.row` makes the first and last rows of `items` instead (`row-open`, `row-delete`), with one disabled `loading` row while it answers; the default is the components map's `Menu` at the pointer, opened by a right-click or the row's ⋯ (`data-slot="vk-grid-row-more"`), wrapped in `data-slot="vk-row-menu"`; the grid's row-menu keys send a cell the same right-click, with no press before it, so a `RowMenu` of your own opens on any `contextmenu` and doesn't wait for a press; its Delete asks the `confirm` port with `views.menus.row-delete-confirm` (the browser's own confirm when you hand none), and a delete that rejects says so through the toast port's `error` with `views.menus.row-delete-failed`; a long-press on a phone opens nothing, and with `GridTable`'s `phonePicking` on the grid's own long press picks the row, an `onToggleSelect` that answers the same held press ticking it with the grid's, once; `onOpenChange`, called as the menu opens and closes, holds the row it is aimed at as under the pointer while it is open, `data-hovered`, its tint and its ⋯, which the default calls) and `RelationLink` (where a relation chip goes, around the chip the display drew; the default goes nowhere), `RelationRoles` (a link's roles, inside its chip after the record's name, on a `many` relation that declares `links`; the default draws their labels in the subtle colour after a middle dot, wrapped in `data-slot="vk-relation-roles"`, and in a narrow cell cuts them, down to nothing, before the name loses a letter), `RelationChip` (a mentioned record, `ViewsRelationChipProps`: every relation ViewKit draws, in a table's cell, one and many and the +N list, a field row's value and `renderFieldValue`, a highlight's, and a user field's chip, where the provider's `panelControls` names `RelationChip` (VK-1053); ViewKit places a mentioned record and hands its data; your app draws it: it is handed `relation` (its `id`, `label`, `entity`, the record's kind as the app names it, `user` for a member, and `avatarUrl`), `roles` (a link's, each its `value` and `label`, on a `many` relation that declares `links`), `size` (`chip` in a cell or a highlight, `row` in a field row), `render`, the host's link where it has one (handed your element's props, it draws the host's element with them: a cell whose host opens its relations a bare `<button data-slot="vk-relation-link" data-no-nav>` whose press is the host's, the app's `RelationLink` or a host's `relationWrap` around a `<span>` holding them; absent for an inert fact and where the host's own element owns the click, `slotOwnsClick`; ViewKit never makes one up), and `fallback`, ViewKit's own chip as it would draw it there; the default draws its `fallback`, so with nothing named every place draws as before, and an app that hands the atom without naming it sees no change; a typed Select's chip is not one: a control stands without the provider), `Loading` (a wait: the list reloading, or more rows arriving; the default is a plain ring) `LoadMore` (how a list asks for its next page; the default watches a sentinel past the last row) and `PlatformMark` (a link's platform, drawn before it, read from its address with the conventions' platforms; the default draws nothing, so a link looks plain, and the package ships no brand art, so an app that wants marks draws its own by the platform's key into `data-slot="vk-platform"`), and the rows the panels (`/panels`) draw with: `ChoiceRow` (picks a value: its label, a second line, a right-hand meta, the check when chosen), `CheckRow` (toggles one of many, a tick box on the left), `RadioRow` (picks one of a set, its mark a check or, with `mark="box"`, a tick box; a disabled row's reason in your `Tooltip`), `DirectionButton` (a sort's direction arrow, named `views.panels.direction`), `MenuRow` (a drill-in row: a glyph, the section, where it stands, a chevron; a disabled row's reason in your `Tooltip`), `ToggleRow` (a boolean flipped in place, with a way back named `views.panels.toggle-reset`; a disabled row's reason in your `Tooltip`) and `PanelSearch` (a panel's text box, a filled well with a magnifier), and `Pill` (one option of a row of pills, the views row's and any tab row's: `active`, a `solid` or `plain` variant, a `default` or `sm` size, a leading glyph, the app's own active and hover classes for a status colour; with `menuOpen` it says it opens a menu, `aria-haspopup="menu"` and `aria-expanded`), and `ToolbarButton` (a toolbar's button, the one every toolbar part draws with: its glyph, its name, its word for a dress that shows words, a count in its corner, which becomes a ✕ badge that clears what it counts when handed `onClear`, a dot that says something is applied with no number, `open`, `changed`, `edge` for the row's outermost button, `disabled`, a `md` or `sm` size, and `popup` when it opens one; and, for the sort (VK-188), its own words shown whatever the dress, with their weight, in `data-slot="vk-toolbar-words"` (`children`: "Sorted by **Amount**"), a count in words after them in `data-slot="vk-toolbar-more"` (`more`: "+1"), an empty place with its edge dashed and `data-empty` (`empty`), and a reason it can't be used, `disabledReason` with `disabled`, in your `Tooltip`, the button then `aria-disabled` and still a Tab stop, a press doing nothing; its own words are then its name, with `more` after them, in place of `label`; and, in a folding toolbar line with no room, `iconAlone`, its words given up for its icon, `data-icon-alone`, which you draw as the icon alone whatever your dress says of words; `aside`, what it names left the list, its edge dashed in the warning's colour, `data-aside`; `foot`, New's + standing alone at a phone list's foot, round, a finger's size, on the brand's ground, `data-foot`; `joined` (`start`, `middle` or `end`), one of buttons joined as one (a filter's field, how it compares, its value, its menu), its corners on the outer side alone, no gap, the shared edge drawn once, `data-joined` with the value; and `waits`, its words saying what it waits for (a filter's value not yet picked), drawn in `--vk-fg-subtlest`, the placeholder's colour, `data-waits`; its own words keep to one line and give way to a holder that caps its width, cut with "…", where an icon button keeps its size; and, told what it is where your own toolbar frame draws it (VK-629), `current` (a view tab, `data-tab`; `true` the open one, `data-current` and `aria-current="true"`), `part` (which of the toolbar's own buttons it stands for, drawn as its `data-slot`: `views-chip` `vk-views-chip`, `views-tab` `vk-views-tab`, `views-more` `vk-views-more`, `views-add` `vk-views-add`, `clear` `vk-toolbar-clear`, `save` `vk-toolbar-save-button`; the default draws the chip and "+N" with a chevron after their words, `data-slot="vk-toolbar-chevron"`, and Save on an edge) and `onContextMenu` (a right-click: a tab's verbs open on it); and wherever it stands (VK-984), `part` naming every other button after its toolbar place (`sort`, `filter`, `options`, `search`, `quick`, `new`, `filters`, `filter-add`, `sort-pill`, `sort-add`, `advanced-filters`, `more-filters`, ⋯ `more`), which the default draws as it always did, and `className`, its place's class, put on the button). Each ships as a default, exported as `DEFAULT_VIEWS_ATOMS`, drawn
705
+ `Tag` (a category chip, removable, with an optional leading glyph), `CommandMenu` (a `command` cell's verb menu, opened from the trigger the cell drew; the default is the components map's `Menu`), `RowMenu` (the rows' right-click menu, once around each section's rows' container and aimed at the row a press or a right-click came from, its props that row's: Open page, the rows the rendering builds, Delete, where the grid's `menus.row` makes the first and last rows of `items` instead (`row-open`, `row-delete`), with one disabled `loading` row while it answers; the default is the components map's `Menu` at the pointer, opened by a right-click or the row's ⋯ (`data-slot="vk-grid-row-more"`), wrapped in `data-slot="vk-row-menu"`; the grid's row-menu keys send a cell the same right-click, with no press before it, so a `RowMenu` of your own opens on any `contextmenu` and doesn't wait for a press; its Delete asks the `confirm` port with `views.menus.row-delete-confirm` (the browser's own confirm when you hand none), and a delete that rejects says so through the toast port's `error` with `views.menus.row-delete-failed`; a long-press on a phone opens nothing, and with `GridTable`'s `phonePicking` on the grid's own long press picks the row, an `onToggleSelect` that answers the same held press ticking it with the grid's, once; `onOpenChange`, called as the menu opens and closes, holds the row it is aimed at as under the pointer while it is open, `data-hovered`, its tint and its ⋯, which the default calls) and `RelationLink` (where a relation chip goes, around the chip the display drew; the default goes nowhere), `RelationRoles` (a link's roles, inside its chip after the record's name, on a `many` relation that declares `links`; the default draws their labels in the subtle colour after a middle dot, wrapped in `data-slot="vk-relation-roles"`, and in a narrow cell cuts them, down to nothing, before the name loses a letter), `RelationChip` (a mentioned record, `ViewsRelationChipProps`: every relation ViewKit draws, in a table's cell, one and many and the +N list, a field row's value and `renderFieldValue`, a highlight's, and a user field's chip, where the provider's `panelControls` names `RelationChip` (VK-1053); ViewKit places a mentioned record and hands its data; your app draws it: it is handed `relation` (its `id`, `label`, `entity`, the record's kind as the app names it, `user` for a member, and `avatarUrl`), `roles` (a link's, each its `value` and `label`, on a `many` relation that declares `links`), `size` (`chip` in a cell or a highlight, `row` in a field row), `render`, the host's link where it has one (handed your element's props, it draws the host's element with them: a cell whose host opens its relations a bare `<button data-slot="vk-relation-link" data-no-nav>` whose press is the host's, the app's `RelationLink` or a host's `relationWrap` around a `<span>` holding them; absent for an inert fact and where the host's own element owns the click, `slotOwnsClick`; ViewKit never makes one up), and `fallback`, ViewKit's own chip as it would draw it there; the default draws its `fallback`, so with nothing named every place draws as before, and an app that hands the atom without naming it sees no change; a typed Select's chip is not one: a control stands without the provider), `Loading` (a wait: the list reloading, or more rows arriving; the default is a plain ring) `LoadMore` (how a list asks for its next page; the default watches a sentinel past the last row) and `PlatformMark` (a link's platform, drawn before it, read from its address with the conventions' platforms; the default draws nothing, so a link looks plain, and the package ships no brand art, so an app that wants marks draws its own by the platform's key into `data-slot="vk-platform"`), and the rows ViewKit's own filter and sort bodies draw with, which draw them only in the older panels a list keeps with `severalSorts: false` or `filterGroups: false` and in the value body a filter rule falls back to where the app's `FilterPartBody` or `FilterBody` doesn't draw its type: `ChoiceRow` (deprecated, drawn by nothing: picks a value: its label, a second line, a right-hand meta, the check when chosen), `CheckRow` (toggles one of many, a tick box on the left), `RadioRow` (picks one of a set, its mark a check or, with `mark="box"`, a tick box; a disabled row's reason in your `Tooltip`), `DirectionButton` (a sort's direction arrow, named `views.panels.direction`), `MenuRow` (a drill-in row: a glyph, the section, where it stands, a chevron; a disabled row's reason in your `Tooltip`), `ToggleRow` (deprecated, drawn by nothing: a boolean flipped in place, with a way back named `views.panels.toggle-reset`; a disabled row's reason in your `Tooltip`) and `PanelSearch` (a panel's text box, a filled well with a magnifier), and `Pill` (one option of a row of pills, the views row's and any tab row's: `active`, a `solid` or `plain` variant, a `default` or `sm` size, a leading glyph, the app's own active and hover classes for a status colour; with `menuOpen` it says it opens a menu, `aria-haspopup="menu"` and `aria-expanded`), and `ToolbarButton` (a toolbar's button, the one every toolbar part draws with: its glyph, its name, its word for a dress that shows words, a count in its corner, which becomes a ✕ badge that clears what it counts when handed `onClear`, a dot that says something is applied with no number, `open`, `changed`, `edge` for the row's outermost button, `disabled`, a `md` or `sm` size, and `popup` when it opens one; and, for the sort (VK-188), its own words shown whatever the dress, with their weight, in `data-slot="vk-toolbar-words"` (`children`: "Sorted by **Amount**"), a count in words after them in `data-slot="vk-toolbar-more"` (`more`: "+1"), an empty place with its edge dashed and `data-empty` (`empty`), and a reason it can't be used, `disabledReason` with `disabled`, in your `Tooltip`, the button then `aria-disabled` and still a Tab stop, a press doing nothing; its own words are then its name, with `more` after them, in place of `label`; and, in a folding toolbar line with no room, `iconAlone`, its words given up for its icon, `data-icon-alone`, which you draw as the icon alone whatever your dress says of words; `aside`, what it names left the list, its edge dashed in the warning's colour, `data-aside`; `foot`, New's + standing alone at a phone list's foot, round, a finger's size, on the brand's ground, `data-foot`; `joined` (`start`, `middle` or `end`), one of buttons joined as one (a filter's field, how it compares, its value, its menu), its corners on the outer side alone, no gap, the shared edge drawn once, `data-joined` with the value; and `waits`, its words saying what it waits for (a filter's value not yet picked), drawn in `--vk-fg-subtlest`, the placeholder's colour, `data-waits`; its own words keep to one line and give way to a holder that caps its width, cut with "…", where an icon button keeps its size; and, told what it is where your own toolbar frame draws it (VK-629), `current` (a view tab, `data-tab`; `true` the open one, `data-current` and `aria-current="true"`), `part` (which of the toolbar's own buttons it stands for, drawn as its `data-slot`: `views-chip` `vk-views-chip`, `views-tab` `vk-views-tab`, `views-more` `vk-views-more`, `views-add` `vk-views-add`, `clear` `vk-toolbar-clear`, `save` `vk-toolbar-save-button`; the default draws the chip and "+N" with a chevron after their words, `data-slot="vk-toolbar-chevron"`, and Save on an edge) and `onContextMenu` (a right-click: a tab's verbs open on it); and wherever it stands (VK-984), `part` naming every other button after its toolbar place (`sort`, `filter`, `options`, `search`, `quick`, `new`, `filters`, `filter-add`, `sort-pill`, `sort-add`, `advanced-filters`, `more-filters`, ⋯ `more`), which the default draws as it always did, and `className`, its place's class, put on the button). Each ships as a default, exported as `DEFAULT_VIEWS_ATOMS`, drawn
660
706
  from the app's colours; an app swaps any of them through the provider's `atoms`, and the rest
661
707
  stay the defaults. `SelectionSheet` is the phone's sheet of a selection's verbs, opened by the
662
708
  selection bar's Actions: the default is the components map's `Sheet` holding the atoms' rows, a group's
@@ -682,9 +728,10 @@ A row in the default tone takes its colour from what it sits in, so a command it
682
728
  highlight read through it; a `muted` row brightens on hover when it is itself the button.
683
729
  A row's `detail` is what it says at its right edge, in the subtle colour: a setting's current choice,
684
730
  or a live sample; a chosen row draws its detail in the brand colour and no check, so a column of
685
- samples stays in line. A row that opens a flyout beside its menu takes `opens` (`aria-haspopup="dialog"`,
686
- since the flyout is the components map's `Popover`, a dialog of plain rows; and `aria-expanded` from `open`),
687
- and `open` while that flyout is up (`data-open`, the pressed ground).
731
+ samples stays in line. A row's `opens` and `open` are deprecated: nothing in ViewKit hands them, since it draws
732
+ no flyout beside a menu. The default still reads them for an app's own caller (`opens`: `aria-haspopup="dialog"`
733
+ and `aria-expanded` from `open`; `open`: `data-open`, the pressed ground). They go, with `RowContent`, `ChoiceRow`
734
+ and `ToggleRow`, in a later release that breaks something anyway; an app that hands any of them still compiles.
688
735
 
689
736
  The defaults mark themselves with `data-slot="vk-list"`, `data-slot="vk-row"`, `data-slot="vk-row-content"`,
690
737
  `data-slot="vk-tick"`, `data-slot="vk-avatar"`, `data-slot="vk-status"`, `data-slot="vk-marker"`, `data-slot="vk-tag"`, `data-slot="vk-command-menu"`, `data-slot="vk-relation-link"`, `data-slot="vk-relation-roles"`, `data-slot="vk-loading"`, `data-slot="vk-load-more"`, `data-slot="vk-platform"`, `data-slot="vk-row-menu"` and `data-slot="vk-selection-sheet"`, the panels' rows with `data-slot="vk-choice-row"`, `data-slot="vk-check-row"`, `data-slot="vk-radio-row"`, `data-slot="vk-direction"`, `data-slot="vk-menu-row"`, `data-slot="vk-toggle-row"` and `data-slot="vk-panel-search"`, the pill with `data-slot="vk-pill"` (and `data-active="true"` on the current one), the filter panel's month with `data-slot="vk-range-calendar"`, the toolbar's button with `data-slot="vk-toolbar-button"` (its hidden word `data-slot="vk-toolbar-word"`, its count `data-slot="vk-toolbar-count"`, its dot `data-slot="vk-toolbar-dot"`), and
@@ -719,7 +766,11 @@ whose press is its own, not the row's (a link, the "+N" that opens the list, a f
719
766
 
720
767
  **The display's own marks are not public.** A cell fitting its values (`severalValues: "fit"`) marks its box
721
768
  `data-vk-fit` and each value's box `data-vk-fit-value`, which its measure reads. They carry the prefix because they are
722
- ViewKit's own; an app neither sets, reads nor styles them, and they may change in any release.
769
+ ViewKit's own; an app neither sets, reads nor styles them, and they may change in any release. So are a server render's
770
+ two forms: the ready `List`, a toolbar or a grid you place yourself, Field rows' card (`FieldRows`) and a field row
771
+ outside one, stand in a `display: contents` box,
772
+ `data-vk-screen-forms`, for the page's life; while the page comes alive there are two, `data-vk-twin` `computer` and
773
+ `phone`, each with `data-vk-twin-line`, the `desktopQuery` whose rules show it, and once alive the screen's box alone stays.
723
774
 
724
775
  Rich text folded in a field row marks its Show more and Show less `data-slot="vk-show-more"`; drawn only there, it is
725
776
  your `Button`. The relation chip a host's `onOpenRelation` makes
@@ -727,7 +778,10 @@ pressable carries `data-slot="vk-relation-link"`, as the default `RelationLink`
727
778
  dressing it by its slot: it reads as text, the same part whichever verb it has, so one rule reaches it in every list.
728
779
  Two of a field row's controls stay ViewKit's own for the same reason, each being the sentence it says: a note with a
729
780
  quote, the disclosure marked by its `[data-field-note]` attribute, and the retry line under a write that failed, `data-slot="vk-field-retry"`;
730
- an app dresses them by those names. The panels' check and radio rows (`CheckRow`, and `RadioRow` with `mark="box"`)
781
+ an app dresses them by those names. Outside a Field rows card, a record's field row's target, your `Button`, carries
782
+ `data-key="vk-field-row-target"` (`vk-field-row-beside` beside a link's action, `vk-field-row-under` under a rich text), and
783
+ the value an open picker keeps in its place `[data-field-row-anchor]`: the Field's Box dresses them by those names, so your
784
+ Button forwards `data-key` to its element, as it does in the panels, and keeps its own `data-slot`. The panels' check and radio rows (`CheckRow`, and `RadioRow` with `mark="box"`)
731
785
  draw the `TickBox` atom, a picture inside a row that is itself the control, so an app hands the picture of its box
732
786
  there, never its `Checkbox`, which can't stand inside the row's button. The status
733
787
  marker, a tag's ✕ and the "+N" are drawn inside the `StatusMarker`, `Tag` and `CellMore` atoms, which an app swaps.
@@ -1096,7 +1150,7 @@ The glyphs the rendering asks for, by meaning. The app maps each name to a compo
1096
1150
  name, and `CONTROLS.AppIcon` draws ViewKit's own (`CONTROL_ICONS`, Tabler's as the Outright kit draws them). Field types: `text` `longText` `number` `percent` `currency` `date` `datetime` `duration`
1097
1151
  `boolean` `select` `status` `multiselect` `relation` `user` `url` `domain` `email` `phone` `location` `name` `actor`
1098
1152
  `rich_text` `range` `lookup` `rollup` `formula` `computed`. Who did it: `automation` `apiKey` `system` (a member wears `user`). Actions: `add` `edit` `delete` `copy` `cut` `paste` `clear` `hide` `show` `lock`
1099
- `pin` `wrap` `more` `close` `check` `warning` `drag` `resize` `open` `selectRow`. Navigation and order: `chevronDown`
1153
+ `pin` `wrap` `more` `close` `check` `warning` `drag` `resize` `open` `expand` `selectRow`. Navigation and order: `chevronDown`
1100
1154
  `chevronRight` `caretDown` `caretRight` `sortAsc` `sortDesc` `enter`. Figures: `calendar` `time` `progress`.
1101
1155
  The grid's menus: `moveLeft` `moveRight` `group` `clearSort` `sortRowsUp` `sortRowsDown`. `sortRowsUp` and
1102
1156
  `sortRowsDown` are a menu's verbs, sorting the rows by a column; `sortAsc` and `sortDesc` are the mark a
@@ -1429,7 +1483,7 @@ A yes/no cell in the grid, the checkbox style, is your `Checkbox`, the box your
1429
1483
  A field row's own buttons are your `Button`: its edit target in its three shapes (around the value, beside a link's open action, under a rich text), the verb trigger around a value, the lane's ▾ and rich text's Show more, `variant` `ghost`, `size` `sm` (`icon` for the ▾), ViewKit's box in `className` (the target's with `[font:inherit]`, so a value keeps the row's type, and a height that grows with a wrapped value), the look yours.
1430
1484
  A field row's yes/no, the checkbox style, is your `Checkbox`, a Tab stop, one press writing once; a row it can't write is handed `readOnly`.
1431
1485
  The buttons ViewKit draws itself in the toolbar's panels, the search's ✕ and the views row are your `Button`: a filter's select, a range's presets, a stale filter's and a date range's Clear, the Columns list's eyes, new-line marks and a column's opener, the group list's eyes, Clear all, the layout's Reset, show or hide every group, a panel header's back and ✕, Export, Publish and Reset, the "+N" chip, the + and the views picker's chip (outside your own toolbar frame; inside one they are your `ToolbarButton`), a view's row and its ⋯, and the quick filters' fields: `variant` `ghost` (`outline` for a range's presets and the date filter's framed select, `secondary` for the views picker's chip, a filled chip with no border), `size` `icon` or `sm`, ViewKit's box in `className` (a row's with `[font:inherit]` or its own type, so it reads as the rows beside it), the look yours. A trigger is handed a ref it anchors its menu or popover on, `aria-haspopup` and `aria-expanded`; the views row's chips and a view's ⋯ `data-state="open"` or `data-state="closed"`; the new-line mark and a quick filters' field `aria-pressed`; a view's row `role="option"` and `aria-selected`; Export `data-vs-row="true"`, so a host's `[data-vs-row]` insets it as it does Copy link and Share; the search's ✕ and the chips their `data-slot`. A press note and the search's caret ride a `display: contents` span around your `Button`, and a view's ⋯ waits for the pointer on a computer through a span around it carrying `data-desktop`. Your `Button` draws `secondary` and forwards each of those to its element. The `ToolbarButton` atom's parts stay the atom's.
1432
- The popover around a whole body the app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`), in the grid and a field row alike, takes only its layer (and, in a field row, a cap at the screen's width less 2rem), so the app's `Popover` stands at its own width, and `data-vk-body` on it through `panelData`: `picker`, `parts`, `values` or `links`. The phone's sheet takes no class. A grid editor opening a whole body your app hands (`Picker`, `DateBody`, `PartsBody`, `ValuesBody`, `LinksBody`) on a computer hands your `Popover` a `sideOffset` of minus the cell's height, measured as the editor opens, so a popover placed under its anchor stands with its top on the cell's top, as long text opens. Give that popover at least the cell's width, so a press where the cell was lands inside it, and don't let it flip above its anchor: a flipped one takes the same offset, its bottom on the cell's bottom. A field row and the phone's sheet open as before.
1486
+ The popover around a whole body the app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`), in the grid and a field row alike, takes only its layer (and, in a field row, a cap at the screen's width less 2rem), so the app's `Popover` stands at its own width, and `data-vk-body` on it through `panelData`: `picker`, `parts`, `values` or `links`. The phone's sheet takes no class. A grid editor opening a whole body your app hands (`Picker`, `DateBody`, `PartsBody`, `ValuesBody`, `LinksBody`) on a computer hands your `Popover` a `sideOffset` of minus the cell's height and one spacing step (`--vk-spacing`), and an `alignOffset` of minus one step, measured as the editor opens, so a popover placed under its anchor stands a step above the cell's top and a step left of its start, covering the cell and its lines whole rather than doubling them, as long text's panel opens (the kit's `overCell`). 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 (ViewKit's own Popover does), and don't let it flip above its anchor: a flipped one takes the same offsets, a step below the cell's bottom. A field row and the phone's sheet open as before.
1433
1487
  And an optional `datePicks` (`ViewsDatePicks`, from `./react`): the quick days the date editors offer, in order, any of
1434
1488
  `today`, `tomorrow`, `next-monday` (the Monday after today, a week on when today is one) and `in-a-week` (today + 7 on
1435
1489
  the conventions' calendar). ViewKit works out each day; the date editor hands exactly these to an app's `DateBody`, `none`
@@ -2,6 +2,8 @@
2
2
 
3
3
  Every name the list's stylesheet (`list.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
4
 
5
+ How it moves as it opens and closes is every popup's, by the contract's popup motion names beside these (`--vk-popup-open-duration`, `--vk-popup-close-duration`, `--vk-popup-open-ease`, `--vk-popup-close-ease`, `--vk-popup-nudge`, `--vk-popup-scale`), each read with today's motion (a fade and a 4px drop in 150ms each way, easing out both ways) where none is declared, and set on a frame by the Popover's picks: [a popup's motion](../contract.md#tokens).
6
+
5
7
  | name | kind | the Outright token | default |
6
8
  | ---- | ---- | ------------------ | ------- |
7
9
  | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
@@ -2,6 +2,8 @@
2
2
 
3
3
  Every name the Menu's stylesheet (`menu.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
4
 
5
+ Its size is the app's too, beside these names: `--vk-menu-w` its width and `--vk-menu-max-h` its height at the most, its rows scrolling. The ready stylesheet declares neither, so it fits its widest row, 208 to 320, and stands no taller than the room on screen: [a panel's, an editor's and a menu's size](../contract.md#tokens).
6
+
5
7
  | name | kind | the Outright token | default |
6
8
  | ---- | ---- | ------------------ | ------- |
7
9
  | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
@@ -9,6 +9,8 @@ Every name `number-editor.css` reads (beside the stylesheets of the controls it
9
9
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
10
  | `--vk-font-size-base` | size | `text-base` | `16px` |
11
11
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
12
+ | `--vk-shadow-field-focus` | shadow | `shadow-field-focus` | `0 0 10px 0 hsl(219 90% 65.5% / 0.3)` · dark `0 0 10px 0 hsl(219 66% 45% / 0.42)` |
13
+ | `--vk-shadow-field-focus-danger` | shadow | `shadow-field-focus-danger` | `0 0 10px 0 hsl(3 87% 68% / 0.3)` · dark `0 0 10px 0 hsl(1 55% 46.5% / 0.42)` |
12
14
  | `--vk-spacing` | size | `spacing` | `4px` |
13
15
 
14
16
  ## Its parts
@@ -2,6 +2,8 @@
2
2
 
3
3
  Every name the Picker's stylesheet (`picker.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. One is a time its script reads, which the stylesheet hands it on the Picker, round every row: `--vk-hold-delay`, how long a finger rests on a phone's row before it lifts to be moved. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
4
 
5
+ How many rows a computer's list stands before it scrolls is the app's too, beside these names: `--vk-list-rows`, which the ready stylesheet leaves undeclared, so it stands 8½ (its old name, list-rows, is still read). Declared on one panel's slot, that panel's list alone takes it: [a panel's, an editor's and a menu's size](../contract.md#tokens).
6
+
5
7
  | name | kind | the Outright token | default |
6
8
  | ---- | ---- | ------------------ | ------- |
7
9
  | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
@@ -4,6 +4,10 @@ Every name the Popover's stylesheet (`popover.css`) reads, each optional: the re
4
4
 
5
5
  A popup that holds a list (the components map's `chrome` `menu`) is marked `data-popover-chrome="menu"` on the popover itself: the Outright look draws it as its card, and your styles may draw it otherwise.
6
6
 
7
+ Its size is the app's too, by what it holds, beside these names: a toolbar panel's popover (its slot `vk-toolbar-…-panel`) reads `--vk-panel-w` and `--vk-panel-max-h`, a field editor's (`vk-grid-editor`, `vk-editor-panel`) `--vk-editor-w` and `--vk-editor-max-h`. The ready stylesheet declares none of them, so each keeps its own size: [a panel's, an editor's and a menu's size](../contract.md#tokens).
8
+
9
+ How it moves as it opens and closes is every popup's, by the contract's popup motion names beside these (`--vk-popup-open-duration`, `--vk-popup-close-duration`, `--vk-popup-open-ease`, `--vk-popup-close-ease`, `--vk-popup-nudge`, `--vk-popup-scale`), each read with today's motion (a fade and a 4px nudge in 150ms each way, easing out as it opens and in as it closes) where none is declared, and set on a frame by the Popover's picks: [a popup's motion](../contract.md#tokens).
10
+
7
11
  | name | kind | the Outright token | default |
8
12
  | ---- | ---- | ------------------ | ------- |
9
13
  | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
@@ -26,3 +30,6 @@ A popup that holds a list (the components map's `chrome` `menu`) is marked `data
26
30
  | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
27
31
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
28
32
  | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
33
+ | `--vk-ease-out-sharp` | motion | `ease-out-sharp` | `cubic-bezier(0.23, 1, 0.32, 1)` |
34
+ | `--vk-ease-in-out` | motion | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` |
35
+ | `--vk-ease-spring` | motion | `ease-spring` | `cubic-bezier(0.34, 1.56, 0.64, 1)` |
@@ -18,6 +18,8 @@ It also reads the inline input's own `--inline-input-ring` and `--inline-input-c
18
18
  | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
19
19
  | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
20
20
  | `--vk-radius-md` | size | `radius-md` | `7.5px` |
21
+ | `--vk-shadow-field-focus` | shadow | `shadow-field-focus` | `0 0 10px 0 hsl(219 90% 65.5% / 0.3)` · dark `0 0 10px 0 hsl(219 66% 45% / 0.42)` |
22
+ | `--vk-shadow-field-focus-danger` | shadow | `shadow-field-focus-danger` | `0 0 10px 0 hsl(3 87% 68% / 0.3)` · dark `0 0 10px 0 hsl(1 55% 46.5% / 0.42)` |
21
23
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
22
24
  | `--vk-shadow-menu` | shadow | `shadow-menu` | `0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04)` · dark `0 8px 24px hsl(0 0% 0% / 0.5)` |
23
25
  | `--vk-spacing` | size | `spacing` | `4px` |
@@ -2,6 +2,8 @@
2
2
 
3
3
  Every name the Tooltip's stylesheet (`tooltip.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
4
 
5
+ How it moves as it opens and closes is every popup's, by the contract's popup motion names beside these (`--vk-popup-open-duration`, `--vk-popup-close-duration`, `--vk-popup-open-ease`, `--vk-popup-close-ease`, `--vk-popup-nudge`, `--vk-popup-scale`), each read with today's motion (a fade and a 2px rise, half a popup's nudge, in 150ms each way, easing out both ways) where none is declared, and set on a frame by the Popover's picks: [a popup's motion](../contract.md#tokens).
6
+
5
7
  | name | kind | the Outright token | default |
6
8
  | ---- | ---- | ------------------ | ------- |
7
9
  | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
@@ -1,6 +1,6 @@
1
1
  # Atoms
2
2
 
3
- The components map hands the package your primitives: a button, a popover, a menu. The atoms sit one level up. They are the small pieces the rendering is built from (a row, a tag, a status badge), and the pieces of your app it cannot draw itself (where a relation chip goes, a command cell's verbs, the row's right-click menu). Every atom ships with a default drawn from your colours, so an app that swaps nothing still gets a complete rendering. This page covers every atom, swapping any of them, and drawing your own panels with the same rows the rendering uses.
3
+ The components map hands the package your primitives: a button, a popover, a menu. The atoms sit one level up. They are the small pieces the rendering is built from (a row, a tag, a status badge), and the pieces of your app it cannot draw itself (where a relation chip goes, a command cell's verbs, the row's right-click menu). Every atom ships with a default drawn from your colours, so an app that swaps nothing still gets a complete rendering. This page covers every atom, swapping any of them, and drawing your own panels with the same rows the rendering uses. Three atoms are deprecated: ViewKit draws nothing with them ([Deprecated atoms](#deprecated-atoms)).
4
4
 
5
5
  ## The atoms and their defaults
6
6
 
@@ -8,7 +8,6 @@ The components map hands the package your primitives: a button, a popover, a men
8
8
 
9
9
  - `List`: the inset a run of rows sits in, inside a panel or a command list's group.
10
10
  - `Row`: a whole row, a button or, with `interactive={false}`, a static line.
11
- - `RowContent`: a row's inside, for inside a command list's item, which owns the element, the highlight and the keyboard.
12
11
  - `TickBox`: a tick box that only paints; the control around it is yours.
13
12
  - `StatusBadge`: a status value's dot and label, in its slot's hue.
14
13
  - `StatusMarker`: an attention badge that opens its reason in a popover, with an optional resolve button.
@@ -23,12 +22,12 @@ The components map hands the package your primitives: a button, a popover, a men
23
22
  - `PlatformMark`: a link's platform mark, drawn before the link.
24
23
  - `RowMenu`: the row's right-click menu.
25
24
  - `Avatar`: a person's or a record's picture, in a user's, a relation's and an actor's chip, and before the name when the list hands a row's picture; and every record's mark ViewKit's panels draw, where the provider's `panelControls` names `Avatar`. The default draws the picture, else the glyph the chip would draw.
26
- - `ChoiceRow`, `CheckRow`, `RadioRow`, `DirectionButton`, `MenuRow`, `ToggleRow` and `PanelSearch`: the rows the panels (`/panels`) draw with, a value row, a tick row, a one-of-a-set row, a sort's direction arrow, a drill-in row, a switch row and a panel's text box.
25
+ - `CheckRow`, `RadioRow`, `DirectionButton`, `MenuRow` and `PanelSearch`: a tick row, a one-of-a-set row, a sort's direction arrow, a drill-in row and a panel's text box. Only ViewKit's own filter and sort bodies draw them: the older panels a list keeps with `severalSorts: false` or `filterGroups: false`, and the value body a filter rule falls back to where your `FilterPartBody` or `FilterBody` doesn't draw its type. The panels a list opens by default are your bodies (`CustomizeBody`, `SortBody`, `FilterBody` and the rest), handed their rows as data, so swapping these changes only those places.
27
26
  - `Pill`: one option of a row of pills, the views row's (`/panels/react`) and any tab row's.
28
27
  - `RangeCalendar`: the filter panel's month, a day or a range in ISO days. The default is your components map's one-day `Calendar` on the end being picked, and paints no range; hand your own to paint one.
29
28
  - `ToolbarButton`: the toolbar's button (`/panels/react`), a glyph in a circle with its word for a dress that shows words, a count that becomes a ✕ badge when it can clear what it counts, and a dot. Hand your own to give the toolbar your buttons' look. `CONTROL_ATOMS.ToolbarButton`, the kit's, draws the count as a count, never that ✕: under it, a part's filters clear from their own panel.
30
29
 
31
- The names are `ATOM_NAMES` from `viewkitjs/views`, and the defaults hold exactly those.
30
+ The names are `ATOM_NAMES` from `viewkitjs/views`, and the defaults hold exactly those, the deprecated three included.
32
31
 
33
32
  ```tsx
34
33
  import assert from "node:assert/strict";
@@ -38,7 +37,7 @@ import { DEFAULT_VIEWS_ATOMS, type ViewsAtoms } from "viewkitjs/views/react";
38
37
  assert.deepEqual(Object.keys(DEFAULT_VIEWS_ATOMS).sort(), [...ATOM_NAMES].sort());
39
38
  ```
40
39
 
41
- The first seven are the rendering's own look, and their defaults are usually all an app needs. The next eight are where your app comes in: the package can't know where a record opens, which menu your app opens verbs in, what a LinkedIn mark looks like, or how your app draws a person. Their defaults are deliberately plain: a relation chip that goes nowhere, a command menu and a row menu on your components map's `Menu`, a ring for a wait, no platform mark at all, and a chip's picture or glyph as the package has always drawn it.
40
+ The first six are the rendering's own look, and their defaults are usually all an app needs. The next eight are where your app comes in: the package can't know where a record opens, which menu your app opens verbs in, what a LinkedIn mark looks like, or how your app draws a person. Their defaults are deliberately plain: a relation chip that goes nowhere, a command menu and a row menu on your components map's `Menu`, a ring for a wait, no platform mark at all, and a chip's picture or glyph as the package has always drawn it.
42
41
 
43
42
  ## Swapping an atom
44
43
 
@@ -301,7 +300,7 @@ export function AppViews({ children }: { children: ReactNode }) {
301
300
 
302
301
  The atoms the rendering builds its menus and pickers from are yours to use too, so a panel of your own reads like the package's. Read them from `useViews().atoms`, which holds your swaps over the defaults.
303
302
 
304
- A row's label truncates to one line when it is text, and is laid out in a row when it is a node (a badge, a link), so a chip sits on the row's centre; `wrap` breaks a long label instead. `size` is `compact` (13px: a command list's rows, a list of values) or `regular` (your menu size, the default). `detail` is what the row says at its right edge in the subtle colour, a setting's current choice or a live sample; a chosen row draws its detail in the brand colour instead of a check, so a column of samples stays in line. A row that opens a flyout beside its menu takes `opens` (`aria-haspopup="menu"`, and `aria-expanded` from `open`), and `open` while that flyout is up (`data-open`, and the pressed ground). `tone="muted"` is for a row that offers rather than lists: none, create, add.
303
+ A row's label truncates to one line when it is text, and is laid out in a row when it is a node (a badge, a link), so a chip sits on the row's centre; `wrap` breaks a long label instead. `size` is `compact` (13px: a command list's rows, a list of values) or `regular` (your menu size, the default). `detail` is what the row says at its right edge in the subtle colour, a setting's current choice or a live sample; a chosen row draws its detail in the brand colour instead of a check, so a column of samples stays in line. `tone="muted"` is for a row that offers rather than lists: none, create, add.
305
304
 
306
305
  ```tsx
307
306
  import { useViews } from "viewkitjs/views/react";
@@ -320,25 +319,27 @@ function DensityPicker({ current, onPick }: { current: Density; onPick: (density
320
319
  );
321
320
  }
322
321
 
323
- function SettingsMenu({ density, densityOpen, onOpenDensity }: { density: Density; densityOpen: boolean; onOpenDensity: () => void }) {
322
+ function SettingsMenu({ density, onOpenDensity }: { density: Density; onOpenDensity: () => void }) {
324
323
  const { List, Row } = useViews().atoms;
325
324
  return (
326
325
  <List>
327
- <Row label="Density" detail={density} opens open={densityOpen} onClick={onOpenDensity} />
326
+ <Row label="Density" detail={density} onClick={onOpenDensity} />
328
327
  <Row label="Row height" detail="32px" interactive={false} size="compact" />
329
328
  </List>
330
329
  );
331
330
  }
332
331
  ```
333
332
 
334
- Inside a command list's item, which owns the element, the highlight and the keyboard, draw `RowContent` rather than `Row`: it takes the same content props (`label`, `description`, `leading`, `detail`, `chosen` and the rest) and none of the button's.
333
+ ## Deprecated atoms
334
+
335
+ Three atoms are read by nothing, so handing one changes nothing on screen: `RowContent` (the default `Row` draws its own inside), `ChoiceRow` and `ToggleRow` (Customize's and the editors' rows come to your bodies as data). The `Row`'s `opens` and `open`, for a row that opened a flyout beside its menu, are handed by nothing in ViewKit either; the default still reads them for a caller of your own. Each carries `@deprecated`, so your editor strikes it through, and still compiles: an app that hands them needn't change anything now. They go in a later release that breaks something anyway, with a migration line.
335
336
 
336
337
  ## Styling the defaults
337
338
 
338
339
  The defaults mark themselves with a `data-slot` each, `vk-list`, `vk-row`, `vk-row-content`, `vk-tick`, `vk-status`, `vk-marker`, `vk-tag`, `vk-command-menu`, `vk-relation-link`, `vk-loading`, `vk-load-more`, `vk-platform`, `vk-row-menu`, and the panels' `vk-choice-row`, `vk-check-row`, `vk-radio-row`, `vk-direction`, `vk-menu-row`, `vk-toggle-row` and `vk-panel-search` (`ATOM_SLOTS`), and with the states `data-chosen`, `data-disabled`, `data-muted`, `data-checked` and `data-open` (present when true), `data-status` (the status slot's name) and `data-platform` (a link's platform key). A stylesheet reaches a default through them, never through a class the package happens to use:
339
340
 
340
341
  ```css
341
- [data-slot="vk-row"][data-open] {
342
+ [data-slot="vk-row"][data-chosen] {
342
343
  outline: 1px solid var(--vk-border);
343
344
  }
344
345
  [data-slot="vk-status"][data-status="error"] {
@@ -199,7 +199,7 @@ function DealList({ deals, filterKey }: { deals: Deal[]; filterKey: string }) {
199
199
 
200
200
  ## The bar
201
201
 
202
- `SelectionBar` is the bar a selection opens: the count, which clears the selection when pressed (Escape does too, where the list wires `useEscapeToClear`, as the grid does), your verbs, a trash when you hand `onDelete`, and More. On a desktop it floats as an island at the foot of the screen, the first four verbs on it and the rest in More (with nothing in it, More stays in its place and says so in your `Tooltip`, "No more actions for these"); on a phone it is a pill reading "3 selected · Actions · ✕", whose Actions open a sheet of every verb. It draws nothing while `count` is zero, so a `renderBar` can always return it.
202
+ `SelectionBar` is the bar a selection opens: the count, which clears the selection when pressed (Escape does too, where the list wires `useEscapeToClear`, as the grid does), your verbs, a trash when you hand `onDelete`, and More. On a desktop it floats as an island at the foot of the screen, the first four verbs not marked `more` on it and the rest in More (with nothing in it, More stays in its place and says so in your `Tooltip`, "No more actions for these"); on a phone it is a pill reading "3 selected · Actions · ✕", whose Actions open a sheet of every verb. It draws nothing while `count` is zero, so a `renderBar` can always return it.
203
203
 
204
204
  What a selection lets a person do (move twelve deals to a stage, export them, delete them) is your app's. You hand the bar its verbs as data, a `SelectionVerb` each, and each verb's handler calls your own action over the selected ids, then `clear`; an agent working through your actions does the same thing. A verb is one of three kinds:
205
205
 
@@ -660,25 +660,27 @@ assert.deepEqual(gridNormalizeWrite(titleColumn, " Acme renewal ", conventions)
660
660
  assert.equal(gridNormalizeWrite(stageColumn, "maybe", conventions).ok, false);
661
661
  ```
662
662
 
663
+ **While a cell's editor is open** the cell draws no lift and no tint. Under a popover (a picker, a date) it draws no ring either, so it stays as it was. A cell typed in (a text, an email, a link, a phone, a number) keeps the selected cell's ring, the same line in the same place, and when what is typed runs past the cell the ring goes round all the box covers, on the plain ground. It wears `data-editing` until the editor starts to close, not until its exit is over. Escape, a pick, or Enter after typing closes the editor and keeps the cell selected, its ring back; a second Escape lets it go. The focus is back on the cell the moment a picker starts to close, so a key pressed while it plays out is the cell's: a second Escape lets it go, an arrow moves the pick, and ⌘Z takes back the pick just made. A key that would open or write the cell (Enter, a letter, Delete) waits for the exit to end. A click away closes the editor and lets the cell go (a pick your app holds, `cellPick`, stays); a click on another cell closes it and selects that one, its editor not opened.
664
+
663
665
  **One of a set.** A `select` or a `status` opens the select editor in your `Picker`: its options, the cell's value held, and a pick saves. A column that may be emptied (`clearable`) offers the Picker's empty row, None, while the cell holds a value; a required status offers none. Delete still clears a column that may be emptied. A closed list offers its options, and the cell's own value when no option names it, so a stray value shows on the row that holds it and on no other; an open select offers the values its records hold and creates the typed text. A list of more than 8 options shows the Picker's search, and a letter typed on the cell opens it already filtered by that letter; a shorter list shows its rows alone.
664
666
 
665
667
  **A set of values.** A `multiselect` opens the chips editor in your `Picker`, with `multiple`: the values it holds held, the candidates with them. It is a draft: adds and removes commit as one write when the panel closes or Tab moves on (Shift-Tab to the cell before), closing it unchanged writes nothing, and Escape discards it. A pick adds or removes a value and keeps the panel open. A letter typed on the cell opens it with the letter in its search, the values it holds kept. A closed multiselect offers its options alone and filters them as you type, with no row to add what was typed; a value the cell already holds that no option names stays as a chip and is saved as it is. An open one offers the values on screen and adds what is typed. A vocabulary that is not free-form declares `chips: { normalize }` on its column, the rule that turns what somebody typed into what the field stores.
666
668
 
667
669
  **A day or a moment.** A date cell opens the date editor, which opens your `DateBody` (`CONTROLS.DateBody`, the Date editor, for an app that spreads `CONTROLS`) over the cell. A `date` has no time: a day picked saves it. A `datetime` keeps its time (an empty time starts at 00:00) and stays open after a day is picked, so the time can be set; a click away or Enter saves both. The quick days (`datePicks`) set their day, a datetime's time kept. A column that may be emptied (`clearable`) offers No date, which empties the date; a required date offers none, and Delete still clears. A character typed on the cell opens the editor with it in the body's line, and Enter saves the date it reads. On a phone the day and the time are in one sheet, and ✓ saves both.
668
670
 
669
- **A text cell** (text, a link, an email, a phone, a domain) types in the cell through the text editor (`viewkitjs/views/editors/text`), which opens your `TextBody` over its cell on a computer, in a layer over the whole cell, on its lines, the cell keeping its padding, and in the sheet on a phone: what was typed is trimmed, an unchanged value writes nothing, and each type brings its own phone keyboard. Enter writes and moves down, Tab writes and moves on, Escape cancels (or writes, where the provider's `escape` keeps the column's type).
671
+ **A text cell** (text, a link, an email, a phone, a domain) types in the cell through the text editor (`viewkitjs/views/editors/text`), which opens your `TextBody` over its cell on a computer, in a layer over the whole cell, on its lines, the cell keeping its padding, and in the sheet on a phone: what was typed is trimmed, an unchanged value writes nothing, and each type brings its own phone keyboard. In the grid the box is the cell itself, with no edge, ground or lift of its own, and grows from the cell as the text editor's In the cell look grows it, whatever the page's look; past the cell it lies on the plain ground (`--vk-overlay`). Enter writes and keeps the cell, Tab writes and moves on, Escape cancels (or writes, where the provider's `escape` keeps the column's type).
670
672
 
671
- **A long text** (a `text` field with `format: { long: true }`, or rich text) edits in the same body, as a paragraph: Enter is a newline, ⌘ or Ctrl Enter commits and moves down, Tab commits and moves on, Escape cancels (or commits, where the column's type keeps), and a click away commits. Where it cannot be written, a read-only panel opens on the cell instead (`gridColumnInspectable`), selectable, never written.
673
+ **A long text** (a `text` field with `format: { long: true }`, or rich text) edits in the same body, as a paragraph: Enter is a newline, ⌘ or Ctrl Enter commits and keeps the cell, Tab commits and moves on, Escape cancels (or commits, where the column's type keeps), and a click away commits. Where it cannot be written, a read-only panel opens on the cell instead (`gridColumnInspectable`), selectable, never written.
672
674
 
673
- **A cut-off text** (a plain text, or a title that is text) opens whole when its cell cuts it off: a second click, a double-click or Enter shows all of it, in the body (its box grows over the rows below) where the cell can be written and in the read-only panel where it can't. It stays a line: Enter writes and moves down, and a newline is written as a space. Typing a character still replaces the value in the cell. Links, emails, phones and domains keep a one-line box.
675
+ **A cut-off text** (a plain text, or a title that is text) opens whole when its cell cuts it off: a second click, a double-click or Enter shows all of it, in the body (its box grows over the rows below) where the cell can be written and in the read-only panel where it can't. It stays a line: Enter writes and keeps the cell, and a newline is written as a space. Typing a character still replaces the value in the cell. Links, emails, phones and domains keep a one-line box.
674
676
 
675
- **A number, money or percent cell** opens your `NumberBody` over its cell on a computer, in a layer over the whole cell, on its lines, the cell keeping its padding, lifted as a grown editor is, and in the sheet on a phone; the keys stay as the number editor's own. A duration keeps ViewKit's own box.
677
+ **A number, money or percent cell** opens your `NumberBody` over its cell on a computer, in a layer over the whole cell, on its lines, the cell keeping its padding, the box with no edge, ground or lift of its own (past a cell too narrow for it, on the plain ground), and in the sheet on a phone; the keys stay as the number editor's own. A duration keeps ViewKit's own box.
676
678
 
677
679
  **On a phone** (narrower than the provider's `desktopQuery`, `(min-width: 1024px)` unless you hand in your own), a text cell and a long text open in a sheet titled with the column's header instead: ✕ and a swipe change nothing, ✓ saves and closes without moving the selection, and the save lands once the sheet has slid away.
678
680
 
679
681
  **The write gate** is `gridNormalizeWrite`, which every write the grid starts passes once: a key, the row's menu, a fill, a paste, a boolean's button. It coerces the value by the column's type, then has the column's field accept it, so a type's write rules are stated once: a marker boolean refuses any write but clear, an email or a url must look like one, a multiselect commits its whole set, trimmed and without duplicates. An emptied value passes unchecked, since `clearable` decides whether a clear may run; a clear reaches you as `""`, except a relation's `null`, a multiselect's `[]` and a boolean's `false` (Writes, above). A refusal is said in a toast and nothing is sent. Undo and redo do not pass the gate: they put a recorded value back as it was.
680
682
 
681
- **A select, status, date, tags, relation, number, range, place or list-of-values editor** opens through the same panel: your `Popover` on a desktop and your `Sheet` below your `desktopQuery`. Each asks the same gate before it closes, and the list's settings too, so a column locked while its editor is open says the lock in the editor. A value the gate refuses keeps the editor open with its reason, and nothing is sent until the value changes or Escape throws the edit away (where the column's type keeps on Escape, the first Escape keeps and shows the refusal, and a second throws the edit away). Leaving the cell while the reason stands writes nothing, and says the reason in a toast. These editors share the edit session's rules: Escape discards (or keeps, where the provider's `escape` keeps the column's type), and a refused value stays open with its reason. In the place editor's country or region list, Escape first closes the list, back to its boxes. On a desktop a picker opens your `Popover` over its cell, its top on the cell's top, and a number or a range is typed in the cell. Below your provider's `desktopQuery`, each opens in your `Sheet`, a number or a range included, titled with the column's header, with ✕ and ✓, while the cell behind it keeps showing its value. ✕, a swipe and Escape change nothing. ✓ saves, and so does a pick. A value is sent once its popover or sheet has played out; a number or a range typed in the cell is sent at once. A list of values whose every value was removed, or a place whose every part was emptied, on a column that isn't `clearable`, stays open saying the field can't be emptied (the column's `reasons.clearable` when it declares one); Escape still throws the edit away, unless the column's type keeps on Escape. The name editor still closes and says a refusal in a toast.
683
+ **A select, status, date, tags, relation, number, range, place or list-of-values editor** opens through the same panel: your `Popover` on a desktop and your `Sheet` below your `desktopQuery`. Each asks the same gate before it closes, and the list's settings too, so a column locked while its editor is open says the lock in the editor. A value the gate refuses keeps the editor open with its reason, and nothing is sent until the value changes or Escape throws the edit away (where the column's type keeps on Escape, the first Escape keeps and shows the refusal, and a second throws the edit away). Leaving the cell while the reason stands writes nothing, and says the reason in a toast. These editors share the edit session's rules: Escape discards (or keeps, where the provider's `escape` keeps the column's type), and a refused value stays open with its reason. In the place editor's country or region list, Escape first closes the list, back to its boxes. On a desktop a picker opens your `Popover` over its cell, a spacing step above and left of it, covering its lines, and a number or a range is typed in the cell. Below your provider's `desktopQuery`, each opens in your `Sheet`, a number or a range included, titled with the column's header, with ✕ and ✓, while the cell behind it keeps showing its value. ✕, a swipe and Escape change nothing. ✓ saves, and so does a pick. A value is sent once its popover or sheet has played out; a number or a range typed in the cell is sent at once. A list of values whose every value was removed, or a place whose every part was emptied, on a column that isn't `clearable`, stays open saying the field can't be emptied (the column's `reasons.clearable` when it declares one); Escape still throws the edit away, unless the column's type keeps on Escape. The name editor still closes and says a refusal in a toast.
682
684
 
683
685
  **The row's country.** A column's `region` (a binding's, carried by `columnFrom`) reads the record's country off the row, and a phone typed, pasted or filled without its country code is read in it, at the gate and in the editors' own check. Absent, the conventions' region reads it.
684
686