@ai-matrx/records-ui 0.116.24 → 0.116.25
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 +16 -1
- package/README.md +3 -3
- package/dist/SaveToTable-P3MPRSCW.js +20 -0
- package/dist/{chunk-MUK63ANA.js → chunk-4ZS4WEEE.js} +3 -3
- package/dist/chunk-4ZS4WEEE.js.map +1 -0
- package/dist/{chunk-SYHUPGCU.js → chunk-6Z537SLG.js} +1 -1
- package/dist/{chunk-SYHUPGCU.js.map → chunk-6Z537SLG.js.map} +1 -1
- package/dist/{chunk-ODABFEHG.js → chunk-7RSMA3NK.js} +3 -3
- package/dist/chunk-7RSMA3NK.js.map +1 -0
- package/dist/{chunk-VHZKLE63.js → chunk-FLIERNH7.js} +9 -9
- package/dist/chunk-FLIERNH7.js.map +1 -0
- package/dist/{chunk-ZNIXJ5RY.js → chunk-KQR2RA4V.js} +3 -3
- package/dist/{chunk-WQGFKNE2.js → chunk-OJTJ4HJI.js} +26 -26
- package/dist/chunk-OJTJ4HJI.js.map +1 -0
- package/dist/{chunk-PPWNFIJ5.js → chunk-OV6QBL5R.js} +2 -2
- package/dist/{chunk-PPWNFIJ5.js.map → chunk-OV6QBL5R.js.map} +1 -1
- package/dist/{chunk-5IX4BL72.js → chunk-QBMUTXTQ.js} +2 -2
- package/dist/{chunk-5IX4BL72.js.map → chunk-QBMUTXTQ.js.map} +1 -1
- package/dist/{chunk-MCDA6L7E.js → chunk-TC5S4VOW.js} +2 -2
- package/dist/chunk-TC5S4VOW.js.map +1 -0
- package/dist/{chunk-FECWKOWW.js → chunk-W7GR64CB.js} +1 -1
- package/dist/chunk-W7GR64CB.js.map +1 -0
- package/dist/{chunk-FHL4GG6R.js → chunk-WCQSJPLS.js} +2 -2
- package/dist/chunk-WCQSJPLS.js.map +1 -0
- package/dist/data-source.cjs.map +1 -1
- package/dist/data-source.d.cts +1 -1
- package/dist/data-source.d.ts +1 -1
- package/dist/data-source.js.map +1 -1
- package/dist/first-page.cjs.map +1 -1
- package/dist/first-page.d.cts +1 -1
- package/dist/first-page.d.ts +1 -1
- package/dist/first-page.js.map +1 -1
- package/dist/helpers.cjs +4 -4
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +9 -9
- package/dist/helpers.d.ts +9 -9
- package/dist/helpers.js +4 -4
- package/dist/helpers.js.map +1 -1
- package/dist/html-frame.cjs.map +1 -1
- package/dist/html-frame.d.cts +1 -1
- package/dist/html-frame.d.ts +1 -1
- package/dist/html-frame.js +1 -1
- package/dist/index.cjs +147 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -46
- package/dist/index.d.ts +46 -46
- package/dist/index.js +133 -102
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs +2 -2
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.js +3 -3
- package/dist/pickers.cjs +23 -23
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +8 -8
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.js +4 -4
- package/dist/table-shape.cjs.map +1 -1
- package/dist/table-shape.js +1 -1
- package/package.json +4 -4
- package/dist/SaveToTable-PGOQVYVS.js +0 -20
- package/dist/chunk-FECWKOWW.js.map +0 -1
- package/dist/chunk-FHL4GG6R.js.map +0 -1
- package/dist/chunk-MCDA6L7E.js.map +0 -1
- package/dist/chunk-MUK63ANA.js.map +0 -1
- package/dist/chunk-ODABFEHG.js.map +0 -1
- package/dist/chunk-VHZKLE63.js.map +0 -1
- package/dist/chunk-WQGFKNE2.js.map +0 -1
- /package/dist/{SaveToTable-PGOQVYVS.js.map → SaveToTable-P3MPRSCW.js.map} +0 -0
- /package/dist/{chunk-ZNIXJ5RY.js.map → chunk-KQR2RA4V.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare function useTablePresence(tableId: string): {
|
|
|
66
66
|
session: TablePresenceSession | null;
|
|
67
67
|
people: readonly TablePresencePerson[];
|
|
68
68
|
};
|
|
69
|
-
/** The stylesheet that outlines every other person's selected cell in their
|
|
69
|
+
/** The stylesheet that outlines every other person's selected cell in their color (ids are escaped by allow-list). */
|
|
70
70
|
declare function presenceOutlineCss(people: readonly TablePresencePerson[]): string;
|
|
71
71
|
declare function TablePresence({ tableId }: {
|
|
72
72
|
tableId: string;
|
|
@@ -132,7 +132,7 @@ declare function projectPx(lat: number, lng: number, zoom: number): {
|
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
134
|
* PINS THAT CROWD BECOME ONE BADGE. Greedy, in the order given (so a pin never jumps between
|
|
135
|
-
* clusters when the zoom moves a little): a pin joins the first cluster whose
|
|
135
|
+
* clusters when the zoom moves a little): a pin joins the first cluster whose center is within
|
|
136
136
|
* `radiusPx` on screen at this zoom, else starts its own. A cluster sits at its members' mean.
|
|
137
137
|
* Past `maxZoom` nothing merges — two pins on one doorstep stay two pins.
|
|
138
138
|
*/
|
|
@@ -338,7 +338,7 @@ interface EnrichBadgeProps {
|
|
|
338
338
|
* THE BADGE. Drawn beside every agent-owned value, always.
|
|
339
339
|
*
|
|
340
340
|
* The word on it is the state; `stale` rides along as a second, smaller word rather than a
|
|
341
|
-
*
|
|
341
|
+
* color, because "this is six weeks old" is a sentence and not a hue — a person reading a
|
|
342
342
|
* red cell has to be told what red means, and then told again next week.
|
|
343
343
|
*/
|
|
344
344
|
declare function EnrichBadge({ cell, onPin, className }: EnrichBadgeProps): react.JSX.Element | null;
|
|
@@ -842,7 +842,7 @@ interface RecordsUiHost {
|
|
|
842
842
|
* file picker — Airtable's "Attach" over your own files — rather than a second browser this
|
|
843
843
|
* package would invent. `multiple`: the column holds several files; `accept`: the native
|
|
844
844
|
* `accept` list, when the column restricts types. Resolves the host's file ids (the store turns
|
|
845
|
-
* each into its kernel File record at the write door), or `null` when the person
|
|
845
|
+
* each into its kernel File record at the write door), or `null` when the person canceled.
|
|
846
846
|
*
|
|
847
847
|
* Unbound, the editor offers `upload` alone; with neither bound it says no file store is bound
|
|
848
848
|
* (`NO_UPLOAD_REASON`) — never a dead button.
|
|
@@ -1069,8 +1069,8 @@ interface RecordsUiHost {
|
|
|
1069
1069
|
columnAccess?: (subject: ColumnAccessSubject) => ReactNode;
|
|
1070
1070
|
/**
|
|
1071
1071
|
* OPTIONAL. WHO ELSE IS LOOKING AT THIS TABLE (AIRTABLE-PARITY row 183). `join` opens the table's presence
|
|
1072
|
-
* room and answers the other people in it (name, avatar,
|
|
1073
|
-
* toolbar draws their avatars and the grid outlines each person's selected cell in their
|
|
1072
|
+
* room and answers the other people in it (name, avatar, color, the cell each has selected); the table's
|
|
1073
|
+
* toolbar draws their avatars and the grid outlines each person's selected cell in their color. The host
|
|
1074
1074
|
* owns the transport - matrx-frontend binds `createRecordsPresencePort` from `@ai-matrx/records/realtime` on its
|
|
1075
1075
|
* one realtime manager. Unbound, nothing is drawn (never a dead control).
|
|
1076
1076
|
*/
|
|
@@ -1158,7 +1158,7 @@ interface RecordsUiHost {
|
|
|
1158
1158
|
* a host normally opens its composer with it already typed, so the person
|
|
1159
1159
|
* edits rather than starts.
|
|
1160
1160
|
*
|
|
1161
|
-
* Unbound, the "Ask an agent" button is ABSENT — not
|
|
1161
|
+
* Unbound, the "Ask an agent" button is ABSENT — not grayed — and every
|
|
1162
1162
|
* builder's empty state says so in one sentence naming this port, with the
|
|
1163
1163
|
* hand-built way still right there. The product walk of 2026-09-21 found the
|
|
1164
1164
|
* opposite arrangement (the agent named and no builder at all), which left a
|
|
@@ -1411,7 +1411,7 @@ declare function machineIdentityIn(text: string): string[];
|
|
|
1411
1411
|
* a dropped connection, or an HTTP status like `404`). So the Checklists tab of
|
|
1412
1412
|
* a plumbing company's jobs table told its owner:
|
|
1413
1413
|
*
|
|
1414
|
-
* @ai-matrx/records did not
|
|
1414
|
+
* @ai-matrx/records did not recognize SQLSTATE from checklistTemplates
|
|
1415
1415
|
*
|
|
1416
1416
|
* The client no longer writes there. This is the guard on the other side, by
|
|
1417
1417
|
* SHAPE and not by that one sentence: a hint that talks about a package, a
|
|
@@ -1738,7 +1738,7 @@ interface Options {
|
|
|
1738
1738
|
*
|
|
1739
1739
|
* A level on the TABLE is not the answer for a row: the sixth-pass verdict
|
|
1740
1740
|
* found a record shared with a colleague at Editor inside a table she held at
|
|
1741
|
-
* Viewer, and the grid
|
|
1741
|
+
* Viewer, and the grid labeled the row "viewer" while the store let her
|
|
1742
1742
|
* write to it. Unbound, every row follows the table, which is what the
|
|
1743
1743
|
* ordinary case is.
|
|
1744
1744
|
*/
|
|
@@ -1968,7 +1968,7 @@ type GridPresentation = {
|
|
|
1968
1968
|
/**
|
|
1969
1969
|
* THE BOARD'S OWN LOOK (lane BOARD-SWIMLANES, Notion's board options). All kept on the view, all
|
|
1970
1970
|
* read only by the kanban layout. Absent means the board's default: columns wear their choice's
|
|
1971
|
-
*
|
|
1971
|
+
* color, each heading shows its count, empty columns and lanes are drawn, cards are medium with
|
|
1972
1972
|
* no preview.
|
|
1973
1973
|
* boardSize card size: sets the column width, the preview's height and, small, drops the card's extras
|
|
1974
1974
|
* boardPreview the FILE field drawn as a cover at the top of each card (absent = no preview)
|
|
@@ -2743,7 +2743,7 @@ declare const SAVE_TO_TABLE_TYPES: readonly GuessedFieldType[];
|
|
|
2743
2743
|
declare function shapesOfSource(source: SaveToTableSource): TableShape[];
|
|
2744
2744
|
declare function SaveToTable({ source, shapeIndex, onOpenTable, onSaved, onClose, makeAtOnce, className }: SaveToTableProps): react.JSX.Element;
|
|
2745
2745
|
|
|
2746
|
-
/** The three
|
|
2746
|
+
/** The three behaviors that carry no parity type of their own. */
|
|
2747
2747
|
type PlainFieldType = "text" | "long_text" | "number";
|
|
2748
2748
|
/**
|
|
2749
2749
|
* THE ONE A PERSON COMING FROM AIRTABLE REACHES FOR FIRST, AND IT WAS NOT HERE.
|
|
@@ -2757,7 +2757,7 @@ type PlainFieldType = "text" | "long_text" | "number";
|
|
|
2757
2757
|
* so the guide's section 3 told a person to pick a kind that did not exist.
|
|
2758
2758
|
*
|
|
2759
2759
|
* It is NOT a parity type of its own. `custom.parity_field_types()` ships
|
|
2760
|
-
* fourteen (the fourteenth is `checkbox`) and a relation is a
|
|
2760
|
+
* fourteen (the fourteenth is `checkbox`) and a relation is a BEHAVIOR — the same behavior `member` and
|
|
2761
2761
|
* `attachment` are made of — so it sits beside the three plain ones as its own
|
|
2762
2762
|
* word, and `parityTypesWithNoExplanation()` is unaffected by it in both
|
|
2763
2763
|
* directions: it does not appear there, and it cannot hide a real gap there.
|
|
@@ -2805,7 +2805,7 @@ declare function storePublishesKind(kind: string): boolean;
|
|
|
2805
2805
|
* Field whose expression is the system node (`fx.autonumber`, `fx.created_time`,
|
|
2806
2806
|
* `fx.modified_time`, `config.system` naming which), so nobody types into them and every reader
|
|
2807
2807
|
* that serves a worked-out value serves them. `custom.field_kinds()` does not publish them,
|
|
2808
|
-
* because each is a formula, not a
|
|
2808
|
+
* because each is a formula, not a behavior of its own. So they are named here, sent as their
|
|
2809
2809
|
* word through the `{ type }` arm, and a new autonumber column numbers the records already in
|
|
2810
2810
|
* the table through `custom.autonumber_backfill`.
|
|
2811
2811
|
*/
|
|
@@ -2827,7 +2827,7 @@ declare const FIELD_TYPE_CATALOGUE: FieldTypeChoice[];
|
|
|
2827
2827
|
declare const FIELD_TYPE_CHOICES: FieldTypeChoice[];
|
|
2828
2828
|
declare const FIELD_TYPE_GROUPS: FieldTypeChoice["group"][];
|
|
2829
2829
|
declare function fieldTypeChoice(id: string): FieldTypeChoice | undefined;
|
|
2830
|
-
/** The three that are a plain
|
|
2830
|
+
/** The three that are a plain behavior rather than one of the fourteen. */
|
|
2831
2831
|
declare function isPlainFieldType(id: string): id is PlainFieldType;
|
|
2832
2832
|
/**
|
|
2833
2833
|
* The one that is a relation a person aims themselves. It is neither plain nor
|
|
@@ -2855,7 +2855,7 @@ declare function isParityFieldType(id: string): id is ParityFieldType;
|
|
|
2855
2855
|
*
|
|
2856
2856
|
* `relation` is deliberately NOT one of the thirteen and therefore never
|
|
2857
2857
|
* appears in this answer: `PARITY_FIELD_TYPES` is the store's own generated
|
|
2858
|
-
* list and a
|
|
2858
|
+
* list and a behavior that carries no parity type is not in it.
|
|
2859
2859
|
*/
|
|
2860
2860
|
declare function parityTypesWithNoExplanation(): string[];
|
|
2861
2861
|
/**
|
|
@@ -3052,7 +3052,7 @@ type FieldEditorProps = FieldEditorCommon & ({
|
|
|
3052
3052
|
field?: Field | undefined;
|
|
3053
3053
|
/**
|
|
3054
3054
|
* DUPLICATE PROPERTY (Notion N5): a NEW column that starts as a copy of this one — its kind,
|
|
3055
|
-
* choices and
|
|
3055
|
+
* choices and colors, unit, link, formula and rules — named "<name> (1)". Ignored when
|
|
3056
3056
|
* `field` is given.
|
|
3057
3057
|
*/
|
|
3058
3058
|
copyOf?: Field | undefined;
|
|
@@ -3111,7 +3111,7 @@ declare const CONDITION_OPS: Array<{
|
|
|
3111
3111
|
* that they can.
|
|
3112
3112
|
*
|
|
3113
3113
|
* `field` is OPTIONAL and everything still works without it: a caller that passes only the
|
|
3114
|
-
* three strings gets exactly the old
|
|
3114
|
+
* three strings gets exactly the old behavior. Both callers in this package already hold
|
|
3115
3115
|
* the whole `Field` and were throwing it away one line before handing it over.
|
|
3116
3116
|
*/
|
|
3117
3117
|
interface ConditionField {
|
|
@@ -3425,7 +3425,7 @@ interface PickOrAddItem {
|
|
|
3425
3425
|
/** The tooltip; defaults to the label. */
|
|
3426
3426
|
title?: string | undefined;
|
|
3427
3427
|
/**
|
|
3428
|
-
* The item drawn AS A CHIP in these classes — a choice in the
|
|
3428
|
+
* The item drawn AS A CHIP in these classes — a choice in the color its column keeps for it
|
|
3429
3429
|
* (`choiceChipLookOf`), so the list reads the way the cell does. Absent: plain words.
|
|
3430
3430
|
*/
|
|
3431
3431
|
chip?: string | undefined;
|
|
@@ -3440,7 +3440,7 @@ interface PickOrAddItem {
|
|
|
3440
3440
|
interface PickOrAddChip {
|
|
3441
3441
|
id: string;
|
|
3442
3442
|
label: string;
|
|
3443
|
-
/** The chip's
|
|
3443
|
+
/** The chip's color classes (`choiceChipLookOf`); absent: the plain record chip. */
|
|
3444
3444
|
chip?: string | undefined;
|
|
3445
3445
|
/** Takes it off. Absent: the chip is shown and cannot be taken off here. */
|
|
3446
3446
|
onRemove?: (() => void) | undefined;
|
|
@@ -3594,7 +3594,7 @@ interface FieldEditorControlProps {
|
|
|
3594
3594
|
/**
|
|
3595
3595
|
* A GRID CELL'S PICKER OPENS AT ONCE (merged-grid review 2026-09-26, A2). One click on a selected
|
|
3596
3596
|
* choice, multi-choice or person cell opens its list directly — no inline Save/Cancel form that
|
|
3597
|
-
* grows the row.
|
|
3597
|
+
* grows the row. Honored by the choice and person pickers; every other control ignores it.
|
|
3598
3598
|
*/
|
|
3599
3599
|
autoOpen?: boolean | undefined;
|
|
3600
3600
|
/** The picker's list closed (a pick, Enter, Tab, a click away): the cell commits what is chosen. Escape is `onCancel`. */
|
|
@@ -3602,7 +3602,7 @@ interface FieldEditorControlProps {
|
|
|
3602
3602
|
/**
|
|
3603
3603
|
* WHAT THE PERSON TYPED TO OPEN A GRID CELL'S PICKER (merged-grid review 2, A2 — Airtable): a
|
|
3604
3604
|
* letter typed on a selected choice, multi-choice or person cell opens its list with that text
|
|
3605
|
-
* already in the search box.
|
|
3605
|
+
* already in the search box. Honored by the choice and person pickers.
|
|
3606
3606
|
*/
|
|
3607
3607
|
initialSearch?: string | undefined;
|
|
3608
3608
|
/** The control's own answer is final (a choice cell's Add / Keep as typed): commit it now. */
|
|
@@ -3647,10 +3647,10 @@ interface ChoiceListRow {
|
|
|
3647
3647
|
words: string;
|
|
3648
3648
|
/** A stable React key for a row that has no id yet. */
|
|
3649
3649
|
row: string;
|
|
3650
|
-
/** The
|
|
3650
|
+
/** The color it wears (`display_format.options.choices`); null or absent: none. */
|
|
3651
3651
|
color?: StyleColor | null | undefined;
|
|
3652
3652
|
}
|
|
3653
|
-
/** The rows a column's live options start as, in the store's order, each in the
|
|
3653
|
+
/** The rows a column's live options start as, in the store's order, each in the color its Field keeps. */
|
|
3654
3654
|
declare function choiceRowsFrom(options: readonly StoredRecord[], field?: Field): ChoiceListRow[];
|
|
3655
3655
|
/**
|
|
3656
3656
|
* WHAT A SAVE SENDS as `options`, or `undefined` when the list is what the store already holds
|
|
@@ -3829,7 +3829,7 @@ declare const PARITY_LABEL: Record<ParityFieldType, string>;
|
|
|
3829
3829
|
/** The "made of" sentence the store itself publishes, for the field editor's help text. */
|
|
3830
3830
|
declare const PARITY_MADE_OF: Record<string, string>;
|
|
3831
3831
|
/**
|
|
3832
|
-
* Plain text and plain number are
|
|
3832
|
+
* Plain text and plain number are behaviors with no parity type of their own.
|
|
3833
3833
|
*
|
|
3834
3834
|
* 🚨 THIS IS NOW AN ALIAS, AND THAT IS THE POINT (TAILS-3, 2026-09-21). The
|
|
3835
3835
|
* classifier moved into `@ai-matrx/records` as `FieldKind` so that the editor a
|
|
@@ -3841,7 +3841,7 @@ declare const PARITY_MADE_OF: Record<string, string>;
|
|
|
3841
3841
|
type EditorKind = FieldKind;
|
|
3842
3842
|
/**
|
|
3843
3843
|
* Which editor one Field wants. Reads the Field's own declaration only — the
|
|
3844
|
-
*
|
|
3844
|
+
* behavior, the modifiers, the format, the relation target and the config —
|
|
3845
3845
|
* because those are what the store stores, and a screen that guessed from a
|
|
3846
3846
|
* value would draw a different editor for an empty record.
|
|
3847
3847
|
*
|
|
@@ -3999,14 +3999,14 @@ declare function ShowListsToggle({ count, on, onChange, className, }: {
|
|
|
3999
3999
|
interface PlatformFieldSpec {
|
|
4000
4000
|
key: string;
|
|
4001
4001
|
label: string;
|
|
4002
|
-
/** FLD-1: one of the five
|
|
4002
|
+
/** FLD-1: one of the five behaviors. `text` covers the json-ish ones too. */
|
|
4003
4003
|
type: "text" | "range" | "list" | "relation" | "formula";
|
|
4004
4004
|
sort: number;
|
|
4005
4005
|
required?: boolean;
|
|
4006
4006
|
multi?: boolean;
|
|
4007
4007
|
config?: Record<string, unknown>;
|
|
4008
4008
|
/**
|
|
4009
|
-
* WHAT THE
|
|
4009
|
+
* WHAT THE BEHAVIOR ALONE CANNOT SAY, and what the declaring door refuses a
|
|
4010
4010
|
* column without. A `list` has to name its choices (FLD-5/FLD-6) and a
|
|
4011
4011
|
* `relation` has to name the Table it points at (FLD-11) — a package table
|
|
4012
4012
|
* that grew one of those without saying so here would be refused by name on
|
|
@@ -4273,7 +4273,7 @@ interface CalendarViewProps {
|
|
|
4273
4273
|
rows: readonly ReadRow$1[];
|
|
4274
4274
|
/** The column a record's day (and, when it carries one, its time) is read from and written to. */
|
|
4275
4275
|
dateField: Field$1;
|
|
4276
|
-
/** The table's columns, for the End and
|
|
4276
|
+
/** The table's columns, for the End and Color by pickers and the default color. */
|
|
4277
4277
|
fields?: readonly Field$1[] | undefined;
|
|
4278
4278
|
/** The fields each card shows after its title (the view's Card fields, v7 item 4). */
|
|
4279
4279
|
cardFields?: readonly Field$1[] | undefined;
|
|
@@ -4293,13 +4293,13 @@ interface CalendarViewProps {
|
|
|
4293
4293
|
onOpenRecord?: ((recordId: Uuid$1) => void) | undefined;
|
|
4294
4294
|
/** A move landed (or was undone, or refused): the host re-reads the rows it owns. */
|
|
4295
4295
|
onMoved?: (() => void) | undefined;
|
|
4296
|
-
/** The person picked a
|
|
4296
|
+
/** The person picked a Color by column: the host keeps it on the view (`presentation.style.colorBy`). */
|
|
4297
4297
|
onColorFieldChange?: ((key: string | null) => void) | undefined;
|
|
4298
4298
|
/** May this person make records here? Without it the calendar offers no way to add one. */
|
|
4299
4299
|
canCreate?: boolean | undefined;
|
|
4300
4300
|
/** The view's membership sentence (`useViewRecords().membership`). */
|
|
4301
4301
|
note?: string | undefined;
|
|
4302
|
-
/** The table's and the view's
|
|
4302
|
+
/** The table's and the view's colors (`resolveTableStyle`); its `colorBy` is the Color by column. */
|
|
4303
4303
|
style?: TableStyle | undefined;
|
|
4304
4304
|
/** How long a record with no End lasts in the week grid, in minutes. A knob; starts at an hour. */
|
|
4305
4305
|
defaultMinutes?: number | undefined;
|
|
@@ -4377,7 +4377,7 @@ interface OrgBox {
|
|
|
4377
4377
|
}
|
|
4378
4378
|
interface OrgLayout {
|
|
4379
4379
|
boxes: OrgBox[];
|
|
4380
|
-
/** Elbow lines: from a parent's bottom
|
|
4380
|
+
/** Elbow lines: from a parent's bottom center to a child's top center. */
|
|
4381
4381
|
edges: {
|
|
4382
4382
|
from: string;
|
|
4383
4383
|
to: string;
|
|
@@ -4389,7 +4389,7 @@ interface OrgLayout {
|
|
|
4389
4389
|
declare const ORG_CARD_W = 208;
|
|
4390
4390
|
declare const ORG_CARD_H = 76;
|
|
4391
4391
|
/**
|
|
4392
|
-
* Tidy tree: leaves take the next slot left to right, a parent sits
|
|
4392
|
+
* Tidy tree: leaves take the next slot left to right, a parent sits centerd over its children, roots
|
|
4393
4393
|
* sit side by side. A collapsed node's subtree is not laid out. Deterministic, no measuring.
|
|
4394
4394
|
*/
|
|
4395
4395
|
declare function layoutOrg(roots: readonly OrgNode[], collapsed: ReadonlySet<string>): OrgLayout;
|
|
@@ -4434,7 +4434,7 @@ interface TimelineViewProps {
|
|
|
4434
4434
|
/** The table the records live in — the undo history's table. */
|
|
4435
4435
|
tableId: Uuid$1;
|
|
4436
4436
|
rows: readonly ReadRow$1[];
|
|
4437
|
-
/** The table's columns: the pickers, the lanes and the
|
|
4437
|
+
/** The table's columns: the pickers, the lanes and the colors read them. */
|
|
4438
4438
|
fields: readonly Field$1[];
|
|
4439
4439
|
/** The far tables' columns, so a lookup of one date is offered as a Start or End (`useFarFields`). */
|
|
4440
4440
|
farFields?: FarFields | undefined;
|
|
@@ -4446,7 +4446,7 @@ interface TimelineViewProps {
|
|
|
4446
4446
|
endKey?: string | null | undefined;
|
|
4447
4447
|
/** The Group by column (`group_field`). Left out: no lanes. */
|
|
4448
4448
|
groupKey?: string | null | undefined;
|
|
4449
|
-
/** The
|
|
4449
|
+
/** The Color by column. Left out: the view's `style.colorBy`, else the table's one choice column. */
|
|
4450
4450
|
colorKey?: string | null | undefined;
|
|
4451
4451
|
/** A setting changed: the host keeps what it can on the view. */
|
|
4452
4452
|
onSettingsChange?: ((patch: Partial<TimelineSettings>) => void) | undefined;
|
|
@@ -4457,7 +4457,7 @@ interface TimelineViewProps {
|
|
|
4457
4457
|
onMoved?: (() => void) | undefined;
|
|
4458
4458
|
/** The view's membership sentence (`useViewRecords().membership`). */
|
|
4459
4459
|
note?: string | undefined;
|
|
4460
|
-
/** The table's and the view's
|
|
4460
|
+
/** The table's and the view's colors (`resolveTableStyle`). */
|
|
4461
4461
|
style?: TableStyle | undefined;
|
|
4462
4462
|
initialZoom?: TimelineZoom | undefined;
|
|
4463
4463
|
/** The day the timeline opens on; today when left out. `YYYY-MM-DD`. */
|
|
@@ -4474,7 +4474,7 @@ declare function onlyCandidate(candidates: readonly Field$1[]): string | null;
|
|
|
4474
4474
|
declare function groupableFields(all: readonly Field$1[]): Field$1[];
|
|
4475
4475
|
declare function TimelineView({ cardFields, tableId, rows, fields, farFields, titleField, startKey, endKey, groupKey, colorKey, onSettingsChange, layoutKept, onOpenRecord, onMoved, note, style, initialZoom, initialDate, className, gantt, onGanttChange, }: TimelineViewProps): react.JSX.Element;
|
|
4476
4476
|
|
|
4477
|
-
/** The
|
|
4477
|
+
/** The color of each record's card under `colorKey` (null: the table's own decorations only). */
|
|
4478
4478
|
declare function useRowColorBy(all: readonly Field$1[], colorKey: string | null, style?: TableStyle | undefined): (row: ReadRow$1) => StyleColor | null;
|
|
4479
4479
|
|
|
4480
4480
|
/** One cell a change touched: its value before and after, by Field key. */
|
|
@@ -4967,7 +4967,7 @@ declare function PortalLookEditor({ card, onSaved, className }: PortalLookEditor
|
|
|
4967
4967
|
interface AccentSwatchesProps {
|
|
4968
4968
|
value: PortalAccent | "";
|
|
4969
4969
|
onChange: (accent: PortalAccent | "") => void;
|
|
4970
|
-
/** The
|
|
4970
|
+
/** The colors the store accepts. Defaults to the shared seven. */
|
|
4971
4971
|
options?: readonly PortalAccent[] | undefined;
|
|
4972
4972
|
/** The words on the empty choice. */
|
|
4973
4973
|
noneLabel?: string | undefined;
|
|
@@ -5002,7 +5002,7 @@ interface FormLookView {
|
|
|
5002
5002
|
}>;
|
|
5003
5003
|
}
|
|
5004
5004
|
declare function formLookView(style: Partial<PortalStyle> | null | undefined, fallbackName: string): FormLookView;
|
|
5005
|
-
/** The logo tile: the business's picture, or its first letter on its
|
|
5005
|
+
/** The logo tile: the business's picture, or its first letter on its color. */
|
|
5006
5006
|
declare function FormLookLogo({ view, size }: {
|
|
5007
5007
|
view: FormLookView;
|
|
5008
5008
|
size?: "sm" | "md";
|
|
@@ -5920,7 +5920,7 @@ interface InterfaceScreenProps {
|
|
|
5920
5920
|
renderIcon?: ((name: string) => ReactNode) | undefined;
|
|
5921
5921
|
className?: string | undefined;
|
|
5922
5922
|
}
|
|
5923
|
-
/** The interface
|
|
5923
|
+
/** The interface colors as the design system's tokens (chip background). */
|
|
5924
5924
|
declare const INTERFACE_COLOR_CLASS: Record<string, string>;
|
|
5925
5925
|
declare function InterfaceScreen({ interfaceId, newOnTable, pageId, onPage, viewerUserId, onCreated, onArchived, notShared, header, renderIcon, className, }: InterfaceScreenProps): react.JSX.Element;
|
|
5926
5926
|
|
|
@@ -5952,7 +5952,7 @@ interface InterfaceShape {
|
|
|
5952
5952
|
published: InterfacePublished | null;
|
|
5953
5953
|
versions: InterfaceVersion[];
|
|
5954
5954
|
}
|
|
5955
|
-
/** The interface
|
|
5955
|
+
/** The interface colors, by token name (`INTERFACE_COLOR_CLASS` paints them). */
|
|
5956
5956
|
declare const INTERFACE_COLORS: readonly ["blue", "green", "amber", "rose", "violet", "slate"];
|
|
5957
5957
|
declare const INTERFACE_ICONS: readonly ["layout-dashboard", "kanban", "calendar", "users", "briefcase", "megaphone", "clipboard-check", "star"];
|
|
5958
5958
|
declare function isInterface(row: Pick<DashboardSummary, "presentation"> | {
|
|
@@ -7070,7 +7070,7 @@ declare function actorWords(actor: HistoryActor, resolve?: ResolveName | undefin
|
|
|
7070
7070
|
declare function whenWords(at: string, now?: Date): string;
|
|
7071
7071
|
declare function lastChangeSentence(fieldLabel: string, entry: FieldHistoryEntry | null, resolve?: ResolveName | undefined): string;
|
|
7072
7072
|
/**
|
|
7073
|
-
* The SHORT form the badge wears once it knows: a name a person
|
|
7073
|
+
* The SHORT form the badge wears once it knows: a name a person recognizes at a
|
|
7074
7074
|
* glance, in the width of a cell corner. Never a uuid, never an email's domain.
|
|
7075
7075
|
*/
|
|
7076
7076
|
declare function actorBadge(actor: HistoryActor, resolve?: ResolveName | undefined): string;
|
|
@@ -7743,7 +7743,7 @@ interface FieldLookCheck {
|
|
|
7743
7743
|
};
|
|
7744
7744
|
}
|
|
7745
7745
|
/**
|
|
7746
|
-
* WHAT A HOST KNOWS THAT ONE VALUE DOES NOT: the ground a
|
|
7746
|
+
* WHAT A HOST KNOWS THAT ONE VALUE DOES NOT: the ground a color is read on, from another row of
|
|
7747
7747
|
* the same table (`contrastWith.readsOnField`). Absent: the look uses the column's own options.
|
|
7748
7748
|
*/
|
|
7749
7749
|
interface LookContext {
|
|
@@ -7802,7 +7802,7 @@ declare function Swatch({ color, className }: {
|
|
|
7802
7802
|
className?: string;
|
|
7803
7803
|
}): react.JSX.Element;
|
|
7804
7804
|
/**
|
|
7805
|
-
* The ground a
|
|
7805
|
+
* The ground a color pair is read on: the host's per-row ground (`context.ground`, from the row
|
|
7806
7806
|
* named in `contrastWith.readsOnField`) when the column reads per row, else the column's fixed
|
|
7807
7807
|
* ground. A per-row column whose row names no ground has none — and is not checked.
|
|
7808
7808
|
*/
|
|
@@ -7820,7 +7820,7 @@ declare function colorPairContrast(pair: ColorPair, format: FieldFormatConfig, c
|
|
|
7820
7820
|
declare function ContrastMark({ ratio }: {
|
|
7821
7821
|
ratio: number;
|
|
7822
7822
|
}): react.JSX.Element;
|
|
7823
|
-
/** One side of a pair: a
|
|
7823
|
+
/** One side of a pair: a color well and its hex, typed or picked. */
|
|
7824
7824
|
declare function ColorWell({ id, label, value, placeholder, onChange, disabled, }: {
|
|
7825
7825
|
id: string;
|
|
7826
7826
|
label: string;
|
|
@@ -7829,7 +7829,7 @@ declare function ColorWell({ id, label, value, placeholder, onChange, disabled,
|
|
|
7829
7829
|
onChange: (next: string | undefined) => void;
|
|
7830
7830
|
disabled?: boolean | undefined;
|
|
7831
7831
|
}): react.JSX.Element;
|
|
7832
|
-
/** The grounds a shadow is previewed on, per theme — data
|
|
7832
|
+
/** The grounds a shadow is previewed on, per theme — data colors (a preview of a theme), not UI chrome. */
|
|
7833
7833
|
declare const THEME_GROUNDS: {
|
|
7834
7834
|
readonly light: {
|
|
7835
7835
|
readonly ground: "#f4f4f5";
|
|
@@ -7846,7 +7846,7 @@ declare function ShadowSwatch({ layers, theme, size }: {
|
|
|
7846
7846
|
theme: "light" | "dark";
|
|
7847
7847
|
size?: "sm" | "lg";
|
|
7848
7848
|
}): react.JSX.Element;
|
|
7849
|
-
/** The layers of ONE shadow: x, y, blur, spread and
|
|
7849
|
+
/** The layers of ONE shadow: x, y, blur, spread and color per layer; add or remove a layer. */
|
|
7850
7850
|
declare function ShadowLayersEditor({ layers, onChange, disabled, id, label, }: {
|
|
7851
7851
|
layers: readonly ShadowLayer[];
|
|
7852
7852
|
onChange: (next: ShadowLayer[]) => void;
|