@factorialco/f0-react 4.5.1 → 4.7.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 +23 -6
- package/dist/experimental.js +59 -56
- package/dist/f0.d.ts +22 -6
- package/dist/f0.js +2 -2
- package/dist/{useDataCollectionSource-CQy3qOAq.js → useDataCollectionSource-Coj9e5oF.js} +2808 -2753
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -6349,6 +6349,7 @@ export declare interface MenuCategory {
|
|
|
6349
6349
|
export declare interface MenuItem extends NavigationItem {
|
|
6350
6350
|
icon: IconType;
|
|
6351
6351
|
badge?: number;
|
|
6352
|
+
tag?: string;
|
|
6352
6353
|
}
|
|
6353
6354
|
|
|
6354
6355
|
export declare interface MenuProps {
|
|
@@ -7702,10 +7703,11 @@ declare interface PromiseState<T> {
|
|
|
7702
7703
|
declare type PropertyDefinition_2<T> = {
|
|
7703
7704
|
label: string;
|
|
7704
7705
|
/**
|
|
7705
|
-
* Optional
|
|
7706
|
-
*
|
|
7706
|
+
* Optional header info. Pass a string for a short text tooltip, or a
|
|
7707
|
+
* {@link TableHeaderInfo} object for a structured hoverable card. Only
|
|
7708
|
+
* rendered by the table visualization's column headers.
|
|
7707
7709
|
*/
|
|
7708
|
-
info?: string;
|
|
7710
|
+
info?: string | TableHeaderInfo;
|
|
7709
7711
|
/**
|
|
7710
7712
|
* Function that extracts and formats the value from an item.
|
|
7711
7713
|
* Should return an object matching the expected args for the specified renderer type.
|
|
@@ -8491,6 +8493,20 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
8491
8493
|
|
|
8492
8494
|
declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
|
|
8493
8495
|
|
|
8496
|
+
declare type TableHeaderInfo = {
|
|
8497
|
+
title: string;
|
|
8498
|
+
description: string;
|
|
8499
|
+
link?: {
|
|
8500
|
+
label: string;
|
|
8501
|
+
onClick: () => void;
|
|
8502
|
+
};
|
|
8503
|
+
/**
|
|
8504
|
+
* Accessible name for the info-icon trigger. Defaults to the column label
|
|
8505
|
+
* when the header's children are a string.
|
|
8506
|
+
*/
|
|
8507
|
+
label?: string;
|
|
8508
|
+
};
|
|
8509
|
+
|
|
8494
8510
|
declare interface TableHeadProps {
|
|
8495
8511
|
children: React.ReactNode;
|
|
8496
8512
|
/**
|
|
@@ -8527,10 +8543,11 @@ declare interface TableHeadProps {
|
|
|
8527
8543
|
*/
|
|
8528
8544
|
onSortClick?: () => void;
|
|
8529
8545
|
/**
|
|
8530
|
-
* Optional
|
|
8531
|
-
*
|
|
8546
|
+
* Optional header info. When provided, displays an info icon next to the
|
|
8547
|
+
* header content. Pass a string for a short text tooltip, or a
|
|
8548
|
+
* {@link TableHeaderInfo} object for a structured hoverable card.
|
|
8532
8549
|
*/
|
|
8533
|
-
info?: string;
|
|
8550
|
+
info?: string | TableHeaderInfo;
|
|
8534
8551
|
/**
|
|
8535
8552
|
* Icon to display when info is provided.
|
|
8536
8553
|
* @default InfoCircleLine
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as pa, B as ba, i as xa, j as va, k as Dt, l as Be, m as
|
|
1
|
+
import { h as pa, B as ba, i as xa, j as va, k as Dt, l as Be, m as ze, n as ya, o as p, p as J, q as ye, u as le, T as wa, r as Na, s as Ca, R as Ia, t as ka, v as ce, w as Sa, x as Nt, y as ut, z as Ve, A as Oe, E as Fa, G as Aa, H as U, J as La, K as Oa, L as xe, M as mn, N as Pa, O as Ea, Q as G, S as hn, U as z, V as ke, W as _a, X as Da, Y as Ta, Z as za, _ as Ra, $ as Pe, a0 as gn, a1 as Ba, a2 as we, a3 as Ue, a4 as $a, e as pn, a5 as Ae, a6 as Ma, a7 as bn, a8 as ie, a9 as Z, aa as xn, ab as vn, ac as Wa, ad as yn, ae as pe, af as ae, ag as ja, ah as Va, ai as Ua, aj as Ha, ak as Ga, al as ve, am as Ye, an as Ka, ao as qa, ap as Ya, aq as Ja, ar as Je, as as wn, at as Za, au as Xa, av as Qa, aw as He, ax as er, ay as Nn, az as tr, aA as nr, aB as ar, aC as rr, aD as ir, aE as lr, aF as sr, aG as or, aH as ft, aI as Cn, aJ as mt, aK as In, aL as cr, aM as dr, aN as ur, aO as fr, aP as mr, aQ as Ze, aR as Xe, aS as ht, aT as kn, aU as hr, aV as Ct, aW as gr, aX as pr, aY as br, aZ as Le, a_ as xr, a$ as vr, b0 as $e, b1 as Tt, b2 as gt, b3 as yr, b4 as wr, a as Nr, b as Cr, b5 as Sn, b6 as Ir, g as kr, F as Sr, b7 as Fr, b8 as Fn, b9 as Ar, ba as An, bb as Ln, bc as Lr, bd as Or, be as Pr, bf as Er, bg as _r, bh as Dr, bi as Tr, bj as zr, bk as Rr, bl as On, bm as Br, bn as $r, bo as Mr, bp as Wr, bq as ge, br as It, bs as kt, bt as St, bu as Pn, bv as Ft, bw as En, bx as _n, by as jr, bz as Vr, bA as Ur, bB as Hr, bC as Gr, bD as Kr, bE as qr, bF as Yr, bG as zt, bH as Jr, bI as Zr, bJ as Rt, bK as Bt, bL as $t, bM as Xr, bN as Qr, bO as ei, bP as ti, bQ as Dn, bR as ni, bS as ai } from "./F0CanvasPanel-NAs7-9VU.js";
|
|
2
2
|
import { c3 as Jc, c2 as Zc, cf as Xc, b$ as Qc, c0 as ed, bT as td, bU as nd, ci as ad, bV as rd, bW as id, cj as ld, c1 as sd, cb as od, cc as cd, cg as dd, bX as ud, c5 as fd, c4 as md, bY as hd, bZ as gd, cd as pd, ck as bd, ce as xd, ch as vd, ca as yd, c7 as wd, c9 as Nd, c6 as Cd, b_ as Id, c8 as kd } from "./F0CanvasPanel-NAs7-9VU.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
|
|
4
|
-
import ue, { forwardRef as H, useRef as j, useTransition as ri, useState as D, useLayoutEffect as Tn, useId as pt, useContext as
|
|
5
|
-
import { C as si, P as oi, a as Bn, M as ci, p as di, b as ui, R as Mt, c as $n, u as fi, d as mi, e as hi, f as gi, g as pi, h as Mn, S as bi, A as xi, B as vi, L as yi, i as wi, V as Ni, j as Ci, k as Ii, l as ki, O as Si } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Fd, s as Ad, o as Ld, H as Od, t as Pd, z as Ed, a8 as _d, G as Dd, q as Td, aa as zd, a9 as Rd, Q as Bd, ad as $d, F as Md, Y as Wd, U as jd, J as Vd, af as Ud, K as Hd, Z as Gd, _ as Kd, v as qd, ab as Yd, ac as Jd, N as Zd, $ as Xd, a5 as Qd, a7 as eu, w as tu, y as nu, D as au, W as ru, ae as iu, X as lu, T as su, ag as ou, x as cu, E as du, m as uu, n as fu, a1 as mu, a2 as hu, a6 as gu, I as pu, a3 as bu, a0 as xu, a4 as vu } from "./useDataCollectionSource-
|
|
4
|
+
import ue, { forwardRef as H, useRef as j, useTransition as ri, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Ee, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ii, isValidElement as li, cloneElement as zn, Children as Rn } from "react";
|
|
5
|
+
import { C as si, P as oi, a as Bn, M as ci, p as di, b as ui, R as Mt, c as $n, u as fi, d as mi, e as hi, f as gi, g as pi, h as Mn, S as bi, A as xi, B as vi, L as yi, i as wi, V as Ni, j as Ci, k as Ii, l as ki, O as Si } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
6
|
+
import { r as Fd, s as Ad, o as Ld, H as Od, t as Pd, z as Ed, a8 as _d, G as Dd, q as Td, aa as zd, a9 as Rd, Q as Bd, ad as $d, F as Md, Y as Wd, U as jd, J as Vd, af as Ud, K as Hd, Z as Gd, _ as Kd, v as qd, ab as Yd, ac as Jd, N as Zd, $ as Xd, a5 as Qd, a7 as eu, w as tu, y as nu, D as au, W as ru, ae as iu, X as lu, T as su, ag as ou, x as cu, E as du, m as uu, n as fu, a1 as mu, a2 as hu, a6 as gu, I as pu, a3 as bu, a0 as xu, a4 as vu } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
7
7
|
const Fi = pa("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -122,7 +122,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
122
122
|
isFirst: f === 0,
|
|
123
123
|
children: f === t.length - 1 ? n : void 0
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
ze(d)
|
|
126
126
|
))
|
|
127
127
|
}
|
|
128
128
|
),
|
|
@@ -135,7 +135,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
135
135
|
item: l.headItem,
|
|
136
136
|
isLast: !1
|
|
137
137
|
},
|
|
138
|
-
`first-item-${
|
|
138
|
+
`first-item-${ze(l.headItem)}`
|
|
139
139
|
),
|
|
140
140
|
c && /* @__PURE__ */ o(X, { children: [
|
|
141
141
|
/* @__PURE__ */ e(
|
|
@@ -153,7 +153,7 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
153
153
|
isFirst: !1,
|
|
154
154
|
children: f === l.tailItems.length - 1 ? n : void 0
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
ze(d)
|
|
157
157
|
))
|
|
158
158
|
] }),
|
|
159
159
|
!c && /* @__PURE__ */ e(X, { children: l.tailItems.map((d, f) => /* @__PURE__ */ e(
|
|
@@ -164,12 +164,12 @@ function Ei({ breadcrumbs: t, append: n }) {
|
|
|
164
164
|
isFirst: !1,
|
|
165
165
|
children: f === l.tailItems.length - 1 ? n : void 0
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
ze(d)
|
|
168
168
|
)) })
|
|
169
169
|
] })
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
|
-
`breadcrumb-${
|
|
172
|
+
`breadcrumb-${ze(t.at(-1)) ?? 0}`
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
const _i = ye({
|
|
@@ -369,7 +369,7 @@ const _i = ye({
|
|
|
369
369
|
}, Se = () => {
|
|
370
370
|
};
|
|
371
371
|
function et() {
|
|
372
|
-
const t =
|
|
372
|
+
const t = Ee(Vn);
|
|
373
373
|
return t === null ? {
|
|
374
374
|
enabled: !1,
|
|
375
375
|
setEnabled: Se,
|
|
@@ -451,8 +451,8 @@ const Un = ({
|
|
|
451
451
|
!i && /* @__PURE__ */ e(Sa, { side: "left", className: "font-medium", children: l.ai.welcome })
|
|
452
452
|
] }) }) }) : null;
|
|
453
453
|
}, Vt = "one_sidebar_locked", Hn = Qe(void 0);
|
|
454
|
-
function
|
|
455
|
-
const t =
|
|
454
|
+
function _e() {
|
|
455
|
+
const t = Ee(Hn);
|
|
456
456
|
return t === void 0 ? {
|
|
457
457
|
isSmallScreen: !1,
|
|
458
458
|
isLastToggleInvokedByUser: !0,
|
|
@@ -521,7 +521,7 @@ const Ut = J.create(U), Ht = {
|
|
|
521
521
|
const [r, i] = D(!1), l = () => {
|
|
522
522
|
i(!0), n(!t);
|
|
523
523
|
};
|
|
524
|
-
return /* @__PURE__ */ e(
|
|
524
|
+
return /* @__PURE__ */ e(Oe, { mode: "wait", children: /* @__PURE__ */ e(
|
|
525
525
|
"button",
|
|
526
526
|
{
|
|
527
527
|
className: p(
|
|
@@ -878,7 +878,7 @@ const Ut = J.create(U), Ht = {
|
|
|
878
878
|
G,
|
|
879
879
|
{
|
|
880
880
|
variant: "ghost",
|
|
881
|
-
icon:
|
|
881
|
+
icon: Pe,
|
|
882
882
|
size: "sm",
|
|
883
883
|
hideLabel: !0,
|
|
884
884
|
onClick: s,
|
|
@@ -910,7 +910,7 @@ const Ut = J.create(U), Ht = {
|
|
|
910
910
|
] });
|
|
911
911
|
}, Ot = Qe(null), Qo = Ot.Provider;
|
|
912
912
|
function ec() {
|
|
913
|
-
return
|
|
913
|
+
return Ee(Ot);
|
|
914
914
|
}
|
|
915
915
|
function Ki(t, n) {
|
|
916
916
|
const a = n?.getItemTitle, r = n?.mode ?? "url", i = t !== null, l = t?.previousItem ?? null, s = t?.nextItem ?? null, c = t?.previousItemUrl ?? null, d = t?.nextItemUrl ?? null, f = t?.absoluteIndex ?? null, u = t?.totalItems, m = t?.hasPrevious ?? !1, h = t?.hasNext ?? !1, b = t?.goToPrevious, g = t?.goToNext;
|
|
@@ -946,7 +946,7 @@ function tc({
|
|
|
946
946
|
oneSwitchTooltip: d,
|
|
947
947
|
oneSwitchAutoOpen: f
|
|
948
948
|
}) {
|
|
949
|
-
const { sidebarState: u, toggleSidebar: m } =
|
|
949
|
+
const { sidebarState: u, toggleSidebar: m } = _e(), h = Ee(Ot), b = l ?? h ?? void 0, g = [
|
|
950
950
|
{
|
|
951
951
|
id: t.href,
|
|
952
952
|
label: t.name,
|
|
@@ -964,7 +964,7 @@ function tc({
|
|
|
964
964
|
),
|
|
965
965
|
children: [
|
|
966
966
|
/* @__PURE__ */ o("div", { className: "flex flex-grow items-center", children: [
|
|
967
|
-
/* @__PURE__ */ e(
|
|
967
|
+
/* @__PURE__ */ e(Oe, { children: !i && u !== "locked" && /* @__PURE__ */ e(
|
|
968
968
|
J.div,
|
|
969
969
|
{
|
|
970
970
|
initial: { opacity: 0, width: 0 },
|
|
@@ -1180,7 +1180,7 @@ const Yi = () => {
|
|
|
1180
1180
|
},
|
|
1181
1181
|
isOpen: n,
|
|
1182
1182
|
autoClearMinutes: i
|
|
1183
|
-
}), /* @__PURE__ */ e(
|
|
1183
|
+
}), /* @__PURE__ */ e(Oe, { children: n && /* @__PURE__ */ e(
|
|
1184
1184
|
J.div,
|
|
1185
1185
|
{
|
|
1186
1186
|
"aria-hidden": !n,
|
|
@@ -1301,7 +1301,7 @@ const Yi = () => {
|
|
|
1301
1301
|
variant: "ghost",
|
|
1302
1302
|
hideLabel: !0,
|
|
1303
1303
|
label: "",
|
|
1304
|
-
icon:
|
|
1304
|
+
icon: Pe,
|
|
1305
1305
|
onClick: d
|
|
1306
1306
|
}
|
|
1307
1307
|
) }),
|
|
@@ -1397,7 +1397,7 @@ const Yi = () => {
|
|
|
1397
1397
|
G,
|
|
1398
1398
|
{
|
|
1399
1399
|
variant: "ghost",
|
|
1400
|
-
icon:
|
|
1400
|
+
icon: Pe,
|
|
1401
1401
|
size: "sm",
|
|
1402
1402
|
hideLabel: !0,
|
|
1403
1403
|
onClick: a,
|
|
@@ -1962,7 +1962,7 @@ const qt = ({
|
|
|
1962
1962
|
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-1 flex-row items-center gap-2 break-all", children: /* @__PURE__ */ e("span", { className: p("line-clamp-1"), children: t }) }) })
|
|
1963
1963
|
]
|
|
1964
1964
|
}
|
|
1965
|
-
) }),
|
|
1965
|
+
) }), Re = ({ primaryAction: t, secondaryActions: n }) => {
|
|
1966
1966
|
if (!n || n.length === 0)
|
|
1967
1967
|
return /* @__PURE__ */ e(
|
|
1968
1968
|
G,
|
|
@@ -2021,24 +2021,24 @@ const qt = ({
|
|
|
2021
2021
|
disabled: r || !l
|
|
2022
2022
|
} : void 0;
|
|
2023
2023
|
return x || (x = y, y = void 0), m && u ? (b = /* @__PURE__ */ e(
|
|
2024
|
-
|
|
2024
|
+
Re,
|
|
2025
2025
|
{
|
|
2026
2026
|
primaryAction: x,
|
|
2027
2027
|
secondaryActions: y ? [y] : []
|
|
2028
2028
|
}
|
|
2029
2029
|
), g = /* @__PURE__ */ e(
|
|
2030
|
-
|
|
2030
|
+
Re,
|
|
2031
2031
|
{
|
|
2032
2032
|
primaryAction: t[0],
|
|
2033
2033
|
secondaryActions: t.slice(1)
|
|
2034
2034
|
}
|
|
2035
2035
|
)) : m ? b = /* @__PURE__ */ e(
|
|
2036
|
-
|
|
2036
|
+
Re,
|
|
2037
2037
|
{
|
|
2038
2038
|
primaryAction: t[0],
|
|
2039
2039
|
secondaryActions: t.slice(1)
|
|
2040
2040
|
}
|
|
2041
|
-
) : u && (b = /* @__PURE__ */ e(
|
|
2041
|
+
) : u && (b = /* @__PURE__ */ e(Re, { primaryAction: x, secondaryActions: [] }), y && (g = /* @__PURE__ */ e(Re, { primaryAction: y, secondaryActions: [] }))), /* @__PURE__ */ e("footer", { className: "rounded-bl-xl border-0 border-r-[1px] border-t-[1px] border-solid border-f1-border-secondary bg-f1-background/30 backdrop-blur-2xl", children: /* @__PURE__ */ o("div", { className: "flex flex-1 justify-between p-2", children: [
|
|
2042
2042
|
b,
|
|
2043
2043
|
g
|
|
2044
2044
|
] }) });
|
|
@@ -2259,8 +2259,8 @@ const qt = ({
|
|
|
2259
2259
|
h,
|
|
2260
2260
|
T.id
|
|
2261
2261
|
), oe = (T?.subItems ?? []).filter(
|
|
2262
|
-
(
|
|
2263
|
-
(ga) => ga.subId ===
|
|
2262
|
+
(Te) => Q?.subItems?.some(
|
|
2263
|
+
(ga) => ga.subId === Te.subId
|
|
2264
2264
|
)
|
|
2265
2265
|
), he = (T.subItems?.length ?? 0) === oe.length, ha = !he && oe.length > 0;
|
|
2266
2266
|
return /* @__PURE__ */ e(
|
|
@@ -2268,14 +2268,14 @@ const qt = ({
|
|
|
2268
2268
|
{
|
|
2269
2269
|
groupView: !0,
|
|
2270
2270
|
expanded: T.expanded ?? !1,
|
|
2271
|
-
onExpand: (
|
|
2271
|
+
onExpand: (Te) => g(T, Te),
|
|
2272
2272
|
search: i,
|
|
2273
2273
|
entity: T,
|
|
2274
2274
|
onSelect: l,
|
|
2275
2275
|
onRemove: s,
|
|
2276
2276
|
selected: he,
|
|
2277
2277
|
partialSelected: ha,
|
|
2278
|
-
showGroupIcon: a.find((
|
|
2278
|
+
showGroupIcon: a.find((Te) => Te.value === r)?.groupType === "team",
|
|
2279
2279
|
singleSelector: B,
|
|
2280
2280
|
goToFirst: v,
|
|
2281
2281
|
goToLast: C,
|
|
@@ -2367,7 +2367,7 @@ const qt = ({
|
|
|
2367
2367
|
}
|
|
2368
2368
|
const ee = F > 0 && K === F, Y = K > 0;
|
|
2369
2369
|
return [ee, Y];
|
|
2370
|
-
}, [n, k, t]), Ce = te.length, se = !B && (y || N), it = O && O.length > 0,
|
|
2370
|
+
}, [n, k, t]), Ce = te.length, se = !B && (y || N), it = O && O.length > 0, De = !w && (!B && se || it);
|
|
2371
2371
|
return /* @__PURE__ */ o(
|
|
2372
2372
|
"div",
|
|
2373
2373
|
{
|
|
@@ -2418,7 +2418,7 @@ const qt = ({
|
|
|
2418
2418
|
{
|
|
2419
2419
|
className: p(
|
|
2420
2420
|
"flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background",
|
|
2421
|
-
|
|
2421
|
+
De ? "" : "rounded-b-xl border-r-0"
|
|
2422
2422
|
),
|
|
2423
2423
|
children: [
|
|
2424
2424
|
w && /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-row items-center justify-center", children: /* @__PURE__ */ e(bn, {}) }),
|
|
@@ -2506,7 +2506,7 @@ const qt = ({
|
|
|
2506
2506
|
right: !a && /* @__PURE__ */ e(
|
|
2507
2507
|
U,
|
|
2508
2508
|
{
|
|
2509
|
-
icon:
|
|
2509
|
+
icon: Pe,
|
|
2510
2510
|
size: "sm",
|
|
2511
2511
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
2512
2512
|
onClick: () => n?.(t)
|
|
@@ -2757,7 +2757,7 @@ const qt = ({
|
|
|
2757
2757
|
(w) => w.subItems && w.subItems.length > 0
|
|
2758
2758
|
),
|
|
2759
2759
|
[t.entities]
|
|
2760
|
-
), m =
|
|
2760
|
+
), m = Ee(ir), b = m.portalContainer && (m.position === "center" || m.position === "fullscreen") ? m.portalContainer : void 0;
|
|
2761
2761
|
function g(w) {
|
|
2762
2762
|
if (t.singleSelector) {
|
|
2763
2763
|
t.onSelect(w), a(!1);
|
|
@@ -3592,7 +3592,7 @@ const Bl = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
|
|
|
3592
3592
|
),
|
|
3593
3593
|
children: t.map((a) => {
|
|
3594
3594
|
const r = /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
3595
|
-
|
|
3595
|
+
Le,
|
|
3596
3596
|
{
|
|
3597
3597
|
icon: a.icon,
|
|
3598
3598
|
text: a.label ?? (a.description || ""),
|
|
@@ -4088,7 +4088,7 @@ const Bl = () => /* @__PURE__ */ o("div", { className: "flex flex-col justify-ar
|
|
|
4088
4088
|
) })
|
|
4089
4089
|
] }),
|
|
4090
4090
|
"bottomTags" in a && /* @__PURE__ */ e("div", { className: "-ml-1.5 flex flex-row items-center [&>div]:-mr-1", children: a.bottomTags.map((l, s) => /* @__PURE__ */ o(X, { children: [
|
|
4091
|
-
/* @__PURE__ */ e(
|
|
4091
|
+
/* @__PURE__ */ e(Le, { ...l }, l.text),
|
|
4092
4092
|
s < a.bottomTags.length - 1 && /* @__PURE__ */ e("span", { children: "·" })
|
|
4093
4093
|
] })) }),
|
|
4094
4094
|
"description" in a && a.description && /* @__PURE__ */ e("p", { className: "truncate text-f1-foreground-secondary", children: a.description })
|
|
@@ -4191,7 +4191,7 @@ function Jl(t, n, a) {
|
|
|
4191
4191
|
return !n && t ? a === "hidden" : n && !t ? a !== "hidden" : !1;
|
|
4192
4192
|
}
|
|
4193
4193
|
function Zl(t, n) {
|
|
4194
|
-
const { sidebarState: a, toggleSidebar: r } =
|
|
4194
|
+
const { sidebarState: a, toggleSidebar: r } = _e(), i = j(t);
|
|
4195
4195
|
W(() => {
|
|
4196
4196
|
n && Jl(
|
|
4197
4197
|
t,
|
|
@@ -4207,7 +4207,7 @@ function Xl({
|
|
|
4207
4207
|
sidebar: r,
|
|
4208
4208
|
banner: i
|
|
4209
4209
|
}) {
|
|
4210
|
-
const { sidebarState: l, toggleSidebar: s, isSmallScreen: c, setForceFloat: d } =
|
|
4210
|
+
const { sidebarState: l, toggleSidebar: s, isSmallScreen: c, setForceFloat: d } = _e(), f = Ze(), {
|
|
4211
4211
|
open: u,
|
|
4212
4212
|
visualizationMode: m,
|
|
4213
4213
|
canvasContent: h,
|
|
@@ -4243,7 +4243,7 @@ function Xl({
|
|
|
4243
4243
|
children: /* @__PURE__ */ o("div", { className: "scrollbar-macos grid h-screen grid-cols-1 grid-rows-[auto_minmax(0,1fr)]", children: [
|
|
4244
4244
|
/* @__PURE__ */ e("div", { className: "col-[1/-1]", children: i }),
|
|
4245
4245
|
/* @__PURE__ */ e(Sn, { id: "ai-chat-group", children: /* @__PURE__ */ o("div", { className: "relative isolate flex h-full", children: [
|
|
4246
|
-
/* @__PURE__ */ e(
|
|
4246
|
+
/* @__PURE__ */ e(Oe, { children: l === "unlocked" && /* @__PURE__ */ e(
|
|
4247
4247
|
J.nav,
|
|
4248
4248
|
{
|
|
4249
4249
|
className: p(
|
|
@@ -4376,7 +4376,7 @@ const ra = ({
|
|
|
4376
4376
|
onPulseClick: s
|
|
4377
4377
|
}) => {
|
|
4378
4378
|
const c = le(), [d, f] = D(!l);
|
|
4379
|
-
return /* @__PURE__ */ e("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ e(
|
|
4379
|
+
return /* @__PURE__ */ e("div", { className: "relative h-10 w-10", children: /* @__PURE__ */ e(Oe, { mode: "popLayout", initial: !!d, children: d ? /* @__PURE__ */ e(
|
|
4380
4380
|
J.div,
|
|
4381
4381
|
{
|
|
4382
4382
|
className: "relative h-10 w-10 rounded-full bg-f1-background-warning",
|
|
@@ -4524,7 +4524,7 @@ function ia({
|
|
|
4524
4524
|
period: a,
|
|
4525
4525
|
embedded: r = !1
|
|
4526
4526
|
}) {
|
|
4527
|
-
const { sidebarState: i, toggleSidebar: l, isSmallScreen: s } =
|
|
4527
|
+
const { sidebarState: i, toggleSidebar: l, isSmallScreen: s } = _e();
|
|
4528
4528
|
return /* @__PURE__ */ o(
|
|
4529
4529
|
"div",
|
|
4530
4530
|
{
|
|
@@ -4905,7 +4905,7 @@ function rs({ isExpanded: t }) {
|
|
|
4905
4905
|
);
|
|
4906
4906
|
}
|
|
4907
4907
|
function is() {
|
|
4908
|
-
const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } =
|
|
4908
|
+
const { prevSidebarState: t, sidebarState: n, toggleSidebar: a, isSmallScreen: r } = _e(), i = j(null);
|
|
4909
4909
|
return W(() => {
|
|
4910
4910
|
t === "hidden" && n === "locked" && i.current?.focus();
|
|
4911
4911
|
}, [t, n]), /* @__PURE__ */ o(
|
|
@@ -4921,7 +4921,7 @@ function is() {
|
|
|
4921
4921
|
"aria-label": "Close Sidebar",
|
|
4922
4922
|
children: [
|
|
4923
4923
|
/* @__PURE__ */ e("div", { className: p("hidden", { flex: !r }), children: /* @__PURE__ */ e(rs, { isExpanded: n === "locked" }) }),
|
|
4924
|
-
/* @__PURE__ */ e("div", { className: p("hidden", { flex: r }), children: /* @__PURE__ */ e(U, { icon:
|
|
4924
|
+
/* @__PURE__ */ e("div", { className: p("hidden", { flex: r }), children: /* @__PURE__ */ e(U, { icon: Pe, size: "md" }) })
|
|
4925
4925
|
]
|
|
4926
4926
|
}
|
|
4927
4927
|
);
|
|
@@ -4967,7 +4967,7 @@ function ss({ children: t }) {
|
|
|
4967
4967
|
);
|
|
4968
4968
|
}
|
|
4969
4969
|
function Et() {
|
|
4970
|
-
const t =
|
|
4970
|
+
const t = Ee(sa);
|
|
4971
4971
|
if (!t)
|
|
4972
4972
|
throw new Error("useDragContext must be used within a DragProvider");
|
|
4973
4973
|
return t;
|
|
@@ -4976,7 +4976,7 @@ const os = ({
|
|
|
4976
4976
|
item: t,
|
|
4977
4977
|
active: n
|
|
4978
4978
|
}) => /* @__PURE__ */ o("div", { className: "flex w-full items-center justify-between", children: [
|
|
4979
|
-
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: [
|
|
4979
|
+
/* @__PURE__ */ o("div", { className: "flex min-w-0 items-center gap-1.5 font-medium text-f1-foreground", children: [
|
|
4980
4980
|
/* @__PURE__ */ e(
|
|
4981
4981
|
U,
|
|
4982
4982
|
{
|
|
@@ -4990,7 +4990,10 @@ const os = ({
|
|
|
4990
4990
|
),
|
|
4991
4991
|
/* @__PURE__ */ e("span", { children: t.label })
|
|
4992
4992
|
] }),
|
|
4993
|
-
t.badge && /* @__PURE__ */
|
|
4993
|
+
(t.tag || t.badge) && /* @__PURE__ */ o("div", { className: "flex flex-shrink-0 items-center gap-1.5", children: [
|
|
4994
|
+
t.tag && /* @__PURE__ */ e(Le, { text: t.tag }),
|
|
4995
|
+
t.badge && /* @__PURE__ */ e(Je, { value: t.badge, size: "sm", type: "bold" })
|
|
4996
|
+
] })
|
|
4994
4997
|
] }), cs = ({ item: t }) => {
|
|
4995
4998
|
const { isActive: n } = Nt(), { label: a, icon: r, ...i } = t, l = n(i.href, { exact: i.exactMatch });
|
|
4996
4999
|
return /* @__PURE__ */ e(
|
|
@@ -5504,7 +5507,7 @@ function ms({
|
|
|
5504
5507
|
footer: a,
|
|
5505
5508
|
onFooterDropdownClick: r
|
|
5506
5509
|
}) {
|
|
5507
|
-
const { sidebarState: i, isSmallScreen: l } =
|
|
5510
|
+
const { sidebarState: i, isSmallScreen: l } = _e(), s = Ze(), [c, d] = ft({ threshold: 1 }), [f, u] = ft({ threshold: 1 }), m = le(), h = {
|
|
5508
5511
|
x: {
|
|
5509
5512
|
ease: i !== "locked" ? l ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
|
|
5510
5513
|
duration: s ? 0 : i !== "locked" && !l ? 0.3 : 0.2
|
|
@@ -5563,7 +5566,7 @@ function ms({
|
|
|
5563
5566
|
"bottom-ref"
|
|
5564
5567
|
)
|
|
5565
5568
|
] }),
|
|
5566
|
-
/* @__PURE__ */ o(
|
|
5569
|
+
/* @__PURE__ */ o(Oe, { children: [
|
|
5567
5570
|
!d && /* @__PURE__ */ e(rn, { position: "top" }, "shadow-scroll-top"),
|
|
5568
5571
|
!u && /* @__PURE__ */ e(rn, { position: "bottom" }, "shadow-scroll-bottom")
|
|
5569
5572
|
] })
|
|
@@ -5585,7 +5588,7 @@ const vc = ie(ms), hs = {
|
|
|
5585
5588
|
size: "sm"
|
|
5586
5589
|
},
|
|
5587
5590
|
rejected: {
|
|
5588
|
-
icon:
|
|
5591
|
+
icon: Pe,
|
|
5589
5592
|
type: "critical",
|
|
5590
5593
|
size: "sm"
|
|
5591
5594
|
}
|
|
@@ -5839,7 +5842,7 @@ function wc(t) {
|
|
|
5839
5842
|
...T,
|
|
5840
5843
|
navigationFilters: x.currentNavigationFilters
|
|
5841
5844
|
})
|
|
5842
|
-
}),
|
|
5845
|
+
}), De = q(() => s || (x.idProvider ? (T, Q) => x.idProvider(T, Q) : pi), [s, x.idProvider]), F = q(() => {
|
|
5843
5846
|
if (!be || se === null) return P;
|
|
5844
5847
|
const T = P.previousItem ?? se.previous, Q = P.nextItem ?? se.next, oe = (he) => he && k ? k(he) ?? null : null;
|
|
5845
5848
|
return {
|
|
@@ -5856,12 +5859,12 @@ function wc(t) {
|
|
|
5856
5859
|
// the resolved neighbor instead.
|
|
5857
5860
|
goToPrevious: te ? P.goToPrevious : () => {
|
|
5858
5861
|
se.previous && P.setActiveItemId(
|
|
5859
|
-
|
|
5862
|
+
De(se.previous)
|
|
5860
5863
|
);
|
|
5861
5864
|
},
|
|
5862
5865
|
goToNext: te ? P.goToNext : () => {
|
|
5863
5866
|
se.next && P.setActiveItemId(
|
|
5864
|
-
|
|
5867
|
+
De(se.next)
|
|
5865
5868
|
);
|
|
5866
5869
|
}
|
|
5867
5870
|
};
|
|
@@ -5871,7 +5874,7 @@ function wc(t) {
|
|
|
5871
5874
|
se,
|
|
5872
5875
|
te,
|
|
5873
5876
|
k,
|
|
5874
|
-
|
|
5877
|
+
De
|
|
5875
5878
|
]), K = Ki(F, {
|
|
5876
5879
|
getItemTitle: d,
|
|
5877
5880
|
mode: h
|
|
@@ -7083,7 +7086,7 @@ function wt({
|
|
|
7083
7086
|
] }),
|
|
7084
7087
|
/* @__PURE__ */ o("div", { className: "flex flex-row items-center gap-2", children: [
|
|
7085
7088
|
a && /* @__PURE__ */ e(_n, { ...a }),
|
|
7086
|
-
r && /* @__PURE__ */ e(
|
|
7089
|
+
r && /* @__PURE__ */ e(Le, { ...r }),
|
|
7087
7090
|
!!i && /* @__PURE__ */ e(Je, { value: i })
|
|
7088
7091
|
] })
|
|
7089
7092
|
] });
|
|
@@ -7544,9 +7547,9 @@ function Mc({
|
|
|
7544
7547
|
),
|
|
7545
7548
|
N && E
|
|
7546
7549
|
] }) : /* @__PURE__ */ o(X, { children: [
|
|
7547
|
-
s && C && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
|
|
7550
|
+
s && C && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Le, { text: C.name, icon: C.icon }) }),
|
|
7548
7551
|
N && E,
|
|
7549
|
-
P && R && /* @__PURE__ */ e(
|
|
7552
|
+
P && R && /* @__PURE__ */ e(Le, { text: R })
|
|
7550
7553
|
] }) })
|
|
7551
7554
|
] }) });
|
|
7552
7555
|
}
|
|
@@ -8002,5 +8005,5 @@ export {
|
|
|
8002
8005
|
vu as useInfiniteScrollPagination,
|
|
8003
8006
|
Ki as usePageHeaderItemNavigation,
|
|
8004
8007
|
ec as usePageHeaderNavigation,
|
|
8005
|
-
|
|
8008
|
+
_e as useSidebar
|
|
8006
8009
|
};
|
package/dist/f0.d.ts
CHANGED
|
@@ -14111,10 +14111,11 @@ declare type PromoteAction = {
|
|
|
14111
14111
|
declare type PropertyDefinition_2<T> = {
|
|
14112
14112
|
label: string;
|
|
14113
14113
|
/**
|
|
14114
|
-
* Optional
|
|
14115
|
-
*
|
|
14114
|
+
* Optional header info. Pass a string for a short text tooltip, or a
|
|
14115
|
+
* {@link TableHeaderInfo} object for a structured hoverable card. Only
|
|
14116
|
+
* rendered by the table visualization's column headers.
|
|
14116
14117
|
*/
|
|
14117
|
-
info?: string;
|
|
14118
|
+
info?: string | TableHeaderInfo;
|
|
14118
14119
|
/**
|
|
14119
14120
|
* Function that extracts and formats the value from an item.
|
|
14120
14121
|
* Should return an object matching the expected args for the specified renderer type.
|
|
@@ -15240,6 +15241,20 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
|
|
|
15240
15241
|
|
|
15241
15242
|
declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
|
|
15242
15243
|
|
|
15244
|
+
declare type TableHeaderInfo = {
|
|
15245
|
+
title: string;
|
|
15246
|
+
description: string;
|
|
15247
|
+
link?: {
|
|
15248
|
+
label: string;
|
|
15249
|
+
onClick: () => void;
|
|
15250
|
+
};
|
|
15251
|
+
/**
|
|
15252
|
+
* Accessible name for the info-icon trigger. Defaults to the column label
|
|
15253
|
+
* when the header's children are a string.
|
|
15254
|
+
*/
|
|
15255
|
+
label?: string;
|
|
15256
|
+
};
|
|
15257
|
+
|
|
15243
15258
|
declare interface TableHeadProps {
|
|
15244
15259
|
children: React.ReactNode;
|
|
15245
15260
|
/**
|
|
@@ -15276,10 +15291,11 @@ declare interface TableHeadProps {
|
|
|
15276
15291
|
*/
|
|
15277
15292
|
onSortClick?: () => void;
|
|
15278
15293
|
/**
|
|
15279
|
-
* Optional
|
|
15280
|
-
*
|
|
15294
|
+
* Optional header info. When provided, displays an info icon next to the
|
|
15295
|
+
* header content. Pass a string for a short text tooltip, or a
|
|
15296
|
+
* {@link TableHeaderInfo} object for a structured hoverable card.
|
|
15281
15297
|
*/
|
|
15282
|
-
info?: string;
|
|
15298
|
+
info?: string | TableHeaderInfo;
|
|
15283
15299
|
/**
|
|
15284
15300
|
* Icon to display when info is provided.
|
|
15285
15301
|
* @default InfoCircleLine
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import xt, { forwardRef as sr, useRef as re, useImperativeHandle as cH, Children
|
|
|
6
6
|
import { y as hH, z as vH, B as pH, C as gH, D as $2, E as Sv, G as lw, H as U2, I as Y2, J as bi, K as mH, L as yH, M as bH, N as xH, O as _H, F as wH } from "./useChatHistory-hrv_qH8R.js";
|
|
7
7
|
import { A as pye, s as gye, t as mye, w as yye, l as bye, i as xye, q as _ye, x as wye, p as Sye, r as Cye, j as Tye, e as Dye, g as Aye, k as Mye, h as Eye, a as Lye, n as Nye, m as Iye, o as Rye, b as kye, f as Pye, v as Oye, c as Bye, d as zye, u as Vye } from "./useChatHistory-hrv_qH8R.js";
|
|
8
8
|
import { createPortal as Qf, unstable_batchedUpdates as Sd } from "react-dom";
|
|
9
|
-
import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-
|
|
10
|
-
import { r as Gye, s as Hye, H as Wye, t as $ye, z as Uye, aQ as Yye, aP as Xye, aL as qye, aB as Zye, aA as jye, aC as Kye, aD as Qye, aa as Jye, a9 as e0e, ad as t0e, U as r0e, J as n0e, af as i0e, K as a0e, v as o0e, aR as s0e, ab as l0e, ac as u0e, N as c0e, w as f0e, P as d0e, y as h0e, D as v0e, ae as p0e, T as g0e, ag as m0e, x as y0e, E as b0e, aT as x0e, m as _0e, n as w0e, aK as S0e, aG as C0e, aF as T0e, aS as D0e, a6 as A0e, aI as M0e, aJ as E0e, I as L0e, aU as N0e, aV as I0e, e as R0e, aM as k0e, aN as P0e, aO as O0e, aH as B0e, f as z0e, h as V0e, aE as F0e, aW as G0e } from "./useDataCollectionSource-
|
|
9
|
+
import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
10
|
+
import { r as Gye, s as Hye, H as Wye, t as $ye, z as Uye, aQ as Yye, aP as Xye, aL as qye, aB as Zye, aA as jye, aC as Kye, aD as Qye, aa as Jye, a9 as e0e, ad as t0e, U as r0e, J as n0e, af as i0e, K as a0e, v as o0e, aR as s0e, ab as l0e, ac as u0e, N as c0e, w as f0e, P as d0e, y as h0e, D as v0e, ae as p0e, T as g0e, ag as m0e, x as y0e, E as b0e, aT as x0e, m as _0e, n as w0e, aK as S0e, aG as C0e, aF as T0e, aS as D0e, a6 as A0e, aI as M0e, aJ as E0e, I as L0e, aU as N0e, aV as I0e, e as R0e, aM as k0e, aN as P0e, aO as O0e, aH as B0e, f as z0e, h as V0e, aE as F0e, aW as G0e } from "./useDataCollectionSource-Coj9e5oF.js";
|
|
11
11
|
import { utils as Fl, write as J2 } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as W0e } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const HH = {
|