@ai-matrx/records-ui 0.116.87 → 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 +2 -1
  2. package/dist/{SaveToTable-X2T2GDX7.js → SaveToTable-RV553LQL.js} +3 -3
  3. package/dist/{chunk-Y5UJD4FV.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-HYC2SPZZ.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-ATBJZKUT.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 +18 -2
  16. package/dist/helpers.d.ts +18 -2
  17. package/dist/helpers.js +1 -0
  18. package/dist/helpers.js.map +1 -1
  19. package/dist/index.cjs +4109 -3888
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +20 -4
  22. package/dist/index.d.ts +20 -4
  23. package/dist/index.js +3514 -3295
  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 +6 -6
  33. package/dist/chunk-6BTGCYPK.js.map +0 -1
  34. package/dist/chunk-HYC2SPZZ.js.map +0 -1
  35. /package/dist/{SaveToTable-X2T2GDX7.js.map → SaveToTable-RV553LQL.js.map} +0 -0
  36. /package/dist/{chunk-Y5UJD4FV.js.map → chunk-A5XXEX6A.js.map} +0 -0
  37. /package/dist/{chunk-ATBJZKUT.js.map → chunk-YQW2T27M.js.map} +0 -0
@@ -4,6 +4,7 @@ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, Parity
4
4
  export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
5
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';
@@ -570,6 +571,14 @@ interface RecordsUiHost {
570
571
  lat: number;
571
572
  lng: number;
572
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;
573
582
  /**
574
583
  * TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
575
584
  * as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
@@ -1232,6 +1241,13 @@ interface PendingCapture {
1232
1241
  attempts: number;
1233
1242
  lastRefusal?: string | null;
1234
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
+ }
1235
1251
 
1236
1252
  /** The name of one Field, as a header, a form label or a peek's term. */
1237
1253
  declare function fieldName(field: Field): string;
@@ -1725,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1725
1741
  */
1726
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1727
1743
 
1728
- 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">>>>>;
1729
1745
 
1730
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1731
1747
 
@@ -1822,7 +1838,7 @@ interface AnnounceTableArchived {
1822
1838
  declare function announceTableArchived({ notify, client, tableId, name, onRestored }: AnnounceTableArchived): void;
1823
1839
 
1824
1840
  /** Every place a records surface shows while its first read is out. */
1825
- 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";
1826
1842
  declare const RECORDS_SKELETON_LAYOUTS: readonly RecordsSkeletonLayout[];
1827
1843
  /** A layout word the address or a view carries, as the skeleton that stands for it. */
1828
1844
  declare function skeletonLayoutFor(layout: string | null | undefined): RecordsSkeletonLayout;
package/dist/helpers.d.ts CHANGED
@@ -4,6 +4,7 @@ import { PermissionLevel, DeclarableFieldKind, NewerFieldKind, FieldKind, Parity
4
4
  export { DEFAULT_FIELDS, DeclareResult, NewFieldSpec, NewTableSpec, addFields, declareTable, fieldDeclarationFor, tokenFor } from '@ai-matrx/records/field-kinds';
5
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';
@@ -570,6 +571,14 @@ interface RecordsUiHost {
570
571
  lat: number;
571
572
  lng: number;
572
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;
573
582
  /**
574
583
  * TEMPORARY (one-grid merge, steps 5-8). Which table grid draws: `classic` — the default Grid
575
584
  * as it shipped in 0.86; `merged` — the same grid with the older /data grid's control layer on
@@ -1232,6 +1241,13 @@ interface PendingCapture {
1232
1241
  attempts: number;
1233
1242
  lastRefusal?: string | null;
1234
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
+ }
1235
1251
 
1236
1252
  /** The name of one Field, as a header, a form label or a peek's term. */
1237
1253
  declare function fieldName(field: Field): string;
@@ -1725,7 +1741,7 @@ declare function laneFor(table: Table): TableLane;
1725
1741
  */
1726
1742
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1727
1743
 
1728
- 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">>>>>;
1729
1745
 
1730
1746
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1731
1747
 
@@ -1822,7 +1838,7 @@ interface AnnounceTableArchived {
1822
1838
  declare function announceTableArchived({ notify, client, tableId, name, onRestored }: AnnounceTableArchived): void;
1823
1839
 
1824
1840
  /** Every place a records surface shows while its first read is out. */
1825
- 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";
1826
1842
  declare const RECORDS_SKELETON_LAYOUTS: readonly RecordsSkeletonLayout[];
1827
1843
  /** A layout word the address or a view carries, as the skeleton that stands for it. */
1828
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",