viewkitjs 0.31.0 → 0.33.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 (449) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/MIGRATION.md +40 -6
  3. package/README.md +1 -1
  4. package/fields/dist/index.d.ts +1 -1
  5. package/fields/dist/index.js +1 -1
  6. package/fields/dist/query/evaluate.d.ts +7 -0
  7. package/fields/dist/query/exact-number.d.ts +8 -2
  8. package/fields/dist/query/exact-number.js +14 -1
  9. package/fields/dist/query/index.d.ts +2 -0
  10. package/fields/dist/query/index.js +2 -0
  11. package/fields/dist/query/list-request.d.ts +148 -0
  12. package/fields/dist/query/list-request.js +125 -0
  13. package/fields/dist/query/saved-view.d.ts +15 -0
  14. package/fields/dist/query/saved-view.js +11 -0
  15. package/fields/dist/query/settings.d.ts +9 -0
  16. package/fields/dist/query/settings.js +9 -0
  17. package/fields/dist/query/sort.js +13 -10
  18. package/fields/dist/registry.js +5 -1
  19. package/fields/dist/types.d.ts +4 -1
  20. package/fields/dist/zod.d.ts +5 -0
  21. package/fields/dist/zod.js +10 -1
  22. package/fields/docs/guides/contact-values.md +12 -0
  23. package/fields/docs/guides/field-types.md +1 -1
  24. package/fields/docs/guides/queries.md +3 -1
  25. package/fields/docs/reference/fields.md +1 -0
  26. package/fields/docs/reference/query.md +66 -0
  27. package/package.json +5 -1
  28. package/postgres/README.md +1 -0
  29. package/postgres/dist/check.js +4 -1
  30. package/postgres/dist/definitions/formula-forms.js +3 -1
  31. package/postgres/dist/definitions/money.js +2 -1
  32. package/postgres/dist/handler.d.ts +53 -0
  33. package/postgres/dist/handler.js +211 -0
  34. package/postgres/dist/ids.d.ts +1 -1
  35. package/postgres/dist/ids.js +19 -1
  36. package/postgres/dist/index.d.ts +1 -0
  37. package/postgres/dist/index.js +1 -0
  38. package/postgres/dist/limits.d.ts +3 -1
  39. package/postgres/dist/limits.js +1 -1
  40. package/postgres/dist/list-fields.d.ts +10 -0
  41. package/postgres/dist/list-fields.js +36 -0
  42. package/postgres/dist/page.js +6 -3
  43. package/postgres/dist/readable.d.ts +4 -0
  44. package/postgres/dist/readable.js +4 -0
  45. package/postgres/dist/refusals.d.ts +9 -2
  46. package/postgres/dist/refusals.js +6 -0
  47. package/postgres/dist/rules.d.ts +15 -1
  48. package/postgres/dist/rules.js +16 -0
  49. package/postgres/dist/sort.js +7 -2
  50. package/postgres/docs/guides/definitions.md +1 -1
  51. package/postgres/docs/guides/field-map.md +3 -3
  52. package/postgres/docs/guides/list-handler.md +99 -0
  53. package/postgres/docs/index.md +1 -0
  54. package/postgres/docs/reference/definitions.md +1 -1
  55. package/postgres/docs/reference/postgres.md +12 -4
  56. package/views/README.md +2 -2
  57. package/views/dist/atoms/RowMenu.d.ts +7 -0
  58. package/views/dist/atoms/RowMenu.js +18 -16
  59. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  60. package/views/dist/atoms/ToolbarButton.js +4 -3
  61. package/views/dist/atoms/carried.d.ts +5 -0
  62. package/views/dist/atoms/carried.js +7 -0
  63. package/views/dist/atoms/frame-parts.d.ts +6 -0
  64. package/views/dist/atoms/frame-parts.js +15 -0
  65. package/views/dist/atoms/types.d.ts +19 -7
  66. package/views/dist/cells/cell-title.d.ts +3 -1
  67. package/views/dist/cells/cell-title.js +2 -2
  68. package/views/dist/cells/cell-values.js +2 -2
  69. package/views/dist/contract.d.ts +56 -11
  70. package/views/dist/contract.js +148 -0
  71. package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
  72. package/views/dist/controls/atoms.d.ts +2 -0
  73. package/views/dist/controls/atoms.js +2 -0
  74. package/views/dist/controls/avatar/avatar.d.ts +3 -3
  75. package/views/dist/controls/avatar/avatar.js +1 -1
  76. package/views/dist/controls/avatar/tokens.d.ts +44 -0
  77. package/views/dist/controls/avatar/tokens.js +11 -0
  78. package/views/dist/controls/avatar.css +22 -5
  79. package/views/dist/controls/button/map-button.js +2 -0
  80. package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
  81. package/views/dist/controls/checkbox/checkbox.js +2 -2
  82. package/views/dist/controls/choice/tokens.d.ts +0 -4
  83. package/views/dist/controls/choice/tokens.js +0 -1
  84. package/views/dist/controls/choice.css +3 -3
  85. package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
  86. package/views/dist/controls/compound-editor/name-parts.js +4 -4
  87. package/views/dist/controls/compound-editor/place-parts.js +19 -19
  88. package/views/dist/controls/compound-editor/range-parts.js +14 -14
  89. package/views/dist/controls/compound-editor/row.d.ts +3 -1
  90. package/views/dist/controls/compound-editor/row.js +2 -2
  91. package/views/dist/controls/controls.d.ts +8 -0
  92. package/views/dist/controls/controls.js +12 -2
  93. package/views/dist/controls/customize/customize.js +37 -35
  94. package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
  95. package/views/dist/controls/customize/map-customize-body.js +5 -1
  96. package/views/dist/controls/date-editor/date-days.js +2 -2
  97. package/views/dist/controls/date-editor/date-editor.js +18 -18
  98. package/views/dist/controls/date-editor/date-parts.js +6 -6
  99. package/views/dist/controls/date-editor/map-calendar.js +1 -1
  100. package/views/dist/controls/date-editor.css +2 -2
  101. package/views/dist/controls/field/field.d.ts +22 -4
  102. package/views/dist/controls/field/field.js +63 -5
  103. package/views/dist/controls/field/tokens.d.ts +4 -0
  104. package/views/dist/controls/field/tokens.js +1 -0
  105. package/views/dist/controls/field.css +41 -16
  106. package/views/dist/controls/filter-editor/block.d.ts +2 -2
  107. package/views/dist/controls/filter-editor/block.js +5 -5
  108. package/views/dist/controls/filter-editor/filter-editor.js +31 -33
  109. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  110. package/views/dist/controls/filter-editor/map-filter-body.d.ts +1 -0
  111. package/views/dist/controls/filter-editor/map-filter-body.js +7 -3
  112. package/views/dist/controls/filter-editor/map-rules.js +1 -1
  113. package/views/dist/controls/filter-editor/parts.js +2 -1
  114. package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
  115. package/views/dist/controls/glyphs/glyphs.js +173 -0
  116. package/views/dist/controls/group-editor/group-editor.js +15 -13
  117. package/views/dist/controls/index.d.ts +4 -1
  118. package/views/dist/controls/index.js +3 -1
  119. package/views/dist/controls/input/input.js +6 -3
  120. package/views/dist/controls/input/map-input.js +2 -0
  121. package/views/dist/controls/input/tokens.d.ts +4 -0
  122. package/views/dist/controls/input/tokens.js +1 -0
  123. package/views/dist/controls/input.css +31 -3
  124. package/views/dist/controls/internal/editor-parts.js +1 -1
  125. package/views/dist/controls/internal/icons.js +10 -0
  126. package/views/dist/controls/internal/keep-focus.d.ts +2 -0
  127. package/views/dist/controls/internal/keep-focus.js +17 -0
  128. package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
  129. package/views/dist/controls/internal/map-panel-controls.js +20 -0
  130. package/views/dist/controls/internal/panel-controls.d.ts +50 -0
  131. package/views/dist/controls/internal/panel-controls.js +197 -0
  132. package/views/dist/controls/internal/part-slot.d.ts +12 -0
  133. package/views/dist/controls/internal/part-slot.js +5 -0
  134. package/views/dist/controls/internal/watch-frame.d.ts +2 -0
  135. package/views/dist/controls/internal/watch-frame.js +33 -0
  136. package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
  137. package/views/dist/controls/links-editor/links-editor.js +27 -27
  138. package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
  139. package/views/dist/controls/markdown/map-markdown.js +5 -0
  140. package/views/dist/controls/menu/map-menu.d.ts +2 -2
  141. package/views/dist/controls/menu/map-menu.js +15 -12
  142. package/views/dist/controls/menu/menu.d.ts +2 -0
  143. package/views/dist/controls/menu/menu.js +3 -3
  144. package/views/dist/controls/menu-list/menu-list.d.ts +17 -4
  145. package/views/dist/controls/menu-list/menu-list.js +27 -25
  146. package/views/dist/controls/modal/modal.js +5 -1
  147. package/views/dist/controls/notice/notice.d.ts +3 -1
  148. package/views/dist/controls/notice/notice.js +2 -2
  149. package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
  150. package/views/dist/controls/number-editor/number-editor.js +13 -13
  151. package/views/dist/controls/number-field/number-field.js +5 -3
  152. package/views/dist/controls/pane/pane.d.ts +4 -2
  153. package/views/dist/controls/pane/pane.js +6 -5
  154. package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
  155. package/views/dist/controls/phone-header/header-bar.js +2 -2
  156. package/views/dist/controls/phone-header.css +11 -1
  157. package/views/dist/controls/picker/map-picker.js +3 -0
  158. package/views/dist/controls/picker/picker.d.ts +16 -0
  159. package/views/dist/controls/picker/picker.js +61 -40
  160. package/views/dist/controls/picker/rows.d.ts +4 -0
  161. package/views/dist/controls/picker.css +2 -0
  162. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  163. package/views/dist/controls/popover/map-popover.js +4 -2
  164. package/views/dist/controls/popover/popover.js +2 -1
  165. package/views/dist/controls/quick-filters/quick-filters.js +4 -4
  166. package/views/dist/controls/radio/radio.d.ts +8 -3
  167. package/views/dist/controls/radio/radio.js +22 -5
  168. package/views/dist/controls/radio/tokens.d.ts +44 -0
  169. package/views/dist/controls/radio/tokens.js +11 -0
  170. package/views/dist/controls/radio.css +79 -1
  171. package/views/dist/controls/select/map-select.d.ts +3 -0
  172. package/views/dist/controls/select/map-select.js +8 -0
  173. package/views/dist/controls/select/select.d.ts +7 -0
  174. package/views/dist/controls/select/select.js +12 -6
  175. package/views/dist/controls/select/tokens.d.ts +8 -0
  176. package/views/dist/controls/select/tokens.js +2 -0
  177. package/views/dist/controls/select.css +17 -0
  178. package/views/dist/controls/setting-row/looks.d.ts +1 -1
  179. package/views/dist/controls/setting-row/looks.js +9 -4
  180. package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
  181. package/views/dist/controls/setting-row/setting-row.js +82 -15
  182. package/views/dist/controls/setting-row/tokens.d.ts +74 -2
  183. package/views/dist/controls/setting-row/tokens.js +19 -1
  184. package/views/dist/controls/setting-row.css +135 -14
  185. package/views/dist/controls/sheet/bottom-sheet.d.ts +14 -2
  186. package/views/dist/controls/sheet/bottom-sheet.js +6 -3
  187. package/views/dist/controls/sheet/map-sheet.js +1 -1
  188. package/views/dist/controls/sheet.css +4 -1
  189. package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
  190. package/views/dist/controls/sort-editor/map-sort-body.js +7 -3
  191. package/views/dist/controls/sort-editor/sort-editor.js +25 -26
  192. package/views/dist/controls/sort-editor.css +13 -2
  193. package/views/dist/controls/switch-row/tokens.d.ts +0 -12
  194. package/views/dist/controls/switch-row/tokens.js +0 -3
  195. package/views/dist/controls/switch-row.css +3 -7
  196. package/views/dist/controls/switch.css +17 -7
  197. package/views/dist/controls/tag/tag.d.ts +3 -1
  198. package/views/dist/controls/tag/tag.js +2 -2
  199. package/views/dist/controls/tag/tokens.d.ts +4 -0
  200. package/views/dist/controls/tag/tokens.js +1 -0
  201. package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
  202. package/views/dist/controls/tag-field/tag-field.js +11 -5
  203. package/views/dist/controls/tag-field/tokens.d.ts +16 -0
  204. package/views/dist/controls/tag-field/tokens.js +4 -0
  205. package/views/dist/controls/tag-field.css +19 -0
  206. package/views/dist/controls/tag.css +2 -0
  207. package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
  208. package/views/dist/controls/text-editor/text-editor.js +8 -8
  209. package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
  210. package/views/dist/controls/toolbar/toolbar.js +22 -15
  211. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
  212. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +52 -0
  213. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
  214. package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
  215. package/views/dist/controls/toolbar-button.css +4 -0
  216. package/views/dist/controls/toolbar.css +5 -0
  217. package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
  218. package/views/dist/controls/values-editor/values-editor.js +22 -22
  219. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
  220. package/views/dist/controls/views-list/map-view-menu.js +25 -0
  221. package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
  222. package/views/dist/controls/views-list/map-views-list-body.js +39 -21
  223. package/views/dist/controls/views-list/rules.d.ts +2 -0
  224. package/views/dist/controls/views-list/view-menu.d.ts +7 -0
  225. package/views/dist/controls/views-list/view-menu.js +33 -29
  226. package/views/dist/controls/views-list/views-list.js +4 -4
  227. package/views/dist/controls/views-list/words.d.ts +2 -0
  228. package/views/dist/controls/views-list/words.js +1 -1
  229. package/views/dist/editors/EditorPanel.js +3 -2
  230. package/views/dist/editors/edit-session.js +2 -5
  231. package/views/dist/field-row/FieldRow.d.ts +4 -2
  232. package/views/dist/field-row/FieldRow.js +80 -20
  233. package/views/dist/field-row/FieldRowLane.d.ts +7 -2
  234. package/views/dist/field-row/FieldRowLane.js +4 -3
  235. package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
  236. package/views/dist/field-row/editors/RowEditor.js +31 -1
  237. package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
  238. package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
  239. package/views/dist/field-row/field-row-button.d.ts +5 -0
  240. package/views/dist/field-row/field-row-button.js +2 -0
  241. package/views/dist/fields/binding.d.ts +3 -2
  242. package/views/dist/fields/binding.js +38 -5
  243. package/views/dist/fields/money.d.ts +5 -2
  244. package/views/dist/fields/money.js +14 -2
  245. package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
  246. package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
  247. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
  248. package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
  249. package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
  250. package/views/dist/grid/chrome/GridHeader.js +2 -2
  251. package/views/dist/grid/chrome/GridRow.js +6 -5
  252. package/views/dist/grid/chrome/GridRowCells.js +6 -9
  253. package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
  254. package/views/dist/grid/chrome/GridStructure.js +4 -4
  255. package/views/dist/grid/chrome/GridTable.js +9 -3
  256. package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
  257. package/views/dist/grid/chrome/cell-clipboard.js +2 -2
  258. package/views/dist/grid/chrome/cells.js +3 -1
  259. package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
  260. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
  261. package/views/dist/grid/chrome/grid-row-menu-items.js +93 -7
  262. package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
  263. package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
  264. package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
  265. package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
  266. package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
  267. package/views/dist/grid/chrome/useGridKeyboard.d.ts +7 -2
  268. package/views/dist/grid/chrome/useGridKeyboard.js +43 -14
  269. package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
  270. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  271. package/views/dist/grid/chrome/useGridTableInteractionModel.js +20 -7
  272. package/views/dist/grid/core/clipboard-model.d.ts +3 -1
  273. package/views/dist/grid/core/clipboard-model.js +9 -8
  274. package/views/dist/grid/core/commit-model.d.ts +20 -2
  275. package/views/dist/grid/core/editing-controller.d.ts +21 -0
  276. package/views/dist/grid/core/editing-controller.js +194 -42
  277. package/views/dist/grid/core/editing-model.d.ts +3 -0
  278. package/views/dist/grid/core/editing-model.js +3 -0
  279. package/views/dist/grid/core/edits-sink.d.ts +19 -0
  280. package/views/dist/grid/core/edits-sink.js +2 -0
  281. package/views/dist/grid/core/save-path.d.ts +24 -0
  282. package/views/dist/grid/core/save-path.js +122 -0
  283. package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
  284. package/views/dist/grid/core/spreadsheet-operations.js +24 -1
  285. package/views/dist/grid/core/useGridEditing.d.ts +5 -0
  286. package/views/dist/grid/core/useGridEditing.js +6 -0
  287. package/views/dist/grid/index.d.ts +3 -2
  288. package/views/dist/grid/index.js +1 -0
  289. package/views/dist/internal/field-rows.d.ts +26 -0
  290. package/views/dist/internal/field-rows.js +8 -0
  291. package/views/dist/internal/page-close.d.ts +7 -0
  292. package/views/dist/internal/page-close.js +43 -0
  293. package/views/dist/list/answer.d.ts +40 -0
  294. package/views/dist/list/answer.js +43 -0
  295. package/views/dist/list/browser-views-store.d.ts +10 -0
  296. package/views/dist/list/browser-views-store.js +182 -0
  297. package/views/dist/list/bulk-bar.d.ts +7 -0
  298. package/views/dist/list/bulk-bar.js +10 -0
  299. package/views/dist/list/columns.d.ts +24 -0
  300. package/views/dist/list/columns.js +27 -0
  301. package/views/dist/list/edits.d.ts +19 -0
  302. package/views/dist/list/edits.js +56 -0
  303. package/views/dist/list/grid.d.ts +11 -0
  304. package/views/dist/list/grid.js +76 -0
  305. package/views/dist/list/index.d.ts +36 -0
  306. package/views/dist/list/index.js +11 -0
  307. package/views/dist/list/link.d.ts +8 -0
  308. package/views/dist/list/link.js +78 -0
  309. package/views/dist/list/list.d.ts +70 -0
  310. package/views/dist/list/list.js +14 -0
  311. package/views/dist/list/menu.d.ts +31 -0
  312. package/views/dist/list/menu.js +76 -0
  313. package/views/dist/list/parts.d.ts +6 -0
  314. package/views/dist/list/parts.js +66 -0
  315. package/views/dist/list/registry.d.ts +11 -0
  316. package/views/dist/list/registry.js +31 -0
  317. package/views/dist/list/root-base.d.ts +46 -0
  318. package/views/dist/list/root-base.js +137 -0
  319. package/views/dist/list/root.d.ts +41 -0
  320. package/views/dist/list/root.js +168 -0
  321. package/views/dist/list/slot.d.ts +14 -0
  322. package/views/dist/list/slot.js +22 -0
  323. package/views/dist/list/source-answers.d.ts +39 -0
  324. package/views/dist/list/source-answers.js +225 -0
  325. package/views/dist/list/source.d.ts +11 -0
  326. package/views/dist/list/source.js +31 -0
  327. package/views/dist/list/store.d.ts +119 -0
  328. package/views/dist/list/store.js +146 -0
  329. package/views/dist/list/toolbar.d.ts +7 -0
  330. package/views/dist/list/toolbar.js +371 -0
  331. package/views/dist/list/views-axis.d.ts +5 -0
  332. package/views/dist/list/views-axis.js +98 -0
  333. package/views/dist/list/views-store.d.ts +41 -0
  334. package/views/dist/list/views-store.js +1 -0
  335. package/views/dist/list/views.d.ts +72 -0
  336. package/views/dist/list/views.js +411 -0
  337. package/views/dist/model/column-capabilities.d.ts +13 -0
  338. package/views/dist/model/column-capabilities.js +23 -2
  339. package/views/dist/model/column-schema.d.ts +11 -1
  340. package/views/dist/model/preferences.js +1 -1
  341. package/views/dist/model/prefs-buckets.js +1 -1
  342. package/views/dist/model/view-rules.js +1 -0
  343. package/views/dist/panels/index.d.ts +3 -1
  344. package/views/dist/panels/index.js +1 -0
  345. package/views/dist/panels/model.d.ts +2 -0
  346. package/views/dist/panels/react/customize-body.js +1 -0
  347. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +47 -4
  348. package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
  349. package/views/dist/panels/react/toolbar/Toolbar.d.ts +17 -2
  350. package/views/dist/panels/react/toolbar/Toolbar.js +43 -23
  351. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +1 -1
  352. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  353. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
  354. package/views/dist/panels/react/toolbar/ToolbarButton.js +7 -1
  355. package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
  356. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +1 -1
  357. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
  358. package/views/dist/panels/react/toolbar/ToolbarFilters.js +2 -2
  359. package/views/dist/panels/react/toolbar/ToolbarNew.js +2 -2
  360. package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
  361. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
  362. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
  363. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  364. package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
  365. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
  366. package/views/dist/panels/react/toolbar/context.d.ts +20 -3
  367. package/views/dist/panels/react/toolbar/context.js +3 -1
  368. package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
  369. package/views/dist/panels/react/toolbar/panel-part.js +5 -3
  370. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
  371. package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
  372. package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
  373. package/views/dist/panels/react/views-row/PillGroup.js +16 -7
  374. package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
  375. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
  376. package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
  377. package/views/dist/panels/react.d.ts +2 -2
  378. package/views/dist/panels/settings/filter-groups.js +6 -1
  379. package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
  380. package/views/dist/panels/toolbar/edit-view.js +14 -0
  381. package/views/dist/panels/toolbar/model.d.ts +5 -0
  382. package/views/dist/panels/toolbar/model.js +7 -3
  383. package/views/dist/panels/view-state.d.ts +5 -3
  384. package/views/dist/panels/views-row/model.d.ts +19 -2
  385. package/views/dist/panels/views-row/model.js +14 -0
  386. package/views/dist/provider/ViewsProvider.d.ts +21 -8
  387. package/views/dist/provider/ViewsProvider.js +40 -5
  388. package/views/dist/provider/components.d.ts +102 -2
  389. package/views/dist/provider/components.js +1 -1
  390. package/views/dist/provider/context.d.ts +6 -2
  391. package/views/dist/provider/context.js +1 -1
  392. package/views/dist/provider/own-control.d.ts +4 -0
  393. package/views/dist/provider/own-control.js +7 -0
  394. package/views/dist/provider/ports.d.ts +19 -12
  395. package/views/dist/provider/ports.js +69 -1
  396. package/views/dist/provider/select-items.d.ts +3 -0
  397. package/views/dist/provider/select-items.js +6 -0
  398. package/views/dist/react.d.ts +4 -2
  399. package/views/dist/react.js +2 -0
  400. package/views/dist/styles.css +503 -136
  401. package/views/dist/styles.unlayered.css +503 -136
  402. package/views/docs/contract.md +292 -34
  403. package/views/docs/controls/avatar.md +11 -0
  404. package/views/docs/controls/choice.md +0 -1
  405. package/views/docs/controls/compound-editor.md +4 -0
  406. package/views/docs/controls/customize.md +6 -0
  407. package/views/docs/controls/date-editor.md +4 -0
  408. package/views/docs/controls/field.md +7 -0
  409. package/views/docs/controls/filter-editor.md +8 -0
  410. package/views/docs/controls/group-editor.md +6 -0
  411. package/views/docs/controls/input.md +5 -0
  412. package/views/docs/controls/links-editor.md +4 -0
  413. package/views/docs/controls/menu-list.md +8 -0
  414. package/views/docs/controls/menu.md +4 -0
  415. package/views/docs/controls/notice.md +4 -0
  416. package/views/docs/controls/number-editor.md +4 -0
  417. package/views/docs/controls/pane.md +4 -0
  418. package/views/docs/controls/picker.md +8 -0
  419. package/views/docs/controls/quick-filters.md +6 -0
  420. package/views/docs/controls/radio.md +20 -1
  421. package/views/docs/controls/select.md +10 -0
  422. package/views/docs/controls/setting-row.md +18 -0
  423. package/views/docs/controls/sheet.md +4 -0
  424. package/views/docs/controls/sort-editor.md +8 -0
  425. package/views/docs/controls/switch-row.md +0 -3
  426. package/views/docs/controls/tag-field.md +4 -0
  427. package/views/docs/controls/tag.md +1 -0
  428. package/views/docs/controls/text-editor.md +4 -0
  429. package/views/docs/controls/values-editor.md +4 -0
  430. package/views/docs/controls/views-list.md +6 -0
  431. package/views/docs/getting-started.md +2 -2
  432. package/views/docs/guides/atoms.md +2 -2
  433. package/views/docs/guides/columns.md +1 -1
  434. package/views/docs/guides/ports.md +1 -1
  435. package/views/docs/guides/the-grid.md +36 -9
  436. package/views/docs/guides/the-provider.md +22 -3
  437. package/views/docs/index.md +1 -0
  438. package/views/docs/reference/controls.md +41 -29
  439. package/views/docs/reference/editors-session.md +1 -1
  440. package/views/docs/reference/field-row.md +9 -1
  441. package/views/docs/reference/grid.md +15 -9
  442. package/views/docs/reference/list.md +357 -0
  443. package/views/docs/reference/looks.md +1 -1
  444. package/views/docs/reference/panels-react.md +17 -12
  445. package/views/docs/reference/panels.md +8 -5
  446. package/views/docs/reference/react.md +24 -16
  447. package/views/docs/reference/views.md +10 -6
  448. package/views/docs/reshaping.md +6 -1
  449. package/views/skills/views/SKILL.md +9 -6
@@ -15,3 +15,9 @@ The Menu list, the Radio, the Input, the Button, the Notice, the Pane and the Sh
15
15
  | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
16
16
  | `--vk-overlay` | colour | `surface-overlay` | the colour defaults' |
17
17
  | `--vk-spacing` | size | `spacing` | `4px` |
18
+
19
+ ## Its parts by name
20
+
21
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
22
+
23
+ `vk-customize`, `vk-customize-head`, `vk-customize-title`, `vk-customize-back`, `vk-customize-close`, `vk-customize-layout-button`, `vk-customize-name`, `vk-customize-heading`, `vk-customize-section`, `vk-customize-field`, `vk-customize-toggle`, `vk-customize-toggle-reset`, `vk-customize-choice`, `vk-customize-option`, `vk-customize-layout`, `vk-customize-column`, `vk-customize-search`, `vk-customize-columns-action`, `vk-customize-foot`, `vk-customize-changes`, `vk-customize-action`, `vk-customize-stale`.
@@ -41,3 +41,7 @@ It also reads other controls' own names where it stands inside them, the Popover
41
41
  | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
42
42
  | `--vk-spacing` | size | `spacing` | `4px` |
43
43
  | `--vk-tracking-wide` | size | `tracking-wide` | `0.025em` |
44
+
45
+ ## Its parts
46
+
47
+ The Date editor names every part it draws with a public `data-slot`, the same in the grid, the field row and a phone's sheet, on the box a person sees: `vk-date`, `vk-calendar`, `vk-date-line`, `vk-date-reads`, `vk-date-error`, `vk-date-time`, `vk-date-head`, `vk-date-prev`, `vk-date-next`, `vk-date-month`, `vk-date-year`, `vk-date-days`, `vk-date-weekdays`, `vk-date-day`, `vk-date-choices`, `vk-date-choice`, `vk-date-quarters`, `vk-date-quarter`, `vk-date-parts`, `vk-date-part`, `vk-date-segment`, `vk-date-sep`, `vk-date-picks`, `vk-date-pick`, `vk-date-card`, `vk-date-wheels`, `vk-date-wheel`, `vk-date-wheel-row`. The default Calendar is `vk-calendar`, and its head and days take the same names; a quick pick says which by `data-key` (`today`, `tomorrow`, `none`…). Its ✕, ✓ and a step's ‹ are `vk-editor-close`, `vk-editor-save` and `vk-editor-back`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -4,6 +4,8 @@ Every name the Field's, the FieldSet's, the separator's and Field rows' styleshe
4
4
 
5
5
  Its options set its variables on the frame that picks them (`data-field-rows-*`), from some of these names: an app that declares the names on each element, rather than once at its root, declares them on those frames too, or a frame's pick falls back to the default.
6
6
 
7
+ A row of Field rows may open with a glyph lane (`o-field-row-glyph`), 20 wide, its glyph centred; a row holding one starts the line above it from the words, after the lane and the gap (a place that sets another gap between a row's parts sets `--field-rows-line-start` with it). A label's one long word breaks inside its column. Nothing new to declare.
8
+
7
9
  | name | kind | the Outright token | default |
8
10
  | ---- | ---- | ------------------ | ------- |
9
11
  | `--vk-border-overlay-card` | colour | `border-overlay-card` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
@@ -13,6 +15,7 @@ Its options set its variables on the frame that picks them (`data-field-rows-*`)
13
15
  | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
14
16
  | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
15
17
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
18
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
16
19
  | `--vk-font-size-base` | size | `text-base` | `16px` |
17
20
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
18
21
  | `--vk-font-size-xs` | size | `text-xs` | `12px` |
@@ -24,3 +27,7 @@ Its options set its variables on the frame that picks them (`data-field-rows-*`)
24
27
  | `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
25
28
  | `--vk-radius-xl` | size | `radius-xl` | `15px` |
26
29
  | `--vk-spacing` | size | `spacing` | `4px` |
30
+
31
+ ## A part's name
32
+
33
+ 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.
@@ -26,3 +26,11 @@ The Select, the Picker, the Menu, the Button, the Input, the Number field, the D
26
26
  | `--vk-spacing` | size | `spacing` | `4px` |
27
27
  | `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
28
28
  | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
29
+
30
+ ## Its parts by name
31
+
32
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
33
+
34
+ `vk-filter`, `vk-filter-rules`, `vk-filter-item`, `vk-filter-rule`, `vk-filter-where`, `vk-filter-joined`, `vk-filter-join`, `vk-filter-field`, `vk-filter-how`, `vk-filter-value`, `vk-filter-rule-more`, `vk-filter-rule-action`, `vk-filter-group`, `vk-filter-group-head`, `vk-filter-quantifier`, `vk-filter-group-more`, `vk-filter-group-action`, `vk-filter-delete`, `vk-filter-add`, `vk-filter-clear`, `vk-filter-foot`, `vk-filter-none`, `vk-filter-excluded`, `vk-filter-head`.
35
+
36
+ Under the provider's `panelControls` its buttons, boxes that pick, menus, popovers and text boxes are the app's own, each handed its part's name (VK-1013).
@@ -9,3 +9,9 @@ The Menu list, the Picker, the Button and the Sheet it draws with read their own
9
9
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
10
10
  | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
11
11
  | `--vk-spacing` | size | `spacing` | `4px` |
12
+
13
+ ## Its parts by name
14
+
15
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
16
+
17
+ `vk-group`, `vk-group-setting`, `vk-group-choice`, `vk-group-heading`, `vk-group-value`, `vk-group-hide-all`, `vk-group-remove`.
@@ -19,6 +19,7 @@ Every name the Input's, the InputGroup's and the segments' stylesheet (`input.cs
19
19
  | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
20
20
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
21
21
  | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
22
+ | `--vk-fg-brand` | colour | `link` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
22
23
  | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
23
24
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
24
25
  | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
@@ -54,3 +55,7 @@ Every name the Input's, the InputGroup's and the segments' stylesheet (`input.cs
54
55
  ## Saving and Saved
55
56
 
56
57
  `<Input saving />`, `<Input saved />`, and the same on an `InputGroup`: while the app saves what was typed, the Spinner stands at the field's end (after a group's end side), in `--vk-fg-subtlest`, the field busy (`aria-busy`) and still typed into; once the save took, a check and the word Saved, in `--vk-success` at `--vk-font-size-xs`, announced (`role="status"`), fading on `--vk-duration-base` after `--vk-saved-hold` and then gone from the field. It shows again each time `saved` turns on; saving wins when both are on. A page holds Saved with `data-force="saved"`. A save that fails is the Field's `error`, with the value before put back by the app.
58
+
59
+ ## Its name in a panel or an editor
60
+
61
+ A panel or a field editor that names the Input it draws hands `data-slot` and `data-key` (VK-988: Customize's `vk-customize-name`; VK-989: a name's `vk-parts-box`, the date's `vk-date-year`): in its field form the Input draws them on its box (`data-kit="input"`), the element your stylesheet dresses, as it does `data-force`; bare (`chrome="bare"`), on the input itself.
@@ -23,3 +23,7 @@ Its own machinery (`--links-room`, `--links-under`, the room a phone's full Shee
23
23
  | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
24
24
  | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
25
25
  | `--vk-spacing` | size | `spacing` | `4px` |
26
+
27
+ ## Its parts
28
+
29
+ The Links editor names every part it draws with a public `data-slot`, the same in the grid, the field row and a phone's sheet, on the box a person sees: `vk-links`, `vk-links-search`, `vk-links-list`, `vk-links-head`, `vk-links-rows`, `vk-links-row`, `vk-links-name`, `vk-links-field`, `vk-links-value`, `vk-links-control`, `vk-links-pop`, `vk-links-lead`, `vk-links-remove`, `vk-links-config`, `vk-links-more`, `vk-links-step`, `vk-links-back`, `vk-links-unlink`, `vk-links-offers`, `vk-links-offer`, `vk-links-offer-action`, `vk-links-note`, `vk-links-retry`. A link says its record, and a field its id, by `data-key`. Its ✕, ✓ and a step's ‹ are `vk-editor-close`, `vk-editor-save` and `vk-editor-back`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -50,3 +50,11 @@ Every name the menu list's stylesheet (`menu-list.css`) reads, each optional: th
50
50
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
51
51
  | `--vk-hold-delay` | motion | `hold-delay` | `500ms` |
52
52
  | `--vk-submenu-delay` | motion | `submenu-delay` | `100ms` |
53
+
54
+ ## A row's name
55
+
56
+ An entry or a choice that carries `slot` (`PartSlot`: `slot`, `key`, `index`, VK-988) draws them on its row as `data-slot`, `data-key` and `data-index`, in every form: the popup's rows, the rows standing still, a panel's rows, a phone's rows and tiles. A `pick` or a `group` names its rows through its choices or entries.
57
+
58
+ ## MenuListRow's name
59
+
60
+ `MenuListRow` draws a handed `data-slot` and `data-key` on its row: a field editor's row (the date editor's time on a phone, `vk-date-time`).
@@ -9,3 +9,7 @@ Every name the Menu's stylesheet (`menu.css`) reads, each optional: the ready st
9
9
  | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
10
10
  | `--vk-layer-popup` | size | `layer-popup` | `50` |
11
11
  | `--vk-spacing` | size | `spacing` | `4px` |
12
+
13
+ ## Its name in a panel
14
+
15
+ A menu a panel names takes `data-slot` (VK-988: `vk-view-menu`), drawn on its popup on a computer; its rows take theirs from each entry's `slot` (`PartSlot`). ViewKit's own map Menu (`ViewsMenuProps`) names a named menu's rows `<name>-row`, each by its item's `data-key`; a menu nobody names draws as before.
@@ -30,3 +30,7 @@ Its actions are any Button, a label's the Button's text kind; its × the quiet B
30
30
  | `--vk-duration-base` | motion | `duration-base` | `200ms` |
31
31
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
32
32
  | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
33
+
34
+ ## Its name in a panel
35
+
36
+ A Notice a panel names takes `data-slot` on its box (VK-988: Customize's `vk-customize-stale`).
@@ -10,3 +10,7 @@ Every name `number-editor.css` reads (beside the stylesheets of the controls it
10
10
  | `--vk-font-size-base` | size | `text-base` | `16px` |
11
11
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
12
12
  | `--vk-spacing` | size | `spacing` | `4px` |
13
+
14
+ ## Its parts
15
+
16
+ The Number editor names every part it draws with a public `data-slot`, the same in the grid, the field row and a phone's sheet, on the box a person sees: `vk-number`, `vk-number-box`, `vk-number-currency`, `vk-number-unit`. Its ✕, ✓ and a step's ‹ are `vk-editor-close`, `vk-editor-save` and `vk-editor-back`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -23,3 +23,7 @@ Every name `pane.css` reads, each optional: the ready stylesheet declares it at
23
23
  | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
24
24
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` · dark `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
25
25
  | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` · dark `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
26
+
27
+ ## Its parts' names in a panel
28
+
29
+ `PaneHead` and `PaneFoot` take a handed `data-slot` (VK-988: Customize's `vk-customize-head` and `vk-customize-foot`).
@@ -40,3 +40,11 @@ Every name the Picker's stylesheet (`picker.css`) reads, each optional: the read
40
40
  | `--vk-radius-xl` | size | `radius-xl` | `15px` |
41
41
  | `--vk-spacing` | size | `spacing` | `4px` |
42
42
  | `--vk-hold-delay` | motion | `hold-delay` | `500ms` |
43
+
44
+ ## A row's name
45
+
46
+ An item that carries `slot` (`PartSlot`, VK-988) draws it on its row as `data-slot` and `data-key`, on a computer and on a phone, its Selected card too: a panel's own row (a view in the views list, `vk-views-list-row`). `menuSlot` names its rows' menus' popups (the views list's `vk-view-menu`).
47
+
48
+ ## Its parts
49
+
50
+ The Picker names every part it draws with a public `data-slot`, in every field editor, a Select's list and a panel alike: `vk-picker`, `vk-picker-search`, `vk-picker-list`, `vk-picker-chips`, `vk-picker-chip`, `vk-picker-option`, `vk-picker-parent`, `vk-picker-empty`, `vk-picker-add`, `vk-picker-create`, `vk-picker-action`, `vk-picker-group`, `vk-picker-heading`, `vk-picker-card`, `vk-picker-selected`, `vk-picker-tick`, `vk-picker-row-more`, `vk-picker-more`, `vk-picker-back`, `vk-picker-count`, `vk-picker-clear`, `vk-picker-lead`, `vk-picker-lead-make`, `vk-picker-message`, `vk-picker-retry`, `vk-picker-loading`, `vk-picker-foot`. A row says which one it is by `data-key`, its item's value, and wears `vk-picker-option` unless its item hands a `slot` of its own (a panel's row: the views list's `vk-views-list-row`), which wins. + Add is `vk-picker-add` where the Picker adds through `onAdd`, Create `vk-picker-create`; each action is `vk-picker-action`, keyed by its `id`. Its Cancel and ✓ on a phone are `vk-editor-cancel` and `vk-editor-save`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -33,3 +33,9 @@ The Toggle group, the Input, the Avatar, the Status and the Scrollbar it draws w
33
33
  | `--vk-radius-lg` | size | `radius-lg` | `10px` |
34
34
  | `--vk-shadow-menu` | shadow | `shadow-menu` | `0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04)` · dark `0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%)` |
35
35
  | `--vk-spacing` | size | `spacing` | `4px` |
36
+
37
+ ## Its parts by name
38
+
39
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
40
+
41
+ `vk-quick`, `vk-quick-field`, `vk-quick-search`, `vk-quick-value`, `vk-quick-count`, `vk-quick-clear`, `vk-quick-none`, `vk-quick-head`.
@@ -10,6 +10,7 @@ The words beside a choice, and a card's edge and ground (`o-choice-*`), are `cho
10
10
  | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
11
11
  | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
12
12
  | `--vk-border-input-hovered` | colour | `border-input-hovered` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
13
+ | `--vk-border-overlay-card` | colour | `border-overlay-card` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
13
14
  | `--vk-border-selected` | colour | `border-selected` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
14
15
  | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
15
16
  | `--vk-border-width` | size | `border-width` | `1px` |
@@ -26,19 +27,29 @@ The words beside a choice, and a card's edge and ground (`o-choice-*`), are `cho
26
27
  | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
27
28
  | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
28
29
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
30
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
29
31
  | `--vk-focus-offset` | size | `focus-offset` | `2px` |
30
32
  | `--vk-focus-width` | size | `focus-width` | `2px` |
33
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
31
34
  | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
32
35
  | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
33
36
  | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
34
37
  | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
35
38
  | `--vk-input` | colour | `background-input` | `hsl(0 0% 100% / 0)` |
39
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
40
+ | `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
36
41
  | `--vk-label-amber-fill` | colour | `label-amber-fill` | `hsl(19 72% 92.5%)` · dark `hsl(20 42% 18.5%)` |
42
+ | `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
37
43
  | `--vk-label-blue-fill` | colour | `label-blue-fill` | `hsl(218 100% 94%)` · dark `hsl(219 46% 21%)` |
44
+ | `--vk-label-green` | colour | `label-green` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
38
45
  | `--vk-label-green-fill` | colour | `label-green-fill` | `hsl(143 41% 91%)` · dark `hsl(146 27% 16.5%)` |
46
+ | `--vk-label-pink` | colour | `label-pink` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
39
47
  | `--vk-label-pink-fill` | colour | `label-pink-fill` | `hsl(345 100% 94.5%)` · dark `hsl(341 34% 20.5%)` |
48
+ | `--vk-label-purple` | colour | `label-purple` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
40
49
  | `--vk-label-purple-fill` | colour | `label-purple-fill` | `hsl(249 100% 95.5%)` · dark `hsl(254 34% 23.5%)` |
50
+ | `--vk-label-red` | colour | `label-red` | `hsl(0 81% 58%)` |
41
51
  | `--vk-label-red-fill` | colour | `label-red-fill` | `hsl(6 100% 94%)` · dark `hsl(5 37% 20.5%)` |
52
+ | `--vk-label-teal` | colour | `label-teal` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
42
53
  | `--vk-label-teal-fill` | colour | `label-teal-fill` | `hsl(196 52% 91.5%)` · dark `hsl(196 32% 17.5%)` |
43
54
  | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
44
55
  | `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
@@ -50,8 +61,16 @@ The words beside a choice, and a card's edge and ground (`o-choice-*`), are `cho
50
61
 
51
62
  ## A swatch
52
63
 
53
- `<Radio swatch="teal" aria-label="Teal" />`: a 24px dot in one of the label colours (`blue`, `green`, `amber`, `red`, `purple`, `pink`, `teal`, `grey`) in place of the ring, named by its aria-label. Chosen, a thin ring of the ground (`--vk-ground`) and the selected colour just outside it; under the pointer the same ring in `--vk-border-input-hovered`; focus outlines it outside that ring; disabled, `--vk-neutral` with a dashed edge, which the arrows pass by, the chosen one keeping its ring in `--vk-border-input`. In a `row` group, 10 apart.
64
+ `<Radio swatch="teal" aria-label="Teal" />`: a 24px dot in one of the label colours (`blue`, `green`, `amber`, `red`, `purple`, `pink`, `teal`, `grey`) in place of the ring, named by its aria-label. Chosen, a thin ring of the ground (`--vk-ground`) and the selected colour just outside it; under the pointer the same ring in `--vk-border-input-hovered`; focus outlines it outside that ring; disabled, `--vk-neutral` with a dashed edge, which the arrows pass by, the chosen one keeping its ring in `--vk-border-input`. In a `row` group, 10 apart. On a phone each row of swatches is a card of its own, each swatch 28 across in its colour's bold shade (`--vk-label-<colour>`, grey `--vk-fg-subtlest`) where a computer's is the label's pale fill (`--vk-label-<colour>-fill`, grey `--vk-neutral`).
54
65
 
55
66
  ## A picture on a marked card
56
67
 
57
68
  `<Radio mark={<SunIcon />} picture={<YourPicture />} label="Light" />`: what the app draws fills the card's width, 120 tall, framed in `--vk-border-subtle` at `--vk-radius-sm`; the mark and the name stand side by side and centred under it, in `--vk-fg-subtle`, the chosen card's in `--vk-fg`, its name `--vk-font-weight-medium`. A picture makes the card marked with a mark or without. In a `row` group the pictured cards stand one beside another at equal widths, on a phone too.
69
+
70
+ ## Cards on a phone
71
+
72
+ `<Radio card value="everyone" label="Everyone in the workspace" note="Every member and guest." />` in a group: on a phone the cards are iOS's ✓ rows on one card (`--vk-overlay-card`, `--vk-radius-xl`), each row 52 at least, its label in `--vk-font-size-base` and its note in `--vk-fg-subtlest`, a rule in `--vk-border-overlay-card` between each from the words (a place stops it `--field-rows-line-end` short of the right edge, as Field rows' rule); the ring stands at the row's end, bare, and the chosen one shows a ✓ in `--vk-fg-accent`. The ring keeps the keys and the focus.
73
+
74
+ ## Its name in a panel
75
+
76
+ A panel that names the Radio it draws hands `data-slot` and `data-key` (VK-988: `vk-customize-layout`, say): the Radio draws them on its label, the card a person sees, never on the ring.
@@ -5,8 +5,10 @@ Every name the Select's stylesheet (`select.css`) reads, each optional: the read
5
5
  | name | kind | the Outright token | default |
6
6
  | ---- | ---- | ------------------ | ------- |
7
7
  | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
8
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
8
9
  | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
9
10
  | `--vk-font-size-base` | size | `text-base` | `16px` |
11
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
10
12
  | `--vk-spacing` | size | `spacing` | `4px` |
11
13
  | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
12
14
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
@@ -14,3 +16,11 @@ Every name the Select's stylesheet (`select.css`) reads, each optional: the read
14
16
  ## Saving and Saved
15
17
 
16
18
  Every Select field takes `saving` and `saved`, as the Input does ([its page](input.md), Saving and Saved): the Spinner, then a check and Saved, just before the chevron, the field busy while it saves and named as before. Its names are the Input's.
19
+
20
+ ## The components map's Select
21
+
22
+ `CONTROLS.Select` (`MapSelect`) is the components map's default `Select`: the map's props drawn as this Select, its list as wide as its rows need. Under the provider's `panelControls` a panel draws the app's own `Select` in this one's place (VK-1013).
23
+
24
+ ## Its name in a panel
25
+
26
+ A panel that names the Select it draws hands `data-slot` and `data-key` (VK-988: `vk-sort-field`, say): the Select draws them on its box, the element carrying `data-kit="select"`, in every form.
@@ -10,17 +10,35 @@ Every name the setting row's stylesheet (`setting-row.css`) reads, each optional
10
10
  | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
11
11
  | `--vk-raised` | colour | `surface-raised` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
12
12
  | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` |
13
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
13
14
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
14
15
  | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
16
+ | `--vk-fg-brand` | colour | `link` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
17
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
18
+ | `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
19
+ | `--vk-label-green` | colour | `label-green` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
20
+ | `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
21
+ | `--vk-label-red` | colour | `label-red` | `hsl(0 81% 58%)` |
22
+ | `--vk-label-purple` | colour | `label-purple` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
23
+ | `--vk-label-pink` | colour | `label-pink` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
24
+ | `--vk-label-teal` | colour | `label-teal` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
25
+ | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
26
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
27
+ | `--vk-icon-disclosure` | colour | `icon-disclosure` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
15
28
  | `--vk-border-width` | size | `border-width` | `1px` |
16
29
  | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
17
30
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
18
31
  | `--vk-font-size-xs` | size | `text-xs` | `12px` |
32
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
33
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
19
34
  | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
20
35
  | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
21
36
  | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
22
37
  | `--vk-radius-lg` | size | `radius-lg` | `10px` |
23
38
  | `--vk-radius-md` | size | `radius-md` | `7.5px` |
39
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
40
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
24
41
  | `--vk-spacing` | size | `spacing` | `4px` |
42
+ | `--vk-opacity-off` | size | `opacity-off` | `0.45` |
25
43
  | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
26
44
  | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
@@ -39,3 +39,7 @@ Every name the bottom Sheet's stylesheet (`sheet.css`) reads, each optional: the
39
39
  | `--vk-push-scale` | motion | `push-scale` | `0.94` |
40
40
  | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
41
41
  | `--vk-duration-base` | motion | `duration-base` | `200ms` |
42
+
43
+ ## Its buttons' names
44
+
45
+ `SheetButton` draws a handed `data-slot` on both its forms. `SheetHead` draws its `backSlot` on its ‹ (`data-slot`): a field editor's step hands `vk-editor-back`. ViewKit's own Sheet names the ✕, ✓ and ‹ it draws from its `actions` (`sheetActions: "head"`) `vk-editor-close`, `vk-editor-save` and `vk-editor-back`.
@@ -25,3 +25,11 @@ The Select, the Picker, the Menu, the Button and the Field rows it draws with re
25
25
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
26
26
  | `--vk-spacing` | size | `spacing` | `4px` |
27
27
  | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
28
+
29
+ ## Its parts by name
30
+
31
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
32
+
33
+ `vk-sort`, `vk-sort-rules`, `vk-sort-rule`, `vk-sort-grip`, `vk-sort-field`, `vk-sort-direction`, `vk-sort-remove`, `vk-sort-rule-open`, `vk-sort-rule-more`, `vk-sort-rule-action`, `vk-sort-direction-option`, `vk-sort-add`, `vk-sort-clear`, `vk-sort-foot`, `vk-sort-none`, `vk-sort-head`.
34
+
35
+ Under the provider's `panelControls` its buttons, boxes that pick, menus, popovers and text boxes are the app's own, each handed its part's name (VK-1013).
@@ -6,7 +6,6 @@ Every name the SwitchRow's and SwitchRows' stylesheet (`switch-row.css`) reads,
6
6
  | ---- | ---- | ------------------ | ------- |
7
7
  | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
8
  | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
9
- | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
10
9
  | `--vk-border-width` | size | `border-width` | `1px` |
11
10
  | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
12
11
  | `--vk-font-size-sm` | size | `text-sm` | `14px` |
@@ -14,5 +13,3 @@ Every name the SwitchRow's and SwitchRows' stylesheet (`switch-row.css`) reads,
14
13
  | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
15
14
  | `--vk-radius-lg` | size | `radius-lg` | `10px` |
16
15
  | `--vk-spacing` | size | `spacing` | `4px` |
17
- | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
18
- | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
@@ -4,4 +4,8 @@ Every name the TagField's stylesheet (`tag-field.css`) reads, each optional: the
4
4
 
5
5
  | name | kind | the Outright token | default |
6
6
  | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-width` | size | `border-width` | `1px` |
8
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
9
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
10
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
7
11
  | `--vk-spacing` | size | `spacing` | `4px` |
@@ -14,6 +14,7 @@ Every name the Tag's stylesheet (`tag.css`) reads, each optional: the ready styl
14
14
  | `--vk-focus-width` | size | `focus-width` | `2px` |
15
15
  | `--vk-font-size-xs` | size | `text-xs` | `12px` |
16
16
  | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
17
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
17
18
  | `--vk-radius-md` | size | `radius-md` | `7.5px` |
18
19
  | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
19
20
  | `--vk-spacing` | size | `spacing` | `4px` |
@@ -21,3 +21,7 @@ It also reads the inline input's own `--inline-input-ring` and `--inline-input-c
21
21
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
22
22
  | `--vk-shadow-menu` | shadow | `shadow-menu` | `0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04)` · dark `0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%)` |
23
23
  | `--vk-spacing` | size | `spacing` | `4px` |
24
+
25
+ ## Its parts
26
+
27
+ The Text editor names every part it draws with a public `data-slot`, the same in the grid, the field row and a phone's sheet, on the box a person sees: `vk-text`, `vk-text-box`, `vk-text-country`, `vk-text-dial`, `vk-text-note`. Its ✕, ✓ and a step's ‹ are `vk-editor-close`, `vk-editor-save` and `vk-editor-back`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -38,3 +38,7 @@ It also reads the Popover's corners (`--popover-corners`), the popup line's reac
38
38
  | `--vk-radius-xl` | size | `radius-xl` | `15px` |
39
39
  | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
40
40
  | `--vk-spacing` | size | `spacing` | `4px` |
41
+
42
+ ## Its parts
43
+
44
+ The Values editor names every part it draws with a public `data-slot`, the same in the grid, the field row and a phone's sheet, on the box a person sees: `vk-values`, `vk-values-rows`, `vk-values-row`, `vk-values-value`, `vk-values-edit`, `vk-values-label`, `vk-values-main`, `vk-values-pill`, `vk-values-acts`, `vk-values-grip`, `vk-values-copy`, `vk-values-open`, `vk-values-remove`, `vk-values-line`, `vk-values-code`, `vk-values-prefix`, `vk-values-add`, `vk-values-back`, `vk-values-error`. Each row says its place by `data-index`, from 0. Its ✕, ✓ and a step's ‹ are `vk-editor-close`, `vk-editor-save` and `vk-editor-back`. Dress a part by its name, never by a class: [the field editors' parts](../contract.md#the-field-editors-parts-vk-989).
@@ -6,3 +6,9 @@ Every name `views-list.css` reads (beside the stylesheets of the controls it dra
6
6
  | ---- | ---- | ------------------ | ------- |
7
7
  | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
8
8
  | `--vk-spacing` | size | `spacing` | `4px` |
9
+
10
+ ## Its parts by name
11
+
12
+ Each part inside it carries a public `data-slot` (VK-988), so your stylesheet dresses one part apart from the rest; a part that repeats also says which one it is (`data-key`, and a rule its place, `data-index`). What each names, and its keys: [the panels' parts](../contract.md#the-atoms).
13
+
14
+ `vk-views-list`, `vk-views-list-row`, `vk-views-list-head`, `vk-view-menu`, `vk-view-menu-row`, `vk-view-menu-name`, `vk-view-menu-layout`, `vk-view-menu-columns`, `vk-view-menu-act`.
@@ -8,7 +8,7 @@ This page takes you from install to a grid of records drawn with your own primit
8
8
  pnpm add viewkitjs zod
9
9
  ```
10
10
 
11
- `react` and `react-dom` 19 are optional peers that the views part needs and you already have, and `zod` `^4.1.12` is a peer of the package. The dnd-kit packages are optional peers too, for the panels' parts that drag (the views row's pills, the sort's rules, the Columns list, the group order), which the door loads with `import()` as it loads: install them if your app renders one. The drawn panels' door (`viewkitjs/views/panels/react`) itself loads without them. The package is ESM only and runs on Node 20 or later.
11
+ `react` and `react-dom` 19 are optional peers that the views part needs and you already have, and `zod` `^4.1.12` is a peer of the package. The dnd-kit packages are optional peers too, for the panels' parts that drag (the views row's pills, the sort's rules, the Columns list, the group order), which the door loads with `import()` as it loads: install them if your app renders one. The drawn panels' door (`viewkitjs/views/panels/react`) and the list's (`viewkitjs/views/list`) load without them. The package is ESM only and runs on Node 20 or later.
12
12
 
13
13
  The rendering's look is one stylesheet: `@import "viewkitjs/views/styles.css";` draws it with no Tailwind, the Outright look by default, and one block mapping the `--vk-*` colours onto your theme makes it your app's. [Install](install.md) has both, and the `@source` line that lets your own Tailwind compile it instead.
14
14
 
@@ -64,7 +64,7 @@ const DEAL_BINDINGS = bindFields<Deal, typeof DEAL_FIELDS>(DEAL_FIELDS, {
64
64
  });
65
65
  ```
66
66
 
67
- `bindFields` checks every binding when the module loads: a `write` on a field that can't be changed, or a writable money field whose currency comes from the row with no `unit`, throws `FieldBindingError` at startup. The [columns guide](guides/columns.md) has the rest.
67
+ A field you leave out binds by its key: it reads `row[key]` and writes `{ [key]: value }`. `bindFields` checks every binding when the module loads: a `write` on a field that can't be changed, or a writable money field whose currency comes from the row with no `unit`, throws `FieldBindingError` at startup. The [columns guide](guides/columns.md) has the rest.
68
68
 
69
69
  ## Make the columns
70
70
 
@@ -202,7 +202,7 @@ A `command` field offers verbs instead of an editor: moving a deal to Lost asks
202
202
 
203
203
  ## The row's menu
204
204
 
205
- `RowMenu` wraps a section's rows: the grid mounts it once around each section's rows' container, never around each row, and aims it at the row a press or a right-click came from. Its props are that row's, set in the same event your menu opens on; `children` is the rows' container, which takes the props and `ref` your trigger hands it (a `Slot`, `asChild`) and passes them to its element; a right-click on no row arrives already prevented and opens nothing. The rendering builds its `items` (the clicked cell's clipboard rows, Select, your verbs for the row), and the menu adds an Open page row before them when the row has a page (`openHref`, opened in a new tab) and a Delete row after them when the row can be deleted (`onDelete`). Its props are `ViewsRowMenuProps`; each item is a `ViewsRowMenuItem`, a rule (`{ separator: true }`) or a labelled row with its `onClick`, optional `icon`, `destructive`, `disabled` with its `disabledReason` (the grid's own Cut, Paste and Clear carry one whenever they are disabled), and a `shortcut` hint the menu draws but never binds. The default names your `Menu` "Row actions" (`views.menus.row-menu`).
205
+ `RowMenu` wraps a section's rows: the grid mounts it once around each section's rows' container, never around each row, and aims it at the row a press or a right-click came from. Its props are that row's, set in the same event your menu opens on; `children` is the rows' container, which takes the props and `ref` your trigger hands it (a `Slot`, `asChild`) and passes them to its element; a right-click on no row arrives already prevented and opens nothing. The rendering builds its `items` (the clicked cell's clipboard rows, Select, your verbs for the row), and the menu adds an Open page row before them when the row has a page (`openHref`, opened in a new tab) and a Delete row after them when the row can be deleted (`onDelete`). Its props are `ViewsRowMenuProps`; each item is a `ViewsRowMenuItem`, a rule (`{ separator: true }`) or a labelled row with its `onClick`, optional `icon`, `destructive`, `disabled` with its `disabledReason` (the grid's own Cut, Paste and Clear carry one whenever they are disabled), and a `shortcut` hint the menu draws but never binds. The default names your `Menu` "Row actions" (`views.menus.row-menu`). Where the grid has `menus.row`, Open page and Delete come as rows of `items` (`row-open`, `row-delete`, which the grid's Delete asks the confirm port for, as yours would), and `openHref` and `onDelete` are left out; while `menus.row` answers, `items` is one disabled row with the `loading` glyph, "Loading…" (`views.menus.row-waiting`). The grid asks `menus.row` on the row's right-click (its ⋯'s, the menu key's), so a `RowMenu` of yours that opens any other way meets that waiting row.
206
206
 
207
207
  The default opens your `Menu` at the pointer on a right-click, or from the row's ⋯ (`data-slot="vk-grid-row-more"`). On a touch screen a long-press opens nothing: the ⋯ is the way in there. Its Delete asks first, through the `confirm` port, with the message `views.menus.row-delete-confirm` and the row's `deleteLabel` as the `subject`; an app that hands no `confirm` gets the browser's own where your components map holds no `PortsHost`, ViewKit's alert dialog where it does (`CONTROLS`), and a confirm that rejects or throws counts as no. A delete that then rejects leaves the row where it was and says so through the toast port's `error`, with `views.menus.row-delete-failed`. [Ports](ports.md) covers `confirm` and the toast.
208
208
 
@@ -214,7 +214,7 @@ Swap it for a menu of your own, or for a long-press that selects: `onToggleSelec
214
214
 
215
215
  ## Handing them in
216
216
 
217
- The provider's `atoms` takes any of them, each over the default of its name; the rest stay the defaults. Declare the object at module level: a new object each render re-renders every view.
217
+ The provider's `atoms` takes any of them, each over the default of its name; the rest stay the defaults. Handed `components={CONTROLS}` as it stands, the provider lays them over `CONTROL_ATOMS` (the Tag, the StatusBadge, the CellMore and the ToolbarButton drawn with ViewKit's controls) instead; a map spread from `CONTROLS` brings none, so an app that spreads it hands `atoms={{ ...CONTROL_ATOMS, ...own }}` for them. Declare the object at module level: a new object each render re-renders every view.
218
218
 
219
219
  ```tsx
220
220
  import type { ReactNode } from "react";
@@ -86,7 +86,7 @@ const deal: Deal = {
86
86
 
87
87
  ## A binding: how a field reads and writes on your row
88
88
 
89
- `bindFields(registry, specs)` binds every field of a registry at once, and refuses a registry with a field left unbound; `bindField(field, spec)` binds one. A spec says:
89
+ `bindFields(registry, specs)` binds every field of a registry at once; `bindField(field, spec)` binds one. A field you give no spec binds by its key: it reads `row[key]`, and, where anyone may write it, writes `{ [key]: value }` (a number, a percent or an amount writes the number its editor commits, as decimal text under `storage: "decimal"`), so you write specs only for the fields that differ, and `bindFields(registry)` with none binds them all. A field the key can't bind still throws `FieldBindingError`, naming why: a writable relation needs its candidates, a writable amount whose currency is the row's its `unit`, a ratio formula its `ratio` readers, and a writable datetime its `write`, since its editor commits a local time that only your time zone turns into an instant. A spec says:
90
90
 
91
91
  - `read(row)`: the value a surface draws. A relation reads its resolved `{ id, label }`.
92
92
  - `editRead(row)`: the stored value, when it differs from the one drawn: a relation's id, or a raw value behind a fallback. An editor opens on it.
@@ -1,6 +1,6 @@
1
1
  # Ports
2
2
 
3
- A port is a runtime service your app hands the provider: the narrowest surface the rendering needs, named for what it does, so your own toast library, haptics, clipboard helper, storage and dialog each map onto it in a few lines. There are five: `toast`, `haptics`, `clipboard`, `viewPrefs` and `confirm`; `toast` and `confirm` are optional, and an app that spreads `CONTROLS` and hands neither reports in ViewKit's Toast and asks in ViewKit's alert dialog (`CONTROLS.PortsHost`). This page covers what calls each and when, the do-nothing ports to start with, and a port over each of your services.
3
+ A port is a runtime service your app hands the provider: the narrowest surface the rendering needs, named for what it does, so your own toast library, haptics, clipboard helper, storage and dialog each map onto it in a few lines. There are five: `toast`, `haptics`, `clipboard`, `viewPrefs` and `confirm`, and every one is optional (VK-198). Left out, `haptics` do nothing, `clipboard` is the browser's own, `viewPrefs` keeps each value on the browser's `localStorage` at the package's `vk:` key, and an app that spreads `CONTROLS` reports in ViewKit's Toast and asks in ViewKit's alert dialog (`CONTROLS.PortsHost`); each default reads the browser only when it is called, never while the server renders. Hand only the ones your app does its own way. This page covers what calls each and when, the do-nothing ports to start with, and a port over each of your services.
4
4
 
5
5
  ## Start with nothing
6
6
 
@@ -161,9 +161,9 @@ A list whose rows come a page at a time from a database runs the same view there
161
161
  The header's menu offers Sort ascending, Sort descending and Clear sort, and Group by and Ungroup; on a place column Sort ascending and Sort descending each open its parts beside the menu (City, Region, Country, Postal code), and the pick is the part key `partKey(fieldKey, part)`, which you read with `parsePartKey`; a group's band offers its own Sort rows. The grid holds none of that state: it shows what you hand it and calls you with what the person picked.
162
162
 
163
163
  - `sort`, a `GridSortState`: the sort key in force (`value`, a place's part key while a place sorts by one of its parts), its direction (`dir`, `"asc"` or `"desc"`), and `onChange`, called with the pick. Clear sort calls it with an empty `value`.
164
- - `groupBy`, a `GridGroupByState`: the field key the list is grouped by, or `null`, and `onChange`, called with a field key, or `null` to ungroup.
164
+ - `groupBy`, a `GridGroupByState`: the field key the list is grouped by, or `null`, and `onChange`, called with a field key, or `null` to ungroup. Handed, the header offers Group by on every field whose type can split a list, and Ungroup on the one in force, wherever you keep the group: a saved view, the page's address, the page's own state.
165
165
  - `sortOptions`, the `GridGroupSortOption`s a group's band offers: each a sort key, its label and the direction it opens in.
166
- - `viewBacked`: the list is a saved view over your fields. The header then offers Sort on every bound column (a column with a declared `sortKey` offers it anywhere) and Group by on every field whose type can split a list.
166
+ - `viewBacked`: the list is a saved view over your fields. The header then offers Sort on every bound column (a column with a declared `sortKey` offers it anywhere). It doesn't decide Group by: `groupBy` does.
167
167
 
168
168
  `sortableColumns` from the root door lists the keys a saved view can sort by, one per key in the columns' order, and `sortDirFor` the direction a field opens in: a number, a date or a yes/no largest or newest first, text and options A to Z.
169
169
 
@@ -240,10 +240,10 @@ Collapsing is yours too: `isCollapsed` answers for a group's key and `onToggleGr
240
240
 
241
241
  ## Writes
242
242
 
243
- Editing turns on with `onCellCommit`: without it the grid is read-only, and invites no edit. It is called with the row, the column's id, the value the editor committed and, for an undo or a redo, a `GridCommitContext`. An editor still open when the page goes (`pagehide`) or the grid goes while the page stays commits as a press outside would, so it can be called inside `pagehide`: send a write that must outlive the page with `keepalive`. The grid shows the value at once and keeps it while the write runs; how your function ends decides what happens next.
243
+ Editing turns on with `onCellCommit`: without it the grid is read-only, and invites no edit. It is called with the row, the column's id, the value the editor committed and, for an undo or a redo or any write sent while the page goes, a `GridCommitContext` (`closing: true` on the latter: send it with `keepalive`, every one of them started inside the call, or a request still waiting for a connection is dropped with the page; the grid reference's `ListChange` says why). An editor still open when the page goes (`pagehide`) or the grid goes while the page stays commits as a press outside would, so it can be called inside `pagehide`: send a write that must outlive the page with `keepalive`. The grid shows the value at once and keeps it while the write runs; how your function ends decides what happens next.
244
244
 
245
245
  - It resolves with nothing, or `{ status: "confirmed" }`: the write landed, and ⌘Z can undo it. `history: { prev, next }` records what undo and redo put back, when what was stored is not what the cell sent; `history: false` keeps no step for this write. `settlement: "requested"` says the row holds the value but the provider behind it has not accepted it yet: the cell keeps its value and wears the pending look until your rows carry it.
246
- - It resolves with `{ status: "confirmed", stored }`: the write landed, but what your server kept isn't what the cell sent (it stripped an invisible character, read a label as its key, kept `""` as `null`). `stored` is the value as your rows will read it in this column. The cell shows it at once in place of what was typed, ⌘Z restores from it (unless `history` says otherwise), and when your rows carry it the cell clears without a "changed elsewhere". Leave `stored` out and nothing changes: the cell holds what was typed until your rows carry exactly that. On an undo or a redo it is ignored.
246
+ - It resolves with `{ status: "confirmed", stored }`: the write landed, but what your server kept isn't what the cell sent (it stripped an invisible character, read a label as its key, kept `""` as `null`). `stored` is the value as your rows will read it in this column. The cell shows it at once in place of what was typed, ⌘Z restores from it (unless `history` says otherwise), and when your rows carry it the cell clears without a "changed elsewhere". Leave `stored` out and nothing changes: the cell holds what was typed until your rows carry exactly that. On an undo or a redo the cell shows it until your rows carry it, and the history is left as it was.
247
247
  - It resolves with `{ status: "unconfirmed", history: false }`: nothing says the write landed, and it leaves no step to undo.
248
248
  - It rejects (or throws): the cell rolls back to the value it held. Never swallow a failed request, since the rejection is what rolls the cell back.
249
249
 
@@ -392,13 +392,13 @@ function DealsWithPrefs({ onOpen }: { onOpen: (deal: Deal) => void }) {
392
392
  }
393
393
  ```
394
394
 
395
- The columns' widths, order and visibility travel as `columnState`, a `ListColumnState` (`widths` by column id, `hidden` ids, `visible` ids of columns hidden by default that the person turned on, and `order`), and every change as `onColumnStateChange`; `gridProps` carries both. Resizing, moving and hiding a column, and the header's "+ Add column", which lists the hidden columns, appear only where `onColumnStateChange` is passed, since there would be nowhere to keep them. `renderAddColumn` replaces that last cell (or the + in the title's header, under `addColumnAt`) with your own; answering `null` draws none and keeps no room for it, so column state needs no Add column. Your rows (Edit field, say) stand in a column's menu above Hide. Hand them as data through `columnMenuItems(fieldKey)`, keyed apart from the grid's own (it is called while the grid renders, for every column, so keep it pure and cheap). `renderColumnMenuRows` is deprecated and read by nothing: a row drawn as a node has nowhere to stand in your `Menu`. On a phone the header ends with nothing unless you pass `addColumnOnPhone`: then "+ Add column" ends it there too, its list in your `Menu`, where a person brings back a column they hid on the phone. To keep it in reach while the columns scroll, pass `addColumnAt: "title"`: it stands as a lone + at the right edge of the title column's header (pinned with `freezeIdentity`), and the header's end keeps no room for it; with no title column shown it stays at the end.
395
+ The columns' widths, order and visibility travel as `columnState`, a `ListColumnState` (`widths` by column id, `hidden` ids, `visible` ids of columns hidden by default that the person turned on, and `order`), and every change as `onColumnStateChange`; `gridProps` carries both. Resizing, moving and hiding a column, and the header's "+ Add column", which lists the hidden columns, appear only where `onColumnStateChange` is passed, since there would be nowhere to keep them. `renderAddColumn` replaces that last cell (or the + in the title's header, under `addColumnAt`) with your own; answering `null` draws none and keeps no room for it, so column state needs no Add column. Your rows (Edit field, say) stand in a column's menu above Hide. Hand them as data through `columnMenuItems(fieldKey)`, keyed apart from the grid's own (it is called while the grid renders, for every column, so keep it pure and cheap). To drop, rename or move the grid's own rows too, hand `menus.column` ([Menus as data](../reference/list.md#menus-as-data)). On a phone the header ends with nothing unless you pass `addColumnOnPhone`: then "+ Add column" ends it there too, its list in your `Menu`, where a person brings back a column they hid on the phone. To keep it in reach while the columns scroll, pass `addColumnAt: "title"`: it stands as a lone + at the right edge of the title column's header (pinned with `freezeIdentity`), and the header's end keeps no room for it; with no title column shown it stays at the end.
396
396
 
397
397
  ### A column per part
398
398
 
399
399
  With `parts`, a name, a place or a range offers a column per part beside its whole column: a place's country, region, city and postal code, a name's given and family names, a range's low and high ends. Each starts hidden; "+ Add column" lists a field with parts as one group beside your `Menu`, holding the field (when hidden) and its hidden parts, its count as `detail`, as Attio's does, on a phone too. A part column's id is `partKey(columnId, part)`, the key its Filter row has when your panels pass `parts: true`, so that row filters what the column shows; its sort value is `partKey(fieldKey, part)`, which `parsePartKey` turns into a sort's `fieldKey` and `by`. It reads and copies its part, and it edits and pastes as its part, in a box of its own: text for a name's part and a place's region, city and postal code, a number for a range's end, and the select over every country by name, searchable, for a place's country. A paste or a fill into a country cell takes a country's name, in the app's names language (the conventions' `language`), its locale or English, or its code. A part is locked, refused and read-only as its whole is, and it may be emptied unless its whole declares `clearable: false`; emptying the last part is judged by the field. A box refuses a value the whole field would refuse, such as a range's low end above its high end, and stays open with the field's reason. Your `onCellCommit` and `onCellsCommit` receive the whole column's id and the whole value with that part replaced, so a place keeps its other parts, a range its other end and a name its other part. A name's full name follows its given or family name only when it was empty or exactly the two joined by a space; "Nagy Imre" is kept. A place's other country clears its region and its code, and another region clears its code. A paste over two parts of one field in one row lands as one edit of the whole, and a part edit made while the field's earlier ones are still in flight builds on them. Like every composite value's, the commit goes without a pending overlay; the refetch repaints. Escape in a part's box follows the box's own type, text or number, not the field's, so `escape={{ name: "keep" }}` on the provider does not reach a given name's box. A place field limited to some `parts` offers part columns only for those. Its menu offers no Group row. Keep part columns out of your panels: they belong to the grid, and your panels take the columns you declare.
400
400
 
401
- `gridProps` also carries the per-person switches: `verticalBorders`, `showRowIcon` (the `rowIcon` you declare, in the title cell), `freezeIdentity` (every column through the title pinned at the left edge; off in `LIST_VIEW_PREF_DEFAULTS`, so start your prefs with `gridFreezeIdentity: true` to open it on), `alwaysCheckboxes` and `scale`, the density. Every row is one height, and a cell's text stays on one line.
401
+ `gridProps` also carries the per-person switches: `verticalBorders`, `showRowIcon` (the `rowIcon` you declare, in the title cell), `freezeIdentity` (every column through the title pinned at the left edge; on by default, on the bare grid and in `LIST_VIEW_PREF_DEFAULTS` alike, so start your prefs with `gridFreezeIdentity: false` to open it unpinned), `alwaysCheckboxes` and `scale`, the density. Every row is one height, and a cell's text stays on one line.
402
402
 
403
403
  `fillWidth` is your app's choice, not a preference `gridProps` carries. On, the columns share the grid's whole width: each grows in proportion to its own width and never gets narrower than it, the header, the rows, the footer and a group's head alike, and while any column grows "+ Add column" stands right after the last one. A table already wider than the grid draws and scrolls sideways as it does without it. A column with a width set, by the person's resize or by the view, keeps it while the others take the rest, and a double-click on its edge clears a width the person set, giving it back its share; a column that declares `grid.maxWidth` keeps its own width. When no column can grow, the space after the last one stays empty, as without the option.
404
404
 
@@ -474,6 +474,31 @@ function DealsWithDrawer() {
474
474
 
475
475
  The row's menu opens on a right-click and from the row's ⋯ at its end. It holds the cell's Copy, Cut, Paste and Clear (a disabled one says why as its `disabledReason`: the column's own reason, nothing to paste, or the paste's refusal), the rows your `rowMenu` builds, and Delete when you pass `onRowDelete`. Delete asks your `confirm` port first, with `deleteLabel` as what is deleted, and a delete that rejects says so through your toast port. `contextMenu` replaces `rowMenu` on right-click when the two must differ.
476
476
 
477
+ When a row's verbs depend on the row and your server says which (who may delete it, what it may still become), answer them as its menu opens with `menus.row`: it is handed the menu's rows, Open page (`row-open`) and Delete (`row-delete`) among them, and the row, and may hand back a promise. It is asked once each time a row's menu opens, never for a row drawn or pressed, so a page of fifty rows asks nothing until a person opens one. While it waits, the menu holds one greyed row with your `loading` glyph, "Loading…", and nothing the answer may take away; an answer a later opening has outrun is dropped, and one that fails draws the grid's own rows. Drop `row-delete` for a row the reader may not delete:
478
+
479
+ ```tsx
480
+ import { menu } from "viewkitjs/views/list";
481
+
482
+ /** Your server's answer for one record: may this reader delete it? */
483
+ declare function mayDeleteDeal(id: string): Promise<boolean>;
484
+
485
+ function DealsDeletedPerRow({ onOpen }: { onOpen: (deal: Deal) => void }) {
486
+ return (
487
+ <GridTable
488
+ groups={allDeals}
489
+ grouped={false}
490
+ getRowId={(deal) => deal.id}
491
+ columns={columns}
492
+ onOpenRow={onOpen}
493
+ onRowDelete={deleteDeal}
494
+ menus={{
495
+ row: async (items, { row }) => ((await mayDeleteDeal(row.id)) ? items : menu.drop(items, "row-delete")),
496
+ }}
497
+ />
498
+ );
499
+ }
500
+ ```
501
+
477
502
  `onOpenRelation` makes relation chips open what they point at; it receives the chip's value, so `value.entity` says which kind of record to open. Without it, a chip goes where your `RelationLink` atom says ([atoms](atoms.md)). `entityIcon` gives each kind of record its glyph in relation cells that carry none.
478
503
 
479
504
  A field whose changes carry rules of their own (a lost deal needs a reason) is changed through verbs, not an editor: its column is a `command` column, and its cell opens the verbs `commands` names for its field key. The same map serves a record's panel and a card, so each verb is declared once. Without it, a command column is a read-only badge.
@@ -535,7 +560,9 @@ assert.equal(fieldKeyOf(valueColumn), "value");
535
560
 
536
561
  ## A list's locks
537
562
 
538
- Three layers decide whether a cell may be written, and each only takes away from the one before: the column's declaration, your workspace's settings for the list, and a person's preferences. The settings are a `ListSettingsConfig` you store and hand the grid as `listConfig`: `readOnly` for the whole list, or a lock per field under `columns`. A locked column refuses every write, by every route, and still sorts, hides and resizes; a read-only list says so with a badge in its header. `toggleListColumnLock` and `toggleListReadOnly` build the config, sparse.
563
+ Three layers decide whether a cell may be written, and each only takes away from the one before: the column's declaration, your workspace's settings for the list, and a person's preferences. The settings are a `ListSettingsConfig` you store and hand the grid as `listConfig`: `readOnly` for the whole list, or a lock per field under `columns`. A locked column refuses every write, by every route, and still sorts, hides and resizes; a lock on a worked-out field edited through a stored one (`editThrough`), or on that stored field, locks both, since an edit of one writes the other (`withEditThroughLocks`); a read-only list says so with a badge in its header. `toggleListColumnLock` and `toggleListReadOnly` build the config, sparse.
564
+
565
+ A reader who may edit some records and not others is answered per row: hand the grid `rowWritable`, `(row) => boolean`. A row it refuses opens no editor and takes no typing, paste, fill, clear, cut or bulk-bar write, its cells marked `aria-readonly` and a person's try answered "Cell is read-only"; a range over it writes the other rows and says how many cells it refused. It only takes away, and your API still guards its own writes.
539
566
 
540
567
  ```tsx
541
568
  import {
@@ -612,7 +639,7 @@ On a phone the rail is as wide as your gutter, so with none it shows no box. Pas
612
639
 
613
640
  **Which editor.** A column marked `editable` mounts the editor its type names, as `gridEditorKind` answers; a single email or domain mounts the value list holding one value where the provider's `oneValue` says `list` for its type. A column carrying `multiple` (several emails, phones, links or domains) mounts the value list editor and pastes as a list; on any other type `multiple` mounts nothing. `editable` on a type with no editor mounts nothing.
614
641
 
615
- **Two questions, not one.** `gridColumnHasEditor` answers whether a column mounts an editor: what a click on the focused cell, a double-click, Enter and typing ask. `columnWritable` answers whether it can be written at all, by any route: an editor, Delete, Clear, a fill, a paste, a boolean's own button. It refuses a derived (`custom`) or `command` column first. A boolean has no editor and is still writable. The grid asks `columnEffectiveWritable`, which adds the list's locks, and so should anything of yours that gates a write.
642
+ **Two questions, not one.** `gridColumnHasEditor` answers whether a column mounts an editor: what a click on the focused cell, a double-click, Enter and typing ask. `columnWritable` answers whether it can be written at all, by any route: an editor, Delete, Clear, a fill, a paste, a boolean's own button. It refuses a derived (`custom`) or `command` column first. A boolean has no editor and is still writable. The grid asks `columnEffectiveWritable`, which adds the list's locks, and so should anything of yours that gates a write; a row your `rowWritable` refuses is refused on top of it.
616
643
 
617
644
  ```ts
618
645
  import { gridColumnHasEditor, gridEditorKind, gridNormalizeWrite } from "viewkitjs/views";
@@ -686,7 +713,7 @@ The grid styles through attributes, never class names: each part carries a `data
686
713
  A surface of your own beside the grid reads values the way the grid does with these.
687
714
 
688
715
  - `cellEditBaseline(column, row)` is a cell's value as an editor and a copy see it: the column's raw edit value where it declares one, else what it draws.
689
- - `cellCopyText(column, value)` is that value as the clipboard writes it: a relation by its label, an option by its label, several values joined with commas, a name or a place as its cell writes it, a range as "11–50", or as its band's name when its ends are exactly a preset's. A CSV export reuses the two, so its cells read as a copy from the grid does.
716
+ - `cellCopyText(column, value)` is that value as the clipboard writes it: a relation by its label, an option by its label, several values joined with commas, a name or a place as its cell writes it (a place's country in the names language you pass as its third argument, `conventions.language`, English without one), a range as "11–50", or as its band's name when its ends are exactly a preset's. A CSV export reuses the two, so its cells read as a copy from the grid does.
690
717
  - `deriveGridSelectValues(columns, rows)` is the values each option column offers, by column id: its active options in declared order, then any other value its rows hold. `{ includeArchived: true }` keeps archived options, for a filter that must still find a row holding one.
691
718
  - `deriveGridRelationValues(columns, rows)` is the records each relation column's rows point at, by column id, as `{ id, label }` in alphabetical order: what a filter offers is what the list holds, never every record that could be linked.
692
719
  - `GRID_TITLE_LINK_CLASS` is the class a title cell wears: the element marked `data-cell-open` inside it, the text that opens the row, takes the brand colour and an underline on its own hover. A title you draw beside the grid wears it to read the same. In the grid that element is also the part `vk-grid-title`, which your app styles at rest and under the pointer (the contract's Slots).