@ai-matrx/records-ui 0.116.86 → 0.116.88

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +8 -3
  2. package/dist/{SaveToTable-NJQZTAMX.js → SaveToTable-RV553LQL.js} +3 -3
  3. package/dist/{chunk-7IBO6WSM.js → chunk-A5XXEX6A.js} +2 -2
  4. package/dist/{chunk-QNI75ZHU.js → chunk-D7LNXDKV.js} +2 -1
  5. package/dist/{chunk-QNI75ZHU.js.map → chunk-D7LNXDKV.js.map} +1 -1
  6. package/dist/{chunk-NSRAGMZ2.js → chunk-HEPOU6ZX.js} +1 -1
  7. package/dist/chunk-HEPOU6ZX.js.map +1 -0
  8. package/dist/{chunk-6BTGCYPK.js → chunk-NS2VEKMS.js} +4 -2
  9. package/dist/chunk-NS2VEKMS.js.map +1 -0
  10. package/dist/{chunk-OBRFVN3V.js → chunk-YQW2T27M.js} +4 -4
  11. package/dist/first-page.cjs.map +1 -1
  12. package/dist/first-page.js.map +1 -1
  13. package/dist/helpers.cjs +1 -0
  14. package/dist/helpers.cjs.map +1 -1
  15. package/dist/helpers.d.cts +35 -3
  16. package/dist/helpers.d.ts +35 -3
  17. package/dist/helpers.js +1 -0
  18. package/dist/helpers.js.map +1 -1
  19. package/dist/index.cjs +4130 -3893
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +38 -6
  22. package/dist/index.d.ts +38 -6
  23. package/dist/index.js +3535 -3300
  24. package/dist/index.js.map +1 -1
  25. package/dist/pickers.cjs.map +1 -1
  26. package/dist/pickers.js +3 -3
  27. package/dist/skeleton.cjs +2 -0
  28. package/dist/skeleton.cjs.map +1 -1
  29. package/dist/skeleton.d.cts +1 -1
  30. package/dist/skeleton.d.ts +1 -1
  31. package/dist/skeleton.js +2 -2
  32. package/package.json +5 -5
  33. package/dist/chunk-6BTGCYPK.js.map +0 -1
  34. package/dist/chunk-NSRAGMZ2.js.map +0 -1
  35. /package/dist/{SaveToTable-NJQZTAMX.js.map → SaveToTable-RV553LQL.js.map} +0 -0
  36. /package/dist/{chunk-7IBO6WSM.js.map → chunk-A5XXEX6A.js.map} +0 -0
  37. /package/dist/{chunk-OBRFVN3V.js.map → chunk-YQW2T27M.js.map} +0 -0
@@ -2,8 +2,9 @@ import * as _ai_matrx_records from '@ai-matrx/records';
2
2
  import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, Table, ReadRow, RecordsErrorCode, RecordRead, RowAgentTarget, AggregateFilter, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, TableDecorations, DashboardSummary, FieldSensitivity, RecordsError } from '@ai-matrx/records';
3
3
  import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
4
4
  export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
5
- import { ReactNode, ComponentType, KeyboardEvent } from 'react';
5
+ import { ComponentType, ReactNode, KeyboardEvent } from 'react';
6
6
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
7
+ import { DeckItem, DeckKeyOverride, DeckAnswer } from '@ai-matrx/design-system/swipe-deck';
7
8
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
8
9
  import { TableStyle, GroupAggregateSpec, GroupOrder } from '@ai-matrx/design-system/data-table';
9
10
  import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
@@ -508,7 +509,23 @@ type SyncedCellOutcome = {
508
509
  ok: false;
509
510
  message: string;
510
511
  };
512
+ /** The host's cost door: a quiet "Cost" link that reveals a price on click. Rows carry ready text (this package formats its own points). */
513
+ interface RecordsCostDoorProps {
514
+ rows: {
515
+ label: string;
516
+ text: string;
517
+ }[];
518
+ label?: string;
519
+ iconOnly?: boolean;
520
+ className?: string;
521
+ }
511
522
  interface RecordsUiHost {
523
+ /**
524
+ * OPTIONAL. THE COST DOOR. A price is never printed on the page (owner ruling 2026-10-22): bound, the
525
+ * enrichment settings and the fill confirm show a quiet door that reveals it on click. Unbound, they
526
+ * show nothing for cost.
527
+ */
528
+ CostDoor?: ComponentType<RecordsCostDoorProps> | undefined;
512
529
  /**
513
530
  * OPTIONAL. THE TABLE'S ASK BOX, ANSWERED BY AN AGENT. Bound, the box sends the typed line here and
514
531
  * draws the answer, the records it cites and any edits it proposes (each applied by the person,
@@ -554,6 +571,14 @@ interface RecordsUiHost {
554
571
  lat: number;
555
572
  lng: number;
556
573
  } | null>) | undefined;
574
+ /**
575
+ * OPTIONAL. THE SWIPE LAYOUT'S LOGIC GRAPH (2026-10-22). Which cards are asked after which answers is
576
+ * drawn on the platform's ONE diagram canvas, which lives above this package (rich-content's
577
+ * `./swipe-deck-logic` — `SwipeDeckLogicEditor` takes exactly `DeckLogicEditorProps`). Unbound, the
578
+ * Swipe layout's Logic panel says the graph is not installed here and the condition column stays
579
+ * editable in the grid.
580
+ */
581
+ deckLogicEditor?: ComponentType<DeckLogicEditorProps> | undefined;
557
582
  /**
558
583
  * TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
559
584
  * as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
@@ -1216,6 +1241,13 @@ interface PendingCapture {
1216
1241
  attempts: number;
1217
1242
  lastRefusal?: string | null;
1218
1243
  }
1244
+ /** What the Swipe layout hands the host's logic graph: the deck's cards, its answers, and where edits go. */
1245
+ interface DeckLogicEditorProps {
1246
+ readonly items: readonly DeckItem[];
1247
+ readonly answers?: DeckKeyOverride;
1248
+ readonly more?: readonly DeckAnswer[];
1249
+ readonly onChange: (items: DeckItem[]) => void;
1250
+ }
1219
1251
 
1220
1252
  /** The name of one Field, as a header, a form label or a peek's term. */
1221
1253
  declare function fieldName(field: Field): string;
@@ -1709,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1709
1741
  */
1710
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1711
1743
 
1712
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
1744
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts">>>>>;
1713
1745
 
1714
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1715
1747
 
@@ -1806,7 +1838,7 @@ interface AnnounceTableArchived {
1806
1838
  declare function announceTableArchived({ notify, client, tableId, name, onRestored }: AnnounceTableArchived): void;
1807
1839
 
1808
1840
  /** Every place a records surface shows while its first read is out. */
1809
- type RecordsSkeletonLayout = "grid" | "kanban" | "gallery" | "list" | "calendar" | "timeline" | "map" | "orgchart" | "pivot" | "form" | "record" | "chart" | "home";
1841
+ type RecordsSkeletonLayout = "grid" | "kanban" | "gallery" | "list" | "calendar" | "timeline" | "map" | "orgchart" | "pivot" | "swipe" | "form" | "record" | "chart" | "home";
1810
1842
  declare const RECORDS_SKELETON_LAYOUTS: readonly RecordsSkeletonLayout[];
1811
1843
  /** A layout word the address or a view carries, as the skeleton that stands for it. */
1812
1844
  declare function skeletonLayoutFor(layout: string | null | undefined): RecordsSkeletonLayout;
package/dist/helpers.d.ts CHANGED
@@ -2,8 +2,9 @@ import * as _ai_matrx_records from '@ai-matrx/records';
2
2
  import { Uuid, RecordsActor, RecordsDataSource, PermissionLevel as PermissionLevel$1, RecordScopeContext, Field, RowAction, RecordDocument, Table, ReadRow, RecordsErrorCode, RecordRead, RowAgentTarget, AggregateFilter, HistoryActor, FieldHistoryEntry, HiddenFieldNotice, TableDecorations, DashboardSummary, FieldSensitivity, RecordsError } from '@ai-matrx/records';
3
3
  import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, ParityFieldType } from '@ai-matrx/records/field-kinds';
4
4
  export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
5
- import { ReactNode, ComponentType, KeyboardEvent } from 'react';
5
+ import { ComponentType, ReactNode, KeyboardEvent } from 'react';
6
6
  import { ReversibleAnnouncement } from '@ai-matrx/kit/reversible';
7
+ import { DeckItem, DeckKeyOverride, DeckAnswer } from '@ai-matrx/design-system/swipe-deck';
7
8
  import { Uuid as Uuid$1 } from '@ai-matrx/records/react';
8
9
  import { TableStyle, GroupAggregateSpec, GroupOrder } from '@ai-matrx/design-system/data-table';
9
10
  import { FieldFormatConfig } from '@ai-matrx/design-system/field-formats';
@@ -508,7 +509,23 @@ type SyncedCellOutcome = {
508
509
  ok: false;
509
510
  message: string;
510
511
  };
512
+ /** The host's cost door: a quiet "Cost" link that reveals a price on click. Rows carry ready text (this package formats its own points). */
513
+ interface RecordsCostDoorProps {
514
+ rows: {
515
+ label: string;
516
+ text: string;
517
+ }[];
518
+ label?: string;
519
+ iconOnly?: boolean;
520
+ className?: string;
521
+ }
511
522
  interface RecordsUiHost {
523
+ /**
524
+ * OPTIONAL. THE COST DOOR. A price is never printed on the page (owner ruling 2026-10-22): bound, the
525
+ * enrichment settings and the fill confirm show a quiet door that reveals it on click. Unbound, they
526
+ * show nothing for cost.
527
+ */
528
+ CostDoor?: ComponentType<RecordsCostDoorProps> | undefined;
512
529
  /**
513
530
  * OPTIONAL. THE TABLE'S ASK BOX, ANSWERED BY AN AGENT. Bound, the box sends the typed line here and
514
531
  * draws the answer, the records it cites and any edits it proposes (each applied by the person,
@@ -554,6 +571,14 @@ interface RecordsUiHost {
554
571
  lat: number;
555
572
  lng: number;
556
573
  } | null>) | undefined;
574
+ /**
575
+ * OPTIONAL. THE SWIPE LAYOUT'S LOGIC GRAPH (2026-10-22). Which cards are asked after which answers is
576
+ * drawn on the platform's ONE diagram canvas, which lives above this package (rich-content's
577
+ * `./swipe-deck-logic` — `SwipeDeckLogicEditor` takes exactly `DeckLogicEditorProps`). Unbound, the
578
+ * Swipe layout's Logic panel says the graph is not installed here and the condition column stays
579
+ * editable in the grid.
580
+ */
581
+ deckLogicEditor?: ComponentType<DeckLogicEditorProps> | undefined;
557
582
  /**
558
583
  * TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
559
584
  * as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
@@ -1216,6 +1241,13 @@ interface PendingCapture {
1216
1241
  attempts: number;
1217
1242
  lastRefusal?: string | null;
1218
1243
  }
1244
+ /** What the Swipe layout hands the host's logic graph: the deck's cards, its answers, and where edits go. */
1245
+ interface DeckLogicEditorProps {
1246
+ readonly items: readonly DeckItem[];
1247
+ readonly answers?: DeckKeyOverride;
1248
+ readonly more?: readonly DeckAnswer[];
1249
+ readonly onChange: (items: DeckItem[]) => void;
1250
+ }
1219
1251
 
1220
1252
  /** The name of one Field, as a header, a form label or a peek's term. */
1221
1253
  declare function fieldName(field: Field): string;
@@ -1709,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1709
1741
  */
1710
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1711
1743
 
1712
- declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "sorts">>>>>;
1744
+ declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "measure" | "presentation" | "mapField" | "where" | "layout" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField" | "answerField" | "conditionField" | "sorts">>>>>;
1713
1745
 
1714
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1715
1747
 
@@ -1806,7 +1838,7 @@ interface AnnounceTableArchived {
1806
1838
  declare function announceTableArchived({ notify, client, tableId, name, onRestored }: AnnounceTableArchived): void;
1807
1839
 
1808
1840
  /** Every place a records surface shows while its first read is out. */
1809
- type RecordsSkeletonLayout = "grid" | "kanban" | "gallery" | "list" | "calendar" | "timeline" | "map" | "orgchart" | "pivot" | "form" | "record" | "chart" | "home";
1841
+ type RecordsSkeletonLayout = "grid" | "kanban" | "gallery" | "list" | "calendar" | "timeline" | "map" | "orgchart" | "pivot" | "swipe" | "form" | "record" | "chart" | "home";
1810
1842
  declare const RECORDS_SKELETON_LAYOUTS: readonly RecordsSkeletonLayout[];
1811
1843
  /** A layout word the address or a view carries, as the skeleton that stands for it. */
1812
1844
  declare function skeletonLayoutFor(layout: string | null | undefined): RecordsSkeletonLayout;
package/dist/helpers.js CHANGED
@@ -1152,6 +1152,7 @@ var RECORDS_SKELETON_LAYOUTS = [
1152
1152
  "map",
1153
1153
  "orgchart",
1154
1154
  "pivot",
1155
+ "swipe",
1155
1156
  "form",
1156
1157
  "record",
1157
1158
  "chart",