@ai-matrx/records-ui 0.93.8 → 0.93.11
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 +23 -0
- package/dist/index.cjs +233 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +434 -246
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ComponentType, RefObject } from 'react';
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
|
-
import { PermissionLevel, Table, RecordScopeContext, EnrichCell, RecordsError, Field, TableDecorations, Uuid as Uuid$1, RecordDocument, RowAction, ReadRow, StoreFilter, AggregateFilter, RelationDisplay, WriteConflict, RecordsErrorCode, RecordFilter, RuleExpression, RecordsResult, SavedViewRow, DeclarableFieldKind, ParityFieldType, NewFieldDeclaration, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, FormSummary, PortalCard, PortalPrincipal, PortalPreviewRow, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, HistoryActor, FieldHistoryEntry } from '@ai-matrx/records';
|
|
4
|
+
import { PermissionLevel, Table, RecordScopeContext, EnrichCell, RecordsError, Field, TableDecorations, Uuid as Uuid$1, RecordDocument, RowAction, ReadRow, StoreFilter, AggregateFilter, RelationDisplay, WriteConflict, RecordsErrorCode, RecordFilter, RuleExpression, RecordsResult, SavedViewRow, DeclarableFieldKind, ParityFieldType, NewFieldDeclaration, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, FormSummary, PortalCard, PortalPrincipal, PortalPreviewRow, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, HistoryActor, FieldHistoryEntry } from '@ai-matrx/records';
|
|
5
5
|
import { Uuid, Field as Field$1, ReadRow as ReadRow$1, StoreFilter as StoreFilter$1 } from '@ai-matrx/records/react';
|
|
6
6
|
import { TableStyle, GroupAggregateSpec, GroupOrder, ChoiceColorLookup } from '@ai-matrx/design-system/data-table';
|
|
7
7
|
import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
|
|
@@ -2566,12 +2566,21 @@ declare function choiceRowsFrom(options: readonly StoredRecord[]): ChoiceListRow
|
|
|
2566
2566
|
declare function choiceListPatch(start: readonly ChoiceListRow[], rows: readonly ChoiceListRow[]): Array<string | FieldOptionEdit> | undefined;
|
|
2567
2567
|
/** Why this list cannot be saved yet, in the panel's words, or null. */
|
|
2568
2568
|
declare function whatTheChoiceListIsMissing(rows: readonly ChoiceListRow[] | null): string | null;
|
|
2569
|
-
declare function ChoiceListEditor({ field, rows, onRows, onStart, }: {
|
|
2569
|
+
declare function ChoiceListEditor({ field, rows, onRows, onStart, allowOther, rehome, onRehome, }: {
|
|
2570
2570
|
field: Field;
|
|
2571
2571
|
rows: ChoiceListRow[] | null;
|
|
2572
2572
|
onRows: (next: ChoiceListRow[]) => void;
|
|
2573
2573
|
/** The list as the store answered it, once — what a save is compared against. */
|
|
2574
2574
|
onStart: (start: ChoiceListRow[]) => void;
|
|
2575
|
+
/** Whether the column takes other values — the only case "keep the words" is offered. */
|
|
2576
|
+
allowOther?: boolean | undefined;
|
|
2577
|
+
/**
|
|
2578
|
+
* REMOVING A CHOICE RECORDS STILL HOLD (lane CHOICE-TAILS): where the records of each removed
|
|
2579
|
+
* choice go, keyed by the option's id — sent in the same save as the list. Without `onRehome`
|
|
2580
|
+
* a removal is immediate and its records keep the retired choice, as before.
|
|
2581
|
+
*/
|
|
2582
|
+
rehome?: Record<string, ChoiceRehome> | undefined;
|
|
2583
|
+
onRehome?: ((next: Record<string, ChoiceRehome>) => void) | undefined;
|
|
2575
2584
|
}): react.JSX.Element;
|
|
2576
2585
|
|
|
2577
2586
|
/** The knob for this client, asked once and cached for the life of the client. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ComponentType, RefObject } from 'react';
|
|
3
3
|
import * as _ai_matrx_records from '@ai-matrx/records';
|
|
4
|
-
import { PermissionLevel, Table, RecordScopeContext, EnrichCell, RecordsError, Field, TableDecorations, Uuid as Uuid$1, RecordDocument, RowAction, ReadRow, StoreFilter, AggregateFilter, RelationDisplay, WriteConflict, RecordsErrorCode, RecordFilter, RuleExpression, RecordsResult, SavedViewRow, DeclarableFieldKind, ParityFieldType, NewFieldDeclaration, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, FormSummary, PortalCard, PortalPrincipal, PortalPreviewRow, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, HistoryActor, FieldHistoryEntry } from '@ai-matrx/records';
|
|
4
|
+
import { PermissionLevel, Table, RecordScopeContext, EnrichCell, RecordsError, Field, TableDecorations, Uuid as Uuid$1, RecordDocument, RowAction, ReadRow, StoreFilter, AggregateFilter, RelationDisplay, WriteConflict, RecordsErrorCode, RecordFilter, RuleExpression, RecordsResult, SavedViewRow, DeclarableFieldKind, ParityFieldType, NewFieldDeclaration, ChoiceRehome, FieldOptionEdit, StoredRecord, ChoiceNudge, HiddenFieldNotice, ValueEnvelope, ChecklistRequirementKind, ContextPolicy, WorkDueState, FieldSensitivity, StageRuleOnFail, SubscriptionCadence, WorkApprovalState, WorkInboxKind, FieldKind, ArchiveLane, ArchivedRow, WorkInboxView, WorkInboxItem, FormSummary, PortalCard, PortalPrincipal, PortalPreviewRow, MySubscription, DashboardBlockKind, AggregateBucket, AggregateMeasure, AggregateCompare, DashboardTarget, DashboardBlock, DashboardSummary, DocTemplateRow, DocRenderRow, QuietHours, DashboardBlockResult, ChecklistRunStep, BookingSummary, CaptureSheetFace, CaptureField, AnonTokenBinding, RecordsConfig, RecordsActor, RecordsDataSource, HistoryActor, FieldHistoryEntry } from '@ai-matrx/records';
|
|
5
5
|
import { Uuid, Field as Field$1, ReadRow as ReadRow$1, StoreFilter as StoreFilter$1 } from '@ai-matrx/records/react';
|
|
6
6
|
import { TableStyle, GroupAggregateSpec, GroupOrder, ChoiceColorLookup } from '@ai-matrx/design-system/data-table';
|
|
7
7
|
import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
|
|
@@ -2566,12 +2566,21 @@ declare function choiceRowsFrom(options: readonly StoredRecord[]): ChoiceListRow
|
|
|
2566
2566
|
declare function choiceListPatch(start: readonly ChoiceListRow[], rows: readonly ChoiceListRow[]): Array<string | FieldOptionEdit> | undefined;
|
|
2567
2567
|
/** Why this list cannot be saved yet, in the panel's words, or null. */
|
|
2568
2568
|
declare function whatTheChoiceListIsMissing(rows: readonly ChoiceListRow[] | null): string | null;
|
|
2569
|
-
declare function ChoiceListEditor({ field, rows, onRows, onStart, }: {
|
|
2569
|
+
declare function ChoiceListEditor({ field, rows, onRows, onStart, allowOther, rehome, onRehome, }: {
|
|
2570
2570
|
field: Field;
|
|
2571
2571
|
rows: ChoiceListRow[] | null;
|
|
2572
2572
|
onRows: (next: ChoiceListRow[]) => void;
|
|
2573
2573
|
/** The list as the store answered it, once — what a save is compared against. */
|
|
2574
2574
|
onStart: (start: ChoiceListRow[]) => void;
|
|
2575
|
+
/** Whether the column takes other values — the only case "keep the words" is offered. */
|
|
2576
|
+
allowOther?: boolean | undefined;
|
|
2577
|
+
/**
|
|
2578
|
+
* REMOVING A CHOICE RECORDS STILL HOLD (lane CHOICE-TAILS): where the records of each removed
|
|
2579
|
+
* choice go, keyed by the option's id — sent in the same save as the list. Without `onRehome`
|
|
2580
|
+
* a removal is immediate and its records keep the retired choice, as before.
|
|
2581
|
+
*/
|
|
2582
|
+
rehome?: Record<string, ChoiceRehome> | undefined;
|
|
2583
|
+
onRehome?: ((next: Record<string, ChoiceRehome>) => void) | undefined;
|
|
2575
2584
|
}): react.JSX.Element;
|
|
2576
2585
|
|
|
2577
2586
|
/** The knob for this client, asked once and cached for the life of the client. */
|