@ai-matrx/records-ui 0.115.77 → 0.115.79

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;
@@ -4295,6 +4302,11 @@ interface ViewBarProps {
4295
4302
  settings?: ReactNode | undefined;
4296
4303
  /** Every time the list is read: the views, or null when they could not be read. */
4297
4304
  onViews?: ((views: SavedView[] | null) => void) | undefined;
4305
+ /**
4306
+ * "Copy settings from…" wrote another view's settings onto this view. The person's own look on it (which
4307
+ * outranks the saved view on screen) is the host's to let go, or the copy is saved yet never seen.
4308
+ */
4309
+ onSettingsCopied?: ((viewId: Uuid$1) => void) | undefined;
4298
4310
  /**
4299
4311
  * THE LIST ALREADY READ (lane SSR-ROWS): the page's seed answered the views, already satisfying
4300
4312
  * `seed`. The bar starts from them and does not read them again on mount.
@@ -4309,7 +4321,7 @@ interface ViewBarProps {
4309
4321
  */
4310
4322
  declare const SAVED_VIEWS_UNAVAILABLE: string;
4311
4323
  declare function seedIsSatisfied(seed: SavedViewSpec, views: readonly SavedView[]): boolean;
4312
- declare function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews, initialViews, className }: ViewBarProps): react.JSX.Element;
4324
+ declare function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews, onSettingsCopied, initialViews, className }: ViewBarProps): react.JSX.Element;
4313
4325
 
4314
4326
  /** One proposed change, in the proposer's words plus the exact act it asks for. */
4315
4327
  interface ProposedChange {
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;
@@ -4295,6 +4302,11 @@ interface ViewBarProps {
4295
4302
  settings?: ReactNode | undefined;
4296
4303
  /** Every time the list is read: the views, or null when they could not be read. */
4297
4304
  onViews?: ((views: SavedView[] | null) => void) | undefined;
4305
+ /**
4306
+ * "Copy settings from…" wrote another view's settings onto this view. The person's own look on it (which
4307
+ * outranks the saved view on screen) is the host's to let go, or the copy is saved yet never seen.
4308
+ */
4309
+ onSettingsCopied?: ((viewId: Uuid$1) => void) | undefined;
4298
4310
  /**
4299
4311
  * THE LIST ALREADY READ (lane SSR-ROWS): the page's seed answered the views, already satisfying
4300
4312
  * `seed`. The bar starts from them and does not read them again on mount.
@@ -4309,7 +4321,7 @@ interface ViewBarProps {
4309
4321
  */
4310
4322
  declare const SAVED_VIEWS_UNAVAILABLE: string;
4311
4323
  declare function seedIsSatisfied(seed: SavedViewSpec, views: readonly SavedView[]): boolean;
4312
- declare function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews, initialViews, className }: ViewBarProps): react.JSX.Element;
4324
+ declare function ViewBar({ tableId, activeViewId, onActiveView, seed, settings, onViews, onSettingsCopied, initialViews, className }: ViewBarProps): react.JSX.Element;
4313
4325
 
4314
4326
  /** One proposed change, in the proposer's words plus the exact act it asks for. */
4315
4327
  interface ProposedChange {