@factorialco/f0-react 1.390.1 → 1.391.0

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/f0.d.ts CHANGED
@@ -2389,6 +2389,7 @@ export declare const defaultTranslations: {
2389
2389
  readonly errors: {
2390
2390
  readonly saveFailed: "Save failed";
2391
2391
  };
2392
+ readonly addRow: "Add row";
2392
2393
  };
2393
2394
  readonly itemsCount: "items";
2394
2395
  readonly emptyStates: {
@@ -2865,6 +2866,12 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2865
2866
  * Rejection sets an error on the edited column.
2866
2867
  */
2867
2868
  onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
2869
+ /** When provided, renders an "Add" button row at the bottom of the table and nested rows. Receives the parent item when triggered from a nested row. Supports async functions for loading state. */
2870
+ onAddRow?: (parentItem?: R) => void | Promise<void>;
2871
+ /** Custom label for the root-level "Add row" button. Falls back to the default i18n translation. */
2872
+ addRowButtonLabel?: string;
2873
+ /** Custom label for the nested-row "Add row" button. Falls back to the default i18n translation. */
2874
+ nestedAddRowButtonLabel?: string;
2868
2875
  };
2869
2876
 
2870
2877
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;