@factorialco/f0-react 4.29.3 → 4.30.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 +2 -0
- package/dist/experimental.d.ts +22 -0
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +22 -0
- package/dist/f0.js +3 -3
- package/dist/i18n-provider-defaults.d.ts +2 -0
- package/dist/i18n-provider-defaults.js +3 -1
- package/dist/{useDataCollectionSource-BDZXr6jH.js → useDataCollectionSource-BPqFLrNN.js} +2000 -1961
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -2050,6 +2050,8 @@ export declare const defaultTranslations: {
|
|
|
2050
2050
|
readonly settings: {
|
|
2051
2051
|
readonly showAllColumns: "Show all";
|
|
2052
2052
|
readonly hideAllColumns: "Hide all";
|
|
2053
|
+
readonly addColumn: "Add column";
|
|
2054
|
+
readonly removeColumn: "Remove column";
|
|
2053
2055
|
};
|
|
2054
2056
|
};
|
|
2055
2057
|
readonly editableTable: {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -3403,6 +3403,8 @@ declare const defaultTranslations: {
|
|
|
3403
3403
|
readonly settings: {
|
|
3404
3404
|
readonly showAllColumns: "Show all";
|
|
3405
3405
|
readonly hideAllColumns: "Hide all";
|
|
3406
|
+
readonly addColumn: "Add column";
|
|
3407
|
+
readonly removeColumn: "Remove column";
|
|
3406
3408
|
};
|
|
3407
3409
|
};
|
|
3408
3410
|
readonly editableTable: {
|
|
@@ -9386,6 +9388,12 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
9386
9388
|
* Avoid hiding the column by the user
|
|
9387
9389
|
*/
|
|
9388
9390
|
noHiding?: boolean;
|
|
9391
|
+
/**
|
|
9392
|
+
* Avoid removing the column by the user. Only relevant when the
|
|
9393
|
+
* visualization sets `onRemoveColumn`; the per-row trash affordance in the
|
|
9394
|
+
* settings popover is hidden for this column. Mirrors `noHiding`.
|
|
9395
|
+
*/
|
|
9396
|
+
noRemoving?: boolean;
|
|
9389
9397
|
/**
|
|
9390
9398
|
* Assigns this column to a header group. Columns with the same
|
|
9391
9399
|
* headerGroupId are visually grouped under a shared spanning header.
|
|
@@ -9501,6 +9509,20 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
|
|
|
9501
9509
|
* Allow users to hide columns (you can define especifcally non hiddable columns in col props, also frozen columns are not hiddable)
|
|
9502
9510
|
*/
|
|
9503
9511
|
allowColumnHiding?: boolean;
|
|
9512
|
+
/**
|
|
9513
|
+
* Called when the user clicks the "Add column" entry at the top of the
|
|
9514
|
+
* column-settings popover. When omitted, the entry is not shown. Open your
|
|
9515
|
+
* own column picker and update `columns` in response.
|
|
9516
|
+
*/
|
|
9517
|
+
onAddColumn?: () => void;
|
|
9518
|
+
/**
|
|
9519
|
+
* Called when the user removes a column via the trash affordance revealed on
|
|
9520
|
+
* hovering its row in the column-settings popover. When omitted, no remove
|
|
9521
|
+
* affordance is shown. Removing is distinct from hiding: drop the column from
|
|
9522
|
+
* `columns` in response. Frozen/leading columns and columns flagged
|
|
9523
|
+
* `noRemoving` are never removable.
|
|
9524
|
+
*/
|
|
9525
|
+
onRemoveColumn?: (columnId: ColId) => void;
|
|
9504
9526
|
/** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
|
|
9505
9527
|
referenceRowType?: (item: R) => ReferenceType;
|
|
9506
9528
|
/**
|
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as Va, B as Ga, i as Ka, j as qa, k as wn, l as lt, m as tt, n as Ya,
|
|
|
2
2
|
import { cD as vm, cC as ym, cP as wm, cz as Nm, cA as Cm, cs as km, ct as Im, ct as Sm, cu as Fm, cS as Tm, cB as Am, cL as Em, cM as Rm, cQ as Dm, cv as Pm, cF as Lm, cE as Om, cw as _m, cx as zm, cN as $m, cT as Bm, cO as Mm, cR as jm, cK as Wm, cH as Hm, cJ as Um, cG as Vm, cy as Gm, cI as Km } from "./F0CanvasPanel-3Hpwq8Sa.js";
|
|
3
3
|
import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
|
|
4
4
|
import Te, { forwardRef as de, useRef as z, useTransition as Qi, useState as R, useLayoutEffect as Je, useId as Qt, useContext as Le, createContext as Ie, useEffect as K, useCallback as U, useMemo as J, Fragment as qe, isValidElement as Ji, cloneElement as jr, memo as Wr, Children as Hr } from "react";
|
|
5
|
-
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-
|
|
5
|
+
import { C as Xi, P as Zi, a as it, M as eo, p as to, b as no, R as Fn, c as Ur, u as ro, d as ao, e as so, f as io, g as oo, O as Vr, h as Gr, S as lo, A as co, B as uo, L as fo, i as mo, V as ho, j as po, k as go, l as bo } from "./useDataCollectionSource-BPqFLrNN.js";
|
|
6
|
+
import { r as Ym, s as Qm, o as Jm, H as Xm, t as Zm, z as eh, a8 as th, G as nh, q as rh, aa as ah, a9 as sh, Q as ih, ad as oh, F as lh, Y as ch, U as dh, J as uh, af as fh, K as mh, Z as hh, _ as ph, v as gh, ab as bh, ac as xh, N as vh, $ as yh, a5 as wh, a7 as Nh, w as Ch, y as kh, D as Ih, W as Sh, ae as Fh, X as Th, T as Ah, ag as Eh, x as Rh, E as Dh, m as Ph, n as Lh, a1 as Oh, a2 as _h, a6 as zh, I as $h, a3 as Bh, a0 as Mh, a4 as jh } from "./useDataCollectionSource-BPqFLrNN.js";
|
|
7
7
|
const xo = Va("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -4596,6 +4596,8 @@ export declare const defaultTranslations: {
|
|
|
4596
4596
|
readonly settings: {
|
|
4597
4597
|
readonly showAllColumns: "Show all";
|
|
4598
4598
|
readonly hideAllColumns: "Hide all";
|
|
4599
|
+
readonly addColumn: "Add column";
|
|
4600
|
+
readonly removeColumn: "Remove column";
|
|
4599
4601
|
};
|
|
4600
4602
|
};
|
|
4601
4603
|
readonly editableTable: {
|
|
@@ -15655,6 +15657,12 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
15655
15657
|
* Avoid hiding the column by the user
|
|
15656
15658
|
*/
|
|
15657
15659
|
noHiding?: boolean;
|
|
15660
|
+
/**
|
|
15661
|
+
* Avoid removing the column by the user. Only relevant when the
|
|
15662
|
+
* visualization sets `onRemoveColumn`; the per-row trash affordance in the
|
|
15663
|
+
* settings popover is hidden for this column. Mirrors `noHiding`.
|
|
15664
|
+
*/
|
|
15665
|
+
noRemoving?: boolean;
|
|
15658
15666
|
/**
|
|
15659
15667
|
* Assigns this column to a header group. Columns with the same
|
|
15660
15668
|
* headerGroupId are visually grouped under a shared spanning header.
|
|
@@ -15772,6 +15780,20 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
|
|
|
15772
15780
|
* Allow users to hide columns (you can define especifcally non hiddable columns in col props, also frozen columns are not hiddable)
|
|
15773
15781
|
*/
|
|
15774
15782
|
allowColumnHiding?: boolean;
|
|
15783
|
+
/**
|
|
15784
|
+
* Called when the user clicks the "Add column" entry at the top of the
|
|
15785
|
+
* column-settings popover. When omitted, the entry is not shown. Open your
|
|
15786
|
+
* own column picker and update `columns` in response.
|
|
15787
|
+
*/
|
|
15788
|
+
onAddColumn?: () => void;
|
|
15789
|
+
/**
|
|
15790
|
+
* Called when the user removes a column via the trash affordance revealed on
|
|
15791
|
+
* hovering its row in the column-settings popover. When omitted, no remove
|
|
15792
|
+
* affordance is shown. Removing is distinct from hiding: drop the column from
|
|
15793
|
+
* `columns` in response. Frozen/leading columns and columns flagged
|
|
15794
|
+
* `noRemoving` are never removable.
|
|
15795
|
+
*/
|
|
15796
|
+
onRemoveColumn?: (columnId: ColId) => void;
|
|
15775
15797
|
/** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
|
|
15776
15798
|
referenceRowType?: (item: R) => ReferenceType;
|
|
15777
15799
|
/**
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import React__default, { forwardRef, useRef, useImperativeHandle, Children, crea
|
|
|
6
6
|
import { D as AIButton, E as ForwardRef$1, G as animate, H as ForwardRef$f, I as ForwardRef$j, J as ForwardRef$k, K as ForwardRef$o, L as ForwardRef$t, M as ForwardRef$x, N as ForwardRef$z, O as F0Box, P as ForwardRef$J, Q as ForwardRef$K, R as ForwardRef$L, S as ForwardRef$M, U as ForwardRef$N, F as FormCardValueFormatterProvider } from "./F0AiProcessingOverlay-CxHydh9y.js";
|
|
7
7
|
import { A as ta, C as ea, t as ia, s as aa, v as na, y as la, l as ra, i as sa, q as oa, z as ca, B as da, p as ua, r as ha, j as ma, e as pa, g as ba, k as Za, T as ya, w as Ma, h as Na, a as ga, n as Wa, m as Ta, o as Ga, b as fa, f as va, x as La, c as Ya, d as Xa, u as Sa } from "./F0AiProcessingOverlay-CxHydh9y.js";
|
|
8
8
|
import { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
9
|
-
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-
|
|
10
|
-
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-
|
|
9
|
+
import { C as Carousel, F as F0SegmentedControl, ah as isFieldRequired, ai as evaluateRenderIf, aj as buildDynamicSchema, ak as renderFieldInput, al as useF0Form, am as F0Form, G as F0ActionBar, an as F0FormSection, ao as nanoid, ap as dequal, Y as F0TableOfContent, a8 as Dialog$1, aq as FormMessage, Q as F0NumberInput, ar as EmojiPicker, as as data, c as ReorderItem, R as ReorderGroup, u as useDragControls, W as ResourceHeader, O as OneEmptyState, at as UpsellRequestResponseDialog, au as Label$1, av as UpsellingButton, o as BaseBanner, d as useDataCollectionSource, $ as OneDataCollection, aw as extractDisplayValue, ax as navigationFilterTypes, ay as NavigationFilters, az as DialogDescription, aA as PrivacyModeProvider, M as MotionConfig } from "./useDataCollectionSource-BPqFLrNN.js";
|
|
10
|
+
import { r as Va, s as Ia, H as Ra, t as wa, z as za, aR as Da, aQ as Ca, aM as ka, aC as Oa, aB as Fa, aD as ja, aE as Ea, aa as Ua, a9 as Ja, ad as Pa, U as Ka, J as Ha, af as Aa, K as Qa, v as Ba, aS as $a, ab as qa, ac as tn, N as en, w as an, P as nn, y as ln, D as rn, ae as sn, T as on, ag as dn, x as un, E as hn, aU as mn, m as pn, n as bn, aL as Zn, aH as yn, aG as Mn, aT as Nn, a6 as gn, aJ as Wn, aK as Tn, I as Gn, aV as fn, aW as vn, e as Ln, aN as Yn, aO as Xn, aP as Sn, aI as xn, f as Vn, h as In, aF as Rn, aX as wn } from "./useDataCollectionSource-BPqFLrNN.js";
|
|
11
11
|
import { utils, write as writeSync } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as Dn } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const CAROUSEL_COLUMNS = {
|
|
@@ -58858,7 +58858,7 @@ const PlaybackMenu = ({
|
|
|
58858
58858
|
role: "group",
|
|
58859
58859
|
"aria-label": R ?? W,
|
|
58860
58860
|
className: cn(
|
|
58861
|
-
"flex flex-col gap-2.5 rounded-2xl border border-solid border-f1-border bg-f1-background p-3",
|
|
58861
|
+
"flex flex-col gap-2.5 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-3",
|
|
58862
58862
|
Y
|
|
58863
58863
|
),
|
|
58864
58864
|
...P,
|
|
@@ -295,6 +295,8 @@ export declare const defaultTranslations: {
|
|
|
295
295
|
readonly settings: {
|
|
296
296
|
readonly showAllColumns: "Show all";
|
|
297
297
|
readonly hideAllColumns: "Hide all";
|
|
298
|
+
readonly addColumn: "Add column";
|
|
299
|
+
readonly removeColumn: "Remove column";
|
|
298
300
|
};
|
|
299
301
|
};
|
|
300
302
|
readonly editableTable: {
|