@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/f0.d.ts
CHANGED
|
@@ -3121,6 +3121,16 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
|
|
|
3121
3121
|
* When omitted, the cell is always rendered read-only.
|
|
3122
3122
|
*/
|
|
3123
3123
|
editType?: (item: R) => EditableTableCellEditType | undefined;
|
|
3124
|
+
/**
|
|
3125
|
+
* Configuration for `"select"` cells. Required when `editType` returns `"select"`.
|
|
3126
|
+
* Accepts either static `options` or a `source` + `mapOptions` for async data.
|
|
3127
|
+
*
|
|
3128
|
+
* If `editType` returns `"select"` but `selectConfig` is missing, the cell
|
|
3129
|
+
* falls back to a non-editable display with a `console.warn` at runtime.
|
|
3130
|
+
* Type-level enforcement is not possible because `editType` is a per-row
|
|
3131
|
+
* function whose return value isn't statically known.
|
|
3132
|
+
*/
|
|
3133
|
+
selectConfig?: SelectCellConfig<R>;
|
|
3124
3134
|
};
|
|
3125
3135
|
|
|
3126
3136
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
@@ -8265,6 +8275,26 @@ declare type SectionProps = {
|
|
|
8265
8275
|
*/
|
|
8266
8276
|
export declare type SectionRenderIf = RenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
8267
8277
|
|
|
8278
|
+
/**
|
|
8279
|
+
* Configuration for select-type cells. Mirrors F0Select's two data modes:
|
|
8280
|
+
* - Static `options` (array or per-row function)
|
|
8281
|
+
* - Async `source` (DataSourceDefinition) with `mapOptions`
|
|
8282
|
+
*/
|
|
8283
|
+
declare type SelectCellConfig<R extends RecordType> = {
|
|
8284
|
+
placeholder?: string;
|
|
8285
|
+
clearable?: boolean;
|
|
8286
|
+
showSearchBox?: boolean;
|
|
8287
|
+
defaultItem?: (item: R) => F0SelectItemObject<string, RecordType> | undefined;
|
|
8288
|
+
} & ({
|
|
8289
|
+
options: F0SelectItemProps<string>[] | ((item: R) => F0SelectItemProps<string>[]);
|
|
8290
|
+
source?: never;
|
|
8291
|
+
mapOptions?: never;
|
|
8292
|
+
} | {
|
|
8293
|
+
source: Omit<DataSourceDefinition<RecordType, FiltersDefinition, SortingsDefinition, GroupingDefinition<RecordType>>, "selectable" | "grouping" | "defaultGrouping" | "currentGrouping" | "fetchChildren" | "itemsWithChildren" | "childrenCount">;
|
|
8294
|
+
mapOptions: (record: RecordType) => F0SelectItemProps<string, RecordType>;
|
|
8295
|
+
options?: never;
|
|
8296
|
+
});
|
|
8297
|
+
|
|
8268
8298
|
/**
|
|
8269
8299
|
* Represents a collection of selected items.
|
|
8270
8300
|
* @template T - The type of items in the collection
|
|
@@ -9828,6 +9858,11 @@ declare module "gridstack" {
|
|
|
9828
9858
|
}
|
|
9829
9859
|
|
|
9830
9860
|
|
|
9861
|
+
declare namespace Calendar {
|
|
9862
|
+
var displayName: string;
|
|
9863
|
+
}
|
|
9864
|
+
|
|
9865
|
+
|
|
9831
9866
|
declare module "@tiptap/core" {
|
|
9832
9867
|
interface Commands<ReturnType> {
|
|
9833
9868
|
aiBlock: {
|
|
@@ -9875,8 +9910,3 @@ declare module "@tiptap/core" {
|
|
|
9875
9910
|
};
|
|
9876
9911
|
}
|
|
9877
9912
|
}
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
declare namespace Calendar {
|
|
9881
|
-
var displayName: string;
|
|
9882
|
-
}
|
package/dist/f0.js
CHANGED
|
@@ -4,8 +4,8 @@ import { jsx as C, jsxs as W, Fragment as fn } from "react/jsx-runtime";
|
|
|
4
4
|
import * as Kn from "react";
|
|
5
5
|
import Ie, { forwardRef as Qr, useRef as ge, useImperativeHandle as XG, Children as Qv, createContext as Tn, useContext as kr, useState as Ee, useMemo as se, useEffect as Fe, useCallback as oe, useLayoutEffect as n_, createElement as Qd, isValidElement as Hk, Fragment as Wk, memo as $k, useReducer as qG, cloneElement as jG, PureComponent as KG, useId as Q1 } from "react";
|
|
6
6
|
import { createPortal as Uk, unstable_batchedUpdates as Jd, flushSync as QG } from "react-dom";
|
|
7
|
-
import { b9 as Zk, C as JG, b as Yk, ba as uT, bb as eH, f as ey, L as yc, bc as tH, A as rH, a as eh, bd as Xk, be as nH, g as xv, bf as iH, i as aH, bg as oH, d as ru, c as qk, bh as sH, G as lH, aN as uH, bi as cT, bj as cH, e as fH, bk as jk, bl as dH, bm as Kk, bn as Qk, bo as i_, bp as hH, ae as Jk, bq as vH, br as pH, a9 as gH, aa as mH, bs as yH, ab as bH, bt as _H, bu as xH, bv as fT, bw as wH, ac as SH, ad as CH, aE as TH, aF as DH, aJ as AH, aG as MH, aH as EH, aI as LH, ay as IH, aQ as a_, bx as eR, aT as tR, b7 as NH, aU as kH, aR as RH, aW as rR, aX as J1, b5 as PH, by as OH, bz as BH, ao as Fg, a3 as VH, an as ew, ap as tw, aV as zH, aO as nR, bA as iR, bB as aR, aP as FH, b0 as GH, a_ as HH, bC as WH, bD as $H, am as UH } from "./useDataCollectionSource-
|
|
8
|
-
import { bF as L0e, ak as I0e, m as N0e, bE as k0e, b3 as R0e, aS as P0e, bG as O0e, bH as B0e, bI as V0e, aC as z0e } from "./useDataCollectionSource-
|
|
7
|
+
import { b9 as Zk, C as JG, b as Yk, ba as uT, bb as eH, f as ey, L as yc, bc as tH, A as rH, a as eh, bd as Xk, be as nH, g as xv, bf as iH, i as aH, bg as oH, d as ru, c as qk, bh as sH, G as lH, aN as uH, bi as cT, bj as cH, e as fH, bk as jk, bl as dH, bm as Kk, bn as Qk, bo as i_, bp as hH, ae as Jk, bq as vH, br as pH, a9 as gH, aa as mH, bs as yH, ab as bH, bt as _H, bu as xH, bv as fT, bw as wH, ac as SH, ad as CH, aE as TH, aF as DH, aJ as AH, aG as MH, aH as EH, aI as LH, ay as IH, aQ as a_, bx as eR, aT as tR, b7 as NH, aU as kH, aR as RH, aW as rR, aX as J1, b5 as PH, by as OH, bz as BH, ao as Fg, a3 as VH, an as ew, ap as tw, aV as zH, aO as nR, bA as iR, bB as aR, aP as FH, b0 as GH, a_ as HH, bC as WH, bD as $H, am as UH } from "./useDataCollectionSource-8uOMe8BJ.js";
|
|
8
|
+
import { bF as L0e, ak as I0e, m as N0e, bE as k0e, b3 as R0e, aS as P0e, bG as O0e, bH as B0e, bI as V0e, aC as z0e } from "./useDataCollectionSource-8uOMe8BJ.js";
|
|
9
9
|
import { A as G0e, F as H0e, c as W0e, d as $0e, b as U0e, a as Z0e, o as Y0e, u as X0e } from "./F0HILActionConfirmation-B3Hwp5tS.js";
|
|
10
10
|
import { defaultTranslations as j0e } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const ZH = {
|
|
@@ -667,6 +667,11 @@ declare module "gridstack" {
|
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
|
|
670
|
+
declare namespace Calendar {
|
|
671
|
+
var displayName: string;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
|
|
670
675
|
declare module "@tiptap/core" {
|
|
671
676
|
interface Commands<ReturnType> {
|
|
672
677
|
aiBlock: {
|
|
@@ -714,8 +719,3 @@ declare module "@tiptap/core" {
|
|
|
714
719
|
};
|
|
715
720
|
}
|
|
716
721
|
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
declare namespace Calendar {
|
|
720
|
-
var displayName: string;
|
|
721
|
-
}
|