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.
- package/CHANGELOG.md +98 -0
- package/fields/dist/index.d.ts +1 -1
- package/fields/dist/index.js +1 -1
- package/fields/dist/query/evaluate.d.ts +7 -0
- package/fields/dist/query/exact-number.d.ts +8 -2
- package/fields/dist/query/exact-number.js +14 -1
- package/fields/dist/query/sort.js +13 -10
- package/fields/dist/registry.js +5 -1
- package/fields/dist/types.d.ts +4 -1
- package/fields/dist/zod.d.ts +5 -0
- package/fields/dist/zod.js +10 -1
- package/fields/docs/guides/contact-values.md +12 -0
- package/fields/docs/guides/field-types.md +1 -1
- package/fields/docs/guides/queries.md +3 -1
- package/fields/docs/reference/fields.md +1 -0
- package/package.json +1 -1
- package/postgres/dist/check.js +4 -1
- package/postgres/dist/definitions/formula-forms.js +3 -1
- package/postgres/dist/definitions/money.js +2 -1
- package/postgres/dist/page.js +6 -3
- package/postgres/dist/rules.d.ts +15 -1
- package/postgres/dist/rules.js +16 -0
- package/postgres/dist/sort.js +7 -2
- package/postgres/docs/guides/definitions.md +1 -1
- package/postgres/docs/guides/field-map.md +1 -1
- package/postgres/docs/reference/definitions.md +1 -1
- package/postgres/docs/reference/postgres.md +1 -1
- package/views/dist/atoms/ToolbarButton.d.ts +1 -1
- package/views/dist/atoms/ToolbarButton.js +4 -3
- package/views/dist/atoms/frame-parts.d.ts +6 -0
- package/views/dist/atoms/frame-parts.js +15 -0
- package/views/dist/atoms/types.d.ts +16 -7
- package/views/dist/cells/cell-title.d.ts +3 -1
- package/views/dist/cells/cell-title.js +2 -2
- package/views/dist/cells/cell-values.js +2 -2
- package/views/dist/contract.d.ts +46 -11
- package/views/dist/contract.js +157 -0
- package/views/dist/controls/alert/alert.js +2 -1
- package/views/dist/controls/alert-dialog/alert-dialog.js +3 -2
- package/views/dist/controls/bulk-bar/bulk-bar.js +25 -22
- package/views/dist/controls/button/map-button.js +2 -0
- package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
- package/views/dist/controls/checkbox/checkbox.js +2 -2
- package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
- package/views/dist/controls/compound-editor/name-parts.js +4 -4
- package/views/dist/controls/compound-editor/place-parts.js +19 -19
- package/views/dist/controls/compound-editor/range-parts.js +14 -14
- package/views/dist/controls/compound-editor/row.d.ts +3 -1
- package/views/dist/controls/compound-editor/row.js +2 -2
- package/views/dist/controls/controls.d.ts +4 -0
- package/views/dist/controls/controls.js +4 -0
- package/views/dist/controls/customize/customize.js +43 -39
- package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
- package/views/dist/controls/customize/map-customize-body.js +7 -2
- package/views/dist/controls/date-editor/date-days.js +2 -2
- package/views/dist/controls/date-editor/date-editor.d.ts +3 -0
- package/views/dist/controls/date-editor/date-editor.js +27 -21
- package/views/dist/controls/date-editor/date-parts.js +6 -6
- package/views/dist/controls/date-editor/map-calendar.js +3 -1
- package/views/dist/controls/date-editor/map-date-body.d.ts +1 -1
- package/views/dist/controls/date-editor/map-date-body.js +7 -3
- package/views/dist/controls/date-editor.css +2 -2
- package/views/dist/controls/field/field.d.ts +3 -0
- package/views/dist/controls/field/field.js +6 -6
- package/views/dist/controls/filter-editor/block.d.ts +2 -2
- package/views/dist/controls/filter-editor/block.js +5 -5
- package/views/dist/controls/filter-editor/filter-editor.js +31 -33
- package/views/dist/controls/filter-editor/how.d.ts +3 -1
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +3 -0
- package/views/dist/controls/filter-editor/map-filter-body.js +11 -4
- package/views/dist/controls/filter-editor/map-rules.js +1 -1
- package/views/dist/controls/filter-editor/parts.d.ts +3 -1
- package/views/dist/controls/filter-editor/parts.js +8 -6
- package/views/dist/controls/group-editor/group-editor.js +17 -14
- package/views/dist/controls/group-editor/map-group-body.d.ts +1 -0
- package/views/dist/controls/group-editor/map-group-body.js +5 -1
- package/views/dist/controls/index.d.ts +2 -0
- package/views/dist/controls/index.js +1 -0
- package/views/dist/controls/input/input.js +4 -3
- package/views/dist/controls/input/map-input.js +2 -0
- package/views/dist/controls/internal/editor-parts.js +1 -1
- package/views/dist/controls/internal/head-button.d.ts +9 -0
- package/views/dist/controls/internal/head-button.js +13 -0
- package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
- package/views/dist/controls/internal/map-panel-controls.js +20 -0
- package/views/dist/controls/internal/panel-controls.d.ts +58 -0
- package/views/dist/controls/internal/panel-controls.js +240 -0
- package/views/dist/controls/internal/part-slot.d.ts +12 -0
- package/views/dist/controls/internal/part-slot.js +5 -0
- package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
- package/views/dist/controls/links-editor/links-editor.js +27 -27
- package/views/dist/controls/menu/map-menu.d.ts +2 -2
- package/views/dist/controls/menu/map-menu.js +15 -12
- package/views/dist/controls/menu/menu.d.ts +3 -0
- package/views/dist/controls/menu/menu.js +5 -5
- package/views/dist/controls/menu-list/menu-list.d.ts +14 -4
- package/views/dist/controls/menu-list/menu-list.js +23 -22
- package/views/dist/controls/modal/modal.js +5 -3
- package/views/dist/controls/notice/notice.d.ts +3 -1
- package/views/dist/controls/notice/notice.js +2 -2
- package/views/dist/controls/number-editor/map-number-body.js +5 -1
- package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
- package/views/dist/controls/number-editor/number-editor.js +16 -16
- package/views/dist/controls/number-field/number-field.js +5 -3
- package/views/dist/controls/pane/map-pane.d.ts +3 -0
- package/views/dist/controls/pane/map-pane.js +5 -0
- package/views/dist/controls/pane/pane.d.ts +4 -2
- package/views/dist/controls/pane/pane.js +4 -4
- package/views/dist/controls/picker/map-fields-body.js +25 -1
- package/views/dist/controls/picker/picker.d.ts +2 -0
- package/views/dist/controls/picker/picker.js +37 -36
- package/views/dist/controls/picker/rows.d.ts +4 -0
- package/views/dist/controls/picker.css +10 -1
- package/views/dist/controls/popover/map-popover.d.ts +1 -1
- package/views/dist/controls/popover/map-popover.js +4 -2
- package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +2 -1
- package/views/dist/controls/quick-filters/map-quick-filters-body.js +7 -3
- package/views/dist/controls/quick-filters/quick-filters.js +8 -6
- package/views/dist/controls/radio/radio.d.ts +3 -0
- package/views/dist/controls/radio/radio.js +4 -3
- package/views/dist/controls/select/map-select.d.ts +3 -0
- package/views/dist/controls/select/map-select.js +8 -0
- package/views/dist/controls/select/select.d.ts +3 -0
- package/views/dist/controls/select/select.js +3 -3
- package/views/dist/controls/setting-row/looks.js +5 -5
- package/views/dist/controls/setting-row/setting-row.d.ts +3 -1
- package/views/dist/controls/setting-row/setting-row.js +3 -1
- package/views/dist/controls/setting-row.css +3 -2
- package/views/dist/controls/sheet/bottom-sheet.d.ts +8 -2
- package/views/dist/controls/sheet/bottom-sheet.js +4 -4
- package/views/dist/controls/sheet/map-sheet.js +1 -1
- package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
- package/views/dist/controls/sort-editor/map-sort-body.js +8 -4
- package/views/dist/controls/sort-editor/sort-editor.js +24 -26
- package/views/dist/controls/sort-editor.css +5 -0
- package/views/dist/controls/text-editor/map-text-body.js +5 -1
- package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
- package/views/dist/controls/text-editor/text-editor.js +11 -10
- package/views/dist/controls/toolbar/toolbar.d.ts +4 -2
- package/views/dist/controls/toolbar/toolbar.js +2 -2
- package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +3 -3
- package/views/dist/controls/toolbar-button/atom-toolbar-button.js +7 -6
- package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
- package/views/dist/controls/values-editor/values-editor.js +22 -22
- package/views/dist/controls/views-list/map-view-menu.d.ts +3 -2
- package/views/dist/controls/views-list/map-view-menu.js +7 -3
- package/views/dist/controls/views-list/map-views-list-body.d.ts +2 -1
- package/views/dist/controls/views-list/map-views-list-body.js +6 -5
- package/views/dist/controls/views-list/view-menu.js +9 -10
- package/views/dist/controls/views-list/views-list.js +6 -6
- package/views/dist/editors/EditorPanel.js +4 -4
- package/views/dist/field-row/FieldRow.js +13 -0
- package/views/dist/fields/money.d.ts +5 -2
- package/views/dist/fields/money.js +14 -2
- package/views/dist/grid/chrome/GridTable.js +4 -1
- package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
- package/views/dist/grid/chrome/cell-clipboard.js +2 -2
- package/views/dist/grid/chrome/cells.js +3 -1
- package/views/dist/grid/chrome/grid-row-menu-items.js +1 -1
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
- package/views/dist/grid/chrome/useGridKeyboard.js +29 -6
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +9 -2
- package/views/dist/grid/core/clipboard-model.d.ts +3 -1
- package/views/dist/grid/core/clipboard-model.js +9 -8
- package/views/dist/grid/core/editing-controller.d.ts +3 -0
- package/views/dist/grid/core/editing-controller.js +6 -0
- package/views/dist/grid/core/edits-sink.d.ts +19 -0
- package/views/dist/grid/core/edits-sink.js +2 -0
- package/views/dist/grid/core/spreadsheet-operations.js +1 -1
- package/views/dist/grid/core/useGridEditing.d.ts +5 -0
- package/views/dist/grid/core/useGridEditing.js +6 -0
- package/views/dist/list/answer.d.ts +40 -0
- package/views/dist/list/answer.js +43 -0
- package/views/dist/list/bulk-bar.d.ts +7 -0
- package/views/dist/list/bulk-bar.js +10 -0
- package/views/dist/list/columns.d.ts +24 -0
- package/views/dist/list/columns.js +27 -0
- package/views/dist/list/edits.d.ts +19 -0
- package/views/dist/list/edits.js +56 -0
- package/views/dist/list/grid.d.ts +11 -0
- package/views/dist/list/grid.js +76 -0
- package/views/dist/list/index.d.ts +14 -1
- package/views/dist/list/index.js +4 -1
- package/views/dist/list/link.d.ts +8 -0
- package/views/dist/list/link.js +78 -0
- package/views/dist/list/list.d.ts +74 -0
- package/views/dist/list/list.js +18 -0
- package/views/dist/list/parts.js +11 -3
- package/views/dist/list/root-base.d.ts +46 -0
- package/views/dist/list/root-base.js +137 -0
- package/views/dist/list/root.d.ts +35 -34
- package/views/dist/list/root.js +153 -113
- package/views/dist/list/source-answers.d.ts +39 -0
- package/views/dist/list/source-answers.js +225 -0
- package/views/dist/list/store.d.ts +37 -5
- package/views/dist/list/store.js +31 -0
- package/views/dist/list/toolbar.d.ts +3 -2
- package/views/dist/list/toolbar.js +23 -5
- package/views/dist/list/views-axis.js +4 -2
- package/views/dist/list/views.d.ts +7 -2
- package/views/dist/list/views.js +16 -5
- package/views/dist/model/column-capabilities.d.ts +13 -0
- package/views/dist/model/column-capabilities.js +23 -2
- package/views/dist/model/column-schema.d.ts +11 -1
- package/views/dist/model/view-rules.js +1 -0
- package/views/dist/panels/model.d.ts +2 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +21 -2
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +2 -2
- package/views/dist/panels/react/toolbar/Toolbar.d.ts +12 -1
- package/views/dist/panels/react/toolbar/Toolbar.js +20 -6
- package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +4 -3
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
- package/views/dist/panels/react/toolbar/ToolbarButton.js +4 -1
- package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +4 -3
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarFilters.js +5 -4
- package/views/dist/panels/react/toolbar/ToolbarNew.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +8 -5
- package/views/dist/panels/react/toolbar/context.d.ts +31 -1
- package/views/dist/panels/react/toolbar/context.js +4 -0
- package/views/dist/panels/react/toolbar/pane-host.d.ts +6 -0
- package/views/dist/panels/react/toolbar/pane-host.js +17 -0
- package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
- package/views/dist/panels/react/toolbar/panel-part.js +7 -4
- package/views/dist/panels/react.d.ts +1 -1
- package/views/dist/panels/settings/filter-groups.js +6 -1
- package/views/dist/provider/ViewsProvider.d.ts +7 -2
- package/views/dist/provider/ViewsProvider.js +18 -1
- package/views/dist/provider/components.d.ts +90 -2
- package/views/dist/provider/components.js +1 -1
- package/views/dist/provider/context.d.ts +4 -1
- package/views/dist/provider/own-control.d.ts +4 -0
- package/views/dist/provider/own-control.js +7 -0
- package/views/dist/provider/select-items.d.ts +3 -0
- package/views/dist/provider/select-items.js +6 -0
- package/views/dist/react.d.ts +4 -2
- package/views/dist/react.js +2 -0
- package/views/dist/styles.css +107 -80
- package/views/dist/styles.unlayered.css +107 -80
- package/views/docs/contract.md +310 -7
- package/views/docs/controls/alert-dialog.md +4 -0
- package/views/docs/controls/alert.md +4 -0
- package/views/docs/controls/bulk-bar.md +4 -0
- package/views/docs/controls/compound-editor.md +4 -0
- package/views/docs/controls/customize.md +8 -0
- package/views/docs/controls/date-editor.md +6 -0
- package/views/docs/controls/field.md +4 -0
- package/views/docs/controls/filter-editor.md +8 -0
- package/views/docs/controls/group-editor.md +8 -0
- package/views/docs/controls/input.md +4 -0
- package/views/docs/controls/links-editor.md +4 -0
- package/views/docs/controls/menu-list.md +8 -0
- package/views/docs/controls/menu.md +6 -0
- package/views/docs/controls/modal.md +4 -0
- package/views/docs/controls/notice.md +4 -0
- package/views/docs/controls/number-editor.md +6 -0
- package/views/docs/controls/pane.md +4 -0
- package/views/docs/controls/picker.md +8 -0
- package/views/docs/controls/quick-filters.md +8 -0
- package/views/docs/controls/radio.md +4 -0
- package/views/docs/controls/select.md +8 -0
- package/views/docs/controls/sheet.md +4 -0
- package/views/docs/controls/sort-editor.md +8 -0
- package/views/docs/controls/text-editor.md +6 -0
- package/views/docs/controls/toolbar.md +4 -0
- package/views/docs/controls/values-editor.md +4 -0
- package/views/docs/controls/views-list.md +8 -0
- package/views/docs/guides/the-grid.md +2 -2
- package/views/docs/guides/the-provider.md +19 -2
- package/views/docs/reference/controls.md +11 -7
- package/views/docs/reference/field-row.md +1 -1
- package/views/docs/reference/grid.md +1 -1
- package/views/docs/reference/list.md +143 -11
- package/views/docs/reference/looks.md +1 -1
- package/views/docs/reference/panels-react.md +6 -5
- package/views/docs/reference/react.md +19 -12
- package/views/docs/reference/views.md +11 -5
- package/views/docs/reshaping.md +17 -1
- package/views/skills/views/SKILL.md +1 -1
|
@@ -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,9 @@ 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 part names takes `data-slot` (VK-988: `vk-view-menu`; VK-1023: the bulk bar's `vk-bulk-menu`), drawn on its popup on a computer and on its sheet on a phone; its rows take theirs from each entry's `slot` (`PartSlot`). ViewKit's own map Menu (`ViewsMenuProps`) names a named menu's rows `<name>-row`, each by its item's `data-key`; a menu nobody names draws as before.
|
|
16
|
+
|
|
17
|
+
Name a menu under the panels' prefixes (`vk-view-menu`, `vk-bulk-menu`): any other `vk-` name would make its phone sheet a reset root, and ViewKit's reset would reach inside it (VK-1003).
|
|
@@ -53,3 +53,7 @@ Every name `modal.css` reads, each optional: the ready stylesheet declares it at
|
|
|
53
53
|
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
54
54
|
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
55
55
|
| `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
56
|
+
|
|
57
|
+
## Inside a panel
|
|
58
|
+
|
|
59
|
+
Inside a panel under the provider's `panelControls` (the view menu's Rename and New view, and its Delete on a phone) its buttons are the app's own Button, ViewKit's anywhere else (VK-1014). On a computer the view menu's Delete is asked through the `confirm` port: ViewKit's own (`PortsHost`) stays ViewKit's, so hand your own `confirm` to draw that question yourself.
|
|
@@ -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,9 @@ 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).
|
|
17
|
+
|
|
18
|
+
Under the provider's `panelControls` its buttons and popover are the app's own, handed each part's name (VK-1021). What stays ViewKit's: [reshaping](../reshaping.md).
|
|
@@ -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,11 @@ 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`, `vk-quick-strip`, `vk-quick-values`.
|
|
42
|
+
|
|
43
|
+
Under the provider's `panelControls` its search is the app's own Input and its own phone head's ✕ (`vk-editor-close`) the app's Button (VK-1014); its strip of fields (ViewKit's Toggle) and its values stay ViewKit's.
|
|
@@ -70,3 +70,7 @@ The words beside a choice, and a card's edge and ground (`o-choice-*`), are `cho
|
|
|
70
70
|
## Cards on a phone
|
|
71
71
|
|
|
72
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.
|
|
@@ -16,3 +16,11 @@ Every name the Select's stylesheet (`select.css`) reads, each optional: the read
|
|
|
16
16
|
## Saving and Saved
|
|
17
17
|
|
|
18
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.
|
|
@@ -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
|
+
`Sheet` draws a handed `data-slot` on the sheet itself (VK-1023: the bulk bar's field sheet, `vk-bulk-field-sheet`, and a named Menu's sheet on a phone). `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).
|
|
@@ -21,3 +21,9 @@ 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).
|
|
28
|
+
|
|
29
|
+
Under the provider's `panelControls` its buttons, popover and one-line boxes are the app's own, handed each part's name (VK-1021). What stays ViewKit's: [reshaping](../reshaping.md).
|
|
@@ -12,3 +12,7 @@ The Toolbar draws nothing of its own but its lines, the room between what each h
|
|
|
12
12
|
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
13
13
|
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
14
14
|
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
15
|
+
|
|
16
|
+
## A separator's name
|
|
17
|
+
|
|
18
|
+
`ToolbarSeparatorControl` draws a handed `data-slot` on its line, in a toolbar and outside one (VK-1023: the bulk bar's `vk-bulk-separator`).
|
|
@@ -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,11 @@ 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`.
|
|
15
|
+
|
|
16
|
+
Under the provider's `panelControls` its buttons, boxes that pick and text boxes are the app's own, each handed its part's name (VK-1014). A phone step's own head names its ‹ `vk-editor-back`. The views list's rows, and their ⋯, are the Picker's.
|
|
@@ -560,7 +560,7 @@ assert.equal(fieldKeyOf(valueColumn), "value");
|
|
|
560
560
|
|
|
561
561
|
## A list's locks
|
|
562
562
|
|
|
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 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
564
|
|
|
565
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.
|
|
566
566
|
|
|
@@ -713,7 +713,7 @@ The grid styles through attributes, never class names: each part carries a `data
|
|
|
713
713
|
A surface of your own beside the grid reads values the way the grid does with these.
|
|
714
714
|
|
|
715
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.
|
|
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 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.
|
|
717
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.
|
|
718
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.
|
|
719
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).
|
|
@@ -4,7 +4,7 @@ Every view reads what it takes from its app, other than its own props, from one
|
|
|
4
4
|
|
|
5
5
|
## Mount it once
|
|
6
6
|
|
|
7
|
-
`ViewsProvider` sits once at your app's client root, above every view. It needs one thing and the children: `components` (your primitives; `components={CONTROLS}` is ViewKit's own, every slot filled). Three more have defaults, so you hand them only to draw your own: `icons` (your glyphs by meaning; absent, each drawn through your `AppIcon` by its name, which `CONTROLS.AppIcon` draws with ViewKit's own glyphs), `ports` (your haptics, clipboard, per-device store, toast and confirm dialog, each optional; [ports](ports.md)) and `conventions` (absent, `en-US` in `UTC`).
|
|
7
|
+
`ViewsProvider` sits once at your app's client root, above every view. It needs one thing and the children: `components` (your primitives; `components={CONTROLS}` is ViewKit's own, every slot filled). Three more have defaults, so you hand them only to draw your own: `icons` (your glyphs by meaning; absent, each drawn through your `AppIcon` by its name, which `CONTROLS.AppIcon` draws with ViewKit's own glyphs), `ports` (your haptics, clipboard, per-device store, toast and confirm dialog, each optional; [ports](ports.md)) and `conventions` (absent, `en-US` in `UTC`). Eleven more are optional: `atoms`, `messages`, `presentation`, `desktopQuery`, `sheetActions`, `escape`, `oneValue`, `severalValues`, `selectionBar`, `datePicks` and `panelControls` (your own controls inside ViewKit's panels and field editors, below).
|
|
8
8
|
|
|
9
9
|
`desktopQuery` says which screens are desktops: there an editor opens as a popover, and elsewhere as a sheet; so do the toolbar's panels and the views picker outside a `Toolbar` (inside one, the toolbar's phone form decides), and the grid's own chrome: a row's and a group's ⋯ and the row actions show on hover on a desktop, and a row's and a group's ⋯ always elsewhere, where the row actions don't show. It defaults to `DEFAULT_DESKTOP_QUERY`, `(min-width: 1024px)`; hand in the query your own shell switches on, so the editors and your layout change at the same width. A server render counts as a desktop.
|
|
10
10
|
|
|
@@ -73,7 +73,7 @@ assert.equal(conventions.locale, "en-GB"); // the app's own, untouched
|
|
|
73
73
|
|
|
74
74
|
## The components map
|
|
75
75
|
|
|
76
|
-
The package draws nothing with a UI library of its own. `ViewsComponents`, from `viewkitjs/views/react`, is the map you hand it: `Button`, `Popover`, `Tooltip`, `Checkbox`, `Menu`, `Collapse`, `Sheet`, `AppIcon`, `Markdown`, `TextBody` (a whole body for a text typed as one string), `NumberBody` (a whole body for a number, money or a percent), `Picker` (a whole pick list), `LinksBody` (a whole links body: each link's roles and its lead), `DateBody` (a whole date body), `PartsBody` (a whole body for a name, a place or a range) and `ValuesBody` (a whole body for several emails, phones, links or domains), `SortBody` (the sort editor's whole body), `FilterBody` (the filter editor's whole body), `FilterPartBody` (a filter rule's way and value), `FieldsBody` (the field list's whole body), `QuickFiltersBody` (the quick filters' whole body), `ViewsListBody` (the views list's whole body) and `CustomizeBody` (Customize's whole body), and
|
|
76
|
+
The package draws nothing with a UI library of its own. `ViewsComponents`, from `viewkitjs/views/react`, is the map you hand it: `Button`, `Popover`, `Tooltip`, `Checkbox`, `Menu`, `Collapse`, `Sheet`, `AppIcon`, `Markdown`, `TextBody` (a whole body for a text typed as one string), `NumberBody` (a whole body for a number, money or a percent), `Picker` (a whole pick list), `LinksBody` (a whole links body: each link's roles and its lead), `DateBody` (a whole date body), `PartsBody` (a whole body for a name, a place or a range) and `ValuesBody` (a whole body for several emails, phones, links or domains), `SortBody` (the sort editor's whole body), `FilterBody` (the filter editor's whole body), `FilterPartBody` (a filter rule's way and value), `FieldsBody` (the field list's whole body), `QuickFiltersBody` (the quick filters' whole body), `ViewsListBody` (the views list's whole body) and `CustomizeBody` (Customize's whole body), and ten you may leave out: `Input`, `Select` (the panels' boxes that pick, drawn only under `panelControls`), `Command` (the command list's parts, for the grid's menus on the popover route), `Calendar` (the filter panel's month, and the date editor's under `panelControls`), `RowsWait` (what a grid's rows wait in while new ones load), `GroupBody` (deprecated: read by nothing), `SearchField` (the toolbar's search box), `PortsHost` (what draws the `toast` and `confirm` ports you leave out), `SelectionBar` (the selection bar) and `ViewMenu` (a view's whole menu). The [contract](../contract.md#the-components-map) says what each slot must accept; the [`viewkitjs/views/react` reference](../reference/react.md) lists every prop.
|
|
77
77
|
|
|
78
78
|
The shapes are Base UI's, and the types promise three things:
|
|
79
79
|
|
|
@@ -83,6 +83,23 @@ The shapes are Base UI's, and the types promise three things:
|
|
|
83
83
|
|
|
84
84
|
So an app on Base UI wraps its own copies thinly, and an app on Radix maps the difference in its adapter. The package's own defaults are `CONTROLS`, from `viewkitjs/views/controls`, on Base UI, an optional peer: spread it first and your own controls after. Every other door depends on neither library.
|
|
85
85
|
|
|
86
|
+
### Your own controls inside the panels
|
|
87
|
+
|
|
88
|
+
Your `Button`, `Popover` and `Menu` draw the grid's chrome and the toolbar's frame as soon as you hand them. Inside ViewKit's own panels they draw only where you say so, so an app that hands its own for the grid sees no panel change on upgrade:
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
declare const CONTROLS: ViewsComponents; // from viewkitjs/views/controls
|
|
92
|
+
declare const yourControls: Pick<ViewsComponents, "Button" | "Select" | "Menu" | "Popover" | "Input">; // your own
|
|
93
|
+
|
|
94
|
+
export function ViewsWithYourControls({ children }: { children: ReactNode }) {
|
|
95
|
+
return <ViewsProvider components={{ ...CONTROLS, ...yourControls }} panelControls>{children}</ViewsProvider>;
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`panelControls` takes `true` (all six) or the names you want (`["Button", "Select"]`). The sort and filter panels then draw every button, box that picks, menu, popover and text box with yours (VK-1013), and so do the group editor, Customize, the views list and view menu (with the Modal they open, and on a phone the Delete question: on a computer it goes to your `confirm` port), the quick filters' search, the filter bar's typed value and date and every head a panel draws itself on a phone, its ✕, ‹ and ✓ (VK-1014), and the text, number and date editors, each button, popover and one-line box, with `Calendar` their date's month in place of its own head and days (VK-1021; the Picker, the name, place and range parts, the values and links editors and the bulk bar follow in VK-1022 and VK-1023). Inside a box group of ViewKit's (a date's line, a phone number's digits, Customize's and the quick filters' searches) your Input is handed `chrome="bare"`, the group drawing the frame; a box that grows over lines, a search list's box, the Number field and a duration's box stay ViewKit's ([reshaping](../reshaping.md)). Each is handed the map's props, never ViewKit's own look: your Button a `variant` from what it is (an outlined Add sort `outline`, a quiet × `ghost` at `size="icon"`), its icon and words as its children, `aria-disabled` where it can't be used but keeps its focus; your Select its rows, value and pick, `open` and `onOpenChange`, the search's words; your Menu its rows as data, opened at the button that opens it; your Popover its anchor, its close and its `label`; your Input its typing as `onChange`, in your field's frame (`chrome="field"`). Each part's name rides with it as `data-slot` and `data-key`, so your control and your stylesheet meet on one name. A control of `CONTROLS`' stays ViewKit's whatever `panelControls` says. A `Select` of your own that `panelControls` doesn't name is never drawn, and ViewKit says so once in development.
|
|
100
|
+
|
|
101
|
+
Still ViewKit's inside the panels: the Tooltip, the Picker (the field lists, the views list's rows), the menu rows of ViewKit's own menus, Radio, Toggle, the quick filters' values, the sort's grip, the filter's number and range boxes (ViewKit's Number field), and the head ViewKit's own `Sheet` draws (Customize's and the views list's on a phone): hand your own `Sheet` and the panels draw their heads with your Button. A filter rule's value box is named by what holds it (`vk-filter-value`), not on the box your Select or Input draws. Not handed: a button's busy state (`loading`): your Button isn't told a Save or a Delete is running; ViewKit still takes no second press.
|
|
102
|
+
|
|
86
103
|
### An adapter over Radix
|
|
87
104
|
|
|
88
105
|
Radix opens a popover from a trigger and reports no close reasons. The adapter answers both. It hands Radix's `Anchor` a virtual ref, an object whose `getBoundingClientRect` measures the package's anchor, whichever of the three it is. It records the reason in the handler Radix calls just before it closes. And it turns the package's two vetoes, `onOutsidePress` and `onEscape`, into `preventDefault` on the event Radix hands that handler.
|
|
@@ -4,7 +4,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
|
|
|
4
4
|
|
|
5
5
|
## The defaults
|
|
6
6
|
|
|
7
|
-
- `CONTROLS` — the components map's defaults, for each control an app leaves out: each control below that fills a slot of the map. An app spreads it first and its own controls after, `components={{ ...CONTROLS, ...own }}`. Handed as it stands, `components={CONTROLS}`, it brings `CONTROL_ATOMS` too, under the provider's `atoms`; a map spread from it brings none. Its `Button` draws ViewKit's buttons (`variant`, `size`) as the kit's Button's kinds and sizes, stands a glyph handed before the words as the Button's icon, and one handed after them as its end icon. Its `AppIcon` draws ViewKit's own glyph of each name (`CONTROL_ICONS`), and nothing for a name it doesn't draw; a provider handed no `icons` draws every meaning through it. Its `Markdown` draws the stored text as it stands, its line breaks kept, with no renderer.
|
|
7
|
+
- `CONTROLS` — the components map's defaults, for each control an app leaves out: each control below that fills a slot of the map. An app spreads it first and its own controls after, `components={{ ...CONTROLS, ...own }}`. Handed as it stands, `components={CONTROLS}`, it brings `CONTROL_ATOMS` too, under the provider's `atoms`; a map spread from it brings none. Its `Button` draws ViewKit's buttons (`variant`, `size`) as the kit's Button's kinds and sizes, stands a glyph handed before the words as the Button's icon, and one handed after them as its end icon. Its `AppIcon` draws ViewKit's own glyph of each name (`CONTROL_ICONS`), and nothing for a name it doesn't draw; a provider handed no `icons` draws every meaning through it. Its `Markdown` draws the stored text as it stands, its line breaks kept, with no renderer. Its `Button`, `Select`, `Menu`, `Popover`, `Input` and `Calendar` are ViewKit's own: named in the provider's `panelControls`, they still draw the panels and the field editors exactly as without it.
|
|
8
8
|
- `CONTROL_ICONS` — ViewKit's default glyphs by meaning, a `ViewsIcons` over every `ICON_NAMES` meaning, each a Tabler icon as the Outright kit draws it (a line of 2 in the colour of its words; the carets filled; `loading` the Spinner): what `CONTROLS.AppIcon` draws, for an app with an `AppIcon` of its own that keeps ViewKit's glyphs, `icons={CONTROL_ICONS}`.
|
|
9
9
|
- `leadingGlyph` — `leadingGlyph(children, glyphs)`: a glyph before a button's words (an svg, or one of the app's icons or its `AppIcon` in `glyphs`) as `icon`, one after them as `iconEnd`, and the words as `label`; a glyph alone, or another component, stays `{ label }`.
|
|
10
10
|
|
|
@@ -83,7 +83,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
|
|
|
83
83
|
|
|
84
84
|
## The bottom Sheet
|
|
85
85
|
|
|
86
|
-
- `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; its height is the `snap` asked (`auto` the `edge` form, as tall as its content; `half` the `blend` form, opening at half; `peek` opening at the small stop; `full`, and none, to the top), a title that isn't words is drawn as handed (its name to screen readers still the label), `description` under the title and `className` on the sheet itself, a prop of the Sheet too.
|
|
86
|
+
- `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; its height is the `snap` asked (`auto` the `edge` form, as tall as its content; `half` the `blend` form, opening at half; `peek` opening at the small stop; `full`, and none, to the top), a title that isn't words is drawn as handed (its name to screen readers still the label), `description` under the title and `className` on the sheet itself, a prop of the Sheet too; its own `data-slot` is drawn on its popup (a phone menu's sheet carries its menu's name).
|
|
87
87
|
- `SheetProps` — its props.
|
|
88
88
|
- `SheetChangeDetails` — why it opened or closed.
|
|
89
89
|
- `SheetForm` — `full`, `floating`, `blend` or `edge`.
|
|
@@ -116,7 +116,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
|
|
|
116
116
|
- `InputGroupButton` — a quiet Button inside the field, an icon-only square when it has no words.
|
|
117
117
|
- `InputGroupSegment` — a segment of a value typed in parts (a day, a month), a spinbutton; `on` draws it on the brand's tint.
|
|
118
118
|
- `InputGroupContext` — the group an Input stands in, for a box that frames its Input as the InputGroup does.
|
|
119
|
-
- `pressGroup` — `pressGroup(event)`: a press on a box holding an Input taken as the InputGroup takes it.
|
|
119
|
+
- `pressGroup` — `pressGroup(event)`: a press on a box holding an Input taken as the InputGroup takes it; where the box holds no Input of ViewKit's (an app's own, bare inside it under `panelControls`), the cursor goes into its typed input.
|
|
120
120
|
- `useAutofill` — a hook: `fill(false)` spreads what turns the browser's and the password managers' filling off on a box; `fill()` adds nothing.
|
|
121
121
|
- `offWord` — `offWord(navigator)`: the word that turns autofill off in a browser, `language` in Chromium and Firefox, `off` in WebKit.
|
|
122
122
|
- `autofillOff` — `autofillOff(word)`: what a box carries with its autofill off.
|
|
@@ -210,7 +210,8 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
|
|
|
210
210
|
- `MenuListRow` — a name and its value as one row standing alone, at the list's own height and inset.
|
|
211
211
|
- `MenuScroll` — what scrolls in a menu's panel: its rows alone, the Scrollbar over them.
|
|
212
212
|
- `MenuEntry` — a row of a menu: an action, a link, a tick, a choice or actions one level in, a pick under a heading, a group, a separator.
|
|
213
|
-
- `MenuChoice` — a choice: its value, its name, its mark and its `
|
|
213
|
+
- `MenuChoice` — a choice: its value, its name, its mark, its `detail` and its public name (`slot`, a `PartSlot`).
|
|
214
|
+
- `PartSlot` — a part's public name (`slot`, its `data-slot`) and which one of its kind it is (`key`, its `data-key`; `index`, its `data-index`): what a `MenuEntry`, a `MenuChoice` and a `PickerItem` carry as `slot`, drawn on the row in every form (VK-988). A `pick` or a `group` names its rows through its choices or entries.
|
|
214
215
|
- `MenuListEntry` — a menu's entry with what a row adds: a `note` under its name, an `end` on its right, a `grip`.
|
|
215
216
|
- `MenuListTile` — one of the few done most, as a tile.
|
|
216
217
|
- `tilesOf` — `tilesOf(entries, allRows?)`: the first four plain actions as tiles when there are three or more, the rest as rows.
|
|
@@ -274,8 +275,9 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
|
|
|
274
275
|
- `ContextMenu` — the same menu at the pointer, from a right-click on what it wraps; on a phone a long press opens the Sheet.
|
|
275
276
|
- `MenuDots` — the ⋯ button: the Button's quiet icon form at 32px, the neutral fill under the pointer and while its menu is open.
|
|
276
277
|
- `useSheetMenus` — whether menus are the Sheet here: on a phone, or in a phone's screen standing on a page.
|
|
277
|
-
- `MapMenu` — the components map's default `Menu` (`CONTROLS.Menu`): ViewKit's menu rows drawn as the Menu at their anchor.
|
|
278
|
-
- `
|
|
278
|
+
- `MapMenu` — the components map's default `Menu` (`CONTROLS.Menu`): ViewKit's menu rows drawn as the Menu at their anchor; a row carrying its own `slot` drawn with it as its name.
|
|
279
|
+
- `MapSelect` — the components map's default `Select` (`CONTROLS.Select`): the map's `ViewsSelectProps` drawn as ViewKit's own Select, its list as wide as its rows need, its rows one level in opened in place. The panels draw ViewKit's Select itself unless your own is opted in; hand or wrap this to have ViewKit's back.
|
|
280
|
+
- `menuEntries` — `menuEntries(items, notNow?, rowSlot?)`: ViewKit's menu rows (`ViewsMenuItem`) as the Menu's own kinds: ticks that close side by side one pick, a group beside its row a level in, a disabled row saying why; handed `rowSlot` (VK-988), each row and choice named by it, `data-key` its item's key.
|
|
279
281
|
|
|
280
282
|
## The Avatar
|
|
281
283
|
|
|
@@ -304,7 +306,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
|
|
|
304
306
|
- `PickerDoing` — what its list is doing: `searching` or `failed`.
|
|
305
307
|
- `PickerLead` — the row that leads, where its field leads several.
|
|
306
308
|
- `PickerBoxSearch` — what a box that is its search is handed: its keys and what it holds.
|
|
307
|
-
- `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count,
|
|
309
|
+
- `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count, the words its search also finds (`also`), and its public name (`slot`, a `PartSlot`, VK-988).
|
|
308
310
|
- `PickerAs` — what a row is drawn as: an Option, a Status, an Avatar, a sign or a mark.
|
|
309
311
|
- `PickerRow` — a row its list shows.
|
|
310
312
|
- `RowsInput` — what its rows are worked out from.
|
|
@@ -355,6 +357,8 @@ A list's panel at its right edge, on a computer, on Base UI's dialog, not modal:
|
|
|
355
357
|
- `PaneState` — what stands in it, by its key, and what opened it last.
|
|
356
358
|
- `PanePress` — a press on an opener, or a close from inside.
|
|
357
359
|
|
|
360
|
+
`CONTROLS.Pane` is the components map's `Pane` (`ViewsPaneProps`, VK-1026): this shell, where a toolbar with `customizeIn: "pane"` opens Customize on a computer, in the list's box it is handed (as tall as that box: give the list a height of its own, as a flex column, or it is as tall as every row), the focus going back to the part's button as it closes from inside. It is internal: `CONTROLS` is the way in.
|
|
361
|
+
|
|
358
362
|
## The toolbar button
|
|
359
363
|
|
|
360
364
|
What stands in a toolbar: the view switcher, View settings, the sort, each filter on the filter bar, a phone's round buttons. It is the Button, on Base UI's Toolbar button inside a toolbar: its ground picks the Button's kind (ghost the quiet, bordered the outline, filled the soft), its size the Button's height, its words whether it is icon-only, so every Button option an app sets reaches it. Its own options are read off the frame around it (`data-toolbar-button-<option>`), a computer's or a phone's, and change as the frame's attributes change; what it holds can say otherwise for itself. Nothing set, it is bordered, 32, its icon and word on a computer, and filled, 36, round, its icon alone on a phone. Its stylesheet is `viewkitjs/views/controls/toolbar-button.css`, after the Button's; its options and looks are `TOOLBAR_BUTTON_LOOKS`. ViewKit's own toolbar draws its `ToolbarButton` atom, which `CONTROL_ATOMS.ToolbarButton` draws with this control, under `components={CONTROLS}` or `atoms={CONTROL_ATOMS}`; an app with neither keeps ViewKit's own button.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Import from `viewkitjs/views/field-row` in a client component, under your `ViewsProvider`: the door opens with the client directive. It holds a record's field row: one field drawn as its label, its value and, on a click, its type's editor in place, and the write path that admits each edit at once, queues one record's writes, settles each on the save's receipt and rolls a failure back. The row knows no entity, only a binding, a value and a commit, so your app builds its record's panel (its sections, its related records) around the rows. It draws with your provider's `Popover`, `Sheet`, `Collapse`, `AppIcon`, icons, `CommandMenu` atom and toast port. The shapes its writes go through (the write target, the receipt, the admission, a value's note, the reconciliation error) are the root door's, described under [A write's target](views.md#a-writes-target), and this door re-exports them. Guide: [editors](../guides/editors.md).
|
|
4
4
|
|
|
5
|
-
- `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
|
|
5
|
+
- `FieldRow` — one field of a record: a glyph (the binding's `icon` through your `AppIcon`, else the type's icon), the label, and the value drawn by the display. Outside a Field rows card (below), below the provider's `desktopQuery` the label stands above the value, which then takes the row's width; at it and above, glyph, label and value share one line. A writable row holding nothing draws your `views.field-row.empty` word, muted; a read-only one draws "—". A writable row's edit button is named by the label, then the value as it is drawn ("Stage, Won"; "Terms, Empty" for a row holding nothing); a row still loading, and a rich text laid over its button, are named by the label alone. A writable row opens its type's editor on a click, through the editor panel and one edit session: a picker (a select, a date, several tags, a relation or a set of records, several values, a place) anchored under the value in your `Popover` on a desktop and in your `Sheet` on a phone, by the provider's `desktopQuery`; a typed value (text, a number, money) in its own box on every width; a name and a range open your `PartsBody` anchored under the value, as a place does; and a single email or domain opens the value list holding one value, anchored, where the provider's `oneValue` says `list` for its type. Escape throws the edit away, unless the provider's `escape` keeps the field's type, on a desktop, where it keeps what was typed and a refusal stays open until a second Escape throws the edit away; a sheet's swipe or ✕ changes nothing. On a desktop the date editor opens with the keyboard in your `DateBody`, as a place's or a long select's does; and with an editor open in its popover, an Escape heard from the page itself or from an element holding the row closes that editor and goes no further, so a drawer around the row hears only the next one. On a desktop, a select gives your Picker the keys however it opened, by Enter, Space or a pointer: the focus in its search, the arrows going on from the value it holds, and Enter picking the one lit (opened by a key, an Enter at once changes nothing). As the editor takes the place of the row's button, the row holds the focus the button held until the editor takes it, so the focus never falls to the page: a dialog around the row that takes such a focus back to itself (Base UI's) leaves a text's or a number's editor open. On a desktop, an editor closed by Tab, Shift-Tab, Escape, Enter or a pick puts the focus back on the row's own button, once its exit has played out and a write still saving has saved, so the next Tab moves on from that row; a press or a focus outside an editor's panel since the close lets that go, so a row opened meanwhile keeps its editor, and an outside press leaves the focus where it put it. A relation saves what its row stores (an id, a ref with the picked record's kind, or a set of records with its lead); a date field has no time and offers No date where it may be empty; several values read a phone typed without its code in the binding's `region`. A value of several parts inside a writable row draws its count as plain text: the row's press opens the editor, which lists them all. A single email, phone, link or domain in a writable row reads as plain text too, with an open action beside the row's button (a mail, a call, the site), and a writable rich text lies over its button, so its links and "Show more" keep their own press while a press on its text edits. A money figure its host reads in another currency than the record's own (it hands the converted figure as `value` and that currency as `opts.currency`) is marked ≈ with the currency it came from, and its editor names it under the record's own amount. A boolean commits from its own control, a `command` field opens its verbs, and a read-only row draws a lock with its reason. A refused commit keeps the editor open with the reason under it, a saved value shows at once and stays until the receipt settles it, and a failed save rolls back with a retry. A text, an email, a phone, a link, a domain, long or rich text edits in place in the row; handed the components map's `TextBody`, the row opens it there, at every width, with the field's own check and the record's country. A number, money or a percent edits in place too; handed `NumberBody`, the row opens it there, at every width, with the field's own check and its limits (a duration keeps the editor's own box).
|
|
6
6
|
- `FieldRowProps` — the row's props: `binding`, `row`, `value` (the display value), `editValue` (the stored value the editor opens on), `writable`, `ready` (false refuses gestures while the record loads), `unread` (the value isn't read yet, drawn blank), `refusal` (why it's read-only here), `onCommit` (admits or refuses a draft, then settles; an editor still open when the page or the row goes is asked as for a press outside, so it can be called inside `pagehide`), `opts` (display options), `menu` (a `command` field's verbs), `meta` (a few words in the value's line), `note` (a sentence under the value, with an optional quote a tap opens) and `kindIcon` (your icon name for a record kind, the glyph a relation's candidates wear; unanswered, they wear the type's glyph).
|
|
7
7
|
- `RowEditor` — the editor a row mounts for its field's type, picked from `ROW_HOSTS`.
|
|
8
8
|
- `ROW_HOSTS` — the host each field type mounts in a row, or `null` for a type the row never opens (a boolean, a derived or system field).
|
|
@@ -51,7 +51,7 @@ The spreadsheet. The door carries no client directive; every rendering file behi
|
|
|
51
51
|
- `deriveGridSelectValues` — the values each select, status and multiselect column offers, given the columns and the rows: column id to values. A status offers its options; a select or multiselect offers its options, then the values the rows hold, each once. Archived values are left out unless `includeArchived` is set, as a filter sets it so a row still holding a retired value can be found.
|
|
52
52
|
- `deriveGridRelationValues` — the relations present in the loaded rows, given the columns and the rows: column id to `ListRelationValue`s, each once, sorted by label, for every relation, user and actor column (an actor's id is its key). It reads the rows, never the candidates a column can link to, so a filter lists only what the table holds.
|
|
53
53
|
- `cellEditBaseline` — the value an edit of a cell starts from: the column's pending value when one is given, else the column's `editAccessor`, else its `accessor`.
|
|
54
|
-
- `cellCopyText` — a cell's value as copied text, given its column
|
|
54
|
+
- `cellCopyText` — a cell's value as copied text, given its column, its baseline (from `cellEditBaseline`) and, optionally, the names language (`conventions.language`) a place's country is named in (English without one), which a CSV export can reuse. Empty for no value; a relation or an actor copies as its name, not its id; a select, status or multiselect copies as its options' labels, not their keys; a place, a name and a range copy as their cells write them; a list copies its items joined by commas, several values of one kind their values, the main one first.
|
|
55
55
|
- `GRID_TITLE_LINK_CLASS` — the class that dresses the row-open text inside a title cell (the element carrying `data-cell-open`) as a link on its own hover: the brand colour and an underline.
|
|
56
56
|
|
|
57
57
|
## The lab
|