viewkitjs 0.33.0 → 0.35.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 (257) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/package.json +1 -1
  3. package/views/README.md +1 -1
  4. package/views/dist/atoms/Avatar.js +2 -1
  5. package/views/dist/atoms/RelationChip.d.ts +2 -0
  6. package/views/dist/atoms/RelationChip.js +5 -0
  7. package/views/dist/atoms/RowMenu.d.ts +1 -1
  8. package/views/dist/atoms/RowMenu.js +15 -3
  9. package/views/dist/atoms/defaults.js +2 -0
  10. package/views/dist/atoms/types.d.ts +40 -4
  11. package/views/dist/cells/relation-wrap.js +9 -2
  12. package/views/dist/contract.d.ts +27 -14
  13. package/views/dist/contract.js +40 -4
  14. package/views/dist/controls/alert/alert.js +2 -1
  15. package/views/dist/controls/alert-dialog/alert-dialog.js +3 -2
  16. package/views/dist/controls/avatar/avatar-mark.d.ts +4 -0
  17. package/views/dist/controls/avatar/avatar-mark.js +5 -0
  18. package/views/dist/controls/avatar/avatar.d.ts +7 -4
  19. package/views/dist/controls/avatar/avatar.js +10 -4
  20. package/views/dist/controls/avatar/looks.d.ts +1 -1
  21. package/views/dist/controls/avatar/looks.js +3 -0
  22. package/views/dist/controls/avatar/record-mark.d.ts +16 -0
  23. package/views/dist/controls/avatar/record-mark.js +13 -0
  24. package/views/dist/controls/avatar/tokens.d.ts +12 -0
  25. package/views/dist/controls/avatar/tokens.js +3 -0
  26. package/views/dist/controls/avatar.css +54 -17
  27. package/views/dist/controls/bulk-bar/bulk-bar.js +29 -27
  28. package/views/dist/controls/bulk-bar/map-selection-bar.js +2 -1
  29. package/views/dist/controls/compound-editor/compound-editor.d.ts +3 -0
  30. package/views/dist/controls/compound-editor/map-parts-body.d.ts +1 -1
  31. package/views/dist/controls/compound-editor/map-parts-body.js +6 -1
  32. package/views/dist/controls/compound-editor/name-parts.js +2 -1
  33. package/views/dist/controls/compound-editor/place-parts.js +2 -2
  34. package/views/dist/controls/compound-editor/range-parts.js +10 -9
  35. package/views/dist/controls/controls.d.ts +2 -0
  36. package/views/dist/controls/controls.js +2 -0
  37. package/views/dist/controls/customize/customize.d.ts +14 -5
  38. package/views/dist/controls/customize/customize.js +19 -20
  39. package/views/dist/controls/customize/map-customize-body.d.ts +2 -2
  40. package/views/dist/controls/customize/map-customize-body.js +15 -13
  41. package/views/dist/controls/customize/words.d.ts +3 -3
  42. package/views/dist/controls/date-editor/date-editor.d.ts +3 -0
  43. package/views/dist/controls/date-editor/date-editor.js +13 -7
  44. package/views/dist/controls/date-editor/map-calendar.js +2 -0
  45. package/views/dist/controls/date-editor/map-date-body.d.ts +1 -1
  46. package/views/dist/controls/date-editor/map-date-body.js +7 -3
  47. package/views/dist/controls/filter-editor/filter-editor.d.ts +2 -0
  48. package/views/dist/controls/filter-editor/filter-editor.js +4 -6
  49. package/views/dist/controls/filter-editor/map-filter-body.d.ts +2 -0
  50. package/views/dist/controls/filter-editor/map-filter-body.js +7 -4
  51. package/views/dist/controls/filter-editor/parts.d.ts +4 -2
  52. package/views/dist/controls/filter-editor/parts.js +8 -7
  53. package/views/dist/controls/group-editor/group-editor.js +2 -1
  54. package/views/dist/controls/group-editor/map-group-body.d.ts +1 -0
  55. package/views/dist/controls/group-editor/map-group-body.js +5 -1
  56. package/views/dist/controls/index.d.ts +1 -1
  57. package/views/dist/controls/input/input.js +2 -1
  58. package/views/dist/controls/internal/head-button.d.ts +9 -0
  59. package/views/dist/controls/internal/head-button.js +13 -0
  60. package/views/dist/controls/internal/map-panel-controls.js +9 -5
  61. package/views/dist/controls/internal/panel-controls.d.ts +38 -6
  62. package/views/dist/controls/internal/panel-controls.js +191 -19
  63. package/views/dist/controls/links-editor/links-editor.js +5 -7
  64. package/views/dist/controls/links-editor/map-links-body.d.ts +1 -1
  65. package/views/dist/controls/links-editor/map-links-body.js +5 -1
  66. package/views/dist/controls/menu/menu.d.ts +5 -1
  67. package/views/dist/controls/menu/menu.js +4 -3
  68. package/views/dist/controls/modal/modal.js +5 -3
  69. package/views/dist/controls/number-editor/map-number-body.js +5 -1
  70. package/views/dist/controls/number-editor/number-editor.js +6 -6
  71. package/views/dist/controls/pane/map-pane.d.ts +3 -0
  72. package/views/dist/controls/pane/map-pane.js +5 -0
  73. package/views/dist/controls/picker/map-fields-body.d.ts +2 -2
  74. package/views/dist/controls/picker/map-fields-body.js +30 -2
  75. package/views/dist/controls/picker/map-picker.d.ts +8 -3
  76. package/views/dist/controls/picker/map-picker.js +14 -3
  77. package/views/dist/controls/picker/picker.js +11 -8
  78. package/views/dist/controls/picker/rows.d.ts +7 -2
  79. package/views/dist/controls/picker.css +10 -1
  80. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +2 -1
  81. package/views/dist/controls/quick-filters/map-quick-filters-body.js +9 -4
  82. package/views/dist/controls/quick-filters/quick-filters.js +8 -6
  83. package/views/dist/controls/quick-filters/reminder.js +2 -2
  84. package/views/dist/controls/quick-filters/rules.d.ts +4 -1
  85. package/views/dist/controls/quick-filters/words.d.ts +2 -0
  86. package/views/dist/controls/quick-filters/words.js +1 -0
  87. package/views/dist/controls/select/select.d.ts +3 -0
  88. package/views/dist/controls/select/select.js +9 -3
  89. package/views/dist/controls/setting-row/looks.js +5 -5
  90. package/views/dist/controls/setting-row/setting-row.d.ts +3 -1
  91. package/views/dist/controls/setting-row/setting-row.js +3 -1
  92. package/views/dist/controls/setting-row.css +3 -2
  93. package/views/dist/controls/sheet/bottom-sheet.d.ts +3 -1
  94. package/views/dist/controls/sheet/bottom-sheet.js +2 -2
  95. package/views/dist/controls/sort-editor/map-sort-body.js +4 -4
  96. package/views/dist/controls/sort-editor/sort-editor.d.ts +2 -0
  97. package/views/dist/controls/sort-editor/sort-editor.js +4 -5
  98. package/views/dist/controls/text-editor/map-text-body.js +5 -1
  99. package/views/dist/controls/text-editor/text-editor.js +5 -4
  100. package/views/dist/controls/toolbar/toolbar.d.ts +29 -14
  101. package/views/dist/controls/toolbar/toolbar.js +17 -22
  102. package/views/dist/controls/toolbar.css +0 -5
  103. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  104. package/views/dist/controls/tooltip/map-tooltip.js +4 -2
  105. package/views/dist/controls/values-editor/map-values-body.d.ts +1 -2
  106. package/views/dist/controls/values-editor/map-values-body.js +5 -1
  107. package/views/dist/controls/values-editor/values-editor.js +8 -7
  108. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -2
  109. package/views/dist/controls/views-list/map-view-menu.js +6 -2
  110. package/views/dist/controls/views-list/map-views-list-body.d.ts +2 -1
  111. package/views/dist/controls/views-list/map-views-list-body.js +6 -5
  112. package/views/dist/controls/views-list/view-menu.js +3 -4
  113. package/views/dist/controls/views-list/views-list.js +2 -2
  114. package/views/dist/display/option-badges.d.ts +16 -0
  115. package/views/dist/display/option-badges.js +11 -0
  116. package/views/dist/display/relation-link.d.ts +12 -0
  117. package/views/dist/display/relation-link.js +17 -0
  118. package/views/dist/display/relation.d.ts +1 -1
  119. package/views/dist/display/relation.js +10 -3
  120. package/views/dist/display/select.js +1 -8
  121. package/views/dist/editors/EditorPanel.js +4 -4
  122. package/views/dist/editors/RangeEditor.d.ts +3 -0
  123. package/views/dist/editors/RangeEditor.js +2 -2
  124. package/views/dist/editors/SelectEditor.d.ts +2 -2
  125. package/views/dist/editors/SelectEditor.js +1 -1
  126. package/views/dist/editors/TextEditor.js +4 -2
  127. package/views/dist/editors/ValueListEditor.js +2 -1
  128. package/views/dist/field-row/FieldRow.js +32 -5
  129. package/views/dist/field-row/editors/RowRangeEditor.js +2 -1
  130. package/views/dist/grid/chrome/GridAddColumn.js +9 -6
  131. package/views/dist/grid/chrome/GridCellEditors.js +1 -1
  132. package/views/dist/grid/chrome/GridCellOutline.d.ts +3 -1
  133. package/views/dist/grid/chrome/GridCellOutline.js +16 -6
  134. package/views/dist/grid/chrome/GridChipsEditor.js +3 -2
  135. package/views/dist/grid/chrome/GridColumnMenu.js +7 -4
  136. package/views/dist/grid/chrome/GridFooter.d.ts +4 -1
  137. package/views/dist/grid/chrome/GridFooter.js +4 -4
  138. package/views/dist/grid/chrome/GridGroupMenu.js +39 -14
  139. package/views/dist/grid/chrome/GridHeader.d.ts +1 -1
  140. package/views/dist/grid/chrome/GridHeader.js +1 -2
  141. package/views/dist/grid/chrome/GridRangeEditor.d.ts +4 -1
  142. package/views/dist/grid/chrome/GridRangeEditor.js +2 -2
  143. package/views/dist/grid/chrome/GridRow.js +5 -3
  144. package/views/dist/grid/chrome/GridRowActions.d.ts +4 -1
  145. package/views/dist/grid/chrome/GridRowActions.js +2 -2
  146. package/views/dist/grid/chrome/GridRowCells.js +3 -2
  147. package/views/dist/grid/chrome/GridStructure.js +1 -1
  148. package/views/dist/grid/chrome/GridTable.js +32 -20
  149. package/views/dist/grid/chrome/checks.d.ts +1 -1
  150. package/views/dist/grid/chrome/checks.js +4 -1
  151. package/views/dist/grid/chrome/grid-cell-classes.d.ts +6 -2
  152. package/views/dist/grid/chrome/grid-cell-classes.js +10 -5
  153. package/views/dist/grid/chrome/grid-hover.d.ts +10 -2
  154. package/views/dist/grid/chrome/grid-hover.js +14 -4
  155. package/views/dist/grid/chrome/grid-row-props.d.ts +4 -0
  156. package/views/dist/grid/chrome/grid-rows-menu.js +9 -4
  157. package/views/dist/grid/chrome/grid-table-props.d.ts +10 -2
  158. package/views/dist/grid/grid.css +6 -0
  159. package/views/dist/grid/looks.d.ts +3 -1
  160. package/views/dist/grid/looks.js +10 -4
  161. package/views/dist/list/layer.d.ts +8 -0
  162. package/views/dist/list/layer.js +7 -0
  163. package/views/dist/list/list.d.ts +6 -2
  164. package/views/dist/list/list.js +6 -2
  165. package/views/dist/list/parts.js +3 -2
  166. package/views/dist/list/store.d.ts +1 -1
  167. package/views/dist/list/toolbar.js +51 -20
  168. package/views/dist/list/views.js +1 -0
  169. package/views/dist/panels/availability.d.ts +5 -0
  170. package/views/dist/panels/availability.js +4 -5
  171. package/views/dist/panels/customize-body.d.ts +4 -0
  172. package/views/dist/panels/customize-body.js +13 -11
  173. package/views/dist/panels/model.d.ts +9 -4
  174. package/views/dist/panels/react/customize-body.js +5 -2
  175. package/views/dist/panels/react/customize.d.ts +5 -0
  176. package/views/dist/panels/react/filter/FilterEditor.d.ts +6 -0
  177. package/views/dist/panels/react/filter/FilterEditor.js +7 -0
  178. package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +3 -1
  179. package/views/dist/panels/react/quick/QuickFiltersPanel.js +7 -3
  180. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +17 -1
  181. package/views/dist/panels/react/toolbar/Toolbar.d.ts +15 -1
  182. package/views/dist/panels/react/toolbar/Toolbar.js +24 -9
  183. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +3 -2
  184. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +6 -1
  185. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +14 -6
  186. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +7 -3
  187. package/views/dist/panels/react/toolbar/ToolbarFilters.js +21 -10
  188. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +6 -1
  189. package/views/dist/panels/react/toolbar/ToolbarOptions.js +2 -2
  190. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
  191. package/views/dist/panels/react/toolbar/ToolbarSave.d.ts +3 -1
  192. package/views/dist/panels/react/toolbar/ToolbarSave.js +5 -4
  193. package/views/dist/panels/react/toolbar/ToolbarSort.d.ts +7 -1
  194. package/views/dist/panels/react/toolbar/ToolbarSort.js +6 -3
  195. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +3 -0
  196. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +7 -6
  197. package/views/dist/panels/react/toolbar/context.d.ts +21 -0
  198. package/views/dist/panels/react/toolbar/context.js +4 -0
  199. package/views/dist/panels/react/toolbar/pane-host.d.ts +6 -0
  200. package/views/dist/panels/react/toolbar/pane-host.js +17 -0
  201. package/views/dist/panels/react/toolbar/panel-part.js +3 -2
  202. package/views/dist/panels/react/views-row/ViewPicker.js +13 -5
  203. package/views/dist/panels/react.d.ts +2 -2
  204. package/views/dist/panels/settings/layout.js +6 -38
  205. package/views/dist/panels/toolbar/page-resets.d.ts +17 -0
  206. package/views/dist/panels/toolbar/page-resets.js +62 -0
  207. package/views/dist/panels/toolbar/same-item.d.ts +7 -0
  208. package/views/dist/panels/toolbar/same-item.js +9 -0
  209. package/views/dist/panels/view-state.d.ts +4 -0
  210. package/views/dist/provider/ViewsProvider.d.ts +9 -3
  211. package/views/dist/provider/ViewsProvider.js +13 -2
  212. package/views/dist/provider/components.d.ts +59 -8
  213. package/views/dist/provider/components.js +1 -1
  214. package/views/dist/react.d.ts +2 -2
  215. package/views/dist/styles.css +194 -100
  216. package/views/dist/styles.unlayered.css +194 -100
  217. package/views/docs/contract.md +96 -27
  218. package/views/docs/controls/alert-dialog.md +4 -0
  219. package/views/docs/controls/alert.md +4 -0
  220. package/views/docs/controls/avatar.md +3 -0
  221. package/views/docs/controls/bulk-bar.md +7 -1
  222. package/views/docs/controls/compound-editor.md +2 -0
  223. package/views/docs/controls/customize.md +3 -1
  224. package/views/docs/controls/date-editor.md +2 -0
  225. package/views/docs/controls/filter-editor.md +1 -1
  226. package/views/docs/controls/group-editor.md +2 -0
  227. package/views/docs/controls/links-editor.md +2 -0
  228. package/views/docs/controls/menu.md +3 -1
  229. package/views/docs/controls/modal.md +4 -0
  230. package/views/docs/controls/number-editor.md +2 -0
  231. package/views/docs/controls/pane.md +1 -1
  232. package/views/docs/controls/picker.md +2 -0
  233. package/views/docs/controls/quick-filters.md +4 -2
  234. package/views/docs/controls/sheet.md +1 -1
  235. package/views/docs/controls/text-editor.md +3 -1
  236. package/views/docs/controls/toolbar.md +4 -0
  237. package/views/docs/controls/values-editor.md +2 -0
  238. package/views/docs/controls/views-list.md +2 -0
  239. package/views/docs/guides/atoms.md +54 -3
  240. package/views/docs/guides/display.md +1 -1
  241. package/views/docs/guides/looks.md +1 -1
  242. package/views/docs/guides/the-grid.md +4 -2
  243. package/views/docs/guides/the-provider.md +4 -4
  244. package/views/docs/index.md +2 -2
  245. package/views/docs/install.md +198 -104
  246. package/views/docs/reference/controls.md +21 -17
  247. package/views/docs/reference/editors-range.md +1 -1
  248. package/views/docs/reference/field-row.md +1 -1
  249. package/views/docs/reference/grid.md +2 -1
  250. package/views/docs/reference/list.md +7 -5
  251. package/views/docs/reference/looks.md +6 -6
  252. package/views/docs/reference/panels-react.md +17 -15
  253. package/views/docs/reference/panels.md +4 -4
  254. package/views/docs/reference/react.md +15 -12
  255. package/views/docs/reference/views.md +6 -4
  256. package/views/docs/reshaping.md +32 -5
  257. package/views/skills/views/SKILL.md +3 -3
@@ -11,7 +11,7 @@ Guide: [the provider](../guides/the-provider.md).
11
11
  - `VK_PREFIX` — the prefix `"vk"`, worn by everything that shares a global namespace: the CSS variables (`--vk-*`) and the `data-slot` values (`vk-grid-row`). States are bare `data-*` attributes, and message keys live under `views.*` ([the contract](../contract.md)).
12
12
  - `GRID_SLOTS` — every `data-slot` value the grid draws, from `vk-grid` (the frame) to `vk-grid-pager-next`, in the order of the [contract's Slots table](../contract.md#slots). A skin styles a part through its slot, never through a class name the package happens to use.
13
13
  - `GridSlot` — one member of `GRID_SLOTS`.
14
- - `GRID_STATES` — the flags the grid styles, each a `data-*` attribute present when true (`focused`, `selected`, `editing`, `in-range`, `range-edge`, `pending`, `invalid`, `dragging`, `empty`, `frozen`, `frozen-edge`, `scrolled`, `parked`, `collapsed`, `stuck`, `open`, `desktop`), as the [contract's States table](../contract.md#states) lists them with where each sits.
14
+ - `GRID_STATES` — the flags the grid styles, each a `data-*` attribute present when true (`focused`, `selected`, `hovered`, `active`, `editing`, `in-range`, `range-edge`, `pending`, `invalid`, `dragging`, `empty`, `frozen`, `frozen-edge`, `scrolled`, `parked`, `collapsed`, `stuck`, `open`, `desktop`), as the [contract's States table](../contract.md#states) lists them with where each sits.
15
15
  - `GridState` — one member of `GRID_STATES`.
16
16
  - `VK_TOKENS` — the CSS variables the package owns and sets on the grid's frame: geometry and density (`--vk-scale`, `--vk-row-h`, the paddings, the text sizes, the 0-or-1 flags `--vk-scrolled`, `--vk-parked` and `--vk-frozen-on`). A skin reads them and an app overrides them on the frame ([Tokens](../contract.md#tokens)).
17
17
  - `VkToken` — one member of `VK_TOKENS`.
@@ -34,7 +34,7 @@ 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), `Select` (drawn only inside the sort and filter 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) and `ViewMenu` (without one, a views row's pill opens its view's `menu` rows) ([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`.
@@ -43,12 +43,14 @@ Guide: [the provider](../guides/the-provider.md).
43
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
44
  - `PanelSlot` — one member of `PANEL_SLOTS`.
45
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)).
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-title`, `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)).
47
47
  - `EditorSlot` — one member of `EDITOR_SLOTS`.
48
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`).
49
49
  - `EditorState` — one member of `EDITOR_STATES`.
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)).
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`).
51
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`.
52
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)).
53
55
  - `AtomState` — one member of `ATOM_STATES`.
54
56
  - `PORT_NAMES` — the runtime services your app hands in through the provider: `toast`, `haptics`, `clipboard`, `viewPrefs` and `confirm` ([Ports](../contract.md#ports)).
@@ -10,15 +10,42 @@ 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. Inside the sort and filter panels they are
14
- yours too where the provider's `panelControls` says so (VK-1013): your Button, Select, Menu, Popover and
15
- Input, each handed its part's name. The other panels follow (VK-1014), and the field editors (VK-991);
16
- the Tooltip, the Picker, ViewKit's menu rows, the sort's grip, the filter's number boxes and the filter
17
- bar's way-and-value box stay ViewKit's. The sort's direction box keeps, out of sight, ViewKit's two
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`. So are the Picker, wherever a ViewKit body holds it (an
19
+ editor's list, the text and number editors' country and currency lists, the filter's value Pickers, the
20
+ sort's Add sort fields, the views list), the name and place parts, and the values and links editors
21
+ (VK-1022): your Button, Menu, Popover, Select and one-line Input, a box inside ViewKit's field named by
22
+ its label. So is every record's mark the panels draw, the Picker's rows, the links editor's, the bulk bar's choices and the quick filters' values (VK-1044): your `Avatar` atom where `panelControls` names `Avatar`, handed data only (its name, picture, kind and a size in pixels). So is every mentioned record ViewKit draws, a table's cell, a field row's value and a highlight (VK-1053): your `RelationChip` atom where `panelControls` names `RelationChip`, handed its data, its size and the host's link. So is the bulk bar (VK-1023): your Button for its verbs, Delete, More, the pill's ✕ and Actions (and for the hidden copies it measures them by), your Menu for More's and a group's rows, your Popover round a field's list on a computer; its count, its Toast, a phone's field sheet and Delete's question stay ViewKit's, the question's buttons yours. In those three editors these stay ViewKit's: a box that grows over lines (the text
23
+ editor's box on a computer, text and long text on a phone), a box group's frame (your Input stands bare
24
+ inside it), the Number field, a search list's box, the date's segments, its parts' boxes, its quarter
25
+ list (`vk-date-quarter`), its months and years choices and its day buttons where no `Calendar` of yours
26
+ is named, its wheels, the phone's time row, the ✕ and ✓ an editor standing on its own draws in
27
+ ViewKit's Sheet, and a duration's box (your map's `Input`, as before, opted in or not). In the Picker
28
+ and the parts, values and links editors these stay ViewKit's: the Picker's search box and its rows, and
29
+ on a computer its actions, + Add and Create, which are rows of its list (on a phone they are your
30
+ buttons); the place's country and region on a phone, which open the place's own list; the range's
31
+ Number fields; a box that takes lines; a box group's frame; the values editor's grip and its phone's
32
+ minus mark; a button drawn as a link (the values editor's Open); and the links editor's Radio and Switch.
33
+ With your Calendar and a time, Enter on a day no longer keeps and closes the date editor on a computer:
34
+ your Calendar's day is a press. Across the panels, your Tooltip draws their tooltips where `panelControls` names it
35
+ (VK-1015), and your Input the filter's number and range boxes, ViewKit reading the number (VK-1018); the Picker's search box
36
+ and rows, ViewKit's menu rows, Radio, Toggle, the quick filters' values and the sort's grip stay ViewKit's, and so
37
+ 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
18
38
  words drawn in its own classes, which size the box round your Select so the row never moves on a turn.
19
39
  5. **A copy of the rendering.** When the copy mode ships, a view's default rendering is a registry
20
40
  item you copy into your app and own from then on, updated by a three-way merge against the tag you
21
41
  copied. Reach for it only when the structure itself must differ.
22
42
 
43
+ **What ViewKit draws by itself is yours when you hand it.** ViewKit says which actions exist and what they do; it never
44
+ decides how your buttons look. Anything it draws on screen of its own accord, the ⋯ a toolbar folds its parts into first,
45
+ takes yours where you hand one: `overflow` on the list's toolbar (`ReadyToolbar`, `ListToolbar`, `List`'s `toolbar`) and on
46
+ the kit's `ToolbarControl`, your glyph, your class or your whole button; on `ToolbarControl` "+N" and "+N filters" too
47
+ (`moreViews`, `moreFilters`), your class or your whole button. Hand nothing and it draws its own. The toolbar is the
48
+ bar above a list and nothing else: a row of a page's actions (a record's) is yours, on your Button.
49
+
23
50
  An `if` in a skin that is not about layout is engine code in the wrong place: file it as a package
24
51
  issue, do not fork the rendering around it.
@@ -22,7 +22,7 @@ conventions from one `ViewsProvider` above it. Mount it once, at the app's clien
22
22
  through `CONTROLS.AppIcon`, the browser's clipboard and `localStorage`, `en-US` in `UTC`); hand each only to draw your
23
23
  own, as below. The
24
24
  rendering paints through its own colour names (`--vk-fg`, `--vk-ground`, …), which your stylesheet
25
- declares once: `views/docs/install.md` step 3 holds the block for stock shadcn.
25
+ declares once: `views/docs/install.md`, Your theme, holds the block for stock shadcn.
26
26
 
27
27
  <!-- viewkit-example:provider -->
28
28
 
@@ -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
@@ -80,7 +80,7 @@ typed catalog can overflow TypeScript) and read each key without its `views.` pr
80
80
  `(m) => { const key = m.key.slice("views.".length); return t.has(key) ? t(key, "values" in m ? m.values : undefined) : resolveViewsMessage(m); }`.
81
81
 
82
82
  The atoms — `List`, `Row`, `RowContent`, `TickBox`, `StatusBadge`, `StatusMarker`, `Tag`, `CommandMenu`,
83
- `RelationLink`, `RelationRoles`, `Loading`, `LoadMore`, `PlatformMark`, `RowMenu` — ship as defaults drawn from your theme. Swap any of them through `atoms` so the views wear
83
+ `RelationLink`, `RelationRoles`, `RelationChip`, `Loading`, `LoadMore`, `PlatformMark`, `RowMenu` — ship as defaults drawn from your theme. Swap any of them through `atoms` so the views wear
84
84
  your own menus and pills. `CommandMenu`, `RowMenu` and `RelationLink` are your app's own pieces — the verb menu a
85
85
  command cell opens, the row's right-click menu, and where a relation chip goes; their defaults are the map's menu,
86
86
  the map's menu at the pointer (its Delete asks the `confirm` port: ViewKit's alert dialog when you hand none and spread `CONTROLS`, else the browser's own confirm), and a chip that goes nowhere. `Loading` and `LoadMore` are your waits — the list reloading, and how it asks for more rows; their