viewkitjs 0.27.0 → 0.29.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 +178 -0
- package/MIGRATION.md +123 -5
- package/fields/dist/derived.d.ts +2 -1
- package/fields/dist/derived.js +9 -3
- package/fields/dist/entities.js +41 -3
- package/fields/dist/index.d.ts +1 -1
- package/fields/dist/index.js +1 -1
- package/fields/dist/messages.d.ts +8 -2
- package/fields/dist/messages.js +3 -0
- package/fields/dist/range.d.ts +6 -0
- package/fields/dist/range.js +8 -0
- package/fields/dist/registry.js +11 -1
- package/fields/dist/spec-changes.js +1 -0
- package/fields/dist/types.d.ts +23 -1
- package/fields/docs/guides/derived-fields.md +7 -5
- package/fields/docs/guides/field-types.md +2 -2
- package/fields/docs/guides/the-index.md +1 -1
- package/fields/docs/reference/fields.md +3 -1
- package/fields/docs/reference/types.md +3 -1
- package/fields/skills/viewkit/SKILL.md +1 -1
- package/package.json +2 -1
- package/postgres/dist/definitions/build.js +29 -5
- package/postgres/dist/definitions/label.d.ts +7 -0
- package/postgres/dist/definitions/label.js +9 -1
- package/postgres/dist/definitions/lookup.js +6 -2
- package/postgres/dist/definitions/place.d.ts +6 -3
- package/postgres/dist/definitions/rollup.js +5 -1
- package/postgres/dist/definitions/storage.d.ts +15 -0
- package/postgres/dist/definitions/storage.js +52 -1
- package/postgres/dist/definitions/stored.js +21 -0
- package/postgres/dist/phone.d.ts +13 -1
- package/postgres/dist/phone.js +23 -3
- package/postgres/dist/search-indexes.d.ts +6 -1
- package/postgres/dist/search-indexes.js +71 -25
- package/postgres/dist/search.js +3 -3
- package/postgres/docs/guides/definitions.md +22 -5
- package/postgres/docs/guides/field-map.md +5 -4
- package/postgres/docs/reference/definitions.md +3 -3
- package/postgres/docs/reference/postgres.md +1 -1
- package/views/dist/cells/cell-format.d.ts +3 -1
- package/views/dist/cells/cell-format.js +3 -3
- package/views/dist/cells/cell-values.js +9 -10
- package/views/dist/cells/use-cell-format.d.ts +8 -1
- package/views/dist/cells/use-cell-format.js +13 -2
- package/views/dist/contract.d.ts +218 -5
- package/views/dist/contract.js +233 -1
- package/views/dist/controls/alert/alert.d.ts +46 -0
- package/views/dist/controls/alert/alert.js +11 -0
- package/views/dist/controls/alert/looks.d.ts +4 -0
- package/views/dist/controls/alert/looks.js +19 -0
- package/views/dist/controls/alert/tokens.d.ts +92 -0
- package/views/dist/controls/alert/tokens.js +25 -0
- package/views/dist/controls/alert-dialog/alert-dialog.d.ts +50 -0
- package/views/dist/controls/alert-dialog/alert-dialog.js +67 -0
- package/views/dist/controls/alert-dialog/confirm.d.ts +13 -0
- package/views/dist/controls/alert-dialog/confirm.js +11 -0
- package/views/dist/controls/alert-dialog/looks.d.ts +4 -0
- package/views/dist/controls/alert-dialog/looks.js +17 -0
- package/views/dist/controls/alert-dialog/tokens.d.ts +119 -0
- package/views/dist/controls/alert-dialog/tokens.js +32 -0
- package/views/dist/controls/alert-dialog.css +95 -0
- package/views/dist/controls/alert.css +51 -0
- package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
- package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
- package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
- package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
- package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
- package/views/dist/controls/bulk-bar/looks.js +14 -0
- package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
- package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
- package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
- package/views/dist/controls/bulk-bar/tokens.js +36 -0
- package/views/dist/controls/bulk-bar/words.d.ts +50 -0
- package/views/dist/controls/bulk-bar/words.js +19 -0
- package/views/dist/controls/bulk-bar.css +96 -0
- package/views/dist/controls/button/button.js +3 -1
- package/views/dist/controls/button.css +5 -4
- package/views/dist/controls/checkbox/checkbox.js +3 -1
- package/views/dist/controls/checkbox.css +1 -1
- package/views/dist/controls/choice/tokens.d.ts +79 -0
- package/views/dist/controls/choice/tokens.js +22 -0
- package/views/dist/controls/choice.css +31 -0
- package/views/dist/controls/collapsible/collapsible.d.ts +39 -0
- package/views/dist/controls/collapsible/collapsible.js +18 -0
- package/views/dist/controls/collapsible/looks.d.ts +4 -0
- package/views/dist/controls/collapsible/looks.js +5 -0
- package/views/dist/controls/collapsible/map-collapse.d.ts +2 -0
- package/views/dist/controls/collapsible/map-collapse.js +6 -0
- package/views/dist/controls/collapsible/tokens.d.ts +68 -0
- package/views/dist/controls/collapsible/tokens.js +19 -0
- package/views/dist/controls/collapsible.css +83 -0
- package/views/dist/controls/compound-editor/looks.js +1 -1
- package/views/dist/controls/compound-editor/place-parts.js +5 -1
- package/views/dist/controls/controls.d.ts +19 -0
- package/views/dist/controls/controls.js +17 -0
- package/views/dist/controls/customize/customize.d.ts +125 -0
- package/views/dist/controls/customize/customize.js +243 -0
- package/views/dist/controls/customize/glide.d.ts +10 -0
- package/views/dist/controls/customize/glide.js +55 -0
- package/views/dist/controls/customize/looks.d.ts +13 -0
- package/views/dist/controls/customize/looks.js +11 -0
- package/views/dist/controls/customize/map-customize-body.d.ts +18 -0
- package/views/dist/controls/customize/map-customize-body.js +160 -0
- package/views/dist/controls/customize/rules.d.ts +23 -0
- package/views/dist/controls/customize/rules.js +19 -0
- package/views/dist/controls/customize/tokens.d.ts +40 -0
- package/views/dist/controls/customize/tokens.js +12 -0
- package/views/dist/controls/customize/words.d.ts +58 -0
- package/views/dist/controls/customize/words.js +37 -0
- package/views/dist/controls/customize.css +54 -0
- package/views/dist/controls/date-editor/date-editor.d.ts +2 -1
- package/views/dist/controls/date-editor/looks.js +1 -1
- package/views/dist/controls/date-editor/map-calendar.js +3 -1
- package/views/dist/controls/filter-editor/block.d.ts +31 -0
- package/views/dist/controls/filter-editor/block.js +27 -0
- package/views/dist/controls/filter-editor/filter-editor.d.ts +58 -0
- package/views/dist/controls/filter-editor/filter-editor.js +250 -0
- package/views/dist/controls/filter-editor/how.d.ts +23 -0
- package/views/dist/controls/filter-editor/how.js +14 -0
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +33 -0
- package/views/dist/controls/filter-editor/map-filter-body.js +190 -0
- package/views/dist/controls/filter-editor/map-rules.d.ts +101 -0
- package/views/dist/controls/filter-editor/map-rules.js +304 -0
- package/views/dist/controls/filter-editor/parts.d.ts +46 -0
- package/views/dist/controls/filter-editor/parts.js +75 -0
- package/views/dist/controls/filter-editor/rules.d.ts +142 -0
- package/views/dist/controls/filter-editor/rules.js +201 -0
- package/views/dist/controls/filter-editor/tokens.d.ts +83 -0
- package/views/dist/controls/filter-editor/tokens.js +23 -0
- package/views/dist/controls/filter-editor/words.d.ts +74 -0
- package/views/dist/controls/filter-editor/words.js +46 -0
- package/views/dist/controls/filter-editor.css +142 -0
- package/views/dist/controls/group-editor/group-editor.d.ts +56 -0
- package/views/dist/controls/group-editor/group-editor.js +126 -0
- package/views/dist/controls/group-editor/map-group-body.d.ts +19 -0
- package/views/dist/controls/group-editor/map-group-body.js +106 -0
- package/views/dist/controls/group-editor/rules.d.ts +48 -0
- package/views/dist/controls/group-editor/rules.js +41 -0
- package/views/dist/controls/group-editor/tokens.d.ts +15 -0
- package/views/dist/controls/group-editor/tokens.js +6 -0
- package/views/dist/controls/group-editor/words.d.ts +39 -0
- package/views/dist/controls/group-editor/words.js +21 -0
- package/views/dist/controls/group-editor.css +20 -0
- package/views/dist/controls/index.d.ts +45 -3
- package/views/dist/controls/index.js +44 -3
- package/views/dist/controls/inline-input/looks.js +1 -1
- package/views/dist/controls/input/input.js +10 -4
- package/views/dist/controls/internal/editor-parts.d.ts +8 -1
- package/views/dist/controls/internal/editor-parts.js +5 -0
- package/views/dist/controls/internal/phone.d.ts +5 -4
- package/views/dist/controls/internal/phone.js +7 -7
- package/views/dist/controls/internal/scroll.js +5 -1
- package/views/dist/controls/internal/step-return.d.ts +9 -0
- package/views/dist/controls/internal/step-return.js +27 -0
- package/views/dist/controls/internal/typed-run.d.ts +2 -0
- package/views/dist/controls/internal/typed-run.js +5 -0
- package/views/dist/controls/links-editor/links-editor.d.ts +5 -3
- package/views/dist/controls/links-editor/links-editor.js +38 -17
- package/views/dist/controls/links-editor/map-links-body.js +4 -1
- package/views/dist/controls/links-editor.css +1 -1
- package/views/dist/controls/menu/map-menu.js +2 -2
- package/views/dist/controls/menu-list/menu-list.d.ts +17 -2
- package/views/dist/controls/menu-list/menu-list.js +25 -16
- package/views/dist/controls/modal/looks.d.ts +4 -0
- package/views/dist/controls/modal/looks.js +25 -0
- package/views/dist/controls/modal/modal.d.ts +69 -0
- package/views/dist/controls/modal/modal.js +62 -0
- package/views/dist/controls/modal/tokens.d.ts +192 -0
- package/views/dist/controls/modal/tokens.js +50 -0
- package/views/dist/controls/modal.css +130 -0
- package/views/dist/controls/notice/notice.d.ts +49 -0
- package/views/dist/controls/notice/notice.js +35 -0
- package/views/dist/controls/notice/tokens.d.ts +99 -0
- package/views/dist/controls/notice/tokens.js +27 -0
- package/views/dist/controls/notice.css +100 -0
- package/views/dist/controls/number-editor/looks.js +1 -1
- package/views/dist/controls/number-editor/number-editor.js +1 -1
- package/views/dist/controls/option/option.js +3 -1
- package/views/dist/controls/option.css +1 -1
- package/views/dist/controls/pane/looks.d.ts +4 -0
- package/views/dist/controls/pane/looks.js +11 -0
- package/views/dist/controls/pane/pane.d.ts +67 -0
- package/views/dist/controls/pane/pane.js +99 -0
- package/views/dist/controls/pane/state.d.ts +14 -0
- package/views/dist/controls/pane/state.js +7 -0
- package/views/dist/controls/pane/tokens.d.ts +79 -0
- package/views/dist/controls/pane/tokens.js +22 -0
- package/views/dist/controls/pane.css +104 -0
- package/views/dist/controls/picker/looks.js +1 -1
- package/views/dist/controls/picker/map-picker.d.ts +6 -2
- package/views/dist/controls/picker/map-picker.js +4 -2
- package/views/dist/controls/picker/picker.d.ts +7 -0
- package/views/dist/controls/picker/picker.js +57 -8
- package/views/dist/controls/picker/rows.d.ts +4 -2
- package/views/dist/controls/picker/rows.js +4 -3
- package/views/dist/controls/popover/map-popover.d.ts +1 -1
- package/views/dist/controls/popover/map-popover.js +2 -2
- package/views/dist/controls/popover/popover.js +2 -1
- package/views/dist/controls/popover.css +3 -0
- package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
- package/views/dist/controls/ports-host/map-ports-host.js +43 -0
- package/views/dist/controls/press/tokens.d.ts +8 -0
- package/views/dist/controls/press/tokens.js +4 -0
- package/views/dist/controls/press.css +44 -0
- package/views/dist/controls/quick-filters/looks.d.ts +11 -0
- package/views/dist/controls/quick-filters/looks.js +9 -0
- package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
- package/views/dist/controls/quick-filters/map-quick-filters-body.js +56 -0
- package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
- package/views/dist/controls/quick-filters/quick-filters.js +89 -0
- package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
- package/views/dist/controls/quick-filters/reminder.js +41 -0
- package/views/dist/controls/quick-filters/rules.d.ts +89 -0
- package/views/dist/controls/quick-filters/rules.js +52 -0
- package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
- package/views/dist/controls/quick-filters/tokens.js +30 -0
- package/views/dist/controls/quick-filters/words.d.ts +25 -0
- package/views/dist/controls/quick-filters/words.js +13 -0
- package/views/dist/controls/quick-filters.css +118 -0
- package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
- package/views/dist/controls/sheet/bottom-sheet.js +4 -4
- package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
- package/views/dist/controls/sheet/map-sheet.js +19 -6
- package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
- package/views/dist/controls/sheet/sheet-parts.js +2 -0
- package/views/dist/controls/sort-editor/map-sort-body.d.ts +9 -0
- package/views/dist/controls/sort-editor/map-sort-body.js +81 -0
- package/views/dist/controls/sort-editor/rules.d.ts +48 -0
- package/views/dist/controls/sort-editor/rules.js +24 -0
- package/views/dist/controls/sort-editor/sort-editor.d.ts +58 -0
- package/views/dist/controls/sort-editor/sort-editor.js +180 -0
- package/views/dist/controls/sort-editor/tokens.d.ts +79 -0
- package/views/dist/controls/sort-editor/tokens.js +22 -0
- package/views/dist/controls/sort-editor/words.d.ts +48 -0
- package/views/dist/controls/sort-editor/words.js +25 -0
- package/views/dist/controls/sort-editor.css +96 -0
- package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
- package/views/dist/controls/switch-row/switch-row.js +9 -0
- package/views/dist/controls/switch-row/tokens.d.ts +51 -0
- package/views/dist/controls/switch-row/tokens.js +15 -0
- package/views/dist/controls/switch-row.css +39 -0
- package/views/dist/controls/switch.css +1 -1
- package/views/dist/controls/tag/tag.js +3 -1
- package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
- package/views/dist/controls/tag-field/tag-field.js +19 -0
- package/views/dist/controls/tag-field/tokens.d.ts +7 -0
- package/views/dist/controls/tag-field/tokens.js +4 -0
- package/views/dist/controls/tag-field.css +13 -0
- package/views/dist/controls/text-editor/looks.js +1 -1
- package/views/dist/controls/text-editor/text-editor.js +1 -5
- package/views/dist/controls/toast/toast.d.ts +79 -0
- package/views/dist/controls/toast/toast.js +101 -0
- package/views/dist/controls/toast/tokens.d.ts +100 -0
- package/views/dist/controls/toast/tokens.js +27 -0
- package/views/dist/controls/toast.css +93 -0
- package/views/dist/controls/tokens.js +38 -0
- package/views/dist/controls/toolbar/keys.d.ts +3 -0
- package/views/dist/controls/toolbar/keys.js +11 -0
- package/views/dist/controls/toolbar/looks.d.ts +10 -0
- package/views/dist/controls/toolbar/looks.js +40 -0
- package/views/dist/controls/toolbar/tokens.d.ts +28 -0
- package/views/dist/controls/toolbar/tokens.js +9 -0
- package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
- package/views/dist/controls/toolbar/toolbar.js +370 -0
- package/views/dist/controls/toolbar/words.d.ts +28 -0
- package/views/dist/controls/toolbar/words.js +17 -0
- package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
- package/views/dist/controls/toolbar-button/looks.js +21 -0
- package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
- package/views/dist/controls/toolbar-button/tokens.js +28 -0
- package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
- package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
- package/views/dist/controls/toolbar-button.css +75 -0
- package/views/dist/controls/toolbar.css +65 -0
- package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
- package/views/dist/controls/tooltip/map-tooltip.js +2 -2
- package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
- package/views/dist/controls/tooltip/tooltip.js +2 -2
- package/views/dist/controls/values-editor/looks.js +1 -1
- package/views/dist/controls/values-editor/values-editor.js +7 -1
- package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
- package/views/dist/controls/views-list/map-views-list-body.js +128 -4
- package/views/dist/controls/views-list/rules.d.ts +26 -0
- package/views/dist/controls/views-list/rules.js +63 -0
- package/views/dist/controls/views-list/view-menu.d.ts +84 -0
- package/views/dist/controls/views-list/view-menu.js +201 -0
- package/views/dist/controls/views-list/views-list.d.ts +8 -1
- package/views/dist/controls/views-list/views-list.js +18 -3
- package/views/dist/controls/views-list/words.d.ts +54 -0
- package/views/dist/controls/views-list/words.js +10 -1
- package/views/dist/controls/views-list.css +5 -1
- package/views/dist/display/date.js +5 -5
- package/views/dist/display/format.d.ts +6 -0
- package/views/dist/display/format.js +13 -2
- package/views/dist/display/index.d.ts +1 -1
- package/views/dist/display/index.js +1 -1
- package/views/dist/display/options.d.ts +3 -1
- package/views/dist/display/range.d.ts +2 -1
- package/views/dist/display/range.js +4 -1
- package/views/dist/display/use-display-options.d.ts +3 -0
- package/views/dist/display/use-display-options.js +10 -2
- package/views/dist/display/viewer.d.ts +1 -1
- package/views/dist/display/viewer.js +1 -1
- package/views/dist/editors/DateEditor.js +11 -9
- package/views/dist/editors/relation-panel.js +7 -1
- package/views/dist/editors/relation-picker.d.ts +2 -1
- package/views/dist/editors/relation-picker.js +4 -3
- package/views/dist/editors/relation-source.d.ts +4 -1
- package/views/dist/editors/relation-source.js +5 -2
- package/views/dist/field-row/editors/RowNumberEditor.js +2 -2
- package/views/dist/fields/number-edit.d.ts +6 -0
- package/views/dist/fields/number-edit.js +8 -1
- package/views/dist/grid/chrome/GridCellEditors.js +2 -2
- package/views/dist/grid/chrome/GridColumnDateSection.d.ts +4 -3
- package/views/dist/grid/chrome/GridColumnDateSection.js +4 -4
- package/views/dist/grid/chrome/GridColumnDurationSection.js +2 -2
- package/views/dist/grid/chrome/GridColumnMenu.js +6 -4
- package/views/dist/grid/chrome/GridFooter.js +2 -2
- package/views/dist/grid/chrome/GridHeader.js +2 -1
- package/views/dist/grid/chrome/GridNumberEditor.js +2 -2
- package/views/dist/grid/chrome/GridRowCells.js +2 -1
- package/views/dist/grid/chrome/GridTextEditor.js +2 -2
- package/views/dist/grid/chrome/grid-column-menu-items.js +4 -2
- package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
- package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
- package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
- package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
- package/views/dist/grid/chrome/useGridBandFigures.js +2 -2
- package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
- package/views/dist/grid/chrome/useGridFittedWidths.js +9 -3
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
- package/views/dist/grid/chrome/useGridKeyboard.js +5 -2
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -1
- package/views/dist/grid/core/clipboard-model.js +9 -4
- package/views/dist/grid/core/commit-model.d.ts +7 -0
- package/views/dist/grid/core/commit-model.js +5 -1
- package/views/dist/grid/core/editing-controller.js +10 -2
- package/views/dist/grid/core/editing-model.js +3 -7
- package/views/dist/grid/core/undo-owner.d.ts +6 -0
- package/views/dist/grid/core/undo-owner.js +13 -0
- package/views/dist/grid/core/useGridEditing.d.ts +2 -0
- package/views/dist/grid/core/useGridEditing.js +4 -0
- package/views/dist/grid/grid.css +240 -0
- package/views/dist/grid/looks.d.ts +5 -1
- package/views/dist/grid/looks.js +20 -12
- package/views/dist/grid-tokens.d.ts +109 -0
- package/views/dist/grid-tokens.js +29 -0
- package/views/dist/looks/index.d.ts +10 -0
- package/views/dist/looks/index.js +10 -0
- package/views/dist/looks/pieces.js +20 -0
- package/views/dist/model/column-capabilities.d.ts +2 -0
- package/views/dist/model/column-filters.d.ts +2 -1
- package/views/dist/model/column-from.js +2 -2
- package/views/dist/model/relation-filters.d.ts +2 -0
- package/views/dist/panels/index.d.ts +2 -2
- package/views/dist/panels/index.js +2 -2
- package/views/dist/panels/labels.d.ts +4 -0
- package/views/dist/panels/labels.js +8 -0
- package/views/dist/panels/model.d.ts +14 -1
- package/views/dist/panels/quick/model.d.ts +4 -0
- package/views/dist/panels/react/customize-body.d.ts +12 -5
- package/views/dist/panels/react/customize-body.js +41 -13
- package/views/dist/panels/react/customize.d.ts +8 -1
- package/views/dist/panels/react/customize.js +11 -6
- package/views/dist/panels/react/filter/FilterEditor.js +6 -6
- package/views/dist/panels/react/filter/FilterFieldList.js +10 -2
- package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +8 -2
- package/views/dist/panels/react/filter/PhoneFilterEditor.js +12 -9
- package/views/dist/panels/react/filter/filter-body.d.ts +8 -5
- package/views/dist/panels/react/filter/filter-body.js +21 -7
- package/views/dist/panels/react/filter/filter-part-body.d.ts +4 -1
- package/views/dist/panels/react/filter/filter-part-body.js +3 -1
- package/views/dist/panels/react/panel-sheet.d.ts +5 -1
- package/views/dist/panels/react/panel-sheet.js +6 -2
- package/views/dist/panels/react/panel-step.d.ts +15 -0
- package/views/dist/panels/react/panel-step.js +27 -0
- package/views/dist/panels/react/quick/QuickFiltersPanel.js +1 -0
- package/views/dist/panels/react/sort/SortEditor.d.ts +4 -0
- package/views/dist/panels/react/sort/SortEditor.js +5 -2
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +18 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +93 -4
- package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +15 -5
- package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +16 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +50 -0
- package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +3 -1
- package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +4 -1
- package/views/dist/panels/react/toolbar/ToolbarFilters.js +38 -23
- package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +4 -1
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +2 -2
- package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
- package/views/dist/panels/react/toolbar/ToolbarSortPill.js +15 -6
- package/views/dist/panels/react/toolbar/panel-part.d.ts +5 -1
- package/views/dist/panels/react/toolbar/panel-part.js +2 -2
- package/views/dist/panels/react/toolbar/use-filter-add.d.ts +16 -0
- package/views/dist/panels/react/toolbar/use-filter-add.js +32 -0
- package/views/dist/panels/react/view-footer.d.ts +1 -1
- package/views/dist/panels/react/views-row/ViewPicker.js +25 -4
- package/views/dist/panels/react.d.ts +1 -0
- package/views/dist/panels/react.js +1 -0
- package/views/dist/panels/settings/filter-groups.d.ts +3 -0
- package/views/dist/panels/settings/filter-groups.js +72 -7
- package/views/dist/panels/settings/filters.d.ts +5 -0
- package/views/dist/panels/settings/filters.js +12 -6
- package/views/dist/panels/settings/group-buckets.js +1 -0
- package/views/dist/panels/views-row/model.d.ts +10 -1
- package/views/dist/provider/ViewsProvider.d.ts +7 -1
- package/views/dist/provider/ViewsProvider.js +50 -6
- package/views/dist/provider/components.d.ts +178 -11
- package/views/dist/provider/context.d.ts +6 -0
- package/views/dist/provider/moment.d.ts +6 -0
- package/views/dist/provider/moment.js +10 -0
- package/views/dist/provider/ports.d.ts +18 -6
- package/views/dist/provider/ports.js +2 -1
- package/views/dist/react.d.ts +2 -2
- package/views/dist/react.js +1 -1
- package/views/dist/selection/SelectionBar.d.ts +2 -16
- package/views/dist/selection/SelectionBar.js +4 -1
- package/views/dist/selection/bar-props.d.ts +26 -0
- package/views/dist/selection/bar-props.js +1 -0
- package/views/dist/selection/index.d.ts +1 -1
- package/views/dist/selection/verbs.d.ts +32 -5
- package/views/dist/styles.css +1499 -73
- package/views/dist/styles.unlayered.css +1497 -70
- package/views/docs/contract.md +56 -23
- package/views/docs/controls/alert-dialog.md +37 -0
- package/views/docs/controls/alert.md +30 -0
- package/views/docs/controls/bulk-bar.md +41 -0
- package/views/docs/controls/choice.md +25 -0
- package/views/docs/controls/collapsible.md +22 -0
- package/views/docs/controls/customize.md +17 -0
- package/views/docs/controls/filter-editor.md +28 -0
- package/views/docs/controls/group-editor.md +11 -0
- package/views/docs/controls/modal.md +55 -0
- package/views/docs/controls/notice.md +32 -0
- package/views/docs/controls/pane.md +25 -0
- package/views/docs/controls/popover.md +2 -0
- package/views/docs/controls/press.md +9 -0
- package/views/docs/controls/quick-filters.md +35 -0
- package/views/docs/controls/radio.md +1 -1
- package/views/docs/controls/sort-editor.md +27 -0
- package/views/docs/controls/switch-row.md +18 -0
- package/views/docs/controls/tag-field.md +7 -0
- package/views/docs/controls/toast.md +32 -0
- package/views/docs/controls/toolbar-button.md +31 -0
- package/views/docs/controls/toolbar.md +14 -0
- package/views/docs/guides/atoms.md +2 -2
- package/views/docs/guides/cells.md +3 -3
- package/views/docs/guides/display.md +3 -3
- package/views/docs/guides/looks.md +8 -2
- package/views/docs/guides/ports.md +6 -6
- package/views/docs/guides/selection.md +5 -1
- package/views/docs/guides/the-grid.md +2 -2
- package/views/docs/guides/the-provider.md +21 -2
- package/views/docs/install.md +4 -1
- package/views/docs/reference/cells.md +3 -3
- package/views/docs/reference/controls.md +403 -16
- package/views/docs/reference/display.md +3 -2
- package/views/docs/reference/editors-relation.md +1 -1
- package/views/docs/reference/looks.md +35 -11
- package/views/docs/reference/panels-react.md +11 -10
- package/views/docs/reference/panels.md +9 -7
- package/views/docs/reference/react.md +20 -13
- package/views/docs/reference/selection.md +4 -2
- package/views/docs/reference/views.md +8 -6
- package/views/skills/views/SKILL.md +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Customize's tokens
|
|
2
|
+
|
|
3
|
+
Every name `customize.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Menu list, the Radio, the Input, the Button, the Notice, the Pane and the Sheet it draws with read their own pages' names.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-border` | colour | `border` | the colour defaults' |
|
|
10
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
11
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
12
|
+
| `--vk-ease-in-out` | motion | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` |
|
|
13
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | the colour defaults' |
|
|
14
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
15
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
16
|
+
| `--vk-overlay` | colour | `surface-overlay` | the colour defaults' |
|
|
17
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# The filter editor's tokens
|
|
2
|
+
|
|
3
|
+
Every name `filter-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Select, the Picker, the Menu, the Button, the Input, the Number field, the Date editor, the Popover and the Tooltip it draws with read their own pages' names. A group's field keeps its ground over the group's with the Input's own `--input-ground`, and a set-aside rule's field box takes the warning edge through the Input's own `--input-edge`: both are the Input's machinery.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
10
|
+
| `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
|
|
11
|
+
| `--vk-border-warning` | colour | `border-warning` | `hsl(20 63% 57.5%)` · dark `hsl(22 74% 36%)` |
|
|
12
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
13
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
14
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
15
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
16
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
17
|
+
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
18
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
19
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
20
|
+
| `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
|
|
21
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
22
|
+
| `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
|
|
23
|
+
| `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
24
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
25
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
26
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
27
|
+
| `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
|
|
28
|
+
| `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The group editor's tokens
|
|
2
|
+
|
|
3
|
+
Every name `group-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Menu list, the Picker, the Button and the Sheet it draws with read their own pages' names.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
10
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
11
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# The Modal's tokens
|
|
2
|
+
|
|
3
|
+
Every name `modal.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
`--modal-room` is how far it keeps from the screen's edges, 48 where nothing sets it: a page that draws a screen sets it to keep less.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-layer-drawer` | size | `layer-drawer` | `40` |
|
|
10
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
11
|
+
| `--vk-backdrop-modal-light` | colour | `backdrop-modal-light` | `hsl(214 30% 10% / 0.06)` · dark `hsl(0 0% 0% / 0.1)` |
|
|
12
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
13
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
14
|
+
| `--vk-backdrop-modal-medium` | colour | `backdrop-modal-medium` | `hsl(214 30% 10% / 0.12)` · dark `hsl(0 0% 0% / 0.18)` |
|
|
15
|
+
| `--vk-backdrop-modal-deep` | colour | `backdrop-modal-deep` | `hsl(214 30% 10% / 0.2)` · dark `hsl(0 0% 0% / 0.3)` |
|
|
16
|
+
| `--vk-backdrop-modal-veil-light` | colour | `backdrop-modal-veil-light` | `hsl(0 0% 100% / 0.4)` · dark `hsl(226 10% 10% / 0.4)` |
|
|
17
|
+
| `--vk-backdrop-modal-veil-medium` | colour | `backdrop-modal-veil-medium` | `hsl(0 0% 100% / 0.56)` · dark `hsl(226 10% 10% / 0.56)` |
|
|
18
|
+
| `--vk-backdrop-modal-veil-deep` | colour | `backdrop-modal-veil-deep` | `hsl(0 0% 100% / 0.72)` · dark `hsl(226 10% 10% / 0.72)` |
|
|
19
|
+
| `--vk-blur-xs` | size | `blur-xs` | `4px` |
|
|
20
|
+
| `--vk-blur-sm` | size | `blur-sm` | `8px` |
|
|
21
|
+
| `--vk-blur-md` | size | `blur-md` | `12px` |
|
|
22
|
+
| `--vk-blur-lg` | size | `blur-lg` | `24px` |
|
|
23
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
24
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
25
|
+
| `--vk-container-2xl` | size | `container-2xl` | `672px` |
|
|
26
|
+
| `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
27
|
+
| `--vk-shadow-2xl` | shadow | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` · dark `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
|
|
28
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
29
|
+
| `--vk-container-lg` | size | `container-lg` | `512px` |
|
|
30
|
+
| `--vk-container-4xl` | size | `container-4xl` | `896px` |
|
|
31
|
+
| `--vk-container-5xl` | size | `container-5xl` | `1024px` |
|
|
32
|
+
| `--vk-push-scale` | motion | `push-scale` | `0.94` |
|
|
33
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
34
|
+
| `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
|
|
35
|
+
| `--vk-press-scale` | motion | `press-scale` | `0.98` |
|
|
36
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
37
|
+
| `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
|
|
38
|
+
| `--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)` |
|
|
39
|
+
| `--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)` |
|
|
40
|
+
| `--vk-border-modal-ring` | colour | `border-modal-ring` | `hsl(210 1% 88%)` · dark `hsl(210 2% 19%)` |
|
|
41
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
42
|
+
| `--vk-border-modal-edge` | colour | `border-modal-edge` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
|
|
43
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
44
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
45
|
+
| `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
|
|
46
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
47
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
48
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
49
|
+
| `--vk-radius-sm` | size | `radius-sm` | `5px` |
|
|
50
|
+
| `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
51
|
+
| `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
|
|
52
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
53
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
54
|
+
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
55
|
+
| `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# The Notice's tokens
|
|
2
|
+
|
|
3
|
+
Every name `notice.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
Its actions are any Button, a label's the Button's text kind; its × the quiet Button. Its root marks a phone from the device (`data-vk-phone`), where its actions drop under its sentence.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
10
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
11
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
12
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
13
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
14
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
15
|
+
| `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
|
|
16
|
+
| `--vk-info-subtler` | colour | `background-information-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
|
|
17
|
+
| `--vk-info` | colour | `text-information` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
18
|
+
| `--vk-success-subtler` | colour | `background-success-subtler` | `hsl(143 41% 91%)` · dark `hsl(145 17% 12.5%)` |
|
|
19
|
+
| `--vk-success` | colour | `text-success` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
|
|
20
|
+
| `--vk-warning-subtler` | colour | `background-warning-subtler` | `hsl(19 72% 92.5%)` · dark `hsl(20 29% 13.5%)` |
|
|
21
|
+
| `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` · dark `hsl(25 92% 41%)` |
|
|
22
|
+
| `--vk-danger-subtler` | colour | `background-danger-subtler` | `hsl(6 100% 94%)` · dark `hsl(6 27% 14.5%)` |
|
|
23
|
+
| `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` · dark `hsl(0 81% 58%)` |
|
|
24
|
+
| `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
|
|
25
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
26
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
27
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
28
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
|
|
29
|
+
| `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
|
|
30
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
31
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
32
|
+
| `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# The Pane's tokens
|
|
2
|
+
|
|
3
|
+
Every name `pane.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
8
|
+
| `--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%)` |
|
|
9
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
10
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
11
|
+
| `--vk-layer-drawer` | size | `layer-drawer` | `40` |
|
|
12
|
+
| `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
13
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
14
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
15
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
16
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
17
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
18
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
19
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
20
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
21
|
+
| `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
|
|
22
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
23
|
+
| `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
|
|
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
|
+
| `--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)` |
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Every name the Popover's stylesheet (`popover.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
4
|
|
|
5
|
+
A popup that holds a list (the components map's `chrome` `menu`) is marked `data-popover-chrome="menu"` on the popover itself: the Outright look draws it as its card, and your styles may draw it otherwise.
|
|
6
|
+
|
|
5
7
|
| name | kind | the Outright token | default |
|
|
6
8
|
| ---- | ---- | ------------------ | ------- |
|
|
7
9
|
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# The pressing area's tokens
|
|
2
|
+
|
|
3
|
+
Every name the pressing area's stylesheet (`press.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
A control that packs targets closer than 44px sets `--pressing-room-x` and `--pressing-room-y` on them, half the room between, so two areas never overlap; they are the controls' own machinery, not public. The phone's rule holds where an element is marked `data-vk-phone` and inside it: the Button, the Checkbox, a Tag's remove button and an Option drawn as a link mark themselves on a phone, as the Switch and the Radio do. What it draws: [the pressing area](../reference/controls.md#the-pressing-area).
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# The quick filters' tokens
|
|
2
|
+
|
|
3
|
+
Every name `quick-filters.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Toggle group, the Input, the Avatar, the Status and the Scrollbar it draws with read their own pages' names; so do the Toolbar and the Button its reminder draws with. The reminder's own machinery, `--quick-filters-reminder-bottom`, `--quick-filters-reminder-height` and `--quick-filters-room` (the room it takes at its holder's foot, which a list that scrolls there pads its foot by), and the phone's `--safe-area-bottom`, are its own.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
10
|
+
| `--vk-border-brand` | colour | `border-focused` | the colour defaults' |
|
|
11
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
12
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
13
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
14
|
+
| `--vk-fg` | colour | `text` | the colour defaults' |
|
|
15
|
+
| `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
|
|
16
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | the colour defaults' |
|
|
17
|
+
| `--vk-fg-subtlest` | colour | `text-subtlest` | the colour defaults' |
|
|
18
|
+
| `--vk-focus-offset` | size | `focus-offset` | `2px` |
|
|
19
|
+
| `--vk-focus-width` | size | `focus-width` | `2px` |
|
|
20
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
21
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
22
|
+
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
23
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
24
|
+
| `--vk-layer-sticky` | size | `layer-sticky` | `20` |
|
|
25
|
+
| `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
|
|
26
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
27
|
+
| `--vk-overlay` | colour | `surface-overlay` | the colour defaults' |
|
|
28
|
+
| `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
29
|
+
| `--vk-overlay-card-pressed` | colour | `surface-overlay-card-pressed` | `hsl(220 7% 90%)` · dark `hsl(220 4% 22%)` |
|
|
30
|
+
| `--vk-overlay-hovered` | colour | `surface-overlay-hovered` | `hsl(220 3% 97%)` · dark `hsl(225 7% 15%)` |
|
|
31
|
+
| `--vk-overlay-pressed` | colour | `surface-overlay-pressed` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
|
|
32
|
+
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
33
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
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
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Every name `radio.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
4
|
|
|
5
|
-
The words beside a choice, and a card's edge and ground (`o-choice-*`), are
|
|
5
|
+
The words beside a choice, and a card's edge and ground (`o-choice-*`), are `choice.css`'s ([its page](choice.md)), as the Checkbox's are.
|
|
6
6
|
|
|
7
7
|
| name | kind | the Outright token | default |
|
|
8
8
|
| ---- | ---- | ------------------ | ------- |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# The sort editor's tokens
|
|
2
|
+
|
|
3
|
+
Every name `sort-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Select, the Picker, the Menu, the Button and the Field rows it draws with read their own pages' names.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
|
|
10
|
+
| `--vk-border-warning` | colour | `border-warning` | `hsl(20 63% 57.5%)` · dark `hsl(22 74% 36%)` |
|
|
11
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
12
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
13
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
14
|
+
| `--vk-font-size-base` | size | `text-base` | `16px` |
|
|
15
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
16
|
+
| `--vk-font-size-xs` | size | `text-xs` | `12px` |
|
|
17
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
18
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
19
|
+
| `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
|
|
20
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
21
|
+
| `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
|
|
22
|
+
| `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
|
|
23
|
+
| `--vk-overlay-hovered` | colour | `surface-overlay-hovered` | `hsl(220 3% 97%)` · dark `hsl(225 7% 15%)` |
|
|
24
|
+
| `--vk-radius-md` | size | `radius-md` | `7.5px` |
|
|
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
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
27
|
+
| `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# The SwitchRow's tokens
|
|
2
|
+
|
|
3
|
+
Every name the SwitchRow's and SwitchRows' stylesheet (`switch-row.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
8
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
9
|
+
| `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
|
|
10
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
11
|
+
| `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
|
|
12
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
13
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
14
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
15
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
16
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
17
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
18
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# The TagField's tokens
|
|
2
|
+
|
|
3
|
+
Every name the TagField's stylesheet (`tag-field.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# The Toast's tokens
|
|
2
|
+
|
|
3
|
+
Every name `toast.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
`--vk-toast-duration` is how long a toast stays: its script reads it off the toast's viewport (`--toast-wait`), else off the page's root, and waits four seconds where nothing declares it.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-layer-popup` | size | `layer-popup` | `50` |
|
|
10
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
11
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
12
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
13
|
+
| `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
|
|
14
|
+
| `--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)` |
|
|
15
|
+
| `--vk-font-size-sm` | size | `text-sm` | `14px` |
|
|
16
|
+
| `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
|
|
17
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
18
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
19
|
+
| `--vk-focus-width` | size | `focus-width` | `2px` |
|
|
20
|
+
| `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
|
|
21
|
+
| `--vk-focus-offset` | size | `focus-offset` | `2px` |
|
|
22
|
+
| `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
|
|
23
|
+
| `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
|
|
24
|
+
| `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
|
|
25
|
+
| `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` · dark `hsl(0 81% 58%)` |
|
|
26
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
27
|
+
| `--vk-info` | colour | `text-information` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
28
|
+
| `--vk-success` | colour | `text-success` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
|
|
29
|
+
| `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` · dark `hsl(25 92% 41%)` |
|
|
30
|
+
| `--vk-press-scale` | motion | `press-scale` | `0.98` |
|
|
31
|
+
| `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
|
|
32
|
+
| `--vk-toast-duration` | motion | `toast-duration` | `4000ms` |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# The toolbar button's tokens
|
|
2
|
+
|
|
3
|
+
Every name the toolbar button's stylesheet (`toolbar-button.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. It is the Button, so the Button's names ([its page](button.md)) reach it too. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
| name | kind | the Outright token | default |
|
|
6
|
+
| ---- | ---- | ------------------ | ------- |
|
|
7
|
+
| `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
|
|
8
|
+
| `--vk-radius-sm` | size | `radius-sm` | `5px` |
|
|
9
|
+
| `--vk-radius-md` | size | `radius-md` | `7.5px` |
|
|
10
|
+
| `--vk-radius-lg` | size | `radius-lg` | `10px` |
|
|
11
|
+
| `--vk-radius-xl` | size | `radius-xl` | `15px` |
|
|
12
|
+
| `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
|
|
13
|
+
| `--vk-radius-full` | size | `radius-full` | `9999px` |
|
|
14
|
+
| `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
|
|
15
|
+
| `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
|
|
16
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
17
|
+
| `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
|
|
18
|
+
| `--vk-dot-size` | size | `dot-size` | `6px` |
|
|
19
|
+
| `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
20
|
+
| `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
|
|
21
|
+
| `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
22
|
+
| `--vk-selected` | colour | `surface-selected` | `hsl(0 0% 94.5%)` · dark `hsl(225 7% 15%)` |
|
|
23
|
+
| `--vk-fg-selected` | colour | `text-selected` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
|
|
24
|
+
| `--vk-raised-selected` | colour | `surface-raised-selected` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
25
|
+
| `--vk-sunken-selected` | colour | `surface-sunken-selected` | `hsl(0 0% 91%)` · dark `hsl(225 7% 11%)` |
|
|
26
|
+
| `--vk-brand-subtlest` | colour | `background-brand-subtlest` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
|
|
27
|
+
| `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
|
|
28
|
+
| `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
|
|
29
|
+
| `--vk-border-warning` | colour | `border-warning` | `hsl(20 63% 57.5%)` · dark `hsl(22 74% 36%)` |
|
|
30
|
+
| `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
|
|
31
|
+
| `--vk-warning-subtlest` | colour | `background-warning-subtlest` | `hsl(19 74% 97.5%)` · dark `hsl(19 13% 10%)` |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# The Toolbar's tokens
|
|
2
|
+
|
|
3
|
+
Every name `toolbar.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
|
|
4
|
+
|
|
5
|
+
The Toolbar draws nothing of its own but its lines, the room between what each holds, and its separators: the toolbar buttons, the Buttons, the Toggle group, the Input and the Menu it holds read their own pages' names. Its own machinery, `--toolbar-spacing` (how far apart what a line holds stands, in spacing steps) and `--toolbar-inset` (the room at each side of each line, `0` unless what holds it gives one), are set by what holds it.
|
|
6
|
+
|
|
7
|
+
| name | kind | the Outright token | default |
|
|
8
|
+
| ---- | ---- | ------------------ | ------- |
|
|
9
|
+
| `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
|
|
10
|
+
| `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
|
|
11
|
+
| `--vk-border-width` | size | `border-width` | `1px` |
|
|
12
|
+
| `--vk-duration-base` | motion | `duration-base` | `200ms` |
|
|
13
|
+
| `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
|
|
14
|
+
| `--vk-spacing` | size | `spacing` | `4px` |
|
|
@@ -198,13 +198,13 @@ In your app it is your own Avatar component, its tone read from the label. What
|
|
|
198
198
|
|
|
199
199
|
## A command cell's verbs
|
|
200
200
|
|
|
201
|
-
A `command` field offers verbs instead of an editor: moving a deal to Lost asks for a reason, so the cell opens your verbs rather than a picker. The cell draws the trigger (the value with a chevron, or a chevron beside a value that is already a control, such as a chip or a link) and hands it to `CommandMenu` with `trigger`, `items`, `align` and `label`, the field's name. Each item has a `label`, an optional `icon`, its `onClick`, `destructive` and `disabled` flags, and a `disabledReason` for a disabled one; while the record loads, every verb arrives disabled, with your reason or else "Wait for current data before editing" (`views.menus.loading`). The default names your components map's `Menu` after the field ("Actions for Stage"), anchors it on the trigger and keeps the click off the row, so opening the verbs neither selects the cell nor opens the row. Swap it when your app has its own action menu, or a sheet on a phone. [The contract](../contract.md#a-command-field) says how a command field is declared.
|
|
201
|
+
A `command` field offers verbs instead of an editor: moving a deal to Lost asks for a reason, so the cell opens your verbs rather than a picker. The cell draws the trigger (the value with a chevron, a chevron alone where the value is empty, or a chevron beside a value that is already a control, such as a record's chip or a link; a member's chip is drawn inside the trigger) and hands it to `CommandMenu` with `trigger`, `items`, `align` and `label`, the field's name. Each item has a `label`, an optional `icon`, its `onClick`, `destructive` and `disabled` flags, and a `disabledReason` for a disabled one; while the record loads, every verb arrives disabled, with your reason or else "Wait for current data before editing" (`views.menus.loading`). The default names your components map's `Menu` after the field ("Actions for Stage"), anchors it on the trigger and keeps the click off the row, so opening the verbs neither selects the cell nor opens the row. Swap it when your app has its own action menu, or a sheet on a phone. [The contract](../contract.md#a-command-field) says how a command field is declared.
|
|
202
202
|
|
|
203
203
|
## The row's menu
|
|
204
204
|
|
|
205
205
|
`RowMenu` wraps a section's rows: the grid mounts it once around each section's rows' container, never around each row, and aims it at the row a press or a right-click came from. Its props are that row's, set in the same event your menu opens on; `children` is the rows' container, which takes the props and `ref` your trigger hands it (a `Slot`, `asChild`) and passes them to its element; a right-click on no row arrives already prevented and opens nothing. The rendering builds its `items` (the clicked cell's clipboard rows, Select, your verbs for the row), and the menu adds an Open page row before them when the row has a page (`openHref`, opened in a new tab) and a Delete row after them when the row can be deleted (`onDelete`). Its props are `ViewsRowMenuProps`; each item is a `ViewsRowMenuItem`, a rule (`{ separator: true }`) or a labelled row with its `onClick`, optional `icon`, `destructive`, `disabled` with its `disabledReason` (the grid's own Cut, Paste and Clear carry one whenever they are disabled), and a `shortcut` hint the menu draws but never binds. The default names your `Menu` "Row actions" (`views.menus.row-menu`).
|
|
206
206
|
|
|
207
|
-
The default opens your `Menu` at the pointer on a right-click, or from the row's ⋯ (`data-slot="vk-grid-row-more"`). On a touch screen a long-press opens nothing: the ⋯ is the way in there. Its Delete asks first, through the `confirm` port, with the message `views.menus.row-delete-confirm` and the row's `deleteLabel` as the `subject`; an app that hands no `confirm` gets the browser's own, and a confirm that rejects or throws counts as no. A delete that then rejects leaves the row where it was and says so through the toast port's `error`, with `views.menus.row-delete-failed`. [Ports](ports.md) covers `confirm` and the toast.
|
|
207
|
+
The default opens your `Menu` at the pointer on a right-click, or from the row's ⋯ (`data-slot="vk-grid-row-more"`). On a touch screen a long-press opens nothing: the ⋯ is the way in there. Its Delete asks first, through the `confirm` port, with the message `views.menus.row-delete-confirm` and the row's `deleteLabel` as the `subject`; an app that hands no `confirm` gets the browser's own where your components map holds no `PortsHost`, ViewKit's alert dialog where it does (`CONTROLS`), and a confirm that rejects or throws counts as no. A delete that then rejects leaves the row where it was and says so through the toast port's `error`, with `views.menus.row-delete-failed`. [Ports](ports.md) covers `confirm` and the toast.
|
|
208
208
|
|
|
209
209
|
Swap it for a menu of your own, or for a long-press that selects: `onToggleSelect`, there from the first render wherever rows can be selected, flips the selection of the row last pressed. With `GridTable`'s `phonePicking` on, a call that answers a long press still held ticks the pressed row once with the grid's own, never flipping it back; with no press held it flips the row last pressed, as without the option. The default doesn't use it. The default opens your `Menu` at the pointer, so make your `Menu` a popover: one drawn in the page flow would draw after the section's rows.
|
|
210
210
|
|
|
@@ -71,10 +71,10 @@ assert.equal(columns.stage.command, true); // a command field's column
|
|
|
71
71
|
|
|
72
72
|
What it does with a column depends on what the column is:
|
|
73
73
|
|
|
74
|
-
- An empty value draws nothing, `null`, so a card can leave the line out. A boolean draws its off state instead, which is what a person clicks to turn it on.
|
|
74
|
+
- An empty value draws nothing, `null`, so a card can leave the line out. A boolean draws its off state instead, which is what a person clicks to turn it on, and a `command` column handed `commandItems` draws its chevron alone, so its verbs are still one click away.
|
|
75
75
|
- A `title` column draws the row's title cell, the hotspot that opens the row (`data-cell-open`), with the column's `indicator` beside the name. A title whose field is a number, a percent, a currency, a date, a datetime or a name draws through that field, so a dated identity reads as a date; any other title draws as its text.
|
|
76
76
|
- A relation chip goes where your `RelationLink` atom says, the app-wide answer for each kind of record. `onOpenRelation` overrides it for one surface and is handed the chip that was pressed, which matters when a cell holds several.
|
|
77
|
-
- A `command` column handed `commandItems` opens your `CommandMenu` atom: the verbs for this row in place of an editor. The trigger is the value itself, or a chevron beside it where the value is a control of its own (a relation, a
|
|
77
|
+
- A `command` column handed `commandItems` opens your `CommandMenu` atom: the verbs for this row in place of an editor. The trigger is the value itself, or a chevron beside it where the value is a control of its own (a relation, a link, an email, a phone or a domain). A member is no control there: its chip is drawn inert inside the trigger, so a click on the name opens the verbs, not the member. Without `commandItems` the cell is a plain value. [A command field](../contract.md#a-command-field) in the contract says where the verbs come from.
|
|
78
78
|
- Any other column draws its field's display, in the code `resolveRowCurrency` finds for a money value. A money figure the column reads converted from the row's own currency (`convertedFromOf`) comes back marked: ≈ before it and a title naming the currency it came from (`ConvertedFigure`).
|
|
79
79
|
|
|
80
80
|
```tsx
|
|
@@ -135,7 +135,7 @@ function DealCards({ items }: { items: Deal[] }) {
|
|
|
135
135
|
|
|
136
136
|
## The column-shaped formatters
|
|
137
137
|
|
|
138
|
-
A line that is not a cell, such as a total under the cards, must still print the way the cells do. `formatNumber(value, column, options)` prints a number as the column prints its cells, and `formatDate(value, column, dateStyle, withTime, viewer)` prints a date as the column does, the two overrides winning over the column's own format. Both are plain functions that read no state; the viewer (the locale, time zone and wording) is yours to hand in. Inside a component, `useCellFormat()` reads it from the provider, with the provider's `presentation`.
|
|
138
|
+
A line that is not a cell, such as a total under the cards, must still print the way the cells do. `formatNumber(value, column, options)` prints a number as the column prints its cells, and `formatDate(value, column, dateStyle, withTime, viewer, presentation?)` prints a date as the column does, the two overrides winning over the column's own format; hand it your `presentation` too, or it prints with the package's defaults. Both are plain functions that read no state; the viewer (the locale, time zone and wording) is yours to hand in. Inside a component, `useCellFormat()` reads it from the provider, with the provider's `presentation`.
|
|
139
139
|
|
|
140
140
|
```tsx
|
|
141
141
|
import { formatDate, formatNumber, resolveRowCurrency, useCellFormat } from "viewkitjs/views/cells";
|
|
@@ -73,7 +73,7 @@ assert.equal(DISPLAY_CORES.date, DISPLAY_CORES.datetime);
|
|
|
73
73
|
- **number**: plain or a duration, in tabular figures. An integer field draws whole numbers whatever the reader's decimals. A `suffix` trails in the small subtle unit style. A `signed` format shows the sign and tints a positive figure as a success, unless its `signedTone` is `neutral`; a field's `bands` tint the figure by the band it falls in, ahead of the sign. A value that is not a number draws as its own text.
|
|
74
74
|
- **currency**: in the field's fixed code, or the code you hand in `currency` (the row's own, for a field whose code comes from the row), which wins. Two decimals unless the field says otherwise or holds whole amounts.
|
|
75
75
|
- **percent**: stored as 0 to 100 and drawn as it is, never multiplied, with its `%` in the unit style. The field's `format.display`, or the reader's `percentDisplay`, adds a bar or a ring.
|
|
76
|
-
- **date** and **datetime**: in the reader's `dateStyle`, else the field's, else `short`; `withTime`
|
|
76
|
+
- **date** and **datetime**: in the reader's `dateStyle`, else the field's, else `short`; an instant shows its time unless `withTime` says `false`, the options' answer winning over the field's (`timeShown`), and only an instant has a time. Hovering for a second shows the full date (and time, for an instant) through your components map's `Tooltip`, so a relative "3d ago" can be pinned to a moment. A value that doesn't parse draws as its own text.
|
|
77
77
|
- **boolean**: four looks, the field's `format.style`. `checkbox` (the default) draws the `TickBox` atom, and `icon` your `booleanIcon(on)`; either becomes a real switch only when you hand `onToggle`, and is a plain glyph otherwise. `text` draws the option's label for the value, or the package's words. `marker` draws only when true, as the `StatusMarker` atom with your `marker` words, `markerReason` and `onResolve`.
|
|
78
78
|
- **select**, **status** and **multiselect**: a select is a category and draws the `Tag` atom in its colour (a reader's `optionColors` first, then the option's declared colour, then one derived from the value). A status is a state and draws the `StatusBadge` atom in its option's slot. A multiselect draws a tag per value, through the several-values layout. A value no option names draws as the raw value, muted, with a hover saying it is not an option, unless you hand a `labelFallback`; an open (`custom-values`) vocabulary's values are their own labels. An option's `icon` is drawn through your `AppIcon`.
|
|
79
79
|
- **relation** and **user**: a chip, the record's avatar when it has one, else your `entityIcon(kind)`, else the relation glyph, then its label, then, on a `many` relation that declares `links`, the link's roles, drawn by the `RelationRoles` atom ([atoms](atoms.md)). Where it goes is yours (`relationWrap`); without one the chip is inert. Several draw through the several-values layout, the lead link first. A user is drawn as a relation to a member, so the two never differ.
|
|
@@ -82,7 +82,7 @@ assert.equal(DISPLAY_CORES.date, DISPLAY_CORES.datetime);
|
|
|
82
82
|
- **name**: the full name as written, else the given and family names, else `nameFallback`, else nothing.
|
|
83
83
|
- **actor**: a chip like a relation's that opens nothing, since an actor records who did something rather than pointing at a record: a member's avatar when your value carries an `avatarUrl` beside it, and your glyph for an automation, an API key or the system.
|
|
84
84
|
- **rich_text**: the first line with words in it, on one line; with `wrap: true`, its plain lines, clamped; with `wrap: "full"`, your components map's `Markdown`, folded past 160px behind Show more.
|
|
85
|
-
- **range**: its two ends as text ("11–50", "10,001+", "up to 50"), then its unit (`%`, its currency code or its suffix) and its period ("/mo").
|
|
85
|
+
- **range**: its two ends as text ("11–50", "10,001+", "up to 50"), then its unit (`%`, its currency code or its suffix) and its period ("/mo"); a value whose ends are exactly one of the field's `presets` reads as that preset's label alone, the whole value on hover.
|
|
86
86
|
- **lookup** and **formula**: as the field their result is. A **rollup** grouped by an option draws a segmented bar beside its headline, and one grouped by time a sparkline, the current bucket faded.
|
|
87
87
|
|
|
88
88
|
A value that holds several, of any of these types, uses `MultiValueCell`: as many as fit on one line, or three when wrapped, then a `+N` count that opens all of them in a list. It is exported for your own cells; [the display reference](../reference/display.md) has its props.
|
|
@@ -129,7 +129,7 @@ const openInDrawer =
|
|
|
129
129
|
|
|
130
130
|
A footer total, a column menu's live preview or a server-rendered email need the value as a string, not an element. `formatDateValue` and `formatNumberValue` are those strings, the same ones the cells draw, and the door carries no client directive, so a server module imports them as they are.
|
|
131
131
|
|
|
132
|
-
Both read a viewer: who is reading, in which locale and time zone, at what moment. `viewerFrom(conventions, messages?, now?)` builds one from the conventions you hand fields: their locale, names language, zone, region and wording, with the package's words unless you hand a resolver and the current moment unless you hand one.
|
|
132
|
+
Both read a viewer: who is reading, in which locale and time zone, at what moment. `viewerFrom(conventions, messages?, now?)` builds one from the conventions you hand fields: their locale, names language, zone, region and wording, with the package's words unless you hand a resolver and the current moment unless you hand one. Hand `null` for a viewer with no moment yet: its relative dates draw in full, as the provider's do before it has read the clock ([the provider](the-provider.md#the-moment)).
|
|
133
133
|
|
|
134
134
|
```ts
|
|
135
135
|
import { formatDateValue, formatNumberValue, viewerFrom } from "viewkitjs/views/display";
|
|
@@ -4,7 +4,7 @@ A piece's look is what an app sets once for every copy of the piece it draws: th
|
|
|
4
4
|
|
|
5
5
|
## Options and looks
|
|
6
6
|
|
|
7
|
-
An option is a closed set of values with a default: the grid's `columns` is `all`, `none` or `pinned`. A look is a named set of picks, one value for every option: the grid's `attio` look
|
|
7
|
+
An option is a closed set of values with a default: the grid's `columns` is `all`, `none` or `pinned`. A look is a named set of picks, one value for every option: the grid's `attio` look is Attio's table, its `portal` look ViewKit's own grid as the portal draws it. Nothing picked wears each option's default, the Outright look's (My preset's), which no look matches whole. The ids are public and stay as they are, since an app saves picks by them; the words beside them (`name`) may change.
|
|
8
8
|
|
|
9
9
|
## Picking the grid's look
|
|
10
10
|
|
|
@@ -22,7 +22,13 @@ console.log(frame["data-grid-columns"], props.verticalBorders, props.fillWidth);
|
|
|
22
22
|
|
|
23
23
|
A pick its option doesn't have (one saved by an older version, say) wears the option's default, so saved picks never break a grid. Where the picks live on the page rather than in your state, `gridLookWornOf(element)` reads them back from the closest frame.
|
|
24
24
|
|
|
25
|
-
Fourteen of the grid's options are read by its code. Eleven become its props through `gridLookProps`; three you wire yourself, as the Showcase does: `more` (`"pages"`: hand `GridTable` its `pages`), `figures` (`"value"`: the footer's figure words through your provider's messages) and `wait` (`"kept"`: hand the components map a `RowsWait`). The other eleven (the header's words, the rows' lines, the pinned edge, picked rows and cells, the cells' frames, names and phones) are its look stylesheet's alone
|
|
25
|
+
Fourteen of the grid's options are read by its code. Eleven become its props through `gridLookProps`; three you wire yourself, as the Showcase does: `more` (`"pages"`: hand `GridTable` its `pages`), `figures` (`"value"`: the footer's figure words through your provider's messages) and `wait` (`"kept"`: hand the components map a `RowsWait`). The other eleven (the header's words, the rows' lines, the pinned edge, picked rows and cells, the cells' frames, names and phones) are its look stylesheet's alone: `viewkitjs/views/grid.css`, already inside the ready stylesheet (`viewkitjs/views/styles.css`). An app that imports ViewKit's stylesheets one by one adds it after ViewKit's own classes:
|
|
26
|
+
|
|
27
|
+
```css
|
|
28
|
+
@import "viewkitjs/views/grid.css";
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
It reads the grid's look tokens (`VK_GRID_TOKENS`), which the ready stylesheet declares at the Outright look's values; an app on its own tokens declares each once. A grid with no frame round it wears each option's default.
|
|
26
32
|
|
|
27
33
|
## A piece of your own
|
|
28
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ports
|
|
2
2
|
|
|
3
|
-
A port is a runtime service your app hands the provider: the narrowest surface the rendering needs, named for what it does, so your own toast library, haptics, clipboard helper, storage and dialog each map onto it in a few lines. There are five: `toast`, `haptics`, `clipboard`, `viewPrefs` and
|
|
3
|
+
A port is a runtime service your app hands the provider: the narrowest surface the rendering needs, named for what it does, so your own toast library, haptics, clipboard helper, storage and dialog each map onto it in a few lines. There are five: `toast`, `haptics`, `clipboard`, `viewPrefs` and `confirm`; `toast` and `confirm` are optional, and an app that spreads `CONTROLS` and hands neither reports in ViewKit's Toast and asks in ViewKit's alert dialog (`CONTROLS.PortsHost`). This page covers what calls each and when, the do-nothing ports to start with, and a port over each of your services.
|
|
4
4
|
|
|
5
5
|
## Start with nothing
|
|
6
6
|
|
|
@@ -47,7 +47,7 @@ declare function openConfirmDialog(options: {
|
|
|
47
47
|
|
|
48
48
|
## `toast`
|
|
49
49
|
|
|
50
|
-
`success(message)`, `error(message)`, `info(message)` and `warning(message, { description })`, each handed a sentence the package has already worded through your `messages`.
|
|
50
|
+
`success(message, { undo })`, `error(message)`, `info(message)` and `warning(message, { description })`, each handed a sentence the package has already worded through your `messages`. `undo`, where handed, takes the act back (a view's delete in `CONTROLS.ViewsListBody`): offer it as your toast's Undo, or ignore it and the report shows without one. Hand no `toast` and, with `CONTROLS` spread, ViewKit's Toast says them, Undo included; without `CONTROLS`, nothing does.
|
|
51
51
|
|
|
52
52
|
The grid speaks through two of them:
|
|
53
53
|
|
|
@@ -193,9 +193,9 @@ unsubscribe();
|
|
|
193
193
|
|
|
194
194
|
## `confirm`
|
|
195
195
|
|
|
196
|
-
`confirm(request)` asks a question before an act and resolves to whether the person said yes. The request carries the question as `message`, the yes button's words as `confirmLabel`, what the act is done to as `subject` when the host names it, and `destructive` when the act removes something, so your dialog draws its destructive look.
|
|
196
|
+
`confirm(request)` asks a question before an act and resolves to whether the person said yes. The request carries the question as `message`, the yes button's words as `confirmLabel`, what the act is done to as `subject` when the host names it, one line on what follows as `detail` where there is one, and `destructive` when the act removes something, so your dialog draws its destructive look.
|
|
197
197
|
|
|
198
|
-
A row's Delete asks it. The default row menu's Delete words the question with `views.menus.row-delete-confirm` ("Delete this row?") and the button with `views.menus.row-delete`, and hands the `deleteLabel` you give the grid, when you give one, as `subject`. A yes runs your delete; a rejection or a throw from your port counts as no, and nothing is deleted.
|
|
198
|
+
A row's Delete asks it, and so does a view's Delete in `CONTROLS.ViewsListBody` on a computer ("Delete Q3?", its line saying who the view goes for and that the records stay). The default row menu's Delete words the question with `views.menus.row-delete-confirm` ("Delete this row?") and the button with `views.menus.row-delete`, and hands the `deleteLabel` you give the grid, when you give one, as `subject`. A yes runs your delete; a rejection or a throw from your port counts as no, and nothing is deleted.
|
|
199
199
|
|
|
200
200
|
```tsx
|
|
201
201
|
const confirm: ViewsConfirmPort = ({ message, confirmLabel, subject, destructive }) =>
|
|
@@ -207,7 +207,7 @@ const confirm: ViewsConfirmPort = ({ message, confirmLabel, subject, destructive
|
|
|
207
207
|
});
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
`confirm`
|
|
210
|
+
Hand no `confirm` and, with `CONTROLS` spread, the provider asks in ViewKit's alert dialog (`CONTROLS.PortsHost`, mounted once in the browser); without `CONTROLS`, with the browser's own confirm dialog, showing `message`. Neither is reached by a server render. Two providers that both spread `CONTROLS` each mount their own Toast and dialog: mount one provider.
|
|
211
211
|
|
|
212
212
|
## All five together
|
|
213
213
|
|
|
@@ -221,7 +221,7 @@ assert.deepEqual(Object.keys(viewsPorts), ["toast", "haptics", "clipboard", "vie
|
|
|
221
221
|
|
|
222
222
|
## What a view reads
|
|
223
223
|
|
|
224
|
-
Inside a view, or an atom or component of your own beneath the provider, `useViews().ports` is a `ViewsResolvedPorts`: the ports you handed in, with `confirm` always
|
|
224
|
+
Inside a view, or an atom or component of your own beneath the provider, `useViews().ports` is a `ViewsResolvedPorts`: the ports you handed in, with `toast` and `confirm` always there: yours, ViewKit's through `PortsHost`, or a toast that draws nothing and the browser's confirm. Your own code can ask the same question the package does, without checking whether a dialog was handed in. The package counts a rejection as no; in your own code that choice is yours to make:
|
|
225
225
|
|
|
226
226
|
```tsx
|
|
227
227
|
export function ArchiveButton({ onArchive }: { onArchive: () => Promise<void> }) {
|
|
@@ -205,7 +205,7 @@ What a selection lets a person do (move twelve deals to a stage, export them, de
|
|
|
205
205
|
|
|
206
206
|
- `action`: a button, with its `label`, an optional `icon` and `onClick`; `destructive` paints it in the danger colour;
|
|
207
207
|
- `group`: a button opening a small menu of `items`, each an action;
|
|
208
|
-
- `options`: one field set on every selected row, its `options` drawn as the badges a cell shows (a `PickerOption`
|
|
208
|
+
- `options`: one field set on every selected row, its `options` drawn as the badges a cell shows (a `PickerOption`, or a `ViewsPickerItem` with a person's `avatarUrl` and `kind`), `onSelect` handed the value picked.
|
|
209
209
|
|
|
210
210
|
Any of the three can be `disabled`, and say why with `disabledReason`, in the person's words: More's rows hand it to your `Menu`, the bar's own button shows it in your `Tooltip`, and the phone's sheet draws it under the row. A group's rows that give no reason of their own carry the group's.
|
|
211
211
|
|
|
@@ -238,6 +238,10 @@ function DealsBar({ sel, batch }: { sel: UseListSelectionResult; batch?: ListBat
|
|
|
238
238
|
|
|
239
239
|
Where the bar sits is yours, set once on the provider's `selectionBar`: its `bottom`, `zIndex` and `className` on each form, a `phoneQuery` when your shell's phone layout starts at another width, and a `chip: "button"` when your `Button` should draw the count chip (an app with a bottom nav lifts the pill above it). The phone's sheet is the `SelectionSheet` atom: its default is your `Sheet` holding plain rows, and you swap in your own action sheet through the provider's `atoms`.
|
|
240
240
|
|
|
241
|
+
### The Outright bulk bar
|
|
242
|
+
|
|
243
|
+
An app that spreads `CONTROLS` gets the Outright bulk bar wherever it calls `SelectionBar` (`CONTROLS.SelectionBar`): the same call, the same verbs. It stands in the box that holds it (the grid's frame), at its foot, centred, rather than at the screen's; on a phone it is the tray. It reads what ViewKit's own bar doesn't, each optional: a `noun` (`{ one: "deal", other: "deals" }`: "3 deals selected"), `deleteLine` (the line under its question), `more` on a verb (kept off the bar, in More), and on an options verb `value` (what every picked row holds, which it marks), `empty` with `onEmpty` (an empty row that clears the field) and `search`. Its Delete asks first, in ViewKit's alert dialog, then calls your `onDelete`, so yours asks nothing of its own. A press (`onClick`, `onSelect`, `onEmpty`, `onDelete`) may hand back `{ words, undo }`, a `SelectionDone`, or a promise of one: the bar says it in its own Toast, with Undo. The provider's `selectionBar` placement, `phoneQuery` and `chip` are ViewKit's own bar's. An app that wants ViewKit's own bar while spreading `CONTROLS` leaves the slot out: `{ ...CONTROLS, SelectionBar: undefined }`.
|
|
244
|
+
|
|
241
245
|
## The grid takes a selection
|
|
242
246
|
|
|
243
247
|
`GridTable` wires the selection itself when you pass `selection`, a `ListSelectionConfig`: its checkbox rail (Shift on a checkbox extends the range), the drag down the lane (rows in collapsed groups left out), a plain click toggling a row while rows are selected, Escape, and a group's checkbox. One rule differs from a plain list: in the grid a modifier click on a cell is a cell-range gesture, as in a spreadsheet (Shift extends the active range, Cmd or Ctrl adds the cell), so rows are picked from the rail. You give it:
|