@factorialco/f0-react 1.356.1 → 1.357.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
@@ -1547,6 +1547,8 @@ export declare interface CustomFieldRenderProps<TValue = unknown, TConfig = unde
1547
1547
  isValidating: boolean;
1548
1548
  /** Whether the field is disabled */
1549
1549
  disabled?: boolean;
1550
+ /** Whether the field is required (derived from Zod schema) */
1551
+ required?: boolean;
1550
1552
  /** Custom configuration passed via fieldConfig */
1551
1553
  config: TConfig;
1552
1554
  }
@@ -1573,6 +1575,8 @@ declare interface CustomFieldRenderPropsBase {
1573
1575
  isValidating: boolean;
1574
1576
  /** Whether the field is disabled */
1575
1577
  disabled?: boolean;
1578
+ /** Whether the field is required (derived from Zod schema) */
1579
+ required?: boolean;
1576
1580
  }
1577
1581
 
1578
1582
  export declare const Dashboard: ComponentType<DashboardProps_2> & PageLayoutGroupComponent_2;
@@ -1799,6 +1803,16 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1799
1803
  selectable?: (item: R) => string | number | undefined;
1800
1804
  /** Default selected items */
1801
1805
  defaultSelectedItems?: SelectedItemsState<R>;
1806
+ /**
1807
+ * When true, selection spans across all pages (cross-page selection).
1808
+ * - Selection state persists when navigating between pages
1809
+ * - itemStatus includes items from all pages
1810
+ *
1811
+ * When false (default), selection is scoped to the current page only:
1812
+ * - Selection state resets when navigating between pages
1813
+ * - itemStatus only includes items from the current page
1814
+ */
1815
+ allPagesSelection?: boolean;
1802
1816
  /***** GROUPING ***************************************************/
1803
1817
  /** Grouping configuration */
1804
1818
  grouping?: Grouping;
@@ -2144,6 +2158,9 @@ export declare const defaultTranslations: {
2144
2158
  readonly singular: "Selected";
2145
2159
  readonly plural: "Selected";
2146
2160
  readonly all: "All selected";
2161
+ readonly allOnPage: "All items on this page are selected";
2162
+ readonly selectAllItems: "Select all {{total}} items";
2163
+ readonly allItemsSelected: "All {{total}} items selected";
2147
2164
  };
2148
2165
  };
2149
2166
  readonly syncStatus: {
@@ -5620,7 +5637,7 @@ declare type OnLoadErrorCallback = (error: DataError) => void;
5620
5637
 
5621
5638
  export declare type OnSelectItemsCallback<R extends RecordType, Filters extends FiltersDefinition> = (selectedItems: SelectedItemsDetailedStatus<R, Filters> & {
5622
5639
  byLane?: Record<string, SelectedItemsDetailedStatus<R, Filters>>;
5623
- }, clearSelectedItems: () => void) => void;
5640
+ }, clearSelectedItems: () => void, handleSelectAll?: (checked: boolean) => void) => void;
5624
5641
 
5625
5642
  declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
5626
5643
 
@@ -7125,7 +7142,7 @@ export declare function useSchemaDefinition(schema: z.ZodObject<ZodRawShape>, se
7125
7142
  * Custom hook to manage selection state for items and groups in a data table
7126
7143
  * Supports single/multi selection, grouped data, pagination, and filtering
7127
7144
  */
7128
- export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll, isSearchActive, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
7145
+ export declare function useSelectable<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>>({ data, paginationInfo, source, selectionMode, selectedState, onSelectItems, disableSelectAll, isSearchActive, allPagesSelection, }: UseSelectableProps<R, Filters, Sortings, Grouping>): UseSelectableReturn<R, Filters>;
7129
7146
 
7130
7147
  export declare type UseSelectableProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Grouping extends GroupingDefinition<R>> = {
7131
7148
  data: Data<R>;
@@ -7145,6 +7162,16 @@ export declare type UseSelectableProps<R extends RecordType, Filters extends Fil
7145
7162
  * because the visible items are a filtered subset.
7146
7163
  */
7147
7164
  isSearchActive?: boolean;
7165
+ /**
7166
+ * When true, selection spans across all pages (cross-page selection).
7167
+ * - Selection state persists when navigating between pages
7168
+ * - itemStatus includes items from all pages
7169
+ *
7170
+ * When false (default), selection is scoped to the current page only:
7171
+ * - Selection state resets when navigating between pages
7172
+ * - itemStatus only includes items from the current page
7173
+ */
7174
+ allPagesSelection?: boolean;
7148
7175
  };
7149
7176
 
7150
7177
  export declare type UseSelectableReturn<R extends RecordType, Filters extends FiltersDefinition> = {
@@ -7351,6 +7378,11 @@ declare module "gridstack" {
7351
7378
  }
7352
7379
 
7353
7380
 
7381
+ declare namespace Calendar {
7382
+ var displayName: string;
7383
+ }
7384
+
7385
+
7354
7386
  declare module "@tiptap/core" {
7355
7387
  interface Commands<ReturnType> {
7356
7388
  aiBlock: {
@@ -7387,8 +7419,3 @@ declare module "@tiptap/core" {
7387
7419
  };
7388
7420
  }
7389
7421
  }
7390
-
7391
-
7392
- declare namespace Calendar {
7393
- var displayName: string;
7394
- }