@factorialco/f0-react 1.403.0 → 1.404.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/ai.d.ts +5 -5
- package/dist/experimental.d.ts +35 -5
- package/dist/experimental.js +450 -438
- package/dist/f0.d.ts +35 -5
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-T2-Pxmlu.js → useDataCollectionSource-8uOMe8BJ.js} +6914 -6844
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -1546,6 +1546,11 @@ declare module "gridstack" {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
1548
|
|
|
1549
|
+
declare namespace Calendar {
|
|
1550
|
+
var displayName: string;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
|
|
1549
1554
|
declare module "@tiptap/core" {
|
|
1550
1555
|
interface Commands<ReturnType> {
|
|
1551
1556
|
aiBlock: {
|
|
@@ -1593,8 +1598,3 @@ declare module "@tiptap/core" {
|
|
|
1593
1598
|
};
|
|
1594
1599
|
}
|
|
1595
1600
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
declare namespace Calendar {
|
|
1599
|
-
var displayName: string;
|
|
1600
|
-
}
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2936,6 +2936,16 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
|
|
|
2936
2936
|
* When omitted, the cell is always rendered read-only.
|
|
2937
2937
|
*/
|
|
2938
2938
|
editType?: (item: R) => EditableTableCellEditType | undefined;
|
|
2939
|
+
/**
|
|
2940
|
+
* Configuration for `"select"` cells. Required when `editType` returns `"select"`.
|
|
2941
|
+
* Accepts either static `options` or a `source` + `mapOptions` for async data.
|
|
2942
|
+
*
|
|
2943
|
+
* If `editType` returns `"select"` but `selectConfig` is missing, the cell
|
|
2944
|
+
* falls back to a non-editable display with a `console.warn` at runtime.
|
|
2945
|
+
* Type-level enforcement is not possible because `editType` is a per-row
|
|
2946
|
+
* function whose return value isn't statically known.
|
|
2947
|
+
*/
|
|
2948
|
+
selectConfig?: SelectCellConfig<R>;
|
|
2939
2949
|
};
|
|
2940
2950
|
|
|
2941
2951
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
@@ -5808,6 +5818,26 @@ export declare const Select: <T extends string = string, R = unknown>(props: F0S
|
|
|
5808
5818
|
ref?: React.Ref<HTMLButtonElement>;
|
|
5809
5819
|
}) => React.ReactElement;
|
|
5810
5820
|
|
|
5821
|
+
/**
|
|
5822
|
+
* Configuration for select-type cells. Mirrors F0Select's two data modes:
|
|
5823
|
+
* - Static `options` (array or per-row function)
|
|
5824
|
+
* - Async `source` (DataSourceDefinition) with `mapOptions`
|
|
5825
|
+
*/
|
|
5826
|
+
declare type SelectCellConfig<R extends RecordType> = {
|
|
5827
|
+
placeholder?: string;
|
|
5828
|
+
clearable?: boolean;
|
|
5829
|
+
showSearchBox?: boolean;
|
|
5830
|
+
defaultItem?: (item: R) => F0SelectItemObject<string, RecordType> | undefined;
|
|
5831
|
+
} & ({
|
|
5832
|
+
options: F0SelectItemProps<string>[] | ((item: R) => F0SelectItemProps<string>[]);
|
|
5833
|
+
source?: never;
|
|
5834
|
+
mapOptions?: never;
|
|
5835
|
+
} | {
|
|
5836
|
+
source: Omit<DataSourceDefinition<RecordType, FiltersDefinition, SortingsDefinition, GroupingDefinition<RecordType>>, "selectable" | "grouping" | "defaultGrouping" | "currentGrouping" | "fetchChildren" | "itemsWithChildren" | "childrenCount">;
|
|
5837
|
+
mapOptions: (record: RecordType) => F0SelectItemProps<string, RecordType>;
|
|
5838
|
+
options?: never;
|
|
5839
|
+
});
|
|
5840
|
+
|
|
5811
5841
|
/**
|
|
5812
5842
|
* Represents a collection of selected items.
|
|
5813
5843
|
* @template T - The type of items in the collection
|
|
@@ -7016,6 +7046,11 @@ declare module "gridstack" {
|
|
|
7016
7046
|
}
|
|
7017
7047
|
|
|
7018
7048
|
|
|
7049
|
+
declare namespace Calendar {
|
|
7050
|
+
var displayName: string;
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7053
|
+
|
|
7019
7054
|
declare module "@tiptap/core" {
|
|
7020
7055
|
interface Commands<ReturnType> {
|
|
7021
7056
|
aiBlock: {
|
|
@@ -7063,8 +7098,3 @@ declare module "@tiptap/core" {
|
|
|
7063
7098
|
};
|
|
7064
7099
|
}
|
|
7065
7100
|
}
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
declare namespace Calendar {
|
|
7069
|
-
var displayName: string;
|
|
7070
|
-
}
|