@ai-matrx/records-ui 0.115.76 → 0.115.78

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/dist/index.d.cts CHANGED
@@ -3915,6 +3915,12 @@ interface ViewSwitcherProps {
3915
3915
  hideRefusedRowActions?: boolean | undefined;
3916
3916
  /** The grid's new-row line words (`GridProps.newRowLabel`). */
3917
3917
  newRowLabel?: string | undefined;
3918
+ /**
3919
+ * The values a new row starts with, from the host (Spaces: a view filtered to "This page's row" hands the
3920
+ * relation to that row, so a row added in the view stays in it). Every add path of every layout writes them
3921
+ * with the row; a path's own values (a board column's stage) win. Absent: a blank row, as always.
3922
+ */
3923
+ newRowValues?: Readonly<Record<string, unknown>> | undefined;
3918
3924
  className?: string | undefined;
3919
3925
  }
3920
3926
  /** The records this view holds: its Rule's members when it names one, the table otherwise. */
@@ -3946,7 +3952,8 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
3946
3952
  */
3947
3953
  membership: string;
3948
3954
  };
3949
- declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onRowsShown, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, chooser, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, searchBox, hideRefusedRowActions, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
3955
+ /** One view of one table, in the layout it names; the host's preset values for a new row reach every add path. */
3956
+ declare function ViewSwitcher(props: ViewSwitcherProps): react.JSX.Element;
3950
3957
 
3951
3958
  /** The host app's saved zone (IANA). `null` / junk clears it: the device zone applies. */
3952
3959
  declare function setPersonTimeZone(next: string | null | undefined): void;
@@ -6957,12 +6964,14 @@ declare function duplicateProgressWords(p: TableDuplicateProgress): string;
6957
6964
  interface TableDuplicateDialogProps {
6958
6965
  tableId: Uuid;
6959
6966
  name: string;
6967
+ /** The table's own organization: every write says which organization it is for (the copy stays in it). */
6968
+ organizationId?: Uuid | null | undefined;
6960
6969
  open: boolean;
6961
6970
  onOpenChange: (open: boolean) => void;
6962
6971
  /** The copy landed: the host opens it (a list re-reads). Absent, "Open the copy" follows its path. */
6963
6972
  onDuplicated?: ((copy: TableDuplicated) => void) | undefined;
6964
6973
  }
6965
- declare function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
6974
+ declare function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
6966
6975
 
6967
6976
  declare function CalendarLinkOnce({ url }: {
6968
6977
  url: string;
package/dist/index.d.ts CHANGED
@@ -3915,6 +3915,12 @@ interface ViewSwitcherProps {
3915
3915
  hideRefusedRowActions?: boolean | undefined;
3916
3916
  /** The grid's new-row line words (`GridProps.newRowLabel`). */
3917
3917
  newRowLabel?: string | undefined;
3918
+ /**
3919
+ * The values a new row starts with, from the host (Spaces: a view filtered to "This page's row" hands the
3920
+ * relation to that row, so a row added in the view stays in it). Every add path of every layout writes them
3921
+ * with the row; a path's own values (a board column's stage) win. Absent: a blank row, as always.
3922
+ */
3923
+ newRowValues?: Readonly<Record<string, unknown>> | undefined;
3918
3924
  className?: string | undefined;
3919
3925
  }
3920
3926
  /** The records this view holds: its Rule's members when it names one, the table otherwise. */
@@ -3946,7 +3952,8 @@ declare function useViewRecords(view: SavedViewSpec, pageSize?: number, filter?:
3946
3952
  */
3947
3953
  membership: string;
3948
3954
  };
3949
- declare function ViewSwitcher({ view, onLayoutChange, onViewChange, onOpenRecord, openRecordId, onCloseRecord, onRowsShown, onMoved, onNewRecordForm, onAskWhoChanged, pageSize: pageSizeAsked, titleField, filter, onClearFilter, chooser, viewId, onOrderPlaced, footer, embedded, sortOverride, searchOverride, onSearchChange, searchBox, hideRefusedRowActions, newRowLabel, className, }: ViewSwitcherProps): react.JSX.Element;
3955
+ /** One view of one table, in the layout it names; the host's preset values for a new row reach every add path. */
3956
+ declare function ViewSwitcher(props: ViewSwitcherProps): react.JSX.Element;
3950
3957
 
3951
3958
  /** The host app's saved zone (IANA). `null` / junk clears it: the device zone applies. */
3952
3959
  declare function setPersonTimeZone(next: string | null | undefined): void;
@@ -6957,12 +6964,14 @@ declare function duplicateProgressWords(p: TableDuplicateProgress): string;
6957
6964
  interface TableDuplicateDialogProps {
6958
6965
  tableId: Uuid;
6959
6966
  name: string;
6967
+ /** The table's own organization: every write says which organization it is for (the copy stays in it). */
6968
+ organizationId?: Uuid | null | undefined;
6960
6969
  open: boolean;
6961
6970
  onOpenChange: (open: boolean) => void;
6962
6971
  /** The copy landed: the host opens it (a list re-reads). Absent, "Open the copy" follows its path. */
6963
6972
  onDuplicated?: ((copy: TableDuplicated) => void) | undefined;
6964
6973
  }
6965
- declare function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
6974
+ declare function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
6966
6975
 
6967
6976
  declare function CalendarLinkOnce({ url }: {
6968
6977
  url: string;