viewkitjs 0.38.0 → 0.39.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 (184) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/MIGRATION.md +7 -0
  3. package/fields/dist/query/figure-kinds.d.ts +2 -2
  4. package/fields/dist/query/figure-kinds.js +3 -0
  5. package/fields/dist/query/figures.d.ts +5 -3
  6. package/fields/dist/query/figures.js +13 -0
  7. package/fields/docs/reference/query.md +3 -3
  8. package/package.json +1 -1
  9. package/postgres/docs/guides/field-map.md +1 -1
  10. package/views/dist/atoms/HeaderChrome.d.ts +7 -0
  11. package/views/dist/atoms/HeaderChrome.js +15 -0
  12. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  13. package/views/dist/atoms/ToolbarButton.js +2 -2
  14. package/views/dist/atoms/defaults.js +4 -0
  15. package/views/dist/atoms/types.d.ts +39 -2
  16. package/views/dist/contract.d.ts +19 -8
  17. package/views/dist/contract.js +37 -6
  18. package/views/dist/controls/field/looks.d.ts +1 -1
  19. package/views/dist/controls/field/looks.js +7 -3
  20. package/views/dist/controls/field/tokens.d.ts +4 -0
  21. package/views/dist/controls/field/tokens.js +1 -0
  22. package/views/dist/controls/field.css +33 -0
  23. package/views/dist/controls/filter-editor/block.d.ts +3 -1
  24. package/views/dist/controls/filter-editor/block.js +4 -3
  25. package/views/dist/controls/filter-editor/filter-editor.d.ts +13 -2
  26. package/views/dist/controls/filter-editor/filter-editor.js +45 -15
  27. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  28. package/views/dist/controls/filter-editor/map-filter-body.js +5 -4
  29. package/views/dist/controls/filter-editor/map-rules.d.ts +2 -1
  30. package/views/dist/controls/filter-editor/map-rules.js +3 -3
  31. package/views/dist/controls/internal/menu-items.d.ts +2 -0
  32. package/views/dist/controls/internal/menu-items.js +1 -1
  33. package/views/dist/controls/internal/part-slot.d.ts +1 -1
  34. package/views/dist/controls/internal/part-slot.js +1 -1
  35. package/views/dist/controls/internal/row-actions.d.ts +33 -0
  36. package/views/dist/controls/internal/row-actions.js +28 -0
  37. package/views/dist/controls/menu/map-menu.js +1 -1
  38. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  39. package/views/dist/controls/popover/map-popover.js +2 -2
  40. package/views/dist/controls/sheet/map-sheet.js +9 -6
  41. package/views/dist/controls/sort-editor/map-sort-body.js +1 -0
  42. package/views/dist/controls/sort-editor/sort-editor.d.ts +5 -1
  43. package/views/dist/controls/sort-editor/sort-editor.js +41 -13
  44. package/views/dist/controls/text-editor.css +20 -0
  45. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +1 -1
  46. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +2 -2
  47. package/views/dist/editors/EditorPanel.js +1 -1
  48. package/views/dist/field-row/FieldRow.js +38 -16
  49. package/views/dist/field-row/editors/RowChipsEditor.js +3 -1
  50. package/views/dist/field-row/editors/RowDateEditor.js +3 -1
  51. package/views/dist/field-row/editors/RowNameEditor.js +3 -1
  52. package/views/dist/field-row/editors/RowPlaceEditor.js +4 -2
  53. package/views/dist/field-row/editors/RowRangeEditor.js +3 -1
  54. package/views/dist/field-row/editors/RowRelationEditor.js +5 -2
  55. package/views/dist/field-row/editors/RowSelectEditor.js +3 -1
  56. package/views/dist/field-row/editors/RowTextEditor.d.ts +7 -1
  57. package/views/dist/field-row/editors/RowTextEditor.js +25 -4
  58. package/views/dist/field-row/editors/RowValueListEditor.js +4 -4
  59. package/views/dist/field-row/editors/row-place.d.ts +33 -0
  60. package/views/dist/field-row/editors/row-place.js +141 -0
  61. package/views/dist/field-row/field-row-button.d.ts +9 -6
  62. package/views/dist/field-row/field-row-button.js +3 -3
  63. package/views/dist/field-row/row-target.d.ts +4 -1
  64. package/views/dist/field-row/row-target.js +1 -1
  65. package/views/dist/grid/chrome/GridAggregateMenu.d.ts +12 -11
  66. package/views/dist/grid/chrome/GridAggregateMenu.js +4 -3
  67. package/views/dist/grid/chrome/GridFooter.d.ts +12 -4
  68. package/views/dist/grid/chrome/GridFooter.js +11 -9
  69. package/views/dist/grid/chrome/GridHeader.js +4 -3
  70. package/views/dist/grid/chrome/GridResizeHandle.d.ts +7 -3
  71. package/views/dist/grid/chrome/GridResizeHandle.js +2 -3
  72. package/views/dist/grid/chrome/GridTable.js +1 -1
  73. package/views/dist/grid/chrome/GridTableSurface.js +1 -1
  74. package/views/dist/grid/chrome/grid-body-place.d.ts +2 -4
  75. package/views/dist/grid/chrome/grid-body-place.js +4 -5
  76. package/views/dist/grid/chrome/grid-figure-value.js +10 -4
  77. package/views/dist/grid/chrome/grid-table-props.d.ts +11 -3
  78. package/views/dist/grid/grid.css +7 -3
  79. package/views/dist/internal/over-cell.d.ts +8 -0
  80. package/views/dist/internal/over-cell.js +5 -0
  81. package/views/dist/list/bar-keys.d.ts +5 -0
  82. package/views/dist/list/bar-keys.js +2 -0
  83. package/views/dist/list/bar-parts.d.ts +27 -0
  84. package/views/dist/list/bar-parts.js +38 -0
  85. package/views/dist/list/buttons/clear-save.d.ts +7 -0
  86. package/views/dist/list/buttons/clear-save.js +15 -0
  87. package/views/dist/list/buttons/customize.d.ts +28 -0
  88. package/views/dist/list/buttons/customize.js +31 -0
  89. package/views/dist/list/buttons/filter.d.ts +32 -0
  90. package/views/dist/list/buttons/filter.js +60 -0
  91. package/views/dist/list/buttons/new.d.ts +18 -0
  92. package/views/dist/list/buttons/new.js +9 -0
  93. package/views/dist/list/buttons/quick.d.ts +15 -0
  94. package/views/dist/list/buttons/quick.js +24 -0
  95. package/views/dist/list/buttons/search.d.ts +18 -0
  96. package/views/dist/list/buttons/search.js +17 -0
  97. package/views/dist/list/buttons/shared.d.ts +91 -0
  98. package/views/dist/list/buttons/shared.js +131 -0
  99. package/views/dist/list/buttons/sort-filter.d.ts +6 -0
  100. package/views/dist/list/buttons/sort-filter.js +16 -0
  101. package/views/dist/list/buttons/sort.d.ts +17 -0
  102. package/views/dist/list/buttons/sort.js +34 -0
  103. package/views/dist/list/buttons/views.d.ts +21 -0
  104. package/views/dist/list/buttons/views.js +36 -0
  105. package/views/dist/list/editor-menus.d.ts +13 -0
  106. package/views/dist/list/editor-menus.js +13 -0
  107. package/views/dist/list/index.d.ts +41 -0
  108. package/views/dist/list/index.js +19 -0
  109. package/views/dist/list/line.d.ts +55 -0
  110. package/views/dist/list/line.js +221 -0
  111. package/views/dist/list/pane-box.d.ts +6 -0
  112. package/views/dist/list/pane-box.js +15 -0
  113. package/views/dist/list/panels/customize.d.ts +8 -0
  114. package/views/dist/list/panels/customize.js +23 -0
  115. package/views/dist/list/panels/filter-bar.d.ts +12 -0
  116. package/views/dist/list/panels/filter-bar.js +67 -0
  117. package/views/dist/list/panels/filter.d.ts +8 -0
  118. package/views/dist/list/panels/filter.js +23 -0
  119. package/views/dist/list/panels/quick.d.ts +7 -0
  120. package/views/dist/list/panels/quick.js +16 -0
  121. package/views/dist/list/panels/shared.d.ts +25 -0
  122. package/views/dist/list/panels/shared.js +33 -0
  123. package/views/dist/list/panels/sort.d.ts +8 -0
  124. package/views/dist/list/panels/sort.js +19 -0
  125. package/views/dist/list/panels/views.d.ts +13 -0
  126. package/views/dist/list/panels/views.js +27 -0
  127. package/views/dist/list/ready.d.ts +35 -0
  128. package/views/dist/list/ready.js +7 -0
  129. package/views/dist/list/root-base.d.ts +17 -0
  130. package/views/dist/list/root-base.js +9 -1
  131. package/views/dist/list/root.js +2 -2
  132. package/views/dist/list/store.d.ts +19 -0
  133. package/views/dist/list/store.js +40 -1
  134. package/views/dist/list/toolbar-model.d.ts +95 -0
  135. package/views/dist/list/toolbar-model.js +177 -0
  136. package/views/dist/list/toolbar.js +140 -328
  137. package/views/dist/list/views-axis.js +15 -4
  138. package/views/dist/model/aggregates.d.ts +18 -8
  139. package/views/dist/model/aggregates.js +16 -22
  140. package/views/dist/panels/react/filter/FilterEditor.d.ts +3 -1
  141. package/views/dist/panels/react/filter/FilterEditor.js +2 -2
  142. package/views/dist/panels/react/filter/filter-body.d.ts +3 -1
  143. package/views/dist/panels/react/filter/filter-body.js +2 -2
  144. package/views/dist/panels/react/sort/SortEditor.d.ts +3 -1
  145. package/views/dist/panels/react/sort/SortEditor.js +4 -4
  146. package/views/dist/panels/react/toolbar/Toolbar.d.ts +80 -3
  147. package/views/dist/panels/react/toolbar/Toolbar.js +85 -52
  148. package/views/dist/panels/react/toolbar/ToolbarBarSorts.d.ts +9 -0
  149. package/views/dist/panels/react/toolbar/ToolbarBarSorts.js +57 -0
  150. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +4 -1
  151. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +2 -2
  152. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +30 -0
  153. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -1
  154. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  155. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
  156. package/views/dist/panels/react/toolbar/ToolbarViews.d.ts +7 -1
  157. package/views/dist/panels/react/toolbar/ToolbarViews.js +4 -4
  158. package/views/dist/panels/react/toolbar/sheet-host.d.ts +3 -0
  159. package/views/dist/panels/react/toolbar/sheet-host.js +6 -0
  160. package/views/dist/panels/react/toolbar/use-give-way.d.ts +6 -0
  161. package/views/dist/panels/react/toolbar/use-give-way.js +8 -1
  162. package/views/dist/panels/react/views-row/ViewPicker.d.ts +8 -1
  163. package/views/dist/panels/react/views-row/ViewPicker.js +12 -7
  164. package/views/dist/panels/settings/filter-groups.js +7 -0
  165. package/views/dist/provider/components.d.ts +36 -2
  166. package/views/dist/react.d.ts +1 -1
  167. package/views/dist/styles.css +104 -1
  168. package/views/dist/styles.unlayered.css +104 -1
  169. package/views/docs/contract.md +20 -12
  170. package/views/docs/controls/field.md +1 -0
  171. package/views/docs/controls/filter-editor.md +1 -1
  172. package/views/docs/controls/menu.md +1 -1
  173. package/views/docs/controls/sort-editor.md +1 -1
  174. package/views/docs/guides/atoms.md +1 -0
  175. package/views/docs/guides/the-grid.md +2 -2
  176. package/views/docs/reference/controls.md +3 -3
  177. package/views/docs/reference/field-row.md +1 -1
  178. package/views/docs/reference/grid.md +4 -4
  179. package/views/docs/reference/list.md +168 -6
  180. package/views/docs/reference/looks.md +1 -1
  181. package/views/docs/reference/panels-react.md +7 -7
  182. package/views/docs/reference/react.md +13 -10
  183. package/views/docs/reference/views.md +8 -6
  184. package/views/skills/views/SKILL.md +2 -1
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.38.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.39.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
2
2
 
3
3
  @layer base {
4
4
  @layer viewkit {:where(*):where(:is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]), :is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]) *),
@@ -1891,6 +1891,39 @@ button.o-field-row { cursor: pointer; }
1891
1891
  }
1892
1892
  :where([data-field-row-action="icon"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-key="vk-field-row-under"]):is(:hover, :focus-visible) [data-field-row-act] { visibility: visible; }
1893
1893
 
1894
+ /* ── The Field's Link (row-link: words, looks.ts; data-field-row-link="words" on a frame round the rows): a record's field row outside
1895
+ a card draws one link's words as the link itself, laid over the row's empty target as a rich text's are (data-field-row-words,
1896
+ field-row/FieldRow.tsx), so the words open the link and the rest of the box edits. The pointer on the words is the box's too:
1897
+ it keeps the quiet Button's hover ground (ViewKit's Button reads it; an app's own Button draws its own hover past the words) and
1898
+ shows its ✎. ──────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
1899
+ @media (hover: hover) {
1900
+ [data-field-row-words]:hover > [data-key="vk-field-row-under"]:not(:disabled, [aria-disabled="true"]) { --button-ground: var(--vk-hovered); }
1901
+ }
1902
+ :where([data-field-row-action="icon"]) [data-field-row] [data-field-row-words]:hover [data-field-row-act] { visibility: visible; }
1903
+
1904
+ /* ── The Field's Long (row-long: line, looks.ts; data-field-row-long="line" on a frame round the rows): a record's field row outside a
1905
+ card draws the words of a value it opens an editor on in one line at rest (data-field-row-text, field-row/FieldRow.tsx), so a
1906
+ description never makes a record uneven. A long text or a rich text (long) runs on as one line, its paragraphs and their blocks
1907
+ inline, a space after each, its Show more gone, and its end fades under a mask, never an "…": its editor shows the rest, on top of
1908
+ the box (RowTextEditor). A text (line) keeps to its first line, ending in its "…", so its one-line box keeps the row's height as it
1909
+ edits. As the box's, the geometry is !important: the display's classes are Tailwind's (the Field's Box, above, says why). ───── */
1910
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] {
1911
+ display: block !important; flex: 1 1 0%; overflow: hidden !important; white-space: nowrap !important; max-height: calc(var(--vk-spacing) * 5);
1912
+ -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--vk-spacing) * 12), transparent);
1913
+ mask-image: linear-gradient(to right, #000 calc(100% - var(--vk-spacing) * 12), transparent);
1914
+ }
1915
+ /* What holds the words in the target (an app's Button wraps its children) may shrink to the box, so the line is cut at its end. */
1916
+ :where([data-field-row-long="line"]) [data-field-row] :is([data-key="vk-field-row-target"], [data-key="vk-field-row-beside"], [data-field-row-anchor]):has([data-field-row-text="long"]) > * {
1917
+ min-width: 0 !important;
1918
+ }
1919
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] * {
1920
+ display: inline !important; white-space: nowrap !important; overflow: visible !important; max-height: none !important;
1921
+ margin: 0 !important; padding: 0 !important; -webkit-line-clamp: none !important;
1922
+ }
1923
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] :is(p, li, h1, h2, h3, h4, h5, h6, blockquote, pre, tr)::after { content: " "; }
1924
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="long"] :is([data-slot="vk-show-more"], br, hr, img, .absolute) { display: none !important; }
1925
+ :where([data-field-row-long="line"]) [data-field-row] [data-field-row-text="line"] > * { -webkit-line-clamp: 1 !important; }
1926
+
1894
1927
  /* A phone's first paint: server-rendered, Field rows' card stands twice, the phone's form and the computer's (`ScreenForms`,
1895
1928
  internal/screen-forms.tsx), and this shows the screen's at ViewKit's own line, as the toolbar's stylesheet does: here for an app
1896
1929
  that imports this card's stylesheet alone, on a page whose policy refuses an inline style. Kept on one line, as screenFormsCss writes it. */
@@ -5710,6 +5743,26 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5710
5743
  white-space: pre; overflow: hidden;
5711
5744
  }
5712
5745
 
5746
+ /* ── A record's long text under the Field's Long (row-long: line, field.css), on a computer: its box stands in a popover on top of the
5747
+ row's box (the popover marked data-field-row-long-editor, field-row/editors/RowTextEditor.tsx), the popover its only frame. The
5748
+ box is the popover's whole content: no edge, ring or ground of its own, its words as far from its edge as the row's box holds
5749
+ them (--vk-field-row-box-h and -x, undeclared 32 and 8), so its first line stands where the row's words stood. It is as tall as its
5750
+ text up to the editor's most height (--vk-editor-max-h, the popover's own cap; undeclared, 320), then it scrolls. (0,5,0): over the
5751
+ row's place. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
5752
+ .o-popover[data-field-row-long-editor] { --popover-pad: 0px; }
5753
+ [data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5754
+ --inline-input-row: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8)); --inline-input-edge: 0px; --inline-input-ring: 0px;
5755
+ }
5756
+ [data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form] .o-text-editor-box {
5757
+ --inline-input-words: var(--vk-field-row-box-x, calc(var(--vk-spacing) * 2));
5758
+ max-height: var(--vk-editor-max-h, calc(var(--vk-spacing) * 80)); border-radius: 0; background-color: transparent; box-shadow: none;
5759
+ }
5760
+ /* In place, under the Field's Action (row-action: icon, field.css), a long text's box keeps the icon's room at its end, as its
5761
+ target did at rest, so its lines break where they did. */
5762
+ :where([data-field-row-action="icon"] [data-field-row-editor]) .o-text-editor[data-text-place="row"][data-text-form="computer"][data-text-kind="long"] .o-text-editor-box {
5763
+ padding-right: calc(var(--vk-spacing) * 8 - var(--inline-input-e));
5764
+ }
5765
+
5713
5766
  /* ── On a phone: the Input at the phone's size; long text one tall box; a phone's country in the box's start side ──── */
5714
5767
  .o-text-editor[data-text-form="phone"] { display: grid; }
5715
5768
  .o-text-editor[data-text-form="phone"] .o-text-editor-country { gap: calc(var(--vk-spacing) * 0.75); }
@@ -6603,6 +6656,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
6603
6656
  .ml-auto {
6604
6657
  margin-left: auto;
6605
6658
  }
6659
+ .box-border {
6660
+ box-sizing: border-box;
6661
+ }
6606
6662
  .line-clamp-3 {
6607
6663
  overflow: hidden;
6608
6664
  display: -webkit-box;
@@ -8125,6 +8181,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8125
8181
  .\[font\:inherit\] {
8126
8182
  font: inherit;
8127
8183
  }
8184
+ :is(.\*\:max-w-full > *) {
8185
+ max-width: 100%;
8186
+ }
8128
8187
  :is(.\*\:min-w-0 > *) {
8129
8188
  min-width: 0px;
8130
8189
  }
@@ -8263,6 +8322,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8263
8322
  .group-data-\[form\=phone\]\/field-row\:row-start-2:is(:where(.group\/field-row)[data-form="phone"] *) {
8264
8323
  grid-row-start: 2;
8265
8324
  }
8325
+ .group-data-\[open\]\/gridagg\:opacity-100:is(:where(.group\/gridagg)[data-open] *) {
8326
+ opacity: 100%;
8327
+ }
8266
8328
  .group-data-\[rail\=on\]\/gridtable\:opacity-100:is(:where(.group\/gridtable)[data-rail="on"] *) {
8267
8329
  opacity: 100%;
8268
8330
  }
@@ -8656,6 +8718,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8656
8718
  .data-desktop\:data-\[state\=open\]\:opacity-100[data-desktop][data-state="open"] {
8657
8719
  opacity: 100%;
8658
8720
  }
8721
+ .data-\[stuck\=true\]\:border-\(color\:--vk-border-subtle\)[data-stuck="true"] {
8722
+ border-color: var(--vk-border-subtle);
8723
+ }
8659
8724
  .data-\[stuck\=true\]\:bg-\(color\:--vk-ground\)[data-stuck="true"] {
8660
8725
  background-color: var(--vk-ground);
8661
8726
  }
@@ -8800,6 +8865,41 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8800
8865
  :where(.\[\:where\(\&\)\]\:\[text-decoration\:inherit\]) {
8801
8866
  text-decoration: inherit;
8802
8867
  }
8868
+ :where(:is(.\[\:where\(\&amp\;\)\]\:m-0)amp;) {
8869
+ margin: 0px;
8870
+ }
8871
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[appearance\:none\])amp;) {
8872
+ appearance: none;
8873
+ }
8874
+ :where(:is(.\[\:where\(\&amp\;\)\]\:rounded-none)amp;) {
8875
+ border-radius: 0;
8876
+ }
8877
+ :where(:is(.\[\:where\(\&amp\;\)\]\:border-0)amp;) {
8878
+ border-style: var(--tw-border-style);
8879
+ border-width: 0px;
8880
+ }
8881
+ :where(:is(.\[\:where\(\&amp\;\)\]\:border-solid)amp;) {
8882
+ --tw-border-style: solid;
8883
+ border-style: solid;
8884
+ }
8885
+ :where(:is(.\[\:where\(\&amp\;\)\]\:bg-transparent)amp;) {
8886
+ background-color: transparent;
8887
+ }
8888
+ :where(:is(.\[\:where\(\&amp\;\)\]\:p-0)amp;) {
8889
+ padding: 0px;
8890
+ }
8891
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[letter-spacing\:inherit\])amp;) {
8892
+ letter-spacing: inherit;
8893
+ }
8894
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[color\:inherit\])amp;) {
8895
+ color: inherit;
8896
+ }
8897
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[font\:inherit\])amp;) {
8898
+ font: inherit;
8899
+ }
8900
+ :where(:is(.\[\:where\(\&amp\;\)\]\:\[text-decoration\:inherit\])amp;) {
8901
+ text-decoration: inherit;
8902
+ }
8803
8903
  @media (any-hover:hover) {
8804
8904
  .\[\@media\(any-hover\:hover\)\]\:relative {
8805
8905
  position: relative;
@@ -9278,11 +9378,14 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
9278
9378
  font-weight: var(--vk-font-weight-medium);
9279
9379
  }
9280
9380
  [data-grid-figures="value"] [data-slot="vk-grid-figure-label"] {
9381
+ font-size: var(--vk-text);
9281
9382
  text-transform: lowercase;
9282
9383
  letter-spacing: normal;
9283
9384
  color: var(--vk-fg-subtlest);
9284
9385
  }
9285
9386
  [data-grid-figures="value"] [data-slot="vk-grid-figure-pick"] {
9387
+ font-size: var(--vk-text);
9388
+ color: var(--vk-fg-subtlest);
9286
9389
  text-transform: none;
9287
9390
  letter-spacing: normal;
9288
9391
  }
@@ -68,9 +68,10 @@ use; the prefix keeps that selector from reaching an element of the app's own.
68
68
  | `data-slot="vk-grid-group-dot"` | the · before a group's figure |
69
69
  | `data-slot="vk-grid-footer"` | the footer row |
70
70
  | `data-slot="vk-grid-footer-cell"` | one column's figure |
71
- | `data-slot="vk-grid-figure-label"` | a footer figure's kind ("Sum"), drawn before its value; none on a figure the app draws |
71
+ | `data-slot="vk-grid-figure-label"` | a footer figure's word ("sum", `views.grid.figure-word`), drawn before its value, after it under Figures Value first; none on a figure the app draws |
72
72
  | `data-slot="vk-grid-figure-value"` | a footer figure's value, its suffix inside it |
73
- | `data-slot="vk-grid-figure-pick"` | an empty footer cell's offer of a figure, shown under the pointer, or at rest under the grid look's `offer` `always` |
73
+ | `data-slot="vk-grid-figure-pick"` | an empty footer cell's offer of a figure ("Add calculation"), shown under the pointer and while its picker is open, or at rest under the grid look's `offer` `always`; cut at the cell's edge |
74
+ | `data-slot="vk-grid-figure-menu"` | a footer cell's calculation picker, your `Menu` opened above the cell with its right edge on the cell's; ViewKit's own names each row by the menu's name and `-row`, `data-key` its figure (`none`, `count`, `empty`, `filled`, `percentEmpty`, `percentFilled`, `sum`, `avg`, `min`, `max`, `ratio`) |
74
75
  | `data-slot="vk-grid-rail"` | the left rail: the checkbox lane |
75
76
  | `data-slot="vk-grid-frozen-shadow"` | the shadow at the pinned columns' edge, shown while they are parked: one down each group's rows, one on the column names' rail and one on the footer's |
76
77
  | `data-slot="vk-grid-name-check"` | a row's or a titles row's box inside the name column, before the picture, on a phone with `phonePicking` |
@@ -555,9 +556,9 @@ peer; the provider and every other door import neither library, so an app that h
555
556
  `TextBody`, required: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`; `CONTROLS.TextBody` is ViewKit's own, the Text editor. The grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), `place` (`cell` in a grid cell, where your box may grow over the rows below; `row` in a field row, where it stands in the row's flow, so the row grows with it and a section that clips the row never cuts it; absent, `cell`), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid writes and keeps the cell). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
556
557
  `NumberBody`, required: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`; `CONTROLS.NumberBody` is ViewKit's own, the Number editor. The grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid writes and keeps the cell). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for money's currencies) while you stand on one, and `null` once you are back (*The sheet's head*).
557
558
 
558
- `SortBody`, required: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`; `CONTROLS.SortBody` is ViewKit's own. The sort pill opens it: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody`. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.sortEditor`, VK-1063): a rule's ⋯ and a set-aside rule's, reshaped; honour it or not.
559
+ `SortBody`, required: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`; `CONTROLS.SortBody` is ViewKit's own. The sort pill opens it: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. `empty` (VK-1091), handed `"editor"` on a computer where what opened it asks it to say nothing sorts yet (a placed Sort's `empty="editor"`): with no rule and none set aside, `views.panels.sort-empty` and `views.panels.sort-empty-line` over Add sort, and it stays open as its last rule goes; absent, as before. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody`. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.sortEditor`, VK-1063): a rule's ⋯ and a set-aside rule's, reshaped; honour it or not.
559
560
 
560
- `FilterBody`, required: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`; `CONTROLS.FilterBody` is ViewKit's own. An advanced filter's pill opens it on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in; and, in its place in the column order, each column the list can't filter, why in `disabled`, for your body to draw greyed and never name in a rule or put a set-aside rule back on), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to. Beside the level it is handed each choice field's values, and a place's country's names (`options` on a field, each as the Picker draws it: a status's step, a person's or a record's avatar, a record's kind), only where ViewKit holds the field's whole list as it opens (its values read on demand and not yet handed by your app, it is absent: open `ruleValue` there; `[]` is a whole list that is empty), ViewKit's own words for a rule (`ruleWords(rule, relation?)`: its field, way and value as the bar words them, for a rule your body has no words of its own for), and, on a phone, `onStepChange`: hand it a step of your own (`ViewsBodyStep`: a box's list, Add filter's fields) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it. `CONTROLS.FilterBody` is ViewKit's own, the filter editor: each rule Where or its join, its field, how it compares and its value in its type's own box (a choice's values from `options`), ⋮ to make a group or delete it, groups 3 deep, Add filter and Clear all filters; a relation rule's block (its relation, `any`, `none` or `every` where, its rules on that relation's fields), which a related rule's ⋮ makes with None or Every; a group's ⋮ with Exclude matches, and the level's own where `excludable`; a rule set aside in its place, its field's box dashed saying why, re-pointed, put back where its field is back, or deleted, and a relation rule set aside, or on a relation the list no longer lists, one row in its words; ViewKit's own words and value body (`ruleWords`, `ruleValue`) for a way the kit has no word for, a field it has no type for or a choice with no values, so nothing the level holds is out of sight; open on a relation's where, its relation and quantifier over the rules, the quantifier handed back with the level; 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 ⋯ as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.filterEditor`, VK-1063): a rule's ⋮, a set-aside rule's and a group's actions, reshaped, named by public terms; honour it or not.
561
+ `FilterBody`, required: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`; `CONTROLS.FilterBody` is ViewKit's own. An advanced filter's pill opens it on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in; and, in its place in the column order, each column the list can't filter, why in `disabled`, for your body to draw greyed and never name in a rule or put a set-aside rule back on), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `empty` (VK-1091: handed `"editor"` on a computer's top level where what opened it asks it to say nothing filters yet, `views.panels.filter-empty` and `views.panels.filter-empty-line` over Add filter, staying open as its last rule goes; absent, the fields), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to. Beside the level it is handed each choice field's values, and a place's country's names (`options` on a field, each as the Picker draws it: a status's step, a person's or a record's avatar, a record's kind), only where ViewKit holds the field's whole list as it opens (its values read on demand and not yet handed by your app, it is absent: open `ruleValue` there; `[]` is a whole list that is empty), ViewKit's own words for a rule (`ruleWords(rule, relation?)`: its field, way and value as the bar words them, for a rule your body has no words of its own for), and, on a phone, `onStepChange`: hand it a step of your own (`ViewsBodyStep`: a box's list, Add filter's fields) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it. `CONTROLS.FilterBody` is ViewKit's own, the filter editor: each rule Where or its join, its field, how it compares and its value in its type's own box (a choice's values from `options`), ⋮ to make a group or delete it, groups 3 deep, Add filter and Clear all filters; a relation rule's block (its relation, `any`, `none` or `every` where, its rules on that relation's fields), which a related rule's ⋮ makes with None or Every; a group's ⋮ with Exclude matches, and the level's own where `excludable`; a rule set aside in its place, its field's box dashed saying why, re-pointed, put back where its field is back, or deleted, and a relation rule set aside, or on a relation the list no longer lists, one row in its words; ViewKit's own words and value body (`ruleWords`, `ruleValue`) for a way the kit has no word for, a field it has no type for or a choice with no values, so nothing the level holds is out of sight; open on a relation's where, its relation and quantifier over the rules, the quantifier handed back with the level; 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 ⋯ as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.filterEditor`, VK-1063): a rule's ⋮, a set-aside rule's and a group's actions, reshaped, named by public terms; honour it or not.
561
562
 
562
563
  `FieldsBody`, required: the field list's whole body, which your app draws, `ViewsFieldsBodyProps`; `CONTROLS.FieldsBody` is ViewKit's own. ViewKit opens it wherever it opens a sort or filter field list: for a sort, the empty Sort, Sort on the row's right and the + after the sort pill; for a filter, Filter and the + on the bar, a filter's field on the bar and a set-aside filter's field. It stands in the popover under what opened it on a computer, and on a phone on a page of the sheet, under the sheet's own head, so it takes no `actions`. It is handed what the pick is for (`purpose`: `sort` or `filter`), the list's name (`label`), its search's words (`search`), the fields in order as `ViewsFieldsBodyField` data (each its `key`, its words, its field's `type`, the `part` it reads and its column's `glyph`, all three as the grid's header marks its column, and, where it can't be picked, why, in `disabled`: a field another rule sorts says "Sorted", and, for a filter, a column the list can't filter says why in your words; for a filter, each relation with its `far` fields one level in, where a rule can name one), the field being changed (`own`, absent where a pick adds; for a rule on a related record's field, the far field's key, with `ownRelation` the relation's key it stands under, as `onPick` hands both back) and `form`. It hands back one pick through `onPick` (the field's key, and for a far field the far field's key too), and `onDone` closes what holds it with no pick. ViewKit writes the pick as its own list's would, and writes nothing for a key it didn't hand or handed `disabled`. `CONTROLS.FieldsBody` is ViewKit's own, the Picker.
563
564
 
@@ -584,7 +585,8 @@ peer; the provider and every other door import neither library, so an app that h
584
585
  The popover takes `alignOffset`, `initialFocus` (false keeps focus where it was when the popup
585
586
  opens; the editor that then takes focus does so with `preventScroll`, so the package's own focus
586
587
  never moves the page while your popup is placed; what your `Command` does as it mounts is yours, in
587
- "Writing an adapter"), and two vetoes, `onOutsidePress`
588
+ "Writing an adapter"), `finalFocus` (false moves no focus as the popup closes: a field row's editor hands it, and the row
589
+ gives the focus back to itself; forward it to your popup's return of focus, or an earlier popup's focus can win), and two vetoes, `onOutsidePress`
588
590
  and `onEscape`, each returning `false` to keep it open. `onOutsidePress` is handed the pointer press, its `target` where the press landed, also when the
589
591
  focus that press moves is what would close the popup: a vetoed press holds against its focus too,
590
592
  and focus leaving by keyboard (a Tab out) closes without asking. Its
@@ -702,7 +704,7 @@ container: the inset a run of rows sits in, inside a panel or a command list's g
702
704
  a button or, with `interactive={false}`, a static line), `RowContent` (deprecated: a row's inside, drawn
703
705
  by nothing, since the default `Row` draws its own), `TickBox` (a paint-only tick box), `Avatar` (a person's or a record's picture, `ViewsAvatarProps`: a user's, a relation's and an actor's chip draw it at `size="chip"`, and the name draws it at `size="glyph"`, sized by `--vk-glyph`, when the list's `rowIcon` hands the row's `avatar`; it is handed `label`, whose picture it is, `avatarUrl`, `kind`, the record's kind as the app names it (a relation's `entity`, `user` for a member, an actor's type), and `fallback`, the glyph the chip or the name draws without a picture; the default draws the picture, marked `data-slot="vk-avatar"`, and the fallback when there is none or it fails to load, so an app that hands none sees its chips and names as before; yours draws initials on a tone, a record in its own shape, or the fallback for a kind it doesn't dress; where the provider's `panelControls` names `Avatar`, every record's mark ViewKit's panels draw is yours too, handed a pixel size, VK-1044: anything ViewKit draws on screen by itself takes your own where you hand it, and ViewKit hands it data only),
704
706
  `StatusBadge` (a pill by status slot), `StatusMarker` (an attention badge that opens its reason) and
705
- `Tag` (a category chip, removable, with an optional leading glyph), `CommandMenu` (a `command` cell's verb menu, opened from the trigger the cell drew; the default is the components map's `Menu`), `RowMenu` (the rows' right-click menu, once around each section's rows' container and aimed at the row a press or a right-click came from, its props that row's: Open page, the rows the rendering builds, Delete, where the grid's `menus.row` makes the first and last rows of `items` instead (`row-open`, `row-delete`), with one disabled `loading` row while it answers; the default is the components map's `Menu` at the pointer, opened by a right-click or the row's ⋯ (`data-slot="vk-grid-row-more"`), wrapped in `data-slot="vk-row-menu"`; the grid's row-menu keys send a cell the same right-click, with no press before it, so a `RowMenu` of your own opens on any `contextmenu` and doesn't wait for a press; its Delete asks the `confirm` port with `views.menus.row-delete-confirm` (the browser's own confirm when you hand none), and a delete that rejects says so through the toast port's `error` with `views.menus.row-delete-failed`; a long-press on a phone opens nothing, and with `GridTable`'s `phonePicking` on the grid's own long press picks the row, an `onToggleSelect` that answers the same held press ticking it with the grid's, once; `onOpenChange`, called as the menu opens and closes, holds the row it is aimed at as under the pointer while it is open, `data-hovered`, its tint and its ⋯, which the default calls) and `RelationLink` (where a relation chip goes, around the chip the display drew; the default goes nowhere), `RelationRoles` (a link's roles, inside its chip after the record's name, on a `many` relation that declares `links`; the default draws their labels in the subtle colour after a middle dot, wrapped in `data-slot="vk-relation-roles"`, and in a narrow cell cuts them, down to nothing, before the name loses a letter), `RelationChip` (a mentioned record, `ViewsRelationChipProps`: every relation ViewKit draws, in a table's cell, one and many and the +N list, a field row's value and `renderFieldValue`, a highlight's, and a user field's chip, where the provider's `panelControls` names `RelationChip` (VK-1053); ViewKit places a mentioned record and hands its data; your app draws it: it is handed `relation` (its `id`, `label`, `entity`, the record's kind as the app names it, `user` for a member, and `avatarUrl`), `roles` (a link's, each its `value` and `label`, on a `many` relation that declares `links`), `size` (`chip` in a cell or a highlight, `row` in a field row), `render`, the host's link where it has one (handed your element's props, it draws the host's element with them: a cell whose host opens its relations a bare `<button data-slot="vk-relation-link" data-no-nav>` whose press is the host's, the app's `RelationLink` or a host's `relationWrap` around a `<span>` holding them; absent for an inert fact and where the host's own element owns the click, `slotOwnsClick`; ViewKit never makes one up), and `fallback`, ViewKit's own chip as it would draw it there; the default draws its `fallback`, so with nothing named every place draws as before, and an app that hands the atom without naming it sees no change; a typed Select's chip is not one: a control stands without the provider), `Loading` (a wait: the list reloading, or more rows arriving; the default is a plain ring) `LoadMore` (how a list asks for its next page; the default watches a sentinel past the last row) and `PlatformMark` (a link's platform, drawn before it, read from its address with the conventions' platforms; the default draws nothing, so a link looks plain, and the package ships no brand art, so an app that wants marks draws its own by the platform's key into `data-slot="vk-platform"`), and the rows ViewKit's own filter and sort bodies draw with, which draw them only in the older panels a list keeps with `severalSorts: false` or `filterGroups: false` and in the value body a filter rule falls back to where the app's `FilterPartBody` or `FilterBody` doesn't draw its type: `ChoiceRow` (deprecated, drawn by nothing: picks a value: its label, a second line, a right-hand meta, the check when chosen), `CheckRow` (toggles one of many, a tick box on the left), `RadioRow` (picks one of a set, its mark a check or, with `mark="box"`, a tick box; a disabled row's reason in your `Tooltip`), `DirectionButton` (a sort's direction arrow, named `views.panels.direction`), `MenuRow` (a drill-in row: a glyph, the section, where it stands, a chevron; a disabled row's reason in your `Tooltip`), `ToggleRow` (deprecated, drawn by nothing: a boolean flipped in place, with a way back named `views.panels.toggle-reset`; a disabled row's reason in your `Tooltip`) and `PanelSearch` (a panel's text box, a filled well with a magnifier), and `Pill` (one option of a row of pills, the views row's and any tab row's: `active`, a `solid` or `plain` variant, a `default` or `sm` size, a leading glyph, the app's own active and hover classes for a status colour; with `menuOpen` it says it opens a menu, `aria-haspopup="menu"` and `aria-expanded`), and `ToolbarButton` (a toolbar's button, the one every toolbar part draws with: its glyph, its name, its word for a dress that shows words, a count in its corner, which becomes a ✕ badge that clears what it counts when handed `onClear`, a dot that says something is applied with no number, `open`, `changed`, `edge` for the row's outermost button, `disabled`, a `md` or `sm` size, and `popup` when it opens one; and, for the sort (VK-188), its own words shown whatever the dress, with their weight, in `data-slot="vk-toolbar-words"` (`children`: "Sorted by **Amount**"), a count in words after them in `data-slot="vk-toolbar-more"` (`more`: "+1"), an empty place with its edge dashed and `data-empty` (`empty`), and a reason it can't be used, `disabledReason` with `disabled`, in your `Tooltip`, the button then `aria-disabled` and still a Tab stop, a press doing nothing; its own words are then its name, with `more` after them, in place of `label`; and, in a folding toolbar line with no room, `iconAlone`, its words given up for its icon, `data-icon-alone`, which you draw as the icon alone whatever your dress says of words; `aside`, what it names left the list, its edge dashed in the warning's colour, `data-aside`; `foot`, New's + standing alone at a phone list's foot, round, a finger's size, on the brand's ground, `data-foot`; `joined` (`start`, `middle` or `end`), one of buttons joined as one (a filter's field, how it compares, its value, its menu), its corners on the outer side alone, no gap, the shared edge drawn once, `data-joined` with the value; and `waits`, its words saying what it waits for (a filter's value not yet picked), drawn in `--vk-fg-subtlest`, the placeholder's colour, `data-waits`; its own words keep to one line and give way to a holder that caps its width, cut with "…", where an icon button keeps its size; and, told what it is where your own toolbar frame draws it (VK-629), `current` (a view tab, `data-tab`; `true` the open one, `data-current` and `aria-current="true"`), `part` (which of the toolbar's own buttons it stands for, drawn as its `data-slot`: `views-chip` `vk-views-chip`, `views-tab` `vk-views-tab`, `views-more` `vk-views-more`, `views-add` `vk-views-add`, `clear` `vk-toolbar-clear`, `save` `vk-toolbar-save-button`; the default draws the chip and "+N" with a chevron after their words, `data-slot="vk-toolbar-chevron"`, and Save on an edge) and `onContextMenu` (a right-click: a tab's verbs open on it); and wherever it stands (VK-984), `part` naming every other button after its toolbar place (`sort`, `filter`, `options`, `search`, `quick`, `new`, `filters`, `filter-add`, `sort-pill`, `sort-add`, `advanced-filters`, `more-filters`, ⋯ `more`), which the default draws as it always did, and `className`, its place's class, put on the button). Each ships as a default, exported as `DEFAULT_VIEWS_ATOMS`, drawn
707
+ `Tag` (a category chip, removable, with an optional leading glyph), `CommandMenu` (a `command` cell's verb menu, opened from the trigger the cell drew; the default is the components map's `Menu`), `RowMenu` (the rows' right-click menu, once around each section's rows' container and aimed at the row a press or a right-click came from, its props that row's: Open page, the rows the rendering builds, Delete, where the grid's `menus.row` makes the first and last rows of `items` instead (`row-open`, `row-delete`), with one disabled `loading` row while it answers; the default is the components map's `Menu` at the pointer, opened by a right-click or the row's ⋯ (`data-slot="vk-grid-row-more"`), wrapped in `data-slot="vk-row-menu"`; the grid's row-menu keys send a cell the same right-click, with no press before it, so a `RowMenu` of your own opens on any `contextmenu` and doesn't wait for a press; its Delete asks the `confirm` port with `views.menus.row-delete-confirm` (the browser's own confirm when you hand none), and a delete that rejects says so through the toast port's `error` with `views.menus.row-delete-failed`; a long-press on a phone opens nothing, and with `GridTable`'s `phonePicking` on the grid's own long press picks the row, an `onToggleSelect` that answers the same held press ticking it with the grid's, once; `onOpenChange`, called as the menu opens and closes, holds the row it is aimed at as under the pointer while it is open, `data-hovered`, its tint and its ⋯, which the default calls) and `RelationLink` (where a relation chip goes, around the chip the display drew; the default goes nowhere), `RelationRoles` (a link's roles, inside its chip after the record's name, on a `many` relation that declares `links`; the default draws their labels in the subtle colour after a middle dot, wrapped in `data-slot="vk-relation-roles"`, and in a narrow cell cuts them, down to nothing, before the name loses a letter), `RelationChip` (a mentioned record, `ViewsRelationChipProps`: every relation ViewKit draws, in a table's cell, one and many and the +N list, a field row's value and `renderFieldValue`, a highlight's, and a user field's chip, where the provider's `panelControls` names `RelationChip` (VK-1053); ViewKit places a mentioned record and hands its data; your app draws it: it is handed `relation` (its `id`, `label`, `entity`, the record's kind as the app names it, `user` for a member, and `avatarUrl`), `roles` (a link's, each its `value` and `label`, on a `many` relation that declares `links`), `size` (`chip` in a cell or a highlight, `row` in a field row), `render`, the host's link where it has one (handed your element's props, it draws the host's element with them: a cell whose host opens its relations a bare `<button data-slot="vk-relation-link" data-no-nav>` whose press is the host's, the app's `RelationLink` or a host's `relationWrap` around a `<span>` holding them; absent for an inert fact and where the host's own element owns the click, `slotOwnsClick`; ViewKit never makes one up), and `fallback`, ViewKit's own chip as it would draw it there; the default draws its `fallback`, so with nothing named every place draws as before, and an app that hands the atom without naming it sees no change; a typed Select's chip is not one: a control stands without the provider), `Loading` (a wait: the list reloading, or more rows arriving; the default is a plain ring) `LoadMore` (how a list asks for its next page; the default watches a sentinel past the last row) and `PlatformMark` (a link's platform, drawn before it, read from its address with the conventions' platforms; the default draws nothing, so a link looks plain, and the package ships no brand art, so an app that wants marks draws its own by the platform's key into `data-slot="vk-platform"`), and the rows ViewKit's own filter and sort bodies draw with, which draw them only in the older panels a list keeps with `severalSorts: false` or `filterGroups: false` and in the value body a filter rule falls back to where the app's `FilterPartBody` or `FilterBody` doesn't draw its type: `ChoiceRow` (deprecated, drawn by nothing: picks a value: its label, a second line, a right-hand meta, the check when chosen), `CheckRow` (toggles one of many, a tick box on the left), `RadioRow` (picks one of a set, its mark a check or, with `mark="box"`, a tick box; a disabled row's reason in your `Tooltip`), `DirectionButton` (a sort's direction arrow, named `views.panels.direction`), `MenuRow` (a drill-in row: a glyph, the section, where it stands, a chevron; a disabled row's reason in your `Tooltip`), `ToggleRow` (deprecated, drawn by nothing: a boolean flipped in place, with a way back named `views.panels.toggle-reset`; a disabled row's reason in your `Tooltip`) and `PanelSearch` (a panel's text box, a filled well with a magnifier), and `Pill` (one option of a row of pills, the views row's and any tab row's: `active`, a `solid` or `plain` variant, a `default` or `sm` size, a leading glyph, the app's own active and hover classes for a status colour; with `menuOpen` it says it opens a menu, `aria-haspopup="menu"` and `aria-expanded`), and `ToolbarButton` (a toolbar's button, the one every toolbar part draws with: its glyph, its name, its word for a dress that shows words, a count in its corner, which becomes a ✕ badge that clears what it counts when handed `onClear`, a dot that says something is applied with no number, `open`, `changed`, `edge` for the row's outermost button, `disabled`, a `md` or `sm` size, and `popup` when it opens one, or `expanded` when it shows and hides a part of the page instead (Sort and filter, VK-1091), drawn as `aria-expanded`; and, for the sort (VK-188), its own words shown whatever the dress, with their weight, in `data-slot="vk-toolbar-words"` (`children`: "Sorted by **Amount**"), a count in words after them in `data-slot="vk-toolbar-more"` (`more`: "+1"), an empty place with its edge dashed and `data-empty` (`empty`), and a reason it can't be used, `disabledReason` with `disabled`, in your `Tooltip`, the button then `aria-disabled` and still a Tab stop, a press doing nothing; its own words are then its name, with `more` after them, in place of `label`; and, in a folding toolbar line with no room, `iconAlone`, its words given up for its icon, `data-icon-alone`, which you draw as the icon alone whatever your dress says of words; `aside`, what it names left the list, its edge dashed in the warning's colour, `data-aside`; `foot`, New's + standing alone at a phone list's foot, round, a finger's size, on the brand's ground, `data-foot`; `joined` (`start`, `middle` or `end`), one of buttons joined as one (a filter's field, how it compares, its value, its menu), its corners on the outer side alone, no gap, the shared edge drawn once, `data-joined` with the value; and `waits`, its words saying what it waits for (a filter's value not yet picked), drawn in `--vk-fg-subtlest`, the placeholder's colour, `data-waits`; its own words keep to one line and give way to a holder that caps its width, cut with "…", where an icon button keeps its size; and, told what it is where your own toolbar frame draws it (VK-629), `current` (a view tab, `data-tab`; `true` the open one, `data-current` and `aria-current="true"`), `part` (which of the toolbar's own buttons it stands for, drawn as its `data-slot`: `views-chip` `vk-views-chip`, `views-tab` `vk-views-tab`, `views-more` `vk-views-more`, `views-add` `vk-views-add`, `clear` `vk-toolbar-clear`, `save` `vk-toolbar-save-button`; the default draws the chip and "+N" with a chevron after their words, `data-slot="vk-toolbar-chevron"`, and Save on an edge) and `onContextMenu` (a right-click: a tab's verbs open on it); and wherever it stands (VK-984), `part` naming every other button after its toolbar place (`sort`, `filter`, `options`, `search`, `quick`, `new`, `filters`, `filter-add`, `sort-pill`, `sort-add`, `advanced-filters`, `more-filters`, ⋯ `more`, and the placed Sort and filter `sort-filter`, VK-1091), which the default draws as it always did, and `className`, its place's class, put on the button), and a grid header cell's chrome (VK-999), each drawn where ViewKit's own stood while the cell, its menu, its drag to reorder and its resize stay ViewKit's: `HeaderGlyph` (the column's type glyph before its name, handed `columnId`, `type`, `fieldKey`, `fallback`, ViewKit's own glyph for the column, null where it has none, and `className`, the class ViewKit's own draws with; the default draws `fallback`), `HeaderSortMark` (a sorted column's mark after its name where the grid's `sortMark` is on, inside ViewKit's `aria-hidden` box, handed `columnId`, `dir` and `className`; the default draws `icons.sortAsc` or `icons.sortDesc`; draw nothing for no mark, `aria-sort` saying it either way) and `HeaderResizeHandle` (what the resize handle shows, inside ViewKit's grab zone, `data-slot="vk-grid-resize-handle"`, which keeps the press, the drag, the double-click that resets the width and the menu kept shut, handed `columnId` and `active`, true while the column is resized; the default is a hairline in `--vk-brand` under the pointer and while `active`; yours may reach past the zone, inside the cell, and a press on it still resizes). Each ships as a default, exported as `DEFAULT_VIEWS_ATOMS`, drawn
706
708
  from the app's colours; an app swaps any of them through the provider's `atoms`, and the rest
707
709
  stay the defaults. `SelectionSheet` is the phone's sheet of a selection's verbs, opened by the
708
710
  selection bar's Actions: the default is the components map's `Sheet` holding the atoms' rows, a group's
@@ -885,18 +887,21 @@ entry and choice and a Picker's item.
885
887
  key in `data-key` and no place), `data-slot="vk-sort-grip"` (its grip), `data-slot="vk-sort-field"` and
886
888
  `data-slot="vk-sort-direction"` (its two boxes), `data-slot="vk-sort-remove"` (its ×), `data-slot="vk-sort-rule-open"` (a phone's
887
889
  or the narrow form's row, pressed to turn its direction), `data-slot="vk-sort-rule-more"` (its ⋯), `data-slot="vk-sort-rule-action"`
888
- (a row of that menu, `data-key` `delete`, `why` or `put-back`), `data-slot="vk-sort-direction-option"` (a direction to pick on a
890
+ (a row of that menu, `data-key` `delete`, `why` or `put-back`), `data-slot="vk-sort-row-action"` and `data-slot="vk-sort-foot-action"`
891
+ (an app's own button at a rule's end or in the foot, `menus.sortEditor`'s `row` and `foot`, `data-key` its key, VK-1065), `data-slot="vk-sort-direction-option"` (a direction to pick on a
889
892
  phone's step or the narrow form's list, `data-key` `ascending` or `descending`), `data-slot="vk-sort-add"` (Add sort),
890
893
  `data-slot="vk-sort-clear"` (Clear all), `data-slot="vk-sort-foot"` (the row they stand in) and `data-slot="vk-sort-none"`
891
894
  (nothing sorted).
892
895
  - The filter editor (`CONTROLS.FilterBody`): `data-slot="vk-filter"` (the editor), `data-slot="vk-filter-rules"` (a level's list),
893
896
  `data-slot="vk-filter-item"` (a rule's or a group's place in it, `data-index`), `data-slot="vk-filter-rule"` (one rule, `data-key`
894
- its field; a set-aside keeps `data-aside`), `data-slot="vk-filter-where"` (Where), `data-slot="vk-filter-join"` (the And/Or that
897
+ its field, a related record's field its relation and its field joined by a dot, `company.industry`; a set-aside keeps `data-aside`), `data-slot="vk-filter-where"` (Where), `data-slot="vk-filter-join"` (the And/Or that
895
898
  turns its level), `data-slot="vk-filter-joined"` (a later rule's And/Or words), `data-slot="vk-filter-field"` and
896
899
  `data-slot="vk-filter-how"` (its field's and way's boxes, on the box itself, the Select's), `data-slot="vk-filter-value"` (what
897
900
  holds its value's box, its wrapper), `data-slot="vk-filter-rule-more"` (its ⋮),
898
901
  `data-slot="vk-filter-rule-action"` (a row of that menu: Convert to group, the ways a several-values rule matches, Delete, a
899
902
  set-aside's why and Put back, `data-key` `convert`, `any`, `none`, `every`, `delete`, `why`, `put-back`),
903
+ `data-slot="vk-filter-row-action"` and `data-slot="vk-filter-foot-action"` (an app's own button at a rule's end or in a foot,
904
+ `menus.filterEditor`'s `row` and `foot`, `data-key` its key, VK-1065),
900
905
  `data-slot="vk-filter-group"` (a group's well), `data-slot="vk-filter-group-head"` and `data-slot="vk-filter-group-more"` (its head
901
906
  and ⋮), `data-slot="vk-filter-quantifier"` (a related record's group's Any, None or Every, in its head),
902
907
  `data-slot="vk-filter-group-action"` (a row of a group's menu, `data-key` `exclude`), `data-slot="vk-filter-delete"` (Delete at a group's foot), `data-slot="vk-filter-add"` (Add filter),
@@ -1209,8 +1214,11 @@ the reasons a disabled row the grid builds hands your `Menu` as its `disabledRea
1209
1214
  `views.menus.range-not-clearable` (a selection's Cut and Clear: "Nothing in this selection can be emptied"),
1210
1215
  `views.menus.add-column-all-shown-reason` ("+ Add column"'s all-shown row: "No hidden column to add") and
1211
1216
  `views.menus.loading` (a field row's verbs while its record loads: "Wait for current data before editing");
1212
- the grid's own: `views.grid.figure` (`{ kind }`, a footer figure's name, `"none"` included: "None", "Sum", "Avg", "Min",
1213
- "Max", "Count", "Filled", "Unique", "Ratio"), `views.grid.figure-pick` ("Calculate", the offer `vk-grid-figure-pick` in an empty footer cell),
1217
+ the grid's own: `views.grid.figure` (`{ kind }`, a footer figure's name, a row of its picker, `"none"` included: "None",
1218
+ "Sum", "Average", "Min", "Max", "Count", "Count filled", "Count empty", "Percent empty", "Percent filled", "Unique", "Ratio"),
1219
+ `views.grid.figure-word` (`{ kind }`, the word after a footer figure's value, `vk-grid-figure-label`: "count", "empty",
1220
+ "filled", "sum", "average", "min", "max", a percent's "empty" or "filled", "unique", "ratio"; `"none"` an empty word),
1221
+ `views.grid.figure-pick` ("Add calculation", the offer `vk-grid-figure-pick` in an empty footer cell),
1214
1222
  the pager's `views.grid.pager` ("Pages", its name), `views.grid.pager-range` (`{ from, to, total, exact }`, `exact` `"true"` or `"false"`: "26–50 of 213",
1215
1223
  "1–25 of 1,000+" under a capped count, "No rows"), `views.grid.pager-size` (`{ size }`: "25 per page"),
1216
1224
  `views.grid.pager-sizes` ("Rows per page", the size menu's name), `views.grid.pager-previous` ("Previous") and
@@ -1307,7 +1315,7 @@ a `ToolbarButton`'s ✕ badge, which clears what it counts); its Search button a
1307
1315
  its ✕ `views.panels.search-close` ("Close search", while a search its button opened stands open, empty or not) or,
1308
1316
  in a field filling its line, `views.panels.search-clear` once something is typed, and its spinner `views.panels.searching` ("Searching").
1309
1317
  The Sort and Group panels' words: `views.panels.search` ("Search", a long list's search box),
1310
- `views.panels.group-by` ("Group by"), `views.panels.sort` ("Sort"), `views.panels.date-by` ("Date by"),
1318
+ `views.panels.group-by` ("Group by"), `views.panels.sort` ("Sort"), `views.panels.sort-filter` ("Sort and filter", the placed button that shows and hides the filter bar, VK-1091), `views.panels.date-by` ("Date by"),
1311
1319
  `views.panels.hide-empty-groups` ("Hide empty groups"), `views.panels.groups` ("Groups", the heading over the
1312
1320
  group order), `views.panels.groups-hide-all` ("Hide all"), `views.panels.groups-show-all` ("Show all"),
1313
1321
  `views.panels.group-remove` ("Remove grouping") and `views.panels.group-empty` ("—", the empty group's name);
@@ -1483,7 +1491,7 @@ A yes/no cell in the grid, the checkbox style, is your `Checkbox`, the box your
1483
1491
  A field row's own buttons are your `Button`: its edit target in its three shapes (around the value, beside a link's open action, under a rich text), the verb trigger around a value, the lane's ▾ and rich text's Show more, `variant` `ghost`, `size` `sm` (`icon` for the ▾), ViewKit's box in `className` (the target's with `[font:inherit]`, so a value keeps the row's type, and a height that grows with a wrapped value), the look yours.
1484
1492
  A field row's yes/no, the checkbox style, is your `Checkbox`, a Tab stop, one press writing once; a row it can't write is handed `readOnly`.
1485
1493
  The buttons ViewKit draws itself in the toolbar's panels, the search's ✕ and the views row are your `Button`: a filter's select, a range's presets, a stale filter's and a date range's Clear, the Columns list's eyes, new-line marks and a column's opener, the group list's eyes, Clear all, the layout's Reset, show or hide every group, a panel header's back and ✕, Export, Publish and Reset, the "+N" chip, the + and the views picker's chip (outside your own toolbar frame; inside one they are your `ToolbarButton`), a view's row and its ⋯, and the quick filters' fields: `variant` `ghost` (`outline` for a range's presets and the date filter's framed select, `secondary` for the views picker's chip, a filled chip with no border), `size` `icon` or `sm`, ViewKit's box in `className` (a row's with `[font:inherit]` or its own type, so it reads as the rows beside it), the look yours. A trigger is handed a ref it anchors its menu or popover on, `aria-haspopup` and `aria-expanded`; the views row's chips and a view's ⋯ `data-state="open"` or `data-state="closed"`; the new-line mark and a quick filters' field `aria-pressed`; a view's row `role="option"` and `aria-selected`; Export `data-vs-row="true"`, so a host's `[data-vs-row]` insets it as it does Copy link and Share; the search's ✕ and the chips their `data-slot`. A press note and the search's caret ride a `display: contents` span around your `Button`, and a view's ⋯ waits for the pointer on a computer through a span around it carrying `data-desktop`. Your `Button` draws `secondary` and forwards each of those to its element. The `ToolbarButton` atom's parts stay the atom's.
1486
- The popover around a whole body the app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`), in the grid and a field row alike, takes only its layer (and, in a field row, a cap at the screen's width less 2rem), so the app's `Popover` stands at its own width, and `data-vk-body` on it through `panelData`: `picker`, `parts`, `values` or `links`. The phone's sheet takes no class. A grid editor opening a whole body your app hands (`Picker`, `DateBody`, `PartsBody`, `ValuesBody`, `LinksBody`) on a computer hands your `Popover` a `sideOffset` of minus the cell's height and one spacing step (`--vk-spacing`), and an `alignOffset` of minus one step, measured as the editor opens, so a popover placed under its anchor stands a step above the cell's top and a step left of its start, covering the cell and its lines whole rather than doubling them, as long text's panel opens (the kit's `overCell`). Give that popover at least the cell's width and two steps, so it covers the cell's far line too and a press where the cell was lands inside it (ViewKit's own Popover does), and don't let it flip above its anchor: a flipped one takes the same offsets, a step below the cell's bottom. A field row and the phone's sheet open as before.
1494
+ The popover around a whole body the app hands (`Picker`, `PartsBody`, `ValuesBody`, `LinksBody`), in the grid and a field row alike, takes only its layer (and, in a field row, a cap at the screen's width less 2rem), so the app's `Popover` stands at its own width, and `data-vk-body` on it through `panelData`: `picker`, `parts`, `values` or `links`. The phone's sheet takes no class. A grid editor opening a whole body your app hands (`Picker`, `DateBody`, `PartsBody`, `ValuesBody`, `LinksBody`) on a computer hands your `Popover` a `sideOffset` of minus the cell's height and one spacing step (`--vk-spacing`), and an `alignOffset` of minus one step, measured as the editor opens, so a popover placed under its anchor stands a step above the cell's top and a step left of its start, covering the cell and its lines whole rather than doubling them, as long text's panel opens (the kit's `overCell`). Give that popover at least the cell's width and two steps, so it covers the cell's far line too and a press where the cell was lands inside it (ViewKit's own Popover does), and don't let it flip above its anchor: a flipped one takes the same offsets, a step below the cell's bottom. A record's field row under the Field's Open (`data-field-row-open="over"` on a frame round the rows, `FIELD_LOOKS` `row-open: over`; VK-1081) hands your `Popover` a negative `sideOffset`, an `alignOffset` and a `style.minWidth` for every body it opens on a computer: first over the row's box a step up and left of it, as the grid's are, then, once the body is laid out and before it paints, offsets that put the body's first line's words where the value's words were (measured at rest, your popup's opening translate and scale undone by its layout box) and a width that covers the box. It measures again as the popup resizes until the person's first key or input in it, and never while the body holds an `aria-busy="true"` part. Place it as you place any offset; a popup flipped above takes the same offsets. The measure reads the nearest element round the body placed `position: fixed` or `absolute` as your positioner and its child that holds the body as your popup (Base UI's and Radix's popovers both draw them so); with no such element the popover stays a step over the box, its words not aligned. Its first line is the first typed input or visible text in the body, in the order drawn, or the line it marks `data-vk-first-line`. Without the option, and on a phone's sheet, a field row opens as before. A long text under the Field's Long (`data-field-row-long="line"`, `FIELD_LOOKS` `row-long: line`; VK-1082) opens the same way on a computer, whatever the Field's Open says: your `Popover`, marked `data-field-row-long-editor` through `panelData`, holds its textarea, whose first line is its top, border and padding and half its line height; ViewKit's own Popover takes no padding there, and the textarea stops at `--vk-editor-max-h`, then scrolls. Where your `Button` draws a border round the row's value, the textarea stands that border's width in from your popup's edge, taken from that most height, so the popup covers the row's box whole and still stops there (VK-1109).
1487
1495
  And an optional `datePicks` (`ViewsDatePicks`, from `./react`): the quick days the date editors offer, in order, any of
1488
1496
  `today`, `tomorrow`, `next-monday` (the Monday after today, a week on when today is one) and `in-a-week` (today + 7 on
1489
1497
  the conventions' calendar). ViewKit works out each day; the date editor hands exactly these to an app's `DateBody`, `none`
@@ -21,6 +21,7 @@ A row of Field rows may open with a glyph lane (`o-field-row-glyph`), 20 wide, i
21
21
  | `--vk-font-size-xs` | size | `text-xs` | `12px` |
22
22
  | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
23
23
  | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
24
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
24
25
  | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
25
26
  | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
26
27
  | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
@@ -31,6 +31,6 @@ The Select, the Picker, the Menu, the Button, the Input, the Number field, the D
31
31
 
32
32
  Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
33
33
 
34
- `vk-filter`, `vk-filter-rules`, `vk-filter-item`, `vk-filter-rule`, `vk-filter-where`, `vk-filter-joined`, `vk-filter-join`, `vk-filter-field`, `vk-filter-how`, `vk-filter-value`, `vk-filter-rule-more`, `vk-filter-rule-action`, `vk-filter-group`, `vk-filter-group-head`, `vk-filter-quantifier`, `vk-filter-group-more`, `vk-filter-group-action`, `vk-filter-delete`, `vk-filter-add`, `vk-filter-clear`, `vk-filter-foot`, `vk-filter-none`, `vk-filter-excluded`, `vk-filter-head`.
34
+ `vk-filter`, `vk-filter-rules`, `vk-filter-item`, `vk-filter-rule`, `vk-filter-where`, `vk-filter-joined`, `vk-filter-join`, `vk-filter-field`, `vk-filter-how`, `vk-filter-value`, `vk-filter-rule-more`, `vk-filter-rule-action`, `vk-filter-row-action`, `vk-filter-foot-action`, `vk-filter-group`, `vk-filter-group-head`, `vk-filter-quantifier`, `vk-filter-group-more`, `vk-filter-group-action`, `vk-filter-delete`, `vk-filter-add`, `vk-filter-clear`, `vk-filter-foot`, `vk-filter-none`, `vk-filter-excluded`, `vk-filter-head`.
35
35
 
36
36
  Under the provider's `panelControls` its buttons, boxes that pick, menus, popovers and text boxes are the app's own, each handed its part's name (VK-1013). The filter bar's own popover (`FilterPartBody`) names its typed value's box `vk-filter-part-value` and a range's two numbers `vk-filter-part-pair` (VK-1003); its words' box is the app's Input there too, and a date part the date editor with the app's controls (VK-1014, VK-1021); its number boxes are the app's Input too, ViewKit reading the number (VK-1018), and its tooltips the app's Tooltip where `panelControls` names it (VK-1015).
@@ -14,6 +14,6 @@ Its size is the app's too, beside these names: `--vk-menu-w` its width and `--vk
14
14
 
15
15
  ## Its name in a panel
16
16
 
17
- A menu a part names takes `data-slot` (VK-988: `vk-view-menu`; VK-1023: the bulk bar's `vk-bulk-menu`), drawn on its popup on a computer and on its sheet on a phone; its rows take theirs from each entry's `slot` (`PartSlot`). ViewKit's own map Menu (`ViewsMenuProps`) names a named menu's rows `<name>-row`, each by its item's `data-key`; a menu nobody names draws as before.
17
+ A menu a part names takes `data-slot` (VK-988: `vk-view-menu`; VK-1023: the bulk bar's `vk-bulk-menu`), drawn on its popup on a computer and on its sheet on a phone; its rows take theirs from each entry's `slot` (`PartSlot`). ViewKit's own map Menu (`ViewsMenuProps`) names a named menu's rows `<name>-row`, each by its item's `data-key`; a menu nobody names draws no `data-slot`, and each of its rows still carries its item's `data-key`.
18
18
 
19
19
  Name a menu under the panels' prefixes (`vk-view-menu`, `vk-bulk-menu`): any other `vk-` name would make its phone sheet a reset root, and ViewKit's reset would reach inside it (VK-1003).
@@ -30,6 +30,6 @@ The Select, the Picker, the Menu, the Button and the Field rows it draws with re
30
30
 
31
31
  Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
32
32
 
33
- `vk-sort`, `vk-sort-rules`, `vk-sort-rule`, `vk-sort-grip`, `vk-sort-field`, `vk-sort-direction`, `vk-sort-remove`, `vk-sort-rule-open`, `vk-sort-rule-more`, `vk-sort-rule-action`, `vk-sort-direction-option`, `vk-sort-add`, `vk-sort-clear`, `vk-sort-foot`, `vk-sort-none`, `vk-sort-head`.
33
+ `vk-sort`, `vk-sort-rules`, `vk-sort-rule`, `vk-sort-grip`, `vk-sort-field`, `vk-sort-direction`, `vk-sort-remove`, `vk-sort-rule-open`, `vk-sort-rule-more`, `vk-sort-rule-action`, `vk-sort-row-action`, `vk-sort-foot-action`, `vk-sort-direction-option`, `vk-sort-add`, `vk-sort-clear`, `vk-sort-foot`, `vk-sort-none`, `vk-sort-head`.
34
34
 
35
35
  Under the provider's `panelControls` its buttons, boxes that pick, menus, popovers and text boxes are the app's own, each handed its part's name (VK-1013).
@@ -25,6 +25,7 @@ The components map hands the package your primitives: a button, a popover, a men
25
25
  - `CheckRow`, `RadioRow`, `DirectionButton`, `MenuRow` and `PanelSearch`: a tick row, a one-of-a-set row, a sort's direction arrow, a drill-in row and a panel's text box. Only ViewKit's own filter and sort bodies draw them: the older panels a list keeps with `severalSorts: false` or `filterGroups: false`, and the value body a filter rule falls back to where your `FilterPartBody` or `FilterBody` doesn't draw its type. The panels a list opens by default are your bodies (`CustomizeBody`, `SortBody`, `FilterBody` and the rest), handed their rows as data, so swapping these changes only those places.
26
26
  - `Pill`: one option of a row of pills, the views row's (`/panels/react`) and any tab row's.
27
27
  - `RangeCalendar`: the filter panel's month, a day or a range in ISO days. The default is your components map's one-day `Calendar` on the end being picked, and paints no range; hand your own to paint one.
28
+ - `HeaderGlyph`, `HeaderSortMark` and `HeaderResizeHandle`: a grid header cell's chrome, its type glyph before the name, a sorted column's mark after it (where the grid's `sortMark` is on) and what its resize handle shows. Each is drawn where ViewKit's own stood; the cell, its menu, its drag to reorder and the resize's grab zone stay ViewKit's, so sorting from a header, dragging it and resizing it work with yours. `HeaderGlyph` is handed ViewKit's own glyph as `fallback`, to draw, wrap or replace by the column's `type` or `fieldKey`; `HeaderSortMark` the way it sorts, `dir`; `HeaderResizeHandle` whether the column is being resized, `active`. The defaults draw the header as it always was.
28
29
  - `ToolbarButton`: the toolbar's button (`/panels/react`), a glyph in a circle with its word for a dress that shows words, a count that becomes a ✕ badge when it can clear what it counts, and a dot. Hand your own to give the toolbar your buttons' look. `CONTROL_ATOMS.ToolbarButton`, the kit's, draws the count as a count, never that ✕: under it, a part's filters clear from their own panel.
29
30
 
30
31
  The names are `ATOM_NAMES` from `viewkitjs/views`, and the defaults hold exactly those, the deprecated three included.
@@ -406,9 +406,9 @@ A row tints under the pointer. `rowHighlight="active"` tints the active row inst
406
406
 
407
407
  ## Figures
408
408
 
409
- Each column's footer shows one figure: the person's pick from what the column offers (sum, average, min, max and count for a number, count, filled and unique for the rest), else the column's `defaultAggregate`. Pass `aggregates`, the picks by column id, and `onAggregateChange`, which makes each footer cell a picker. On a `viewBacked` list only a column with a field can change its pick. With neither `onAggregateChange` nor a `renderAggregate` of your own, the grid draws no footer. An empty cell that can pick a figure offers one ("Calculate", `views.grid.figure-pick`) under the pointer; the grid's look shows it in every empty cell at rest under Add calculation (`offer`), or wear `data-grid-offer="always"` on a frame round the grid. `renderAggregate(columnId, group)` draws a footer cell yourself, with no label.
409
+ Each column's footer shows one figure: the person's pick from what the column offers, else the column's `defaultAggregate`. The first column offers Count alone (a count anywhere else repeats it); every other column offers Count empty, Count filled, Percent empty and Percent filled, and a number or money also Sum, Average, Min and Max (a percent never sums). A pick the column no longer offers, a Count saved on a column that isn't first or a Unique, reads None and stays saved; so does a declared `defaultAggregate` or `footerKinds` naming one, and a column left with nothing but None to pick draws no picker. Pass `aggregates`, the picks by column id, and `onAggregateChange`, which makes each footer cell a picker: it opens above the cell with its right edge on the cell's, its rows keyed by their figure and reshaped by `menus.figure`. On a `viewBacked` list only a column with a field can change its pick. With neither `onAggregateChange` nor a `renderAggregate` of your own, the grid draws no footer. Every cell is right-aligned, whatever its column's alignment, and a result reads its value and its word (`views.grid.figure-word`: "13 count", "20% empty"). An empty cell that can pick a figure offers one ("Add calculation", `views.grid.figure-pick`) under the pointer and while its picker is open, cut at the cell's edge; the grid's look shows it in every empty cell at rest under Add calculation (`offer`), or wear `data-grid-offer="always"` on a frame round the grid. Under Figures Value first (Attio's) the offer and the word are the rows' size, the word after the value in lower case; Word first, the grid's own, keeps them in small capitals before it. `renderAggregate(columnId, group)` draws a footer cell yourself, with no label.
410
410
 
411
- The footer stands after the last row and scrolls with the rows. `pinFooter` pins it at the foot of the grid's scroll area instead, as a phone's table keeps its count in sight: the rows pass under it, it paints `--vk-ground` while they do (and carries `data-stuck` then; at rest it shows what the grid stands on), it stands `--vk-scroll-inset-bottom` above the edge (so what your app floats there doesn't cover it) and, while rows are selected, a step above the bar your `renderBar` draws, measured where it stands (on a phone the rows then end at the footer's bottom, so nothing of them shows in that step or round the bar): on the foot when it draws none, and the last row clears the bar the same way, pinned footer or not. The grid finds the bar in its frame, where it places what `renderBar` returns, or ViewKit's own `SelectionBar` wherever it is portalled; a bar of yours portalled out of the frame isn't seen. An ungrouped grid's footer stands at the foot even when its rows don't fill the area, and in pages it stands just above the pager. A grouped grid's footers each pin while their group's rows run past the foot, and close their group otherwise. Arrowing to a row never leaves it under the footer.
411
+ The footer stands after the last row and scrolls with the rows, a line under it in the rows' colour. `pinFooter` pins it at the foot of the grid's scroll area instead, as a phone's table keeps its count in sight: the rows pass under it, it paints `--vk-ground` and draws a line along its top while they do (and carries `data-stuck` then; at rest it shows what the grid stands on, the last row's line above it), it stands `--vk-scroll-inset-bottom` above the edge (so what your app floats there doesn't cover it) and, while rows are selected, a step above the bar your `renderBar` draws, measured where it stands (on a phone the rows then end at the footer's bottom, so nothing of them shows in that step or round the bar): on the foot when it draws none, and the last row clears the bar the same way, pinned footer or not. The grid finds the bar in its frame, where it places what `renderBar` returns, or ViewKit's own `SelectionBar` wherever it is portalled; a bar of yours portalled out of the frame isn't seen. On a computer it is never pushed below its last row: under a table shorter than the area it stands right after the last row, and sticks to the foot only once the rows run past it. On a phone an ungrouped grid's footer stands at the foot even when its rows don't fill the area, and in pages just above the pager. A grouped grid's footers each pin while their group's rows run past the foot, and close their group otherwise. Arrowing to a row never leaves it under the footer.
412
412
 
413
413
  A group's band shows its count and, beside it, the figures the person turned on. `groupSummary` is that set of parts (`"count"`, `"total"` for the list's first figure, `total:<columnId>` for each one after it), changed through `onGroupSummaryChange`, and `groupFigures` declares which figures a band can show. Declare one by its `column` and `kind` (`"sum"`, `"avg"` and the rest of the footer's picks), and the grid adds it up and writes it as that column's footer does: the same number, in the column's format and currency, a paged group's from your `figures`, or your own footer cell where `renderAggregate` draws one. Its `label` is the column's header unless you give one. To draw a figure yourself, give `label` and `render(group)` in place of `column` and `kind`. `countNoun` words the count ("2 deals"); without it the count is bare. `countOf` answers the count when a group holds more rows than are loaded.
414
414
 
@@ -210,7 +210,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
210
210
  - `MenuScroll` — what scrolls in a menu's panel: its rows alone, the Scrollbar over them.
211
211
  - `MenuEntry` — a row of a menu: an action, a link, a tick, a choice or actions one level in, a pick under a heading, a group, a separator.
212
212
  - `MenuChoice` — a choice: its value, its name, its mark, its `detail` and its public name (`slot`, a `PartSlot`).
213
- - `PartSlot` — a part's public name (`slot`, its `data-slot`) and which one of its kind it is (`key`, its `data-key`; `index`, its `data-index`): what a `MenuEntry`, a `MenuChoice` and a `PickerItem` carry as `slot`, drawn on the row in every form (VK-988). A `pick` or a `group` names its rows through its choices or entries.
213
+ - `PartSlot` — a part's public name (`slot`, its `data-slot`, optional: a row with a key and no name draws `data-key` alone) and which one of its kind it is (`key`, its `data-key`; `index`, its `data-index`): what a `MenuEntry`, a `MenuChoice` and a `PickerItem` carry as `slot`, drawn on the row in every form (VK-988). A `pick` or a `group` names its rows through its choices or entries.
214
214
  - `MenuListEntry` — a menu's entry with what a row adds: a `note` under its name, an `end` on its right, a `grip`.
215
215
  - `MenuListTile` — one of the few done most, as a tile.
216
216
  - `tilesOf` — `tilesOf(entries, allRows?)`: the first four plain actions as tiles when there are three or more, the rest as rows.
@@ -276,7 +276,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
276
276
  - `useSheetMenus` — whether menus are the Sheet here: on a phone, or in a phone's screen standing on a page.
277
277
  - `MapMenu` — the components map's default `Menu` (`CONTROLS.Menu`): ViewKit's menu rows drawn as the Menu at their anchor; a row carrying its own `slot` drawn with it as its name.
278
278
  - `MapSelect` — the components map's default `Select` (`CONTROLS.Select`): the map's `ViewsSelectProps` drawn as ViewKit's own Select, its list as wide as its rows need, its rows one level in opened in place. The panels draw ViewKit's Select itself unless your own is opted in; hand or wrap this to have ViewKit's back.
279
- - `menuEntries` — `menuEntries(items, notNow?, rowSlot?)`: ViewKit's menu rows (`ViewsMenuItem`) as the Menu's own kinds: ticks that close side by side one pick, a group beside its row a level in, a disabled row saying why; handed `rowSlot` (VK-988), each row and choice named by it, `data-key` its item's key.
279
+ - `menuEntries` — `menuEntries(items, notNow?, rowSlot?)`: ViewKit's menu rows (`ViewsMenuItem`) as the Menu's own kinds: ticks that close side by side one pick, a group beside its row a level in, a disabled row saying why; each row and choice keyed by its item (`slot: { key }`, drawn `data-key`), and handed `rowSlot` (VK-988) named by it too.
280
280
 
281
281
  ## The Avatar
282
282
 
@@ -476,7 +476,7 @@ What an advanced filter opens on a computer and Filter on a phone, Attio's: the
476
476
  - `HOW` — each type's ways, in the order they are offered, the first a new rule's.
477
477
  - `CHECKED` — a yes/no's two values, Checked and Unchecked.
478
478
  - `wayOf` — a type's way by its value.
479
- - `FilterField` — a field a list filters by: a Picker row with its type, a choice's values, a related record's fields one level in.
479
+ - `FilterField` — a field a list filters by: a Picker row with its type, a choice's values, a related record's fields one level in, and its public name `key`, the `data-key` a rule on it draws where its `value` can't be one (absent, its `value`).
480
480
  - `FilterWay` — one way a type compares: its value, its words, what it takes.
481
481
  - `Takes` — what a way takes: one value, several, two, or none.
482
482
  - `FILTER_DEPTH` — how many levels deep rules stand at most: three.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Import from `viewkitjs/views/field-row` in a client component, under your `ViewsProvider`: the door opens with the client directive. It holds a record's field row: one field drawn as its label, its value and, on a click, its type's editor in place, and the write path that admits each edit at once, queues one record's writes, settles each on the save's receipt and rolls a failure back. The row knows no entity, only a binding, a value and a commit, so your app builds its record's panel (its sections, its related records) around the rows. It draws with your provider's `Popover`, `Sheet`, `Collapse`, `AppIcon`, icons, `CommandMenu` atom and toast port. The shapes its writes go through (the write target, the receipt, the admission, a value's note, the reconciliation error) are the root door's, described under [A write's target](views.md#a-writes-target), and this door re-exports them. Guide: [editors](../guides/editors.md).
4
4
 
5
- - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. The row says its form in `data-form`: `computer` (one line), `phone` (the label above the value) or `rows` (a Field rows card's row on a phone); outside a card the two forms differ only by what reads it. A server render can't ask the screen, so a row outside a card stands in both forms, and a card stands whole in both, CSS showing the one your `desktopQuery` picks: a phone's first paint is the phone's, and as the page comes alive the screen's form is the one kept, the very elements the person saw. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. Under the Field's Action (`data-field-row-action="icon"` on a frame round the rows, `FIELD_LOOKS`), a writable row outside a card shows one icon at its box's end on hover and keyboard focus: `edit` where its editor opens in a popover, `expand` for a long text or a rich text, none where the box is the input, or the binding's `action`. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
5
+ - `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. The row says its form in `data-form`: `computer` (one line), `phone` (the label above the value) or `rows` (a Field rows card's row on a phone); outside a card the two forms differ only by what reads it. A server render can't ask the screen, so a row outside a card stands in both forms, and a card stands whole in both, CSS showing the one your `desktopQuery` picks: a phone's first paint is the phone's, and as the page comes alive the screen's form is the one kept, the very elements the person saw. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop (or, under the Field's Open, `data-field-row-open="over"` on a frame round the rows, on top of the row's box, its first line's words where the value's were and covering the box, nothing under it moving; flipped above, it keeps the same offsets; a name's, a range's, a place's and a single email's or domain's body open the same way) and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A Tab pressed while that exit plays (a Tab at once after a pick by the keys) is the person going on: it is taken from the row's button once the button is back, so the focus lands on the next control after the row (Shift-Tab, the one before), as a later Tab does. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), a long one ending before that action; under the Field's Link (`data-field-row-link="words"` on a frame round the rows, `FIELD_LOOKS` `row-link`), outside a phone's Field rows card, its words are the link instead and the rest of its box edits, the row's button laid under them as a rich text's is and named by the label alone, no action beside it; and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A value asked for one line (`opts.wrap: false`) ends in its "…" before the row's action, or at its box's end. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. Under the Field's Action (`data-field-row-action="icon"` on a frame round the rows, `FIELD_LOOKS`), a writable row outside a card shows one icon at its box's end on hover and keyboard focus: `edit` where its editor opens in a popover, `expand` for a long text or a rich text, none where the box is the input, or the binding's `action`. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. Under the Field's Long (`data-field-row-long="line"` on a frame round the rows, `FIELD_LOOKS` `row-long`), a writable long or rich text reads one line at rest, its end fading, and a writable text one line ending in "…"; on a desktop the long text's `TextBody` opens on top of the row's box in your `Popover` instead, its first line where the words were, growing down to `--vk-editor-max-h`, then scrolling, the row keeping its value under it; on a phone it stays in place. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
6
6
  - `FieldRowProps` — the row's props: `binding`, `row`, `value` (the display value), `editValue` (the stored value the editor opens on), `writable`, `ready` (false refuses gestures while the record loads), `unread` (the value isn't read yet, drawn blank), `refusal` (why it's read-only here), `onCommit` (admits or refuses a draft, then settles; an editor still open when the page or the row goes is asked as for a press outside, so it can be called inside `pagehide`), `opts` (display options), `menu` (a `command` field's verbs), `meta` (a few words in the value's line), `note` (a sentence under the value, with an optional quote a tap opens) and `kindIcon` (your icon name for a record kind, the glyph a relation's candidates wear; unanswered, they wear the type's glyph).
7
7
  - `RowEditor` — the editor a row mounts for its field's type, picked from `ROW_HOSTS`.
8
8
  - `ROW_HOSTS` — the host each field type mounts in a row, or `null` for a type the row never opens (a boolean, a derived or system field).