@factorialco/f0-react 1.398.0 → 1.399.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/experimental.d.ts
CHANGED
|
@@ -1581,7 +1581,7 @@ export declare type CollectionProps<Record extends RecordType, Filters extends F
|
|
|
1581
1581
|
*/
|
|
1582
1582
|
tmpFullWidth?: boolean;
|
|
1583
1583
|
/** Indicates the source visualization type */
|
|
1584
|
-
fromVisualization?:
|
|
1584
|
+
fromVisualization?: TableVisualizationType;
|
|
1585
1585
|
} & VisualizationOptions;
|
|
1586
1586
|
|
|
1587
1587
|
declare type CollectionVisualizations<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = {
|
|
@@ -2902,7 +2902,7 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
|
|
|
2902
2902
|
} & WithDataTestIdProps;
|
|
2903
2903
|
|
|
2904
2904
|
/** The edit mode for a column cell in the editable table. */
|
|
2905
|
-
declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect";
|
|
2905
|
+
declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
2906
2906
|
|
|
2907
2907
|
declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
2908
2908
|
|
|
@@ -2922,13 +2922,6 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
|
|
|
2922
2922
|
* When omitted, the cell is always rendered read-only.
|
|
2923
2923
|
*/
|
|
2924
2924
|
editType?: (item: R) => EditableTableCellEditType | undefined;
|
|
2925
|
-
/**
|
|
2926
|
-
* Function that determines if the cell should be editable for a given item.
|
|
2927
|
-
* The cell is only editable if both `editType` returns a value AND
|
|
2928
|
-
* this function returns `true` for the given item.
|
|
2929
|
-
* Return `true` for all items to make the column always editable.
|
|
2930
|
-
*/
|
|
2931
|
-
editable: (item: R) => boolean;
|
|
2932
2925
|
};
|
|
2933
2926
|
|
|
2934
2927
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
@@ -6231,6 +6224,8 @@ declare type TableVisualizationSettings = {
|
|
|
6231
6224
|
hidden?: ColId[];
|
|
6232
6225
|
};
|
|
6233
6226
|
|
|
6227
|
+
export declare type TableVisualizationType = "table" | "editableTable";
|
|
6228
|
+
|
|
6234
6229
|
/**
|
|
6235
6230
|
* @experimental This is an experimental component use it at your own risk
|
|
6236
6231
|
*/
|
package/dist/experimental.js
CHANGED
|
@@ -3,8 +3,8 @@ import { dx as tA, dw as nA, ds as rA, dt as iA, dF as sA, dG as oA, du as lA, d
|
|
|
3
3
|
import { jsx as c, jsxs as g, Fragment as ne } from "react/jsx-runtime";
|
|
4
4
|
import * as Nn from "react";
|
|
5
5
|
import $, { PureComponent as Ep, forwardRef as P, useRef as K, useTransition as Tp, useState as R, useLayoutEffect as Qa, useContext as Js, createContext as Xs, useCallback as X, useMemo as ee, useEffect as W, useId as ec, useImperativeHandle as tc, memo as Zs, Fragment as Yi, isValidElement as Dp, cloneElement as nc, Children as rc } from "react";
|
|
6
|
-
import { f as Jt, p as Sn, i as tr, D as Lp, L as wi, P as Rp, A as Op, a as nr, b as Mp, c as Pp, G as Fp, g as jo, l as zp, d as Ho, e as $p, h as ic, j as sc, k as Bp, C as jp, m as Hp, N as je, n as at, o as Ee, q as Vp, r as mr, T as Ue, s as oc, S as Me, t as Qs, u as $e, v as Vo, w as Wp, x as lc, F as Ie, y as Fe, z as In, B as Dr, E as ac, H as Up, I as Wt, J as Gp, K as Kp, M as qp, R as Vn, O as Wn, Q as eo, U as Yp, V as cc, W as dc, X as uc, Y as Jp, Z as fc, _ as hc, $ as pc, a0 as mc, a1 as gc, a2 as bc, a3 as Wo, a4 as Xp, a5 as Uo, a6 as Zp, a7 as Qp, a8 as em, a9 as tm, aa as nm, ab as rm, ac as im, ad as sm, ae as om, af as xc, ag as lm, ah as am, ai as cm, aj as wc, ak as Ji, al as dm, am as um, an as Go, ao as vc, ap as fm, aq as hm, ar as pm, as as mm, at as gm, au as bm, av as xm, aw as wm, ax as yc, ay as vm, az as ym, aA as km, aB as kc, aC as Cm, aD as Nm, aE as Sm, aF as Im, aG as Am, aH as _m, aI as Em, aJ as Ko, aK as Tm, aL as Dm, aM as Lm, aN as Rm } from "./useDataCollectionSource-
|
|
7
|
-
import { aO as xA, aQ as wA, b3 as vA, aP as yA, aV as kA, b6 as CA, b4 as NA, aW as SA, aX as IA, aS as AA, aY as _A, b0 as EA, b2 as TA, b5 as DA, aU as LA, aT as RA, b1 as OA, aR as MA, aZ as PA, a_ as FA, a$ as zA } from "./useDataCollectionSource-
|
|
6
|
+
import { f as Jt, p as Sn, i as tr, D as Lp, L as wi, P as Rp, A as Op, a as nr, b as Mp, c as Pp, G as Fp, g as jo, l as zp, d as Ho, e as $p, h as ic, j as sc, k as Bp, C as jp, m as Hp, N as je, n as at, o as Ee, q as Vp, r as mr, T as Ue, s as oc, S as Me, t as Qs, u as $e, v as Vo, w as Wp, x as lc, F as Ie, y as Fe, z as In, B as Dr, E as ac, H as Up, I as Wt, J as Gp, K as Kp, M as qp, R as Vn, O as Wn, Q as eo, U as Yp, V as cc, W as dc, X as uc, Y as Jp, Z as fc, _ as hc, $ as pc, a0 as mc, a1 as gc, a2 as bc, a3 as Wo, a4 as Xp, a5 as Uo, a6 as Zp, a7 as Qp, a8 as em, a9 as tm, aa as nm, ab as rm, ac as im, ad as sm, ae as om, af as xc, ag as lm, ah as am, ai as cm, aj as wc, ak as Ji, al as dm, am as um, an as Go, ao as vc, ap as fm, aq as hm, ar as pm, as as mm, at as gm, au as bm, av as xm, aw as wm, ax as yc, ay as vm, az as ym, aA as km, aB as kc, aC as Cm, aD as Nm, aE as Sm, aF as Im, aG as Am, aH as _m, aI as Em, aJ as Ko, aK as Tm, aL as Dm, aM as Lm, aN as Rm } from "./useDataCollectionSource-BpkC5xiH.js";
|
|
7
|
+
import { aO as xA, aQ as wA, b3 as vA, aP as yA, aV as kA, b6 as CA, b4 as NA, aW as SA, aX as IA, aS as AA, aY as _A, b0 as EA, b2 as TA, b5 as DA, aU as LA, aT as RA, b1 as OA, aR as MA, aZ as PA, a_ as FA, a$ as zA } from "./useDataCollectionSource-BpkC5xiH.js";
|
|
8
8
|
import './experimental.css';const Om = kf("Search", [
|
|
9
9
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
10
10
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -1574,7 +1574,7 @@ declare type CollectionProps<Record extends RecordType, Filters extends FiltersD
|
|
|
1574
1574
|
*/
|
|
1575
1575
|
tmpFullWidth?: boolean;
|
|
1576
1576
|
/** Indicates the source visualization type */
|
|
1577
|
-
fromVisualization?:
|
|
1577
|
+
fromVisualization?: TableVisualizationType;
|
|
1578
1578
|
} & VisualizationOptions;
|
|
1579
1579
|
|
|
1580
1580
|
declare type CollectionVisualizations<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = {
|
|
@@ -3028,7 +3028,7 @@ export declare type DropIntent = {
|
|
|
3028
3028
|
};
|
|
3029
3029
|
|
|
3030
3030
|
/** The edit mode for a column cell in the editable table. */
|
|
3031
|
-
declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect";
|
|
3031
|
+
declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
3032
3032
|
|
|
3033
3033
|
declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
3034
3034
|
|
|
@@ -3048,13 +3048,6 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
|
|
|
3048
3048
|
* When omitted, the cell is always rendered read-only.
|
|
3049
3049
|
*/
|
|
3050
3050
|
editType?: (item: R) => EditableTableCellEditType | undefined;
|
|
3051
|
-
/**
|
|
3052
|
-
* Function that determines if the cell should be editable for a given item.
|
|
3053
|
-
* The cell is only editable if both `editType` returns a value AND
|
|
3054
|
-
* this function returns `true` for the given item.
|
|
3055
|
-
* Return `true` for all items to make the column always editable.
|
|
3056
|
-
*/
|
|
3057
|
-
editable: (item: R) => boolean;
|
|
3058
3051
|
};
|
|
3059
3052
|
|
|
3060
3053
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
@@ -8442,6 +8435,8 @@ declare type TableVisualizationSettings = {
|
|
|
8442
8435
|
hidden?: ColId[];
|
|
8443
8436
|
};
|
|
8444
8437
|
|
|
8438
|
+
declare type TableVisualizationType = "table" | "editableTable";
|
|
8439
|
+
|
|
8445
8440
|
export declare const Tag: WithDataTestIdReturnType_4<({ tag }: {
|
|
8446
8441
|
tag: TagVariant_2;
|
|
8447
8442
|
}) => ReactNode>;
|
package/dist/f0.js
CHANGED
|
@@ -4,8 +4,8 @@ import { jsx as C, jsxs as W, Fragment as Xn } from "react/jsx-runtime";
|
|
|
4
4
|
import * as qn from "react";
|
|
5
5
|
import Ie, { forwardRef as Jr, useRef as ve, useImperativeHandle as V4, Children as Xv, createContext as Sn, useContext as kr, useState as Te, useMemo as ae, useEffect as Oe, useCallback as oe, useLayoutEffect as j_, createElement as qd, isValidElement as Nk, Fragment as z4, memo as kk, useReducer as F4, cloneElement as G4, PureComponent as H4, useId as Rk } from "react";
|
|
6
6
|
import { createPortal as Pk, unstable_batchedUpdates as jd, flushSync as W4 } from "react-dom";
|
|
7
|
-
import { b7 as Ok, C as $4, b as Bk, b8 as iT, b9 as U4, f as qm, L as gc, ba as Z4, A as Y4, a as Kd, bb as Vk, bc as X4, g as yv, bd as q4, i as j4, be as K4, d as eu, c as zk, bf as Q4, G as J4, aM as eH, bg as aT, bh as tH, e as rH, bi as Fk, bj as nH, bk as Gk, bl as Hk, bm as K_, bn as iH, ae as Wk, bo as aH, bp as oH, a9 as sH, aa as lH, bq as uH, ab as cH, br as fH, bs as dH, bt as oT, bu as hH, ac as vH, ad as pH, aD as gH, aE as mH, aI as yH, aF as _H, aG as bH, aH as xH, bv as jm, bw as wH, ax as SH, aP as Q_, aS as $k, b5 as CH, aT as TH, aQ as DH, aU as Uk, aV as Z1, b3 as AH, bx as MH, by as EH, ao as Og, a3 as LH, an as Y1, ap as X1, bz as Zk, bA as Yk, aO as IH, aN as NH, a_ as kH, aY as RH, bB as PH, bC as OH, am as BH } from "./useDataCollectionSource-
|
|
8
|
-
import { bE as o0e, ak as s0e, m as l0e, bD as u0e, b1 as c0e, aR as f0e, bF as d0e, bG as h0e, bH as v0e, aB as p0e } from "./useDataCollectionSource-
|
|
7
|
+
import { b7 as Ok, C as $4, b as Bk, b8 as iT, b9 as U4, f as qm, L as gc, ba as Z4, A as Y4, a as Kd, bb as Vk, bc as X4, g as yv, bd as q4, i as j4, be as K4, d as eu, c as zk, bf as Q4, G as J4, aM as eH, bg as aT, bh as tH, e as rH, bi as Fk, bj as nH, bk as Gk, bl as Hk, bm as K_, bn as iH, ae as Wk, bo as aH, bp as oH, a9 as sH, aa as lH, bq as uH, ab as cH, br as fH, bs as dH, bt as oT, bu as hH, ac as vH, ad as pH, aD as gH, aE as mH, aI as yH, aF as _H, aG as bH, aH as xH, bv as jm, bw as wH, ax as SH, aP as Q_, aS as $k, b5 as CH, aT as TH, aQ as DH, aU as Uk, aV as Z1, b3 as AH, bx as MH, by as EH, ao as Og, a3 as LH, an as Y1, ap as X1, bz as Zk, bA as Yk, aO as IH, aN as NH, a_ as kH, aY as RH, bB as PH, bC as OH, am as BH } from "./useDataCollectionSource-BpkC5xiH.js";
|
|
8
|
+
import { bE as o0e, ak as s0e, m as l0e, bD as u0e, b1 as c0e, aR as f0e, bF as d0e, bG as h0e, bH as v0e, aB as p0e } from "./useDataCollectionSource-BpkC5xiH.js";
|
|
9
9
|
import { A as m0e, F as y0e, c as _0e, d as b0e, b as x0e, a as w0e, o as S0e, u as C0e } from "./F0HILActionConfirmation-Ba7uFrN1.js";
|
|
10
10
|
import { defaultTranslations as D0e } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const VH = {
|