viewkitjs 0.35.0 → 0.36.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 +63 -0
- package/MIGRATION.md +7 -0
- package/package.json +1 -1
- package/views/dist/contract.d.ts +18 -1
- package/views/dist/contract.js +21 -0
- package/views/dist/controls/avatar/avatar.d.ts +3 -1
- package/views/dist/controls/avatar/avatar.js +2 -2
- package/views/dist/controls/compound-editor/map-parts-body.js +2 -0
- package/views/dist/controls/compound-editor/name-parts.js +1 -1
- package/views/dist/controls/compound-editor/place-parts.js +1 -1
- package/views/dist/controls/compound-editor/range-parts.js +1 -1
- package/views/dist/controls/compound-editor/words.d.ts +3 -0
- package/views/dist/controls/compound-editor/words.js +2 -0
- package/views/dist/controls/customize/customize.d.ts +10 -3
- package/views/dist/controls/customize/customize.js +147 -63
- package/views/dist/controls/customize/items.d.ts +49 -0
- package/views/dist/controls/customize/items.js +104 -0
- package/views/dist/controls/customize/map-customize-body.js +7 -4
- package/views/dist/controls/customize/words.d.ts +2 -0
- package/views/dist/controls/customize/words.js +1 -0
- package/views/dist/controls/filter-editor/block.js +5 -2
- package/views/dist/controls/filter-editor/filter-editor.d.ts +14 -1
- package/views/dist/controls/filter-editor/filter-editor.js +19 -11
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +3 -2
- package/views/dist/controls/filter-editor/map-filter-body.js +16 -2
- package/views/dist/controls/filter-editor/map-rules.d.ts +9 -2
- package/views/dist/controls/filter-editor/map-rules.js +18 -13
- package/views/dist/controls/filter-editor/parts.js +12 -11
- package/views/dist/controls/filter-editor/rules.d.ts +4 -4
- package/views/dist/controls/filter-editor/rules.js +6 -3
- package/views/dist/controls/filter-editor/words.d.ts +2 -0
- package/views/dist/controls/filter-editor/words.js +1 -0
- package/views/dist/controls/group-editor/group-editor.d.ts +3 -0
- package/views/dist/controls/group-editor/group-editor.js +21 -15
- package/views/dist/controls/group-editor/map-group-body.js +1 -0
- package/views/dist/controls/index.d.ts +1 -1
- package/views/dist/controls/internal/kit-words.d.ts +11 -0
- package/views/dist/controls/internal/kit-words.js +7 -0
- package/views/dist/controls/internal/map-panel-controls.d.ts +4 -1
- package/views/dist/controls/internal/map-panel-controls.js +14 -1
- package/views/dist/controls/internal/menu-items.d.ts +9 -0
- package/views/dist/controls/internal/menu-items.js +97 -0
- package/views/dist/controls/internal/panel-controls.js +1 -1
- package/views/dist/controls/menu/menu.d.ts +1 -1
- package/views/dist/controls/menu/menu.js +1 -1
- package/views/dist/controls/number-editor/map-number-body.js +2 -0
- package/views/dist/controls/number-editor/number-editor.js +1 -1
- package/views/dist/controls/number-editor/words.d.ts +3 -0
- package/views/dist/controls/number-editor/words.js +2 -0
- package/views/dist/controls/picker/fields-frame.d.ts +5 -0
- package/views/dist/controls/picker/fields-frame.js +30 -0
- package/views/dist/controls/picker/map-fields-body.js +3 -26
- package/views/dist/controls/picker/map-picker.d.ts +2 -1
- package/views/dist/controls/picker/map-picker.js +4 -2
- package/views/dist/controls/picker/picker.js +9 -2
- package/views/dist/controls/picker/rows.d.ts +3 -1
- package/views/dist/controls/picker.css +2 -0
- package/views/dist/controls/select/map-select.d.ts +1 -1
- package/views/dist/controls/select/map-select.js +4 -1
- package/views/dist/controls/select/select.d.ts +2 -0
- package/views/dist/controls/select/select.js +3 -1
- package/views/dist/controls/sheet/bottom-sheet.d.ts +6 -1
- package/views/dist/controls/sheet/bottom-sheet.js +3 -3
- package/views/dist/controls/sort-editor/map-sort-body.js +1 -0
- package/views/dist/controls/sort-editor/sort-editor.d.ts +3 -1
- package/views/dist/controls/sort-editor/sort-editor.js +6 -4
- package/views/dist/controls/tag/tag.js +4 -2
- package/views/dist/controls/text-editor/map-text-body.js +4 -1
- package/views/dist/controls/text-editor/text-editor.js +2 -2
- package/views/dist/controls/text-editor/words.d.ts +3 -0
- package/views/dist/controls/text-editor/words.js +1 -1
- package/views/dist/controls/toolbar/toolbar.d.ts +8 -2
- package/views/dist/controls/views-list/map-views-list-body.js +9 -1
- package/views/dist/controls/views-list/rules.d.ts +1 -0
- package/views/dist/controls/views-list/rules.js +2 -2
- package/views/dist/controls/views-list/view-menu.js +2 -2
- package/views/dist/controls/views-list/words.d.ts +4 -0
- package/views/dist/controls/views-list/words.js +2 -1
- package/views/dist/display/option-badges.d.ts +3 -2
- package/views/dist/display/option-badges.js +2 -2
- package/views/dist/grid/chrome/GridAddColumn.d.ts +7 -2
- package/views/dist/grid/chrome/GridAddColumn.js +5 -4
- package/views/dist/grid/chrome/GridHeader.js +3 -1
- package/views/dist/grid/chrome/GridNumberEditor.js +1 -1
- package/views/dist/grid/chrome/GridRow.js +7 -1
- package/views/dist/grid/chrome/GridTableSurface.js +2 -1
- package/views/dist/grid/chrome/grid-fitted-box.d.ts +5 -2
- package/views/dist/grid/chrome/grid-fitted-box.js +14 -4
- package/views/dist/grid/chrome/grid-table-props.d.ts +6 -2
- package/views/dist/grid/chrome/useGridScaleStyles.d.ts +9 -1
- package/views/dist/grid/chrome/useGridScaleStyles.js +1 -4
- package/views/dist/grid/grid-format-props.d.ts +1 -1
- package/views/dist/grid/grid-format-props.js +18 -5
- package/views/dist/grid/grid.css +5 -1
- package/views/dist/grid/useGridTablePrefs.d.ts +1 -1
- package/views/dist/grid/useGridTableSettings.d.ts +1 -1
- package/views/dist/list/list.js +2 -2
- package/views/dist/list/menu.d.ts +5 -4
- package/views/dist/list/toolbar.js +5 -3
- package/views/dist/panels/customize-body.d.ts +1 -1
- package/views/dist/panels/customize-body.js +8 -1
- package/views/dist/panels/model.d.ts +5 -0
- package/views/dist/panels/react/customize-body.js +11 -2
- package/views/dist/panels/react/customize.d.ts +3 -0
- package/views/dist/panels/react/filter/FilterFieldList.d.ts +3 -1
- package/views/dist/panels/react/filter/FilterFieldList.js +2 -2
- package/views/dist/panels/react/filter/filter-body.js +3 -1
- package/views/dist/panels/react/filter/filter-part-body.d.ts +3 -1
- package/views/dist/panels/react/filter/filter-part-body.js +2 -2
- package/views/dist/panels/react/sort/SortEditor.js +3 -1
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +9 -1
- package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +5 -3
- package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +4 -1
- package/views/dist/panels/react/toolbar/ToolbarOptions.js +2 -2
- package/views/dist/panels/react/toolbar/editor-menus.d.ts +8 -0
- package/views/dist/panels/react/toolbar/editor-menus.js +3 -0
- package/views/dist/panels/react/views-row/FoldingViewRow.js +3 -5
- package/views/dist/panels/react/views-row/HScrollRow.d.ts +4 -2
- package/views/dist/panels/react/views-row/HScrollRow.js +6 -2
- package/views/dist/panels/react/views-row/ViewAxes.js +6 -1
- package/views/dist/panels/react/views-row/ViewPicker.js +6 -9
- package/views/dist/panels/react/views-row/new-view.d.ts +11 -0
- package/views/dist/panels/react/views-row/new-view.js +21 -0
- package/views/dist/provider/components.d.ts +82 -2
- package/views/dist/react.d.ts +1 -1
- package/views/dist/styles.css +18 -5
- package/views/dist/styles.unlayered.css +18 -5
- package/views/docs/contract.md +19 -12
- package/views/docs/reference/controls.md +13 -12
- package/views/docs/reference/grid.md +4 -4
- package/views/docs/reference/list.md +25 -5
- package/views/docs/reference/panels-react.md +3 -3
- package/views/docs/reference/panels.md +1 -1
- package/views/docs/reference/react.md +16 -4
|
@@ -721,6 +721,49 @@ export type ViewsBodyStep = {
|
|
|
721
721
|
title: string;
|
|
722
722
|
onBack: () => void;
|
|
723
723
|
};
|
|
724
|
+
/** Which of the sort editor's menus a function is handed (VK-1063): a rule's ⋯ (a phone's and the narrow form's: a computer's rule
|
|
725
|
+
* has × and no ⋯), its `field` the sort's key (`rules[].value`), `index` its place; or a set-aside rule's ⋯, its `field` the
|
|
726
|
+
* rule's stored `fieldKey`. */
|
|
727
|
+
export type ViewsSortEditorItemsContext = ({
|
|
728
|
+
menu: "rule";
|
|
729
|
+
field: string;
|
|
730
|
+
index: number;
|
|
731
|
+
} | {
|
|
732
|
+
menu: "aside";
|
|
733
|
+
field: string;
|
|
734
|
+
}) & {
|
|
735
|
+
form: "computer" | "phone";
|
|
736
|
+
};
|
|
737
|
+
/** Which of the filter editor's menus (VK-1063): a rule's ⋮ or a set-aside rule's, named by its field (`field`, the rule's
|
|
738
|
+
* `fieldKey`; its `part`; the `relation` it stands under), or a group's actions; each by its `path` in the filter the body is handed
|
|
739
|
+
* (`ViewsFilterBodyProps.filter`): its indices through `items` and a relation rule's `where.items`, the whole filter `[]`. */
|
|
740
|
+
export type ViewsFilterEditorItemsContext = ({
|
|
741
|
+
menu: "rule" | "aside";
|
|
742
|
+
field: string;
|
|
743
|
+
part?: string;
|
|
744
|
+
relation?: string;
|
|
745
|
+
path: number[];
|
|
746
|
+
} | {
|
|
747
|
+
menu: "group";
|
|
748
|
+
path: number[];
|
|
749
|
+
}) & {
|
|
750
|
+
form: "computer" | "phone";
|
|
751
|
+
};
|
|
752
|
+
/** Which of the group editor's rows (VK-1063): its settings (`field`, the field grouped by), or its foot (Remove grouping). */
|
|
753
|
+
export type ViewsGroupEditorItemsContext = ({
|
|
754
|
+
menu: "settings";
|
|
755
|
+
field?: string;
|
|
756
|
+
} | {
|
|
757
|
+
menu: "foot";
|
|
758
|
+
}) & {
|
|
759
|
+
form: "computer" | "phone";
|
|
760
|
+
};
|
|
761
|
+
/** The sort editor's menus reshaped: handed a menu's default items, it hands back the items drawn. Pure, no hooks. */
|
|
762
|
+
export type ViewsSortEditorItems = (items: ViewsMenuItem[], ctx: ViewsSortEditorItemsContext) => ViewsMenuItem[];
|
|
763
|
+
/** The filter editor's menus reshaped. */
|
|
764
|
+
export type ViewsFilterEditorItems = (items: ViewsMenuItem[], ctx: ViewsFilterEditorItemsContext) => ViewsMenuItem[];
|
|
765
|
+
/** The group editor's rows reshaped. */
|
|
766
|
+
export type ViewsGroupEditorItems = (items: ViewsMenuItem[], ctx: ViewsGroupEditorItemsContext) => ViewsMenuItem[];
|
|
724
767
|
/** The sort editor's body, which your app draws (`SortBody`): what the sort pill opens on a computer and in the phone's
|
|
725
768
|
* Sheet, in place of ViewKit's own. A panel's body, as every panel's: handed the panel's state as data, it hands back
|
|
726
769
|
* the whole new value, every change as it is made; ViewKit keeps the rules, the save and what ✕ takes back to. Its
|
|
@@ -777,6 +820,9 @@ export type ViewsSortBodyProps = {
|
|
|
777
820
|
* ✓; under `bar` your own head does. Escape calls `onBack`; a swipe still closes the whole sheet, keeping the rules.
|
|
778
821
|
* Absent on a computer. */
|
|
779
822
|
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
823
|
+
/** Its menus as data (`menus.sortEditor`, VK-1063): a rule's ⋯ and a set-aside rule's, reshaped. `CONTROLS.SortBody` draws
|
|
824
|
+
* what it hands back; a body of your own may honour it. */
|
|
825
|
+
items?: ViewsSortEditorItems;
|
|
780
826
|
};
|
|
781
827
|
/** The quick filters' body, which your app draws (`QuickFiltersBody`): what the quick filters' button opens on a
|
|
782
828
|
* computer and in the phone's Sheet, in place of ViewKit's own panel. A panel's body, as every panel's: handed the
|
|
@@ -912,6 +958,9 @@ export type ViewsFilterBodyProps = {
|
|
|
912
958
|
* are back. The sheet's head shows the step's title, Back in ✕'s place and ✓; Escape calls onBack; a swipe still closes
|
|
913
959
|
* the whole sheet, keeping the filter. Absent on a computer. */
|
|
914
960
|
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
961
|
+
/** Its menus as data (`menus.filterEditor`, VK-1063): a rule's ⋮, a set-aside rule's and a group's actions, reshaped.
|
|
962
|
+
* `CONTROLS.FilterBody` draws what it hands back; a body of your own may honour it. */
|
|
963
|
+
items?: ViewsFilterEditorItems;
|
|
915
964
|
};
|
|
916
965
|
/** A field as the field list's body is handed it (`ViewsFieldsBodyProps.fields`). */
|
|
917
966
|
export type ViewsFieldsBodyField = {
|
|
@@ -945,6 +994,9 @@ export type ViewsFieldsBodyProps = {
|
|
|
945
994
|
fields: readonly ViewsFieldsBodyField[];
|
|
946
995
|
/** The field being changed (a rule's field): ticked, and pickable. Absent where a pick adds. */
|
|
947
996
|
own?: string;
|
|
997
|
+
/** For a rule on a related record's field, the relation `own` stands under: its key, as `onPick` hands it back, so the
|
|
998
|
+
* far field is ticked and never a field of the list's own with the same key. Absent for the list's own field. */
|
|
999
|
+
ownRelation?: string;
|
|
948
1000
|
form: "computer" | "phone";
|
|
949
1001
|
/** A field picked: its key, and, for a relation's far field, the far field's key. A key not handed, or one handed
|
|
950
1002
|
* `disabled`, writes nothing. */
|
|
@@ -966,6 +1018,9 @@ export type ViewsFilterPartBodyProps = {
|
|
|
966
1018
|
/** The field it names (for a far rule, the relation's far field): its `type` says the ways and the value each
|
|
967
1019
|
* stores. */
|
|
968
1020
|
field: Omit<ViewsFilterBodyField, "far">;
|
|
1021
|
+
/** For a far rule (Company › Industry), the relation's field key it stands under ("company"), as `FilterBody`'s
|
|
1022
|
+
* `ruleValue` hands it: whose values to offer. Absent for a rule on the list's own field. */
|
|
1023
|
+
relation?: string;
|
|
969
1024
|
/** The ways its field offers, in order: each its operator and its words. */
|
|
970
1025
|
ways: readonly {
|
|
971
1026
|
value: FilterRule["operator"];
|
|
@@ -1255,9 +1310,31 @@ export type ViewsGroupBodyProps = {
|
|
|
1255
1310
|
/** Tell what holds you that you stand on a level of your own (Group by's fields, an order's choices): its head shows the
|
|
1256
1311
|
* level's name and its Back calls onBack; hand null once you are back. On a computer and a phone. */
|
|
1257
1312
|
onStepChange?: (step: ViewsBodyStep | null) => void;
|
|
1313
|
+
/** Its rows as data (`menus.groupEditor`, VK-1063): its settings and its foot, reshaped. `CONTROLS.GroupBody` draws what it
|
|
1314
|
+
* hands back; a body of your own may honour it. */
|
|
1315
|
+
items?: ViewsGroupEditorItems;
|
|
1316
|
+
};
|
|
1317
|
+
/** Where a Customize body stands: its list, a section's page, or `page:<key>`, a page of the app's own (VK-1062). */
|
|
1318
|
+
export type ViewsCustomizePage = "list" | "layout" | "columns" | "filter" | "sort" | "group" | `page:${string}`;
|
|
1319
|
+
/** A row of Customize as data (VK-1062): a menu's row (`ViewsMenuItem`), its value in the brand while it differs from the
|
|
1320
|
+
* view as saved (`inForce`), and on Customize's list a page of the app's own (`page`), opened by the row and titled by its
|
|
1321
|
+
* `label`. A row whose key is one of Customize's own (list.md, Default keys) is ViewKit's row, with this item's words, icon,
|
|
1322
|
+
* value, mark and divider. */
|
|
1323
|
+
export type ViewsCustomizeItem = Omit<ViewsMenuItem, "children"> & {
|
|
1324
|
+
inForce?: boolean;
|
|
1325
|
+
/** On Customize's list alone: a page of the app's own, or a function handed its Back. */
|
|
1326
|
+
page?: ReactNode | ((back: () => void) => ReactNode);
|
|
1327
|
+
children?: ViewsCustomizeItem[];
|
|
1328
|
+
};
|
|
1329
|
+
/** Which of Customize's rows a function is handed: its list, Layout's page, or Columns' page; the form; the layout in use. */
|
|
1330
|
+
export type ViewsCustomizeItemsContext = {
|
|
1331
|
+
page: "list" | "layout" | "columns";
|
|
1332
|
+
form: "computer" | "phone";
|
|
1333
|
+
layout?: string;
|
|
1258
1334
|
};
|
|
1259
|
-
/**
|
|
1260
|
-
|
|
1335
|
+
/** Customize's rows reshaped: handed a page's default rows, it hands back the rows that page draws. Called as Customize draws:
|
|
1336
|
+
* pure and cheap, no hooks. */
|
|
1337
|
+
export type ViewsCustomizeItems = (items: ViewsCustomizeItem[], ctx: ViewsCustomizeItemsContext) => ViewsCustomizeItem[];
|
|
1261
1338
|
/** A setting turned on or off in Customize (Show counts, a layout's Freeze first column, a column's Show time): the
|
|
1262
1339
|
* panels' `ToggleConfig`, written out here. `onChange` writes it; `reset`, where present, takes it back to the
|
|
1263
1340
|
* reader's default; `section`, the heading it stands under, where it has one. */
|
|
@@ -1497,6 +1574,9 @@ export type ViewsCustomizeBodyProps = {
|
|
|
1497
1574
|
/** On a phone where the sheet's head doesn't draw it (`sheetActions: "bar"`): its ✕, closing it, for your body's own
|
|
1498
1575
|
* head. Absent on a computer, and under `head`, where the sheet holds it. */
|
|
1499
1576
|
actions?: ViewsSheetActions;
|
|
1577
|
+
/** Customize's rows as data (`menus.customize`, VK-1062): the list's and Layout's and Columns' pages' rows, reshaped.
|
|
1578
|
+
* `CONTROLS.CustomizeBody` draws what it hands back; a body of your own may honour it. */
|
|
1579
|
+
items?: ViewsCustomizeItems;
|
|
1500
1580
|
/** The view's name, as the app hands it through the toolbar (`viewName`): draw it, renamed in place, only with `onRename`. */
|
|
1501
1581
|
name?: string;
|
|
1502
1582
|
/** Renames the view (the toolbar's `onRenameView`): handed only where the app can rename it. */
|
package/views/dist/react.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { DEFAULT_DESKTOP_QUERY } from "./provider/desktop.js";
|
|
|
6
6
|
export { PANEL_CONTROL_NAMES } from "./provider/components.js";
|
|
7
7
|
export { flatSelectItems } from "./provider/select-items.js";
|
|
8
8
|
export type { ViewsSeveralValues } from "./display/fit-values.js";
|
|
9
|
-
export type { ViewsAlign, ViewsAnchor, ViewsBarPlacement, ViewsButtonProps, ViewsCalendarProps, ViewsCheckboxProps, ViewsCloseReason, ViewsCollapseProps, ViewsCommandParts, ViewsComponents, ViewsCustomizeBodyProps, ViewsCustomizeChoice, ViewsCustomizeColumn, ViewsCustomizeColumns, ViewsCustomizeField, ViewsCustomizeFields, ViewsCustomizeLayout, ViewsCustomizePage, ViewsCustomizeToggle, ViewsDateBodyProps, ViewsDatePick, ViewsDatePicks, ViewsInputProps, ViewsFieldsBodyField, ViewsFieldsBodyProps, ViewsFilterBodyField, ViewsFilterBodyProps, ViewsFilterPartBodyProps, ViewsGroupBodyProps, ViewsGroupDimension, ViewsGroupEntry, ViewsGroupValue, ViewsMenuItem, ViewsMenuProps, ViewsNumberBodyProps, ViewsOpenChange, ViewsPartsBodyProps, ViewsPickerAction, ViewsPickerItem, ViewsPickerProps, ViewsLink, ViewsLinkRole, ViewsLinksBodyProps, ViewsPlacePart, ViewsPlaceParts, ViewsPopoverProps, ViewsPortsHostProps, PanelControlName, ViewsSelectionBarProps, ViewsSelectItem, ViewsSelectProps, ViewsQuickFiltersBodyProps, ViewsResolvedComponents, ViewsRowsWaitProps, ViewsSearchFieldProps, ViewsSelectionBarSettings, ViewsSheetAction, ViewsSheetActions, ViewsBodyStep, ViewsSheetActionsPlace, ViewsSheetProps, ViewsSide, ViewsSortBodyProps, ViewsTextBodyProps, ViewsTooltipProps, ViewsValueLine, ViewsValuesBodyProps, ViewsViewsListBodyProps, ViewsViewsListItem, ViewsViewChange, ViewsViewLayout, ViewsViewMenuProps, ViewsPaneProps, ViewsViewRecord, ViewsViewVerbs, } from "./provider/components.js";
|
|
9
|
+
export type { ViewsAlign, ViewsAnchor, ViewsBarPlacement, ViewsButtonProps, ViewsCalendarProps, ViewsCheckboxProps, ViewsCloseReason, ViewsCollapseProps, ViewsCommandParts, ViewsComponents, ViewsCustomizeBodyProps, ViewsCustomizeChoice, ViewsCustomizeColumn, ViewsCustomizeColumns, ViewsCustomizeField, ViewsCustomizeFields, ViewsCustomizeItem, ViewsCustomizeItems, ViewsCustomizeItemsContext, ViewsCustomizeLayout, ViewsCustomizePage, ViewsCustomizeToggle, ViewsDateBodyProps, ViewsDatePick, ViewsDatePicks, ViewsInputProps, ViewsFieldsBodyField, ViewsFieldsBodyProps, ViewsFilterBodyField, ViewsFilterBodyProps, ViewsFilterEditorItems, ViewsFilterEditorItemsContext, ViewsFilterPartBodyProps, ViewsGroupBodyProps, ViewsGroupEditorItems, ViewsGroupEditorItemsContext, ViewsGroupDimension, ViewsGroupEntry, ViewsGroupValue, ViewsMenuItem, ViewsMenuProps, ViewsNumberBodyProps, ViewsOpenChange, ViewsPartsBodyProps, ViewsPickerAction, ViewsPickerItem, ViewsPickerProps, ViewsLink, ViewsLinkRole, ViewsLinksBodyProps, ViewsPlacePart, ViewsPlaceParts, ViewsPopoverProps, ViewsPortsHostProps, PanelControlName, ViewsSelectionBarProps, ViewsSelectItem, ViewsSelectProps, ViewsQuickFiltersBodyProps, ViewsResolvedComponents, ViewsRowsWaitProps, ViewsSearchFieldProps, ViewsSelectionBarSettings, ViewsSheetAction, ViewsSheetActions, ViewsBodyStep, ViewsSheetActionsPlace, ViewsSheetProps, ViewsSide, ViewsSortBodyProps, ViewsSortEditorItems, ViewsSortEditorItemsContext, ViewsTextBodyProps, ViewsTooltipProps, ViewsValueLine, ViewsValuesBodyProps, ViewsViewsListBodyProps, ViewsViewsListItem, ViewsViewChange, ViewsViewLayout, ViewsViewMenuProps, ViewsPaneProps, ViewsViewRecord, ViewsViewVerbs, } from "./provider/components.js";
|
|
10
10
|
export type { ViewsIconProps, ViewsIcons } from "./provider/icons.js";
|
|
11
11
|
export { NOOP_PORTS, NOOP_TOAST } from "./provider/ports.js";
|
|
12
12
|
export type { ViewsClipboardPort, ViewsConfirmPort, ViewsConfirmRequest, ViewsHapticsPort, ViewsPorts, ViewsPrefsPort, ViewsResolvedPorts, ViewsToastPort, } from "./provider/ports.js";
|
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.36.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer base {
|
|
@@ -3681,6 +3681,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3681
3681
|
.o-picker-search-soft { flex: none; padding-bottom: calc(var(--vk-spacing) * 1); }
|
|
3682
3682
|
/* What is picked as chips (the option Chips): the Options with their × before the words typed, wrapping. */
|
|
3683
3683
|
.o-picker-chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vk-spacing) * 1.5); }
|
|
3684
|
+
/* A held value drawn as its cell draws it (the app's Tag, its × its own): the chip stands whole in its holder. */
|
|
3685
|
+
.o-picker-chip { display: inline-flex; max-width: 100%; }
|
|
3684
3686
|
|
|
3685
3687
|
/* ── How many are picked, and Clear all, when several can be ────────────────────────────────────────────────────── */
|
|
3686
3688
|
.o-picker-count { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
|
|
@@ -6804,9 +6806,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6804
6806
|
.min-w-30 {
|
|
6805
6807
|
min-width: calc(4px * 30);
|
|
6806
6808
|
}
|
|
6807
|
-
.min-w-\[calc\(var\(--vk-spacing\,var\(--spacing\)\)\*48\)\] {
|
|
6808
|
-
min-width: calc(var(--vk-spacing,4px) * 48);
|
|
6809
|
-
}
|
|
6810
6809
|
.flex-1 {
|
|
6811
6810
|
flex: 1;
|
|
6812
6811
|
}
|
|
@@ -8573,6 +8572,18 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8573
8572
|
:where(.\[\:where\(\&\)\]\:\[color\:inherit\]) {
|
|
8574
8573
|
color: inherit;
|
|
8575
8574
|
}
|
|
8575
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-footer-h\:calc\(36px\*var\(--vk-scale\)\)\]) {
|
|
8576
|
+
--vk-footer-h: calc(36px * var(--vk-scale));
|
|
8577
|
+
}
|
|
8578
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-head-h\:calc\(32px\*var\(--vk-scale\)\)\]) {
|
|
8579
|
+
--vk-head-h: calc(32px * var(--vk-scale));
|
|
8580
|
+
}
|
|
8581
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-label-h\:calc\(36px\*var\(--vk-scale\)\)\]) {
|
|
8582
|
+
--vk-label-h: calc(36px * var(--vk-scale));
|
|
8583
|
+
}
|
|
8584
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-row-h\:calc\(37px\*var\(--vk-scale\)\)\]) {
|
|
8585
|
+
--vk-row-h: calc(37px * var(--vk-scale));
|
|
8586
|
+
}
|
|
8576
8587
|
:where(.\[\:where\(\&\)\]\:\[font\:inherit\]) {
|
|
8577
8588
|
font: inherit;
|
|
8578
8589
|
}
|
|
@@ -8599,11 +8610,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8599
8610
|
}
|
|
8600
8611
|
[data-grid-header="words"] [data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header"],
|
|
8601
8612
|
[data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header"]:not([data-grid-header] *) {
|
|
8602
|
-
--vk-head-h: calc(var(--vk-spacing) * 9 * var(--vk-scale));
|
|
8603
8613
|
--vk-head-text: calc(var(--vk-font-size-sm) * var(--vk-scale));
|
|
8604
8614
|
--vk-head-glyph: calc(var(--vk-spacing) * 3.5 * var(--vk-scale));
|
|
8605
8615
|
--vk-head-glyph-fg: var(--vk-fg-subtle);
|
|
8606
8616
|
}
|
|
8617
|
+
:where([data-grid-header="words"] [data-slot="vk-grid"][data-desktop], [data-slot="vk-grid"][data-desktop]:not([data-grid-header] *)) {
|
|
8618
|
+
--vk-head-h: calc(var(--vk-spacing) * 9 * var(--vk-scale));
|
|
8619
|
+
}
|
|
8607
8620
|
[data-grid-header="words"] [data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header-cell"],
|
|
8608
8621
|
[data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header-cell"]:not([data-grid-header] *) {
|
|
8609
8622
|
--vk-fg-subtle: var(--vk-fg);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.36.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
4
|
@layer viewkit {:where(*):where(:is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]), :is([data-slot^="vk-"]:not([data-slot^="vk-sort"], [data-slot^="vk-filter"], [data-slot^="vk-group"], [data-slot^="vk-customize"], [data-slot^="vk-views-list"], [data-slot^="vk-view-menu"], [data-slot^="vk-quick"], [data-slot^="vk-date"], [data-slot^="vk-calendar"], [data-slot^="vk-text"], [data-slot^="vk-number"], [data-slot^="vk-parts"], [data-slot^="vk-values"], [data-slot^="vk-links"], [data-slot^="vk-picker"], [data-slot^="vk-bulk"], [data-slot="vk-editor-close"], [data-slot="vk-editor-save"], [data-slot="vk-editor-back"], [data-slot="vk-editor-cancel"]), [data-slot="vk-sort-head"], [data-slot="vk-filter-head"], [data-slot="vk-filter-convert"], [data-slot="vk-quick-head"], [data-slot="vk-views-list-head"], [data-slot="vk-quick-filters-reminder"], [data-slot="vk-quick-filters-reminder-open"], [data-slot="vk-quick-filters-reminder-clear"], [data-slot="vk-date-editor"], [data-slot="vk-text-editor"], [data-slot="vk-text-body"], [data-slot="vk-number-body"], [data-slot="vk-parts-body"], [data-slot="vk-values-body"], [data-slot="vk-links-body"], [data-vk-body]) *),
|
|
@@ -3632,6 +3632,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3632
3632
|
.o-picker-search-soft { flex: none; padding-bottom: calc(var(--vk-spacing) * 1); }
|
|
3633
3633
|
/* What is picked as chips (the option Chips): the Options with their × before the words typed, wrapping. */
|
|
3634
3634
|
.o-picker-chips { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vk-spacing) * 1.5); }
|
|
3635
|
+
/* A held value drawn as its cell draws it (the app's Tag, its × its own): the chip stands whole in its holder. */
|
|
3636
|
+
.o-picker-chip { display: inline-flex; max-width: 100%; }
|
|
3635
3637
|
|
|
3636
3638
|
/* ── How many are picked, and Clear all, when several can be ────────────────────────────────────────────────────── */
|
|
3637
3639
|
.o-picker-count { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
|
|
@@ -6755,9 +6757,6 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6755
6757
|
.min-w-30 {
|
|
6756
6758
|
min-width: calc(4px * 30);
|
|
6757
6759
|
}
|
|
6758
|
-
.min-w-\[calc\(var\(--vk-spacing\,var\(--spacing\)\)\*48\)\] {
|
|
6759
|
-
min-width: calc(var(--vk-spacing,4px) * 48);
|
|
6760
|
-
}
|
|
6761
6760
|
.flex-1 {
|
|
6762
6761
|
flex: 1;
|
|
6763
6762
|
}
|
|
@@ -8524,6 +8523,18 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8524
8523
|
:where(.\[\:where\(\&\)\]\:\[color\:inherit\]) {
|
|
8525
8524
|
color: inherit;
|
|
8526
8525
|
}
|
|
8526
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-footer-h\:calc\(36px\*var\(--vk-scale\)\)\]) {
|
|
8527
|
+
--vk-footer-h: calc(36px * var(--vk-scale));
|
|
8528
|
+
}
|
|
8529
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-head-h\:calc\(32px\*var\(--vk-scale\)\)\]) {
|
|
8530
|
+
--vk-head-h: calc(32px * var(--vk-scale));
|
|
8531
|
+
}
|
|
8532
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-label-h\:calc\(36px\*var\(--vk-scale\)\)\]) {
|
|
8533
|
+
--vk-label-h: calc(36px * var(--vk-scale));
|
|
8534
|
+
}
|
|
8535
|
+
:where(.\[\:where\(\&\)\]\:\[--vk-row-h\:calc\(37px\*var\(--vk-scale\)\)\]) {
|
|
8536
|
+
--vk-row-h: calc(37px * var(--vk-scale));
|
|
8537
|
+
}
|
|
8527
8538
|
:where(.\[\:where\(\&\)\]\:\[font\:inherit\]) {
|
|
8528
8539
|
font: inherit;
|
|
8529
8540
|
}
|
|
@@ -8874,11 +8885,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8874
8885
|
}
|
|
8875
8886
|
[data-grid-header="words"] [data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header"],
|
|
8876
8887
|
[data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header"]:not([data-grid-header] *) {
|
|
8877
|
-
--vk-head-h: calc(var(--vk-spacing) * 9 * var(--vk-scale));
|
|
8878
8888
|
--vk-head-text: calc(var(--vk-font-size-sm) * var(--vk-scale));
|
|
8879
8889
|
--vk-head-glyph: calc(var(--vk-spacing) * 3.5 * var(--vk-scale));
|
|
8880
8890
|
--vk-head-glyph-fg: var(--vk-fg-subtle);
|
|
8881
8891
|
}
|
|
8892
|
+
:where([data-grid-header="words"] [data-slot="vk-grid"][data-desktop], [data-slot="vk-grid"][data-desktop]:not([data-grid-header] *)) {
|
|
8893
|
+
--vk-head-h: calc(var(--vk-spacing) * 9 * var(--vk-scale));
|
|
8894
|
+
}
|
|
8882
8895
|
[data-grid-header="words"] [data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header-cell"],
|
|
8883
8896
|
[data-slot="vk-grid"][data-desktop] [data-slot="vk-grid-header-cell"]:not([data-grid-header] *) {
|
|
8884
8897
|
--vk-fg-subtle: var(--vk-fg);
|
package/views/docs/contract.md
CHANGED
|
@@ -203,6 +203,10 @@ waits for its answer) and `writeStateByCol` (each cell's write in flight or refu
|
|
|
203
203
|
|
|
204
204
|
**The package owns geometry and density.** Each is a CSS variable the grid sets on its
|
|
205
205
|
frame from its scale and its state; a skin reads them and an app overrides them on the frame.
|
|
206
|
+
The four heights (`--vk-row-h`, `--vk-head-h`, `--vk-label-h`, `--vk-footer-h`) are the app's to set: a rule of your own
|
|
207
|
+
stylesheet, outside a cascade layer, on the frame (`[data-slot="vk-grid"] { --vk-row-h: 48px; }`, or a class of yours on
|
|
208
|
+
a box round it: `.deals [data-slot="vk-grid"]`) wins over ViewKit's, which draws them from the scale; the grid's rows
|
|
209
|
+
then draw, scroll and window by it. The rest stay the scale's.
|
|
206
210
|
|
|
207
211
|
| token | what it is |
|
|
208
212
|
| ----------------- | ----------------------------------------- |
|
|
@@ -505,11 +509,11 @@ peer; the provider and every other door import neither library, so an app that h
|
|
|
505
509
|
`TextBody`, required: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`; `CONTROLS.TextBody` is ViewKit's own, the Text editor. The grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), `place` (`cell` in a grid cell, where your box may grow over the rows below; `row` in a field row, where it stands in the row's flow, so the row grows with it and a section that clips the row never cuts it; absent, `cell`), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
|
|
506
510
|
`NumberBody`, required: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`; `CONTROLS.NumberBody` is ViewKit's own, the Number editor. The grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for money's currencies) while you stand on one, and `null` once you are back (*The sheet's head*).
|
|
507
511
|
|
|
508
|
-
`SortBody`, required: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`; `CONTROLS.SortBody` is ViewKit's own. The sort pill opens it: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody`. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`.
|
|
512
|
+
`SortBody`, required: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`; `CONTROLS.SortBody` is ViewKit's own. The sort pill opens it: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody`. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.sortEditor`, VK-1063): a rule's ⋯ and a set-aside rule's, reshaped; honour it or not.
|
|
509
513
|
|
|
510
|
-
`FilterBody`, required: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`; `CONTROLS.FilterBody` is ViewKit's own. An advanced filter's pill opens it on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in; and, in its place in the column order, each column the list can't filter, why in `disabled`, for your body to draw greyed and never name in a rule or put a set-aside rule back on), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to. Beside the level it is handed each choice field's values, and a place's country's names (`options` on a field, each as the Picker draws it: a status's step, a person's or a record's avatar, a record's kind), only where ViewKit holds the field's whole list as it opens (its values read on demand and not yet handed by your app, it is absent: open `ruleValue` there; `[]` is a whole list that is empty), ViewKit's own words for a rule (`ruleWords(rule, relation?)`: its field, way and value as the bar words them, for a rule your body has no words of its own for), and, on a phone, `onStepChange`: hand it a step of your own (`ViewsBodyStep`: a box's list, Add filter's fields) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it. `CONTROLS.FilterBody` is ViewKit's own, the filter editor: each rule Where or its join, its field, how it compares and its value in its type's own box (a choice's values from `options`), ⋮ to make a group or delete it, groups 3 deep, Add filter and Clear all filters; a relation rule's block (its relation, `any`, `none` or `every` where, its rules on that relation's fields), which a related rule's ⋮ makes with None or Every; a group's ⋮ with Exclude matches, and the level's own where `excludable`; a rule set aside in its place, its field's box dashed saying why, re-pointed, put back where its field is back, or deleted, and a relation rule set aside, or on a relation the list no longer lists, one row in its words; ViewKit's own words and value body (`ruleWords`, `ruleValue`) for a way the kit has no word for, a field it has no type for or a choice with no values, so nothing the level holds is out of sight; open on a relation's where, its relation and quantifier over the rules, the quantifier handed back with the level; on a phone each box's list, a date, a value ViewKit draws, Add filter, a block's quantifier and a rule's or a group's ⋯ as a step of the same sheet (`onStepChange`), with its own head under `bar`.
|
|
514
|
+
`FilterBody`, required: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`; `CONTROLS.FilterBody` is ViewKit's own. An advanced filter's pill opens it on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in; and, in its place in the column order, each column the list can't filter, why in `disabled`, for your body to draw greyed and never name in a rule or put a set-aside rule back on), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to. Beside the level it is handed each choice field's values, and a place's country's names (`options` on a field, each as the Picker draws it: a status's step, a person's or a record's avatar, a record's kind), only where ViewKit holds the field's whole list as it opens (its values read on demand and not yet handed by your app, it is absent: open `ruleValue` there; `[]` is a whole list that is empty), ViewKit's own words for a rule (`ruleWords(rule, relation?)`: its field, way and value as the bar words them, for a rule your body has no words of its own for), and, on a phone, `onStepChange`: hand it a step of your own (`ViewsBodyStep`: a box's list, Add filter's fields) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it. `CONTROLS.FilterBody` is ViewKit's own, the filter editor: each rule Where or its join, its field, how it compares and its value in its type's own box (a choice's values from `options`), ⋮ to make a group or delete it, groups 3 deep, Add filter and Clear all filters; a relation rule's block (its relation, `any`, `none` or `every` where, its rules on that relation's fields), which a related rule's ⋮ makes with None or Every; a group's ⋮ with Exclude matches, and the level's own where `excludable`; a rule set aside in its place, its field's box dashed saying why, re-pointed, put back where its field is back, or deleted, and a relation rule set aside, or on a relation the list no longer lists, one row in its words; ViewKit's own words and value body (`ruleWords`, `ruleValue`) for a way the kit has no word for, a field it has no type for or a choice with no values, so nothing the level holds is out of sight; open on a relation's where, its relation and quantifier over the rules, the quantifier handed back with the level; on a phone each box's list, a date, a value ViewKit draws, Add filter, a block's quantifier and a rule's or a group's ⋯ as a step of the same sheet (`onStepChange`), with its own head under `bar`. Its menus as data come as `items` (`menus.filterEditor`, VK-1063): a rule's ⋮, a set-aside rule's and a group's actions, reshaped, named by public terms; honour it or not.
|
|
511
515
|
|
|
512
|
-
`FieldsBody`, required: the field list's whole body, which your app draws, `ViewsFieldsBodyProps`; `CONTROLS.FieldsBody` is ViewKit's own. ViewKit opens it wherever it opens a sort or filter field list: for a sort, the empty Sort, Sort on the row's right and the + after the sort pill; for a filter, Filter and the + on the bar, a filter's field on the bar and a set-aside filter's field. It stands in the popover under what opened it on a computer, and on a phone on a page of the sheet, under the sheet's own head, so it takes no `actions`. It is handed what the pick is for (`purpose`: `sort` or `filter`), the list's name (`label`), its search's words (`search`), the fields in order as `ViewsFieldsBodyField` data (each its `key`, its words, its field's `type`, the `part` it reads and its column's `glyph`, all three as the grid's header marks its column, and, where it can't be picked, why, in `disabled`: a field another rule sorts says "Sorted", and, for a filter, a column the list can't filter says why in your words; for a filter, each relation with its `far` fields one level in, where a rule can name one), the field being changed (`own`, absent where a pick adds) and `form`. It hands back one pick through `onPick` (the field's key, and for a far field the far field's key too), and `onDone` closes what holds it with no pick. ViewKit writes the pick as its own list's would, and writes nothing for a key it didn't hand or handed `disabled`. `CONTROLS.FieldsBody` is ViewKit's own, the Picker.
|
|
516
|
+
`FieldsBody`, required: the field list's whole body, which your app draws, `ViewsFieldsBodyProps`; `CONTROLS.FieldsBody` is ViewKit's own. ViewKit opens it wherever it opens a sort or filter field list: for a sort, the empty Sort, Sort on the row's right and the + after the sort pill; for a filter, Filter and the + on the bar, a filter's field on the bar and a set-aside filter's field. It stands in the popover under what opened it on a computer, and on a phone on a page of the sheet, under the sheet's own head, so it takes no `actions`. It is handed what the pick is for (`purpose`: `sort` or `filter`), the list's name (`label`), its search's words (`search`), the fields in order as `ViewsFieldsBodyField` data (each its `key`, its words, its field's `type`, the `part` it reads and its column's `glyph`, all three as the grid's header marks its column, and, where it can't be picked, why, in `disabled`: a field another rule sorts says "Sorted", and, for a filter, a column the list can't filter says why in your words; for a filter, each relation with its `far` fields one level in, where a rule can name one), the field being changed (`own`, absent where a pick adds; for a rule on a related record's field, the far field's key, with `ownRelation` the relation's key it stands under, as `onPick` hands both back) and `form`. It hands back one pick through `onPick` (the field's key, and for a far field the far field's key too), and `onDone` closes what holds it with no pick. ViewKit writes the pick as its own list's would, and writes nothing for a key it didn't hand or handed `disabled`. `CONTROLS.FieldsBody` is ViewKit's own, the Picker.
|
|
513
517
|
|
|
514
518
|
`FilterPartBody`, required: a filter rule's way and value, which your app draws, `ViewsFilterPartBodyProps`; `CONTROLS.FilterPartBody` is ViewKit's own. A filter's way and its value on the bar open it, in a popover (no `actions`, as `FieldsBody`). It never opens inside `FilterBody`'s `ruleValue`, which stays ViewKit's own value body. It is handed which part opened it (`part`: `way` or `value`), the part's name (`label`), the rule as data (`rule`: its field key, part, way and value; one waiting for its value holds its way's empty value), the field it names (`field`, a far field for a far rule, its `type` saying the ways and the value each stores), the ways its field offers (`ways`, each its operator and its words), ViewKit's own value body (`own`, for a type your body doesn't draw; null at `way`) and `form`. It hands back the rule changed through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not, whatever value comes with it; a value is written once its way can hold it, or emptied (the rule then waits for its value). ViewKit writes nothing for a rule naming another field or part, a way its field doesn't offer or a value its way can't hold, and keeps a rule held until whole, the Or top's wrap and the bar's keys. `onDone` closes what holds it. Its `field` carries the field's values (`options`) as `FilterBody`'s fields do. `CONTROLS.FilterPartBody` is ViewKit's own, the filter part: a rule's way in the kit's ways, its value in its type's own (a choice's values from `options`), and ViewKit's ways and `own` for a rule the kit draws no part of.
|
|
515
519
|
|
|
@@ -523,11 +527,11 @@ peer; the provider and every other door import neither library, so an app that h
|
|
|
523
527
|
|
|
524
528
|
`Pane`, optional: a toolbar panel standing at the right edge of the list's box, which your app draws, `ViewsPaneProps`; `CONTROLS.Pane` is ViewKit's own Pane (VK-1026). A toolbar with `customizeIn: "pane"` opens Customize in it on a computer, in the box it is handed (`paneBox`; the ready `<List>` hands its own, `vk-list-box`), under the toolbar and as tall as the list, the list in use beside it. It is handed `open` and `onOpenChange` (it closes from inside: Escape, its ✕), `container` (the list's box: positioned, holding the grid, never scrolling itself; null until it is on the page, when it draws nothing), `opener` (the part's button, ⋯ while the part is folded into it: give it the focus back as it closes from inside), `label` (its name to a screen reader) and `children` (the panel). Left out, Customize opens in the `Popover`, as with nothing set; on a phone it opens in the `Sheet` either way, and an app's own `hosts.options` wins over it.
|
|
525
529
|
|
|
526
|
-
`ViewsListBody`, required: the views list's whole body, which your app draws, `ViewsViewsListBodyProps`; `CONTROLS.ViewsListBody` is ViewKit's own. The view picker's chip opens it: in its popover on a computer and in the Sheet on a phone. The row's pills and its "+N" list stay ViewKit's (a view's menu there is `ViewMenu`'s). It is handed the list's name (`label`), the axis's views in its order (`views`, each its `value`, its words, its `icon`, its `count` (absent while the list's counts are hidden), `private` for one of the reader's own, and `menu`, the view's own verbs as your app gave them), the view in use (`value`), `form`, and, where the axis has them, `onCreate` with its word (`createLabel`; what holds the list closes first, then the axis's own create runs) and `onReorder` with `canDrag`. The body hands back `onViewChange` (a view picked; it closes nothing, so call `onDone` after it, as `CONTROLS.ViewsListBody` closes on a pick), `onReorder` (one whole block, the shared views or the reader's own, in its new order, each once) and `onDone` (what holds it closes). On a phone where the sheet's head doesn't draw it (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which closes the list) and, while it stands on a step, Back (`back`); on a computer, and under `head`, it is handed none. On a computer it is handed `onHold`: while the body holds, a press outside the list and Escape close nothing (it asks a question outside the list, your `confirm` port's dialog), so the list stays when the question is answered. On a phone it is handed `onStepChange`: a body standing on a step of its own (a view's menu, Rename) tells it, and the sheet shows the step's title and Back and its Escape goes back a step. Where the axis hands `verbs` (`ViewsViewVerbs`: the `layouts` a new view can take, each its glyph by your `AppIcon`, the `records`' noun, a board's `columns` and `onChange`, which takes every change a view's menu makes, `ViewsViewChange`: rename, create, duplicate, delete, restore, save, reset, edit, link, favorite, private), the body is handed them, and each view its `layout`, `changed` and `favorite`. ViewKit checks each value before it is written: a pick that isn't one of `views`, and an order that isn't one whole block, write nothing. What creating, reordering and a view's verbs mean stays your app's, as the axis says. `CONTROLS.ViewsListBody` is ViewKit's own, the views list: a search over the views (at the Sheet's foot on a phone), each with its glyph, its count and its ⋮ where you hand it a menu, Shared and the reader's own under their headings with a lock on each of the reader's own, a view moved by a drag or ⌥↑ ⌥↓ within its block (never one `canDrag` refuses, nor a view dropped past one), ↓ and ↑ going on from the view in use, and New view where the axis grows.
|
|
530
|
+
`ViewsListBody`, required: the views list's whole body, which your app draws, `ViewsViewsListBodyProps`; `CONTROLS.ViewsListBody` is ViewKit's own. The view picker's chip opens it: in its popover on a computer and in the Sheet on a phone. The row's pills and its "+N" list stay ViewKit's (a view's menu there is `ViewMenu`'s). It is handed the list's name (`label`), the axis's views in its order (`views`, each its `value`, its words, its `icon`, its `count` (absent while the list's counts are hidden), `private` for one of the reader's own, and `menu`, the view's own verbs as your app gave them), the view in use (`value`), `form`, and, where the axis has them, `onCreate` with its word (`createLabel`; what holds the list closes first, then the axis's own create runs) and `onReorder` with `canDrag`. The body hands back `onViewChange` (a view picked; it closes nothing, so call `onDone` after it, as `CONTROLS.ViewsListBody` closes on a pick), `onReorder` (one whole block, the shared views or the reader's own, in its new order, each once) and `onDone` (what holds it closes). On a phone where the sheet's head doesn't draw it (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which closes the list) and, while it stands on a step, Back (`back`); on a computer, and under `head`, it is handed none. On a computer it is handed `onHold`: while the body holds, a press outside the list and Escape close nothing (it asks a question outside the list, your `confirm` port's dialog), so the list stays when the question is answered. On a phone it is handed `onStepChange`: a body standing on a step of its own (a view's menu, Rename) tells it, and the sheet shows the step's title and Back and its Escape goes back a step. Where the axis hands `verbs` (`ViewsViewVerbs`: the `layouts` a new view can take, each its glyph by your `AppIcon`, the `records`' noun, a board's `columns` and `onChange`, which takes every change a view's menu makes, `ViewsViewChange`: rename, create, duplicate, delete, restore, save, reset, edit, link, favorite, private), the body is handed them, and each view its `layout`, `changed` and `favorite`. ViewKit checks each value before it is written: a pick that isn't one of `views`, and an order that isn't one whole block, write nothing. What creating, reordering and a view's verbs mean stays your app's, as the axis says. `CONTROLS.ViewsListBody` is ViewKit's own, the views list: a search over the views (at the Sheet's foot on a phone), each with its glyph, its count and its ⋮ where you hand it a menu, Shared and the reader's own under their headings with a lock on each of the reader's own, a view moved by a drag or ⌥↑ ⌥↓ within its block (never one `canDrag` refuses, nor a view dropped past one), ↓ and ↑ going on from the view in use, and New view where the axis grows. Handed `actions`, it draws its own head over itself, as every panel's body does: the list's name and ✕ at the list, a step's title and Back on a step (VK-859); in ViewKit's own Sheet that Sheet's head draws them. On a phone a view's ⋯ turns the one Sheet into its menu, with Back, never a sheet on top (VK-823). Handed `verbs`, a view's menu is the Outright kit's (`useViewMenu`): Rename… and New view in the Modal (New view where the axis grows, as without verbs, its create handed to `verbs.onChange`), Edit view, Private view, Save for everyone, Reset and Save as new view, Copy link, Favorite, Duplicate, and Delete, asked on a computer through the `confirm` port (ViewKit's alert dialog where your app hands none and `PortsHost` stands; the menu's own dialog where neither does, never the browser's) and said through the `toast` port's `success` with its `undo`. ViewKit moves no view itself: your `verbs.onChange` opens the right one, the first listed when the open one is deleted, the view again on a restore with `open`, the new one on a create or a duplicate (whose ids your app makes); `viewsAfter`, from `viewkitjs/views/controls`, does all of it over your views; on a phone each a step of the one Sheet, the delete question the Alert in its sheet form. Every word is your messages'.
|
|
527
531
|
|
|
528
|
-
`GroupBody`, optional and deprecated: read by nothing. Only ViewKit's own Customize opened it, and that Customize is gone; a `CustomizeBody` holds its group editor inside it, handed the same props as its `group`. A map that names it still compiles; it leaves in a later release. Its props, `ViewsGroupBodyProps`, are what a `CustomizeBody`'s `group` is handed: it is handed the group's name (`label`), the fields the list can be grouped by (`dimensions`, each its `value`, its words, its `orderOptions` with the direction each opens in, its `defaultOrder`, and a date's `granularities` with its `defaultGranularity`), the group as one value (`group`, a `ViewsGroupValue`: the dimension grouped by or `none`, the active dimension's `order` (`mode` and `dir`), its date step (`granularity`), `hideEmpty` while grouped where the list offers it, and `groups` while grouped where the list hands them, in the order the list shows them, each its `key`, its words, `empty`, `hidden`, and its `count` where the list counts it), `manualOrder` (your own order, `manual`, may be picked) and `form`. The body hands back `onGroupChange` (the whole group, every change as it is made) and `onDone` (inside Customize, back to its list). ViewKit makes one write for each change, in this order: a new Group by, order or date step is written alone, the rest of the value (about the old field's groups) set aside; else Hide empty groups; else the groups: the same groups in a new order (your own order), one group shown or hidden, every group hidden, or every group shown. A new Group by keeps the order and step handed with it only where the new field offers them, else takes the field's own. A value that changes two of those at once, names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses a group writes nothing. It is handed no `actions`. It is handed `onStepChange`, on a computer and a phone: hand it a level of your own (`ViewsBodyStep`, its `title` and `onBack`: Group by's fields, an order's choices) while you stand on one, and `null` once you are back; what holds it shows the level's name in its head and its Back calls `onBack`. `CONTROLS.GroupBody`, kept so a map that names it compiles, is ViewKit's own, the group editor: Group by, Order, Direction, a date field's Date step and Hide empty groups, each opening its choices in place; the groups with their Switch, dragged into your own order, Hide all and Show all; Remove grouping; each change one write, Count ordered by each group's `count`, its level told through `onStepChange`.
|
|
532
|
+
`GroupBody`, optional and deprecated: read by nothing. Only ViewKit's own Customize opened it, and that Customize is gone; a `CustomizeBody` holds its group editor inside it, handed the same props as its `group`. A map that names it still compiles; it leaves in a later release. Its props, `ViewsGroupBodyProps`, are what a `CustomizeBody`'s `group` is handed: it is handed the group's name (`label`), the fields the list can be grouped by (`dimensions`, each its `value`, its words, its `orderOptions` with the direction each opens in, its `defaultOrder`, and a date's `granularities` with its `defaultGranularity`), the group as one value (`group`, a `ViewsGroupValue`: the dimension grouped by or `none`, the active dimension's `order` (`mode` and `dir`), its date step (`granularity`), `hideEmpty` while grouped where the list offers it, and `groups` while grouped where the list hands them, in the order the list shows them, each its `key`, its words, `empty`, `hidden`, and its `count` where the list counts it), `manualOrder` (your own order, `manual`, may be picked) and `form`. The body hands back `onGroupChange` (the whole group, every change as it is made) and `onDone` (inside Customize, back to its list). ViewKit makes one write for each change, in this order: a new Group by, order or date step is written alone, the rest of the value (about the old field's groups) set aside; else Hide empty groups; else the groups: the same groups in a new order (your own order), one group shown or hidden, every group hidden, or every group shown. A new Group by keeps the order and step handed with it only where the new field offers them, else takes the field's own. A value that changes two of those at once, names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses a group writes nothing. It is handed no `actions`. It is handed `onStepChange`, on a computer and a phone: hand it a level of your own (`ViewsBodyStep`, its `title` and `onBack`: Group by's fields, an order's choices) while you stand on one, and `null` once you are back; what holds it shows the level's name in its head and its Back calls `onBack`. `CONTROLS.GroupBody`, kept so a map that names it compiles, is ViewKit's own, the group editor: Group by, Order, Direction, a date field's Date step and Hide empty groups, each opening its choices in place; the groups with their Switch, dragged into your own order, Hide all and Show all; Remove grouping; each change one write, Count ordered by each group's `count`, its level told through `onStepChange`. Customize's Group page hands the group editor `items` (`menus.groupEditor`, VK-1063) inside its `group`.
|
|
529
533
|
|
|
530
|
-
`CustomizeBody`, required: Customize's whole body, which your app draws, `ViewsCustomizeBodyProps` (`CONTROLS.CustomizeBody`, or your own). ViewKit draws no Customize of its own: Options opens it in your `host`, the map's `Popover` or, on a phone, the `Sheet`, and so does everything else that draws Customize (`ViewOptionsPanelContent`, the ready toolbar's Options, `ViewOptionsPopoverPanel`). One body holds the whole of Customize: its sections stand where your body puts them. It is handed Customize's name (`label`), the page it stands on (`page`: `list`, `layout`, `columns`, `filter`, `sort` or `group`, held by your app where it holds Options' page, so it survives the toolbar changing form) with `onPageChange`, and the view's settings as data: `layout` (the layouts, the one in use, those refused with their reasons, `onLayoutChange`, and the layout in use's own toggles, choices, density and the reader's own settings, offered where ViewKit's own Layout page offers them), `columns` (every column in the view's order, hidden or not, `hideable`, `fixed`, a card's `startsLine` and each column's own settings; `onColumnsChange` with every column in its order, written one change at a time, a reorder or columns shown or hidden, several at once in one write (your Hide all and Show all), a column that can't hide (fixed, not hideable) staying shown and a Hide all of every column leaving the first one shown, a reorder with a column shown or hidden writing nothing; with the panels' builder's `parts`, the table's columns include each part column the view places, so a Hide all reaches it; `onStartsLineChange`, `reset` while the columns differ from the view's, and your field editor's rows as `columnMenu` and `footer`), the sort as `SortBody` is handed it (`sort`; a list with one sort as one rule, `max` 1), the filter as `FilterBody` is handed it on a phone (`filter`: the whole filter, 3 levels deep), the group as `GroupBody` is handed it (`group`), `toggles` (Show counts among them, read from the view, each written through its own `onChange`), and, on a shared view, `view` (`changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`, and `layered` while the reader's own layer holds something: Reset stands for it and empties it, Save doesn't). Each page's own Reset comes as `resets` (`layout`, `columns`, `filter`, `sort`, `group`, each only while that page differs from the view as saved, or with no saved view from the first page's Clear): draw it on its page, in the first page's Reset's word and look; inside it, no Clear all of the sort's or the filter's own. The same `resets` marks Customize's sections: a section shows its value in the brand only while its page is named there, a saved filter or sort at rest in the normal colour and one taken away in the brand (`CONTROLS.CustomizeBody`, VK-1048); with no `resets` handed, a section is marked while something is set in it. With no shared view it is handed the foot's Clear (`onClear`) where the holder offers one and Clear all (`clearAll`) while anything is set; `foot` says the foot's words (`kit` for Clear and Save, `none` where they stand elsewhere). It hands back `onDone` (what holds it closes); on a phone where the sheet's head doesn't draw it, it is handed `actions`, the ✕ alone. The sort, filter and group are written as their own slots' are, through ViewKit's checks. A list's per-field filters (a field's values, as ViewKit's own Filter page drew them), its time range and its date ranges are handed as `fields` (`ViewsCustomizeFields`): `folded` (behind one Filter row, as a list folds them, or each its own row, as a dashboard lists them) and `items`, each with its words, what it holds (`says`, `inForce`), where its row stands (`place`), why it can't open (`disabled`), `onOpen` (asked as its screen opens), and its screen's content: `pick` (one value, its All choice first), `check` (several), `time` (presets, and `custom` with its days and each press), `dates` (a range of days) or `body` (ViewKit's own body for any other kind). Each writes through its own change. The view's name with its rename (`name`, `onRename`), Copy link (`onCopyLink`) and Export CSV with its count (`onExport`, `exportCount`) are handed where your app hands them to the toolbar (`ToolbarOptions`' and `ReadyToolbar`'s `viewName`, `onRenameView`, `onCopyLink`, `onExport`, `exportCount`); draw each only where handed. On a phone it may tell the level of its own it stands on inside a section (`onStepChange`), and the sheet's Escape goes back a level instead of closing. Your body draws everything else a list hands it: a column's own settings, your field editor's rows (`columnMenu`, `footer`) and a card layout's line breaks (`onStartsLineChange`) included.
|
|
534
|
+
`CustomizeBody`, required: Customize's whole body, which your app draws, `ViewsCustomizeBodyProps` (`CONTROLS.CustomizeBody`, or your own). ViewKit draws no Customize of its own: Options opens it in your `host`, the map's `Popover` or, on a phone, the `Sheet`, and so does everything else that draws Customize (`ViewOptionsPanelContent`, the ready toolbar's Options, `ViewOptionsPopoverPanel`). One body holds the whole of Customize: its sections stand where your body puts them. It is handed Customize's name (`label`), the page it stands on (`page`: `list`, `layout`, `columns`, `filter`, `sort` or `group`, or `page:<key>` for a page of your own from `menus.customize`, held by your app where it holds Options' page, so it survives the toolbar changing form) with `onPageChange`, and the view's settings as data: `layout` (the layouts, the one in use, those refused with their reasons, `onLayoutChange`, and the layout in use's own toggles, choices, density and the reader's own settings, offered where ViewKit's own Layout page offers them), `columns` (every column in the view's order, hidden or not, `hideable`, `fixed`, a card's `startsLine` and each column's own settings; `onColumnsChange` with every column in its order, written one change at a time, a reorder or columns shown or hidden, several at once in one write (your Hide all and Show all), a column that can't hide (fixed, not hideable) staying shown and a Hide all of every column leaving the first one shown, a reorder with a column shown or hidden writing nothing; with the panels' builder's `parts`, the table's columns include each part column the view places, so a Hide all reaches it; `onStartsLineChange`, `reset` while the columns differ from the view's, and your field editor's rows as `columnMenu` and `footer`), the sort as `SortBody` is handed it (`sort`; a list with one sort as one rule, `max` 1), the filter as `FilterBody` is handed it on a phone (`filter`: the whole filter, 3 levels deep), the group as `GroupBody` is handed it (`group`), `toggles` (Show counts among them, read from the view, each written through its own `onChange`), and, on a shared view, `view` (`changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`, and `layered` while the reader's own layer holds something: Reset stands for it and empties it, Save doesn't). Each page's own Reset comes as `resets` (`layout`, `columns`, `filter`, `sort`, `group`, each only while that page differs from the view as saved, or with no saved view from the first page's Clear): draw it on its page, in the first page's Reset's word and look; inside it, no Clear all of the sort's or the filter's own. The same `resets` marks Customize's sections: a section shows its value in the brand only while its page is named there, a saved filter or sort at rest in the normal colour and one taken away in the brand (`CONTROLS.CustomizeBody`, VK-1048); with no `resets` handed, a section is marked while something is set in it. Your `menus.customize` comes as `items` (`ViewsCustomizeItems`, VK-1062): `CONTROLS.CustomizeBody` draws its list's, Layout's and Columns' rows from what it hands back ([`/list`'s Menus as data](./reference/list.md#menus-as-data)); a body of your own may honour it or not. With no shared view it is handed the foot's Clear (`onClear`) where the holder offers one and Clear all (`clearAll`) while anything is set; `foot` says the foot's words (`kit` for Clear and Save, `none` where they stand elsewhere). It hands back `onDone` (what holds it closes); on a phone where the sheet's head doesn't draw it, it is handed `actions`, the ✕ alone. The sort, filter and group are written as their own slots' are, through ViewKit's checks. A list's per-field filters (a field's values, as ViewKit's own Filter page drew them), its time range and its date ranges are handed as `fields` (`ViewsCustomizeFields`): `folded` (behind one Filter row, as a list folds them, or each its own row, as a dashboard lists them) and `items`, each with its words, what it holds (`says`, `inForce`), where its row stands (`place`), why it can't open (`disabled`), `onOpen` (asked as its screen opens), and its screen's content: `pick` (one value, its All choice first), `check` (several), `time` (presets, and `custom` with its days and each press), `dates` (a range of days) or `body` (ViewKit's own body for any other kind). Each writes through its own change. The view's name with its rename (`name`, `onRename`), Copy link (`onCopyLink`) and Export CSV with its count (`onExport`, `exportCount`) are handed where your app hands them to the toolbar (`ToolbarOptions`' and `ReadyToolbar`'s `viewName`, `onRenameView`, `onCopyLink`, `onExport`, `exportCount`); draw each only where handed. On a phone it may tell the level of its own it stands on inside a section (`onStepChange`), and the sheet's Escape goes back a level instead of closing. Your body draws everything else a list hands it: a column's own settings, your field editor's rows (`columnMenu`, `footer`) and a card layout's line breaks (`onStartsLineChange`) included.
|
|
531
535
|
|
|
532
536
|
`RowsWait`, optional: wraps a grid's rows, `ViewsRowsWaitProps`: `pending` and `children`. Handed one, a grid that has settled always draws its rows as its children, so they stay mounted as a wait starts and ends. It stands inside the grid's scroll area, where the rows are: an ungrouped grid's column names stand above it and its footer below it, and a grouped grid's one row of column names (`oneHeader`) above it, every group inside it with its bar, column names and footer. The column names and the footer stay as they are, and take no press while the rows wait. While new rows load (`transitionPending`, or the one commit after `transitionKey` changes) and the grid already shows rows, it keeps the old ones on screen as they were drawn, inert, and hands `pending: true`: draw how they wait (a bar along the top, the rows dimmed). When the wait ends the new rows mount fresh and `pending` is false: draw `children` as they are. A grid with no rows yet, a first load or an empty grid, draws Loading in place of its body either way, and without `RowsWait` every wait does. Draw it as a block in flow that neither scrolls nor clips (no `overflow` of its own) and is no size container (no `container-type`), so the heads inside it still pin, the group labels and the empty message keep to the scroll area's width, and the rows scroll with the grid. Its top scrolls with the rows: a bar along it lies along the first row's top and leaves sight once the grid is scrolled, so a bar meant to stay in sight pins itself, sticky at `top: var(--vk-head-h)` under the column names. The slot mounts afresh when the grid changes shape (empty to rows, grouped to ungrouped, `oneHeader`), never during a wait. An editor open as the wait starts writes its draft then, as the grid going would; a draft your app refuses there keeps its refusal under the inert cell and is said in a toast when the rows mount fresh. A popup the grid opened outside its box (a column's or a row's menu, a phone's sheet) is not inert and stays as it was; what is typed in a sheet during the wait is thrown away when the rows mount fresh. The grid's paste, undo and redo wait with the rows.
|
|
533
537
|
|
|
@@ -570,13 +574,13 @@ The package ships none of them and depends on neither library.
|
|
|
570
574
|
|
|
571
575
|
### A panel's body
|
|
572
576
|
|
|
573
|
-
A toolbar panel's body slot (`SortBody` the first, then `FilterBody`, `ViewsListBody`, `GroupBody` and `CustomizeBody`) follows one pattern, which every panel's body copies. It is named `<Panel>Body` and required, `CONTROLS` handing ViewKit's own (`GroupBody`, read by nothing, is deprecated): ViewKit opens it wherever the panel opens, on a computer and in the phone's Sheet. It is typed `Views<Panel>BodyProps` (`ViewsSortBodyProps`, `ViewsFilterBodyProps`, `ViewsViewsListBodyProps`, `ViewsGroupBodyProps`, `ViewsCustomizeBodyProps`) and handed the panel's state as plain data, `form` (`computer` or `phone`), `onDone` (the job is done and what holds it closes), and, on a phone, `actions` (the ✕ and ✓, `ViewsSheetActions`) only where the sheet's head doesn't draw them. It hands back the whole new value on every change, as it is made, through one `on<Value>Change` (`onRulesChange`, `onFilterChange`, `onViewChange`, `onGroupChange`), never a step to apply. A body that holds several values, as Customize's does, is handed each section as data with its own change (a layout's `onLayoutChange`, the columns' `onColumnsChange`, each toggle's `onChange`), and a section that has a slot of its own (the sort, the filter, the group) as that slot's props without the chrome, so each type is written once. One contract serves the computer and the phone: `form` tells them apart. ViewKit checks each value against the panel's own rules and writes nothing when one breaks them, and it keeps the save, the latest value between renders and what ✕ takes back to. The group's and the columns' changes are the exception: their writes rebuild from the settings ViewKit last drew, so each change is checked against the last render, and a second one handed before ViewKit draws again writes nothing; hand one change for each press.
|
|
577
|
+
A toolbar panel's body slot (`SortBody` the first, then `FilterBody`, `ViewsListBody`, `GroupBody` and `CustomizeBody`) follows one pattern, which every panel's body copies. It is named `<Panel>Body` and required, `CONTROLS` handing ViewKit's own (`GroupBody`, read by nothing, is deprecated): ViewKit opens it wherever the panel opens, on a computer and in the phone's Sheet. It is typed `Views<Panel>BodyProps` (`ViewsSortBodyProps`, `ViewsFilterBodyProps`, `ViewsViewsListBodyProps`, `ViewsGroupBodyProps`, `ViewsCustomizeBodyProps`) and handed the panel's state as plain data, `form` (`computer` or `phone`), `onDone` (the job is done and what holds it closes), and, on a phone, `actions` (the ✕ and ✓, `ViewsSheetActions`) only where the sheet's head doesn't draw them: a body handed `actions` draws them in a head of its own over itself, or nothing on the phone closes it (an app's own Sheet under `sheetActions: "bar"` draws no ✕). Every `CONTROLS` body does. It hands back the whole new value on every change, as it is made, through one `on<Value>Change` (`onRulesChange`, `onFilterChange`, `onViewChange`, `onGroupChange`), never a step to apply. A body that holds several values, as Customize's does, is handed each section as data with its own change (a layout's `onLayoutChange`, the columns' `onColumnsChange`, each toggle's `onChange`), and a section that has a slot of its own (the sort, the filter, the group) as that slot's props without the chrome, so each type is written once. One contract serves the computer and the phone: `form` tells them apart. ViewKit checks each value against the panel's own rules and writes nothing when one breaks them, and it keeps the save, the latest value between renders and what ✕ takes back to. The group's and the columns' changes are the exception: their writes rebuild from the settings ViewKit last drew, so each change is checked against the last render, and a second one handed before ViewKit draws again writes nothing; hand one change for each press.
|
|
574
578
|
|
|
575
579
|
`QuickFiltersBody` (`ViewsQuickFiltersBodyProps`) is the quick filters' body: handed the fields as the strip shows them (`quickFieldsShown`: those the app offers, then each other field the hold holds a value on, named by the app's `heldLabels` else its key, listing only its held values), each with its values in the order to show them (their counts, and the held values drawn from the hold and worded by the app's `heldLabels` else their key, so a value no row holds any more, a deleted record say, can still be named and let go), the hold, `several` and `showCounts`, it hands back the whole hold through `onHoldChange`. ViewKit writes nothing for a hold that holds a field twice, holds more than one value where `several` is false, or adds a value on a field the strip doesn't offer (one already held there may stay or go). On a phone its `actions` is the ✕ alone, which closes it. On a phone, a press closes the Sheet when one value is held at a time (`quickPressCloses`): your body does so by calling `onDone`. Each field may carry its `options` as the app hands them on the quick filter field (`ViewsPickerItem`s), so a value draws its option's mark (a status's step, a face). `CONTROLS.QuickFiltersBody` is ViewKit's own, the Outright kit's quick filters.
|
|
576
580
|
|
|
577
581
|
`FieldsBody` (`ViewsFieldsBodyProps`) is the field list's body: ViewKit opens it wherever it opens a sort or filter field list (the empty Sort, Sort on the row's right, the + after the sort pill, Filter, the bar's +, a filter's field and a set-aside rule's field). It is handed `purpose` (`sort` or `filter`), the fields as data, each with its mark (`type`, `part`, `glyph`, as the grid's header marks its column) and, where it can't be picked, why (`disabled`: "Sorted" for a field another rule sorts, a filter's column the list can't filter its reason), for a filter a relation's `far` fields one level in, `own` (the field being changed) and `form`. A pick is one value, so it hands back `onPick` (the key, and a far field's key for a far field) rather than an `on<Value>Change`; ViewKit writes it as its own list's pick and writes nothing for a key it didn't hand or handed `disabled`. Its search, its rows and Related records are your body's; ViewKit's own stay the fallback.
|
|
578
582
|
|
|
579
|
-
`FilterPartBody` (`ViewsFilterPartBodyProps`) is a filter rule's part: a filter's way and its value on the bar open it, never inside `FilterBody`'s `ruleValue`. It is handed `part` (`way` or `value`), the rule as data, its field, its ways and ViewKit's own value body (`own`) for a type your body doesn't draw, and hands back the rule through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not; a value is written once its way holds it, or emptied. ViewKit writes nothing for another field or part, a way its field doesn't offer or a value its way can't hold. Neither body takes `actions`: each stands in a popover, or on a phone on a page of the sheet, under the sheet's own head.
|
|
583
|
+
`FilterPartBody` (`ViewsFilterPartBodyProps`) is a filter rule's part: a filter's way and its value on the bar open it, never inside `FilterBody`'s `ruleValue`. It is handed `part` (`way` or `value`), the rule as data, its field, for a rule on a related record's field the relation it stands under (`relation`, its field key, as `ruleValue` hands it), its ways and ViewKit's own value body (`own`) for a type your body doesn't draw, and hands back the rule through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not; a value is written once its way holds it, or emptied. ViewKit writes nothing for another field or part, a way its field doesn't offer or a value its way can't hold. Neither body takes `actions`: each stands in a popover, or on a phone on a page of the sheet, under the sheet's own head.
|
|
580
584
|
|
|
581
585
|
### Writing an adapter
|
|
582
586
|
|
|
@@ -586,6 +590,9 @@ What a Base UI adapter over shadcn copies does where its copies stop short of a
|
|
|
586
590
|
library's root, positioner and popup, handing the anchor to the positioner, where your copy's content
|
|
587
591
|
doesn't forward one; the root needs no trigger of its own, because the package opens it. A group that asks for
|
|
588
592
|
`beside` may be a submenu whose trigger is the group's own row, inside the open menu; with none, draw it in place.
|
|
593
|
+
On Base UI, a menu with submenus then needs a trigger after all: Base UI gives a menu its place among its levels by its
|
|
594
|
+
trigger, and with none a submenu opening reads as its sibling and closes it. Draw a hidden one, with no tab stop, named as
|
|
595
|
+
the menu is (`CONTROLS.Menu` does: `controls/menu/menu.tsx`).
|
|
589
596
|
Opened, it puts focus on its
|
|
590
597
|
first row, as your `Popover` does by default: a row's menu opened by a key starts there.
|
|
591
598
|
|
|
@@ -1218,7 +1225,7 @@ sort), `views.panels.group-none` ("None") and
|
|
|
1218
1225
|
`views.panels.direction` (`{ dir }`, "Direction: ascending"), `views.panels.toggle-reset` (`{ label }`, "Reset
|
|
1219
1226
|
Wrap"), `views.panels.toggle-reset-hint` ("Back to your default") and `views.panels.search-clear` ("Clear"). The
|
|
1220
1227
|
panels' label functions take the resolver last; each defaults to `resolveViewsMessage`.
|
|
1221
|
-
The Picker's own words, which `CONTROLS.Picker` and `CONTROLS.FieldsBody` hand it from these keys as its `words`: `views.picker.searching` ("Searching…"), `views.picker.failed` ("Couldn't search."), `views.picker.failed-line` ("Check the connection and try again."), `views.picker.retry` ("Try again"), `views.picker.none-typed` (`{ typed }`, "Nothing matches “Zed”."), `views.picker.nothing-matches` ("Nothing matches."), `views.picker.create` (`{ typed }`, "Create “Zed”"), `views.picker.create-button` ("Create"), `views.picker.loading-more` ("Loading more…"), `views.picker.chosen` (`{ count }`, "2 chosen"), `views.picker.clear-all` ("Clear all"), `views.picker.selected` ("Selected"), `views.picker.selected-count` (`{ count }`, "Selected · 2"), `views.picker.selected-fixed` ("Selected · can't be empty"), `views.picker.cancel` ("Cancel"), `views.picker.save` ("Save"), `views.picker.type-to-search` ("Type to look one up."), `views.picker.actions` ("Actions"), `views.picker.back` (`{ label }`, "Back to Company"), `views.picker.row-actions` (`{ label }`, "Actions for Company"), `views.picker.you` ("you").
|
|
1228
|
+
The Picker's own words, which `CONTROLS.Picker` and `CONTROLS.FieldsBody` hand it from these keys as its `words`: `views.picker.searching` ("Searching…"), `views.picker.failed` ("Couldn't search."), `views.picker.failed-line` ("Check the connection and try again."), `views.picker.retry` ("Try again"), `views.picker.none-typed` (`{ typed }`, "Nothing matches “Zed”."), `views.picker.nothing-matches` ("Nothing matches."), `views.picker.create` (`{ typed }`, "Create “Zed”"), `views.picker.create-button` ("Create"), `views.picker.loading-more` ("Loading more…"), `views.picker.chosen` (`{ count }`, "2 chosen"), `views.picker.clear-all` ("Clear all"), `views.picker.selected` ("Selected"), `views.picker.selected-count` (`{ count }`, "Selected · 2"), `views.picker.selected-fixed` ("Selected · can't be empty"), `views.picker.cancel` ("Cancel"), `views.picker.save` ("Save"), `views.picker.type-to-search` ("Type to look one up."), `views.picker.actions` ("Actions"), `views.picker.back` (`{ label }`, "Back to Company"), `views.picker.row-actions` (`{ label }`, "Actions for Company"), `views.picker.you` ("you"). A typed Select's chevron and a chip's × wherever they stand, inside ViewKit's panels (VK-997): `views.picker.show-every` (`{ label }`, "Show every stage", the Select's label as it gives it), `views.picker.show-all` ("Show every choice", a Select with no label), `views.picker.remove` ("Remove", a chip with no words; one with words says `views.editors.tag-remove`); the Select's × is `views.menus.clear`.
|
|
1222
1229
|
|
|
1223
1230
|
The Links editor's own words, which `CONTROLS.LinksBody` hands it from these keys (with the Picker's where the words are the same: `views.picker.nothing-matches`, `none-typed`, `row-actions`, `back`, `save`, `searching`, `failed`, `retry` and `loading-more`, `views.panels.close`, and the slot's `lead.makeLabel` for a link's Make lead): `views.editors.links-search` ("Search…"), `views.editors.links-roles` ("Roles"), `views.editors.links-add` ("Add"), `views.editors.links-add-to` (`{ label }`, "Add to Companies"), `views.editors.links-link` (`{ label }`, "Link Acme"), `views.editors.links-unlink` ("Unlink"), `views.editors.links-unlink-record` (`{ label }`, "Unlink Acme"), `views.editors.links-is-lead` (`{ label, lead }`, "Acme is the lead"), `views.editors.links-edit` (`{ label }`, "Edit the link to Acme"), `views.editors.links-menu` (`{ label }`, "the link to Acme", a link's ⋯ menu on a phone), `views.editors.links-field-at` (`{ field, label }`, "Roles at Acme"), `views.editors.links-search-roles` ("Search roles…"), `views.editors.links-none` ("None"), `views.editors.links-no-details` ("No details"), `views.editors.links-yes` ("Yes"), `views.editors.links-no` ("No"), `views.editors.links-all-linked` ("Everything is linked."), `views.editors.links-done` ("Done").
|
|
1224
1231
|
The views row's words: `views.panels.view-private` ("Only you", a private view's lock),
|
|
@@ -1232,7 +1239,7 @@ picker's chip), `views.panels.view-fallback` ("View", the chip with no active vi
|
|
|
1232
1239
|
`views.panels.view-create-row` (`{ label }`, "New view…", the picker's last row) and
|
|
1233
1240
|
`views.panels.view-menu` ("View menu", a picker row's `⋮`).
|
|
1234
1241
|
The ports' own (`CONTROLS.PortsHost`): `views.panels.toast-undo` ("Undo", a toast's way back) and `views.panels.alert-failed` ("That didn't go through. Nothing changed.", the alert dialog's failure with no words of its own).
|
|
1235
|
-
A view's menu and what it opens (`CONTROLS.ViewsListBody` where the axis hands `verbs`, `CONTROLS.ViewMenu`, and `useViewMenu`): `views.panels.view-rename` ("Rename…") and `views.panels.view-rename-short` ("Rename", a phone's tile), `views.panels.view-edit` ("Edit view…"), `views.panels.view-private-toggle` ("Private view"), `views.panels.view-save-everyone` ("Save for everyone"), `views.panels.view-save-own` ("Save", a private view's Save, in its menu and Customize's foot), `views.panels.view-save-new` ("Save as new view…"), `views.panels.view-copy-link-short` ("Copy link", a phone's tile; a computer's is `views.panels.copy-link`), `views.panels.view-favorite` ("Favorite") and `views.panels.view-unfavorite` ("Unfavorite"), `views.panels.view-duplicate` ("Duplicate view") and `views.panels.view-duplicate-short` ("Duplicate", a phone's tile), `views.panels.view-delete` ("Delete view"), `views.panels.view-keep-one` ("A list keeps one view", why Delete can't be pressed), `views.panels.view-unsaved` ("Unsaved changes") and `views.panels.view-this` ("This view"), a phone's two headings, `views.panels.view-rename-title` ("Rename view"), `views.panels.view-name` ("Name"), `views.panels.view-create-action` ("Create view"), `views.panels.view-delete-title` (`{ name }`, "Delete Q3?"), `views.panels.view-deleted` (`{ name }`, "Q3 was deleted", the toast), `views.panels.view-copy-name` (`{ name }`, "Copy of Q3", a duplicate's name), `views.panels.view-delete-stays` (`{ records }`, "The deals in it stay as they are.") and `views.panels.view-delete-goes` ("The view goes for everyone who uses it."), the delete question's line, and `views.panels.view-columns` (`{ layout }`, "Board columns", the field a board's columns follow).
|
|
1242
|
+
A view's menu and what it opens (`CONTROLS.ViewsListBody` where the axis hands `verbs`, `CONTROLS.ViewMenu`, and `useViewMenu`): `views.panels.view-rename` ("Rename…") and `views.panels.view-rename-short` ("Rename", a phone's tile), `views.panels.view-edit` ("Edit view…"), `views.panels.view-private-toggle` ("Private view"), `views.panels.view-save-everyone` ("Save for everyone"), `views.panels.view-save-own` ("Save", a private view's Save, in its menu and Customize's foot), `views.panels.view-save-new` ("Save as new view…"), `views.panels.view-copy-link-short` ("Copy link", a phone's tile; a computer's is `views.panels.copy-link`), `views.panels.view-favorite` ("Favorite") and `views.panels.view-unfavorite` ("Unfavorite"), `views.panels.view-duplicate` ("Duplicate view") and `views.panels.view-duplicate-short` ("Duplicate", a phone's tile), `views.panels.view-delete` ("Delete view"), `views.panels.view-keep-one` ("A list keeps one view", why Delete can't be pressed), `views.panels.view-unsaved` ("Unsaved changes") and `views.panels.view-this` ("This view"), a phone's two headings, `views.panels.view-rename-title` ("Rename view"), `views.panels.view-name` ("Name"), `views.panels.view-create-action` ("Create view"), `views.panels.view-delete-title` (`{ name }`, "Delete Q3?"), `views.panels.view-deleted` (`{ name }`, "Q3 was deleted", the toast), `views.panels.view-copy-name` (`{ name }`, "Copy of Q3", a duplicate's name), `views.panels.view-delete-stays` (`{ records }`, "The deals in it stay as they are.") and `views.panels.view-delete-goes` ("The view goes for everyone who uses it."), `views.panels.view-delete-goes-own` ("The view goes only for you.", the line on a person's own view, VK-959), the delete question's line, and `views.panels.view-columns` (`{ layout }`, "Board columns", the field a board's columns follow).
|
|
1236
1243
|
The toolbar's words: `views.panels.show-counts` ("Show counts", the toolbar's toggle over the views' and the quick filters' counts,
|
|
1237
1244
|
writing the view's `showCounts`),
|
|
1238
1245
|
`views.panels.toolbar-more` ("More", ⋯'s name in a folding toolbar line), `views.panels.toolbar-row` ("List tools",
|
|
@@ -1276,10 +1283,10 @@ rows' and pages' names where the list names none, `views.panels.filter` ("Filter
|
|
|
1276
1283
|
`views.panels.time-scope-label` and `views.panels.date-range-label` above, and the Columns row's value,
|
|
1277
1284
|
`views.panels.columns-shown` (`{ count }`, "3 shown"); its footer on a saved view, `views.panels.view-publish`
|
|
1278
1285
|
("Save for everyone"; `views.panels.view-save-own`, "Save", on the reader's own), `views.panels.view-reset` ("Reset") and `views.panels.view-stale` ("Everyone's view
|
|
1279
|
-
changed since you started."); and its actions, `views.panels.copy-link` ("Copy link to view"),
|
|
1286
|
+
changed since you started."; `views.panels.view-stale-own`, "This view changed since you started.", on the reader's own, VK-1061); and its actions, `views.panels.copy-link` ("Copy link to view"),
|
|
1280
1287
|
`views.panels.export-csv` ("Export CSV"), `views.panels.share` ("Share"), `views.panels.coming-soon` ("Coming
|
|
1281
1288
|
soon", a parked action's hint) and `views.panels.loading` ("Loading", the export's spinner).
|
|
1282
|
-
The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓), and `CONTROLS.SortBody`'s own (VK-721), `views.panels.sort-field` ("Field", a rule's field box), `views.panels.sort-clear-all-sorts` ("Clear all sorts", a computer's foot) and `views.panels.sort-by-named` (`{ label }`, "the sort by {label}", a rule's ⋯ menu); `CONTROLS.FilterBody`'s and `CONTROLS.FilterPartBody`'s own (VK-720), `views.panels.filter-group-list` ("Group", a group's rules to a screen reader), `views.panels.filter-rule-named` (`{ label }`, "{label}'s rule", a rule's ⋮), `views.panels.filter-way-named` (`{ label }`, "How {label} compares", a way's list and its step), `views.panels.filter-choose-date` ("Choose a date"), `views.panels.filter-type-number` ("Type a number") and `views.panels.filter-type-value` ("Type a value"), a value's placeholders, `views.panels.filter-from-named` and `views.panels.filter-to-named` (`{ label }`, "{label} from", "{label} to", a range's two ends), `views.panels.filter-checked` ("Checked") and `views.panels.filter-unchecked` ("Unchecked"), a yes/no's two values, and `views.panels.filter-kit-way` (`{ way }`, the kit's ways in their words: "is any of", "less than", "any part between"); `CONTROLS.GroupBody`'s own (VK-839), `views.panels.group-order` ("Order", the group's order setting), `views.panels.group-date-step` ("Date step", a date field's step setting), `views.panels.group-order-own` ("Your own", your own order), `views.panels.group-own-no-direction` ("Your own order has no direction", why Direction is greyed), `views.panels.group-no-value` ("No value", the empty group), and its rows' own, `views.panels.list-move-keys` ("Left arrow for its grip, then up or down arrow to move it", how a computer's rows move), `views.panels.list-move-hold` ("Hold, then drag to move it", a phone's) and `views.panels.list-moved` (`{ label, at, of }`, "{label}, {at} of {of}", a move said), a grip named by `views.panels.sort-move` and a Switch's words by `views.panels.toggle-on` and `views.panels.toggle-off`; `CONTROLS.CustomizeBody`'s own (VK-840), `views.panels.customize-list` ("Customize", its list to a screen reader), `views.panels.customize-shown` ("Shown in the table", on a table), `views.panels.customize-shown-fields` ("Shown", on another layout) and `views.panels.customize-hidden` ("Hidden"), Columns' headings, `views.panels.customize-search` ("Search columns", a computer's) and `views.panels.customize-find` ("Find a column", a phone's), `views.panels.customize-no-column` (`{ words }`, "No column is named “{words}”"), `views.panels.customize-always-shown` ("Always shown", why the first column can't hide), `views.panels.customize-view-name` ("The view's name", its box), `views.panels.customize-layout-button` (`{ name }`, "Layout: {name}", the layout's button beside the name), `views.panels.customize-layout-settings` (`{ name }`, "{name} settings", a layout's settings to a screen reader), `views.panels.customize-share` ("Share the view", its footer) and `views.panels.column-settings` (`{ label }`, "{label} settings", the › opening a column's own settings); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.filter-no-options` ("Nothing to pick.", a field with no value to pick), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), `CONTROLS.QuickFiltersBody`'s own (VK-724), `views.panels.quick-clear-value` ("Clear filter", a held value's words before its count), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
|
|
1289
|
+
The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓), and `CONTROLS.SortBody`'s own (VK-721), `views.panels.sort-field` ("Field", a rule's field box), `views.panels.sort-clear-all-sorts` ("Clear all sorts", a computer's foot) and `views.panels.sort-by-named` (`{ label }`, "the sort by {label}", a rule's ⋯ menu); `CONTROLS.FilterBody`'s and `CONTROLS.FilterPartBody`'s own (VK-720), `views.panels.filter-group-list` ("Group", a group's rules to a screen reader), `views.panels.filter-rule-named` (`{ label }`, "{label}'s rule", a rule's ⋮), `views.panels.filter-way-named` (`{ label }`, "How {label} compares", a way's list and its step), `views.panels.filter-choose-date` ("Choose a date"), `views.panels.filter-type-number` ("Type a number") and `views.panels.filter-type-value` ("Type a value"), a value's placeholders, `views.panels.filter-from-named` and `views.panels.filter-to-named` (`{ label }`, "{label} from", "{label} to", a range's two ends), `views.panels.filter-checked` ("Checked") and `views.panels.filter-unchecked` ("Unchecked"), a yes/no's two values, and `views.panels.filter-kit-way` (`{ way }`, the kit's ways in their words: "is any of", "less than", "any part between"); `CONTROLS.GroupBody`'s own (VK-839), `views.panels.group-order` ("Order", the group's order setting), `views.panels.group-date-step` ("Date step", a date field's step setting), `views.panels.group-order-own` ("Your own", your own order), `views.panels.group-own-no-direction` ("Your own order has no direction", why Direction is greyed), `views.panels.group-no-value` ("No value", the empty group), and its rows' own, `views.panels.list-move-keys` ("Left arrow for its grip, then up or down arrow to move it", how a computer's rows move), `views.panels.list-move-hold` ("Hold, then drag to move it", a phone's) and `views.panels.list-moved` (`{ label, at, of }`, "{label}, {at} of {of}", a move said), a grip named by `views.panels.sort-move` and a Switch's words by `views.panels.toggle-on` and `views.panels.toggle-off`; `CONTROLS.CustomizeBody`'s own (VK-840), `views.panels.customize-list` ("Customize", its list to a screen reader), `views.panels.customize-shown` ("Shown in the table", on a table), `views.panels.customize-shown-fields` ("Shown", on another layout) and `views.panels.customize-hidden` ("Hidden"), Columns' headings, `views.panels.customize-search` ("Search columns", a computer's) and `views.panels.customize-find` ("Find a column", a phone's), `views.panels.customize-no-column` (`{ words }`, "No column is named “{words}”"), `views.panels.customize-always-shown` ("Always shown", why the first column can't hide), `views.panels.customize-view-name` ("The view's name", its box), `views.panels.customize-unavailable` ("Not available", a disabled row's reason where your `menus.customize` hands none, VK-1062), `views.panels.customize-layout-button` (`{ name }`, "Layout: {name}", the layout's button beside the name), `views.panels.customize-layout-settings` (`{ name }`, "{name} settings", a layout's settings to a screen reader), `views.panels.customize-share` ("Share the view", its footer) and `views.panels.column-settings` (`{ label }`, "{label} settings", the › opening a column's own settings); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.filter-no-options` ("Nothing to pick.", a field with no value to pick), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), `CONTROLS.QuickFiltersBody`'s own (VK-724), `views.panels.quick-clear-value` ("Clear filter", a held value's words before its count), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-relation-rows` ("Which related records", the any/none/every choice as one row of your `menus.filterEditor`, VK-1063), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
|
|
1283
1290
|
The selection bar's words are under `views.selection.*`: `views.selection.count` (`{ count }`, "3 selected",
|
|
1284
1291
|
the phone sheet's title), `views.selection.selected` (the word after the count the bar draws),
|
|
1285
1292
|
`views.selection.deselect-all` (the count chip), `views.selection.clear` (the phone's ✕),
|