viewkitjs 0.32.0 → 0.34.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 (285) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/fields/dist/index.d.ts +1 -1
  3. package/fields/dist/index.js +1 -1
  4. package/fields/dist/query/evaluate.d.ts +7 -0
  5. package/fields/dist/query/exact-number.d.ts +8 -2
  6. package/fields/dist/query/exact-number.js +14 -1
  7. package/fields/dist/query/sort.js +13 -10
  8. package/fields/dist/registry.js +5 -1
  9. package/fields/dist/types.d.ts +4 -1
  10. package/fields/dist/zod.d.ts +5 -0
  11. package/fields/dist/zod.js +10 -1
  12. package/fields/docs/guides/contact-values.md +12 -0
  13. package/fields/docs/guides/field-types.md +1 -1
  14. package/fields/docs/guides/queries.md +3 -1
  15. package/fields/docs/reference/fields.md +1 -0
  16. package/package.json +1 -1
  17. package/postgres/dist/check.js +4 -1
  18. package/postgres/dist/definitions/formula-forms.js +3 -1
  19. package/postgres/dist/definitions/money.js +2 -1
  20. package/postgres/dist/page.js +6 -3
  21. package/postgres/dist/rules.d.ts +15 -1
  22. package/postgres/dist/rules.js +16 -0
  23. package/postgres/dist/sort.js +7 -2
  24. package/postgres/docs/guides/definitions.md +1 -1
  25. package/postgres/docs/guides/field-map.md +1 -1
  26. package/postgres/docs/reference/definitions.md +1 -1
  27. package/postgres/docs/reference/postgres.md +1 -1
  28. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  29. package/views/dist/atoms/ToolbarButton.js +4 -3
  30. package/views/dist/atoms/frame-parts.d.ts +6 -0
  31. package/views/dist/atoms/frame-parts.js +15 -0
  32. package/views/dist/atoms/types.d.ts +16 -7
  33. package/views/dist/cells/cell-title.d.ts +3 -1
  34. package/views/dist/cells/cell-title.js +2 -2
  35. package/views/dist/cells/cell-values.js +2 -2
  36. package/views/dist/contract.d.ts +46 -11
  37. package/views/dist/contract.js +157 -0
  38. package/views/dist/controls/alert/alert.js +2 -1
  39. package/views/dist/controls/alert-dialog/alert-dialog.js +3 -2
  40. package/views/dist/controls/bulk-bar/bulk-bar.js +25 -22
  41. package/views/dist/controls/button/map-button.js +2 -0
  42. package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
  43. package/views/dist/controls/checkbox/checkbox.js +2 -2
  44. package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
  45. package/views/dist/controls/compound-editor/name-parts.js +4 -4
  46. package/views/dist/controls/compound-editor/place-parts.js +19 -19
  47. package/views/dist/controls/compound-editor/range-parts.js +14 -14
  48. package/views/dist/controls/compound-editor/row.d.ts +3 -1
  49. package/views/dist/controls/compound-editor/row.js +2 -2
  50. package/views/dist/controls/controls.d.ts +4 -0
  51. package/views/dist/controls/controls.js +4 -0
  52. package/views/dist/controls/customize/customize.js +43 -39
  53. package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
  54. package/views/dist/controls/customize/map-customize-body.js +7 -2
  55. package/views/dist/controls/date-editor/date-days.js +2 -2
  56. package/views/dist/controls/date-editor/date-editor.d.ts +3 -0
  57. package/views/dist/controls/date-editor/date-editor.js +27 -21
  58. package/views/dist/controls/date-editor/date-parts.js +6 -6
  59. package/views/dist/controls/date-editor/map-calendar.js +3 -1
  60. package/views/dist/controls/date-editor/map-date-body.d.ts +1 -1
  61. package/views/dist/controls/date-editor/map-date-body.js +7 -3
  62. package/views/dist/controls/date-editor.css +2 -2
  63. package/views/dist/controls/field/field.d.ts +3 -0
  64. package/views/dist/controls/field/field.js +6 -6
  65. package/views/dist/controls/filter-editor/block.d.ts +2 -2
  66. package/views/dist/controls/filter-editor/block.js +5 -5
  67. package/views/dist/controls/filter-editor/filter-editor.js +31 -33
  68. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  69. package/views/dist/controls/filter-editor/map-filter-body.d.ts +3 -0
  70. package/views/dist/controls/filter-editor/map-filter-body.js +11 -4
  71. package/views/dist/controls/filter-editor/map-rules.js +1 -1
  72. package/views/dist/controls/filter-editor/parts.d.ts +3 -1
  73. package/views/dist/controls/filter-editor/parts.js +8 -6
  74. package/views/dist/controls/group-editor/group-editor.js +17 -14
  75. package/views/dist/controls/group-editor/map-group-body.d.ts +1 -0
  76. package/views/dist/controls/group-editor/map-group-body.js +5 -1
  77. package/views/dist/controls/index.d.ts +2 -0
  78. package/views/dist/controls/index.js +1 -0
  79. package/views/dist/controls/input/input.js +4 -3
  80. package/views/dist/controls/input/map-input.js +2 -0
  81. package/views/dist/controls/internal/editor-parts.js +1 -1
  82. package/views/dist/controls/internal/head-button.d.ts +9 -0
  83. package/views/dist/controls/internal/head-button.js +13 -0
  84. package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
  85. package/views/dist/controls/internal/map-panel-controls.js +20 -0
  86. package/views/dist/controls/internal/panel-controls.d.ts +58 -0
  87. package/views/dist/controls/internal/panel-controls.js +240 -0
  88. package/views/dist/controls/internal/part-slot.d.ts +12 -0
  89. package/views/dist/controls/internal/part-slot.js +5 -0
  90. package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
  91. package/views/dist/controls/links-editor/links-editor.js +27 -27
  92. package/views/dist/controls/menu/map-menu.d.ts +2 -2
  93. package/views/dist/controls/menu/map-menu.js +15 -12
  94. package/views/dist/controls/menu/menu.d.ts +3 -0
  95. package/views/dist/controls/menu/menu.js +5 -5
  96. package/views/dist/controls/menu-list/menu-list.d.ts +14 -4
  97. package/views/dist/controls/menu-list/menu-list.js +23 -22
  98. package/views/dist/controls/modal/modal.js +5 -3
  99. package/views/dist/controls/notice/notice.d.ts +3 -1
  100. package/views/dist/controls/notice/notice.js +2 -2
  101. package/views/dist/controls/number-editor/map-number-body.js +5 -1
  102. package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
  103. package/views/dist/controls/number-editor/number-editor.js +16 -16
  104. package/views/dist/controls/number-field/number-field.js +5 -3
  105. package/views/dist/controls/pane/map-pane.d.ts +3 -0
  106. package/views/dist/controls/pane/map-pane.js +5 -0
  107. package/views/dist/controls/pane/pane.d.ts +4 -2
  108. package/views/dist/controls/pane/pane.js +4 -4
  109. package/views/dist/controls/picker/map-fields-body.js +25 -1
  110. package/views/dist/controls/picker/picker.d.ts +2 -0
  111. package/views/dist/controls/picker/picker.js +37 -36
  112. package/views/dist/controls/picker/rows.d.ts +4 -0
  113. package/views/dist/controls/picker.css +10 -1
  114. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  115. package/views/dist/controls/popover/map-popover.js +4 -2
  116. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +2 -1
  117. package/views/dist/controls/quick-filters/map-quick-filters-body.js +7 -3
  118. package/views/dist/controls/quick-filters/quick-filters.js +8 -6
  119. package/views/dist/controls/radio/radio.d.ts +3 -0
  120. package/views/dist/controls/radio/radio.js +4 -3
  121. package/views/dist/controls/select/map-select.d.ts +3 -0
  122. package/views/dist/controls/select/map-select.js +8 -0
  123. package/views/dist/controls/select/select.d.ts +3 -0
  124. package/views/dist/controls/select/select.js +3 -3
  125. package/views/dist/controls/setting-row/looks.js +5 -5
  126. package/views/dist/controls/setting-row/setting-row.d.ts +3 -1
  127. package/views/dist/controls/setting-row/setting-row.js +3 -1
  128. package/views/dist/controls/setting-row.css +3 -2
  129. package/views/dist/controls/sheet/bottom-sheet.d.ts +8 -2
  130. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  131. package/views/dist/controls/sheet/map-sheet.js +1 -1
  132. package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
  133. package/views/dist/controls/sort-editor/map-sort-body.js +8 -4
  134. package/views/dist/controls/sort-editor/sort-editor.js +24 -26
  135. package/views/dist/controls/sort-editor.css +5 -0
  136. package/views/dist/controls/text-editor/map-text-body.js +5 -1
  137. package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
  138. package/views/dist/controls/text-editor/text-editor.js +11 -10
  139. package/views/dist/controls/toolbar/toolbar.d.ts +4 -2
  140. package/views/dist/controls/toolbar/toolbar.js +2 -2
  141. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +3 -3
  142. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +7 -6
  143. package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
  144. package/views/dist/controls/values-editor/values-editor.js +22 -22
  145. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -2
  146. package/views/dist/controls/views-list/map-view-menu.js +7 -3
  147. package/views/dist/controls/views-list/map-views-list-body.d.ts +2 -1
  148. package/views/dist/controls/views-list/map-views-list-body.js +6 -5
  149. package/views/dist/controls/views-list/view-menu.js +9 -10
  150. package/views/dist/controls/views-list/views-list.js +6 -6
  151. package/views/dist/editors/EditorPanel.js +4 -4
  152. package/views/dist/field-row/FieldRow.js +13 -0
  153. package/views/dist/fields/money.d.ts +5 -2
  154. package/views/dist/fields/money.js +14 -2
  155. package/views/dist/grid/chrome/GridTable.js +4 -1
  156. package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
  157. package/views/dist/grid/chrome/cell-clipboard.js +2 -2
  158. package/views/dist/grid/chrome/cells.js +3 -1
  159. package/views/dist/grid/chrome/grid-row-menu-items.js +1 -1
  160. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
  161. package/views/dist/grid/chrome/useGridKeyboard.js +29 -6
  162. package/views/dist/grid/chrome/useGridTableInteractionModel.js +9 -2
  163. package/views/dist/grid/core/clipboard-model.d.ts +3 -1
  164. package/views/dist/grid/core/clipboard-model.js +9 -8
  165. package/views/dist/grid/core/editing-controller.d.ts +3 -0
  166. package/views/dist/grid/core/editing-controller.js +6 -0
  167. package/views/dist/grid/core/edits-sink.d.ts +19 -0
  168. package/views/dist/grid/core/edits-sink.js +2 -0
  169. package/views/dist/grid/core/spreadsheet-operations.js +1 -1
  170. package/views/dist/grid/core/useGridEditing.d.ts +5 -0
  171. package/views/dist/grid/core/useGridEditing.js +6 -0
  172. package/views/dist/list/answer.d.ts +40 -0
  173. package/views/dist/list/answer.js +43 -0
  174. package/views/dist/list/bulk-bar.d.ts +7 -0
  175. package/views/dist/list/bulk-bar.js +10 -0
  176. package/views/dist/list/columns.d.ts +24 -0
  177. package/views/dist/list/columns.js +27 -0
  178. package/views/dist/list/edits.d.ts +19 -0
  179. package/views/dist/list/edits.js +56 -0
  180. package/views/dist/list/grid.d.ts +11 -0
  181. package/views/dist/list/grid.js +76 -0
  182. package/views/dist/list/index.d.ts +14 -1
  183. package/views/dist/list/index.js +4 -1
  184. package/views/dist/list/link.d.ts +8 -0
  185. package/views/dist/list/link.js +78 -0
  186. package/views/dist/list/list.d.ts +74 -0
  187. package/views/dist/list/list.js +18 -0
  188. package/views/dist/list/parts.js +11 -3
  189. package/views/dist/list/root-base.d.ts +46 -0
  190. package/views/dist/list/root-base.js +137 -0
  191. package/views/dist/list/root.d.ts +35 -34
  192. package/views/dist/list/root.js +153 -113
  193. package/views/dist/list/source-answers.d.ts +39 -0
  194. package/views/dist/list/source-answers.js +225 -0
  195. package/views/dist/list/store.d.ts +37 -5
  196. package/views/dist/list/store.js +31 -0
  197. package/views/dist/list/toolbar.d.ts +3 -2
  198. package/views/dist/list/toolbar.js +23 -5
  199. package/views/dist/list/views-axis.js +4 -2
  200. package/views/dist/list/views.d.ts +7 -2
  201. package/views/dist/list/views.js +16 -5
  202. package/views/dist/model/column-capabilities.d.ts +13 -0
  203. package/views/dist/model/column-capabilities.js +23 -2
  204. package/views/dist/model/column-schema.d.ts +11 -1
  205. package/views/dist/model/view-rules.js +1 -0
  206. package/views/dist/panels/model.d.ts +2 -0
  207. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +21 -2
  208. package/views/dist/panels/react/toolbar/ReadyToolbar.js +2 -2
  209. package/views/dist/panels/react/toolbar/Toolbar.d.ts +12 -1
  210. package/views/dist/panels/react/toolbar/Toolbar.js +20 -6
  211. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +4 -3
  212. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  213. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
  214. package/views/dist/panels/react/toolbar/ToolbarButton.js +4 -1
  215. package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
  216. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +4 -3
  217. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
  218. package/views/dist/panels/react/toolbar/ToolbarFilters.js +5 -4
  219. package/views/dist/panels/react/toolbar/ToolbarNew.js +1 -1
  220. package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
  221. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
  222. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  223. package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
  224. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +8 -5
  225. package/views/dist/panels/react/toolbar/context.d.ts +31 -1
  226. package/views/dist/panels/react/toolbar/context.js +4 -0
  227. package/views/dist/panels/react/toolbar/pane-host.d.ts +6 -0
  228. package/views/dist/panels/react/toolbar/pane-host.js +17 -0
  229. package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
  230. package/views/dist/panels/react/toolbar/panel-part.js +7 -4
  231. package/views/dist/panels/react.d.ts +1 -1
  232. package/views/dist/panels/settings/filter-groups.js +6 -1
  233. package/views/dist/provider/ViewsProvider.d.ts +7 -2
  234. package/views/dist/provider/ViewsProvider.js +18 -1
  235. package/views/dist/provider/components.d.ts +90 -2
  236. package/views/dist/provider/components.js +1 -1
  237. package/views/dist/provider/context.d.ts +4 -1
  238. package/views/dist/provider/own-control.d.ts +4 -0
  239. package/views/dist/provider/own-control.js +7 -0
  240. package/views/dist/provider/select-items.d.ts +3 -0
  241. package/views/dist/provider/select-items.js +6 -0
  242. package/views/dist/react.d.ts +4 -2
  243. package/views/dist/react.js +2 -0
  244. package/views/dist/styles.css +107 -80
  245. package/views/dist/styles.unlayered.css +107 -80
  246. package/views/docs/contract.md +310 -7
  247. package/views/docs/controls/alert-dialog.md +4 -0
  248. package/views/docs/controls/alert.md +4 -0
  249. package/views/docs/controls/bulk-bar.md +4 -0
  250. package/views/docs/controls/compound-editor.md +4 -0
  251. package/views/docs/controls/customize.md +8 -0
  252. package/views/docs/controls/date-editor.md +6 -0
  253. package/views/docs/controls/field.md +4 -0
  254. package/views/docs/controls/filter-editor.md +8 -0
  255. package/views/docs/controls/group-editor.md +8 -0
  256. package/views/docs/controls/input.md +4 -0
  257. package/views/docs/controls/links-editor.md +4 -0
  258. package/views/docs/controls/menu-list.md +8 -0
  259. package/views/docs/controls/menu.md +6 -0
  260. package/views/docs/controls/modal.md +4 -0
  261. package/views/docs/controls/notice.md +4 -0
  262. package/views/docs/controls/number-editor.md +6 -0
  263. package/views/docs/controls/pane.md +4 -0
  264. package/views/docs/controls/picker.md +8 -0
  265. package/views/docs/controls/quick-filters.md +8 -0
  266. package/views/docs/controls/radio.md +4 -0
  267. package/views/docs/controls/select.md +8 -0
  268. package/views/docs/controls/sheet.md +4 -0
  269. package/views/docs/controls/sort-editor.md +8 -0
  270. package/views/docs/controls/text-editor.md +6 -0
  271. package/views/docs/controls/toolbar.md +4 -0
  272. package/views/docs/controls/values-editor.md +4 -0
  273. package/views/docs/controls/views-list.md +8 -0
  274. package/views/docs/guides/the-grid.md +2 -2
  275. package/views/docs/guides/the-provider.md +19 -2
  276. package/views/docs/reference/controls.md +11 -7
  277. package/views/docs/reference/field-row.md +1 -1
  278. package/views/docs/reference/grid.md +1 -1
  279. package/views/docs/reference/list.md +143 -11
  280. package/views/docs/reference/looks.md +1 -1
  281. package/views/docs/reference/panels-react.md +6 -5
  282. package/views/docs/reference/react.md +19 -12
  283. package/views/docs/reference/views.md +11 -5
  284. package/views/docs/reshaping.md +17 -1
  285. package/views/skills/views/SKILL.md +1 -1
@@ -34,18 +34,23 @@ Guide: [the provider](../guides/the-provider.md).
34
34
  - `VK_CONTROL_PRIVATE_FAMILIES` — the prefixes of the controls' own machinery, set and read by a control alone (the smooth corner's, the pressing room's, and each control's own): not public, and your app neither sets nor reads them.
35
35
  - `COMPONENT_NAMES` — the primitives your app hands in through the provider: `Button`, `Popover`, `Tooltip`, `Checkbox`, `Menu`, `Collapse`, `Sheet`, `AppIcon`, `Markdown`, `TextBody`, `NumberBody`, `Picker`, `LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `SortBody`, `FilterBody`, `FilterPartBody`, `FieldsBody`, `QuickFiltersBody`, `ViewsListBody` and `CustomizeBody` ([the components map](../contract.md#the-components-map)).
36
36
  - `ComponentName` — one member of `COMPONENT_NAMES`.
37
- - `OPTIONAL_COMPONENT_NAMES` — the primitives your app may leave out: `Input` (a plain default), `Command` (deprecated: read by nothing), `Calendar` (reached without one, it throws an error naming it), `RowsWait` (without one, a grid waiting for new rows draws Loading in place of its body), `GroupBody` (deprecated: read by nothing), `SearchField` (without one, the toolbar's search draws its own field), `PortsHost` (without one, an app that hands no `confirm` gets the browser's and one that hands no `toast` sees nothing) and `SelectionBar` (without one, a selection draws ViewKit's own bar) ([the components map](../contract.md#the-components-map)).
37
+ - `OPTIONAL_COMPONENT_NAMES` — the primitives your app may leave out: `Input` (a plain default), `Select` (drawn only inside ViewKit's panels, under the provider's `panelControls`), `Command` (deprecated: read by nothing), `Calendar` (reached without one, it throws an error naming it), `RowsWait` (without one, a grid waiting for new rows draws Loading in place of its body), `GroupBody` (deprecated: read by nothing), `SearchField` (without one, the toolbar's search draws its own field), `PortsHost` (without one, an app that hands no `confirm` gets the browser's and one that hands no `toast` sees nothing) `SelectionBar` (without one, a selection draws ViewKit's own bar), `ViewMenu` (without one, a views row's pill opens its view's `menu` rows) and `Pane` (without one, a toolbar's `customizeIn: "pane"` opens Customize in the `Popover`) ([the components map](../contract.md#the-components-map)).
38
38
  - `OptionalComponentName` — one member of `OPTIONAL_COMPONENT_NAMES`.
39
39
  - `ATOM_NAMES` — the pieces the rendering is built from, and the pieces of your app's own it cannot draw itself (a command cell's verb menu, the row's right-click menu, where a relation goes, a wait, how a list asks for more), and the panels' rows. Each ships as a default, and your app swaps any of them through the provider's `atoms` ([the atoms](../contract.md#the-atoms)).
40
40
  - `AtomName` — one member of `ATOM_NAMES`.
41
41
  - `ATOM_SLOTS` — the `data-slot` values the default atoms mark themselves with, prefixed like the grid's (`vk-row`, `vk-tick`, `vk-status`, `vk-row-menu` …) ([the atoms](../contract.md#the-atoms)).
42
42
  - `AtomSlot` — one member of `ATOM_SLOTS`.
43
- - `EDITOR_SLOTS` — the `data-slot` values the editor panel marks its parts with, prefixed like the grid's (`vk-editor-panel`, `vk-editor-bar`, `vk-editor-refusal`) ([the editor panel](../contract.md#the-editor-panel)).
43
+ - `PANEL_SLOTS` — the `data-slot` names of the parts inside the default panels, by panel (`sort`, `filter`, `group`, `customize`, `viewsList`, `viewMenu`, `quick`): a sort rule, Add sort, a filter rule, one Customize section … (VK-988, [the panels' parts](../contract.md#the-atoms)). Each is in `ATOM_SLOTS` too.
44
+ - `PanelSlot` — one member of `PANEL_SLOTS`.
45
+ - `EDITOR_PART_SLOTS` — the `data-slot` names of the parts inside the default field editors, by editor (`shared`, `date`, `text`, `number`, `parts`, `values`, `links`, `picker`): the date editor's quick picks, the Picker's search and + Add, a values row, a link's field … (VK-989, [the field editors' parts](../contract.md#the-field-editors-parts-vk-989)). Each is in `EDITOR_SLOTS` too.
46
+ - `EDITOR_SLOTS` — the `data-slot` values the editor panel marks its parts with, prefixed like the grid's (`vk-editor-panel`, `vk-editor-bar`, `vk-editor-refusal`), the frames an editor's body stands in, and every field editor part's ([the editor panel](../contract.md#the-editor-panel)).
44
47
  - `EditorSlot` — one member of `EDITOR_SLOTS`.
45
48
  - `EDITOR_STATES` — the states the editor panel's popover carries: `vk-body`, the app's own body it holds (`picker`, `parts`, `values` or `links`).
46
49
  - `EditorState` — one member of `EDITOR_STATES`.
47
- - `SELECTION_SLOTS` — the `data-slot` values the selection bar marks its parts with, prefixed like the grid's (`vk-selection-bar`, `vk-selection-pill`, `vk-selection-chip`) ([slots](../contract.md#slots)).
50
+ - `SELECTION_SLOTS` — the `data-slot` values the selection bar marks its parts with, prefixed like the grid's (`vk-selection-bar`, `vk-selection-pill`, `vk-selection-chip`) ([slots](../contract.md#slots)), and the bulk bar's (`BULK_BAR_SLOTS`).
48
51
  - `SelectionSlot` — one member of `SELECTION_SLOTS`.
52
+ - `BULK_BAR_SLOTS` — the `data-slot` names of the bulk bar's parts (`CONTROLS.SelectionBar`) and of what it opens: its count, a verb (`data-key` its place), Delete, More, the pill's ✕ and Actions, More's menu and its rows, a group's menu, a field's popover and sheet … (VK-1023, [the bulk bar's parts](../contract.md#the-bulk-bars-parts-vk-1023)). Each is in `SELECTION_SLOTS` too.
53
+ - `BulkBarSlot` — one member of `BULK_BAR_SLOTS`.
49
54
  - `ATOM_STATES` — the default atoms' states: `chosen`, `disabled`, `muted`, `checked` and `open` are flags present when true, `status` carries the status slot's name and `platform` a link's platform key ([the atoms](../contract.md#the-atoms)).
50
55
  - `AtomState` — one member of `ATOM_STATES`.
51
56
  - `PORT_NAMES` — the runtime services your app hands in through the provider: `toast`, `haptics`, `clipboard`, `viewPrefs` and `confirm` ([Ports](../contract.md#ports)).
@@ -69,7 +74,7 @@ Guide: [columns](../guides/columns.md).
69
74
  A column is plain data: what a list shows in one place for every row, how it reads the row, and what may be done to it. The grid, the board and the other views all read the same `ListColumn`.
70
75
 
71
76
  - `ListColumn` — one column's declaration, generic over your row type. It requires `id`, `header` (a node) and `width` (the starting width every columnar view sizes from; what a person drags it to lives in their preferences). The optional members, by what they are for:
72
- - Reading the row: `accessor` (the value the cell draws, compares and copies), `editAccessor` (the stored value an editor opens on, where the display read carries fallbacks), `aggAccessor` (the number the footer totals), `render` (a custom cell, handed the row and a `RenderedValue`), `indicator`, `actions` (buttons on the cell, `ListCellAction`).
77
+ - Reading the row: `accessor` (the value the cell draws, compares and copies), `editAccessor` (the stored value an editor opens on, where the display read carries fallbacks), `aggAccessor` (the number the footer totals), `render` (a custom cell, handed the row and a `RenderedValue`), `indicator` (an adornment beside the value, handed the row and a `RenderedValue` holding the value the cell shows: a write still saving while it saves, else the accessor's), `actions` (buttons on the cell, `ListCellAction`).
73
78
  - What the value is: `type` (`ListColumnType`), `options` (`ListColumnOption`), `multiple` (the cell holds several values), `labels: false` (a list whose rows keep only values, so its editor offers no label box), `region` (the record's country read off the row, where a phone typed, pasted or filled without its country code is read), `chips.normalize` (the rule that turns typed text into a stored multiselect value), `relation` (a relation's candidates: a `source`, or static `options`, and the default `entity` kind), `nameFallback` (the words a name column draws for a row with an empty name), `format` (`ListColumnFormat`), `align`, `icon`.
74
79
  - Money: `currencyAccessor` (each row's own currency code, winning over `format.currency`), `surfaceOwnsCurrency` (the column, not the row, says which currency every figure is in), `money` and `reading` (a convertible column's declaration and the reading in force), `editUnit` (the unit picker beside the number editor).
75
80
  - The footer: `defaultAggregate`, `footerKinds` (the picks the footer offers, `none` always among them), `footerField` (the field whose figures the footer reads when it is not the column's own), `aggregateSuffix` (the unit drawn after a figure), `ratio` (a ratio's numerator and denominator, summed and divided once).
@@ -142,6 +147,7 @@ Three layers decide a write, and each may only take away from the one before: th
142
147
  - `toggleListReadOnly` — returns a new `ListSettingsConfig` with the whole list's read-only lock turned on or off (off is the key absent).
143
148
  - `lockKeyOf` — the key a column's lock is stored under: its field's key, so one lock holds on every surface that draws the field; a column with no field keeps its own id.
144
149
  - `gridColumnLocked` — whether the workspace's settings lock a column: the list is read-only, or the column's key is locked. False with no config.
150
+ - `withEditThroughLocks` — a `ListSettingsConfig` with each edit-through pair locked together: a lock under a worked-out field edited through a stored one (`editThrough`), or under that stored field, holds under both keys. Takes the config and the fields to read the pairs from; gives back the same config when no pair widens it. The grid checks its `listConfig` through it with its columns' fields; a surface that checks a lock by field key (a record's `LockedResolver`) passes its own fields, so it agrees with the grid. The stored config is untouched, so each field keeps its own toggle.
145
151
  - `columnEffectiveWritable` — `columnWritable` and not locked: the writable answer every gate site uses.
146
152
  - `gridColumnEffectiveClearable` — whether a column accepts Clear, Cut or Delete-to-empty: effectively writable and `clearable`.
147
153
  - `gridClearRefusal` — why a clear was refused, as the toast says it: the lock (`views.grid.locked`) when the declaration would allow the clear but the workspace locks the column, otherwise `columnClearRefusal`'s sentence. Takes the column, the config and a resolver that defaults to `resolveViewsMessage`.
@@ -358,7 +364,7 @@ Money is stored in the currency each row was entered in, and a column is read ei
358
364
  - `MoneyColumn` — the members a money column carries: a `DenominatedColumn` with its `money` declaration, the `reading` in force, its `accessor`, its `aggAccessor` and its `editAccessor`. Structural, so a grid column and a server-side source column both satisfy it.
359
365
  - `convertMoney` — a row's figure in a display currency, from its declaration: null for a value that is not a number, null for a row whose rates are null (a row with no currency), and the `FxRateError` of `convertRowAmount` for a row with a currency and no rate.
360
366
  - `readMoneyColumn` — returns the column read the given way. Original sets the accessor to the amount, the total to its own figure and the currency to the row's code; a display currency converts the accessor and the total, sets the column's currency and marks the column as owning it. In every reading the `editAccessor` reads the row's own amount (one the column already has is kept), so an edit, an undo, a copy and a fill work on what the row stores, in its own currency, while the cell shows the converted figure. Every derivation starts from the declaration, so reading twice is reading once; a column with no declaration comes back unchanged.
361
- - `readMoneyColumns` — reads every money column the reader's way: their chosen reading by field key, else the optional legacy reader's choice, else what the column opens on for the reader's default currency. A column with no declaration or no field comes back unchanged.
367
+ - `readMoneyColumns` — reads every money column the reader's way: their chosen reading by field key, else the optional legacy reader's choice, else what the column opens on for the reader's default currency. A column read in Original also gets its `sortAccessor`: each row's figure in the reader's default currency (null with no rate), which the grid's reader answers the sort with, so rows in different currencies order as one number. A column with no declaration or no field comes back unchanged.
362
368
  - `moneyReadingOf` — the reading in force on a money column: the one it was read with, else its declared reading; undefined for a column with no declaration, or one declared `"default"` and not yet read.
363
369
  - `convertedFromOf` — the currency a column's figure was converted from for a row: the row's own code, when the column is read in a currency other than Original, the row has a figure to draw (it has rates) and stores another currency than the reading's; null otherwise. What `renderTypedCellValue` marks with ≈, and what a money editor names under the row's own amount.
364
370
  - `shownCodeOf` — the code a cell draws for a row: a per-row column's row code, a converted column's one code, undefined for a column that is not money. Never `COLUMN_WIDE_CODE`.
@@ -10,7 +10,23 @@ Cheapest change first. Each step reaches further and costs more to keep current.
10
10
  3. **Wrappers and slots.** Every part carries a `data-slot`; every state a `data-*`. A stylesheet or a
11
11
  wrapper styles `[data-slot="vk-grid-row"][data-selected]` without touching the package.
12
12
  4. **Your own primitives.** The components map is yours: the popover, the menu, the calendar inside
13
- the grid are your copies, so their look is already yours.
13
+ the grid are your copies, so their look is already yours. Inside the panels (sort, filter, group, Customize, the views list and
14
+ view menu with the Modal and alert they open, the quick filters, the filter bar's popovers, and every head a
15
+ panel draws itself on a phone) they are yours too where the provider's `panelControls` says so (VK-1013,
16
+ VK-1014): your Button, Select, Menu, Popover and Input, each handed its part's name. So are the text, number
17
+ and date editors (VK-1021): your Button, Popover and one-line Input, and your Calendar as the date editor's
18
+ month where `panelControls` names `Calendar`. The rest of the field editors and the bulk bar follow (VK-1022,
19
+ VK-1023). In those three editors these stay ViewKit's: a box that grows over lines (the text
20
+ editor's box on a computer, text and long text on a phone), a box group's frame (your Input stands bare
21
+ inside it), the Number field, a search list's box, the date's segments, its parts' boxes, its quarter
22
+ list (`vk-date-quarter`), its months and years choices and its day buttons where no `Calendar` of yours
23
+ is named, its wheels, the phone's time row, the Picker a list opens, the ✕ and ✓ an editor standing on
24
+ its own draws in ViewKit's Sheet, and a duration's box (your map's `Input`, as before, opted in or not).
25
+ With your Calendar and a time, Enter on a day no longer keeps and closes the date editor on a computer:
26
+ your Calendar's day is a press. Across the panels, the Tooltip, the Picker, ViewKit's menu rows, Radio,
27
+ Toggle, the quick filters' values, the sort's grip and the filter's number boxes stay ViewKit's, and so
28
+ does the head ViewKit's own Sheet draws: hand your own `Sheet` to change it. The sort's direction box keeps, out of sight, ViewKit's two
29
+ words drawn in its own classes, which size the box round your Select so the row never moves on a turn.
14
30
  5. **A copy of the rendering.** When the copy mode ships, a view's default rendering is a registry
15
31
  item you copy into your app and own from then on, updated by a three-way merge against the tag you
16
32
  copied. Reach for it only when the structure itself must differ.
@@ -62,7 +62,7 @@ export function AppViews({ children }: { children: ReactNode }) {
62
62
 
63
63
  ## Write the adapter against the contract
64
64
 
65
- `views/docs/contract.md` lists the twenty-three required components (`TextBody`, `NumberBody`, `Picker`, `LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `SortBody`, `FilterBody`, `FilterPartBody`, `FieldsBody`, `QuickFiltersBody`, `ViewsListBody` and `CustomizeBody` among them: spread `CONTROLS` for ViewKit's own) and the optional `Input`, `Command` (deprecated), `Calendar`, `RowsWait`, `GroupBody` (deprecated), `SearchField`, `PortsHost`, `SelectionBar` and `ViewMenu`, the five ports (each optional: a missing one is its default, and with `CONTROLS` spread a missing `toast` or `confirm` is ViewKit's Toast or alert dialog) and the icon names. Implement
65
+ `views/docs/contract.md` lists the twenty-three required components (`TextBody`, `NumberBody`, `Picker`, `LinksBody`, `DateBody`, `PartsBody`, `ValuesBody`, `SortBody`, `FilterBody`, `FilterPartBody`, `FieldsBody`, `QuickFiltersBody`, `ViewsListBody` and `CustomizeBody` among them: spread `CONTROLS` for ViewKit's own) and the optional `Input`, `Command` (deprecated), `Calendar`, `RowsWait`, `GroupBody` (deprecated), `SearchField`, `PortsHost`, `SelectionBar`, `ViewMenu` and `Pane`, the five ports (each optional: a missing one is its default, and with `CONTROLS` spread a missing `toast` or `confirm` is ViewKit's Toast or alert dialog) and the icon names. Implement
66
66
  `ViewsComponents` over your own shadcn copies: a controlled `open` with `onOpenChange(open, details)`,
67
67
  an `anchor` element or ref on the popover and the menu, and no `asChild`; `AppIcon` is your own
68
68
  icon component by your own names. The shapes are Base UI's; `views/docs/contract.md`'s "Writing an