@ai-matrx/records-ui 0.115.42 → 0.115.44
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 +18 -0
- package/dist/index.cjs +2538 -2358
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -4
- package/dist/index.d.ts +41 -4
- package/dist/index.js +303 -123
- package/dist/index.js.map +1 -1
- package/dist/object-actions.cjs.map +1 -1
- package/dist/object-actions.d.cts +1 -1
- package/dist/object-actions.d.ts +1 -1
- package/dist/object-actions.js.map +1 -1
- package/dist/{objectActions-ac0_y8UY.d.cts → objectActions-Ds2NA5Jn.d.cts} +1 -1
- package/dist/{objectActions-ac0_y8UY.d.ts → objectActions-Ds2NA5Jn.d.ts} +1 -1
- package/dist/pickers.cjs +102 -7
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +102 -7
- package/dist/pickers.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, KeyboardEvent, ReactElement, ComponentType, RefObject, SVGAt
|
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
4
|
import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, RecordRead, RowAgentTarget, AggregateFilter, PermissionLevel, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, DeclarableFieldKind, NewerFieldKind, ParityFieldType, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
|
-
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-
|
|
7
|
-
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-
|
|
6
|
+
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-Ds2NA5Jn.cjs';
|
|
7
|
+
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-Ds2NA5Jn.cjs';
|
|
8
8
|
import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
|
|
9
9
|
import * as _ai_matrx_records_core from '@ai-matrx/records/core';
|
|
10
10
|
import { RecordsClient, ParsedImport, NewFieldSpec } from '@ai-matrx/records/core';
|
|
@@ -385,6 +385,25 @@ interface RichTextEditProps {
|
|
|
385
385
|
readOnly: boolean;
|
|
386
386
|
placeholder: string;
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* What a multi-line text box hands the host's own text box (`textBox`): the words and a setter, and
|
|
390
|
+
* what the box is for. The host draws its platform text box around them, with that box's "…" menu.
|
|
391
|
+
*/
|
|
392
|
+
interface TextBoxProps {
|
|
393
|
+
value: string;
|
|
394
|
+
/** Every change, as the whole text. Saving stays the package's. */
|
|
395
|
+
onChange: (next: string) => void;
|
|
396
|
+
/** The column's name: the box's accessible name and what its menu calls the text. */
|
|
397
|
+
label: string;
|
|
398
|
+
rows: number;
|
|
399
|
+
/** Where the box sits: an open grid cell, the whole-text editor, or a record form. */
|
|
400
|
+
where: "cell" | "whole-text" | "form";
|
|
401
|
+
id?: string | undefined;
|
|
402
|
+
autoFocus?: boolean | undefined;
|
|
403
|
+
readOnly?: boolean | undefined;
|
|
404
|
+
disabled?: boolean | undefined;
|
|
405
|
+
onKeyDown?: ((event: KeyboardEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
406
|
+
}
|
|
388
407
|
interface ReferenceChipRef {
|
|
389
408
|
token: string;
|
|
390
409
|
id: Uuid;
|
|
@@ -527,6 +546,14 @@ interface RecordsUiHost {
|
|
|
527
546
|
* the person to keep or change. Unbound, nothing is drawn.
|
|
528
547
|
*/
|
|
529
548
|
formulaHelp?: (ask: FormulaHelpAsk) => ReactNode;
|
|
549
|
+
/**
|
|
550
|
+
* OPTIONAL. THE PLATFORM'S TEXT BOX FOR LONG TEXT (Sheet retirement). The Sheet edited a text cell
|
|
551
|
+
* in the platform's one text box, whose "…" menu offers Clean up, Help with this…, Copy, Save to
|
|
552
|
+
* notes and Share. Bound, the long-text cell editor, the whole-text editor and a record form's
|
|
553
|
+
* long-text field draw the host's box with these props (one "…", no other chrome). Unbound, the
|
|
554
|
+
* package's plain box.
|
|
555
|
+
*/
|
|
556
|
+
textBox?: (props: TextBoxProps) => ReactNode;
|
|
530
557
|
/**
|
|
531
558
|
* OPTIONAL. AN AGENT OVER A TABLE'S SETTINGS (Sheet retirement). While the settings panel is open
|
|
532
559
|
* it wraps itself in what this returns, handing the host a `TableSettingsAgent`: what the panel
|
|
@@ -955,6 +982,11 @@ interface FormulaHelpAsk {
|
|
|
955
982
|
functions: readonly string[];
|
|
956
983
|
/** Put a formula into the box (unsaved). */
|
|
957
984
|
onFormula: (text: string) => void;
|
|
985
|
+
/**
|
|
986
|
+
* What the formula is for, in a person's words, when it is not a formula column: a row action's
|
|
987
|
+
* Work out step says which column it sets. Absent, it is a formula column.
|
|
988
|
+
*/
|
|
989
|
+
purpose?: string | undefined;
|
|
958
990
|
}
|
|
959
991
|
/** What a person is asking an agent to make, and where they were standing. */
|
|
960
992
|
interface AgentBuildAsk {
|
|
@@ -2369,7 +2401,12 @@ declare function titleRepeats(rows: ReadonlyArray<Record<string, string>>, heade
|
|
|
2369
2401
|
* account number. A pledge list has none: amount, paid and date all vary within a family, and no
|
|
2370
2402
|
* column pins the rows to one thing. Only groups of two or more rows are judged.
|
|
2371
2403
|
*/
|
|
2372
|
-
declare function sameRecordLikely(rows: ReadonlyArray<Record<string, string>>, header: string
|
|
2404
|
+
declare function sameRecordLikely(rows: ReadonlyArray<Record<string, string>>, header: string,
|
|
2405
|
+
/**
|
|
2406
|
+
* Columns that can never be what pins a row to one record: an amount or a date describes the
|
|
2407
|
+
* thing, it does not identify it (a supply list's unit price is the same for every row of one
|
|
2408
|
+
* item, and nearly every item has its own price — that is not one record). */
|
|
2409
|
+
notIdentity?: ReadonlySet<string>): boolean;
|
|
2373
2410
|
/** The combined rows, and for each the 1-based file lines it was made from. */
|
|
2374
2411
|
interface CombinedRows {
|
|
2375
2412
|
rows: Array<Record<string, string>>;
|
|
@@ -3289,7 +3326,7 @@ declare function FieldLabel({ field, htmlFor, children }: {
|
|
|
3289
3326
|
htmlFor: string;
|
|
3290
3327
|
children?: ReactNode;
|
|
3291
3328
|
}): react.JSX.Element;
|
|
3292
|
-
declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
|
|
3329
|
+
declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
|
|
3293
3330
|
/** The chip a picked record shows as — REC-2's "a record is a chip" in one place. */
|
|
3294
3331
|
declare function RecordChip({ title, onRemove, className, }: {
|
|
3295
3332
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, KeyboardEvent, ReactElement, ComponentType, RefObject, SVGAt
|
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
4
|
import { Uuid, RowAction, Field, RowActionStep, RecordScopeContext, EnrichCell, RecordsError, RecordDocument, Table, ReadRow, RecordRead, RowAgentTarget, AggregateFilter, PermissionLevel, RelationDisplay, WriteConflict, TableDecorations, StoreFilter as StoreFilter$1, ImportRun, DeclarableFieldKind, NewerFieldKind, ParityFieldType, NewFieldDeclaration, RuleExpression, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, MigrationEntry, PortalCard, PortalPrincipal, PortalPreviewRow, PortalAccent, PublicPicture, PortalStyle, RecordFilter, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, AggregateGroupValue, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, TableDuplicated, HistoryActor, FieldHistoryEntry, DrillDefinition, DrillSource, DrillLane, DrillQuestion, TableDuplicateProgress, TableArchiveProgress } from '@ai-matrx/records';
|
|
5
5
|
import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
|
|
6
|
-
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-
|
|
7
|
-
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-
|
|
6
|
+
import { O as ObjectAction, W as WhatYouMayDo, T as TableActionHost, a as ObjectActionIcon } from './objectActions-Ds2NA5Jn.js';
|
|
7
|
+
export { A as ACTION_CHECKING_ACCESS_REASON, b as ACTION_NOT_HERE_REASON, c as ACTION_NO_ACCESS_REASON, d as ACTION_PLATFORM_TABLE_REASON, B as BuiltOnDestination, C as Capability, D as DEFAULT_ACTION_ORIGIN, K as KERNEL_REASON, L as LEVEL_WORD, N as NOT_ANSWERED_YET, e as OBJECT_ACTION_GROUPS, f as ObjectActionDropdownEntry, g as ObjectActionGroup, h as ObjectActionGroupDef, i as ObjectActionSection, S as STANDARD_VERBS, j as STRIP_FEATURE_ROWS, k as StandardVerbId, l as StripAndRows, m as TableActionSubject, n as TableActionsInput, o as dropdownActionIds, p as dropdownActions, q as groupObjectActions, r as levelNeededFor, s as rightsReason, t as tableActions, u as tableLink, v as toDropdownEntries, w as toStripAndRows, x as whatYouMayDo, y as whatYouMayDoWithTable, z as withExtensions } from './objectActions-Ds2NA5Jn.js';
|
|
8
8
|
import { Uuid as Uuid$1, Table as Table$1, Field as Field$1, ReadRow as ReadRow$1, StoreFilter, useRecordsClient } from '@ai-matrx/records/react';
|
|
9
9
|
import * as _ai_matrx_records_core from '@ai-matrx/records/core';
|
|
10
10
|
import { RecordsClient, ParsedImport, NewFieldSpec } from '@ai-matrx/records/core';
|
|
@@ -385,6 +385,25 @@ interface RichTextEditProps {
|
|
|
385
385
|
readOnly: boolean;
|
|
386
386
|
placeholder: string;
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* What a multi-line text box hands the host's own text box (`textBox`): the words and a setter, and
|
|
390
|
+
* what the box is for. The host draws its platform text box around them, with that box's "…" menu.
|
|
391
|
+
*/
|
|
392
|
+
interface TextBoxProps {
|
|
393
|
+
value: string;
|
|
394
|
+
/** Every change, as the whole text. Saving stays the package's. */
|
|
395
|
+
onChange: (next: string) => void;
|
|
396
|
+
/** The column's name: the box's accessible name and what its menu calls the text. */
|
|
397
|
+
label: string;
|
|
398
|
+
rows: number;
|
|
399
|
+
/** Where the box sits: an open grid cell, the whole-text editor, or a record form. */
|
|
400
|
+
where: "cell" | "whole-text" | "form";
|
|
401
|
+
id?: string | undefined;
|
|
402
|
+
autoFocus?: boolean | undefined;
|
|
403
|
+
readOnly?: boolean | undefined;
|
|
404
|
+
disabled?: boolean | undefined;
|
|
405
|
+
onKeyDown?: ((event: KeyboardEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
406
|
+
}
|
|
388
407
|
interface ReferenceChipRef {
|
|
389
408
|
token: string;
|
|
390
409
|
id: Uuid;
|
|
@@ -527,6 +546,14 @@ interface RecordsUiHost {
|
|
|
527
546
|
* the person to keep or change. Unbound, nothing is drawn.
|
|
528
547
|
*/
|
|
529
548
|
formulaHelp?: (ask: FormulaHelpAsk) => ReactNode;
|
|
549
|
+
/**
|
|
550
|
+
* OPTIONAL. THE PLATFORM'S TEXT BOX FOR LONG TEXT (Sheet retirement). The Sheet edited a text cell
|
|
551
|
+
* in the platform's one text box, whose "…" menu offers Clean up, Help with this…, Copy, Save to
|
|
552
|
+
* notes and Share. Bound, the long-text cell editor, the whole-text editor and a record form's
|
|
553
|
+
* long-text field draw the host's box with these props (one "…", no other chrome). Unbound, the
|
|
554
|
+
* package's plain box.
|
|
555
|
+
*/
|
|
556
|
+
textBox?: (props: TextBoxProps) => ReactNode;
|
|
530
557
|
/**
|
|
531
558
|
* OPTIONAL. AN AGENT OVER A TABLE'S SETTINGS (Sheet retirement). While the settings panel is open
|
|
532
559
|
* it wraps itself in what this returns, handing the host a `TableSettingsAgent`: what the panel
|
|
@@ -955,6 +982,11 @@ interface FormulaHelpAsk {
|
|
|
955
982
|
functions: readonly string[];
|
|
956
983
|
/** Put a formula into the box (unsaved). */
|
|
957
984
|
onFormula: (text: string) => void;
|
|
985
|
+
/**
|
|
986
|
+
* What the formula is for, in a person's words, when it is not a formula column: a row action's
|
|
987
|
+
* Work out step says which column it sets. Absent, it is a formula column.
|
|
988
|
+
*/
|
|
989
|
+
purpose?: string | undefined;
|
|
958
990
|
}
|
|
959
991
|
/** What a person is asking an agent to make, and where they were standing. */
|
|
960
992
|
interface AgentBuildAsk {
|
|
@@ -2369,7 +2401,12 @@ declare function titleRepeats(rows: ReadonlyArray<Record<string, string>>, heade
|
|
|
2369
2401
|
* account number. A pledge list has none: amount, paid and date all vary within a family, and no
|
|
2370
2402
|
* column pins the rows to one thing. Only groups of two or more rows are judged.
|
|
2371
2403
|
*/
|
|
2372
|
-
declare function sameRecordLikely(rows: ReadonlyArray<Record<string, string>>, header: string
|
|
2404
|
+
declare function sameRecordLikely(rows: ReadonlyArray<Record<string, string>>, header: string,
|
|
2405
|
+
/**
|
|
2406
|
+
* Columns that can never be what pins a row to one record: an amount or a date describes the
|
|
2407
|
+
* thing, it does not identify it (a supply list's unit price is the same for every row of one
|
|
2408
|
+
* item, and nearly every item has its own price — that is not one record). */
|
|
2409
|
+
notIdentity?: ReadonlySet<string>): boolean;
|
|
2373
2410
|
/** The combined rows, and for each the 1-based file lines it was made from. */
|
|
2374
2411
|
interface CombinedRows {
|
|
2375
2412
|
rows: Array<Record<string, string>>;
|
|
@@ -3289,7 +3326,7 @@ declare function FieldLabel({ field, htmlFor, children }: {
|
|
|
3289
3326
|
htmlFor: string;
|
|
3290
3327
|
children?: ReactNode;
|
|
3291
3328
|
}): react.JSX.Element;
|
|
3292
|
-
declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null;
|
|
3329
|
+
declare function FieldControl({ field, value, onChange, disabled, id, autoOpen, onClose, onCommit, onCancel, addsChoices, initialSearch, asForm, onChosen, recordId }: FieldEditorControlProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react.JSX.Element | null | undefined;
|
|
3293
3330
|
/** The chip a picked record shows as — REC-2's "a record is a chip" in one place. */
|
|
3294
3331
|
declare function RecordChip({ title, onRemove, className, }: {
|
|
3295
3332
|
title: string;
|