@ai-matrx/records-ui 0.116.14 → 0.116.16

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.
@@ -619,6 +619,15 @@ interface RecordsUiHost {
619
619
  * drops the grid, its scroll and its selection. Unbound, the control assigns the location (a full load).
620
620
  */
621
621
  navigate?: (href: string) => void;
622
+ /**
623
+ * OPTIONAL. OPEN ONE RECORD WHERE THE HOST OPENS A RECORD, not at its page. A button that adds a row opens the
624
+ * row it made through this port first: a host whose rows open in a peek or a panel of its own (a page of
625
+ * Spaces) keeps the person where they are. Unbound, the press uses `hrefForRecord` + `navigate` as before.
626
+ */
627
+ openRecord?: (args: {
628
+ table: Table;
629
+ recordId: Uuid;
630
+ }) => void;
622
631
  /**
623
632
  * OPTIONAL. WHERE A FILE OPENS. A value too big for one cell is kept as a file and the cell
624
633
  * holds its first words (`@ai-matrx/records/core` `wholeValueOf`); this is the host's page for
@@ -1661,7 +1670,7 @@ declare function laneFor(table: Table): TableLane;
1661
1670
  */
1662
1671
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1663
1672
 
1664
- 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>, "presentation" | "layout" | "measure" | "where" | "mapField" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1673
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1665
1674
 
1666
1675
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1667
1676
 
package/dist/helpers.d.ts CHANGED
@@ -619,6 +619,15 @@ interface RecordsUiHost {
619
619
  * drops the grid, its scroll and its selection. Unbound, the control assigns the location (a full load).
620
620
  */
621
621
  navigate?: (href: string) => void;
622
+ /**
623
+ * OPTIONAL. OPEN ONE RECORD WHERE THE HOST OPENS A RECORD, not at its page. A button that adds a row opens the
624
+ * row it made through this port first: a host whose rows open in a peek or a panel of its own (a page of
625
+ * Spaces) keeps the person where they are. Unbound, the press uses `hrefForRecord` + `navigate` as before.
626
+ */
627
+ openRecord?: (args: {
628
+ table: Table;
629
+ recordId: Uuid;
630
+ }) => void;
622
631
  /**
623
632
  * OPTIONAL. WHERE A FILE OPENS. A value too big for one cell is kept as a file and the cell
624
633
  * holds its first words (`@ai-matrx/records/core` `wholeValueOf`); this is the host's page for
@@ -1661,7 +1670,7 @@ declare function laneFor(table: Table): TableLane;
1661
1670
  */
1662
1671
  declare function bodyFieldOf(fields: readonly Field[]): Field | undefined;
1663
1672
 
1664
- 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>, "presentation" | "layout" | "measure" | "where" | "mapField" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1673
+ 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>, "presentation" | "layout" | "measure" | "where" | "groupField" | "mapField" | "sorts" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField" | "mapLngField" | "parentField">>>>>;
1665
1674
 
1666
1675
  declare const viewFromRow: (row: _ai_matrx_records.SavedViewRow) => base.SavedView<GridPresentation>;
1667
1676