viewkitjs 0.39.0 → 0.40.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 +65 -0
- package/MIGRATION.md +25 -0
- package/fields/dist/derived.d.ts +7 -0
- package/fields/dist/derived.js +4 -0
- package/fields/dist/index.d.ts +1 -1
- package/fields/dist/index.js +1 -1
- package/fields/dist/messages.d.ts +5 -1
- package/fields/dist/messages.js +3 -0
- package/fields/dist/query/evaluate.d.ts +7 -1
- package/fields/dist/query/evaluate.js +8 -5
- package/fields/dist/query/filter.d.ts +7 -0
- package/fields/dist/query/filter.js +7 -1
- package/fields/dist/query/kit.d.ts +3 -2
- package/fields/dist/query/kit.js +1 -1
- package/fields/dist/query/layer.d.ts +6 -0
- package/fields/dist/query/layer.js +3 -0
- package/fields/dist/query/number.d.ts +3 -2
- package/fields/dist/query/number.js +5 -3
- package/fields/dist/query/read-rule.d.ts +1 -1
- package/fields/dist/query/read-rule.js +3 -0
- package/fields/docs/guides/queries.md +28 -24
- package/fields/docs/reference/fields.md +1 -0
- package/fields/docs/reference/query.md +6 -4
- package/package.json +2 -4
- package/postgres/dist/check.js +3 -1
- package/postgres/dist/definitions/storage.d.ts +3 -1
- package/postgres/dist/definitions/storage.js +3 -1
- package/postgres/dist/definitions/stored.js +13 -2
- package/postgres/dist/map.d.ts +5 -1
- package/postgres/dist/map.js +4 -0
- package/postgres/dist/records.js +6 -1
- package/postgres/docs/guides/definitions.md +1 -1
- package/postgres/docs/guides/field-map.md +2 -2
- package/postgres/docs/reference/postgres.md +1 -1
- package/views/dist/contract.d.ts +20 -2
- package/views/dist/contract.js +27 -0
- package/views/dist/controls/avatar.css +1 -1
- package/views/dist/controls/customize/map-customize-body.js +1 -1
- package/views/dist/controls/field/field.d.ts +2 -14
- package/views/dist/controls/field/field.js +4 -9
- package/views/dist/controls/filter-editor/filter-editor.d.ts +2 -0
- package/views/dist/controls/filter-editor/filter-editor.js +5 -2
- package/views/dist/controls/filter-editor/how.d.ts +8 -0
- package/views/dist/controls/filter-editor/map-filter-body.d.ts +4 -2
- package/views/dist/controls/filter-editor/map-filter-body.js +17 -8
- package/views/dist/controls/filter-editor/map-rules.d.ts +4 -3
- package/views/dist/controls/filter-editor/map-rules.js +5 -2
- package/views/dist/controls/filter-editor/parts.d.ts +14 -1
- package/views/dist/controls/filter-editor/parts.js +14 -0
- package/views/dist/controls/filter-editor.css +4 -1
- package/views/dist/controls/index.d.ts +0 -3
- package/views/dist/controls/index.js +0 -3
- package/views/dist/controls/input.css +1 -1
- package/views/dist/controls/menu-list.css +1 -1
- package/views/dist/controls/picker/looks.d.ts +1 -1
- package/views/dist/controls/picker.css +2 -2
- package/views/dist/controls/press.css +0 -1
- package/views/dist/controls/radio/radio.d.ts +1 -1
- package/views/dist/controls/radio/radio.js +1 -16
- package/views/dist/controls/sheet/bottom-sheet.d.ts +2 -2
- package/views/dist/controls/sheet/bottom-sheet.js +31 -24
- package/views/dist/controls/text-editor.css +5 -3
- package/views/dist/controls/tokens.js +0 -6
- package/views/dist/controls/toolbar/toolbar.js +2 -2
- package/views/dist/field-row/editors/RowTextEditor.js +4 -1
- package/views/dist/filters/duration-bound.d.ts +7 -0
- package/views/dist/filters/duration-bound.js +9 -0
- package/views/dist/filters/filter-model.d.ts +4 -0
- package/views/dist/filters/number-refused.d.ts +8 -0
- package/views/dist/filters/number-refused.js +4 -0
- package/views/dist/grid/chrome/grid-table-props.d.ts +4 -1
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +12 -2
- package/views/dist/grid/core/clipboard-model.js +42 -8
- package/views/dist/grid/core/commit-model.d.ts +3 -0
- package/views/dist/grid/core/editing-controller.d.ts +29 -1
- package/views/dist/grid/core/editing-controller.js +142 -12
- package/views/dist/grid/core/pending-reconciliation.d.ts +14 -0
- package/views/dist/grid/core/pending-reconciliation.js +20 -8
- package/views/dist/grid/core/save-path.d.ts +4 -2
- package/views/dist/grid/core/save-path.js +1 -1
- package/views/dist/grid/core/spreadsheet-operations.js +43 -5
- package/views/dist/grid/core/useGridEditing.d.ts +5 -1
- package/views/dist/grid/core/useGridEditing.js +4 -4
- package/views/dist/grid/core/written-alongside.d.ts +16 -0
- package/views/dist/grid/core/written-alongside.js +30 -0
- package/views/dist/grid/grid.css +1 -1
- package/views/dist/grid/index.d.ts +1 -1
- package/views/dist/grid/looks.d.ts +2 -2
- package/views/dist/internal/before-paint.d.ts +5 -0
- package/views/dist/internal/before-paint.js +17 -0
- package/views/dist/internal/field-rows.d.ts +0 -8
- package/views/dist/internal/field-rows.js +1 -3
- package/views/dist/list/bar-keys.d.ts +3 -0
- package/views/dist/list/bar-keys.js +1 -0
- package/views/dist/list/buttons/clear-save.js +6 -2
- package/views/dist/list/buttons/new.d.ts +1 -1
- package/views/dist/list/buttons/new.js +14 -2
- package/views/dist/list/buttons/shared.d.ts +7 -1
- package/views/dist/list/buttons/shared.js +8 -2
- package/views/dist/list/buttons/views.js +6 -4
- package/views/dist/list/edits.d.ts +3 -1
- package/views/dist/list/layer.d.ts +13 -3
- package/views/dist/list/layer.js +13 -3
- package/views/dist/list/line.d.ts +5 -2
- package/views/dist/list/line.js +11 -3
- package/views/dist/list/list.d.ts +7 -1
- package/views/dist/list/list.js +2 -2
- package/views/dist/list/panels/filter-bar.d.ts +1 -1
- package/views/dist/list/panels/filter-bar.js +9 -3
- package/views/dist/list/panels/shared.d.ts +3 -2
- package/views/dist/list/panels/shared.js +5 -2
- package/views/dist/list/root-base.d.ts +2 -1
- package/views/dist/list/root-base.js +5 -3
- package/views/dist/list/root.d.ts +1 -1
- package/views/dist/list/store.d.ts +10 -0
- package/views/dist/list/store.js +8 -1
- package/views/dist/list/toolbar-model.d.ts +4 -0
- package/views/dist/list/toolbar-model.js +19 -1
- package/views/dist/list/toolbar.js +2 -1
- package/views/dist/list/views.d.ts +1 -1
- package/views/dist/list/views.js +4 -1
- package/views/dist/looks/index.d.ts +0 -1
- package/views/dist/looks/index.js +0 -1
- package/views/dist/looks/looks.d.ts +1 -1
- package/views/dist/looks/pieces.js +0 -2
- package/views/dist/model/column-filters.js +10 -3
- package/views/dist/model/view-rules.js +1 -0
- package/views/dist/panels/filter/NumberFilterBody.js +6 -8
- package/views/dist/panels/labels.js +7 -2
- package/views/dist/panels/model.d.ts +3 -0
- package/views/dist/panels/react/filter/filter-body.js +5 -1
- package/views/dist/panels/react/toolbar/ToolbarBarSorts.js +28 -1
- package/views/dist/panels/react/toolbar/ToolbarButton.d.ts +1 -1
- package/views/dist/panels/react/toolbar/ToolbarButton.js +5 -3
- package/views/dist/panels/react/toolbar/context.d.ts +4 -0
- package/views/dist/panels/react/toolbar/context.js +1 -0
- package/views/dist/panels/react/toolbar/use-give-way.js +2 -2
- package/views/dist/panels/settings/filter-groups.js +5 -0
- package/views/dist/panels/settings/input.d.ts +11 -0
- package/views/dist/panels/settings/layout.js +26 -0
- package/views/dist/panels/settings/person.d.ts +15 -0
- package/views/dist/panels/settings/person.js +6 -0
- package/views/dist/panels/toolbar/page-resets.js +14 -3
- package/views/dist/provider/components.d.ts +12 -3
- package/views/dist/styles.css +16 -260
- package/views/dist/styles.unlayered.css +16 -260
- package/views/docs/contract.md +9 -7
- package/views/docs/controls/field.md +1 -1
- package/views/docs/guides/looks.md +1 -1
- package/views/docs/guides/the-grid.md +4 -2
- package/views/docs/guides/toolbar-parts.md +337 -0
- package/views/docs/index.md +4 -0
- package/views/docs/reference/controls.md +3 -41
- package/views/docs/reference/grid.md +4 -3
- package/views/docs/reference/list.md +24 -13
- package/views/docs/reference/looks.md +12 -15
- package/views/docs/reference/panels.md +1 -1
- package/views/docs/reference/react.md +3 -3
- package/views/docs/reference/views.md +1 -1
- package/views/dist/controls/setting-row/looks.d.ts +0 -10
- package/views/dist/controls/setting-row/looks.js +0 -22
- package/views/dist/controls/setting-row/setting-row.d.ts +0 -102
- package/views/dist/controls/setting-row/setting-row.js +0 -135
- package/views/dist/controls/setting-row/tokens.d.ts +0 -156
- package/views/dist/controls/setting-row/tokens.js +0 -41
- package/views/dist/controls/setting-row.css +0 -216
- package/views/dist/controls/switch-row/switch-row.d.ts +0 -1
- package/views/dist/controls/switch-row/switch-row.js +0 -1
- package/views/dist/controls/switch-row/tokens.d.ts +0 -39
- package/views/dist/controls/switch-row/tokens.js +0 -12
- package/views/dist/controls/switch-row.css +0 -35
- package/views/dist/controls/tag-field/tag-field.d.ts +0 -24
- package/views/dist/controls/tag-field/tag-field.js +0 -25
- package/views/dist/controls/tag-field/tokens.d.ts +0 -23
- package/views/dist/controls/tag-field/tokens.js +0 -8
- package/views/dist/controls/tag-field.css +0 -32
- package/views/docs/controls/setting-row.md +0 -44
- package/views/docs/controls/switch-row.md +0 -15
- package/views/docs/controls/tag-field.md +0 -11
|
@@ -21,6 +21,8 @@ Guide: [queries](../guides/queries.md), for every section on this page.
|
|
|
21
21
|
- `filterPartsFor` — the parts of a type's value a rule may name.
|
|
22
22
|
- `operatorsFor` — the operators a type offers, for a part when one is named: text-like types open on contains, a place offers operators only on one of its parts, and a range's end takes number's operators.
|
|
23
23
|
- `operatorsForField` — the operators a field offers, read off its result for a derived field; none for a result that is one amount per currency code.
|
|
24
|
+
- `comparesNumber` — whether an operator compares a number: every number operator but Is empty and Is not empty.
|
|
25
|
+
- `refusesNumberRule` — whether a rule with this operator on this field is refused: it compares a number over money whose currency is each row's own and that nothing reads in one currency, so it filters nothing and the list says why (`filter.mixed-currency`). Its third argument says the reader reads the field in one currency.
|
|
24
26
|
- `defaultOperator` — the operator a new rule on a type, or on one of its parts, opens on.
|
|
25
27
|
- `filterValueSchema` — the Zod schema of the value a type and operator store: what a route validates and an editor emits. A value still being typed is accepted, a wrong one is not: a number between, or a range's end between, with an end still empty holds `null` there.
|
|
26
28
|
- `ruleIsActive` — says whether a rule filters at all: a half-typed rule, a set-aside one, or one naming a part the type does not have, filters nothing.
|
|
@@ -61,7 +63,7 @@ Guide: [queries](../guides/queries.md), for every section on this page.
|
|
|
61
63
|
- `numberFilterInputs` — how many boxes a number operator needs: none, one or two.
|
|
62
64
|
- `numberFilterOperatorLabel` — a number operator's name in the host's words.
|
|
63
65
|
- `isNumberRuleActive` — says whether a number rule is complete enough to filter; a half-typed between is not.
|
|
64
|
-
- `numberRuleLabel` — a number rule's summary, such as `> 100` or `100 – 500`, at the column's decimals and with its unit.
|
|
66
|
+
- `numberRuleLabel` — a number rule's summary, such as `> 100` or `100 – 500`, at the column's decimals and with its unit; given the unit a duration is kept in, its bounds as the duration box writes them (`> 1m 30s`).
|
|
65
67
|
- `matchesNumberRule` — judges a value against a number rule: equality rounds both sides to the column's displayed decimals, zero is a value, never empty, and `neq` keeps an empty value. Text is read as the number it spells; with `exact`, for a field that keeps decimal text, its canonical text is compared exactly, as digits.
|
|
66
68
|
- `ruleDecimalsOf` — the decimals a number rule's `eq` and `neq` round to on a field, as the grid works them out for its column: none for a whole number, percent, currency or range, else the decimals the field states (a rollup, formula or lookup read as the field it shows), else 0 for a percent and 2 for any other; on a range, either end's, as its cell draws it: none when whole, else the decimals it states, else 0 for a percent range and 2 for any other. Hand it as `matchesRule`'s `decimals` (or a reader's `decimalsOf`), and round at it in a query that translates rules, so a list filtered there keeps the rows the grid keeps.
|
|
67
69
|
- `parseDurationInput` — reads a typed duration (`500ms`, `90s`, `2m 30s`, `1h30m`) into milliseconds; a bare number is seconds, and anything it cannot read whole is null.
|
|
@@ -257,8 +259,8 @@ What a list asks its server for, and what comes back, checked the same way in th
|
|
|
257
259
|
- `listSettingsChangeSchema` — the change's schema, built part by part from the settings' own, so each part is checked as the settings check it. Refuses an unknown part and `null` on a part every list holds (the layout, the filter, the sorts, the columns, the look).
|
|
258
260
|
- `settingsChange` — what an edited value changes over a view: only the parts that differ, an optional part it drops as `null`. Equal values in another key order are no change, and a part set to `undefined` reads as absent.
|
|
259
261
|
- `applySettingsChange` — the view with a change applied. The values handed in are left as they are.
|
|
260
|
-
- `ListPersonalLayer` — a person's own layer over a shared view: their column widths by column id (a key, or `partKey(key, part)`), the groups they folded by bucket key, the layout they read the list in on a phone and their
|
|
261
|
-
- `listPersonalLayerSchema` — the layer's schema. Refuses any other key, a filter, a sort or a group among them, a width that isn't a whole number from 24 to 2,000, more than 200 widths, more than 500 folded groups and a group folded twice.
|
|
262
|
+
- `ListPersonalLayer` — a person's own layer over a shared view: their column widths by column id (a key, or `partKey(key, part)`), the groups they folded by bucket key, the layout they read the list in on a phone, their look, and their toolbar where the app lets them set it (`toolbar`: `bar`, `added` or `always`; `words`, `both`, `icon` or `word`; VK-1095). Nothing in it changes what the view shows, and Show counts is the view's alone.
|
|
263
|
+
- `listPersonalLayerSchema` — the layer's schema. Refuses any other key, a filter, a sort or a group among them, any key in `toolbar` but `bar` and `words` and any value of theirs not listed, a width that isn't a whole number from 24 to 2,000, more than 200 widths, more than 500 folded groups and a group folded twice.
|
|
262
264
|
- `ListSettingsSeen` — the settings a person sees (`settings`), every width they see by column id (`widths`, columns the settings don't list included) and the groups they folded (`folded`).
|
|
263
265
|
- `applyPersonalLayer` — the settings with a person's layer over them: their look over the view's key by key, their width on each listed column, and with `{ phone: true }` their phone layout when they chose one. The values handed in are left as they are.
|
|
264
266
|
- `seenListSettings` — a saved view, then what changed, then a person's layer: the settings that person sees, the same in every app.
|
|
@@ -348,7 +350,7 @@ What a list asks its server for, and what comes back, checked the same way in th
|
|
|
348
350
|
## `evaluateView` and the query kit
|
|
349
351
|
|
|
350
352
|
- `ViewQuery` — a view's query as data: its filter tree, its search, a quick-filter hold on top of the filter, its sorts, its grouping, and whether rows are ordered by the sorts or by hand, with the hand-placed positions.
|
|
351
|
-
- `ViewFieldReader` — how the evaluator reads rows: the field for a key, the display value of a field on a row, optionally the displayed decimals, optionally the currency a read amount is in, and optionally the records a row's relation holds, so a rule across it is answered in memory.
|
|
353
|
+
- `ViewFieldReader` — how the evaluator reads rows: the field for a key, the display value of a field on a row, optionally the displayed decimals, optionally the currency a read amount is in, optionally whether it reads a money field in one currency (`oneCurrency`, so a number rule over it compares), and optionally the records a row's relation holds, so a rule across it is answered in memory.
|
|
352
354
|
- `recordReaderFor` — one row as a filter tree reads it, through a view's reader: what a reader's `related` hands back for each far row.
|
|
353
355
|
- `evaluateView` — runs a view over the rows in memory: filters them under the filter and the hold (`withHold`) when they have active rules and narrows them by the search when it has words (a pasted id finding its record when the host names each row's id), sorts them by the sorts or by hand, and splits them into buckets when the view is grouped by a group not set aside. It returns the rows and the buckets, or no buckets. Asked for the figures of some keys, it also answers them for the kept rows and for each bucket.
|
|
354
356
|
- `countMatching` — counts the rows a filter tree keeps.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewkitjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "ViewKit — typed fields, the grid and its editors, and a list's SQL for record lists, in one package: viewkitjs/fields, viewkitjs/views and viewkitjs/postgres. By Sheaf.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -288,8 +288,6 @@
|
|
|
288
288
|
"bench:chip": "node views/bench/chip-check.ts",
|
|
289
289
|
"bench:views-row": "node views/bench/views-row-check.ts",
|
|
290
290
|
"bench:shift": "node views/bench/shift-check.ts",
|
|
291
|
-
"bench:title-click": "node views/bench/title-click-check.ts"
|
|
292
|
-
"styles:defaults": "node views/styles/defaults.ts",
|
|
293
|
-
"bench:stylesheet": "node views/bench/stylesheet-check.ts"
|
|
291
|
+
"bench:title-click": "node views/bench/title-click-check.ts"
|
|
294
292
|
}
|
|
295
293
|
}
|
package/postgres/dist/check.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConventions, isMultipleType } from "viewkitjs/fields";
|
|
2
|
-
import { filterPartsFor, filterValueSchema, operatorsForField, ruleIsActive, whereWaits, } from "viewkitjs/fields/query";
|
|
2
|
+
import { filterPartsFor, filterValueSchema, operatorsForField, refusesNumberRule, ruleIsActive, whereWaits, } from "viewkitjs/fields/query";
|
|
3
3
|
import { fieldsOf, isOneRelation } from "./map.js";
|
|
4
4
|
import { readableField } from "./readable.js";
|
|
5
5
|
import { REFUSALS } from "./refusals.js";
|
|
@@ -267,6 +267,8 @@ function groupChecker(reader, context, ownWhere) {
|
|
|
267
267
|
};
|
|
268
268
|
if (!ruleIsActive(type, rule))
|
|
269
269
|
return null;
|
|
270
|
+
if (refusesNumberRule(def, operator))
|
|
271
|
+
return null;
|
|
270
272
|
if (ownWhere && type === "phone")
|
|
271
273
|
throw REFUSALS.notYet(key, "a phone rule in a relation's own where", path);
|
|
272
274
|
if (ownWhere && (type === "date" || type === "datetime") && operator !== "is_empty" && operator !== "is_not_empty")
|
|
@@ -50,13 +50,15 @@ string
|
|
|
50
50
|
readonly path: readonly string[];
|
|
51
51
|
}
|
|
52
52
|
/** Several values as rows of a kind of their own: the column holding the record's key, the column holding a value,
|
|
53
|
-
*
|
|
53
|
+
* the boolean column marking a record's main one (`main`), which a sort by the field reads, and the column holding each
|
|
54
|
+
* row's label (`label`). Naming either, a read gives each row as `{ value, label, main }`, the main first. */
|
|
54
55
|
| {
|
|
55
56
|
readonly rows: {
|
|
56
57
|
readonly kind: string;
|
|
57
58
|
readonly record: string;
|
|
58
59
|
readonly value: string;
|
|
59
60
|
readonly main?: string;
|
|
61
|
+
readonly label?: string;
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
/** Several records through a link kind: its column holding this record's key, its column holding the other's. */
|
|
@@ -359,12 +359,14 @@ function checkForm(path, kind, def, form, kinds) {
|
|
|
359
359
|
const rows = form.rows;
|
|
360
360
|
if (!isRecord(rows))
|
|
361
361
|
throw new StorageError(path, NO_FORM);
|
|
362
|
-
onlyKeys(path, rows, ["kind", "record", "value", "main"]);
|
|
362
|
+
onlyKeys(path, rows, ["kind", "record", "value", "main", "label"]);
|
|
363
363
|
isKind(path, rows.kind);
|
|
364
364
|
name(path, rows.record);
|
|
365
365
|
name(path, rows.value);
|
|
366
366
|
if (rows.main !== undefined)
|
|
367
367
|
name(path, rows.main);
|
|
368
|
+
if (rows.label !== undefined)
|
|
369
|
+
name(path, rows.label);
|
|
368
370
|
return;
|
|
369
371
|
}
|
|
370
372
|
if ("through" in form) {
|
|
@@ -36,11 +36,22 @@ export function placeStored(at) {
|
|
|
36
36
|
}
|
|
37
37
|
if (isForm(form, "rows")) {
|
|
38
38
|
const rowsTable = at.farTable(form.rows.kind);
|
|
39
|
-
const { record, value, main } = form.rows;
|
|
40
|
-
return placed({
|
|
39
|
+
const { record, value, main, label } = form.rows;
|
|
40
|
+
return placed({
|
|
41
|
+
stored: "text",
|
|
42
|
+
several: {
|
|
43
|
+
kept: "rows",
|
|
44
|
+
table: rowsTable,
|
|
45
|
+
record,
|
|
46
|
+
value,
|
|
47
|
+
...(main === undefined ? {} : { main }),
|
|
48
|
+
...(label === undefined ? {} : { label }),
|
|
49
|
+
},
|
|
50
|
+
}, [
|
|
41
51
|
{ table: rowsTable, column: record },
|
|
42
52
|
{ table: rowsTable, column: value },
|
|
43
53
|
...(main === undefined ? [] : [{ table: rowsTable, column: main }]),
|
|
54
|
+
...(label === undefined ? [] : [{ table: rowsTable, column: label }]),
|
|
44
55
|
]);
|
|
45
56
|
}
|
|
46
57
|
}
|
package/postgres/dist/map.d.ts
CHANGED
|
@@ -99,7 +99,9 @@ export type RelationMap = {
|
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
* How a field of several values keeps them: an array column, a json array, or rows of their own. Rows of their own may
|
|
102
|
-
* name their main mark (`main`): a boolean column, or your condition over the row, which a sort by the field reads
|
|
102
|
+
* name their main mark (`main`): a boolean column, or your condition over the row, which a sort by the field reads; and
|
|
103
|
+
* each row's label (`label`), a column or your expression read as text. Naming either, a read gives each row as an item
|
|
104
|
+
* `{ value, label, main }`, the main first, then by the row's key.
|
|
103
105
|
*/
|
|
104
106
|
export type Several = {
|
|
105
107
|
readonly kept: "array";
|
|
@@ -111,6 +113,8 @@ export type Several = {
|
|
|
111
113
|
readonly record: string;
|
|
112
114
|
readonly value: string;
|
|
113
115
|
readonly main?: Read;
|
|
116
|
+
/** Each row's label, a column or your expression, read as text; NULL is no label. */
|
|
117
|
+
readonly label?: Read;
|
|
114
118
|
/** At most one row per record holds the main mark, as a unique index on the record where main keeps it: a sort by
|
|
115
119
|
* the field reads the main row through one join. Your write path keeps that. */
|
|
116
120
|
readonly oneMain?: true;
|
package/postgres/dist/map.js
CHANGED
|
@@ -402,6 +402,7 @@ export function defineFieldMap(input) {
|
|
|
402
402
|
name(`${path}.several.record`, several.record);
|
|
403
403
|
name(`${path}.several.value`, several.value);
|
|
404
404
|
read(`${path}.several.main`, several.main);
|
|
405
|
+
read(`${path}.several.label`, several.label);
|
|
405
406
|
const oneMain = Reflect.get(several, "oneMain");
|
|
406
407
|
if (oneMain !== undefined && oneMain !== true)
|
|
407
408
|
throw new FieldMapError(`${path}.several.oneMain`, "give true, or leave it out");
|
|
@@ -415,6 +416,9 @@ export function defineFieldMap(input) {
|
|
|
415
416
|
else if (several !== undefined && Reflect.get(several, "pick") !== undefined) {
|
|
416
417
|
throw new FieldMapError(`${path}.several.pick`, "only rows of their own are picked out of a shared table");
|
|
417
418
|
}
|
|
419
|
+
else if (several !== undefined && Reflect.get(several, "label") !== undefined) {
|
|
420
|
+
throw new FieldMapError(`${path}.several.label`, "only rows of their own name a label: a list's items carry their own");
|
|
421
|
+
}
|
|
418
422
|
else if (several !== undefined && (Reflect.get(several, "main") !== undefined || Reflect.get(several, "oneMain") !== undefined)) {
|
|
419
423
|
throw new FieldMapError(`${path}.several.${Reflect.get(several, "main") !== undefined ? "main" : "oneMain"}`, "only rows of their own name a main mark: a list's main is its item marked main, else its first value");
|
|
420
424
|
}
|
package/postgres/dist/records.js
CHANGED
|
@@ -89,7 +89,12 @@ export function valueJson(scope, main, key, field) {
|
|
|
89
89
|
const found = elementsOn(scope, main, key);
|
|
90
90
|
const rows = found.row;
|
|
91
91
|
const element = type === "phone" && mapping.parts !== undefined ? phoneJson(rows, field, key, found.element) : found.element;
|
|
92
|
-
|
|
92
|
+
if (several.label === undefined && several.main === undefined)
|
|
93
|
+
return sql `COALESCE((SELECT json_agg(${element} ORDER BY ${rows.row.key}) FROM ${found.from} WHERE ${found.ties}), '[]'::json)`;
|
|
94
|
+
const marked = several.main === undefined ? sql `false` : sql `COALESCE((${readSql(rows, several.main, key)}), false)`;
|
|
95
|
+
const label = several.label === undefined ? sql `NULL::text` : sql `(${readSql(rows, several.label, key)})::text`;
|
|
96
|
+
const item = sql `json_build_object('value', ${element}, 'label', ${label}, 'main', ${marked})`;
|
|
97
|
+
return sql `COALESCE((SELECT json_agg(${item} ORDER BY ${marked} DESC, ${rows.row.key}) FROM ${found.from} WHERE ${found.ties}), '[]'::json)`;
|
|
93
98
|
}
|
|
94
99
|
if (several?.kept === "json") {
|
|
95
100
|
const items = elementsOf(scope, paren(listSql(scope, main, key)), "json");
|
|
@@ -15,7 +15,7 @@ An `AppStorage` names each kind of record you keep, by the name your index gives
|
|
|
15
15
|
- `{ column, from: { kind, value } }`: a select, a status or a text of one value kept as another kind's record, a status kept as a code table's row id for instance: `column` holds that record's key, and the field's value is its `value` column, read as text. The kind is declared like a link kind (its table, key and soft-delete column, no definitions), read as `far:<kind>` under the condition you hand for it, through one join: an empty id, one no record holds, and one whose record is hidden or in the trash read as no value. It filters, sorts, groups and counts by that value;
|
|
16
16
|
- `{ parts }`: a name, a place, a range or a phone, each part's column;
|
|
17
17
|
- `{ json, path }`: a member of a `jsonb` column by its path of keys (`[]` is the column itself, a list for a field of several values);
|
|
18
|
-
- `{ rows: { kind, record, value, main? } }`: several values as rows of a kind of their own; `main`, the boolean column marking a record's main one, which a sort by the field reads;
|
|
18
|
+
- `{ rows: { kind, record, value, main?, label? } }`: several values as rows of a kind of their own; `main`, the boolean column marking a record's main one, which a sort by the field reads; `label`, the column holding each row's label; naming either, a read gives each row as `{ value, label, main }`, the main first;
|
|
19
19
|
- `{ through: { kind, from, to } }`: several records through a link kind.
|
|
20
20
|
- **`notKept`**: fields the table keeps nothing for.
|
|
21
21
|
- **`notNull`**: fields whose value is never NULL on a row of this kind (a number, a percent, a date, an instant or a yes-or-no), which sort by their direction alone, so one index serves them both ways (the field-map guide, *Ordering a page*). A field with a hand-written entry says it in its own mapping instead. Only the list's own kind carries it: a field read on a far record never does, as that record may be missing. A field kept in a `jsonb` member reads a member of another type as empty, so a `NOT NULL` column doesn't keep the promise for it unless every member holds the field's type. A built map names no `textSort` yet, so its text sorts in your database's own order.
|
|
@@ -46,7 +46,7 @@ assert.throws(
|
|
|
46
46
|
- **Relations.** A one relation (`column`: this table's column holds the other's key, or your expression over the row returns it, such as an id kept in a `jsonb` member), a many relation whose rows point back (`back`), or one through a link table (`through`). A relation field always reads its relation, so the record it points at is held to that table's own condition.
|
|
47
47
|
- **A relation's lead row.** A relation through a link table that names its `lead` (a boolean column of the link row, such as `is_main`, or your condition over it) reaches one record: the far record its lead row points at, a person's main company among all its companies. The lead is written inside the link's own reading, beside its pick, soft delete and condition. A sort, a group and a lookup through it join the lead row onto the record once, then its far record; a read by id probes the lead row by record, the page's keys first, then joins its far record; a rule and a search word probe the lead row by record, never through that join. A search over a lead link and another field (an `or`) is probed by record on a page, each lead row's far record by its key, so the page stops when it is full ("ana" over a name and a person's company, a million people: 363 ms → 4.4 ms); a word no record holds then reads every reachable record's lead row in turn (0.68 s → 3.4–5.0 s for a reader who sees the million). A total, capped or exact, reads the matching links once, as Postgres plans it. A record with no lead row, or one whose lead points at a record the reader may not see, has none. A second relation over the same link table, with no `lead`, reaches every link, for a rule across all of them.
|
|
48
48
|
- **A user read through its users' table.** A user field may read a relation of one record kept in a column of its row (`value: { relation: "owner" }`), to the table its users are kept in, which names a `label`. It is read as a user the builder builds is: its value is its id only while the reader may see that user, it sorts and is searched by that table's label through one join, and a read by id gives it as `{ id, label }`. It takes no `sort` or `search` of its own.
|
|
49
|
-
- **Parts, several values, sort and search.** A name, a place and a range are read from their `parts`, and a phone may be; a field of several values says how they are kept (`several`): an array column, a `jsonb` list, or rows of their own in one of the map's tables (`table`, the column holding the record's key, the column holding the value). `sort` and `search` name what a sort and a search read.
|
|
49
|
+
- **Parts, several values, sort and search.** A name, a place and a range are read from their `parts`, and a phone may be; a field of several values says how they are kept (`several`): an array column, a `jsonb` list, or rows of their own in one of the map's tables (`table`, the column holding the record's key, the column holding the value, and, when the rows keep them, each row's `label` and its `main` mark). `sort` and `search` name what a sort and a search read.
|
|
50
50
|
|
|
51
51
|
### Tables many kinds, fields or relations share
|
|
52
52
|
|
|
@@ -588,7 +588,7 @@ void answered(opened, async () => [
|
|
|
588
588
|
```
|
|
589
589
|
|
|
590
590
|
- **Which records.** Each record the reader may see comes back once, in the order you named it. A key your condition or the soft delete hides, one that can't be a key of the table, and one named twice after its first are left out; a key is matched as the database spells it (a uuid in any case). A filter and a search in the request narrow the records further: the selected rows a view still keeps. It reads 1,000 keys a statement (`VALUES_PAGE`), one step after another, with no cap, and needs the table's `keyStored`.
|
|
591
|
-
- **Each value, as ViewKit draws it.** A column or your expression as kept; an actor by its key (text that is no actor's key reads `null`); a value read from its parts as an object of the parts your map gives, a name with all three of `full`, `given` and `family`, one your map doesn't place `null`, and `null` when ViewKit reads it as empty (a name or a place whose parts are all null or blank, a range with neither end); a phone as a filter reads it: in international form (an E.164 number, an extension of digits or none) as `{ number, extension }`, `extension` null when your map places none, otherwise as its text as typed, its number, or, when that is blank, its plain value, and `null` when it has neither; several values as a list, an empty one for none (an array column holding NULL reads as none; a `jsonb` column holding one value reads as a list of one, JSON null or `""` as none; rows of their own in their key order, read under their own condition); a relation of one record as `{ id, label }`, its far record read under its own condition, and `null` when that record is hidden or deleted; a relation of several records as a list of them, in the order its links (or its far keys) come. A label is text, `""` when the far table names none or the record has none.
|
|
591
|
+
- **Each value, as ViewKit draws it.** A column or your expression as kept; an actor by its key (text that is no actor's key reads `null`); a value read from its parts as an object of the parts your map gives, a name with all three of `full`, `given` and `family`, one your map doesn't place `null`, and `null` when ViewKit reads it as empty (a name or a place whose parts are all null or blank, a range with neither end); a phone as a filter reads it: in international form (an E.164 number, an extension of digits or none) as `{ number, extension }`, `extension` null when your map places none, otherwise as its text as typed, its number, or, when that is blank, its plain value, and `null` when it has neither; several values as a list, an empty one for none (an array column holding NULL reads as none; a `jsonb` column holding one value reads as a list of one, JSON null or `""` as none; rows of their own in their key order, read under their own condition, or, when their map names a `label` or a `main`, as items `{ value, label, main }`, the cells' own shape: the rows `main` marks first, then the rest, each in key order, `label` read as text (NULL is none) and `main` false where the mark is NULL or unnamed); a relation of one record as `{ id, label }`, its far record read under its own condition, and `null` when that record is hidden or deleted; a relation of several records as a list of them, in the order its links (or its far keys) come. A label is text, `""` when the far table names none or the record has none.
|
|
592
592
|
- **What crosses the wire.** One JSON column a row, so every driver hands back the same thing: numbers and days come as Postgres writes JSON, read back as JavaScript reads JSON. An instant, kept as `timestamp` or `timestamptz`, comes as Postgres writes a `timestamptz` under UTC (`"2026-03-07T09:00:00.123456+00:00"`, the fraction's trailing zeros trimmed), whatever the connection's `TimeZone` or `DateStyle`: a timestamp without a zone holds UTC. One held as `infinity` or `-infinity`, or outside the years 1 to 9999, reads as `null`. A value kept as a double (`float8`) is written with 17 significant digits, so it reads back as the same double on any connection, whatever `extra_float_digits` it, its role or its database sets; NaN and the infinities come as the strings `"NaN"`, `"Infinity"` and `"-Infinity"`. The translator goes by the `stored` your map gives: an expression you declare `numeric` that hands back a double is written as Postgres writes it. Every value is worked out in the statement's projection, after your condition kept the row, so none is ever read on a row the reader may not see. A field your map doesn't hold is refused as `unknown-field`, and more than 10,000 fields in one request throw a `RangeError`.
|
|
593
593
|
|
|
594
594
|
## Counting and grouping
|
|
@@ -25,7 +25,7 @@ The one door. Guide: [the field map and the permission condition](../guides/fiel
|
|
|
25
25
|
- `Read` — a column of the row, or your own SQL over it. An expression is your own SQL, written as you wrote it: build it with sql from your own code, never from text a person typed; one that reads another table answers for access itself, and one that reads another field answers for that field's readers.
|
|
26
26
|
- `RelationMap` — a relation between two of the map's tables: one (`column`, a column or your expression over the row it starts from, returning the far key), many pointing back (`back`), or many through a link table (`through`), which may name the columns that pick one relation's links out of a table many relations share (`pick`), and its lead row (`lead`, a boolean column of the link row or your condition over it), which makes it reach one record.
|
|
27
27
|
- `Row` — a row the translator opened: `alias` is the plain name it was opened under (`vk_r0`), `column(name)` quotes a column under it, `key` is its key column.
|
|
28
|
-
- `Several` — how a field of several values keeps them: an array, a json array, or rows of their own, which may name their main mark (`main`, a boolean column or your condition over the row) for a sort by the main one, whether at most one row per record holds that mark (`oneMain: true`, your write path's promise), which reads the main rows through one join, and the columns that pick one field's rows out of a table many fields share (`pick`).
|
|
28
|
+
- `Several` — how a field of several values keeps them: an array, a json array, or rows of their own, which may name their main mark (`main`, a boolean column or your condition over the row) for a sort by the main one, and each row's `label` (a column or your expression, read as text); naming either, a read gives each row as `{ value, label, main }`, the main first, whether at most one row per record holds that mark (`oneMain: true`, your write path's promise), which reads the main rows through one join, and the columns that pick one field's rows out of a table many fields share (`pick`).
|
|
29
29
|
- `Stored` — the SQL type a value is kept as. A select or a status is kept as `text` or `uuid`.
|
|
30
30
|
- `REQUEST_LIMITS` — the most a list request compiles: 500 rules and groups in a filter, the root among them (`rules`); 32 levels deep, the root 1 and each group and each relation rule's `where` one deeper than the group holding it, a rule no level (`depth`); 50 search words (`searchWords`); 30,000 values a statement (`parameters`); 100,000 ids an `ids` request answers (`ids`). The filter counted is the one compiled, the quick-filter hold on top. An app lowers any on its map, never past these.
|
|
31
31
|
- `RequestLimits` — the caps a map holds (`FieldMap.limits`): ViewKit's, or lower where the app lowered them.
|
package/views/dist/contract.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export { VK_CONTROL_PRIVATE_FAMILIES, VK_CONTROL_TOKENS, VK_CONTROL_TOKENS_BY_PI
|
|
|
108
108
|
export type VkControlToken = import("./controls/tokens.js").ControlToken["name"];
|
|
109
109
|
/** THE GRID'S LOOK TOKENS: every name the grid's look stylesheet (`viewkitjs/views/grid.css`) reads beside the grid's own
|
|
110
110
|
* geometry, each with its kind and the Outright token it stands for (`grid-tokens.ts`). All optional, like the controls':
|
|
111
|
-
* the ready stylesheet declares each at
|
|
111
|
+
* the ready stylesheet declares each at ViewKit's default value, and an app declares one to change it. A name a control reads
|
|
112
112
|
* too is the same token there; `--vk-frozen-fade`, the shade a pinned column casts (Pinned edge, Fade), is the grid's alone. */
|
|
113
113
|
export { GRID_TOKENS as VK_GRID_TOKENS } from "./grid-tokens.js";
|
|
114
114
|
/** The primitives an app hands in through the provider. */
|
|
@@ -755,6 +755,8 @@ export type ViewsMessage = {
|
|
|
755
755
|
values: {
|
|
756
756
|
value: string;
|
|
757
757
|
};
|
|
758
|
+
} | {
|
|
759
|
+
key: "views.grid.paste-two-values";
|
|
758
760
|
} | {
|
|
759
761
|
key: "views.grid.paste-other-currency";
|
|
760
762
|
values: {
|
|
@@ -805,6 +807,8 @@ export type ViewsMessage = {
|
|
|
805
807
|
values: {
|
|
806
808
|
count: number;
|
|
807
809
|
};
|
|
810
|
+
} | {
|
|
811
|
+
key: "views.grid.changed-since";
|
|
808
812
|
} | {
|
|
809
813
|
key: "views.grid.saved-value";
|
|
810
814
|
} | {
|
|
@@ -1496,6 +1500,20 @@ export type ViewsMessage = {
|
|
|
1496
1500
|
key: "views.panels.card-fields";
|
|
1497
1501
|
} | {
|
|
1498
1502
|
key: "views.panels.phone-layout";
|
|
1503
|
+
} | {
|
|
1504
|
+
key: "views.panels.person-bar";
|
|
1505
|
+
} | {
|
|
1506
|
+
key: "views.panels.person-bar-added";
|
|
1507
|
+
} | {
|
|
1508
|
+
key: "views.panels.person-bar-always";
|
|
1509
|
+
} | {
|
|
1510
|
+
key: "views.panels.person-words";
|
|
1511
|
+
} | {
|
|
1512
|
+
key: "views.panels.person-words-both";
|
|
1513
|
+
} | {
|
|
1514
|
+
key: "views.panels.person-words-icon";
|
|
1515
|
+
} | {
|
|
1516
|
+
key: "views.panels.person-words-word";
|
|
1499
1517
|
} | {
|
|
1500
1518
|
key: "views.panels.sort-manual";
|
|
1501
1519
|
} | {
|
|
@@ -1934,7 +1952,7 @@ export type PlaceWordKey = Extract<ViewsMessageKey, `views.editors.place-${"regi
|
|
|
1934
1952
|
export declare function placeWordKey(kind: "region", word: RegionWord): PlaceWordKey;
|
|
1935
1953
|
export declare function placeWordKey(kind: "city", word: CityWord): PlaceWordKey;
|
|
1936
1954
|
export declare function placeWordKey(kind: "postal", word: PostalWord): PlaceWordKey;
|
|
1937
|
-
export declare const VIEWS_MESSAGE_KEYS: readonly ["views.editors.tag-remove", "views.editors.marker-resolve", "views.editors.marker-no-reason", "views.editors.range-low", "views.editors.range-high", "views.editors.name-given", "views.editors.name-family", "views.editors.name-full", "views.editors.values-add", "views.editors.values-label", "views.editors.values-main", "views.editors.values-make-main", "views.editors.values-remove", "views.editors.values-line-email", "views.editors.values-line-link", "views.editors.values-line-domain", "views.editors.values-card-line-email", "views.editors.values-card-line-link", "views.editors.values-card-line-domain", "views.editors.values-add-email", "views.editors.values-add-phone", "views.editors.values-add-link", "views.editors.values-add-domain", "views.editors.values-nth-email", "views.editors.values-nth-phone", "views.editors.values-nth-link", "views.editors.values-nth-domain", "views.editors.values-change", "views.editors.values-copy", "views.editors.values-move", "views.editors.values-label-is", "views.editors.values-no-label", "views.editors.values-label-search", "views.editors.values-label-find", "views.editors.values-country-code", "views.editors.values-country-is", "views.editors.values-country-code-is", "views.editors.values-back-to", "views.editors.values-label-work", "views.editors.values-label-personal", "views.editors.values-label-mobile", "views.editors.values-label-other", "views.editors.discard", "views.editors.save", "views.editors.back", "views.editors.open-email", "views.editors.open-phone", "views.editors.open-link", "views.editors.add-option", "views.editors.adding-option", "views.editors.add-failed", "views.editors.add-not-listed", "views.editors.place-country", "views.editors.place-country-search", "views.editors.place-change-country", "views.editors.place-region-search", "views.editors.place-line1", "views.editors.place-line2", "views.editors.name-shown-as", "views.editors.name-follows", "views.editors.name-own", "views.editors.name-own-mark", "views.editors.place-no-country", "views.editors.place-pick", "views.editors.place-search-for-region", "views.editors.place-no-region", "views.editors.place-find-country", "views.editors.place-find-region", "views.editors.place-choose-country", "views.editors.place-choose-region", "views.editors.place-street", "views.editors.place-street-number", "views.editors.place-street-short", "views.editors.place-line2-plain", "views.editors.place-postcode", "views.editors.number-increase", "views.editors.number-decrease", "views.editors.number-field", "views.editors.number-unit", "views.editors.number-find-currency", "views.editors.number-search-currency", "views.editors.number-find-unit", "views.editors.number-search-unit", "views.editors.number-unit-named", "views.editors.place-region-area", "views.editors.place-region-county", "views.editors.place-region-department", "views.editors.place-region-district", "views.editors.place-region-do-si", "views.editors.place-region-emirate", "views.editors.place-region-island", "views.editors.place-region-oblast", "views.editors.place-region-parish", "views.editors.place-region-prefecture", "views.editors.place-region-province", "views.editors.place-region-state", "views.editors.place-city-city", "views.editors.place-city-district", "views.editors.place-city-post-town", "views.editors.place-city-suburb", "views.editors.place-postal-eircode", "views.editors.place-postal-pin", "views.editors.place-postal-postal", "views.editors.place-postal-zip", "views.editors.place-required", "views.editors.place-region", "views.menus.part-row", "views.menus.sort-asc", "views.menus.sort-desc", "views.menus.sort-clear", "views.menus.group-by", "views.menus.ungroup", "views.menus.move-left", "views.menus.move-right", "views.menus.hide-column", "views.menus.format", "views.menus.date-style", "views.menus.show-time", "views.menus.duration-style", "views.menus.decimals", "views.menus.automatic", "views.menus.currency", "views.menus.percent-display", "views.menus.percent-display-option", "views.menus.colour", "views.menus.colours-reset", "views.menus.group-options", "views.menus.group-sort", "views.menus.search", "views.menus.not-now", "views.menus.group-show", "views.menus.group-count", "views.menus.group-hide", "views.menus.group-select", "views.menus.add-column-search", "views.menus.add-column-no-match", "views.menus.add-column-all-shown", "views.menus.add-column-all-shown-reason", "views.menus.copy", "views.menus.cut", "views.menus.paste", "views.menus.clear", "views.menus.range-not-clearable", "views.menus.loading", "views.menus.edit", "views.menus.row-open", "views.menus.row-select", "views.menus.row-delete", "views.menus.row-delete-confirm", "views.menus.row-delete-failed", "views.menus.row-menu", "views.menus.row-waiting", "views.menus.commands", "views.menus.commands-unnamed", "views.menus.figure-menu", "views.menus.column-menu", "views.grid.figure", "views.grid.figure-word", "views.grid.figure-pick", "views.grid.pager", "views.grid.pager-range", "views.grid.pager-size", "views.grid.pager-sizes", "views.grid.pager-previous", "views.grid.pager-next", "views.grid.add-column", "views.grid.loading", "views.grid.select-row", "views.grid.select-group", "views.grid.select-all", "views.grid.row-menu", "views.grid.group-expand", "views.grid.group-collapse", "views.grid.change-value", "views.grid.value", "views.grid.edit-value", "views.grid.read-only", "views.grid.read-only-why", "views.grid.locked", "views.grid.not-clearable", "views.grid.computed", "views.grid.cell-read-only", "views.grid.clear-none", "views.grid.clear-required", "views.grid.write-not-list", "views.grid.write-not-boolean", "views.grid.write-marker", "views.grid.write-not-email", "views.grid.write-not-url", "views.grid.write-not-link", "views.grid.write-not-linkable", "views.grid.paste-refused", "views.grid.paste-empty", "views.grid.paste-not-number", "views.grid.paste-not-duration", "views.grid.paste-not-date", "views.grid.paste-not-option", "views.grid.paste-ambiguous-option", "views.grid.paste-other-currency", "views.grid.paste-pick", "views.grid.paste-not-linkable", "views.grid.paste-not-range", "views.grid.paste-skipped", "views.grid.fill-skipped", "views.grid.commit-refused", "views.grid.commit-refused-many", "views.grid.changed-elsewhere", "views.grid.changed-elsewhere-cells", "views.grid.saved-value", "views.grid.saved-values", "views.grid.row-left", "views.display.just-now", "views.display.in", "views.display.today", "views.display.yesterday", "views.display.tomorrow", "views.display.month", "views.display.not-an-option", "views.display.needs-attention", "views.display.boolean", "views.display.show-all", "views.display.show-more", "views.display.show-less", "views.display.phone-extension", "views.display.phone-as-typed", "views.display.converted-from", "views.display.as-shown", "views.field-row.empty", "views.field-row.set", "views.panels.for-you", "views.panels.group-order-most", "views.panels.group-order-fewest", "views.panels.group-order-newest", "views.panels.group-order-oldest", "views.panels.group-order-alphabetical", "views.panels.group-order-reverse-alphabetical", "views.panels.group-order-reversed", "views.panels.group-order-default", "views.panels.group-order-count", "views.panels.group-order-name", "views.panels.group-order-manual", "views.panels.quantifier", "views.panels.join-or", "views.panels.join-and", "views.panels.relation-condition-options", "views.panels.relation-condition", "views.panels.relation-sentence", "views.panels.filter-unavailable", "views.panels.filter-not-offered", "views.panels.filter-fieldless", "views.panels.filter-all", "views.panels.relation-value-one", "views.panels.relation-value-many", "views.panels.filter-all-of", "views.panels.filter-selected", "views.panels.hidden-columns", "views.panels.boolean-checked", "views.panels.boolean-unchecked", "views.panels.boolean-not", "views.panels.where-field-title", "views.panels.related-records", "views.picker.searching", "views.picker.failed", "views.picker.failed-line", "views.picker.retry", "views.picker.none-typed", "views.picker.nothing-matches", "views.picker.create", "views.picker.create-button", "views.picker.loading-more", "views.picker.chosen", "views.picker.clear-all", "views.picker.selected", "views.picker.selected-count", "views.picker.selected-fixed", "views.picker.cancel", "views.picker.save", "views.picker.type-to-search", "views.picker.actions", "views.picker.back", "views.picker.row-actions", "views.picker.you", "views.picker.remove", "views.picker.show-every", "views.picker.show-all", "views.editors.links-search", "views.editors.links-roles", "views.editors.links-add", "views.editors.links-add-to", "views.editors.links-link", "views.editors.links-unlink", "views.editors.links-unlink-record", "views.editors.links-is-lead", "views.editors.links-edit", "views.editors.links-menu", "views.editors.links-field-at", "views.editors.links-search-roles", "views.editors.links-none", "views.editors.links-no-details", "views.editors.links-yes", "views.editors.links-no", "views.editors.links-all-linked", "views.editors.links-done", "views.panels.date-range-all", "views.panels.date-range-between", "views.panels.date-range-from", "views.panels.date-range-until", "views.panels.time-scope-custom", "views.panels.sort-value", "views.panels.sort-none", "views.panels.group-none", "views.panels.filter-count", "views.panels.direction", "views.panels.toggle-reset", "views.panels.toggle-reset-hint", "views.panels.search-clear", "views.panels.search-close", "views.panels.searching", "views.panels.view-private", "views.panels.view-reorder", "views.panels.view-count", "views.panels.views-more", "views.panels.views-more-list", "views.panels.view-change", "views.panels.view-fallback", "views.panels.views-search", "views.panels.views-find", "views.panels.views-list", "views.panels.views-shared", "views.panels.views-personal", "views.panels.views-none", "views.panels.view-create", "views.panels.view-create-row", "views.panels.view-menu", "views.panels.toast-undo", "views.panels.alert-failed", "views.panels.view-rename", "views.panels.view-rename-short", "views.panels.view-edit", "views.panels.view-private-toggle", "views.panels.view-save-everyone", "views.panels.view-save-new", "views.panels.view-copy-link-short", "views.panels.view-favorite", "views.panels.view-unfavorite", "views.panels.view-duplicate", "views.panels.view-duplicate-short", "views.panels.view-delete", "views.panels.view-keep-one", "views.panels.view-unsaved", "views.panels.view-this", "views.panels.view-rename-title", "views.panels.view-name", "views.panels.view-create-action", "views.panels.view-delete-title", "views.panels.view-deleted", "views.panels.view-copy-name", "views.panels.view-delete-stays", "views.panels.view-delete-goes", "views.panels.view-delete-goes-own", "views.panels.view-columns", "views.panels.show-counts", "views.panels.toolbar-new", "views.panels.toolbar-clear", "views.panels.toolbar-options", "views.panels.toolbar-more", "views.panels.toolbar-row", "views.panels.toolbar-bar", "views.panels.view-clear", "views.panels.view-save", "views.panels.view-save-own", "views.panels.edit-view", "views.panels.search", "views.panels.group-by", "views.panels.sort", "views.panels.sort-filter", "views.panels.date-by", "views.panels.hide-empty-groups", "views.panels.groups", "views.panels.groups-hide-all", "views.panels.groups-show-all", "views.panels.group-remove", "views.panels.group-empty", "views.panels.move", "views.panels.show", "views.panels.hide", "views.panels.columns-reset", "views.panels.column-visible", "views.panels.column-always-shown", "views.panels.column-last-shown", "views.panels.new-line-first", "views.panels.new-line-on", "views.panels.new-line-start", "views.panels.new-line-hidden", "views.panels.layout-options", "views.panels.layout-density", "views.panels.personal-reset", "views.panels.filter-placeholder", "views.panels.bound-value", "views.panels.bound-from", "views.panels.bound-to", "views.panels.relation-choice", "views.panels.relation-every-needs-where", "views.panels.where", "views.panels.filter-clear-saved", "views.panels.filter-no-options", "views.panels.toggle-on", "views.panels.toggle-off", "views.panels.date-range-clear", "views.panels.date-range-label", "views.panels.time-scope-label", "views.panels.date-start", "views.panels.date-end", "views.panels.date-placeholder", "views.panels.date-relative-note", "views.panels.date-operator", "views.panels.date-direction", "views.panels.date-unit", "views.panels.customize-title", "views.panels.back", "views.panels.close", "views.panels.clear-all", "views.panels.filter", "views.panels.layout", "views.panels.columns", "views.panels.columns-shown", "views.panels.column", "views.panels.column-settings", "views.panels.group", "views.panels.view-publish", "views.panels.view-reset", "views.panels.view-stale", "views.panels.view-stale-own", "views.panels.copy-link", "views.panels.export-csv", "views.panels.share", "views.panels.coming-soon", "views.panels.loading", "views.panels.layout-table", "views.panels.layout-list", "views.panels.layout-board", "views.panels.layout-calendar", "views.panels.layout-rows", "views.panels.layout-refused-calendar", "views.panels.layout-refused-board", "views.panels.look-vertical-borders", "views.panels.look-row-icon", "views.panels.look-freeze-identity", "views.panels.look-always-checkboxes", "views.panels.density-compact", "views.panels.density-default", "views.panels.density-spacious", "views.panels.board-field", "views.panels.calendar-field", "views.panels.card-fields", "views.panels.phone-layout", "views.panels.sort-manual", "views.panels.sorted-by", "views.panels.sort-more", "views.panels.sort-add-one", "views.panels.sort-add", "views.panels.sort-clear-all", "views.panels.sort-sorted", "views.panels.sort-max", "views.panels.sort-empty", "views.panels.sort-empty-line", "views.panels.sort-ascending", "views.panels.sort-descending", "views.panels.sort-direction", "views.panels.sort-field-named", "views.panels.sort-direction-named", "views.panels.sort-delete", "views.panels.sort-move", "views.panels.sort-remove", "views.panels.sort-actions", "views.panels.sort-search", "views.panels.sort-done", "views.panels.sort-field", "views.panels.sort-clear-all-sorts", "views.panels.sort-by-named", "views.panels.quick-filters", "views.panels.quick-fields", "views.panels.quick-search", "views.panels.quick-none", "views.panels.quick-value", "views.panels.quick-empty", "views.panels.quick-reminder", "views.panels.quick-more", "views.panels.quick-clear", "views.panels.quick-clear-value", "views.panels.advanced-filter", "views.panels.advanced-filter-set-aside", "views.panels.filter-join", "views.panels.filter-add", "views.panels.filter-clear-all-filters", "views.panels.filter-to-group", "views.panels.filter-delete-rule", "views.panels.filter-delete-group", "views.panels.filter-exclude", "views.panels.filter-exclude-needs-and", "views.panels.filter-excluded", "views.panels.filter-to-advanced", "views.panels.filter-field", "views.panels.filter-way", "views.panels.filter-value", "views.panels.filter-choose", "views.panels.filter-search", "views.panels.filter-relation-way", "views.panels.filter-relation-rows", "views.panels.filter-rule-actions", "views.panels.filter-group-actions", "views.panels.filter-set-aside-why", "views.panels.sort-set-aside-why", "views.panels.filter-set-aside-back", "views.panels.sort-set-aside-back", "views.panels.drag-instructions", "views.panels.drag-picked-up", "views.panels.drag-over", "views.panels.drag-not-over", "views.panels.drag-dropped-over", "views.panels.drag-dropped", "views.panels.drag-cancelled", "views.panels.put-back", "views.panels.filter-or-full", "views.panels.filter-too-deep", "views.panels.filter-too-many", "views.panels.filter-relation-gone", "views.panels.filter-empty", "views.panels.filter-empty-line", "views.panels.filter-clear-all", "views.panels.filter-done", "views.panels.filter-waits", "views.panels.filter-way-words", "views.panels.filter-far-field", "views.panels.filter-rule-words", "views.panels.filter-add-one", "views.panels.filter-delete", "views.panels.filter-more", "views.panels.filter-more-named", "views.panels.filter-group-list", "views.panels.filter-rule-named", "views.panels.filter-way-named", "views.panels.filter-choose-date", "views.panels.filter-type-number", "views.panels.filter-type-value", "views.panels.filter-from-named", "views.panels.filter-to-named", "views.panels.filter-checked", "views.panels.filter-unchecked", "views.panels.filter-kit-way", "views.panels.group-order", "views.panels.group-date-step", "views.panels.group-order-own", "views.panels.group-own-no-direction", "views.panels.group-no-value", "views.panels.list-move-keys", "views.panels.list-move-hold", "views.panels.list-moved", "views.panels.group-order-date", "views.panels.group-order-lifecycle", "views.panels.granularity-relative", "views.panels.granularity-due", "views.panels.granularity-day", "views.panels.granularity-week", "views.panels.granularity-month", "views.panels.granularity-year", "views.panels.customize-list", "views.panels.customize-shown", "views.panels.customize-shown-fields", "views.panels.customize-hidden", "views.panels.customize-search", "views.panels.customize-find", "views.panels.customize-no-column", "views.panels.customize-always-shown", "views.panels.customize-view-name", "views.panels.customize-unavailable", "views.panels.customize-layout-button", "views.panels.customize-layout-settings", "views.panels.customize-share", "views.selection.count", "views.selection.selected", "views.selection.deselect-all", "views.selection.clear", "views.selection.delete", "views.selection.more", "views.selection.more-label", "views.selection.more-none", "views.selection.actions", "views.selection.sheet-label", "views.selection.escape", "views.selection.many", "views.selection.bar-label", "views.selection.delete-many", "views.selection.delete-ask", "views.selection.noun-one", "views.selection.noun-other", "views.selection.bar-count", "views.selection.clear-the", "views.selection.delete-button", "views.selection.cant-use", "views.panels.toast-region"];
|
|
1955
|
+
export declare const VIEWS_MESSAGE_KEYS: readonly ["views.editors.tag-remove", "views.editors.marker-resolve", "views.editors.marker-no-reason", "views.editors.range-low", "views.editors.range-high", "views.editors.name-given", "views.editors.name-family", "views.editors.name-full", "views.editors.values-add", "views.editors.values-label", "views.editors.values-main", "views.editors.values-make-main", "views.editors.values-remove", "views.editors.values-line-email", "views.editors.values-line-link", "views.editors.values-line-domain", "views.editors.values-card-line-email", "views.editors.values-card-line-link", "views.editors.values-card-line-domain", "views.editors.values-add-email", "views.editors.values-add-phone", "views.editors.values-add-link", "views.editors.values-add-domain", "views.editors.values-nth-email", "views.editors.values-nth-phone", "views.editors.values-nth-link", "views.editors.values-nth-domain", "views.editors.values-change", "views.editors.values-copy", "views.editors.values-move", "views.editors.values-label-is", "views.editors.values-no-label", "views.editors.values-label-search", "views.editors.values-label-find", "views.editors.values-country-code", "views.editors.values-country-is", "views.editors.values-country-code-is", "views.editors.values-back-to", "views.editors.values-label-work", "views.editors.values-label-personal", "views.editors.values-label-mobile", "views.editors.values-label-other", "views.editors.discard", "views.editors.save", "views.editors.back", "views.editors.open-email", "views.editors.open-phone", "views.editors.open-link", "views.editors.add-option", "views.editors.adding-option", "views.editors.add-failed", "views.editors.add-not-listed", "views.editors.place-country", "views.editors.place-country-search", "views.editors.place-change-country", "views.editors.place-region-search", "views.editors.place-line1", "views.editors.place-line2", "views.editors.name-shown-as", "views.editors.name-follows", "views.editors.name-own", "views.editors.name-own-mark", "views.editors.place-no-country", "views.editors.place-pick", "views.editors.place-search-for-region", "views.editors.place-no-region", "views.editors.place-find-country", "views.editors.place-find-region", "views.editors.place-choose-country", "views.editors.place-choose-region", "views.editors.place-street", "views.editors.place-street-number", "views.editors.place-street-short", "views.editors.place-line2-plain", "views.editors.place-postcode", "views.editors.number-increase", "views.editors.number-decrease", "views.editors.number-field", "views.editors.number-unit", "views.editors.number-find-currency", "views.editors.number-search-currency", "views.editors.number-find-unit", "views.editors.number-search-unit", "views.editors.number-unit-named", "views.editors.place-region-area", "views.editors.place-region-county", "views.editors.place-region-department", "views.editors.place-region-district", "views.editors.place-region-do-si", "views.editors.place-region-emirate", "views.editors.place-region-island", "views.editors.place-region-oblast", "views.editors.place-region-parish", "views.editors.place-region-prefecture", "views.editors.place-region-province", "views.editors.place-region-state", "views.editors.place-city-city", "views.editors.place-city-district", "views.editors.place-city-post-town", "views.editors.place-city-suburb", "views.editors.place-postal-eircode", "views.editors.place-postal-pin", "views.editors.place-postal-postal", "views.editors.place-postal-zip", "views.editors.place-required", "views.editors.place-region", "views.menus.part-row", "views.menus.sort-asc", "views.menus.sort-desc", "views.menus.sort-clear", "views.menus.group-by", "views.menus.ungroup", "views.menus.move-left", "views.menus.move-right", "views.menus.hide-column", "views.menus.format", "views.menus.date-style", "views.menus.show-time", "views.menus.duration-style", "views.menus.decimals", "views.menus.automatic", "views.menus.currency", "views.menus.percent-display", "views.menus.percent-display-option", "views.menus.colour", "views.menus.colours-reset", "views.menus.group-options", "views.menus.group-sort", "views.menus.search", "views.menus.not-now", "views.menus.group-show", "views.menus.group-count", "views.menus.group-hide", "views.menus.group-select", "views.menus.add-column-search", "views.menus.add-column-no-match", "views.menus.add-column-all-shown", "views.menus.add-column-all-shown-reason", "views.menus.copy", "views.menus.cut", "views.menus.paste", "views.menus.clear", "views.menus.range-not-clearable", "views.menus.loading", "views.menus.edit", "views.menus.row-open", "views.menus.row-select", "views.menus.row-delete", "views.menus.row-delete-confirm", "views.menus.row-delete-failed", "views.menus.row-menu", "views.menus.row-waiting", "views.menus.commands", "views.menus.commands-unnamed", "views.menus.figure-menu", "views.menus.column-menu", "views.grid.figure", "views.grid.figure-word", "views.grid.figure-pick", "views.grid.pager", "views.grid.pager-range", "views.grid.pager-size", "views.grid.pager-sizes", "views.grid.pager-previous", "views.grid.pager-next", "views.grid.add-column", "views.grid.loading", "views.grid.select-row", "views.grid.select-group", "views.grid.select-all", "views.grid.row-menu", "views.grid.group-expand", "views.grid.group-collapse", "views.grid.change-value", "views.grid.value", "views.grid.edit-value", "views.grid.read-only", "views.grid.read-only-why", "views.grid.locked", "views.grid.not-clearable", "views.grid.computed", "views.grid.cell-read-only", "views.grid.clear-none", "views.grid.clear-required", "views.grid.write-not-list", "views.grid.write-not-boolean", "views.grid.write-marker", "views.grid.write-not-email", "views.grid.write-not-url", "views.grid.write-not-link", "views.grid.write-not-linkable", "views.grid.paste-refused", "views.grid.paste-empty", "views.grid.paste-not-number", "views.grid.paste-not-duration", "views.grid.paste-not-date", "views.grid.paste-not-option", "views.grid.paste-ambiguous-option", "views.grid.paste-two-values", "views.grid.paste-other-currency", "views.grid.paste-pick", "views.grid.paste-not-linkable", "views.grid.paste-not-range", "views.grid.paste-skipped", "views.grid.fill-skipped", "views.grid.commit-refused", "views.grid.commit-refused-many", "views.grid.changed-elsewhere", "views.grid.changed-elsewhere-cells", "views.grid.changed-since", "views.grid.saved-value", "views.grid.saved-values", "views.grid.row-left", "views.display.just-now", "views.display.in", "views.display.today", "views.display.yesterday", "views.display.tomorrow", "views.display.month", "views.display.not-an-option", "views.display.needs-attention", "views.display.boolean", "views.display.show-all", "views.display.show-more", "views.display.show-less", "views.display.phone-extension", "views.display.phone-as-typed", "views.display.converted-from", "views.display.as-shown", "views.field-row.empty", "views.field-row.set", "views.panels.for-you", "views.panels.group-order-most", "views.panels.group-order-fewest", "views.panels.group-order-newest", "views.panels.group-order-oldest", "views.panels.group-order-alphabetical", "views.panels.group-order-reverse-alphabetical", "views.panels.group-order-reversed", "views.panels.group-order-default", "views.panels.group-order-count", "views.panels.group-order-name", "views.panels.group-order-manual", "views.panels.quantifier", "views.panels.join-or", "views.panels.join-and", "views.panels.relation-condition-options", "views.panels.relation-condition", "views.panels.relation-sentence", "views.panels.filter-unavailable", "views.panels.filter-not-offered", "views.panels.filter-fieldless", "views.panels.filter-all", "views.panels.relation-value-one", "views.panels.relation-value-many", "views.panels.filter-all-of", "views.panels.filter-selected", "views.panels.hidden-columns", "views.panels.boolean-checked", "views.panels.boolean-unchecked", "views.panels.boolean-not", "views.panels.where-field-title", "views.panels.related-records", "views.picker.searching", "views.picker.failed", "views.picker.failed-line", "views.picker.retry", "views.picker.none-typed", "views.picker.nothing-matches", "views.picker.create", "views.picker.create-button", "views.picker.loading-more", "views.picker.chosen", "views.picker.clear-all", "views.picker.selected", "views.picker.selected-count", "views.picker.selected-fixed", "views.picker.cancel", "views.picker.save", "views.picker.type-to-search", "views.picker.actions", "views.picker.back", "views.picker.row-actions", "views.picker.you", "views.picker.remove", "views.picker.show-every", "views.picker.show-all", "views.editors.links-search", "views.editors.links-roles", "views.editors.links-add", "views.editors.links-add-to", "views.editors.links-link", "views.editors.links-unlink", "views.editors.links-unlink-record", "views.editors.links-is-lead", "views.editors.links-edit", "views.editors.links-menu", "views.editors.links-field-at", "views.editors.links-search-roles", "views.editors.links-none", "views.editors.links-no-details", "views.editors.links-yes", "views.editors.links-no", "views.editors.links-all-linked", "views.editors.links-done", "views.panels.date-range-all", "views.panels.date-range-between", "views.panels.date-range-from", "views.panels.date-range-until", "views.panels.time-scope-custom", "views.panels.sort-value", "views.panels.sort-none", "views.panels.group-none", "views.panels.filter-count", "views.panels.direction", "views.panels.toggle-reset", "views.panels.toggle-reset-hint", "views.panels.search-clear", "views.panels.search-close", "views.panels.searching", "views.panels.view-private", "views.panels.view-reorder", "views.panels.view-count", "views.panels.views-more", "views.panels.views-more-list", "views.panels.view-change", "views.panels.view-fallback", "views.panels.views-search", "views.panels.views-find", "views.panels.views-list", "views.panels.views-shared", "views.panels.views-personal", "views.panels.views-none", "views.panels.view-create", "views.panels.view-create-row", "views.panels.view-menu", "views.panels.toast-undo", "views.panels.alert-failed", "views.panels.view-rename", "views.panels.view-rename-short", "views.panels.view-edit", "views.panels.view-private-toggle", "views.panels.view-save-everyone", "views.panels.view-save-new", "views.panels.view-copy-link-short", "views.panels.view-favorite", "views.panels.view-unfavorite", "views.panels.view-duplicate", "views.panels.view-duplicate-short", "views.panels.view-delete", "views.panels.view-keep-one", "views.panels.view-unsaved", "views.panels.view-this", "views.panels.view-rename-title", "views.panels.view-name", "views.panels.view-create-action", "views.panels.view-delete-title", "views.panels.view-deleted", "views.panels.view-copy-name", "views.panels.view-delete-stays", "views.panels.view-delete-goes", "views.panels.view-delete-goes-own", "views.panels.view-columns", "views.panels.show-counts", "views.panels.toolbar-new", "views.panels.toolbar-clear", "views.panels.toolbar-options", "views.panels.toolbar-more", "views.panels.toolbar-row", "views.panels.toolbar-bar", "views.panels.view-clear", "views.panels.view-save", "views.panels.view-save-own", "views.panels.edit-view", "views.panels.search", "views.panels.group-by", "views.panels.sort", "views.panels.sort-filter", "views.panels.date-by", "views.panels.hide-empty-groups", "views.panels.groups", "views.panels.groups-hide-all", "views.panels.groups-show-all", "views.panels.group-remove", "views.panels.group-empty", "views.panels.move", "views.panels.show", "views.panels.hide", "views.panels.columns-reset", "views.panels.column-visible", "views.panels.column-always-shown", "views.panels.column-last-shown", "views.panels.new-line-first", "views.panels.new-line-on", "views.panels.new-line-start", "views.panels.new-line-hidden", "views.panels.layout-options", "views.panels.layout-density", "views.panels.personal-reset", "views.panels.filter-placeholder", "views.panels.bound-value", "views.panels.bound-from", "views.panels.bound-to", "views.panels.relation-choice", "views.panels.relation-every-needs-where", "views.panels.where", "views.panels.filter-clear-saved", "views.panels.filter-no-options", "views.panels.toggle-on", "views.panels.toggle-off", "views.panels.date-range-clear", "views.panels.date-range-label", "views.panels.time-scope-label", "views.panels.date-start", "views.panels.date-end", "views.panels.date-placeholder", "views.panels.date-relative-note", "views.panels.date-operator", "views.panels.date-direction", "views.panels.date-unit", "views.panels.customize-title", "views.panels.back", "views.panels.close", "views.panels.clear-all", "views.panels.filter", "views.panels.layout", "views.panels.columns", "views.panels.columns-shown", "views.panels.column", "views.panels.column-settings", "views.panels.group", "views.panels.view-publish", "views.panels.view-reset", "views.panels.view-stale", "views.panels.view-stale-own", "views.panels.copy-link", "views.panels.export-csv", "views.panels.share", "views.panels.coming-soon", "views.panels.loading", "views.panels.layout-table", "views.panels.layout-list", "views.panels.layout-board", "views.panels.layout-calendar", "views.panels.layout-rows", "views.panels.layout-refused-calendar", "views.panels.layout-refused-board", "views.panels.look-vertical-borders", "views.panels.look-row-icon", "views.panels.look-freeze-identity", "views.panels.look-always-checkboxes", "views.panels.density-compact", "views.panels.density-default", "views.panels.density-spacious", "views.panels.board-field", "views.panels.calendar-field", "views.panels.card-fields", "views.panels.phone-layout", "views.panels.person-bar", "views.panels.person-bar-added", "views.panels.person-bar-always", "views.panels.person-words", "views.panels.person-words-both", "views.panels.person-words-icon", "views.panels.person-words-word", "views.panels.sort-manual", "views.panels.sorted-by", "views.panels.sort-more", "views.panels.sort-add-one", "views.panels.sort-add", "views.panels.sort-clear-all", "views.panels.sort-sorted", "views.panels.sort-max", "views.panels.sort-empty", "views.panels.sort-empty-line", "views.panels.sort-ascending", "views.panels.sort-descending", "views.panels.sort-direction", "views.panels.sort-field-named", "views.panels.sort-direction-named", "views.panels.sort-delete", "views.panels.sort-move", "views.panels.sort-remove", "views.panels.sort-actions", "views.panels.sort-search", "views.panels.sort-done", "views.panels.sort-field", "views.panels.sort-clear-all-sorts", "views.panels.sort-by-named", "views.panels.quick-filters", "views.panels.quick-fields", "views.panels.quick-search", "views.panels.quick-none", "views.panels.quick-value", "views.panels.quick-empty", "views.panels.quick-reminder", "views.panels.quick-more", "views.panels.quick-clear", "views.panels.quick-clear-value", "views.panels.advanced-filter", "views.panels.advanced-filter-set-aside", "views.panels.filter-join", "views.panels.filter-add", "views.panels.filter-clear-all-filters", "views.panels.filter-to-group", "views.panels.filter-delete-rule", "views.panels.filter-delete-group", "views.panels.filter-exclude", "views.panels.filter-exclude-needs-and", "views.panels.filter-excluded", "views.panels.filter-to-advanced", "views.panels.filter-field", "views.panels.filter-way", "views.panels.filter-value", "views.panels.filter-choose", "views.panels.filter-search", "views.panels.filter-relation-way", "views.panels.filter-relation-rows", "views.panels.filter-rule-actions", "views.panels.filter-group-actions", "views.panels.filter-set-aside-why", "views.panels.sort-set-aside-why", "views.panels.filter-set-aside-back", "views.panels.sort-set-aside-back", "views.panels.drag-instructions", "views.panels.drag-picked-up", "views.panels.drag-over", "views.panels.drag-not-over", "views.panels.drag-dropped-over", "views.panels.drag-dropped", "views.panels.drag-cancelled", "views.panels.put-back", "views.panels.filter-or-full", "views.panels.filter-too-deep", "views.panels.filter-too-many", "views.panels.filter-relation-gone", "views.panels.filter-empty", "views.panels.filter-empty-line", "views.panels.filter-clear-all", "views.panels.filter-done", "views.panels.filter-waits", "views.panels.filter-way-words", "views.panels.filter-far-field", "views.panels.filter-rule-words", "views.panels.filter-add-one", "views.panels.filter-delete", "views.panels.filter-more", "views.panels.filter-more-named", "views.panels.filter-group-list", "views.panels.filter-rule-named", "views.panels.filter-way-named", "views.panels.filter-choose-date", "views.panels.filter-type-number", "views.panels.filter-type-value", "views.panels.filter-from-named", "views.panels.filter-to-named", "views.panels.filter-checked", "views.panels.filter-unchecked", "views.panels.filter-kit-way", "views.panels.group-order", "views.panels.group-date-step", "views.panels.group-order-own", "views.panels.group-own-no-direction", "views.panels.group-no-value", "views.panels.list-move-keys", "views.panels.list-move-hold", "views.panels.list-moved", "views.panels.group-order-date", "views.panels.group-order-lifecycle", "views.panels.granularity-relative", "views.panels.granularity-due", "views.panels.granularity-day", "views.panels.granularity-week", "views.panels.granularity-month", "views.panels.granularity-year", "views.panels.customize-list", "views.panels.customize-shown", "views.panels.customize-shown-fields", "views.panels.customize-hidden", "views.panels.customize-search", "views.panels.customize-find", "views.panels.customize-no-column", "views.panels.customize-always-shown", "views.panels.customize-view-name", "views.panels.customize-unavailable", "views.panels.customize-layout-button", "views.panels.customize-layout-settings", "views.panels.customize-share", "views.selection.count", "views.selection.selected", "views.selection.deselect-all", "views.selection.clear", "views.selection.delete", "views.selection.more", "views.selection.more-label", "views.selection.more-none", "views.selection.actions", "views.selection.sheet-label", "views.selection.escape", "views.selection.many", "views.selection.bar-label", "views.selection.delete-many", "views.selection.delete-ask", "views.selection.noun-one", "views.selection.noun-other", "views.selection.bar-count", "views.selection.clear-the", "views.selection.delete-button", "views.selection.cant-use", "views.panels.toast-region"];
|
|
1938
1956
|
/** What an app hands in: its wording for every message. A resolver that words
|
|
1939
1957
|
* only some keys calls `resolveViewsMessage` for the rest; the provider does not. */
|
|
1940
1958
|
export type ViewsMessageResolver = (message: ViewsMessage) => string;
|
package/views/dist/contract.js
CHANGED
|
@@ -873,6 +873,7 @@ export const VIEWS_MESSAGE_KEYS = [
|
|
|
873
873
|
"views.grid.paste-not-date",
|
|
874
874
|
"views.grid.paste-not-option",
|
|
875
875
|
"views.grid.paste-ambiguous-option",
|
|
876
|
+
"views.grid.paste-two-values",
|
|
876
877
|
"views.grid.paste-other-currency",
|
|
877
878
|
"views.grid.paste-pick",
|
|
878
879
|
"views.grid.paste-not-linkable",
|
|
@@ -883,6 +884,7 @@ export const VIEWS_MESSAGE_KEYS = [
|
|
|
883
884
|
"views.grid.commit-refused-many",
|
|
884
885
|
"views.grid.changed-elsewhere",
|
|
885
886
|
"views.grid.changed-elsewhere-cells",
|
|
887
|
+
"views.grid.changed-since",
|
|
886
888
|
"views.grid.saved-value",
|
|
887
889
|
"views.grid.saved-values",
|
|
888
890
|
"views.grid.row-left",
|
|
@@ -1131,6 +1133,13 @@ export const VIEWS_MESSAGE_KEYS = [
|
|
|
1131
1133
|
"views.panels.calendar-field",
|
|
1132
1134
|
"views.panels.card-fields",
|
|
1133
1135
|
"views.panels.phone-layout",
|
|
1136
|
+
"views.panels.person-bar",
|
|
1137
|
+
"views.panels.person-bar-added",
|
|
1138
|
+
"views.panels.person-bar-always",
|
|
1139
|
+
"views.panels.person-words",
|
|
1140
|
+
"views.panels.person-words-both",
|
|
1141
|
+
"views.panels.person-words-icon",
|
|
1142
|
+
"views.panels.person-words-word",
|
|
1134
1143
|
"views.panels.sort-manual",
|
|
1135
1144
|
"views.panels.sorted-by",
|
|
1136
1145
|
"views.panels.sort-more",
|
|
@@ -1790,6 +1799,8 @@ export function resolveViewsMessage(message) {
|
|
|
1790
1799
|
return `“${message.values.value}” is not an option here`;
|
|
1791
1800
|
case "views.grid.paste-ambiguous-option":
|
|
1792
1801
|
return `“${message.values.value}” names more than one option`;
|
|
1802
|
+
case "views.grid.paste-two-values":
|
|
1803
|
+
return "A record shown twice can't take two different values";
|
|
1793
1804
|
case "views.grid.paste-other-currency":
|
|
1794
1805
|
return `This record is in ${message.values.currency}`;
|
|
1795
1806
|
case "views.grid.paste-pick":
|
|
@@ -1812,6 +1823,8 @@ export function resolveViewsMessage(message) {
|
|
|
1812
1823
|
return `${message.values.field} was changed elsewhere`;
|
|
1813
1824
|
case "views.grid.changed-elsewhere-cells":
|
|
1814
1825
|
return `${message.values.count} cells were changed elsewhere`;
|
|
1826
|
+
case "views.grid.changed-since":
|
|
1827
|
+
return "Changed by someone since";
|
|
1815
1828
|
case "views.grid.saved-value":
|
|
1816
1829
|
return "Showing the saved value.";
|
|
1817
1830
|
case "views.grid.saved-values":
|
|
@@ -2312,6 +2325,20 @@ export function resolveViewsMessage(message) {
|
|
|
2312
2325
|
return "Fields";
|
|
2313
2326
|
case "views.panels.phone-layout":
|
|
2314
2327
|
return "On your phone";
|
|
2328
|
+
case "views.panels.person-bar":
|
|
2329
|
+
return "Filter bar";
|
|
2330
|
+
case "views.panels.person-bar-added":
|
|
2331
|
+
return "Once added";
|
|
2332
|
+
case "views.panels.person-bar-always":
|
|
2333
|
+
return "Always";
|
|
2334
|
+
case "views.panels.person-words":
|
|
2335
|
+
return "Button words";
|
|
2336
|
+
case "views.panels.person-words-both":
|
|
2337
|
+
return "Icon and word";
|
|
2338
|
+
case "views.panels.person-words-icon":
|
|
2339
|
+
return "Icon";
|
|
2340
|
+
case "views.panels.person-words-word":
|
|
2341
|
+
return "Word";
|
|
2315
2342
|
case "views.panels.sort-manual":
|
|
2316
2343
|
return "Manual";
|
|
2317
2344
|
case "views.panels.sorted-by":
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
line as a record's icon is; a mark with no colour of its own (Codex's, Grok's) takes the text's ink, as the canvas drew it. */
|
|
60
60
|
.o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
|
|
61
61
|
/* On a phone an agent's square on its own colour stands bold, as iOS draws an app's tile (round 3 of the settings canvas): the hue
|
|
62
|
-
under a white letter, as
|
|
62
|
+
under a white letter, as iOS's Settings draws its icons; grey the quietest ink. A thing's, the workspace's included,
|
|
63
63
|
keeps the hue's fill. */
|
|
64
64
|
.o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
|
|
65
65
|
.o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
|
|
@@ -134,7 +134,7 @@ function CustomizeBodyInner(props) {
|
|
|
134
134
|
const sort = p.sort && { says: sortSaid ? `${sortSaid.first}${sortSaid.more ? ` +${sortSaid.more}` : ""}` : w.none, inForce: marked("sort") ?? !!sortSaid,
|
|
135
135
|
opens: sorting.body, level: levelOf(sorting) };
|
|
136
136
|
const filterHanded = { ...(p.filter ?? NO_FILTER), form: p.form, onDone: stay };
|
|
137
|
-
const map = useMapFilterBody(filterHanded, filterWords, say, views?.components.AppIcon, wayWord);
|
|
137
|
+
const map = useMapFilterBody(filterHanded, filterWords, say, views?.components.AppIcon, wayWord, views?.conventions);
|
|
138
138
|
const filtering = useFilterEditor({ ...(map.items && { items: map.items }), label: filterHanded.label, fields: map.kit.fields, filter: map.filter, levels: filterHanded.levels, form: editorForm, onFilterChange: map.change,
|
|
139
139
|
own: map.own, words: filterWords, clearAll });
|
|
140
140
|
const ruleCount = rulesOf(map.filter).length;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { type FieldRowsCard } from "../../internal/field-rows.js";
|
|
3
2
|
import { type FieldRowsLook } from "./looks.js";
|
|
4
3
|
/** A field's error, or several: none, one (written as it is), or a list (each once). */
|
|
5
4
|
export type FieldError = React.ReactNode | React.ReactNode[];
|
|
@@ -41,11 +40,9 @@ export interface FieldProps {
|
|
|
41
40
|
className?: string;
|
|
42
41
|
children: React.ReactNode;
|
|
43
42
|
}
|
|
44
|
-
/** A field: its label, its control (an Input or InputGroup, a select
|
|
43
|
+
/** A field: its label, its control (an Input or InputGroup, a select), and under it its note or its error. Placed in
|
|
45
44
|
* Field rows (VK-960), it is the card's row instead: its label in the row's column, its control beside it (an Input or InputGroup
|
|
46
|
-
* typed in place, their save mark at the row's end), and its note and error under the card.
|
|
47
|
-
* under its Fields option's At the end (VK-985), it is one of its setting rows: its label and note on the left, its control at the
|
|
48
|
-
* row's end. */
|
|
45
|
+
* typed in place, their save mark at the row's end), and its note and error under the card. */
|
|
49
46
|
export declare function Field(props: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
50
47
|
export interface FieldSetProps {
|
|
51
48
|
/** What the group asks or holds, above it ("Who can see this deal", "Billing address"). */
|
|
@@ -85,15 +82,6 @@ export interface FieldRowsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
85
82
|
* puts it. Server-rendered outside a PhoneHost and a ComputerHost, the card stands whole once for each screen, CSS showing the
|
|
86
83
|
* screen's until the page comes alive (`ScreenForms`, VK-1074), so a record's rows paint the phone's form on a phone. */
|
|
87
84
|
export declare function FieldRows(props: FieldRowsProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
-
/** Field rows' card as its Fields see it, and the foot to draw after it: FieldRows', and a setting rows' card on a phone (VK-979).
|
|
89
|
-
* Its Fields in the order they came (VK-960), and those with a note or an error to show; while any has one, its foot stands
|
|
90
|
-
* after the card, the card first, so a foot coming or going never redraws the card or moves the focus in it. In the foot each
|
|
91
|
-
* such Field has its own place, in the order the Fields came (the rows' order, unless a row came later), whatever order their
|
|
92
|
-
* notes came in. The card is handed to its Fields through FieldRowsCardContext by the one that draws it. */
|
|
93
|
-
export declare function useFieldRowsCard(): {
|
|
94
|
-
card: FieldRowsCard;
|
|
95
|
-
foot: React.ReactNode;
|
|
96
|
-
};
|
|
97
85
|
export type FieldRowsRowProps = {
|
|
98
86
|
label?: React.ReactNode;
|
|
99
87
|
labelClassName?: string;
|
|
@@ -5,7 +5,7 @@ import { Field as BaseField } from "@base-ui/react/field";
|
|
|
5
5
|
import { Fieldset as BaseFieldset } from "@base-ui/react/fieldset";
|
|
6
6
|
import { FieldRootContext, useFieldRootContext } from "@base-ui/react/internals/field-root-context";
|
|
7
7
|
import { cx } from "../../internal/cx.js";
|
|
8
|
-
import {
|
|
8
|
+
import { FieldRowsCardContext, InFieldRow, OutOfFieldRows } from "../../internal/field-rows.js";
|
|
9
9
|
import { ScreenForms } from "../../internal/screen-forms.js";
|
|
10
10
|
import { ComputerHost, PhoneHost, phoneMark, usePhoneForm } from "../internal/phone.js";
|
|
11
11
|
import { fieldRowsAttrs } from "./looks.js";
|
|
@@ -17,13 +17,8 @@ export function ErrorWords({ errors }) {
|
|
|
17
17
|
return errors.length > 1 ? _jsx("ul", { className: "o-field-errors", children: errors.map((e, i) => _jsx("li", { children: e }, i)) }) : _jsx(_Fragment, { children: errors[0] });
|
|
18
18
|
}
|
|
19
19
|
export function Field(props) {
|
|
20
|
-
const card = React.useContext(FieldRowsCardContext)
|
|
21
|
-
return card ? _jsx(FieldAsRow, { ...props, card: card }) :
|
|
22
|
-
}
|
|
23
|
-
function FieldAsSettingRow({ label, required = false, note, error, keepNote = false, disabled, nativeLabel = true, labelId, className, children, "data-slot": partSlot, "data-key": partKey }) {
|
|
24
|
-
const errors = errorsOf(error), invalid = errors.length > 0, name = typeof label === "string" ? label : undefined;
|
|
25
|
-
const end = React.useMemo(() => ({ name }), [name]);
|
|
26
|
-
return (_jsxs(BaseField.Root, { className: cx("o-setting-row o-setting-row-field", className), "data-slot": partSlot, "data-key": partKey, "data-setting-row-kind": "field", invalid: invalid, disabled: disabled, "data-kit": "field", children: [_jsxs("span", { className: "o-choice-text", children: [label != null && _jsxs(BaseField.Label, { className: "o-choice-label", id: labelId, ...(nativeLabel ? {} : { nativeLabel: false, render: _jsx("span", {}) }), children: [label, required && _jsx("span", { className: "o-field-req", "aria-hidden": "true", children: "*" })] }), note != null && (!invalid || keepNote) && _jsx(BaseField.Description, { className: "o-choice-note", children: note }), invalid && _jsx(BaseField.Error, { className: "o-choice-note o-setting-row-error", match: true, children: _jsx(ErrorWords, { errors: errors }) })] }), _jsx("span", { className: "o-setting-row-end", children: _jsx(SettingRowField.Provider, { value: false, children: _jsx(AtSettingRowEnd.Provider, { value: end, children: children }) }) })] }));
|
|
20
|
+
const card = React.useContext(FieldRowsCardContext);
|
|
21
|
+
return card ? _jsx(FieldAsRow, { ...props, card: card }) : _jsx(FieldBox, { ...props });
|
|
27
22
|
}
|
|
28
23
|
const useBeforePaint = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
29
24
|
function FieldAsRow({ card, label, required = false, note, error, disabled, nativeLabel = true, labelId, className, children, "data-slot": partSlot, "data-key": partKey }) {
|
|
@@ -61,7 +56,7 @@ function FieldRowsCardOf({ look, className, children, ...props }) {
|
|
|
61
56
|
const { card, foot } = useFieldRowsCard();
|
|
62
57
|
return (_jsxs(FieldRowsCardContext.Provider, { value: card, children: [_jsx("div", { className: cx("o-field-rows", className), "data-kit": "field", ...(look ? fieldRowsAttrs(look) : {}), ...props, children: children }), foot] }));
|
|
63
58
|
}
|
|
64
|
-
|
|
59
|
+
function useFieldRowsCard() {
|
|
65
60
|
const [order, setOrder] = React.useState([]);
|
|
66
61
|
const [needs, setNeeds] = React.useState(() => new Set());
|
|
67
62
|
const [slots, setSlots] = React.useState(() => new Map());
|
|
@@ -64,6 +64,8 @@ export interface FilterEditorProps {
|
|
|
64
64
|
/** ViewKit's own words and value body for a rule the kit has no box for (set aside, a way only ViewKit words, a field the kit
|
|
65
65
|
* doesn't list, a choice with no values); null where the kit draws the rule itself. */
|
|
66
66
|
own?: (rule: FilterRule) => FilterOwn | null;
|
|
67
|
+
/** Why a whole rule filters nothing, in words, drawn under its boxes (amounts in several currencies); null for most. */
|
|
68
|
+
note?: (rule: FilterRule) => string | null;
|
|
67
69
|
/** Whether the filter itself may exclude its matches (an advanced filter's own group): its foot gets a group's ⋮ too (VK-827). */
|
|
68
70
|
excludable?: boolean;
|
|
69
71
|
/** Its words; English unless handed. */
|