viewkitjs 0.35.0 → 0.36.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 (134) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/MIGRATION.md +7 -0
  3. package/package.json +1 -1
  4. package/views/dist/contract.d.ts +18 -1
  5. package/views/dist/contract.js +21 -0
  6. package/views/dist/controls/avatar/avatar.d.ts +3 -1
  7. package/views/dist/controls/avatar/avatar.js +2 -2
  8. package/views/dist/controls/compound-editor/map-parts-body.js +2 -0
  9. package/views/dist/controls/compound-editor/name-parts.js +1 -1
  10. package/views/dist/controls/compound-editor/place-parts.js +1 -1
  11. package/views/dist/controls/compound-editor/range-parts.js +1 -1
  12. package/views/dist/controls/compound-editor/words.d.ts +3 -0
  13. package/views/dist/controls/compound-editor/words.js +2 -0
  14. package/views/dist/controls/customize/customize.d.ts +10 -3
  15. package/views/dist/controls/customize/customize.js +147 -63
  16. package/views/dist/controls/customize/items.d.ts +49 -0
  17. package/views/dist/controls/customize/items.js +104 -0
  18. package/views/dist/controls/customize/map-customize-body.js +7 -4
  19. package/views/dist/controls/customize/words.d.ts +2 -0
  20. package/views/dist/controls/customize/words.js +1 -0
  21. package/views/dist/controls/filter-editor/block.js +5 -2
  22. package/views/dist/controls/filter-editor/filter-editor.d.ts +14 -1
  23. package/views/dist/controls/filter-editor/filter-editor.js +19 -11
  24. package/views/dist/controls/filter-editor/map-filter-body.d.ts +3 -2
  25. package/views/dist/controls/filter-editor/map-filter-body.js +16 -2
  26. package/views/dist/controls/filter-editor/map-rules.d.ts +9 -2
  27. package/views/dist/controls/filter-editor/map-rules.js +18 -13
  28. package/views/dist/controls/filter-editor/parts.js +12 -11
  29. package/views/dist/controls/filter-editor/rules.d.ts +4 -4
  30. package/views/dist/controls/filter-editor/rules.js +6 -3
  31. package/views/dist/controls/filter-editor/words.d.ts +2 -0
  32. package/views/dist/controls/filter-editor/words.js +1 -0
  33. package/views/dist/controls/group-editor/group-editor.d.ts +3 -0
  34. package/views/dist/controls/group-editor/group-editor.js +21 -15
  35. package/views/dist/controls/group-editor/map-group-body.js +1 -0
  36. package/views/dist/controls/index.d.ts +1 -1
  37. package/views/dist/controls/internal/kit-words.d.ts +11 -0
  38. package/views/dist/controls/internal/kit-words.js +7 -0
  39. package/views/dist/controls/internal/map-panel-controls.d.ts +4 -1
  40. package/views/dist/controls/internal/map-panel-controls.js +14 -1
  41. package/views/dist/controls/internal/menu-items.d.ts +9 -0
  42. package/views/dist/controls/internal/menu-items.js +97 -0
  43. package/views/dist/controls/internal/panel-controls.js +1 -1
  44. package/views/dist/controls/menu/menu.d.ts +1 -1
  45. package/views/dist/controls/menu/menu.js +1 -1
  46. package/views/dist/controls/number-editor/map-number-body.js +2 -0
  47. package/views/dist/controls/number-editor/number-editor.js +1 -1
  48. package/views/dist/controls/number-editor/words.d.ts +3 -0
  49. package/views/dist/controls/number-editor/words.js +2 -0
  50. package/views/dist/controls/picker/fields-frame.d.ts +5 -0
  51. package/views/dist/controls/picker/fields-frame.js +30 -0
  52. package/views/dist/controls/picker/map-fields-body.js +3 -26
  53. package/views/dist/controls/picker/map-picker.d.ts +2 -1
  54. package/views/dist/controls/picker/map-picker.js +4 -2
  55. package/views/dist/controls/picker/picker.js +9 -2
  56. package/views/dist/controls/picker/rows.d.ts +3 -1
  57. package/views/dist/controls/picker.css +2 -0
  58. package/views/dist/controls/select/map-select.d.ts +1 -1
  59. package/views/dist/controls/select/map-select.js +4 -1
  60. package/views/dist/controls/select/select.d.ts +2 -0
  61. package/views/dist/controls/select/select.js +3 -1
  62. package/views/dist/controls/sheet/bottom-sheet.d.ts +6 -1
  63. package/views/dist/controls/sheet/bottom-sheet.js +3 -3
  64. package/views/dist/controls/sort-editor/map-sort-body.js +1 -0
  65. package/views/dist/controls/sort-editor/sort-editor.d.ts +3 -1
  66. package/views/dist/controls/sort-editor/sort-editor.js +6 -4
  67. package/views/dist/controls/tag/tag.js +4 -2
  68. package/views/dist/controls/text-editor/map-text-body.js +4 -1
  69. package/views/dist/controls/text-editor/text-editor.js +2 -2
  70. package/views/dist/controls/text-editor/words.d.ts +3 -0
  71. package/views/dist/controls/text-editor/words.js +1 -1
  72. package/views/dist/controls/toolbar/toolbar.d.ts +8 -2
  73. package/views/dist/controls/views-list/map-views-list-body.js +9 -1
  74. package/views/dist/controls/views-list/rules.d.ts +1 -0
  75. package/views/dist/controls/views-list/rules.js +2 -2
  76. package/views/dist/controls/views-list/view-menu.js +2 -2
  77. package/views/dist/controls/views-list/words.d.ts +4 -0
  78. package/views/dist/controls/views-list/words.js +2 -1
  79. package/views/dist/display/option-badges.d.ts +3 -2
  80. package/views/dist/display/option-badges.js +2 -2
  81. package/views/dist/grid/chrome/GridAddColumn.d.ts +7 -2
  82. package/views/dist/grid/chrome/GridAddColumn.js +5 -4
  83. package/views/dist/grid/chrome/GridHeader.js +3 -1
  84. package/views/dist/grid/chrome/GridNumberEditor.js +1 -1
  85. package/views/dist/grid/chrome/GridRow.js +7 -1
  86. package/views/dist/grid/chrome/GridTableSurface.js +2 -1
  87. package/views/dist/grid/chrome/grid-fitted-box.d.ts +5 -2
  88. package/views/dist/grid/chrome/grid-fitted-box.js +14 -4
  89. package/views/dist/grid/chrome/grid-table-props.d.ts +6 -2
  90. package/views/dist/grid/chrome/useGridScaleStyles.d.ts +9 -1
  91. package/views/dist/grid/chrome/useGridScaleStyles.js +1 -4
  92. package/views/dist/grid/grid-format-props.d.ts +1 -1
  93. package/views/dist/grid/grid-format-props.js +18 -5
  94. package/views/dist/grid/grid.css +5 -1
  95. package/views/dist/grid/useGridTablePrefs.d.ts +1 -1
  96. package/views/dist/grid/useGridTableSettings.d.ts +1 -1
  97. package/views/dist/list/list.js +2 -2
  98. package/views/dist/list/menu.d.ts +5 -4
  99. package/views/dist/list/toolbar.js +5 -3
  100. package/views/dist/panels/customize-body.d.ts +1 -1
  101. package/views/dist/panels/customize-body.js +8 -1
  102. package/views/dist/panels/model.d.ts +5 -0
  103. package/views/dist/panels/react/customize-body.js +11 -2
  104. package/views/dist/panels/react/customize.d.ts +3 -0
  105. package/views/dist/panels/react/filter/FilterFieldList.d.ts +3 -1
  106. package/views/dist/panels/react/filter/FilterFieldList.js +2 -2
  107. package/views/dist/panels/react/filter/filter-body.js +3 -1
  108. package/views/dist/panels/react/filter/filter-part-body.d.ts +3 -1
  109. package/views/dist/panels/react/filter/filter-part-body.js +2 -2
  110. package/views/dist/panels/react/sort/SortEditor.js +3 -1
  111. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +9 -1
  112. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +5 -3
  113. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +4 -1
  114. package/views/dist/panels/react/toolbar/ToolbarOptions.js +2 -2
  115. package/views/dist/panels/react/toolbar/editor-menus.d.ts +8 -0
  116. package/views/dist/panels/react/toolbar/editor-menus.js +3 -0
  117. package/views/dist/panels/react/views-row/FoldingViewRow.js +3 -5
  118. package/views/dist/panels/react/views-row/HScrollRow.d.ts +4 -2
  119. package/views/dist/panels/react/views-row/HScrollRow.js +6 -2
  120. package/views/dist/panels/react/views-row/ViewAxes.js +6 -1
  121. package/views/dist/panels/react/views-row/ViewPicker.js +6 -9
  122. package/views/dist/panels/react/views-row/new-view.d.ts +11 -0
  123. package/views/dist/panels/react/views-row/new-view.js +21 -0
  124. package/views/dist/provider/components.d.ts +82 -2
  125. package/views/dist/react.d.ts +1 -1
  126. package/views/dist/styles.css +18 -5
  127. package/views/dist/styles.unlayered.css +18 -5
  128. package/views/docs/contract.md +19 -12
  129. package/views/docs/reference/controls.md +13 -12
  130. package/views/docs/reference/grid.md +4 -4
  131. package/views/docs/reference/list.md +25 -5
  132. package/views/docs/reference/panels-react.md +3 -3
  133. package/views/docs/reference/panels.md +1 -1
  134. package/views/docs/reference/react.md +16 -4
@@ -83,7 +83,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
83
83
 
84
84
  ## The bottom Sheet
85
85
 
86
- - `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; its height is the `snap` asked (`auto` the `edge` form, as tall as its content; `half` the `blend` form, opening at half; `peek` opening at the small stop; `full`, and none, to the top), a title that isn't words is drawn as handed (its name to screen readers still the label), `description` under the title and `className` on the sheet itself, a prop of the Sheet too; its own `data-slot` is drawn on its popup (a phone menu's sheet carries its menu's name).
86
+ - `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. `risen`, mounted open, stands at its stop from its first frame with no rise, for an app drawing a sheet again where one already stood (a window redrawn in another form); closed and opened again, it rises as any does. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; its height is the `snap` asked (`auto` the `edge` form, as tall as its content; `half` the `blend` form, opening at half; `peek` opening at the small stop; `full`, and none, to the top), a title that isn't words is drawn as handed (its name to screen readers still the label), `description` under the title and `className` on the sheet itself, a prop of the Sheet too; its own `data-slot` is drawn on its popup (a phone menu's sheet carries its menu's name).
87
87
  - `SheetProps` — its props.
88
88
  - `SheetChangeDetails` — why it opened or closed.
89
89
  - `SheetForm` — `full`, `floating`, `blend` or `edge`.
@@ -286,7 +286,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
286
286
  - `AvatarSize` — its sizes, 16, 20, 24, 32, 40, 56 and 64; a stack takes neither 16 nor 56.
287
287
  - `AvatarColour` — a square's own colour: blue, green, amber, red, purple, pink, teal or grey, the Option's list; the square on the hue's fill, what it holds in its strong ink, with no edge.
288
288
  - `AvatarPresence` — whether a person is here now: `here` or `away`.
289
- - `AvatarStack` — several people on one thing, overlapping, the rest a count; with `onPick` one button opening everyone in a Menu (its card rows pinned on a phone), with `addButton` a dashed + after it.
289
+ - `AvatarStack` — several people on one thing, overlapping, the rest a count; with `onPick` one button opening everyone in a Menu (its card rows pinned on a phone), with `addButton` a dashed + after it, named `addLabel` ("Add someone" by default: no map draws the stack, so hand it in your words).
290
290
  - `AvatarStackProps` — its props.
291
291
  - `AvatarStackPerson` — one person on it.
292
292
  - `initials` — a name's initials: the first letters of the first and last names.
@@ -307,7 +307,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
307
307
  - `PickerLead` — the row that leads, where its field leads several.
308
308
  - `PickerBoxSearch` — what a box that is its search is handed: its keys and what it holds.
309
309
  - `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count, the words its search also finds (`also`), and its public name (`slot`, a `PartSlot`, VK-988).
310
- - `PickerAs` — what a row is drawn as: an Option, a Status, an Avatar (its `kind` the record's kind as the app names it, handed to the app's Avatar atom, VK-1044), a sign, a mark, or a chip drawn in place of its words (`{ chip }`: a field's option as its cell draws it).
310
+ - `PickerAs` — what a row is drawn as: an Option, a Status, an Avatar (its `kind` the record's kind as the app names it, handed to the app's Avatar atom, VK-1044), a sign, a mark, or a chip drawn in place of its words (`{ chip }`: a field's option as its cell draws it; with `removable`, a function of a remove, how it stands held among the search's chips under the look Chips, its × removing it, else the plain Option there).
311
311
  - `PickerRow` — a row its list shows.
312
312
  - `RowsInput` — what its rows are worked out from.
313
313
  - `pickerRows` — what its list shows: the empty row, the headings, the matches, Create, loading more.
@@ -325,7 +325,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
325
325
  ## The Select
326
326
 
327
327
  - `Select` — a field to pick one or several from a closed list: the Input's box, its list the Picker under it on a computer and in the full Sheet on a phone; typed into (`searchIn="field"`), with chips, a search, Create, a server search, a clear row; or alone (`opens`), owning no list; its label over the box, or inside it before its value on the outline Button (`labelAt`).
328
- - `SelectProps` — its props.
328
+ - `SelectProps` — its props, `clearLabel` among them: the × that empties a typed Select, by default the kit's word, which inside ViewKit's panels is your `views.menus.clear` (its chips' × and its chevron likewise say `views.editors.tag-remove` or `views.picker.remove`, and `views.picker.show-every` or `views.picker.show-all`).
329
329
  - `SelectListProps` — its props with a list of its own.
330
330
  - `SelectAloneProps` — its props alone, owning no list.
331
331
  - `SelectItem` — a choice; `avatar` says its mark is the app's own Avatar atom, which a typed field's chip draws again at `chip` (ViewKit's own Avatar is drawn again at 16 with no flag, VK-1044).
@@ -388,7 +388,7 @@ One of a few choices, all of them in sight, on Base UI's radio group: the arrow
388
388
  What a list's sort opens, Attio's: the view's rules in order, the first sorting first, three at most, one per field (a place by one of its parts). Every change is handed on as it is made, so the list sorts again at once. Its stylesheet is `viewkitjs/views/controls/sort-editor.css`; its root marks a phone from the device (`data-vk-phone`).
389
389
 
390
390
  - `SortEditor` — the body alone, for a shell that holds only a body (the Popover, Customize's Sort): its props are `SortEditorProps`.
391
- - `useSortEditor` — the editor's state and its parts (`SortEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`SortEditorProps`): `label`, the `fields` (Picker rows, each with its mark; one leading one level in holds its own), the `rules`, `onRulesChange` (the whole rules, and the set-aside sorts left when one of them is written), `max`, `form` (`computer`, `phone`, or `narrow`: the phone's structure at a computer's sizes, for a narrow place), `onDone`, the fields' `search` words, `aside` (the sorts set aside, `SortAside`s), `fieldOf` (the field a sort key sorts, so a place sorts once by one of its parts), `addSort` (Add sort at a computer's foot, true unless said), `words`, and for a page standing still `lifted`, `opens` (`SortEditorOpens`) and `level`. On a computer each rule is its grip, its field's and its direction's Select, and ×, with Add sort and Clear all sorts at the foot; the set-aside sorts follow, each its field's box dashed in the warning colour with why, its direction greyed, ⋯ holding why, Put back and Delete. On a phone each rule is a card row, its direction under its name; a press turns the body to its direction, Add sort to the fields, a set-aside sort's row to the fields to point it at one: steps of the same sheet, never a sheet on top. The body answers no Escape: its holder's sheet does. Its hook joins this door as `useSortEditor`, and the body alone as `SortEditor`, once VK-727 retires the panels' older sort editor of those names.
391
+ - `useSortEditor` — the editor's state and its parts (`SortEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`SortEditorProps`): `label`, the `fields` (Picker rows, each with its mark; one leading one level in holds its own), the `rules`, `onRulesChange` (the whole rules, and the set-aside sorts left when one of them is written), `max`, `form` (`computer`, `phone`, or `narrow`: the phone's structure at a computer's sizes, for a narrow place), `onDone`, the fields' `search` words, `aside` (the sorts set aside, `SortAside`s), `fieldOf` (the field a sort key sorts, so a place sorts once by one of its parts), `addSort` (Add sort at a computer's foot, true unless said), `words`, and for a page standing still `lifted`, `opens` (`SortEditorOpens`) and `level`. On a computer each rule is its grip, its field's and its direction's Select, and ×, with Add sort and Clear all sorts at the foot; the set-aside sorts follow, each its field's box dashed in the warning colour with why, its direction greyed, ⋯ holding why, Put back and Delete. On a phone each rule is a card row, its direction under its name; a press turns the body to its direction, Add sort to the fields, a set-aside sort's row to the fields to point it at one: steps of the same sheet, never a sheet on top. The body answers no Escape: its holder's sheet does. Its hook joins this door as `useSortEditor`, and the body alone as `SortEditor`, once VK-727 retires the panels' older sort editor of those names. Its props take `items` (its menus as data, `menus.sortEditor`, VK-1063).
392
392
  - `useSortEditorParts` — `useSortEditor`, under its name before the body took the plain one; kept.
393
393
  - `SortEditorProps` — its props; `clearAll` (default on) draws Clear all at its foot, off inside Customize.
394
394
  - `SortEditorParts` — its parts: the body, the head's buttons, and on a phone's step its title and Back.
@@ -463,7 +463,7 @@ A view's menu and what it opens (VK-823), for an app that draws its own menu or
463
463
  What an advanced filter opens on a computer and Filter on a phone, Attio's: the view's rules, each Where or its level's join, its field, how it compares and its value in its type's own box, joined by And or Or, in groups three deep; a relation rule's block (its relation, Any, None or Every where, its rules on that relation's fields inside, Add filter and Delete condition), which a rule on a related field's ⋮ makes with None or Every, Every waiting until a rule in it narrows; a group's ⋮ with Exclude matches (a group joined by And), an excluded group saying so; and the filter part, what a filter's way and value open on the bar. A body, as the sort editor is: the Popover holds it on a computer and the Sheet on a phone. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/filter-editor.css`; its root marks a phone from the device (`data-vk-phone`).
464
464
 
465
465
  - `FilterEditor` — the body alone, for a shell that holds only a body (the Popover): its props are `FilterEditorProps`.
466
- - `useFilterEditor` — the editor's state and its parts (`FilterEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`FilterEditorProps`): `label`, the `fields` (each typed, a choice's values with it; one leading one level in holds its own), the `filter`, `onFilterChange`, `at`, `ids`, `levels`, `form` (`computer`, `phone`, or `narrow`), `onDone`, `standing`, `own` (ViewKit's own words and value body for a rule the kit has no box for), `excludable` (whether the filter itself may exclude its matches: an advanced filter's own group, its foot then holding a group's ⋮ too) and `words`. On a phone each box's list, a date, a value ViewKit draws, Add filter, a block's quantifier and a rule's or a group's ⋯ turn the body to a step of the same sheet, never a sheet on top; the body answers no Escape: its holder's sheet does. Its hook joins this door as `useFilterEditor`, and the body alone as `FilterEditor`, once VK-727 retires the panels' older filter editor of that name.
466
+ - `useFilterEditor` — the editor's state and its parts (`FilterEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`FilterEditorProps`): `label`, the `fields` (each typed, a choice's values with it; one leading one level in holds its own), the `filter`, `onFilterChange`, `at`, `ids`, `levels`, `form` (`computer`, `phone`, or `narrow`), `onDone`, `standing`, `own` (ViewKit's own words and value body for a rule the kit has no box for), `excludable` (whether the filter itself may exclude its matches: an advanced filter's own group, its foot then holding a group's ⋮ too) and `words`. On a phone each box's list, a date, a value ViewKit draws, Add filter, a block's quantifier and a rule's or a group's ⋯ turn the body to a step of the same sheet, never a sheet on top; the body answers no Escape: its holder's sheet does. Its hook joins this door as `useFilterEditor`, and the body alone as `FilterEditor`, once VK-727 retires the panels' older filter editor of that name. Its props take `items` (its menus as data, by its own rule and group ids; its map hands the app public terms instead, VK-1063).
467
467
  - `useFilterEditorParts` — deprecated: `useFilterEditor`, under its name before the body took the plain one.
468
468
  - `FilterEditorProps` — its props; `clearAll` (default on) draws Clear all at its foot, off inside Customize.
469
469
  - `FilterEditorParts` — its parts: the body, the head's buttons, and on a phone's step its title and Back.
@@ -522,7 +522,7 @@ What an advanced filter opens on a computer and Filter on a phone, Attio's: the
522
522
  What Customize's Group opens: the list's group as the Menu list's rows. Group by, Order, Direction, a date field's Date step and Hide empty groups, each saying what it is and opening its choices in place; then the groups under their heading, each its grip, its name and its Switch, dragged into your own order, Hide all (Show all once none shows) at the heading; Remove grouping at its foot. A body: Customize holds it, a screen in its panel on a computer and a step of its sheet on a phone. A setting's choices stand in place of the settings, and the editor hands their name and the way back to its holder (`level`), whose head shows them. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/group-editor.css`; its root marks a phone from the device (`data-vk-phone`).
523
523
 
524
524
  - `GroupEditor` — the body alone, for a shell that holds only a body: its props are `GroupEditorProps`.
525
- - `useGroupEditor` — the editor's state and its parts (`GroupEditorParts`): the `body`, and the `level` it stands on. Its props (`GroupEditorProps`): `label`, the `fields` (Picker rows; one leading one level in holds its own), `ownOrders` (a field's own order, in its words), `orders` (the orders each field offers), `manualOrder` (whether Your own may be picked), `steps` (each date field's steps), the `group`, the groups as `values` (each with its count), `onGroupChange` (the whole group, null once taken off), `search`, `form`, `words`, and for a page standing still `opens` and `opensLevel`. The body alone, `GroupEditor`, joins this door with VK-727, beside the other panels' bodies.
525
+ - `useGroupEditor` — the editor's state and its parts (`GroupEditorParts`): the `body`, and the `level` it stands on. Its props (`GroupEditorProps`): `label`, the `fields` (Picker rows; one leading one level in holds its own), `ownOrders` (a field's own order, in its words), `orders` (the orders each field offers), `manualOrder` (whether Your own may be picked), `steps` (each date field's steps), the `group`, the groups as `values` (each with its count), `onGroupChange` (the whole group, null once taken off), `search`, `form`, `words`, and for a page standing still `opens` and `opensLevel`. The body alone, `GroupEditor`, joins this door with VK-727, beside the other panels' bodies. Its props take `items` (its rows as data, `menus.groupEditor`, VK-1063; its settings open and take the focus back by key).
526
526
  - `GroupEditorProps` — its props.
527
527
  - `GroupEditorParts` — its parts: the body, and the level it stands on (its name and the way back), null at the settings.
528
528
  - `GroupEditorValue` — a group as the editor draws it: its value, its name, its mark, its count.
@@ -551,7 +551,7 @@ What Customize's Group opens: the list's group as the Menu list's rows. Group by
551
551
  What View settings opens: the view's sections as the Menu list's rows, Layout, Columns, then each of Filter, Sort and Group it is handed, each saying where it stands and opening its screen in place, then its toggles (Show counts among them). Layout is the layout cards (none on a phone offered one layout) and the layout's own settings: its pick-one settings (a density, a board's field) each opening its choices in place, and its toggles under their sections, with nothing after them. A section that differs from the view as saved shows its value in the brand (`differs`, and the sections' own `inForce`), a section at rest in the normal colour. Each section's screen (Layout, Columns, Filter, Sort, Group) carries its own Reset while it is handed one (`resets`), in the first page's Reset's word and look and place, never on a level the screen opened in place; inside Customize the sort's and the filter's own Clear all give way to it. Columns is a search, the shown columns, each its grip, its mark, its name and its Switch, dragged into place, the first one locked, the hidden ones under Hidden, Hide all and Show all at the headings. A column with settings of its own or the app's rows for its field carries a › after its Switch, opening its level in Columns' place: Shown, its pick-one settings each opening in place, its toggles under their sections, then the app's rows; on a card layout each field carries its new-line Toggle, refused with its reason on the card's first field and a hidden one; and the app's rows under Columns' rows (Add field) stand at its foot. A list's per-field filters stand as rows after Columns and its time range and date ranges after Group, each saying what it holds and opening its screen (choices to pick one of, choices to check, or a body of its own with its level), or, folded, all behind one Filter row. Its head is the view's name renamed in place, or a title, as its options say; its footer, Copy link and Export CSV, each where handed; Reset and Save over it once something changed, with the shared view's stale note. A body: on a computer the Pane holds it where an app hands a Pane, and elsewhere (the toolbar's popover) it draws the same head, body and foot in a frame of its own; on a phone it hands the Sheet its head and foot, each section's step under that one head. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/customize.css`; its options are `CUSTOMIZE_LOOKS`; its root marks a phone from the device (`data-vk-phone`).
552
552
 
553
553
  - `Customize` — the body alone, for a shell that holds only a body: its props are `CustomizeProps`.
554
- - `useCustomize` — its state and its parts (`CustomizeParts`): the `body`, the `level` it stands on (a layout's choice, a column's settings, a section's level) or `null`, and on a phone the Sheet's `title`, `head` (Back and ✕) and `foot`. Its props (`CustomizeProps`): the `view`, `onViewChange` (the whole view, each change as it is made), the `layouts`, the `filter`, `sort` and `group` sections, `changed` with `onReset` and `onSave`, `pending`, `stale`, `exportCount` with `onCopyLink` and `onExport`, `toggles`, `layoutSettings`, `resets` (each section's own Reset), `differs` (a section that differs from the view as saved, its value in the brand: Layout and Columns marked only where handed, VK-1048), `columnsReset` (deprecated: read as `resets.columns`), `onLineChange` (a card's field starting a new line, turned on or off), `columnsFoot` (the app's rows under Columns' rows), `fields` and `foldFields` (a list's per-field filters, its time range and date ranges, `CustomizeField`), `onClose` (outside a Pane, the title head's ✕), `onScreenChange`, `words`, `form`, and for a page standing still `screen`. The body alone, `Customize`, joins this door with VK-727, beside the other panels' bodies.
554
+ - `useCustomize` — its state and its parts (`CustomizeParts`): the `body`, the `level` it stands on (a layout's choice, a column's settings, a section's level) or `null`, and on a phone the Sheet's `title`, `head` (Back and ✕) and `foot`. Its props (`CustomizeProps`): the `view`, `onViewChange` (the whole view, each change as it is made), the `layouts`, the `filter`, `sort` and `group` sections, `changed` with `onReset` and `onSave`, `pending`, `stale`, `exportCount` with `onCopyLink` and `onExport`, `toggles`, `layoutSettings`, `resets` (each section's own Reset), `differs` (a section that differs from the view as saved, its value in the brand: Layout and Columns marked only where handed, VK-1048), `items` (its rows as data, `ViewsCustomizeItems`: handed each page's default rows, its list's, Layout's and Columns', it hands back the rows drawn, VK-1062; a disabled row with no reason says `words.unavailable`, "Not available"), `columnsReset` (deprecated: read as `resets.columns`), `onLineChange` (a card's field starting a new line, turned on or off), `columnsFoot` (the app's rows under Columns' rows), `fields` and `foldFields` (a list's per-field filters, its time range and date ranges, `CustomizeField`), `onClose` (outside a Pane, the title head's ✕), `onScreenChange`, `words`, `form`, and for a page standing still `screen`. The body alone, `Customize`, joins this door with VK-727, beside the other panels' bodies.
555
555
  - `useCustomizeWorn` — its options as the frame round it wears them, kept up to date as they change.
556
556
  - `layoutMark` — a layout's mark by its id: table, board, list, calendar, timeline.
557
557
  - `CustomizeProps` — its props.
@@ -711,6 +711,7 @@ Its frame and its separator are `ToolbarControl` and `ToolbarSeparatorControl`:
711
711
  - `ToolbarProps` — its props.
712
712
  - `ToolbarOverflowControl` — ⋯ as you draw it: `icon` (your glyph over ViewKit's dots), `className` (put on it) and `button` (your button, drawn in its place and handed the very props the Toolbar button would get, `ref` and what its Menu sets to open from it included: spread them on yours). Absent, ViewKit's own ⋯.
713
713
  - `ToolbarMoreControl` — "+N" or "+N filters" as you draw it: `className` (put on it) and `button` (your button, drawn in its place and handed the very props the Toolbar button would get, `ref`, its words and what its Menu, or `onMoreViews`, sets to open from it included: spread them on yours). Absent, ViewKit's own.
714
+ - `ToolbarOwnButtonProps` — what the Toolbar hands your own ⋯, "+N" or "+N filters" button: a Toolbar button's props (`ToolbarButtonProps`), its `style` a plain one, never Base UI's state function. Type your button with it and spread what is left after the props you draw yourself onto a plain `<button>`, with no cast; a button typed with `ToolbarButtonProps` is still taken.
714
715
  - `ToolbarPlace` — a place: what it draws, or a function of where it stands.
715
716
  - `ToolbarAt` — where a place stands: `row`, `right`, `bar` or `phone`.
716
717
  - `ToolbarSeparatorControl` — a line between what belongs together and what doesn't.
@@ -780,7 +781,7 @@ What picked rows bring, the Outright kit's (after Attio's): on a computer a surf
780
781
  - `TEXT_EDITOR_ATTRS` — the attributes it watches, so a look changed while it is open reaches it.
781
782
  - `TextEditorWorn` — its options as worn.
782
783
  - `TEXT_EDITOR_WORDS` — its words, in English: a phone's country button and its list's search. `CONTROLS.TextBody` hands the app's (`views.editors.place-country`, `views.editors.place-country-search` and the Picker's), and names a phone's countries in the conventions' `language`.
783
- - `TextEditorWords` — those words, and its list's own (`picker`).
784
+ - `TextEditorWords` — those words, `close` and `save` (a phone's ✕ and ✓ where no holder keeps the draft; the map hands `views.panels.close` and `views.editors.save`), and its list's own (`picker`).
784
785
  - `textWords` — the words handed, over the English.
785
786
 
786
787
  Its stylesheet is `viewkitjs/views/controls/text-editor.css`, beside the inline input's, the Input's, the Field's, the Button's, the Popover's, the Picker's and the list's; its names are on [its page](../controls/text-editor.md).
@@ -789,7 +790,7 @@ Its stylesheet is `viewkitjs/views/controls/text-editor.css`, beside the inline
789
790
 
790
791
  `CONTROLS` fills its `Picker` with the Picker: ViewKit's select, status, several-values, relation and set editors open it, handed their rows as data, the panel round it keeping the draft and, on a phone, its ✕ and ✓, so the Picker is told the shell keeps them and hands every change. Its words are ViewKit's `views.picker.*` messages, so an app's own words reach it. A status field's steps come as `steps`: an archived option held stands outside them, as its cell draws it. It fills its `FieldsBody` with the Picker too: the sort's and the filter's field lists, each field its column's glyph, one that can't be picked greyed with why, a relation under Related records with its far fields one level in. The Picker's stylesheet, `viewkitjs/views/controls/picker.css`, stands on the Avatar's, the Button's, the Checkbox's, the Glass button's, the Input's, the Kbd's, the Menu's, the Option's, the Spinner's, the Status's, the Sheet's, the scrollbar's, the list's and the popup line's.
791
792
 
792
- - `pickerItemsOf` — ViewKit's rows (`ViewsPickerItem`) as the Picker's: an avatar, the record's glyph, a status at its place (its quarters among `steps` when handed), an option, or the app's icon (handed `AppIcon`). Handed `cells: true`, as `CONTROLS.Picker` hands it, a status and an option are drawn as their cells draw them: your `StatusBadge` and `Tag` atoms, in the option's colour (a chip row, `as: { chip }`). For an app's own list in the Picker; the editors' own `pickerItemOf` is another, internal one.
793
+ - `pickerItemsOf` — ViewKit's rows (`ViewsPickerItem`) as the Picker's: an avatar, the record's glyph, a status at its place (its quarters among `steps` when handed), an option, or the app's icon (handed `AppIcon`). Handed `cells: true`, as `CONTROLS.Picker` hands it, a status and an option are drawn as their cells draw them: your `StatusBadge` and `Tag` atoms, in the option's colour (a chip row, `as: { chip }`); an option in its colour stands held among the search's chips (the look Chips) as your `Tag` too, with its remove (`removable`). For an app's own list in the Picker; the editors' own `pickerItemOf` is another, internal one.
793
794
 
794
795
  ## The Date editor
795
796
 
@@ -881,7 +882,7 @@ Its stylesheet is `viewkitjs/views/controls/date-editor.css`, beside the Button'
881
882
  - `regionFor` — a region typed, read against a country.
882
883
  - `placeOf` — what a place's draft keeps: its country and its parts, trimmed; null when nothing is left.
883
884
  - `COMPOUND_EDITOR_WORDS` — its words, in English: a name's boxes and what is said under the full name, a place's country, its lists' searches and empty rows, a range's ends and its number boxes' names. `CONTROLS.PartsBody` hands the app's (`views.editors.*`, listed in the contract) and, with no country held, each box's words for none.
884
- - `CompoundEditorWords` — those words, a word naming a region taking the region's own word, and its lists' own (`picker`).
885
+ - `CompoundEditorWords` — those words, a word naming a region taking the region's own word, `close` and `save` (as the Text editor's), and its lists' own (`picker`).
885
886
  - `compoundWords` — the words handed, over the English.
886
887
  - `placeText` — what a cell shows of a place: an address its street and city, a person's place its city and country.
887
888
  - `placeLine` — what a cell shows of a place in Attio's look: every part held, joined by commas.
@@ -915,7 +916,7 @@ A name's `NameValue` and `sameName`, and a range's `rangeText`, stay inside the
915
916
  - `NumberEditorWorn` — its options as worn.
916
917
  - `NUMBER_EDITOR_WORDS` — its words, in English: its lists' names and searches, the code button's name and the number field's steps. `CONTROLS.NumberBody` hands the app's (`views.menus.currency`, `views.editors.number-*`, listed in the contract).
917
918
  - `numberWords` — the words handed over the English.
918
- - `NumberEditorWords` — those words, and its lists' own (`picker`).
919
+ - `NumberEditorWords` — those words, `close` and `save` (as the Text editor's), and its lists' own (`picker`).
919
920
 
920
921
  Its stylesheet is `viewkitjs/views/controls/number-editor.css`, beside those of the controls it draws with; its names are on [its page](../controls/number-editor.md).
921
922
  ## The Values editor
@@ -4,7 +4,7 @@ The spreadsheet. The door carries no client directive; every rendering file behi
4
4
 
5
5
  ## The grid
6
6
 
7
- - `GridTable` — draws the spreadsheet: rows in their groups under a header whose column menus sort, group, format and hide, a checkbox rail and a ⋯ tail on each row, editors opened over cells, a selected range with copy, paste and undo, and a footer of figures per column. An edit shows in its cell at once and goes to `onCellCommit` (a batch to `onCellsCommit`); a failed write rolls the cell back. An undo or a redo shows its value, and takes the focus to its cell, as it is pressed; it is sent once the edit it takes back has answered, or at once when the page closes (`pagehide`), an editor still open writing its draft first. Back from the back-forward cache, an undo sent at the close may have reached the server before the edit it takes back: the cell then ends on the edit's stored value while redo still offers the undo. While `transitionPending` is true, or for one commit after `transitionKey` changes, it draws your app's loading atom instead of the rows, or, handed the components map's `RowsWait` and already showing rows, keeps them, inert, as that slot's children, its column names and footer standing outside the slot, as they are. It takes a `GridTableProps`.
7
+ - `GridTable` — draws the spreadsheet: rows in their groups under a header whose column menus sort, group, format and hide, a checkbox rail and a ⋯ tail on each row (its ⋯ drawn only where the grid was handed something it opens: `selection`, `contextMenu`, `rowMenu`, `menus.row`, `rowHref`, `onRowDelete` or a name action), editors opened over cells, a selected range with copy, paste and undo, and a footer of figures per column. An edit shows in its cell at once and goes to `onCellCommit` (a batch to `onCellsCommit`); a failed write rolls the cell back. An undo or a redo shows its value, and takes the focus to its cell, as it is pressed; it is sent once the edit it takes back has answered, or at once when the page closes (`pagehide`), an editor still open writing its draft first. Back from the back-forward cache, an undo sent at the close may have reached the server before the edit it takes back: the cell then ends on the edit's stored value while redo still offers the undo. While `transitionPending` is true, or for one commit after `transitionKey` changes, it draws your app's loading atom instead of the rows, or, handed the components map's `RowsWait` and already showing rows, keeps them, inert, as that slot's children, its column names and footer standing outside the slot, as they are. It takes a `GridTableProps`.
8
8
  - `GridTableProps` — what `GridTable` takes, flat, typed over your row. Five are required: `groups` (the rows, as the model's `ListGroup`s), `grouped` (whether they draw as group bands), `getRowId`, `columns` (the model's `ListColumn`s) and `onOpenRow` (what opening a row does: the title's text opens it; it receives the row and a `GridRowOpenedFrom`, which brings the focus back to the row's cell once what it opened closes). The rest are optional:
9
9
  - Rows and groups: `rowHref`, `onPrefetchRow` (warm a row's detail on a pointer's intent), `rowClassName`, `rowIcon` and `showRowIcon` (the title cell's glyph, as a descriptor the grid sizes and colours, or the row's picture through your `Avatar` atom when the descriptor hands an `avatar`), `onOpenRelation` and `entityIcon` (opening the record a relation cell points at, and the glyph for a kind; without `onOpenRelation`, relation cells are inert), `isCollapsed` and `onToggleGroup` (your group collapse), `oneHeader` (a grouped grid draws one row of column names, pinned at the top over every group, in place of each group's own; each group's bar pins under it, and the row's checkbox picks every row; off by default, when each group draws its own with the box that picks its rows), `pinFooter` (the footer pins at the foot of the grid's scroll area, `--vk-scroll-inset-bottom` above its edge and, while rows are selected, a step above the bar `renderBar` draws, on a phone the rows then ending at the footer's bottom (measured where it stands; on the foot when it draws none), the rows passing under it, painted the ground and `data-stuck` only while they do; an ungrouped grid's stands at the foot even when its rows don't fill the area, in pages just above the pager, and a grouped grid's each pin while their group's rows run past the foot and close their group otherwise; off by default, when the footer stands after the last row), `renderGroupLabel`, `renderGroupFooter` (a group's paged continuation after its loaded rows), `onHideGroup`, `countOf`, `loadMore` (`hasMore`, `onReveal` and a `label`), `pages` (`GridPages`: `page` from 1, `size`, `total`, the view's count, `exact`, false for a capped count, `sizes`, the page-size pick's choices, default 25, 50 and 100, and `onPage` and `onSize`: an ungrouped grid draws the page you hand and the pager part `vk-grid-pager` under it, `loadMore` is then not drawn, picks clear on a page or size change, and the footer shows only the figures a group carries in `figures`; a grouped grid draws no pager; absent by default), `emptyState`, and `transitionKey`, `transitionPending` and `transitionLabel` (a view change: the wait paints before the new rows mount).
10
10
  - Row actions and menus: `rowMenu` (a row's items, on right-click and in its ⋯ tail; the same builder a list takes), `contextMenu` (a right-click menu that differs from it), `rowActions` (buttons in the title cell's action lane, before the grid's own Edit), `onRowDelete` and `deleteLabel` (a delete row in the row's menu), `menus` (`GridMenus`: each of the grid's menus as data, reshaped by your function; `menus.row` is asked as a row's menu opens and may answer a promise, the menu waiting on one greyed row until it does, and holds Open page and Delete as `row-open` and `row-delete`, so a row's Delete is offered per row; the ready `<List>` (VK-742) hands the same `menus.row` through), `commands` (the verbs a `command` column's cell opens, by field key; without it a command column is a read-only badge) and `selection` (the list's selection; its optional `renderBar` draws the bar it opens, `SelectionBar` with your verbs, and without one the rows still tick and no bar is drawn).
@@ -16,9 +16,9 @@ The spreadsheet. The door carries no client directive; every rendering file behi
16
16
  - States held from outside, each off when left out, as a page that shows the grid's states side by side needs them: `hoveredRow` (a row, by its id, drawn as under the pointer: its tint, its rail's box, its ⋯ and the name's actions, and `data-hovered`, while a real pointer still hovers any row beside it; drawn, as a hover is, only on a screen whose pointer hovers) and `onHoveredRowChange` (the row a person's pointer moves onto, or null off it); `cellPick` (a `GridCellPick` drawn as picked, placed each time its value changes without taking the page's focus; while it is given, null included, a press outside the grid lets go of nothing, and a person's click, drag, keys and Escape move it as always) and `onCellPickChange` (each change a person makes, or null); `openColumnMenu` (the column, by its id, whose menu stands open on the first row of column names, its header cell `data-open`; while it is given, null included, the menus open and close only as it says) and `onOpenColumnMenuChange` (the column a person's press opens, or null when a press, a row of the menu or a press outside closes it, for you to answer).
17
17
  - List config: `listConfig` (the settings layer every user of the list inherits, which may only take away from what the columns declare: the table read-only, per-column locks; a constraint on the screen, while your API guards its own writes). The grid only reads it: a surface of your own changes it.
18
18
  - Per row: `rowWritable` (`(row) => boolean`, whether a row's cells write, for a reader who may edit some records and not others; a row it answers false for opens no editor, takes no typing, paste, fill, clear, cut or bulk-bar write, says "Cell is read-only" (`views.grid.cell-read-only`) when a person tries, and marks its cells `aria-readonly`; it only takes away from what the columns and `listConfig` allow; absent, every row writes as its columns say; called while the grid renders, so keep it pure and cheap; a constraint on the screen, while your API guards its own writes).
19
- - `GridMenus` — the grid's menus as data, `GridTable`'s `menus`, typed over your row: `column(items, { field, column })`, `row(items, { row })` and `group(items, { group })`, each handed its menu's default items (`ViewsMenuItem[]`, every row keyed) and returning the items it shows. A menu with no function is as before. The helpers, the keys and the rules are [`/list`'s Menus as data](./list.md#menus-as-data).
20
- - `useGridTablePrefs` — wires a list's view preferences to the grid. It takes `prefs` (the list's `ListViewPrefs`), `setPrefs` (stores a patch of them), `columns` (whose money reading the number formats read) and `viewBacked`, and returns `{ gridProps }` to spread on `GridTable`: the borders, row icon, frozen identity, checkboxes and scale, the format overrides, the column state, the group figures and the footer figures, each with the handler that writes it back through `setPrefs`.
21
- - `useGridTableSettings` — wires a list's settings and a person's layer to the grid, for a list kept as `viewkitjs/fields/query`'s `ListSettings`. It takes `settings`, `layer` (the person's `ListPersonalLayer`), `columns` (the declared ones), `parts` (the same `parts` the grid takes, so a part column the settings place is drawn and moved as the grid draws it), `onChange` (a `ListSettingsChange`, never empty), `onLayerChange` (a layer patch), `defaults` (the reader's `ListDefaults`) and `formats` with `setFormats`, and returns `{ gridProps }` to spread on `GridTable`, as `useGridTablePrefs` does: a column hidden, moved, given a line break or a figure, and a group header's figures, come back through `onChange`; a resize through `onLayerChange` as the person's width (a width taken back by a double-click leaves it); a format through `setFormats`.
19
+ - `GridMenus` — the grid's menus as data, `GridTable`'s `menus`, typed over your row: `column(items, { field, column })`, `row(items, { row })`, `group(items, { group })` and `addColumn(items, { columns })`, each handed its menu's default items (`ViewsMenuItem[]`, every row keyed) and returning the items it shows. A menu with no function is as before. The helpers, the keys and the rules are [`/list`'s Menus as data](./list.md#menus-as-data).
20
+ - `useGridTablePrefs` — wires a list's view preferences to the grid. It takes `prefs` (the list's `ListViewPrefs`), `setPrefs` (stores a patch of them), `columns` (whose money reading the number formats read) and `viewBacked`, and returns `{ gridProps }` to spread on `GridTable`: the borders, row icon, frozen identity, checkboxes and scale, the format overrides, the column state, the group figures and the footer figures, each with the handler that writes it back through `setPrefs`. A format's patch hands its whole map with the field it changes present: its new setting, or `null` where it has none left (Automatic, Reset colors). A store that writes only the fields a patch names reads `null` as the clear; one that keeps the map as handed keeps the `null`, which the grid reads as no setting.
21
+ - `useGridTableSettings` — wires a list's settings and a person's layer to the grid, for a list kept as `viewkitjs/fields/query`'s `ListSettings`. It takes `settings`, `layer` (the person's `ListPersonalLayer`), `columns` (the declared ones), `parts` (the same `parts` the grid takes, so a part column the settings place is drawn and moved as the grid draws it), `onChange` (a `ListSettingsChange`, never empty), `onLayerChange` (a layer patch), `defaults` (the reader's `ListDefaults`) and `formats` with `setFormats`, and returns `{ gridProps }` to spread on `GridTable`, as `useGridTablePrefs` does: a column hidden, moved, given a line break or a figure, and a group header's figures, come back through `onChange`; a resize through `onLayerChange` as the person's width (a width taken back by a double-click leaves it); a format through `setFormats`, its patch shaped as `useGridTablePrefs`' is.
22
22
  - `GridFormatPrefs` — how a list's fields read, which `useGridTableSettings` takes apart from its settings: `gridOptionColors`, `gridDateStyles`, `gridDurationStyles`, `gridShowTime`, `gridPercentDisplays`, `gridDecimals` and `gridCurrencies`, each keyed by field key.
23
23
 
24
24
  ## Sort, group and figures
@@ -89,7 +89,7 @@ export function OrdersFromAnAction() {
89
89
  - `views`: a `ViewsStore`, or `{ seed }` (your own views, read-only), `{ records }` (what the delete question calls the rows), `{ store }`.
90
90
  - `defaults`: what a list with no saved view shows; by default the fields' columns over `LIST_SETTINGS_DEFAULTS`.
91
91
  - `sortFilter` and `bar`: the toolbar's form on a computer, as `ListRoot` takes them.
92
- - `menus`: every menu as data ([Menus as data](#menus-as-data)): `column`, `row` and `group` reach the grid, `view`, `add` and `more` the toolbar.
92
+ - `menus`: every menu as data ([Menus as data](#menus-as-data)): `column`, `row`, `group` and `addColumn` reach the grid, `view`, `add`, `more`, `customize`, `sortEditor`, `filterEditor` and `groupEditor` the toolbar.
93
93
  - `toolbarParts`: where each of the toolbar's parts stands ([Parts as data](#parts-as-data)).
94
94
  - `customizeIn`: where Customize opens on a computer (VK-1026). `"popover"`, the default, at its button. `"pane"`: in your map's `Pane` (`CONTROLS.Pane`), at the list's right edge under the toolbar and as tall as the grid, over its edge, the grid scrolling and taking presses beside it; the grid then stands in a box of its own, `data-slot="vk-list-box"` (positioned, a flex column that fills the list: give the list its height as a flex column), the Pane's. On a phone Customize keeps its Sheet. An app on `ListRoot` hands its own box to `ListToolbar` as `paneBox`.
95
95
  - `link`: default `true`. The address carries the open view and what changed over it (`view`, `q`, `change`), written in place as it changes, your other parameters and history state kept; an opened link wins over the person's draft; back and forward open what the address says. A link it can't read is said through the toast. Two lists on one page share those parameters: hand the second `link={false}`.
@@ -208,7 +208,7 @@ How the views behave:
208
208
 
209
209
  - **Your own views come first**, shared and read-only: their menu offers Reset, Save as new view, Duplicate and Copy link, never Rename, Delete or Save.
210
210
  - **With the browser store, everything a person saves is their own**, so "Save for everyone" never shows: their own view's Save says "Save" (`views.panels.view-save-own`), in its menu and Customize's foot. A store whose `can.share` is true lets that person save over shared views too.
211
- - **A draft per view.** Each change a person makes is kept as their draft over the open view, never the search, and shows again when they come back. Undoing every change lets the draft go. A draft begun before its view was saved again (another tab, another person) is marked: Customize says "Everyone's view changed since you started." The draft is kept.
211
+ - **A draft per view.** Each change a person makes is kept as their draft over the open view, never the search, and shows again when they come back. Undoing every change lets the draft go. A draft begun before its view was saved again (another tab, another person) is marked: Customize says "Everyone's view changed since you started.", or "This view changed since you started." on a person's own view. The draft is kept.
212
212
  - **A link wins** over the draft: the view it names opens with its change; a view the store doesn't have opens the first listed, with the link's change.
213
213
  - **Delete with Undo.** A deleted view leaves the row at once and ViewKit's toast offers Undo. It is removed from the store once the toast's time ends (`--vk-toast-duration`), or at once when the page closes (`pagehide`). An Undo after that saves it back under its own id.
214
214
  - **Other tabs follow** through the `storage` event: a view saved, renamed, reordered or deleted shows in each tab; the open view gone, the first listed opens.
@@ -225,7 +225,7 @@ Your app's own store implements `ViewsStore` over its API, a server checking eac
225
225
 
226
226
  ## Menus as data
227
227
 
228
- Each of a list's menus below hands you its default items as data, and draws the items your function hands back: drop a row, rename it, move it, add your own, or draw a row's inside yourself. The grid's "+ Add column" menu takes no function yet.
228
+ Each of a list's menus below hands you its default items as data, and draws the items your function hands back: drop a row, rename it, move it, add your own, or draw a row's inside yourself.
229
229
 
230
230
  ```tsx
231
231
  import { GridTable, type GridTableProps } from "viewkitjs/views/grid";
@@ -246,16 +246,31 @@ const menus: ListMenus<Deal> = {
246
246
  export function DealsGrid(grid: GridTableProps<Deal>) {
247
247
  return <GridTable {...grid} menus={menus} />;
248
248
  }
249
+
250
+ // Customize (`customize`, handed to `List`'s or the toolbar's `menus`): Group gone, a page of your own, a Layout toggle dropped.
251
+ const customize: ListMenus<Deal>["customize"] = (items, { page }) =>
252
+ page === "list"
253
+ ? menu.add(menu.drop(items, "group"), { key: "notes", label: "Notes", page: <p>Your notes on this view.</p> })
254
+ : page === "layout"
255
+ ? menu.drop(items, "toggle:verticalBorders")
256
+ : items;
257
+
258
+ // The filter editor (`filterEditor`): a rule's ⋮ without Convert to group, with a row of your own.
259
+ const filterEditor: ListMenus<Deal>["filterEditor"] = (items, ctx) =>
260
+ ctx.menu === "rule" ? menu.add(menu.drop(items, "convert"), { key: "explain", label: "Explain this rule", onSelect: () => console.info(ctx.field, ctx.path) }) : items;
249
261
  ```
250
262
 
251
- - `ListMenus` — every menu of a list as data: `ListMenus<Row>`, six functions, each optional. Each takes the menu's default items (`ViewsMenuItem[]`, every row keyed) and returns the items it shows. A menu with no function is as ViewKit draws it.
263
+ - `ListMenus` — every menu of a list as data: `ListMenus<Row>`, eleven functions, each optional. Each takes the menu's default items (`ViewsMenuItem[]`, or `ViewsCustomizeItem[]` for `customize`, every row keyed) and returns the items it shows. A menu with no function is as ViewKit draws it.
252
264
  - `column(items, { field, column })`: a column's header menu, handed the column (`ListColumn`) and its field (`undefined` for a column with none).
253
265
  - `row(items, { row })`: a row's menu, on a right-click and in its ⋯ tail, handed the row. Its items hold Open page (`row-open`, from `rowHref`) and Delete (`row-delete`, from `onRowDelete`, still asking your `confirm` port): drop `row-delete` for a row that can't be deleted, and your `RowMenu` draws neither of its own. It is asked as the menu opens (a right-click, the ⋯, the menu key), never for a row drawn or pressed, and may answer later: hand back a promise (`async (items, { row }) => …`, one request to your server) and it is asked once per opening, the menu holding one greyed row with your `loading` glyph, "Loading…" (`row-waiting`), and nothing the answer may take away, until it answers. An answer that a later opening has outrun is dropped; one that fails draws the grid's own rows. A host whose delete can be undone leaves out `onRowDelete` and adds its own destructive row, which asks nothing.
254
266
  - `group(items, { group })`: a group band's ⋯, handed the group (`ListGroup`).
267
+ - `addColumn(items, { columns })`: the grid's "+ Add column", handed every column of the list, shown or hidden (`ListColumnItem[]`, the grid's column list): each hidden column a row, a field with parts its own level beside it. A row you add runs its `onSelect` and closes the menu.
255
268
  - `view(items, { view })`: a view's menu, handed the view (`ViewsViewsListItem`): the rows a view's option hands (`menu`, Edit view… among them) and the menu a views list draws from the axis's `verbs` (`ViewsViewVerbs.menu`).
256
269
  - `add(items)`: New's items: your `addItems`, or with `onAdd` alone one row keyed `new` that runs it. New opens what it returns as a menu.
257
270
  - `more(items, { line })`: ⋯, the folded parts' rows, each keyed by its part. Each line folds into its own ⋯, so it is handed which: `"row"` or `"bar"` (the filter bar). A press on any row closes ⋯ first.
258
- - `List` takes `menus` whole and hands each part its own: `GridTable` (and `ListGrid`) takes `column`, `row` and `group` as `menus` ([`/grid`](./grid.md)), and `ReadyToolbar` and `ListToolbar` take `view`, `add` and `more` as `menus` ([`/panels/react`](./panels-react.md)).
271
+ - `customize(items, { page, form, layout })`: Customize's rows (VK-1062), each page's handed in turn: `page` is `"list"` (its sections, a list's per-field filters unless they fold behind Filter, where they aren't handed, and its toggles), `"layout"` (Layout's page: the layout's own settings, under the layout cards, which are your `layouts`) or `"columns"` (Columns' page: none of its own, as the columns are the view's, set by your columns' `hideable` and `fixed`; the rows you hand draw after the columns, before your field editor's rows). Its items are `ViewsCustomizeItem`s ([`/react`](./react.md)): a row keyed by one of Customize's own (below) is ViewKit's row, opening its page, its choices or its field as before, with your item's words, icon, value (`detail`), mark (`inForce`) and divider; its own `onSelect` and `checked` are set aside. A section's rows are always the item's `children`, so `menu.drop` and `menu.add` reach inside it; a section handed back with none draws nothing. Any other key is your row: `checked` with `onSelect` a check, `onSelect` an action (`destructive` drawn as danger), `children` a section of your own, and on the list `page` a page of your own, opened by its row, titled by its `label`, with Back (a function is handed Back, so the page can close itself); the page's place is told as `page:<key>` and held across a change of form. `disabled` draws a row that can't be used, saying `disabledReason`, else "Not available" (`views.panels.customize-unavailable`), and opens nothing. A page whose row you drop, disable or hand back as a section doesn't open, its layout button goes with Layout's row, and a screen whose row goes while it stands is the list again. `beside`, `keepOpen`, `href`, `render` and `shortcut` are set aside here. Layout's and Columns' rows are asked only while their page stands. An app's own `CustomizeBody` is handed the function as `items`; the older popover route (`ViewOptionsPopoverPanel`) hands none.
272
+ - `sortEditor(items, ctx)`, `filterEditor(items, ctx)`, `groupEditor(items, ctx)` (VK-1063): the editors' menus, wherever the toolbar draws them (its Sort and Filter panels, Customize's Sort, Filter and Group pages; the toolbar's Group has no panel of its own, so `groupEditor` reaches Customize's Group page). `ctx.menu` says which: the sort editor's `rule` (a rule's ⋯, on a phone and in the narrow form: a computer's rule has × and no ⋯) and `aside` (a set-aside rule's ⋯); the filter editor's `rule`, `aside` and `group` (a group's actions); the group editor's `settings` and `foot` (Remove grouping). The groups themselves (each group's row) are the list's values, not reshaped. `ctx` names a rule in your terms only, `field` across the three: the sort's key (on `aside`, the rule's stored `fieldKey`), or the filter's `fieldKey` with its `part` and `relation`, and a filter rule or group by its `path` in the filter (`[]` the whole filter, indices through `items` and a relation rule's `where.items`) (the `ViewsSortEditorItemsContext`, `ViewsFilterEditorItemsContext` and `ViewsGroupEditorItemsContext` of [`/react`](./react.md)). A row keyed by one of the menu's own (below) is ViewKit's row with your words and icon, its own `onSelect` set aside; `disabled` greys it, saying `disabledReason`. A default ViewKit doesn't offer this time (Put back while it doesn't fit) draws nothing. The filter's any/none/every is one item, `relation` (its label `views.panels.filter-relation-rows`, "Which related records"), its choices its `children` (`relation:any`, `relation:none`, `relation:every`; the choices' own `data-key` stays `any`, `none`, `every`): drop one, rename one, or hand back none to drop the choice. Any other key is your row: an action (`destructive` drawn as danger), a check (`checked` with `onSelect`) or a group of rows, drawn with the menu's own slot (`vk-sort-rule-action`, `vk-filter-rule-action`, `vk-filter-group-action`, the group editor's `vk-group-row`). No line stands first, last or twice in a row. `beside`, `keepOpen`, `href`, `render`, `shortcut` and `detail` are set aside here. An app with its own toolbar frame (`ToolbarSlotProvider`) can't hand these yet: draw a `SortBody` or `FilterBody` of your own that hands `CONTROLS`' its `items`.
273
+ - `List` takes `menus` whole and hands each part its own: `GridTable` (and `ListGrid`) takes `column`, `row`, `group` and `addColumn` as `menus` ([`/grid`](./grid.md)), and `ReadyToolbar` and `ListToolbar` take `view`, `add`, `more`, `customize`, `sortEditor`, `filterEditor` and `groupEditor` as `menus` ([`/panels/react`](./panels-react.md)).
259
274
  - A menu ViewKit doesn't open stays closed: ⋯ stands only while a part has folded, whatever `more` adds, and New stays a button while `add` hands back its one `new` row. A menu ViewKit opens stays openable: a function that returns `[]` opens an empty menu, so drop what you don't want rather than everything.
260
275
  - Each function is called as ViewKit draws (`view` on every toolbar render, the rest as their menus draw): keep it pure and cheap, and call no hooks in it. `row` alone may answer later, with a promise, asked once per opening.
261
276
  - `menu` — the four changes a menu function makes, each pure: it returns a new list and never changes the one it is handed. A key is found at any depth, a group's rows too. `drop`, `add` and `move` take any list of keyed rows, so they reshape the toolbar's parts too ([Parts as data](#parts-as-data)).
@@ -273,10 +288,15 @@ export function DealsGrid(grid: GridTableProps<Deal>) {
273
288
  Every default row's key is a public name: your function finds rows by it. A key that ends in a value is written here with that value as `<…>`.
274
289
 
275
290
  - A column's menu: `sort-asc`, `sort-desc`, and on a place column `sort-asc:<part>` and `sort-desc:<part>` under them; `sort-clear`; `group-by`, `ungroup`; `percent-display` and `percent-display:<display>`; `date-format` and `date-format:<style>`; `show-time`; `duration-format` and `duration-format:<style>`; `decimals` and `decimals:<decimals>` (`decimals:auto` the field's own); `currency` and `currency:<code>`; `colour:<value>`, under it `colour:<value>:auto` and `colour:<value>:<colour>`, and `colours-reset`; `move-left`, `move-right`; `hide-column`. Your `columnMenuItems` rows keep their keys.
291
+ - "+ Add column": `add:<id>` for each hidden column, `field:<id>` for a field with parts (its level, holding its own `add:<id>` rows), and `all-shown`, the one greyed row when nothing is hidden.
276
292
  - A group band's ⋯: `group-select`; `group-sort` and `group-sort:<value>`; `group-show` and `group-show:<part>`; `group-hide`.
277
293
  - A row's menu: `copy`, `cut`, `paste`, `clear`; `row-select`; `action:<id>` for each of a name column's actions. Your `contextMenu` rows keep their keys, or are keyed by their words. With `row`, also `row-open` (first) and `row-delete` (last), and `row-waiting`, the greyed row drawn while a promise from `row` waits (never handed to `row`).
278
294
  - A view's menu, from the axis's verbs: `rename`, `edit`, `private`, `save`, `reset`, `save-new`, `copy-link`, `favorite`, `duplicate`, `delete`; on a phone `save`, `reset` and `save-new` are under `unsaved`, and `private` and `edit` under `this-view`. A view's own rows keep their keys, `edit-view` (Edit view…) at the head of the open view's.
279
295
  - New: your `addItems`' keys, or `new`.
296
+ - Customize (`customize`): on its list `layout`, `columns`, `filter`, `sort`, `group`; a per-field filter `field:<key>` and a section of them `fields:<section>` (not handed while they fold behind Filter); a toggle `toggle:<key>` (`toggle:show_counts`; Show counts from the view, with no toggles handed, `toggle:counts`) and a section of toggles `toggles:<section>`. On Layout's page a pick-one setting `choice:<key>`, a toggle `toggle:<key>` and a section `toggles:<section>` (with no settings handed, a table's `toggle:freeze` and `toggle:wrap`, from the kit's own `Customize` alone). Columns' page has none. A section's key is its heading's words, so a translated heading is another key, and one heading names one section (a heading among the filter fields and again after Group shares one key: handed any function, the second goes). A `fields:` or `toggles:` key handed back with no rows draws nothing. Your rows draw as `data-slot="vk-customize-row"`, a page of yours as `vk-customize-page`, each with `data-key` its key; ViewKit's rows keep their own names (`vk-customize-section`, `-field`, `-toggle`, `-choice`).
297
+ - The sort editor (`sortEditor`): a rule's ⋯ `delete`; a set-aside rule's `why`, `put-back`, `delete`.
298
+ - The filter editor (`filterEditor`): a rule's ⋮ `convert`, `relation` (with `relation:any`, `relation:none`, `relation:every`), `delete`; a set-aside rule's `why`, `put-back`, `delete`; a group's `exclude`.
299
+ - The group editor (`groupEditor`): its settings `field`, `order`, `direction`, `step`, `empty`; its foot `remove`.
280
300
  - ⋯: the folded parts' keys: `options`, `sort`, `filter`, `filters`, `filter-add`, `quick`.
281
301
 
282
302
  Every toolbar button names itself to your `ToolbarButton` by the same keys (`part`, VK-984): a button is named after the
@@ -35,7 +35,7 @@ The row of views over a list, and any row of pills: each pill is your `Pill` ato
35
35
  - `ViewPicker` — the same axis as one chip naming the active view, opening your `ViewsListBody` (`CONTROLS.ViewsListBody` is ViewKit's own) in your `Popover` at the chip; on a phone (in a `Toolbar`, its phone form; elsewhere your provider's `desktopQuery`) in your `Sheet` (`snap: "auto"`, titled `views.panels.views-list`). The body is handed the views as data, a pick or an order is written once it fits the axis, its `onDone` closes the list, and on a phone it gets the ✕ (and Back on a step) as its `actions` only where your sheet's head doesn't draw it, and `onStepChange`, whose step's title and Back the sheet shows; the axis's `verbs`, where it hands them, reach it as they are ([the components map](../contract.md#the-components-map)). With no view yet it draws only the axis's +, which opens New view's Modal through your `ViewMenu` where the axis hands `verbs` and your map draws one, as the row's + does, and otherwise calls the axis's `onCreate`.
36
36
  - `ViewPickerRow` — one view as a row of a list, with the active view's `⋮`; handed `viewMenu`, every row's `⋮` opens the view's whole menu through your `ViewMenu`.
37
37
  - `ViewCreatePill` — the + that creates a view.
38
- - `ViewAxes` — an axis or several on one row: one axis at the row's size folds, peer axes share one rail, each in its own track. `folded` is handed on to the one axis's `FoldingViewRow`.
38
+ - `ViewAxes` — an axis or several on one row: one axis at the row's size folds, peer axes share one rail, each in its own track. `folded` is handed on to the one axis's `FoldingViewRow`. The axis that grows closes the row with its +, which, as every views + does (the row's, the picker's), opens New view through your `ViewMenu` where the axis hands `verbs`, else calls its `onCreate`.
39
39
 
40
40
  ## The Sort panel
41
41
 
@@ -155,12 +155,12 @@ Options, Sort and Filter each open their panel from their own button, and each t
155
155
  - `ToolbarPanelState` — what `useToolbarPanelState` returns.
156
156
  - `FilterPanelContent` — the Filter panel standing alone, for a host of your own: the filter list at its root (titled `views.panels.filter`, no back arrow) and the pages it opens, with `filters`, `timeScopeConfig`, `dateRangeConfigs`, `page`, `onPageChange`, `onClose` and `fill`.
157
157
  - `ToolbarSave` — Clear and Save, at the end of a filter bar while the list differs (`data-slot="vk-toolbar-save"`): takes `view` (a `CollectionViewState`: Clear is its `onReset`, Save its `onPublish`, shown only where `canPublish`, both waiting while `pending`, nothing while `changes` is 0 unless `layered`, the reader's own layer holding something, when Clear stands alone to empty it), or with no shared view `onClear`, Clear alone taking the list back to its default; nothing when neither has anything to do. Clear has no ground and Save wears the field's look, each your `Button`.
158
- - `ReadyToolbar` — the toolbar for an app that doesn't arrange its own (`ReadyToolbarProps`): the builder's input (`settings`, `layer`, `columns`, `onChange`, `onLayerChange` and the rest of `SettingsPanelsInput`), and optionally `views`, `viewsLayout`, `onAdd` or `addItems` and `addLabel`, `view`, `toggles`, `fieldEditor`, `searchPlaceholder`, `searching` (handed to its search), `hosts` (`{ options, sort, filter, quick }`), `customizeIn` (`"popover"` by default; `"pane"`: on a computer Customize opens in your map's `Pane`, `CONTROLS.Pane`, at the right edge of `paneBox`, under the toolbar and as tall as the list, the list in use beside it; on a phone its Sheet either way; a map with no `Pane`, or your own `hosts.options`, keeps theirs) and `paneBox` (the list's box the Pane stands in: positioned, holding the grid under the toolbar, never scrolling itself; null until it is on the page; not handed, the popover), `quickFilters` (a `QuickFiltersConfig`: handed, the quick filters' button stands on the row's end before the search, in the row arrangement before Options, folding into ⋯ as the row narrows; its counts follow the toolbar's Show counts unless the config carries its own `showCounts`), `quickFiltersOpen` with `onQuickFiltersOpenChange` (the quick filters' panel open, held by you, so a `QuickFiltersReminder` at your list's foot can open it; absent, the toolbar holds it), `phone`, `narrow`, `severalSorts` (true by default: the sort holds up to 3 rules, the row's Sort opening the sort editor on them, or in the old form the sort pill on the bar; `false` keeps Sort's one rule, which opens its own list whether or not a sort stands), `addAfter` (true by default: the + after the sort pill; `false` draws none, and the pill's editor, or your `SortBody`, has Add sort at its foot, as `ToolbarSortPill`'s), `filterGroups` (true by default: and/or groups, each filter on the filter bar on a computer, in the row arrangement each advanced filter's pill after Filter and Convert to advanced filter on a filter's page, and on a phone Filter opening the filter editor on every rule; `false` keeps Filter, counting what is applied, in either arrangement), `arrangement` (`"kit"` by default, or `"row"`), `sortFilter` (`"right"` by default, or `"bar"`), `bar` (`"added"` by default, or `"always"`: with Sort and Filter on the row's right, the bar then always shows, its empty Sort and Filter included), `viewName`, `onRenameView`, `onCopyLink`, `onExport` and `exportCount` (handed on to Customize, as `ToolbarOptions` takes them), `menus` (`ToolbarMenus`: a view's menu, New's and ⋯ as data), `toolbarParts` (`ToolbarParts`: where each part stands, every form's parts handed as data and drawn as you hand them back, [`/list`'s Parts as data](./list.md#parts-as-data)), `overflow` (`ToolbarOverflow`: ⋯ as you draw it where the parts don't fit) and `className`. It calls the builder and draws its parts in the kit's arrangement (`Toolbar`'s `fold`). By default, on a computer, one row at rest: the views with Customize beside them, then on its right Sort and Filter with their words, the quick filters' button and the search, each its icon alone, and New. The toolbar shows only what differs from the saved view (the open view's `saved`, or with no view the list's defaults; a view handed without `saved` keeps the older lighting, lit while a sort stands, the bar for every filter). Sort holds the sort (`ToolbarSortPill`'s `row`): lit while it differs, counted from two, it opens the sort editor to change or remove the rules, Add sort at its foot; with none, the fields. Filter (`ToolbarFilterAdd`, `opens="filters"`), lit while the filter differs, opens the view's filters, editable, with Add filter under them, as Sort opens its rules (with no filter, the editor's fields); the bar's + adds one filter to the bar. Under the row the filter bar, a step smaller, holds what changed: it comes while the sort or the filter differs, a filter is held (or one of its parts is open), or a second axis of views stands there, holding the changed sort ("Sorted by", a list with one sort's included: `ToolbarSort`'s `bar`), the filters that aren't the saved view's own (an edited one as edited; each as below, + after the last, no empty Filter) and Clear and Save at its end. Something taken away (a saved rule removed) brings Clear and Save alone. Customize's foot holds Reset and Save too while anything differs, the bar standing or not (on a shared view Customize also carries its dot), as on a phone. Each of the row's Sort and Filter is a panel of its own, apart from the bar's, so a press opens one list. `sortFilter: "bar"` with `bar: "always"` draws the kit arrangement's old form: the row, the views with Customize beside them and the search and New at its end, and under it the filter bar, always shown, a step smaller: the sort pill first, a separator, the filters (`ToolbarFilters`: each filter as its four joined parts, each advanced filter's pill, + after the last; while there is none, Filter, an empty place; the rule held until whole is held by the toolbar, so the bar counts it as it folds; with `filterGroups` false, Filter as before, with what is applied counted), and at its end Clear and Save (`ToolbarSave`) while the list differs: on a shared view (`view`) Clear takes it back and Save, where `canPublish`, keeps it for everyone; with no shared view, Clear alone takes the list back to its default (nothing filtered, the default sort, no group: so a list that starts grouped or filtered shows Clear at once); Customize's foot then draws neither. A row with no room folds as the kit's does (words to icons, the view tabs into "+N", the bar's last filters into "+N filters", then into ⋯: by default Customize and the row's Sort and Filter, whatever is set; in the old form Customize, and the sort and Filter while no filter stands), with no narrow form. On a phone one line in either form (the views, the sort, Filter, the quick filters' button when handed, Customize, then the search, which opens across the line), Clear and Save in Customize's foot (`views.panels.view-clear`, `views.panels.view-save`; with no shared view, Clear alone), and New a round + at the list's foot, lifted by `--vk-toolbar-foot`. `arrangement: "row"` draws the order of 12 Nov instead: the views on the left; search, sort, filter, options and new on the right, the narrow form under 700px, and Reset and Save for everyone in Customize's foot. Every change comes back as a `ListSettingsChange` or a layer patch: its search writes the settings' search, its ✕s clear in one change (`settingsCleared`), and the active view's menu gains "Edit view…" (`withEditView`), which opens Customize. It is a `ListRoot` around `ListToolbar` ([`/list`](./list.md)): its panels' state is held in that root, above its frame, so a change of form keeps a panel open on its page, in a sheet once the form is the phone's. Show counts is the view's: read from `settings.showCounts` for the views row and the quick filters, absent meaning on, it joins Customize's toggles where the views carry counts and is written back through `onChange`. Group steps aside on a board (`groupShown`).
158
+ - `ReadyToolbar` — the toolbar for an app that doesn't arrange its own (`ReadyToolbarProps`): the builder's input (`settings`, `layer`, `columns`, `onChange`, `onLayerChange` and the rest of `SettingsPanelsInput`), and optionally `views`, `viewsLayout`, `onAdd` or `addItems` and `addLabel`, `view`, `toggles`, `fieldEditor`, `searchPlaceholder`, `searching` (handed to its search), `hosts` (`{ options, sort, filter, quick }`), `customizeIn` (`"popover"` by default; `"pane"`: on a computer Customize opens in your map's `Pane`, `CONTROLS.Pane`, at the right edge of `paneBox`, under the toolbar and as tall as the list, the list in use beside it; on a phone its Sheet either way; a map with no `Pane`, or your own `hosts.options`, keeps theirs) and `paneBox` (the list's box the Pane stands in: positioned, holding the grid under the toolbar, never scrolling itself; null until it is on the page; not handed, the popover), `quickFilters` (a `QuickFiltersConfig`: handed, the quick filters' button stands on the row's end before the search, in the row arrangement before Options, folding into ⋯ as the row narrows; its counts follow the toolbar's Show counts unless the config carries its own `showCounts`), `quickFiltersOpen` with `onQuickFiltersOpenChange` (the quick filters' panel open, held by you, so a `QuickFiltersReminder` at your list's foot can open it; absent, the toolbar holds it), `phone`, `narrow`, `severalSorts` (true by default: the sort holds up to 3 rules, the row's Sort opening the sort editor on them, or in the old form the sort pill on the bar; `false` keeps Sort's one rule, which opens its own list whether or not a sort stands), `addAfter` (true by default: the + after the sort pill; `false` draws none, and the pill's editor, or your `SortBody`, has Add sort at its foot, as `ToolbarSortPill`'s), `filterGroups` (true by default: and/or groups, each filter on the filter bar on a computer, in the row arrangement each advanced filter's pill after Filter and Convert to advanced filter on a filter's page, and on a phone Filter opening the filter editor on every rule; `false` keeps Filter, counting what is applied, in either arrangement), `arrangement` (`"kit"` by default, or `"row"`), `sortFilter` (`"right"` by default, or `"bar"`), `bar` (`"added"` by default, or `"always"`: with Sort and Filter on the row's right, the bar then always shows, its empty Sort and Filter included), `viewName`, `onRenameView`, `onCopyLink`, `onExport` and `exportCount` (handed on to Customize, as `ToolbarOptions` takes them), `menus` (`ToolbarMenus`: a view's menu, New's, ⋯, Customize's rows and the sort, filter and group editors' menus as data), `toolbarParts` (`ToolbarParts`: where each part stands, every form's parts handed as data and drawn as you hand them back, [`/list`'s Parts as data](./list.md#parts-as-data)), `overflow` (`ToolbarOverflow`: ⋯ as you draw it where the parts don't fit) and `className`. It calls the builder and draws its parts in the kit's arrangement (`Toolbar`'s `fold`). By default, on a computer, one row at rest: the views with Customize beside them, then on its right Sort and Filter with their words, the quick filters' button and the search, each its icon alone, and New. The toolbar shows only what differs from the saved view (the open view's `saved`, or with no view the list's defaults; a view handed without `saved` keeps the older lighting, lit while a sort stands, the bar for every filter). Sort holds the sort (`ToolbarSortPill`'s `row`): lit while it differs, counted from two, it opens the sort editor to change or remove the rules, Add sort at its foot; with none, the fields. Filter (`ToolbarFilterAdd`, `opens="filters"`), lit while the filter differs, opens the view's filters, editable, with Add filter under them, as Sort opens its rules (with no filter, the editor's fields); the bar's + adds one filter to the bar. Under the row the filter bar, a step smaller, holds what changed: it comes while the sort or the filter differs, a filter is held (or one of its parts is open), or a second axis of views stands there, holding the changed sort ("Sorted by", a list with one sort's included: `ToolbarSort`'s `bar`), the filters that aren't the saved view's own (an edited one as edited; each as below, + after the last, no empty Filter) and Clear and Save at its end. Something taken away (a saved rule removed) brings Clear and Save alone. Customize's foot holds Reset and Save too while anything differs, the bar standing or not (on a shared view Customize also carries its dot), as on a phone. Each of the row's Sort and Filter is a panel of its own, apart from the bar's, so a press opens one list. `sortFilter: "bar"` with `bar: "always"` draws the kit arrangement's old form: the row, the views with Customize beside them and the search and New at its end, and under it the filter bar, always shown, a step smaller: the sort pill first, a separator, the filters (`ToolbarFilters`: each filter as its four joined parts, each advanced filter's pill, + after the last; while there is none, Filter, an empty place; the rule held until whole is held by the toolbar, so the bar counts it as it folds; with `filterGroups` false, Filter as before, with what is applied counted), and at its end Clear and Save (`ToolbarSave`) while the list differs: on a shared view (`view`) Clear takes it back and Save, where `canPublish`, keeps it for everyone; with no shared view, Clear alone takes the list back to its default (nothing filtered, the default sort, no group: so a list that starts grouped or filtered shows Clear at once); Customize's foot then draws neither. A row with no room folds as the kit's does (words to icons, the view tabs into "+N", the bar's last filters into "+N filters", then into ⋯: by default Customize and the row's Sort and Filter, whatever is set; in the old form Customize, and the sort and Filter while no filter stands), with no narrow form. On a phone one line in either form (the views, the sort, Filter, the quick filters' button when handed, Customize, then the search, which opens across the line), Clear and Save in Customize's foot (`views.panels.view-clear`, `views.panels.view-save`; with no shared view, Clear alone), and New a round + at the list's foot, lifted by `--vk-toolbar-foot`. `arrangement: "row"` draws the order of 12 Nov instead: the views on the left; search, sort, filter, options and new on the right, the narrow form under 700px, and Reset and Save for everyone in Customize's foot. Every change comes back as a `ListSettingsChange` or a layer patch: its search writes the settings' search, its ✕s clear in one change (`settingsCleared`), and the active view's menu gains "Edit view…" (`withEditView`), which opens Customize. It is a `ListRoot` around `ListToolbar` ([`/list`](./list.md)): its panels' state is held in that root, above its frame, so a change of form keeps a panel open on its page, in a sheet once the form is the phone's. Show counts is the view's: read from `settings.showCounts` for the views row and the quick filters, absent meaning on, it joins Customize's toggles where the views carry counts and is written back through `onChange`. Group steps aside on a board (`groupShown`).
159
159
  - `ReadyToolbarProps` — what `ReadyToolbar` takes.
160
160
  - `ToolbarParts` — `ReadyToolbar`'s and `ListToolbar`'s `toolbarParts`: `(parts: ToolbarPartPlace[], ctx: ToolbarPartsContext) => ToolbarPartPlace[]`, handed the form's parts in the order they are placed and handing back the parts drawn, in their order. The rules and an example are [`/list`'s Parts as data](./list.md#parts-as-data).
161
161
  - `ToolbarPartPlace` — a part's place: `{ key, line, side, words, node?, className?, button?, panel? }`: its public key, its line (`"row"`, `"bar"`, or `"foot"`, New's place at a kit phone list's foot), its side (`"start"` or `"end"`), its words (`"both"` or `"icon"`), `node` for a part of your own under a key of your own, and its look: `className`, put on every toolbar button the part draws, and `button`, your own button drawn for each of them in place of your `ToolbarButton`, handed the same props (`ref` included: put it on your button); and `panel` (`ToolbarPanelPlace`), where what it opens hangs at its button. [`/list`'s Parts as data](./list.md#parts-as-data) lists each place's buttons and what stays fixed.
162
162
  - `ToolbarPartsContext` — which form the parts are for: `{ arrangement, phone }` (`"kit"` or `"row"`, and whether it is a phone's).
163
163
  - `ToolbarMore` — ⋯ as data, `Toolbar`'s `more` and `ToolbarMenus`' `more`: `(items, { line }) => items`.
164
164
  - `ToolbarOverflow` — ⋯ as you draw it, `Toolbar`'s, `ReadyToolbar`'s and `ListToolbar`'s `overflow`, as a `toolbarParts` place's look is handed: `icon` (your glyph over your `icons.more`), `className` (put on it) and `button` (your own button in place of your `ToolbarButton`, handed the very props it would get, `part: "more"` and `ref` included: put `ref` on your button, so ⋯'s menu hangs at it). Absent, ⋯ is your `ToolbarButton` with `icons.more`, as before.
165
- - `ToolbarMenus` — the toolbar's menus as data, `ReadyToolbar`'s and `ListToolbar`'s `menus`: `view(items, { view })` (a view's menu: an option's own rows, Edit view… among them, and the menu a views list draws from the axis's verbs), `add(items)` (New's items: `addItems`, or with `onAdd` alone one row keyed `new`; New opens what it returns as a menu) and `more(items, { line })` (⋯'s rows, each keyed by its part, on the row's line or the filter bar's). The helpers, the keys and the rules are [`/list`'s Menus as data](./list.md#menus-as-data).
165
+ - `ToolbarMenus` — the toolbar's menus as data, `ReadyToolbar`'s and `ListToolbar`'s `menus`: `view(items, { view })` (a view's menu: an option's own rows, Edit view… among them, and the menu a views list draws from the axis's verbs), `add(items)` (New's items: `addItems`, or with `onAdd` alone one row keyed `new`; New opens what it returns as a menu) `more(items, { line })` (⋯'s rows, each keyed by its part, on the row's line or the filter bar's) `customize(items, { page, form, layout })` (Customize's rows: its list's, Layout's and Columns', a `ViewsCustomizeItems`, VK-1062; the older popover route, `ViewOptionsPopoverPanel`, hands none), and `sortEditor`, `filterEditor` and `groupEditor` (the editors' menus, `ViewsSortEditorItems`, `ViewsFilterEditorItems`, `ViewsGroupEditorItems`, VK-1063, wherever this toolbar draws the editors). The helpers, the keys and the rules are [`/list`'s Menus as data](./list.md#menus-as-data).
166
166
  - `useListSettingsState` — a list's settings and layer held in memory, for an app that keeps none yet (a proof page, a test): `{ settings, layer? }` in, `{ settings, layer, onChange, onLayerChange }` out, ready to spread into `ReadyToolbar` beside its `columns`, or into a `ListRoot` ([`/list`](./list.md)): it is the root's memory mode. Each change is applied to the latest settings (`applySettingsChange`), each patch merged into the latest layer.
@@ -22,7 +22,7 @@ Import from `viewkitjs/views/panels` for what a list's panels read and say: the
22
22
  - `TimeScopeConfig` — a time range's choices, with an optional custom range.
23
23
  - `DateRangeConfig` — a date range a list filters by: `key`, `label`, `value` (`DateRangeValue`) and `onChange`.
24
24
  - `DateRangeValue` — a range's two ends, each a `Date` or `null`.
25
- - `ActivePanel` — which drill-in is open: a filter (and a Where field inside a relation's), group, sort, time scope, a date range, a toggle, layout, the Filter list, Columns, one column, or Group's by, sort and date-by pages.
25
+ - `ActivePanel` — which drill-in is open: a filter (and a Where field inside a relation's), group, sort, time scope, a date range, a toggle, layout, the Filter list, Columns, one column, Group's by, sort and date-by pages, or a Customize page of the app's own (`{ type: "page", key }`, `menus.customize`, VK-1062).
26
26
  - `ViewOptionInputs` — everything a Customize panel is handed: filters, sort, group, time scope, date ranges, toggles and layout; with and/or groups, the builder's `filterTree` too.
27
27
  - `CollectionViewState` — the view on screen, shared or the person's own (`own`): how far what this person sees drifted from it (`changes`, `stale`), whether they may publish, a write in flight, the two verbs that settle the drift, and `saved`, the view's settings as saved, what each Customize page's own Reset goes back to (absent, its pages carry none).
28
28
  - `CollectionExportCsv` — a list's export, when it offers one: `count`, the rows it would take, which the Export CSV row shows, and `run`, which builds and downloads the file and says how it went.
@@ -59,12 +59,14 @@ The primitives your app hands in, modelled on Base UI's shapes: a controlled `op
59
59
  - `ViewsTextBodyProps` — a whole body for a field typed as one string your app draws: `label`, `kind` (`text`, `url`, `domain`, `email`, `phone` or `rich_text`), `paragraph`, `value` and `onValueChange` (the whole text, every change as it is made), `onDone` (closes as Enter does), `check` (a value's reason, or null), `region` (a phone's country), `typed`, `autoFocus`, `form` (`phone`: draw no ✕, ✓ or Cancel of your own) and `place` (`cell` in a grid cell, `row` in a field row, where it stands in the row's flow; absent, `cell`), and, in the phone's sheet, `onStepChange` (a `ViewsBodyStep` while it stands on a step of its own, `null` once back). The editor keeps the draft, Tab, Escape, ⌘ or Ctrl Enter, the close's tidy, the write check, the save and the phone's ✕ and ✓.
60
60
  - `ViewsNumberBodyProps` — a whole body for a number, money or a percent your app draws: `label`, `kind` (`number`, `money` or `percent`), `value` (a number, `null` empty, `NaN` unreadable) and `onValueChange` (the number and, when it is one of `units`, the unit; every change as it is made), `unit` and `units`, `onDone` (closes as Enter does), `check` (a value's reason, or null), `decimals`, `min`, `max`, `locale`, `decimal`, `empty`, `align`, `typed`, `autoFocus`, `form` (`phone`: draw no ✕, ✓ or Cancel of your own) and, in the phone's sheet, `onStepChange` (a step of its own, money's currencies). The editor keeps the draft, the rounding, Tab, Escape, ⌘ or Ctrl Enter, the write check, the save and the phone's ✕ and ✓.
61
61
  - `ViewsSortBodyProps` — the sort editor's whole body your app draws: `label`, `options` (the fields it sorts by, each its `value`, `label` and `defaultDir`, and, as the grid's header marks its column, its field's `type`, its `part` and the header's `glyph`), `rules` (in order, the first sorting first), `setAside` (the set-aside sorts, `[]` when none), `max`, `form`, `addSort` (on a computer, Add sort at its foot), `onStepChange` (on a phone: a step of your body's own, its title and Back, `null` once back), `onRulesChange` (the whole rules and, when handed, the set-aside sorts kept; every change as it is made; a list that breaks the rules writes nothing), `onDone` (what holds it closes) and, on a phone where the sheet's head doesn't draw them, `actions` (the ✕, taking the rules back to what they were as it opened, and ✓). ViewKit keeps the check, the latest rules between renders, the close on the last rule and what ✕ takes back to.
62
+ - Its `items` (`ViewsSortEditorItems`, from `menus.sortEditor`, VK-1063): its menus as data, `(items, ctx) => items`, `ctx` a `ViewsSortEditorItemsContext`: `{ menu: "rule", field, index }` (a rule's ⋯; `field` the sort's key) or `{ menu: "aside", field }` (a set-aside rule's ⋯; `field` its stored `fieldKey`), with `form`. `CONTROLS.SortBody` draws what it hands back; a body of your own may honour it.
62
63
  - `ViewsQuickFiltersBodyProps` — the quick filters' whole body your app draws: `label`, `fields` (each its `key`, `label`, `searchPlaceholder`, its `options` as the quick filter field hands them (each value's mark is its option's), and `values` in the order to show them, each value its key, its words, its `count` where counts show and whether it is `held`; a held value no count lists is among them, drawn from the hold and worded by the config's `heldLabels` else its key; after the fields offered, each other field holding a value, its held values alone), `hold` (each held field once, its values), `several`, `showCounts`, `form`, `onHoldChange` (the whole hold, every change as it is made; one that holds a field twice, more than one value where `several` is false, or a value added on a field the strip doesn't offer writes nothing), `onDone` (what holds it closes) and, on a phone where the sheet's head doesn't draw it, `actions` (the ✕, closing it).
63
64
  - `ViewsFilterBodyProps` — the filter editor's whole body your app draws: `label`, `fields` (the fields a rule may name, `ViewsFilterBodyField`s, each column the list can't filter among them in its place, greyed by its `disabled`), `filter` (the level it is open on, a `FilterGroup`: an advanced filter's group on a computer, the whole filter on a phone), `levels` (how deep its rules may stand, its own the first), `excludable` (whether it may be `not`), `relation` (where the level is a relation's where edited in place: its field key, words and quantifier, and `gone`, why in words, where the list no longer lists the relation: there a level that adds or changes a rule writes nothing), `form`, `onFilterChange` (the whole level and, at a relation, its quantifier; every change as it is made; a level that breaks the rules writes nothing; an empty one on a computer takes its advanced filter away), `ruleValue` (a rule's value in ViewKit's own body for its type, each change handed back as the rule), `onDone` (what holds it closes) and, on a phone where the sheet's head doesn't draw them, `actions` (the ✕, taking the filter back to what it was as it opened, and ✓). ViewKit keeps the check, the Or top's wrap, the pills' keys and what ✕ takes back to.
65
+ - Its `items` (`ViewsFilterEditorItems`, from `menus.filterEditor`, VK-1063): its menus as data, `ctx` a `ViewsFilterEditorItemsContext`: `{ menu: "rule" | "aside", field, part?, relation?, path }` (a rule's ⋮ or a set-aside rule's: its `fieldKey`, its part, the relation it stands under) or `{ menu: "group", path }` (a group's actions), each with its `path` in the filter the body is handed (indices through `items` and a relation rule's `where.items`; the whole filter `[]`), with `form`.
64
66
  - `ViewsFilterBodyField` — a field a filter body's rule may name: `key`, `label`, `fieldKey`, `part`, `type` (its value type, which says its ways), `far` (a relation's fields one level in), `integer` (`true` on a number field that holds whole numbers only: its box takes whole numbers) and `disabled` (on a column the list can't filter, why in words: draw it greyed and never name it in a rule).
65
- - `ViewsFieldsBodyProps` — the field list's whole body your app draws: `purpose` (`sort` or `filter`), `label`, `search` (its search's words), `fields` (each a `ViewsFieldsBodyField`), `own` (the field being changed; absent where a pick adds), `form`, `onPick` (the key picked, and a far field's key for a far field; a key not handed, or handed `disabled`, writes nothing) and `onDone` (what holds it closes, or on a phone the page turns back).
67
+ - `ViewsFieldsBodyProps` — the field list's whole body your app draws: `purpose` (`sort` or `filter`), `label`, `search` (its search's words), `fields` (each a `ViewsFieldsBodyField`), `own` (the field being changed; absent where a pick adds), `ownRelation` (for a rule on a related record's field, the relation `own` stands under, its key as `onPick` hands it back), `form`, `onPick` (the key picked, and a far field's key for a far field; a key not handed, or handed `disabled`, writes nothing) and `onDone` (what holds it closes, or on a phone the page turns back).
66
68
  - `ViewsFieldsBodyField` — a field as the field list's body is handed it: `key`, `label`, `type` and `part` (its field's type and the part it reads, as the grid's header reads them), `glyph` (its column's glyph, drawn as the header draws it), `disabled` (why it can't be picked) and, for a filter's relation, `far` (its far fields, one level in).
67
- - `ViewsFilterPartBodyProps` — a filter rule's way or value your app draws: `part` (`way` or `value`), `label`, `rule` (the rule as data), `field` (the field it names, a `ViewsFilterBodyField` with no `far`), `ways` (each its operator and its words), `own` (ViewKit's own value body; null at `way`), `form`, `onRuleChange` (the rule with its new way, written as ViewKit's own writes one, or its new value; another field or part, a way its field doesn't offer or a value its way can't hold writes nothing) and `onDone` (what holds it closes).
69
+ - `ViewsFilterPartBodyProps` — a filter rule's way or value your app draws: `part` (`way` or `value`), `label`, `rule` (the rule as data), `field` (the field it names, a `ViewsFilterBodyField` with no `far`), `relation` (for a far rule, the relation's field key it stands under, as `ruleValue` hands it), `ways` (each its operator and its words), `own` (ViewKit's own value body; null at `way`), `form`, `onRuleChange` (the rule with its new way, written as ViewKit's own writes one, or its new value; another field or part, a way its field doesn't offer or a value its way can't hold writes nothing) and `onDone` (what holds it closes).
68
70
  - `ViewsSearchFieldProps` — the toolbar's search box your app draws: `value`, `onChange` (every keystroke), `placeholder`, `label` (its name to a screen reader), `searching` and `searchingLabel` (draw a spinner where your glass is, the box still usable), `onClear` (empties the search, and closes it where `closes`), `clearLabel` (your clear's name: "Close search" where it closes, "Clear" where it only clears), `closes` (opened from its button: your clear stands while it is open, empty or not; filling its line: show it only with a value), `form` (`computer` or `phone`) and `fill` (it fills its line).
69
71
  - `ViewsViewsListBodyProps` — the views list's whole body your app draws: `label`, `views` (each a `ViewsViewsListItem`), `value` (the view in use), `form`, `onViewChange` (a view picked; written when it is one of `views`; it closes nothing), `onCreate` and `createLabel` where the axis grows (what holds it closes first), `onReorder` and `canDrag` where the axis reorders (one whole block, shared or the reader's own, each once; any other order writes nothing), `onDone` (what holds it closes), on a phone where the sheet's head doesn't draw it `actions` (the ✕, and Back while the body stands on a step), on a computer `onHold` (while true, a press outside and Escape close nothing: the body asks outside the list), on a phone `onStepChange` (the body stands on a step of its own: the sheet shows its title and Back), and, where the axis hands them, `verbs` (a view's whole menu's data, `ViewsViewVerbs`).
70
72
  - `ViewsViewsListItem` — one view as the views list's body is handed it: `value`, `label`, `icon`, `count` (absent while counts are hidden), `private`, `menu` (the view's own verbs), and for a view's whole menu `layout`, `changed`, `favorite` and `readOnly` (nothing that changes it).
@@ -75,11 +77,21 @@ The primitives your app hands in, modelled on Base UI's shapes: a controlled `op
75
77
  - `ViewsViewLayout` — a layout a new view can take: `id`, `name`, `icon` (your `AppIcon`'s name), `line`, and `columns` where it asks which field makes its columns.
76
78
  - `ViewsViewRecord` — a view as a restore hands it back: `id`, `name`, `layout`, and `private`, `favorite`, `changed`, `count` where it has them.
77
79
  - `ViewsGroupBodyProps` — the group editor's whole body your app draws: `label`, `dimensions` (each a `ViewsGroupDimension`), `group` (a `ViewsGroupValue`), `manualOrder` (your own order may be picked), `form`, `onGroupChange` (the whole group, every change as it is made; one write for each: a new Group by, order or date step alone, else Hide empty groups, else the groups; a new Group by keeps the order and step handed with it only where the new field offers them; a value that changes two at once, names a field the list doesn't offer, or names an order or step the field grouped by doesn't offer writes nothing), `onDone` (inside Customize, back to its list), `actions` (none inside Customize, whose head holds the ✕) and `onStepChange` (a level of the body's own, Group by's fields or an order's choices, whose name and Back Customize's head shows).
80
+ - Its `items` (`ViewsGroupEditorItems`, from `menus.groupEditor`, VK-1063): its rows as data, `ctx` a `ViewsGroupEditorItemsContext`: `{ menu: "settings", field? }` (Group by, Order, Direction, Date step, Hide empty groups; `field` the field grouped by) or `{ menu: "foot" }` (Remove grouping), with `form`.
81
+ - `ViewsSortEditorItems` — the sort editor's menus reshaped (`menus.sortEditor`, VK-1063): `(items: ViewsMenuItem[], ctx: ViewsSortEditorItemsContext) => ViewsMenuItem[]`.
82
+ - `ViewsSortEditorItemsContext` — which of the sort editor's menus: `{ menu: "rule", field, index }` or `{ menu: "aside", field }`, with `form`.
83
+ - `ViewsFilterEditorItems` — the filter editor's menus reshaped (`menus.filterEditor`): `(items, ctx: ViewsFilterEditorItemsContext) => items`.
84
+ - `ViewsFilterEditorItemsContext` — which of the filter editor's menus: `{ menu: "rule" | "aside", field, part?, relation?, path }` or `{ menu: "group", path }`, with `form`.
85
+ - `ViewsGroupEditorItems` — the group editor's rows reshaped (`menus.groupEditor`): `(items, ctx: ViewsGroupEditorItemsContext) => items`.
86
+ - `ViewsGroupEditorItemsContext` — which of the group editor's rows: `{ menu: "settings", field? }` or `{ menu: "foot" }`, with `form`.
78
87
  - `ViewsGroupDimension` — a field a list can be grouped by: `value`, `label`, `orderOptions` (each its mode, words and `defaultDir`), `defaultOrder`, and a date's `granularities` with `defaultGranularity`.
79
88
  - `ViewsGroupValue` — a list's group as one value: `value` (the field grouped by, or `none`), `order` (the active field's `mode` and `dir`), `granularity`, `hideEmpty` and `groups` (each a `ViewsGroupEntry`, in the order the list shows them).
80
89
  - `ViewsGroupEntry` — one group: `key`, `label`, `empty`, `hidden`, and its `count` where the list counts it.
81
- - `ViewsCustomizeBodyProps` — Customize's whole body your app draws: `label`, `page` and `onPageChange` (a `ViewsCustomizePage`), `layout` (a `ViewsCustomizeLayout`), `columns` (`ViewsCustomizeColumns`), `filter` (`FilterBody`'s props on the whole filter, without `form`, `onDone` and `actions`), `sort` (`SortBody`'s, likewise), `group` (`GroupBody`'s, likewise), `toggles` (each a `ViewsCustomizeToggle`, Show counts among them), `view` (on a shared view, or the person's own with `own`: `changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`, and `layered` while the reader's own layer holds something), `resets` (each page's own Reset, while that page differs), `foot`, `onClear`, `clearAll`, `form`, `onDone` and, on a phone where the sheet's head doesn't draw it, `actions` (the ✕). `fields` (`ViewsCustomizeFields`): a list's per-field filters, its time range and its date ranges.
82
- - `ViewsCustomizePage` — where a Customize body stands: `list`, `layout`, `columns`, `filter`, `sort` or `group`.
90
+ - `ViewsCustomizeBodyProps` — Customize's whole body your app draws: `label`, `page` and `onPageChange` (a `ViewsCustomizePage`), `layout` (a `ViewsCustomizeLayout`), `columns` (`ViewsCustomizeColumns`), `filter` (`FilterBody`'s props on the whole filter, without `form`, `onDone` and `actions`), `sort` (`SortBody`'s, likewise), `group` (`GroupBody`'s, likewise), `toggles` (each a `ViewsCustomizeToggle`, Show counts among them), `view` (on a shared view, or the person's own with `own`: `changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`, and `layered` while the reader's own layer holds something), `resets` (each page's own Reset, while that page differs), `items` (Customize's rows as data, `ViewsCustomizeItems`, handed from `menus.customize`: `CONTROLS.CustomizeBody` draws what it hands back, a body of your own may honour it), `foot`, `onClear`, `clearAll`, `form`, `onDone` and, on a phone where the sheet's head doesn't draw it, `actions` (the ✕). `fields` (`ViewsCustomizeFields`): a list's per-field filters, its time range and its date ranges.
91
+ - `ViewsCustomizePage` — where a Customize body stands: `list`, `layout`, `columns`, `filter`, `sort` or `group`, or `page:<key>`, a page of your own (VK-1062).
92
+ - `ViewsCustomizeItem` — a row of Customize as data (VK-1062): a `ViewsMenuItem` (its `children` Customize items), with `inForce` (its value in the brand) and, on Customize's list alone, `page` (a page of your own, or a function handed its Back), opened by the row and titled by its `label`.
93
+ - `ViewsCustomizeItemsContext` — which rows a Customize function is handed: `page` (`"list"`, `"layout"` or `"columns"`), `form` (`"computer"` or `"phone"`) and `layout` (the layout in use).
94
+ - `ViewsCustomizeItems` — Customize's rows reshaped: `(items, ctx) => items`, `menus.customize` ([`/list`'s Menus as data](./list.md#menus-as-data)).
83
95
  - `ViewsCustomizeLayout` — the layouts (`options`, `refused` with reasons, `value`, `onLayoutChange`) and the layout in use's `toggles`, `choices`, `density` and the reader's own `personal` settings.
84
96
  - `ViewsCustomizeFields` — a list's per-field filters, its time range and its date ranges: `folded` (behind one Filter row, or each its own row) and `items`, each a `ViewsCustomizeField`.
85
97
  - `ViewsCustomizeField` — one of them: `key`, `label`, `icon`, `section`, `says` and `inForce` (what it holds), `disabled` (why it can't open), `place` (`filters`, after Columns, or `after`, after Group), `onOpen` (asked as its screen opens), and its screen's content, one of `pick` (a value, its All choice first), `check` (values), `time` (presets, and `custom`: its days and each press with the day pressed), `dates` (a range of days) and `body` (ViewKit's own body for any other kind); each writes through its own `onChange`.