viewkitjs 0.39.0 → 0.40.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 (179) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/MIGRATION.md +25 -0
  3. package/fields/dist/derived.d.ts +7 -0
  4. package/fields/dist/derived.js +4 -0
  5. package/fields/dist/index.d.ts +1 -1
  6. package/fields/dist/index.js +1 -1
  7. package/fields/dist/messages.d.ts +5 -1
  8. package/fields/dist/messages.js +3 -0
  9. package/fields/dist/query/evaluate.d.ts +7 -1
  10. package/fields/dist/query/evaluate.js +8 -5
  11. package/fields/dist/query/filter.d.ts +7 -0
  12. package/fields/dist/query/filter.js +7 -1
  13. package/fields/dist/query/kit.d.ts +3 -2
  14. package/fields/dist/query/kit.js +1 -1
  15. package/fields/dist/query/layer.d.ts +6 -0
  16. package/fields/dist/query/layer.js +3 -0
  17. package/fields/dist/query/number.d.ts +3 -2
  18. package/fields/dist/query/number.js +5 -3
  19. package/fields/dist/query/read-rule.d.ts +1 -1
  20. package/fields/dist/query/read-rule.js +3 -0
  21. package/fields/docs/guides/queries.md +28 -24
  22. package/fields/docs/reference/fields.md +1 -0
  23. package/fields/docs/reference/query.md +6 -4
  24. package/package.json +2 -4
  25. package/postgres/dist/check.js +3 -1
  26. package/postgres/dist/definitions/storage.d.ts +3 -1
  27. package/postgres/dist/definitions/storage.js +3 -1
  28. package/postgres/dist/definitions/stored.js +13 -2
  29. package/postgres/dist/map.d.ts +5 -1
  30. package/postgres/dist/map.js +4 -0
  31. package/postgres/dist/records.js +6 -1
  32. package/postgres/docs/guides/definitions.md +1 -1
  33. package/postgres/docs/guides/field-map.md +2 -2
  34. package/postgres/docs/reference/postgres.md +1 -1
  35. package/views/dist/contract.d.ts +20 -2
  36. package/views/dist/contract.js +27 -0
  37. package/views/dist/controls/avatar.css +1 -1
  38. package/views/dist/controls/customize/map-customize-body.js +1 -1
  39. package/views/dist/controls/field/field.d.ts +2 -14
  40. package/views/dist/controls/field/field.js +4 -9
  41. package/views/dist/controls/filter-editor/filter-editor.d.ts +2 -0
  42. package/views/dist/controls/filter-editor/filter-editor.js +5 -2
  43. package/views/dist/controls/filter-editor/how.d.ts +8 -0
  44. package/views/dist/controls/filter-editor/map-filter-body.d.ts +4 -2
  45. package/views/dist/controls/filter-editor/map-filter-body.js +17 -8
  46. package/views/dist/controls/filter-editor/map-rules.d.ts +4 -3
  47. package/views/dist/controls/filter-editor/map-rules.js +5 -2
  48. package/views/dist/controls/filter-editor/parts.d.ts +14 -1
  49. package/views/dist/controls/filter-editor/parts.js +14 -0
  50. package/views/dist/controls/filter-editor.css +4 -1
  51. package/views/dist/controls/index.d.ts +0 -3
  52. package/views/dist/controls/index.js +0 -3
  53. package/views/dist/controls/input.css +1 -1
  54. package/views/dist/controls/menu-list.css +1 -1
  55. package/views/dist/controls/picker/looks.d.ts +1 -1
  56. package/views/dist/controls/picker.css +2 -2
  57. package/views/dist/controls/press.css +0 -1
  58. package/views/dist/controls/radio/radio.d.ts +1 -1
  59. package/views/dist/controls/radio/radio.js +1 -16
  60. package/views/dist/controls/sheet/bottom-sheet.d.ts +2 -2
  61. package/views/dist/controls/sheet/bottom-sheet.js +31 -24
  62. package/views/dist/controls/text-editor.css +5 -3
  63. package/views/dist/controls/tokens.js +0 -6
  64. package/views/dist/controls/toolbar/toolbar.js +2 -2
  65. package/views/dist/field-row/editors/RowTextEditor.js +4 -1
  66. package/views/dist/filters/duration-bound.d.ts +7 -0
  67. package/views/dist/filters/duration-bound.js +9 -0
  68. package/views/dist/filters/filter-model.d.ts +4 -0
  69. package/views/dist/filters/number-refused.d.ts +8 -0
  70. package/views/dist/filters/number-refused.js +4 -0
  71. package/views/dist/grid/chrome/grid-table-props.d.ts +4 -1
  72. package/views/dist/grid/chrome/useGridTableInteractionModel.js +12 -2
  73. package/views/dist/grid/core/clipboard-model.js +42 -8
  74. package/views/dist/grid/core/commit-model.d.ts +3 -0
  75. package/views/dist/grid/core/editing-controller.d.ts +29 -1
  76. package/views/dist/grid/core/editing-controller.js +142 -12
  77. package/views/dist/grid/core/pending-reconciliation.d.ts +14 -0
  78. package/views/dist/grid/core/pending-reconciliation.js +20 -8
  79. package/views/dist/grid/core/save-path.d.ts +4 -2
  80. package/views/dist/grid/core/save-path.js +1 -1
  81. package/views/dist/grid/core/spreadsheet-operations.js +43 -5
  82. package/views/dist/grid/core/useGridEditing.d.ts +5 -1
  83. package/views/dist/grid/core/useGridEditing.js +4 -4
  84. package/views/dist/grid/core/written-alongside.d.ts +16 -0
  85. package/views/dist/grid/core/written-alongside.js +30 -0
  86. package/views/dist/grid/grid.css +1 -1
  87. package/views/dist/grid/index.d.ts +1 -1
  88. package/views/dist/grid/looks.d.ts +2 -2
  89. package/views/dist/internal/before-paint.d.ts +5 -0
  90. package/views/dist/internal/before-paint.js +17 -0
  91. package/views/dist/internal/field-rows.d.ts +0 -8
  92. package/views/dist/internal/field-rows.js +1 -3
  93. package/views/dist/list/bar-keys.d.ts +3 -0
  94. package/views/dist/list/bar-keys.js +1 -0
  95. package/views/dist/list/buttons/clear-save.js +6 -2
  96. package/views/dist/list/buttons/new.d.ts +1 -1
  97. package/views/dist/list/buttons/new.js +14 -2
  98. package/views/dist/list/buttons/shared.d.ts +7 -1
  99. package/views/dist/list/buttons/shared.js +8 -2
  100. package/views/dist/list/buttons/views.js +6 -4
  101. package/views/dist/list/edits.d.ts +3 -1
  102. package/views/dist/list/layer.d.ts +13 -3
  103. package/views/dist/list/layer.js +13 -3
  104. package/views/dist/list/line.d.ts +5 -2
  105. package/views/dist/list/line.js +11 -3
  106. package/views/dist/list/list.d.ts +7 -1
  107. package/views/dist/list/list.js +2 -2
  108. package/views/dist/list/panels/filter-bar.d.ts +1 -1
  109. package/views/dist/list/panels/filter-bar.js +9 -3
  110. package/views/dist/list/panels/shared.d.ts +3 -2
  111. package/views/dist/list/panels/shared.js +5 -2
  112. package/views/dist/list/root-base.d.ts +2 -1
  113. package/views/dist/list/root-base.js +5 -3
  114. package/views/dist/list/root.d.ts +1 -1
  115. package/views/dist/list/store.d.ts +10 -0
  116. package/views/dist/list/store.js +8 -1
  117. package/views/dist/list/toolbar-model.d.ts +4 -0
  118. package/views/dist/list/toolbar-model.js +19 -1
  119. package/views/dist/list/toolbar.js +2 -1
  120. package/views/dist/list/views.d.ts +1 -1
  121. package/views/dist/list/views.js +4 -1
  122. package/views/dist/looks/index.d.ts +0 -1
  123. package/views/dist/looks/index.js +0 -1
  124. package/views/dist/looks/looks.d.ts +1 -1
  125. package/views/dist/looks/pieces.js +0 -2
  126. package/views/dist/model/column-filters.js +10 -3
  127. package/views/dist/model/view-rules.js +1 -0
  128. package/views/dist/panels/filter/NumberFilterBody.js +6 -8
  129. package/views/dist/panels/labels.js +7 -2
  130. package/views/dist/panels/model.d.ts +3 -0
  131. package/views/dist/panels/react/filter/filter-body.js +5 -1
  132. package/views/dist/panels/react/toolbar/ToolbarBarSorts.js +28 -1
  133. package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +1 -1
  134. package/views/dist/panels/react/toolbar/ToolbarButton.js +5 -3
  135. package/views/dist/panels/react/toolbar/context.d.ts +4 -0
  136. package/views/dist/panels/react/toolbar/context.js +1 -0
  137. package/views/dist/panels/react/toolbar/use-give-way.js +2 -2
  138. package/views/dist/panels/settings/filter-groups.js +5 -0
  139. package/views/dist/panels/settings/input.d.ts +11 -0
  140. package/views/dist/panels/settings/layout.js +26 -0
  141. package/views/dist/panels/settings/person.d.ts +15 -0
  142. package/views/dist/panels/settings/person.js +6 -0
  143. package/views/dist/panels/toolbar/page-resets.js +14 -3
  144. package/views/dist/provider/components.d.ts +12 -3
  145. package/views/dist/styles.css +16 -260
  146. package/views/dist/styles.unlayered.css +16 -260
  147. package/views/docs/contract.md +9 -7
  148. package/views/docs/controls/field.md +1 -1
  149. package/views/docs/guides/looks.md +1 -1
  150. package/views/docs/guides/the-grid.md +4 -2
  151. package/views/docs/guides/toolbar-parts.md +337 -0
  152. package/views/docs/index.md +4 -0
  153. package/views/docs/reference/controls.md +3 -41
  154. package/views/docs/reference/grid.md +4 -3
  155. package/views/docs/reference/list.md +24 -13
  156. package/views/docs/reference/looks.md +12 -15
  157. package/views/docs/reference/panels.md +1 -1
  158. package/views/docs/reference/react.md +3 -3
  159. package/views/docs/reference/views.md +1 -1
  160. package/views/dist/controls/setting-row/looks.d.ts +0 -10
  161. package/views/dist/controls/setting-row/looks.js +0 -22
  162. package/views/dist/controls/setting-row/setting-row.d.ts +0 -102
  163. package/views/dist/controls/setting-row/setting-row.js +0 -135
  164. package/views/dist/controls/setting-row/tokens.d.ts +0 -156
  165. package/views/dist/controls/setting-row/tokens.js +0 -41
  166. package/views/dist/controls/setting-row.css +0 -216
  167. package/views/dist/controls/switch-row/switch-row.d.ts +0 -1
  168. package/views/dist/controls/switch-row/switch-row.js +0 -1
  169. package/views/dist/controls/switch-row/tokens.d.ts +0 -39
  170. package/views/dist/controls/switch-row/tokens.js +0 -12
  171. package/views/dist/controls/switch-row.css +0 -35
  172. package/views/dist/controls/tag-field/tag-field.d.ts +0 -24
  173. package/views/dist/controls/tag-field/tag-field.js +0 -25
  174. package/views/dist/controls/tag-field/tokens.d.ts +0 -23
  175. package/views/dist/controls/tag-field/tokens.js +0 -8
  176. package/views/dist/controls/tag-field.css +0 -32
  177. package/views/docs/controls/setting-row.md +0 -44
  178. package/views/docs/controls/switch-row.md +0 -15
  179. package/views/docs/controls/tag-field.md +0 -11
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.39.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.40.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]) *),
@@ -459,7 +459,7 @@
459
459
  line as a record's icon is; a mark with no colour of its own (Codex's, Grok's) takes the text's ink, as the canvas drew it. */
460
460
  .o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
461
461
  /* On a phone an agent's square on its own colour stands bold, as iOS draws an app's tile (round 3 of the settings canvas): the hue
462
- under a white letter, as the setting row's Tile draws its icons; grey the quietest ink. A thing's, the workspace's included,
462
+ under a white letter, as iOS's Settings draws its icons; grey the quietest ink. A thing's, the workspace's included,
463
463
  keeps the hue's fill. */
464
464
  .o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
465
465
  .o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
@@ -2040,7 +2040,10 @@ button.o-field-row { cursor: pointer; }
2040
2040
  /* ── VK-827: a group that excludes its matches says so over its rules; a relation rule's block is a group's well with a head, its
2041
2041
  relation's name and its quantifier's box, laid out as ViewKit's own block (Mihai, 29 Nov 2026: built from the kit's parts); a
2042
2042
  group's ⋮ ends its foot, after Delete group, as a rule's ends its row ─────────────────────────────────────────────────────── */
2043
- .o-filter-editor-excluded {
2043
+ /* Why a whole rule filters nothing (VK-17), on a line of its own under the rule's boxes. */
2044
+ .o-filter-editor-boxes:has(> .o-filter-editor-note) { flex-wrap: wrap; }
2045
+ .o-filter-editor-note { flex: 1 1 100%; }
2046
+ .o-filter-editor-excluded, .o-filter-editor-note {
2044
2047
  margin: 0; color: var(--vk-fg-subtle); font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium);
2045
2048
  line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs));
2046
2049
  }
@@ -3738,7 +3741,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
3738
3741
  .o-picker .o-list-main { flex: 0 1 auto; }
3739
3742
  .o-picker .o-list-line { flex: 1 1 0; min-width: 0; }
3740
3743
  [data-picker-line="below"] .o-picker .o-list-text { display: grid; gap: var(--vk-border-width); }
3741
- /* Below is the default (My preset's): where no frame picks a second line, at the picked rule's weight. */
3744
+ /* Below is the default: where no frame picks a second line, at the picked rule's weight. */
3742
3745
  .o-picker:not([data-picker-line] *) .o-list-text { display: grid; gap: var(--vk-border-width); }
3743
3746
 
3744
3747
  /* The check in the brand's circle at a row's end (Held: Check, Attio's), seen only on the row the field holds. */
@@ -3922,7 +3925,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
3922
3925
  .o-picker-message-text { flex: 0 1 auto; }
3923
3926
  [data-picker-doing="start"] .o-picker-message { justify-content: flex-start; text-align: left; }
3924
3927
  [data-picker-doing="start"] .o-picker-message-text { flex: 1; }
3925
- /* At the start is the default (My preset's): where no frame picks what the list is doing, at the picked rules' weight. */
3928
+ /* At the start is the default: where no frame picks what the list is doing, at the picked rules' weight. */
3926
3929
  .o-picker-message:not([data-picker-doing] *) { justify-content: flex-start; text-align: left; }
3927
3930
  .o-picker-message-text:not([data-picker-doing] *) { flex: 1; }
3928
3931
  .o-picker-more { display: flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 2); min-height: calc(var(--vk-spacing) * 8); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
@@ -4140,7 +4143,6 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
4140
4143
  .o-input-addon:is([data-side="start"], [data-side="end"]) > .o-button { --pressing-room-x: calc(var(--vk-spacing) * 0.75); }
4141
4144
  .o-input-addon:is([data-side="top"], [data-side="bottom"]) > .o-button { --pressing-room-x: calc(var(--vk-spacing) * 0.5); }
4142
4145
  :is(.o-check:not(.o-check-row), .o-radio):not(.o-radio-row > *, :has(.o-choice-note)):is(:has(+ :is(.o-check, .o-radio)), :is(.o-check, .o-radio) + *) > :is(.o-check-box, .o-radio-ring) { --pressing-room-y: calc(var(--vk-spacing) * 2); }
4143
- .o-tag-field .o-tag-remove { --pressing-room-x: calc(var(--vk-spacing) * 0.75); --pressing-room-y: calc(var(--vk-spacing) * 1.5); }
4144
4146
  .o-select-chips .o-tag-remove { --pressing-room-x: calc(var(--vk-spacing) * 0.5); --pressing-room-y: calc(var(--vk-spacing) * 1); }
4145
4147
  /* Options side by side, 6px apart in a row and between their lines: a link half that each way. */
4146
4148
  .o-options > .o-option[data-link] { --pressing-room-x: calc(var(--vk-spacing) * 0.75); --pressing-room-y: calc(var(--vk-spacing) * 0.75); }
@@ -4606,200 +4608,6 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
4606
4608
 
4607
4609
  @media (prefers-reduced-motion: reduce) { .o-select-chevron { transition: none; } }
4608
4610
 
4609
- /* ── The options: each value sets the card's or the rows' own names, read below ─────────────────────────────────────── */
4610
- :where([data-setting-row-card="raised"]) .o-setting-rows { --setting-rows-edge: var(--vk-border-subtle); --setting-rows-ground: var(--vk-raised); }
4611
- :where([data-setting-row-rows="roomy"]) :is(.o-setting-rows, .o-setting-row) {
4612
- --setting-rows-pad: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4.5); --setting-rows-height: calc(var(--vk-spacing) * 16);
4613
- --setting-rows-side: calc(var(--vk-spacing) * 16);
4614
- }
4615
- .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border-danger); }
4616
- /* Edged (Linear's): the card on its ground with a firm edge; its danger zone's plain, only its action red. */
4617
- :where([data-setting-row-card="edged"]) .o-setting-rows { --setting-rows-edge: var(--vk-border); --setting-rows-ground: var(--vk-raised); }
4618
- :where([data-setting-row-card="edged"]) .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border); }
4619
- /* Inset (Linear's): 60 tall at least, 15 by 16, the line between rows inset 16 at each end. */
4620
- :where([data-setting-row-rows="inset"]) :is(.o-setting-rows, .o-setting-row) {
4621
- --setting-rows-pad: calc(var(--vk-spacing) * 3.75) calc(var(--vk-spacing) * 4); --setting-rows-height: calc(var(--vk-spacing) * 15);
4622
- --setting-rows-side: calc(var(--vk-spacing) * 15);
4623
- }
4624
-
4625
- /* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
4626
- .o-setting-rows:not(.o-field-rows) {
4627
- display: grid; border: var(--vk-border-width) solid var(--setting-rows-edge, var(--vk-border)); border-radius: var(--vk-radius-lg); overflow: hidden;
4628
- background-color: var(--setting-rows-ground, transparent);
4629
- }
4630
-
4631
- /* ── A row, on a computer: its start, its words, its end ───────────────────────────────────────────────────────────── */
4632
- .o-setting-row:not(.o-field-row) {
4633
- display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4); box-sizing: border-box;
4634
- min-height: var(--setting-rows-height, auto); margin: 0; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
4635
- border: 0; border-top: var(--vk-border-width) solid var(--vk-border-subtle);
4636
- -webkit-tap-highlight-color: transparent; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
4637
- }
4638
- .o-setting-row:not(.o-field-row):first-child { border-top: 0; }
4639
- .o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
4640
- .o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
4641
- /* The row that is a press as a whole: the one opening its page (a button). A switch's row is not: only its Switch switches it
4642
- (KIT-969), so it takes no pointer and no ground under it. */
4643
- button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
4644
- .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row) { cursor: pointer; }
4645
- @media (hover: hover) { .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row):hover { background-color: var(--vk-hovered); } }
4646
- .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row)[data-locked] { cursor: not-allowed; background-color: transparent; }
4647
-
4648
- /* Its start: a mark as given; an icon in its box. */
4649
- .o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
4650
- .o-setting-row-icon {
4651
- display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 8);
4652
- border: var(--vk-border-width) solid var(--vk-border-subtle); border-radius: var(--vk-radius-md); background-color: var(--vk-raised); color: var(--vk-fg-subtle);
4653
- }
4654
- .o-setting-row-icon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
4655
-
4656
- /* Its end: the reason, then the control; the Select 220 wide; the value and ›. */
4657
- .o-setting-row-end { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); margin-left: auto; min-width: 0; }
4658
- .o-setting-row-select { width: calc(var(--vk-spacing) * 55); }
4659
- .o-setting-row-select .o-select-field { width: 100%; }
4660
- .o-setting-row-reason { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtlest); }
4661
- .o-setting-row-reason + .o-switch { margin-left: calc(var(--vk-spacing) * -2); }
4662
- .o-setting-row-value { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
4663
- .o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
4664
- /* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
4665
- .o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity: var(--vk-opacity-off); }
4666
-
4667
- /* A lone row: bare, no card, no line, no room round it. */
4668
- .o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
4669
-
4670
- /* ── Linear's values on a computer ─────────────────────────────────────────────────────────────────────────────────── */
4671
- /* Edged: a lone row a card of its own, the rows' room in it; an icon on a grey tile, no edge. */
4672
- :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
4673
- min-height: var(--setting-rows-height, auto); padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
4674
- border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); background-color: var(--vk-raised);
4675
- }
4676
- :where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) {
4677
- border: 0; border-radius: var(--vk-radius-sm); background-color: var(--vk-neutral);
4678
- }
4679
- :where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
4680
- /* Inset: the line between rows from 16 in to 16 short, drawn under a row's own ground. */
4681
- :where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > :is(.o-setting-row, .o-field) { border-top: 0; }
4682
- :where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > * + :is(.o-setting-row, .o-field) {
4683
- background-image: linear-gradient(var(--vk-border-subtle), var(--vk-border-subtle)); background-repeat: no-repeat;
4684
- background-size: calc(100% - var(--vk-spacing) * 8) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
4685
- }
4686
- /* Words: an action as its words, the row's own press, 28 tall, in the text colour, red where it can't be undone; its icon alone
4687
- a 24 press in the subtle text. */
4688
- .o-setting-row:not(.o-field-row) .o-setting-row-act {
4689
- display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--vk-spacing) * 7); margin: 0;
4690
- padding: 0 calc(var(--vk-spacing) * 1.75); border: 0; border-radius: var(--vk-radius-sm); font: inherit; font-size: var(--vk-font-size-sm);
4691
- line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); white-space: nowrap;
4692
- color: var(--vk-fg); background-color: transparent; cursor: pointer; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
4693
- }
4694
- .o-setting-row:not(.o-field-row) .o-setting-row-act[data-kind="danger"] { color: var(--vk-danger); }
4695
- .o-setting-row:not(.o-field-row) .o-setting-row-act[data-icon] { width: calc(var(--vk-spacing) * 6); min-height: calc(var(--vk-spacing) * 6); padding: 0; color: var(--vk-fg-subtle); }
4696
- .o-setting-row:not(.o-field-row) .o-setting-row-act > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
4697
- @media (hover: hover) { .o-setting-row:not(.o-field-row) .o-setting-row-act:hover:not(:disabled) { background-color: var(--vk-hovered); } }
4698
- .o-setting-row:not(.o-field-row) .o-setting-row-act:disabled { cursor: not-allowed; opacity: var(--vk-opacity-off); }
4699
- /* A state as a dot in its colour and its words in the text colour; with no colour, its words alone. */
4700
- .o-setting-row-said {
4701
- display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; color: var(--vk-fg);
4702
- font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
4703
- }
4704
- .o-setting-row-dot { flex: none; width: calc(var(--vk-spacing) * 1.5); height: calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full); background-color: var(--setting-row-dot, var(--vk-fg-subtlest)); }
4705
- .o-setting-row-dot[data-colour="blue"] { --setting-row-dot: var(--vk-label-blue); }
4706
- .o-setting-row-dot[data-colour="green"] { --setting-row-dot: var(--vk-label-green); }
4707
- .o-setting-row-dot[data-colour="amber"] { --setting-row-dot: var(--vk-label-amber); }
4708
- .o-setting-row-dot[data-colour="red"] { --setting-row-dot: var(--vk-label-red); }
4709
- .o-setting-row-dot[data-colour="purple"] { --setting-row-dot: var(--vk-label-purple); }
4710
- .o-setting-row-dot[data-colour="pink"] { --setting-row-dot: var(--vk-label-pink); }
4711
- .o-setting-row-dot[data-colour="teal"] { --setting-row-dot: var(--vk-label-teal); }
4712
- /* A locked row under Words: its words greyed, its reason at the row's size. */
4713
- :where([data-setting-row-end="words"]) .o-setting-row[data-locked]:not(.o-field-row) :is(.o-choice-label, .o-choice-note) { color: var(--vk-fg-subtlest); }
4714
- :where([data-setting-row-end="words"]) .o-setting-row:not(.o-field-row) .o-setting-row-reason { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
4715
- /* At the end: a Field in the card is its row (field.tsx), its error red in its note's place, its Input or InputGroup 256 wide at
4716
- the row's end, 64 tall at least under Inset, 16 above and below; every select at a row's end as wide as its value. */
4717
- .o-setting-row-field > .o-choice-text { flex: 1 1 auto; min-width: 0; }
4718
- .o-setting-row-field .o-setting-row-error { color: var(--vk-danger); }
4719
- .o-setting-row-field > .o-setting-row-end > :is(.o-input, .o-input-group) { width: calc(var(--vk-spacing) * 64); }
4720
- :where([data-setting-row-rows="inset"]) .o-setting-row-field { --setting-rows-height: calc(var(--vk-spacing) * 16); --setting-rows-pad: calc(var(--vk-spacing) * 4); }
4721
- :where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) { width: auto; }
4722
- :where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) .o-select-field { width: auto; }
4723
- /* Boxes: a Field placed in a computer's card stands as a row, the rows' room round it and the line above it. */
4724
- .o-setting-rows:not(.o-field-rows) > .o-field { box-sizing: border-box; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4)); border-top: var(--vk-border-width) solid var(--vk-border-subtle); }
4725
- .o-setting-rows:not(.o-field-rows) > .o-field:first-child { border-top: 0; }
4726
-
4727
- /* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
4728
- .o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
4729
- .o-setting-row-press {
4730
- display: flex; flex: 1 1 auto; align-items: center; gap: calc(var(--vk-spacing) * 3); align-self: stretch; min-width: 0; margin: 0; padding: 0;
4731
- border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
4732
- }
4733
- .o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
4734
- .o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
4735
- .o-setting-rows-danger.o-field-rows :is(.o-choice-label, .o-setting-row-icon) { color: var(--vk-danger); }
4736
- .o-setting-row.o-field-row .o-setting-row-end { gap: calc(var(--vk-spacing) * 3); }
4737
- .o-setting-row.o-field-row .o-setting-row-value { max-width: calc(var(--vk-spacing) * 47.5); color: var(--vk-fg-subtlest); }
4738
- .o-setting-row-chevron[data-phone] {
4739
- width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 3.75); margin: 0 calc(var(--vk-spacing) * 0.5) 0 calc(var(--vk-spacing) * 0.25); color: var(--vk-icon-disclosure);
4740
- }
4741
- /* One group, one way: a card where any row has a start (an icon, or a mark) gives every row the start's room, 28 an icon's or 32
4742
- when a mark stands in it, so every row's words stand in one line; and each row's rule starts at the words, as iOS's Settings. */
4743
- .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) { --setting-rows-start: calc(var(--vk-spacing) * 7); }
4744
- .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start="mark"]) { --setting-rows-start: calc(var(--vk-spacing) * 8); }
4745
- .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row:not([data-setting-row-start]) { padding-left: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)); }
4746
- .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row + .o-setting-row {
4747
- background-position: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)) 0;
4748
- background-size: calc(100% - var(--vk-spacing) * 7 - var(--setting-rows-start) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
4749
- }
4750
- /* A button's words at the row's end, a press of their own, a finger's height. */
4751
- .o-setting-row-act {
4752
- display: inline-flex; align-items: center; min-height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0; border: 0; border-radius: var(--vk-radius-md);
4753
- font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: nowrap; color: var(--vk-fg-brand); background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
4754
- }
4755
- .o-setting-row-act:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
4756
- .o-setting-row-act:disabled { cursor: not-allowed; }
4757
- /* A lone row: the row the press, its name in the link colour. */
4758
- .o-setting-row.o-field-row[data-alone] .o-choice-label { color: var(--vk-fg-brand); }
4759
- /* Locked: faded, but its line (the reason) kept; its Switch fades itself (switch.css). */
4760
- .o-setting-row.o-field-row[data-locked] :is(.o-choice-label, .o-setting-row-icon, .o-setting-row-value, .o-setting-row-chevron, .o-setting-row-act),
4761
- .o-setting-row.o-field-row[data-locked] > :first-child:not(.o-choice-text, .o-setting-row-press),
4762
- .o-setting-row.o-field-row[data-locked] > .o-setting-row-press > :first-child:not(.o-choice-text) { opacity: var(--vk-opacity-off); }
4763
-
4764
- /* ── Its icon on a phone, by the Icon option: Line, nothing picked, the glyph alone in the subtle text in a 28 box; Tile, a white
4765
- glyph on a 28 tile of the colour the app passed (data-colour, a label colour), grey when it passed none. The danger zone's
4766
- icons stay lines. Drawn wherever it stands on a phone, a row's start or a list's (SettingIcon). ─────────────────────────── */
4767
- .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) {
4768
- width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); border: 0; border-radius: 0; background-color: transparent; color: var(--vk-fg-subtle);
4769
- }
4770
- .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: calc(var(--vk-spacing) * 0.4); }
4771
- :where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) {
4772
- border-radius: var(--vk-radius-md); background-color: var(--setting-row-tile, var(--vk-fg-subtlest)); color: var(--vk-fg-inverse);
4773
- }
4774
- :where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); stroke-width: calc(var(--vk-spacing) * 0.5); }
4775
- .o-setting-row-icon[data-colour="blue"] { --setting-row-tile: var(--vk-label-blue); }
4776
- .o-setting-row-icon[data-colour="green"] { --setting-row-tile: var(--vk-label-green); }
4777
- .o-setting-row-icon[data-colour="amber"] { --setting-row-tile: var(--vk-label-amber); }
4778
- .o-setting-row-icon[data-colour="red"] { --setting-row-tile: var(--vk-label-red); }
4779
- .o-setting-row-icon[data-colour="purple"] { --setting-row-tile: var(--vk-label-purple); }
4780
- .o-setting-row-icon[data-colour="pink"] { --setting-row-tile: var(--vk-label-pink); }
4781
- .o-setting-row-icon[data-colour="teal"] { --setting-row-tile: var(--vk-label-teal); }
4782
-
4783
- @media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
4784
-
4785
- /* ── The card's corners smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every
4786
- browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its smallest row, as a
4787
- control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it; its
4788
- edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
4789
- @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
4790
- .o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
4791
- --smooth-amount: var(--vk-corner-smoothing);
4792
- --setting-rows-fit: min(var(--vk-radius-lg), var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm))) / (2 + 2 * var(--smooth-amount, 0.7)));
4793
- --smooth-t: var(--setting-rows-fit); --smooth-side: var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm)));
4794
- position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
4795
- }
4796
- .o-setting-rows:not(.o-field-rows)::after, :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row)::after {
4797
- --smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
4798
- content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
4799
- background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
4800
- }
4801
- }
4802
-
4803
4611
  .o-sheet, .o-sheet-backdrop, .o-sheet-below {
4804
4612
  --sheet-spring: var(--vk-spring-quick); --sheet-spring-ease: var(--vk-ease-spring-quick); --sheet-spring-time: var(--vk-duration-spring-quick);
4805
4613
  }
@@ -5370,34 +5178,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5370
5178
  row's, its mark and its height as above. */
5371
5179
  .o-status.vk-status-row { font-size: inherit; }
5372
5180
 
5373
- /* ── Settings rows: the words on the left, the switch on the right, in a bordered box ──────────────── */
5374
- .o-switch-rows { display: grid; border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); overflow: hidden; }
5375
- .o-switch-row {
5376
- display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
5377
- padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
5378
- -webkit-tap-highlight-color: transparent;
5379
- }
5380
- .o-switch-row:first-child { border-top: 0; }
5381
- .o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
5382
- /* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
5383
- that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
5384
- Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
5385
- more; its edge is a ring along the curve over its rows (::after), as the Kbd's is. The Switch itself, a pill, stays as it
5386
- draws. ── */
5387
- @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
5388
- .o-switch-rows {
5389
- --smooth-amount: var(--vk-corner-smoothing); --rows-card-side: calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm));
5390
- --rows-card-fit: min(var(--vk-radius-lg), var(--rows-card-side) / (2 + 2 * var(--smooth-amount, 0.7)));
5391
- --smooth-t: var(--rows-card-fit); --smooth-side: var(--rows-card-side);
5392
- position: relative; overflow: visible; border-color: transparent; border-radius: var(--rows-card-fit); clip-path: shape(var(--smooth-outline));
5393
- }
5394
- .o-switch-rows::after {
5395
- --smooth-t: max(0px, var(--rows-card-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
5396
- content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
5397
- background-color: var(--vk-border); clip-path: shape(var(--smooth-ring));
5398
- }
5399
- }
5400
-
5401
5181
  /* ── Slim (after shadcn), the shape the others start from: a track 18 × 32 barely larger than its 16 thumb, 1 from its edge, with no
5402
5182
  edge of its own; off, the field edge's grey; on, the brand ─────────────────────────────────────────────────────── */
5403
5183
  .o-switch {
@@ -5553,32 +5333,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5553
5333
 
5554
5334
  @media (prefers-reduced-motion: reduce) { .o-switch::before, .o-switch-thumb, .o-switch-fill, .o-switch-i, .o-switch-o, .o-switch-word { transition: none; } }
5555
5335
 
5556
- /* ── In a field: the tags before the caret, wrapping onto more lines as they grow; its words the Input's size, the box as tall
5557
- as its words, on the tags' line. Its rules outweigh the Input's (input.css may come after this file). On a phone (the
5558
- group's own mark, `data-vk-phone`) the field takes the phone's 44. ── */
5559
- .o-input.o-input-group.o-tag-field { flex-wrap: wrap; height: auto; min-height: calc(var(--vk-spacing) * 9); padding-block: calc(var(--vk-spacing) * 1.5); }
5560
- .o-input.o-input-group.o-tag-field:where([data-vk-phone], [data-vk-phone] *) { min-height: calc(var(--vk-spacing) * 11); padding-block: calc(var(--vk-spacing) * 2.5); }
5561
- .o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
5562
-
5563
- /* ── In a row of Field rows (VK-978; the settings canvas, round 3: look-ios.mjs .tok, .caret): the card's row as iOS draws a To
5564
- field. Its tokens fill the row from its words' inset, 6 apart, 12 above and below, wrapping as they grow, the caret after the
5565
- last (the Input typed in place, input.css). Its label names the box but stands out of sight: its place titles the group. Each
5566
- token is the Tag as iOS draws it: 30 tall, a pill on the neutral ground, no edge, no icon and no smoothing, the row's words in the normal
5567
- weight, as wide as the row lets it; its remove button stays, quiet. Its rules outweigh the box's and the phone's above, and
5568
- the Tag's own. ── */
5569
- .o-field.o-field-row.o-tag-field-row { position: relative; }
5570
- .o-tag-field-row > .o-field-row-label { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
5571
- .o-input.o-input-inrow.o-tag-field.o-tag-field { flex-wrap: wrap; align-content: center; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding-block: calc(var(--vk-spacing) * 3); }
5572
- .o-input.o-input-inrow.o-tag-field > .o-tag.o-tag {
5573
- --tag-h: calc(var(--vk-spacing) * 7.5); --tag-r: var(--vk-radius-full);
5574
- max-width: 100%; padding: 0 calc(var(--vk-spacing) * 2.5); border-radius: var(--tag-r); background-color: var(--vk-neutral); box-shadow: none;
5575
- font-size: inherit; font-weight: var(--vk-font-weight-normal);
5576
- }
5577
- /* A pill has no corner to smooth: the token paints its own ground, and its cut (the smooth ground and edge) stands down. */
5578
- .o-input-inrow.o-tag-field > .o-tag > :is(.o-tag-cut, .o-tag-icon) { display: none; }
5579
- /* Once a token stands, the caret alone after it: the placeholder only asks while the row is empty. */
5580
- .o-input-inrow.o-tag-field:has(> .o-tag) > .o-tag-field-input::placeholder { color: transparent; }
5581
-
5582
5336
  /* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
5583
5337
  are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
5584
5338
  --tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
@@ -5747,9 +5501,11 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
5747
5501
  row's box (the popover marked data-field-row-long-editor, field-row/editors/RowTextEditor.tsx), the popover its only frame. The
5748
5502
  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
5503
  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; }
5504
+ text up to the editor's most height (--vk-editor-max-h, the popover's own cap; undeclared, 320), then it scrolls. The popover's
5505
+ corners are the row box's own, so nothing of the box shows round them (VK-1110): the box's rounded-md, or under the Field's Box
5506
+ (data-field-row-long-editor="box") its corner, --vk-field-row-box-r (undeclared 8). (0,5,0): over the row's place. ──────────── */
5507
+ .o-popover[data-field-row-long-editor] { --popover-pad: 0px; --popover-corners: var(--vk-radius-md); }
5508
+ .o-popover[data-field-row-long-editor="box"] { --popover-corners: var(--vk-field-row-box-r, calc(var(--vk-spacing) * 2)); }
5753
5509
  [data-field-row-long-editor] .o-text-editor[data-text-place="row"][data-text-form="computer"] {
5754
5510
  --inline-input-row: var(--vk-field-row-box-h, calc(var(--vk-spacing) * 8)); --inline-input-edge: 0px; --inline-input-ring: 0px;
5755
5511
  }
@@ -8807,6 +8563,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
8807
8563
  .\[\&\:\:-webkit-search-decoration\]\:appearance-none::-webkit-search-decoration {
8808
8564
  appearance: none;
8809
8565
  }
8566
+ .\[\&\:not\(\:has\(\>\:not\(\[data-toolbar-spacer\]\,\[hidden\]\,\[data-toolbar-item\]\:empty\)\)\)\]\:hidden:not(:has( > :not([data-toolbar-spacer], [hidden], [data-toolbar-item]:empty))) {
8567
+ display: none;
8568
+ }
8810
8569
  .\[\&\>span\]\:underline-offset-\(--vk-underline-offset\,3px\) > span {
8811
8570
  text-underline-offset: var(--vk-underline-offset,3px);
8812
8571
  }
@@ -9642,8 +9401,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
9642
9401
  --vk-scrollbar-thumb: hsl(210 1% 82%);
9643
9402
  --vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
9644
9403
  --vk-scrollbar-hold: 1000ms;
9645
- --vk-icon-disclosure: hsl(210 1% 72%);
9646
- --vk-opacity-off: 0.45;
9647
9404
  --vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
9648
9405
  --vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
9649
9406
  --vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
@@ -9885,7 +9642,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
9885
9642
  --vk-header: hsl(210 6% 7%);
9886
9643
  --vk-scrollbar-thumb: hsl(210 2% 26.5%);
9887
9644
  --vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
9888
- --vk-icon-disclosure: hsl(210 1% 37%);
9889
9645
  --vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
9890
9646
  --vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
9891
9647
  --vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
@@ -457,7 +457,7 @@ an app neither sets nor reads them, and they may change in any release.
457
457
  ### The controls' tokens
458
458
 
459
459
  ViewKit's default controls (`viewkitjs/views/controls`) read only these names, each optional: the ready stylesheet
460
- declares every one at My preset's value, and an app declares one to change it. Beside them they read a panel's, an editor's
460
+ declares every one at ViewKit's default value, and an app declares one to change it. Beside them they read a panel's, an editor's
461
461
  and a menu's size (above), which the ready stylesheet leaves undeclared, so each place keeps its own. Each stands for one Outright token, which an
462
462
  app on the Outright tokens declares it as. Sixteen are the contract's colours already. **How a new one is named**, so every
463
463
  control that moves names the same way:
@@ -483,7 +483,7 @@ both pages, one kind and one token.
483
483
 
484
484
  The grid's look stylesheet (`viewkitjs/views/grid.css`, below in Looks) reads only these names beside the grid's own
485
485
  geometry (`--vk-scale`), listed as `VK_GRID_TOKENS` with each one's kind and Outright token, each optional like the
486
- controls': the ready stylesheet declares every one at My preset's value. All but one are the controls' names, the same
486
+ controls': the ready stylesheet declares every one at ViewKit's default value. All but one are the controls' names, the same
487
487
  token there. `--vk-frozen-fade` is the grid's alone: the shade a pinned column casts over the columns scrolling under it
488
488
  (the Pinned edge's Fade, Outright `pinned-shadow`), read into `--vk-frozen-shadow`.
489
489
 
@@ -491,7 +491,7 @@ token there. `--vk-frozen-fade` is the grid's alone: the shade a pinned column c
491
491
 
492
492
  A piece's looks are declared beside the piece and listed in `LOOKS` (`viewkitjs/views/looks`). An option is a closed set
493
493
  of values with a default; a look is a named set of picks, one value for every option. Nothing picked wears each option's
494
- default, My preset's pick, which no look need match whole. An app
494
+ default, ViewKit's own, which no look need match whole. An app
495
495
  wears a set of picks as data attributes on a frame round the piece, `data-<piece>-<option>="<value>"` (`lookAttrs`), which
496
496
  the piece's look stylesheet reads, and the piece's code reads the same picks back (`lookWorn`, `lookWornOf`); a pick its
497
497
  option doesn't have wears the default. **Public:** a piece's id, its options' ids, their values' ids and its looks' ids,
@@ -537,7 +537,7 @@ peer; the provider and every other door import neither library, so an app that h
537
537
 
538
538
  `Select`, optional: a box that picks one value or several, `ViewsSelectProps`. Only ViewKit's panels and field editors draw it, and only where the provider's `panelControls` names `Select`: the sort's field and direction, the filter's field, way, choices and a block's quantifier (VK-1013), New view's columns box in the view menu (VK-1014), and the place editor's country and region on a computer and the links editor's fields (VK-1022). Inside a ViewKit field it is handed the `id` its label names: put it on the box a person presses. It is handed the rows (`ViewsSelectItem`: a value, its words, an icon, a line, a group, `disabled`, and `level`, rows one level in, which `flatSelectItems` flattens for a Select that draws none), the value and `onValueChange`, `multiple`, a placeholder, `disabled`, `open` and `onOpenChange` (honour both: on a phone a panel holds the box shut and opens a step of its own), `search` (the words of ViewKit's own search), `size` (`sm` or `default`), and the part's `data-slot` and `data-key`, for the box a person presses. `CONTROLS.Select` is ViewKit's own.
539
539
 
540
- `panelControls` (the provider): the names among `Button`, `Select`, `Menu`, `Popover`, `Input`, `Calendar`, `Tooltip`, `Avatar` and `RelationChip` that ViewKit's panels and field editors draw with your own (VK-1013, the sort and filter panels; VK-1014, the group editor, Customize, the views list and view menu, the quick filters' search, the filter bar's typed value and date, and every phone head a panel draws itself; VK-1021, the text, number and date editors, `Calendar` their date's month; VK-1022, the Picker wherever a ViewKit body holds it, the name and place parts, and the values and links editors; VK-1023, the bulk bar, `CONTROLS.SelectionBar`, whose Toolbar holds your Button as one of its stops: forward its `ref`; VK-1044, `Avatar`, your `atoms.Avatar` for every record's mark the panels draw: the Picker's rows, the links editor's, the bulk bar's choices, the quick filters' values and their reminder's, handed the record's `label`, `avatarUrl`, `kind` as your app names it, the panel's size in pixels (20, 24, 32 or 40; a typed Select's chip `chip`) and ViewKit's own Avatar as `fallback`; ViewKit's own Avatar atom is never counted as yours, and an atom handed without this name keeps drawing only the chips and names it always drew; VK-1015, `Tooltip`, the panels' tooltips (Add sort at its most, a set-aside rule's why, Add filter on a relation the list no longer lists), handed `content`, `side`, `align` and, where it says why something can't be used, `reason`; a tooltip ViewKit's own would never show is no tooltip, its child alone; VK-1018, under `Input`, the filter's number and range boxes too, handed `inputMode="decimal"` and the text typed, ViewKit reading it as a number by your conventions (rounded where the field takes whole numbers) and stepping it with ↑ and ↓; VK-1053, `RelationChip`, your `atoms.RelationChip` for every mentioned record, above). Inside a ViewKit field your Input is handed the `id` its label names; a popover ViewKit opens from its own button it opens itself, at that button, handed its `anchor`, and gives the focus back to it; a busy button (the Picker's Add while it adds) is handed `aria-busy` and `aria-disabled`, and a button drawn as a link stays ViewKit's. Inside a ViewKit box group (a date's line, a phone number's digits) your Input is handed `chrome="bare"`: the group draws the frame; a box that grows over lines and a search list's box stay ViewKit's. Each is handed the map's props, never ViewKit's own look, and the part's `data-slot` and `data-key`; a menu's rows carry theirs as `slot` and `key`; a menu's group comes to your Menu as a row with `children` drawn in place, a row of actions or of choices one level in as a row with `children` and `beside` (a choice's rows `checked`, its `detail` the one picked), and a link as a row with its `href` (ViewKit's own router link and new tab aren't handed, and say so in development; its `onSelect` hands no event, as every row's) (VK-1022); a clear ViewKit's own box offers (the place's "No country") comes to your Select as its first row, a pick of it handing `null`; a menu ViewKit opens from your Button it opens itself, at your Button, and gives the focus back to it. Inside the panels and the editors a ViewKit part may hand your Button, Select or Input more props than these (a tooltip's handlers, `type="tel"`, `inputMode`, `enterKeyHint`, `aria-haspopup`): forward the rest to your element. A box group's button (a phone's country, a money's currency) comes to your Button as `variant="ghost"`, `size="sm"`. A control of `CONTROLS`' stays ViewKit's whatever `panelControls` says; without it, the panels and the editors draw ViewKit's own, as before.
540
+ `panelControls` (the provider): the names among `Button`, `Select`, `Menu`, `Popover`, `Input`, `Calendar`, `Tooltip`, `Avatar` and `RelationChip` that ViewKit's panels and field editors draw with your own (VK-1013, the sort and filter panels; VK-1014, the group editor, Customize, the views list and view menu, the quick filters' search, the filter bar's typed value and date, and every phone head a panel draws itself; VK-1021, the text, number and date editors, `Calendar` their date's month; VK-1022, the Picker wherever a ViewKit body holds it, the name and place parts, and the values and links editors; VK-1023, the bulk bar, `CONTROLS.SelectionBar`, whose Toolbar holds your Button as one of its stops: forward its `ref`; VK-1044, `Avatar`, your `atoms.Avatar` for every record's mark the panels draw: the Picker's rows, the links editor's, the bulk bar's choices, the quick filters' values and their reminder's, handed the record's `label`, `avatarUrl`, `kind` as your app names it, the panel's size in pixels (20, 24, 32 or 40; a typed Select's chip `chip`) and ViewKit's own Avatar as `fallback`; ViewKit's own Avatar atom is never counted as yours, and an atom handed without this name keeps drawing only the chips and names it always drew; VK-1015, `Tooltip`, the panels' tooltips (Add sort at its most, a set-aside rule's why, Add filter on a relation the list no longer lists), handed `content`, `side`, `align` and, where it says why something can't be used, `reason`; a tooltip ViewKit's own would never show is no tooltip, its child alone; VK-1018, under `Input`, the filter's number and range boxes too, handed `inputMode="decimal"` and the text typed, ViewKit reading it as a number by your conventions (rounded where the field takes whole numbers) and stepping it with ↑ and ↓, and a duration rule's box, handed the duration as words (`1m 30s`), ViewKit reading what is typed as a duration by your conventions (VK-1121); VK-1053, `RelationChip`, your `atoms.RelationChip` for every mentioned record, above). Inside a ViewKit field your Input is handed the `id` its label names; a popover ViewKit opens from its own button it opens itself, at that button, handed its `anchor`, and gives the focus back to it; a busy button (the Picker's Add while it adds) is handed `aria-busy` and `aria-disabled`, and a button drawn as a link stays ViewKit's. Inside a ViewKit box group (a date's line, a phone number's digits) your Input is handed `chrome="bare"`: the group draws the frame; a box that grows over lines and a search list's box stay ViewKit's. Each is handed the map's props, never ViewKit's own look, and the part's `data-slot` and `data-key`; a menu's rows carry theirs as `slot` and `key`; a menu's group comes to your Menu as a row with `children` drawn in place, a row of actions or of choices one level in as a row with `children` and `beside` (a choice's rows `checked`, its `detail` the one picked), and a link as a row with its `href` (ViewKit's own router link and new tab aren't handed, and say so in development; its `onSelect` hands no event, as every row's) (VK-1022); a clear ViewKit's own box offers (the place's "No country") comes to your Select as its first row, a pick of it handing `null`; a menu ViewKit opens from your Button it opens itself, at your Button, and gives the focus back to it. Inside the panels and the editors a ViewKit part may hand your Button, Select or Input more props than these (a tooltip's handlers, `type="tel"`, `inputMode`, `enterKeyHint`, `aria-haspopup`): forward the rest to your element. A box group's button (a phone's country, a money's currency) comes to your Button as `variant="ghost"`, `size="sm"`. A control of `CONTROLS`' stays ViewKit's whatever `panelControls` says; without it, the panels and the editors draw ViewKit's own, as before.
541
541
 
542
542
  `Command`, optional and deprecated: the command list's parts (`ViewsCommandParts`). Nothing reads it: the grid's menus are your `Menu` and the editors' lists your `Picker`. Leave it out; it goes in a later release that breaks something anyway.
543
543
 
@@ -1236,13 +1236,15 @@ over several cells left because they can't be empty, already joined in the viewe
1236
1236
  `views.grid.paste-not-number`, `views.grid.paste-not-duration`, `views.grid.paste-not-date`,
1237
1237
  `views.grid.paste-not-option`, `views.grid.paste-ambiguous-option` (a label two options share),
1238
1238
  `views.grid.paste-pick` and `views.grid.paste-not-linkable` (each `{ value }`, the pasted text), `views.grid.paste-other-currency` (`{ currency }`, the record's own: an amount pasted or filled into a
1239
- record in another currency) and `views.grid.paste-not-range`; a paste or a fill that refused cells,
1239
+ record in another currency), `views.grid.paste-not-range` and `views.grid.paste-two-values` (a paste, a fill or a cut giving one
1240
+ record drawn under two groups two different values for one column: that cell takes neither); a paste or a fill that refused cells,
1240
1241
  `views.grid.paste-skipped` and `views.grid.fill-skipped` (each `{ count, reason }`: one toast per reason, its
1241
1242
  `reason` one of the refusals above in the app's words; an operation of one cell says the reason alone); a write the app
1242
1243
  refused, said through the toast port's `error`, `views.grid.commit-refused` (`{ field }`, the field's name, for a
1243
1244
  refusal whose error carries no words: "Couldn't save Amount.") and `views.grid.commit-refused-many` (`{ count, reason? }`,
1244
1245
  a batch, once, with the first refusal's words when it has any); and the warnings
1245
1246
  `views.grid.changed-elsewhere` (`{ field }`), `views.grid.changed-elsewhere-cells` (`{ count }`),
1247
+ `views.grid.changed-since` (an undo or a redo refused over a value someone wrote since the edit),
1246
1248
  `views.grid.saved-value`, `views.grid.saved-values` and `views.grid.row-left`. The functions that word a refusal
1247
1249
  (`gridClearRefusal`, `columnClearRefusal`, `columnEditRefusal`, `gridEditRefusal`) take the resolver last, and
1248
1250
  `gridNormalizeWrite` in its options; each defaults to `resolveViewsMessage`. And the display's words —
@@ -1348,7 +1350,7 @@ rows' and pages' names where the list names none, `views.panels.filter` ("Filter
1348
1350
  changed since you started."; `views.panels.view-stale-own`, "This view changed since you started.", on the reader's own, VK-1061); and its actions, `views.panels.copy-link` ("Copy link to view"),
1349
1351
  `views.panels.export-csv` ("Export CSV"), `views.panels.share` ("Share"), `views.panels.coming-soon` ("Coming
1350
1352
  soon", a parked action's hint) and `views.panels.loading` ("Loading", the export's spinner).
1351
- The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓), and `CONTROLS.SortBody`'s own (VK-721), `views.panels.sort-field` ("Field", a rule's field box), `views.panels.sort-clear-all-sorts` ("Clear all sorts", a computer's foot) and `views.panels.sort-by-named` (`{ label }`, "the sort by {label}", a rule's ⋯ menu); `CONTROLS.FilterBody`'s and `CONTROLS.FilterPartBody`'s own (VK-720), `views.panels.filter-group-list` ("Group", a group's rules to a screen reader), `views.panels.filter-rule-named` (`{ label }`, "{label}'s rule", a rule's ⋮), `views.panels.filter-way-named` (`{ label }`, "How {label} compares", a way's list and its step), `views.panels.filter-choose-date` ("Choose a date"), `views.panels.filter-type-number` ("Type a number") and `views.panels.filter-type-value` ("Type a value"), a value's placeholders, `views.panels.filter-from-named` and `views.panels.filter-to-named` (`{ label }`, "{label} from", "{label} to", a range's two ends), `views.panels.filter-checked` ("Checked") and `views.panels.filter-unchecked` ("Unchecked"), a yes/no's two values, and `views.panels.filter-kit-way` (`{ way }`, the kit's ways in their words: "is any of", "less than", "any part between"); `CONTROLS.GroupBody`'s own (VK-839), `views.panels.group-order` ("Order", the group's order setting), `views.panels.group-date-step` ("Date step", a date field's step setting), `views.panels.group-order-own` ("Your own", your own order), `views.panels.group-own-no-direction` ("Your own order has no direction", why Direction is greyed), `views.panels.group-no-value` ("No value", the empty group), and its rows' own, `views.panels.list-move-keys` ("Left arrow for its grip, then up or down arrow to move it", how a computer's rows move), `views.panels.list-move-hold` ("Hold, then drag to move it", a phone's) and `views.panels.list-moved` (`{ label, at, of }`, "{label}, {at} of {of}", a move said), a grip named by `views.panels.sort-move` and a Switch's words by `views.panels.toggle-on` and `views.panels.toggle-off`; `CONTROLS.CustomizeBody`'s own (VK-840), `views.panels.customize-list` ("Customize", its list to a screen reader), `views.panels.customize-shown` ("Shown in the table", on a table), `views.panels.customize-shown-fields` ("Shown", on another layout) and `views.panels.customize-hidden` ("Hidden"), Columns' headings, `views.panels.customize-search` ("Search columns", a computer's) and `views.panels.customize-find` ("Find a column", a phone's), `views.panels.customize-no-column` (`{ words }`, "No column is named “{words}”"), `views.panels.customize-always-shown` ("Always shown", why the first column can't hide), `views.panels.customize-view-name` ("The view's name", its box), `views.panels.customize-unavailable` ("Not available", a disabled row's reason where your `menus.customize` hands none, VK-1062), `views.panels.customize-layout-button` (`{ name }`, "Layout: {name}", the layout's button beside the name), `views.panels.customize-layout-settings` (`{ name }`, "{name} settings", a layout's settings to a screen reader), `views.panels.customize-share` ("Share the view", its footer) and `views.panels.column-settings` (`{ label }`, "{label} settings", the › opening a column's own settings); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.filter-no-options` ("Nothing to pick.", a field with no value to pick), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), `CONTROLS.QuickFiltersBody`'s own (VK-724), `views.panels.quick-clear-value` ("Clear filter", a held value's words before its count), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-relation-rows` ("Which related records", the any/none/every choice as one row of your `menus.filterEditor`, VK-1063), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
1353
+ The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) `views.panels.phone-layout` ("On your phone"), and the person's own toolbar rows where the app turns them on (`personSettings`, VK-1095), `views.panels.person-bar` ("Filter bar") with `views.panels.person-bar-added` ("Once added") and `views.panels.person-bar-always` ("Always"), and `views.panels.person-words` ("Button words") with `views.panels.person-words-both` ("Icon and word"), `views.panels.person-words-icon` ("Icon") and `views.panels.person-words-word` ("Word"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓), and `CONTROLS.SortBody`'s own (VK-721), `views.panels.sort-field` ("Field", a rule's field box), `views.panels.sort-clear-all-sorts` ("Clear all sorts", a computer's foot) and `views.panels.sort-by-named` (`{ label }`, "the sort by {label}", a rule's ⋯ menu); `CONTROLS.FilterBody`'s and `CONTROLS.FilterPartBody`'s own (VK-720), `views.panels.filter-group-list` ("Group", a group's rules to a screen reader), `views.panels.filter-rule-named` (`{ label }`, "{label}'s rule", a rule's ⋮), `views.panels.filter-way-named` (`{ label }`, "How {label} compares", a way's list and its step), `views.panels.filter-choose-date` ("Choose a date"), `views.panels.filter-type-number` ("Type a number") and `views.panels.filter-type-value` ("Type a value"), a value's placeholders, `views.panels.filter-from-named` and `views.panels.filter-to-named` (`{ label }`, "{label} from", "{label} to", a range's two ends), `views.panels.filter-checked` ("Checked") and `views.panels.filter-unchecked` ("Unchecked"), a yes/no's two values, and `views.panels.filter-kit-way` (`{ way }`, the kit's ways in their words: "is any of", "less than", "any part between"); `CONTROLS.GroupBody`'s own (VK-839), `views.panels.group-order` ("Order", the group's order setting), `views.panels.group-date-step` ("Date step", a date field's step setting), `views.panels.group-order-own` ("Your own", your own order), `views.panels.group-own-no-direction` ("Your own order has no direction", why Direction is greyed), `views.panels.group-no-value` ("No value", the empty group), and its rows' own, `views.panels.list-move-keys` ("Left arrow for its grip, then up or down arrow to move it", how a computer's rows move), `views.panels.list-move-hold` ("Hold, then drag to move it", a phone's) and `views.panels.list-moved` (`{ label, at, of }`, "{label}, {at} of {of}", a move said), a grip named by `views.panels.sort-move` and a Switch's words by `views.panels.toggle-on` and `views.panels.toggle-off`; `CONTROLS.CustomizeBody`'s own (VK-840), `views.panels.customize-list` ("Customize", its list to a screen reader), `views.panels.customize-shown` ("Shown in the table", on a table), `views.panels.customize-shown-fields` ("Shown", on another layout) and `views.panels.customize-hidden` ("Hidden"), Columns' headings, `views.panels.customize-search` ("Search columns", a computer's) and `views.panels.customize-find` ("Find a column", a phone's), `views.panels.customize-no-column` (`{ words }`, "No column is named “{words}”"), `views.panels.customize-always-shown` ("Always shown", why the first column can't hide), `views.panels.customize-view-name` ("The view's name", its box), `views.panels.customize-unavailable` ("Not available", a disabled row's reason where your `menus.customize` hands none, VK-1062), `views.panels.customize-layout-button` (`{ name }`, "Layout: {name}", the layout's button beside the name), `views.panels.customize-layout-settings` (`{ name }`, "{name} settings", a layout's settings to a screen reader), `views.panels.customize-share` ("Share the view", its footer) and `views.panels.column-settings` (`{ label }`, "{label} settings", the › opening a column's own settings); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.filter-no-options` ("Nothing to pick.", a field with no value to pick), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), `CONTROLS.QuickFiltersBody`'s own (VK-724), `views.panels.quick-clear-value` ("Clear filter", a held value's words before its count), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-relation-rows` ("Which related records", the any/none/every choice as one row of your `menus.filterEditor`, VK-1063), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
1352
1354
  The selection bar's words are under `views.selection.*`: `views.selection.count` (`{ count }`, "3 selected",
1353
1355
  the phone sheet's title), `views.selection.selected` (the word after the count the bar draws),
1354
1356
  `views.selection.deselect-all` (the count chip), `views.selection.clear` (the phone's ✕),
@@ -1491,7 +1493,7 @@ A yes/no cell in the grid, the checkbox style, is your `Checkbox`, the box your
1491
1493
  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.
1492
1494
  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`.
1493
1495
  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.
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).
1496
+ 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). Under the Field's Box the mark reads `data-field-row-long-editor="box"`; ViewKit's own Popover takes the row box's corners, `--vk-field-row-box-r` under the Box and `--vk-radius-md` without it, so nothing of the box shows round them (VK-1110).
1495
1497
  And an optional `datePicks` (`ViewsDatePicks`, from `./react`): the quick days the date editors offer, in order, any of
1496
1498
  `today`, `tomorrow`, `next-monday` (the Monday after today, a week on when today is one) and `in-a-week` (today + 7 on
1497
1499
  the conventions' calendar). ViewKit works out each day; the date editor hands exactly these to an app's `DateBody`, `none`
@@ -31,4 +31,4 @@ A row of Field rows may open with a glyph lane (`o-field-row-glyph`), 20 wide, i
31
31
 
32
32
  ## A part's name
33
33
 
34
- Handed `data-slot` and `data-key`, a Field draws them on its root in every form: alone, as a row of Field rows, and at a setting row's end.
34
+ Handed `data-slot` and `data-key`, a Field draws them on its root in both forms: alone, and as a row of Field rows.
@@ -4,7 +4,7 @@ A piece's look is what an app sets once for every copy of the piece it draws: th
4
4
 
5
5
  ## Options and looks
6
6
 
7
- An option is a closed set of values with a default: the grid's `columns` is `all`, `none` or `pinned`. A look is a named set of picks, one value for every option: the grid's `attio` look is Attio's table, its `portal` look ViewKit's own grid as the portal draws it. Nothing picked wears each option's default, the Outright look's (My preset's), which no look matches whole. The ids are public and stay as they are, since an app saves picks by them; the words beside them (`name`) may change.
7
+ An option is a closed set of values with a default: the grid's `columns` is `all`, `none` or `pinned`. A look is a named set of picks, one value for every option: the grid's `attio` look is Attio's table, its `portal` look ViewKit's own grid as the portal draws it. Nothing picked wears each option's default, ViewKit's own, which no look matches whole. The ids are public and stay as they are, since an app saves picks by them; the words beside them (`name`) may change.
8
8
 
9
9
  ## Picking the grid's look
10
10
 
@@ -103,7 +103,7 @@ function PlainDeals({ onOpen }: { onOpen: (deal: Deal) => void }) {
103
103
  }
104
104
  ```
105
105
 
106
- The same record may sit in two groups (grouped by a list of tags, a deal sits under each of its tags): the grid keys each drawn row by its group and its id, so focus, an editor and a range land on the copy you pointed at.
106
+ The same record may sit in two groups (grouped by a list of tags, a deal sits under each of its tags): the grid keys each drawn row by its group and its id, so focus, an editor and a range land on the copy you pointed at. A paste, a fill or a cut that reaches one record through two of its copies writes it once: the same value lands once, and two different values for one column land nowhere, that cell refused with `views.grid.paste-two-values`.
107
107
 
108
108
  When the rows a view shows are replaced as a whole (another saved view, another filter), pass that view's identity as `transitionKey`: the grid paints its wait first, then mounts the rows. `transitionPending` holds the wait while your rows load, and `transitionLabel` words it. Your app's Loading atom stands in place of the grid while it waits; hand the components map's `RowsWait` and a grid that already shows rows keeps them on screen instead, inert, as that slot's children, its column names and footer standing outside the slot, as they are, which you draw as waiting (a bar along the top, the rows dimmed).
109
109
 
@@ -251,7 +251,9 @@ A `write` that refuses, `{ skip: true, reason }`, is a rejection too: throw its
251
251
 
252
252
  What a cell commits is its type's commit ([the contract](../contract.md#four-shapes-of-a-value)), with one exception: Delete, Cut, the row menu's Clear and a clear over a range commit `""` for most types (a relation `null`, a multiselect `[]`, a boolean `false`). A `write` maps `""` to what the row stores for nothing, as `closeOn` does above. An undo that empties a number, percent or money cell again writes `null`.
253
253
 
254
- An undo or a redo calls you again with `{ kind: "restore", expected }`: `expected` is what the cell holds if nobody changed it since. A host that versions its rows can refuse the restore when the row holds something else.
254
+ An undo or a redo calls you again with `{ kind: "restore", expected }`: `expected` is what the cell holds if nobody changed it since. A host that versions its rows can refuse the restore when the row holds something else. The grid checks first what your rows show: where they hold a value in the cell that is neither the edit nor what it replaced, someone wrote it since, so ⌘Z (and ⇧⌘Z) leaves that cell as your rows show it, calls you for nothing there, and says "Changed by someone since" through your toast's `warning` (`views.grid.changed-since`); the edit's other cells are undone as usual, and the next ⌘Z reaches the edit before. While a cell's own write or overlay is still out, your rows may simply be behind, and it is undone as before; so is a cell written with no overlay (a relation, a name, a place, a range), whose value your rows never read back as an equal one. A colleague's change your rows don't carry yet can't be seen.
255
+
256
+ A save that writes more than its cell's field (an amount and its direction, an amount and its currency) shows every column it writes as it is sent when you hand the grid `cellValues`, the function that turns a cell's change into the values saved: `gridSave` returns it beside its two commit functions, so spreading what it returns hands it over. The grid reads each other column over the row with those values and shows the ones they write with the edit; a refusal rolls them all back.
255
257
 
256
258
  A fill, a paste, a Delete over a range or a batch action writes many cells at once. With `onCellsCommit` they arrive in one call, and you answer with one `GridCommitOutcome` per edit, in order: a `failed` outcome rolls that cell back and keeps the rest. A rejection rolls every cell of the call back. Without `onCellsCommit`, each cell goes to `onCellCommit` alone.
257
259