@factorialco/f0-react 1.276.3 → 1.277.1
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 +152 -44
- package/dist/experimental.js +51 -50
- package/dist/f0.d.ts +152 -44
- package/dist/f0.js +464 -361
- package/dist/{hooks-D4s6Agu-.js → hooks-BPLedtdk.js} +9290 -9269
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { AIMessage } from '@copilotkit/shared';
|
|
2
2
|
import { AlertAvatarProps as AlertAvatarProps_2 } from '../../f0';
|
|
3
|
-
import { AlertTagCellValue } from './types/alertTag
|
|
3
|
+
import { AlertTagCellValue } from './types/alertTag';
|
|
4
4
|
import { AlertTagCellValue as AlertTagCellValue_2 } from '../../value-display/types/alertTag';
|
|
5
|
-
import { AmountCellValue } from './types/amount
|
|
5
|
+
import { AmountCellValue } from './types/amount';
|
|
6
6
|
import { AmountCellValue as AmountCellValue_2 } from '../../value-display/types/amount';
|
|
7
7
|
import { AnchorHTMLAttributes } from 'react';
|
|
8
8
|
import { AreaChartWidgetProps } from './AreaChartWidget';
|
|
9
9
|
import { AriaAttributes } from 'react';
|
|
10
10
|
import { AutoFill as AutoFill_2 } from 'react';
|
|
11
|
-
import { AvatarListCellValue } from './types/avatarList
|
|
11
|
+
import { AvatarListCellValue } from './types/avatarList';
|
|
12
12
|
import { AvatarListCellValue as AvatarListCellValue_2 } from '../../value-display/types/avatarList';
|
|
13
13
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
14
14
|
import { BarChartProps } from '../../../components/Charts/BarChart';
|
|
15
15
|
import { baseColors } from '@factorialco/f0-core';
|
|
16
16
|
import { ButtonHTMLAttributes } from 'react';
|
|
17
17
|
import { ClassValue } from 'cva';
|
|
18
|
-
import { CompanyCellValue } from './types/company
|
|
18
|
+
import { CompanyCellValue } from './types/company';
|
|
19
19
|
import { CompanyCellValue as CompanyCellValue_2 } from '../../value-display/types/company';
|
|
20
20
|
import { ComponentProps } from 'react';
|
|
21
21
|
import { ControllerProps } from 'react-hook-form';
|
|
22
22
|
import { ControllerRenderProps } from 'react-hook-form';
|
|
23
23
|
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
24
|
-
import {
|
|
24
|
+
import { CountryCellValue } from './types/country';
|
|
25
|
+
import { DateCellValue } from './types/date';
|
|
25
26
|
import { DateCellValue as DateCellValue_2 } from '../../value-display/types/date';
|
|
26
27
|
import { DateFilterOptions } from './DateFilter/DateFilter';
|
|
27
28
|
import { default as default_2 } from 'react';
|
|
28
29
|
import { Dispatch } from 'react';
|
|
29
|
-
import { DotTagCellValue } from './types/dotTag
|
|
30
|
+
import { DotTagCellValue } from './types/dotTag';
|
|
30
31
|
import { DotTagCellValue as DotTagCellValue_2 } from '../../value-display/types/dotTag';
|
|
31
32
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
32
33
|
import { Editor } from '@tiptap/react';
|
|
@@ -34,31 +35,31 @@ import { f1Colors } from '@factorialco/f0-core';
|
|
|
34
35
|
import { FC } from 'react';
|
|
35
36
|
import { FieldPath } from 'react-hook-form';
|
|
36
37
|
import { FieldValues } from 'react-hook-form';
|
|
37
|
-
import { FileCellValue } from './types/file
|
|
38
|
+
import { FileCellValue } from './types/file';
|
|
38
39
|
import { FileCellValue as FileCellValue_2 } from '../../value-display/types/file';
|
|
39
|
-
import { FolderCellValue } from './types/folder
|
|
40
|
+
import { FolderCellValue } from './types/folder';
|
|
40
41
|
import { FolderCellValue as FolderCellValue_2 } from '../../value-display/types/folder';
|
|
41
42
|
import { ForwardedRef } from 'react';
|
|
42
43
|
import { ForwardRefExoticComponent } from 'react';
|
|
43
44
|
import { HTMLAttributeAnchorTarget } from 'react';
|
|
44
45
|
import { HTMLAttributes } from 'react';
|
|
45
46
|
import { HTMLInputTypeAttribute } from 'react';
|
|
46
|
-
import { IconCellValue } from './types/icon
|
|
47
|
+
import { IconCellValue } from './types/icon';
|
|
47
48
|
import { IconType as IconType_2 } from '../../f0';
|
|
48
49
|
import { InFilterOptions } from './InFilter/types';
|
|
49
50
|
import { JSONContent } from '@tiptap/react';
|
|
50
51
|
import { JSONContent as JSONContent_2 } from '@tiptap/core';
|
|
51
52
|
import { JSX as JSX_2 } from 'react';
|
|
52
53
|
import { LineChartProps } from '../../../components/Charts/LineChart';
|
|
53
|
-
import { LongTextCellValue } from './types/longText
|
|
54
|
-
import { NumberCellValue } from './types/number
|
|
54
|
+
import { LongTextCellValue } from './types/longText';
|
|
55
|
+
import { NumberCellValue } from './types/number';
|
|
55
56
|
import { NumberCellValue as NumberCellValue_2 } from '../../value-display/types/number';
|
|
56
57
|
import { NumberFilterOptions } from './NumberFilter/NumberFilter';
|
|
57
58
|
import { NumberFilterValue } from './NumberFilter/NumberFilter';
|
|
58
59
|
import { Observable } from 'zen-observable-ts';
|
|
59
60
|
import { Path } from 'react-hook-form';
|
|
60
|
-
import { PercentageCellValue } from './types/percentage
|
|
61
|
-
import { PersonCellValue } from './types/person
|
|
61
|
+
import { PercentageCellValue } from './types/percentage';
|
|
62
|
+
import { PersonCellValue } from './types/person';
|
|
62
63
|
import { PersonCellValue as PersonCellValue_2 } from '../../value-display/types/person';
|
|
63
64
|
import { PieChartProps } from '../../../components/Charts/PieChart';
|
|
64
65
|
import { PopoverProps } from '@radix-ui/react-popover';
|
|
@@ -70,16 +71,16 @@ import * as RechartsPrimitive from 'recharts';
|
|
|
70
71
|
import { RefAttributes } from 'react';
|
|
71
72
|
import { RefObject } from 'react';
|
|
72
73
|
import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
|
|
73
|
-
import { StatusCellValue } from './types/status
|
|
74
|
+
import { StatusCellValue } from './types/status';
|
|
74
75
|
import { StatusCellValue as StatusCellValue_2 } from '../../value-display/types/status';
|
|
75
76
|
import { SVGProps } from 'react';
|
|
76
|
-
import { TagCellValue } from './types/tag
|
|
77
|
+
import { TagCellValue } from './types/tag';
|
|
77
78
|
import { TagCellValue as TagCellValue_2 } from '../../value-display/types/tag';
|
|
78
|
-
import { TagListCellValue } from './types/tagList
|
|
79
|
+
import { TagListCellValue } from './types/tagList';
|
|
79
80
|
import { TagListCellValue as TagListCellValue_2 } from '../../value-display/types/tagList';
|
|
80
|
-
import { TeamCellValue } from './types/team
|
|
81
|
+
import { TeamCellValue } from './types/team';
|
|
81
82
|
import { TeamCellValue as TeamCellValue_2 } from '../../value-display/types/team';
|
|
82
|
-
import { TextCellValue } from './types/text
|
|
83
|
+
import { TextCellValue } from './types/text';
|
|
83
84
|
import { TextCellValue as TextCellValue_2 } from '../../value-display/types/text';
|
|
84
85
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
85
86
|
import { useForm } from 'react-hook-form';
|
|
@@ -1547,6 +1548,8 @@ declare const counterVariants: (props?: ({
|
|
|
1547
1548
|
className?: ClassValue;
|
|
1548
1549
|
})) | undefined) => string;
|
|
1549
1550
|
|
|
1551
|
+
declare type CountryCode = keyof TranslationsType["countries"];
|
|
1552
|
+
|
|
1550
1553
|
/**
|
|
1551
1554
|
* Extracts the current filters type from filter options.
|
|
1552
1555
|
* Creates a type mapping filter keys to their respective value types.
|
|
@@ -1946,6 +1949,109 @@ declare const daytimePageVariants: (props?: ({
|
|
|
1946
1949
|
})) | undefined) => string;
|
|
1947
1950
|
|
|
1948
1951
|
declare const defaultTranslations: {
|
|
1952
|
+
readonly countries: {
|
|
1953
|
+
ad: string;
|
|
1954
|
+
ae: string;
|
|
1955
|
+
af: string;
|
|
1956
|
+
ag: string;
|
|
1957
|
+
ai: string;
|
|
1958
|
+
al: string;
|
|
1959
|
+
am: string;
|
|
1960
|
+
ao: string;
|
|
1961
|
+
ar: string;
|
|
1962
|
+
as: string;
|
|
1963
|
+
at: string;
|
|
1964
|
+
au: string;
|
|
1965
|
+
aw: string;
|
|
1966
|
+
ax: string;
|
|
1967
|
+
az: string;
|
|
1968
|
+
ba: string;
|
|
1969
|
+
bb: string;
|
|
1970
|
+
bd: string;
|
|
1971
|
+
be: string;
|
|
1972
|
+
bf: string;
|
|
1973
|
+
bg: string;
|
|
1974
|
+
bh: string;
|
|
1975
|
+
bi: string;
|
|
1976
|
+
bj: string;
|
|
1977
|
+
bm: string;
|
|
1978
|
+
bo: string;
|
|
1979
|
+
br: string;
|
|
1980
|
+
bt: string;
|
|
1981
|
+
bw: string;
|
|
1982
|
+
by: string;
|
|
1983
|
+
bz: string;
|
|
1984
|
+
ca: string;
|
|
1985
|
+
cd: string;
|
|
1986
|
+
cf: string;
|
|
1987
|
+
cg: string;
|
|
1988
|
+
ch: string;
|
|
1989
|
+
ci: string;
|
|
1990
|
+
ck: string;
|
|
1991
|
+
cl: string;
|
|
1992
|
+
cm: string;
|
|
1993
|
+
cn: string;
|
|
1994
|
+
co: string;
|
|
1995
|
+
cr: string;
|
|
1996
|
+
cu: string;
|
|
1997
|
+
cv: string;
|
|
1998
|
+
cw: string;
|
|
1999
|
+
cy: string;
|
|
2000
|
+
cz: string;
|
|
2001
|
+
de: string;
|
|
2002
|
+
dj: string;
|
|
2003
|
+
dk: string;
|
|
2004
|
+
dm: string;
|
|
2005
|
+
do: string;
|
|
2006
|
+
dz: string;
|
|
2007
|
+
ec: string;
|
|
2008
|
+
ee: string;
|
|
2009
|
+
eg: string;
|
|
2010
|
+
er: string;
|
|
2011
|
+
es: string;
|
|
2012
|
+
et: string;
|
|
2013
|
+
fi: string;
|
|
2014
|
+
fj: string;
|
|
2015
|
+
fk: string;
|
|
2016
|
+
fm: string;
|
|
2017
|
+
fo: string;
|
|
2018
|
+
fr: string;
|
|
2019
|
+
ga: string;
|
|
2020
|
+
gb: string;
|
|
2021
|
+
gd: string;
|
|
2022
|
+
ge: string;
|
|
2023
|
+
gg: string;
|
|
2024
|
+
gh: string;
|
|
2025
|
+
gi: string;
|
|
2026
|
+
gl: string;
|
|
2027
|
+
gm: string;
|
|
2028
|
+
gn: string;
|
|
2029
|
+
gq: string;
|
|
2030
|
+
gr: string;
|
|
2031
|
+
gt: string;
|
|
2032
|
+
gu: string;
|
|
2033
|
+
gw: string;
|
|
2034
|
+
hk: string;
|
|
2035
|
+
hn: string;
|
|
2036
|
+
hr: string;
|
|
2037
|
+
ht: string;
|
|
2038
|
+
hu: string;
|
|
2039
|
+
id: string;
|
|
2040
|
+
ie: string;
|
|
2041
|
+
il: string;
|
|
2042
|
+
im: string;
|
|
2043
|
+
in: string;
|
|
2044
|
+
io: string;
|
|
2045
|
+
iq: string;
|
|
2046
|
+
ir: string;
|
|
2047
|
+
is: string;
|
|
2048
|
+
it: string;
|
|
2049
|
+
je: string;
|
|
2050
|
+
jm: string;
|
|
2051
|
+
jo: string;
|
|
2052
|
+
jp: string;
|
|
2053
|
+
ke: string;
|
|
2054
|
+
};
|
|
1949
2055
|
readonly approvals: {
|
|
1950
2056
|
readonly history: "Approval history";
|
|
1951
2057
|
readonly statuses: {
|
|
@@ -2477,7 +2583,7 @@ declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avat
|
|
|
2477
2583
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2478
2584
|
|
|
2479
2585
|
declare type F0AvatarFlagProps = {
|
|
2480
|
-
flag:
|
|
2586
|
+
flag: CountryCode;
|
|
2481
2587
|
size?: BaseAvatarProps["size"];
|
|
2482
2588
|
badge?: AvatarBadge;
|
|
2483
2589
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
@@ -5491,6 +5597,7 @@ export declare function useSidebar(): FrameContextType;
|
|
|
5491
5597
|
|
|
5492
5598
|
declare type ValueDisplayRendererContext = {
|
|
5493
5599
|
visualization: ValueDisplayVisualizationType;
|
|
5600
|
+
i18n: TranslationsType;
|
|
5494
5601
|
};
|
|
5495
5602
|
|
|
5496
5603
|
/**
|
|
@@ -5523,6 +5630,7 @@ declare const valueDisplayRenderers: {
|
|
|
5523
5630
|
readonly icon: (args: IconCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
|
|
5524
5631
|
readonly file: (args: FileCellValue) => JSX_2.Element;
|
|
5525
5632
|
readonly folder: (args: FolderCellValue) => JSX_2.Element;
|
|
5633
|
+
readonly country: (args: CountryCellValue, context: ValueDisplayRendererContext) => JSX_2.Element;
|
|
5526
5634
|
};
|
|
5527
5635
|
|
|
5528
5636
|
declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
|
|
@@ -5779,6 +5887,31 @@ declare global {
|
|
|
5779
5887
|
}
|
|
5780
5888
|
|
|
5781
5889
|
|
|
5890
|
+
declare module "gridstack" {
|
|
5891
|
+
interface GridStackWidget {
|
|
5892
|
+
id?: string;
|
|
5893
|
+
allowedSizes?: Array<{
|
|
5894
|
+
w: number;
|
|
5895
|
+
h: number;
|
|
5896
|
+
}>;
|
|
5897
|
+
renderFn?: () => React.ReactElement | null;
|
|
5898
|
+
meta?: Record<string, unknown>;
|
|
5899
|
+
}
|
|
5900
|
+
interface GridStackNode {
|
|
5901
|
+
id?: string;
|
|
5902
|
+
w?: number;
|
|
5903
|
+
h?: number;
|
|
5904
|
+
x?: number;
|
|
5905
|
+
y?: number;
|
|
5906
|
+
allowedSizes?: Array<{
|
|
5907
|
+
w: number;
|
|
5908
|
+
h: number;
|
|
5909
|
+
}>;
|
|
5910
|
+
renderFn?: () => React.ReactElement | null;
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5913
|
+
|
|
5914
|
+
|
|
5782
5915
|
declare module "@tiptap/core" {
|
|
5783
5916
|
interface Commands<ReturnType> {
|
|
5784
5917
|
aiBlock: {
|
|
@@ -5806,31 +5939,6 @@ declare module "@tiptap/core" {
|
|
|
5806
5939
|
}
|
|
5807
5940
|
|
|
5808
5941
|
|
|
5809
|
-
declare module "gridstack" {
|
|
5810
|
-
interface GridStackWidget {
|
|
5811
|
-
id?: string;
|
|
5812
|
-
allowedSizes?: Array<{
|
|
5813
|
-
w: number;
|
|
5814
|
-
h: number;
|
|
5815
|
-
}>;
|
|
5816
|
-
renderFn?: () => React.ReactElement | null;
|
|
5817
|
-
meta?: Record<string, unknown>;
|
|
5818
|
-
}
|
|
5819
|
-
interface GridStackNode {
|
|
5820
|
-
id?: string;
|
|
5821
|
-
w?: number;
|
|
5822
|
-
h?: number;
|
|
5823
|
-
x?: number;
|
|
5824
|
-
y?: number;
|
|
5825
|
-
allowedSizes?: Array<{
|
|
5826
|
-
w: number;
|
|
5827
|
-
h: number;
|
|
5828
|
-
}>;
|
|
5829
|
-
renderFn?: () => React.ReactElement | null;
|
|
5830
|
-
}
|
|
5831
|
-
}
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
5942
|
declare namespace Calendar {
|
|
5835
5943
|
var displayName: string;
|
|
5836
5944
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bD as _p, bE as td, bF as U_, bG as G_, bH as Sp, ad as p8, bI as zo, aq as Df, bJ as Vi, bK as Rf, bL as hr, bM as wl, av as On, bN as ks, bO as Lp, bP as K_, bQ as Vs, bR as Va, bS as Ep, bT as Z_, bU as J_, bV as Mp, bW as xl, bX as Np, bY as Ap, bZ as Y_, b_ as Ff, aE as m8, b$ as Tp, c0 as X_, c1 as g8, c2 as y8, c3 as V3, c4 as Cl, c5 as Q_, c6 as eS, c7 as tS, c8 as Y1, c9 as nS, ca as iS, cb as rS, cc as te, cd as v8, ce as oS, f as ls, cf as ja, j as nd, cg as k8, h as Jl, ch as sS, L as X1, ci as aS, A as lS, i as Yl, c as cS, l as dS, G as fS, g as j3, cj as uS, k as W3, o as hS, ck as b8, cl as w8, cm as pS, cn as js, ai as mS, aw as he, ap as Ce, Q as T, co as _l, O as Op, cp as Ip, P as sn, cq as Sl, cr as Ws, cs as id, ct as en, bz as qs, cu as _h, ab as Be, cv as $o, cw as Je, cx as gS, b3 as ir, au as ct, a$ as Pf, ac as x8, cy as Dp, cz as yS, cA as vS, cB as kS, ar as C8, as as _8, cC as S8, cD as L8, cE as ro, cF as bS, cG as q3, cH as wS, cI as xS, cJ as CS, cK as xt, al as bn, cL as X, cM as Bf, cN as Rn, a7 as Wn, a8 as _S, cO as E8, cP as Rp, cQ as bs, cR as Sh, cS as M8, cT as N8, cU as A8, cV as T8, cW as O8, a5 as vt, cX as I8, cY as SS, cZ as LS, c_ as ES, c$ as MS, d0 as NS, d1 as AS, d2 as TS, d3 as OS, ak as IS, bf as DS, d4 as qn, ao as So, d5 as mn, am as Fp, at as Lh, d6 as U3, d7 as rd, d8 as RS, a9 as Us, d9 as Lo, da as D8, db as gn, s as FS, w as PS, x as BS, z as zS, J as G3, K as K3, M as $S, N as HS, dc as VS, dd as jS, de as R8, aY as wi, df as WS, dg as qS, dh as Gs, di as Pp, a_ as Eo, dj as US, dk as F8, dl as P8, dm as GS, dn as KS, a3 as Bp, a4 as zp, a6 as $p, R as Gn, dp as B8, dq as ZS, dr as JS, ds as YS, dt as z8, aA as XS, du as Eh, dv as $8, aV as od, dw as QS, dx as eL, dy as tL, dz as nL, dA as iL, bA as zf, aS as Mh, bC as rL, bB as oL, dB as H8, an as $r, dC as sL, dD as aL, b8 as $f, aW as Hp, aP as Ll, dE as Vp, dF as V8, aZ as lL, aR as j8, aN as W8, dG as cL, dH as q8, dI as dL, aQ as Ks, aT as U8, aC as fL, dJ as uL, bh as hL, bi as pL, bp as Hf, bn as jp, ay as Vf, dK as jf, dL as Wf, az as qf, dM as Wp, bo as G8, b0 as qp, dN as mL, bt as gL, dO as Nh, dP as yL, dQ as sd, dR as vL, bj as ad, bu as kL, dS as bL, bs as K8, dT as wL, br as xL, bq as CL, dU as _L, b1 as Ah, dV as Z8, dW as SL, af as Up, dX as LL, dY as EL, ag as ML, ah as NL, dZ as AL, d_ as TL, d$ as OL, e0 as IL, e1 as J8, b4 as DL, bm as RL, e2 as FL, e3 as PL, e4 as BL, aU as zL, e5 as El, e6 as Gp, e7 as Kp, e8 as Ml, e9 as $L, ea as Y8, eb as Z3, ec as HL, bv as X8, ed as Q8, b5 as ey, ee as VL, ef as jL, eg as WL, aB as qL, _ as UL, T as GL, V as KL, W as ZL, Z as JL, U as YL, eh as J3, ei as XL, ej as QL, m as eE, ek as ty, el as tE } from "./hooks-
|
|
2
|
-
import { aD as zfe, em as $fe, ep as Hfe, eq as Vfe, eo as jfe, aX as Wfe, b2 as qfe, en as Ufe } from "./hooks-
|
|
1
|
+
import { bD as _p, bE as td, bF as U_, bG as G_, bH as Sp, ad as p8, bI as zo, aq as Df, bJ as Vi, bK as Rf, bL as hr, bM as wl, av as On, bN as ks, bO as Lp, bP as K_, bQ as Vs, bR as Va, bS as Ep, bT as Z_, bU as J_, bV as Mp, bW as xl, bX as Np, bY as Ap, bZ as Y_, b_ as Ff, aE as m8, b$ as Tp, c0 as X_, c1 as g8, c2 as y8, c3 as V3, c4 as Cl, c5 as Q_, c6 as eS, c7 as tS, c8 as Y1, c9 as nS, ca as iS, cb as rS, cc as te, cd as v8, ce as oS, f as ls, cf as ja, j as nd, cg as k8, h as Jl, ch as sS, L as X1, ci as aS, A as lS, i as Yl, c as cS, l as dS, G as fS, g as j3, cj as uS, k as W3, o as hS, ck as b8, cl as w8, cm as pS, cn as js, ai as mS, aw as he, ap as Ce, Q as T, co as _l, O as Op, cp as Ip, P as sn, cq as Sl, cr as Ws, cs as id, ct as en, bz as qs, cu as _h, ab as Be, cv as $o, cw as Je, cx as gS, b3 as ir, au as ct, a$ as Pf, ac as x8, cy as Dp, cz as yS, cA as vS, cB as kS, ar as C8, as as _8, cC as S8, cD as L8, cE as ro, cF as bS, cG as q3, cH as wS, cI as xS, cJ as CS, cK as xt, al as bn, cL as X, cM as Bf, cN as Rn, a7 as Wn, a8 as _S, cO as E8, cP as Rp, cQ as bs, cR as Sh, cS as M8, cT as N8, cU as A8, cV as T8, cW as O8, a5 as vt, cX as I8, cY as SS, cZ as LS, c_ as ES, c$ as MS, d0 as NS, d1 as AS, d2 as TS, d3 as OS, ak as IS, bf as DS, d4 as qn, ao as So, d5 as mn, am as Fp, at as Lh, d6 as U3, d7 as rd, d8 as RS, a9 as Us, d9 as Lo, da as D8, db as gn, s as FS, w as PS, x as BS, z as zS, J as G3, K as K3, M as $S, N as HS, dc as VS, dd as jS, de as R8, aY as wi, df as WS, dg as qS, dh as Gs, di as Pp, a_ as Eo, dj as US, dk as F8, dl as P8, dm as GS, dn as KS, a3 as Bp, a4 as zp, a6 as $p, R as Gn, dp as B8, dq as ZS, dr as JS, ds as YS, dt as z8, aA as XS, du as Eh, dv as $8, aV as od, dw as QS, dx as eL, dy as tL, dz as nL, dA as iL, bA as zf, aS as Mh, bC as rL, bB as oL, dB as H8, an as $r, dC as sL, dD as aL, b8 as $f, aW as Hp, aP as Ll, dE as Vp, dF as V8, aZ as lL, aR as j8, aN as W8, dG as cL, dH as q8, dI as dL, aQ as Ks, aT as U8, aC as fL, dJ as uL, bh as hL, bi as pL, bp as Hf, bn as jp, ay as Vf, dK as jf, dL as Wf, az as qf, dM as Wp, bo as G8, b0 as qp, dN as mL, bt as gL, dO as Nh, dP as yL, dQ as sd, dR as vL, bj as ad, bu as kL, dS as bL, bs as K8, dT as wL, br as xL, bq as CL, dU as _L, b1 as Ah, dV as Z8, dW as SL, af as Up, dX as LL, dY as EL, ag as ML, ah as NL, dZ as AL, d_ as TL, d$ as OL, e0 as IL, e1 as J8, b4 as DL, bm as RL, e2 as FL, e3 as PL, e4 as BL, aU as zL, e5 as El, e6 as Gp, e7 as Kp, e8 as Ml, e9 as $L, ea as Y8, eb as Z3, ec as HL, bv as X8, ed as Q8, b5 as ey, ee as VL, ef as jL, eg as WL, aB as qL, _ as UL, T as GL, V as KL, W as ZL, Z as JL, U as YL, eh as J3, ei as XL, ej as QL, m as eE, ek as ty, el as tE } from "./hooks-BPLedtdk.js";
|
|
2
|
+
import { aD as zfe, em as $fe, ep as Hfe, eq as Vfe, eo as jfe, aX as Wfe, b2 as qfe, en as Ufe } from "./hooks-BPLedtdk.js";
|
|
3
3
|
import { jsxs as k, jsx as d, Fragment as De } from "react/jsx-runtime";
|
|
4
4
|
import { useCopilotChatInternal as Uf, useCopilotContext as nE, useCopilotAction as Y3, CopilotKit as iE } from "@copilotkit/react-core";
|
|
5
5
|
import { Markdown as rE, useChatContext as oE, CopilotSidebar as sE } from "@copilotkit/react-ui";
|
|
@@ -29120,14 +29120,15 @@ const oG = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29120
29120
|
}, Au = {
|
|
29121
29121
|
default: "-",
|
|
29122
29122
|
list: void 0
|
|
29123
|
-
}, Sb = (t, e, n) => {
|
|
29124
|
-
const
|
|
29123
|
+
}, Sb = (t, e, n, i) => {
|
|
29124
|
+
const r = e.render(t), o = n in Au ? Au[n] : Au.default;
|
|
29125
29125
|
return _L(
|
|
29126
|
-
|
|
29126
|
+
r,
|
|
29127
29127
|
{
|
|
29128
|
-
visualization: n
|
|
29128
|
+
visualization: n,
|
|
29129
|
+
i18n: i
|
|
29129
29130
|
},
|
|
29130
|
-
|
|
29131
|
+
o
|
|
29131
29132
|
);
|
|
29132
29133
|
}, lG = ({ title: t, avatar: e, description: n }) => k("article", {
|
|
29133
29134
|
className: "flex w-[calc(100%-72px)] min-w-40 flex-col items-start gap-3 md:w-full md:flex-row md:items-center md:gap-2",
|
|
@@ -29159,72 +29160,72 @@ const oG = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29159
29160
|
})]
|
|
29160
29161
|
})]
|
|
29161
29162
|
}), cG = ({ source: t, item: e, selectedItems: n, handleSelectItemChange: i, fields: r, itemDefinition: o }) => {
|
|
29162
|
-
const s = (
|
|
29163
|
+
const s = Be(), { actions: a } = s, l = (w, x) => Sb(w, x, "list", s), c = t.itemUrl ? t.itemUrl(e) : void 0, f = t.itemOnClick ? t.itemOnClick(e) : void 0, u = t.selectable ? t.selectable(e) : void 0, h = o(e), { primaryItemActions: p, dropdownItemActions: m, mobileDropdownItemActions: g, handleDropDownOpenChange: y, dropDownOpen: v } = _b({
|
|
29163
29164
|
source: t,
|
|
29164
29165
|
item: e
|
|
29165
29166
|
});
|
|
29166
29167
|
return k("div", {
|
|
29167
29168
|
className: T("relative flex min-h-[64px] w-full flex-col justify-between gap-4 p-3 transition-colors md:flex-row md:p-2 md:pl-3 md:pr-4", "group after:absolute after:inset-y-0 after:-right-px after:z-10 after:hidden after:h-full after:w-10 after:bg-gradient-to-r after:from-transparent after:via-f1-background after:via-75% after:to-f1-background after:transition-all after:content-[''] hover:after:via-[#F5F6F8] hover:after:to-[#F5F6F8] dark:hover:after:via-[#192231] dark:hover:after:to-[#192231] md:after:block hover:md:bg-f1-background-hover"),
|
|
29168
29169
|
children: [d("div", {
|
|
29169
|
-
onClick:
|
|
29170
|
+
onClick: f,
|
|
29170
29171
|
className: "pointer-events-auto absolute inset-0"
|
|
29171
29172
|
}), k("div", {
|
|
29172
29173
|
className: "pointer-events-none flex flex-1 flex-row items-center gap-2",
|
|
29173
|
-
children: [t.selectable &&
|
|
29174
|
+
children: [t.selectable && u !== void 0 && d("div", {
|
|
29174
29175
|
className: "pointer-events-auto z-10 hidden items-center justify-end md:flex",
|
|
29175
29176
|
children: d(Ah, {
|
|
29176
|
-
checked: n.has(
|
|
29177
|
-
onCheckedChange: (
|
|
29177
|
+
checked: n.has(u),
|
|
29178
|
+
onCheckedChange: (w) => i(e, w),
|
|
29178
29179
|
title: `Select ${t.selectable(e)}`,
|
|
29179
29180
|
hideLabel: !0
|
|
29180
29181
|
})
|
|
29181
|
-
}),
|
|
29182
|
-
href:
|
|
29182
|
+
}), c && d(ir, {
|
|
29183
|
+
href: c,
|
|
29183
29184
|
className: "pointer-events-auto absolute inset-0 block",
|
|
29184
29185
|
tabIndex: 0,
|
|
29185
|
-
onClick:
|
|
29186
|
+
onClick: f,
|
|
29186
29187
|
children: d("span", {
|
|
29187
29188
|
className: "sr-only",
|
|
29188
29189
|
children: a.view
|
|
29189
29190
|
})
|
|
29190
29191
|
}), d(lG, {
|
|
29191
|
-
title:
|
|
29192
|
-
avatar:
|
|
29193
|
-
description:
|
|
29192
|
+
title: h.title,
|
|
29193
|
+
avatar: h.avatar,
|
|
29194
|
+
description: h.description
|
|
29194
29195
|
})]
|
|
29195
29196
|
}), d("div", {
|
|
29196
29197
|
className: "flex flex-col items-start md:flex-row md:items-center [&>div]:justify-end",
|
|
29197
|
-
children: (r || []).filter((
|
|
29198
|
-
var
|
|
29199
|
-
return !((
|
|
29200
|
-
}).map((
|
|
29201
|
-
const
|
|
29202
|
-
return
|
|
29198
|
+
children: (r || []).filter((w) => {
|
|
29199
|
+
var x;
|
|
29200
|
+
return !((x = w.hide) != null && x.call(w, e));
|
|
29201
|
+
}).map((w) => {
|
|
29202
|
+
const x = l(e, w);
|
|
29203
|
+
return x ? d("div", {
|
|
29203
29204
|
children: d("div", {
|
|
29204
29205
|
className: "flex items-center justify-center px-0 py-1 md:p-3 [&>span]:whitespace-nowrap",
|
|
29205
|
-
children:
|
|
29206
|
+
children: x
|
|
29206
29207
|
})
|
|
29207
|
-
}, String(
|
|
29208
|
+
}, String(w.label)) : null;
|
|
29208
29209
|
})
|
|
29209
29210
|
}), t.itemActions && k(De, {
|
|
29210
29211
|
children: [d(Cb, {
|
|
29211
|
-
dropDownOpen:
|
|
29212
|
+
dropDownOpen: v,
|
|
29212
29213
|
className: "pointer-events-auto hidden md:flex",
|
|
29213
29214
|
children: d(xb, {
|
|
29214
|
-
primaryItemActions:
|
|
29215
|
-
dropdownItemActions:
|
|
29216
|
-
handleDropDownOpenChange:
|
|
29215
|
+
primaryItemActions: p,
|
|
29216
|
+
dropdownItemActions: m,
|
|
29217
|
+
handleDropDownOpenChange: y
|
|
29217
29218
|
})
|
|
29218
29219
|
}), d(wb, {
|
|
29219
29220
|
className: "absolute -right-px bottom-0 top-0 z-20 items-center justify-end gap-2 py-2 pl-20 pr-3 md:hidden",
|
|
29220
|
-
items:
|
|
29221
|
-
onOpenChange:
|
|
29221
|
+
items: g,
|
|
29222
|
+
onOpenChange: y
|
|
29222
29223
|
})]
|
|
29223
|
-
}), t.selectable &&
|
|
29224
|
+
}), t.selectable && u !== void 0 && d("div", {
|
|
29224
29225
|
className: T("pointer-events-auto absolute right-3 top-3 flex h-8 w-8 items-center justify-center md:hidden", t.itemActions && "right-12"),
|
|
29225
29226
|
children: d(Ah, {
|
|
29226
|
-
checked: n.has(
|
|
29227
|
-
onCheckedChange: (
|
|
29227
|
+
checked: n.has(u),
|
|
29228
|
+
onCheckedChange: (w) => i(e, w),
|
|
29228
29229
|
title: `Select ${t.selectable(e)}`,
|
|
29229
29230
|
hideLabel: !0
|
|
29230
29231
|
})
|
|
@@ -29991,7 +29992,7 @@ const Bb = (t, e, n) => {
|
|
|
29991
29992
|
checkColumnWidth: i
|
|
29992
29993
|
};
|
|
29993
29994
|
}, LG = ({ source: t, item: e, onCheckedChange: n, selectedItems: i, columns: r, frozenColumnsLeft: o, checkColumnWidth: s, index: a, groupIndex: l }, c) => {
|
|
29994
|
-
const f = t.itemUrl ? t.itemUrl(e) : void 0, u = t.itemOnClick ? t.itemOnClick(e) : void 0, h = t.selectable ? t.selectable(e) : void 0, p = (
|
|
29995
|
+
const f = t.itemUrl ? t.itemUrl(e) : void 0, u = t.itemOnClick ? t.itemOnClick(e) : void 0, h = t.selectable ? t.selectable(e) : void 0, p = Be(), m = (C, N) => Sb(C, N, "table", p), g = `table-row-${l}-${a}`, { getStickyPosition: y } = Bb(o, r, !!t.selectable), { primaryItemActions: v, dropdownItemActions: w, mobileDropdownItemActions: x, handleDropDownOpenChange: b, dropDownOpen: _ } = _b({
|
|
29995
29996
|
source: t,
|
|
29996
29997
|
item: e
|
|
29997
29998
|
});
|
|
@@ -30012,25 +30013,25 @@ const Bb = (t, e, n) => {
|
|
|
30012
30013
|
hideLabel: !0
|
|
30013
30014
|
})
|
|
30014
30015
|
})
|
|
30015
|
-
}), r.map((
|
|
30016
|
-
firstCell:
|
|
30016
|
+
}), r.map((C, N) => d(Ti, {
|
|
30017
|
+
firstCell: N === 0,
|
|
30017
30018
|
href: f,
|
|
30018
30019
|
onClick: u,
|
|
30019
|
-
width:
|
|
30020
|
-
sticky:
|
|
30020
|
+
width: C.width,
|
|
30021
|
+
sticky: y(N),
|
|
30021
30022
|
children: d("div", {
|
|
30022
|
-
className: T(
|
|
30023
|
-
children:
|
|
30023
|
+
className: T(C.align === "right" ? "justify-end" : "", "flex"),
|
|
30024
|
+
children: m(e, C)
|
|
30024
30025
|
})
|
|
30025
|
-
}, `table-cell-${l}-${a}-${
|
|
30026
|
+
}, `table-cell-${l}-${a}-${N}`)), t.itemActions && k(De, {
|
|
30026
30027
|
children: [d("td", {
|
|
30027
30028
|
className: "sticky right-0 top-0 z-10 hidden md:table-cell",
|
|
30028
30029
|
children: d(Cb, {
|
|
30029
|
-
dropDownOpen:
|
|
30030
|
+
dropDownOpen: _,
|
|
30030
30031
|
children: d(xb, {
|
|
30031
|
-
primaryItemActions:
|
|
30032
|
-
dropdownItemActions:
|
|
30033
|
-
handleDropDownOpenChange:
|
|
30032
|
+
primaryItemActions: v,
|
|
30033
|
+
dropdownItemActions: w,
|
|
30034
|
+
handleDropDownOpenChange: b
|
|
30034
30035
|
})
|
|
30035
30036
|
})
|
|
30036
30037
|
}), d(Ti, {
|
|
@@ -30041,12 +30042,12 @@ const Bb = (t, e, n) => {
|
|
|
30041
30042
|
href: f,
|
|
30042
30043
|
className: "table-cell md:hidden",
|
|
30043
30044
|
children: d(wb, {
|
|
30044
|
-
items:
|
|
30045
|
-
onOpenChange:
|
|
30045
|
+
items: x,
|
|
30046
|
+
onOpenChange: b
|
|
30046
30047
|
})
|
|
30047
30048
|
}, `table-cell-${l}-${a}-actions`)]
|
|
30048
30049
|
})]
|
|
30049
|
-
},
|
|
30050
|
+
}, g);
|
|
30050
30051
|
}, hg = O(LG), EG = ({ columns: t, source: e, frozenColumns: n = 0, onSelectItems: i, onLoadData: r, onLoadError: o, allowColumnHiding: s, allowColumnReordering: a }) => {
|
|
30051
30052
|
var we, Re, Le;
|
|
30052
30053
|
const l = Be(), [c] = V(() => te.create(hg)), { settings: f } = m1(), { columns: u } = Eb(t, n, (we = f.visualization) == null ? void 0 : we.table, a, s), { data: h, paginationInfo: p, setPage: m, isInitialLoading: g, isLoadingMore: y, loadMore: v, summaries: w } = h1(e, {
|