@factorialco/f0-react 1.422.2 → 1.423.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/{F0HILActionConfirmation-DaU9NaIl.js → F0HILActionConfirmation-CcDsCCLa.js} +1 -1
- package/dist/ai.d.ts +9 -5
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +9 -5
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +30 -8
- package/dist/f0.js +4965 -4848
- package/dist/i18n-provider-defaults.d.ts +9 -5
- package/dist/i18n-provider-defaults.js +5 -1
- package/dist/{index-BZwDDrii.js → index-DtTD2awb.js} +1 -1
- package/dist/{registry-DaCnOJvo.js → registry-Cfsd-zAT.js} +69 -68
- package/dist/styles.css +1 -1
- package/package.json +2 -2
|
@@ -507,6 +507,7 @@ export declare const defaultTranslations: {
|
|
|
507
507
|
readonly link: "Link";
|
|
508
508
|
readonly date: "Date";
|
|
509
509
|
readonly dropdownSingle: "Dropdown";
|
|
510
|
+
readonly file: "File upload";
|
|
510
511
|
};
|
|
511
512
|
readonly selectQuestion: {
|
|
512
513
|
readonly addOption: "Add option";
|
|
@@ -516,6 +517,9 @@ export declare const defaultTranslations: {
|
|
|
516
517
|
readonly correct: "Correct";
|
|
517
518
|
readonly optionPlaceholder: "Type anything you want here...";
|
|
518
519
|
};
|
|
520
|
+
readonly fileQuestion: {
|
|
521
|
+
readonly uploadButton: "Upload file";
|
|
522
|
+
};
|
|
519
523
|
readonly answer: {
|
|
520
524
|
readonly label: "Answer";
|
|
521
525
|
readonly dropdownPlaceholder: "Pick an option";
|
|
@@ -721,11 +725,6 @@ declare module "gridstack" {
|
|
|
721
725
|
}
|
|
722
726
|
|
|
723
727
|
|
|
724
|
-
declare namespace Calendar {
|
|
725
|
-
var displayName: string;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
728
|
declare module "@tiptap/core" {
|
|
730
729
|
interface Commands<ReturnType> {
|
|
731
730
|
aiBlock: {
|
|
@@ -773,3 +772,8 @@ declare module "@tiptap/core" {
|
|
|
773
772
|
};
|
|
774
773
|
}
|
|
775
774
|
}
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
declare namespace Calendar {
|
|
778
|
+
var displayName: string;
|
|
779
|
+
}
|
|
@@ -506,7 +506,8 @@ const e = {
|
|
|
506
506
|
numeric: "Numeric",
|
|
507
507
|
link: "Link",
|
|
508
508
|
date: "Date",
|
|
509
|
-
dropdownSingle: "Dropdown"
|
|
509
|
+
dropdownSingle: "Dropdown",
|
|
510
|
+
file: "File upload"
|
|
510
511
|
},
|
|
511
512
|
selectQuestion: {
|
|
512
513
|
addOption: "Add option",
|
|
@@ -516,6 +517,9 @@ const e = {
|
|
|
516
517
|
correct: "Correct",
|
|
517
518
|
optionPlaceholder: "Type anything you want here..."
|
|
518
519
|
},
|
|
520
|
+
fileQuestion: {
|
|
521
|
+
uploadButton: "Upload file"
|
|
522
|
+
},
|
|
519
523
|
answer: {
|
|
520
524
|
label: "Answer",
|
|
521
525
|
dropdownPlaceholder: "Pick an option",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as H, jsx as _, Fragment as Ct } from "react/jsx-runtime";
|
|
2
2
|
import * as Ie from "react";
|
|
3
3
|
import T, { useRef as $e, useState as ve, useCallback as xt, useEffect as ut, useLayoutEffect as fg, isValidElement as Jn, Children as ua, PureComponent as qn, forwardRef as ri, useImperativeHandle as lg, useMemo as vi, cloneElement as bt, createElement as cg, useContext as Hn, createContext as Ai, Component as R6, useId as j6, Fragment as uf, useDebugValue as L6, createRef as GC, memo as B6, version as yb } from "react";
|
|
4
|
-
import { U as wi, d1 as YC, K as fe, cY as F6, aS as XC, aR as JC, L as z6, P as Ci, a3 as $r, f9 as eo, fa as ZC, fb as QC, fc as eT, fd as vb, fe as gb, ff as bb, fg as xb, fh as kb, fi as q6, fj as yc, fk as tT, fl as nT, fm as iT, dP as df, fn as hl, fo as pl, fp as ai, fq as rT, fr as H6, b6 as Ye, fs as aT, ft as ts, a7 as Ee, fu as oT, fv as W6, fw as ug, fx as V6, fy as U6, fz as sT, fA as fT, fB as K6, fC as lT, fD as cT, fE as uT, fF as wd, fG as dT, fH as hT, fI as pT, fJ as mT, a6 as Sa, fK as yT, fL as vT, dp as gT, a8 as Zn, a9 as Qn, cQ as bT, cR as xT, cS as kT, cV as wT, fM as G6, _ as nn, bD as _T, M as Le, aH as ml, aq as ST, eX as Ut, bf as OT, bg as ET, a2 as dg, bh as AT, bl as CT, bi as TT, bj as wb, bn as _b, aK as Y6, bp as MT, bq as PT, bs as DT, bt as NT, N as _d, u as Ti, aB as X6, a0 as gn, R as nt, $ as $T, W as J6, aQ as IT, ak as hg, cy as RT, fN as Z6, fO as Sb, fP as jT, cD as LT, eu as BT, ev as FT, cv as zT, cw as qT, cx as HT, eR as WT, am as VT, eS as pg, c4 as hf, a4 as Q6, du as e5, bk as UT, fQ as KT, aN as t5, fR as GT, fS as YT, fT as n5, dM as yl, fU as Sd, fV as Od, dO as vl, ai as XT, aj as JT, dC as ZT, al as QT, c5 as mg, aM as Ob, er as eM, fW as tM, d$ as i5, dw as nM, fX as iM, fY as Vy, fZ as r5, f_ as a5, f$ as o5, g0 as rM, g1 as aM, g2 as oM, g3 as sM, dD as fM, dE as lM, dF as cM, ba as uM, dG as dM, b8 as hM, g4 as pM, dJ as mM, dL as yM, dK as vM, c2 as gM, dN as bM, g5 as xM, bY as s5, aG as f5, d2 as Uy, a1 as kM, b9 as wM, g6 as _M, bz as SM, bA as OM, Y as l5, Z as hn, g7 as EM, av as Eb, e2 as AM, Q as c5, b_ as CM, b$ as TM, bX as yg, aa as MM, ay as PM, dS as DM, cf as NM, bE as Ab, c0 as $M, aZ as IM, eB as RM, g8 as jM, bF as LM, bG as BM, g9 as FM, bH as zM, ga as qM, gb as HM, eH as Cb } from "./registry-
|
|
4
|
+
import { U as wi, d1 as YC, K as fe, cY as F6, aS as XC, aR as JC, L as z6, P as Ci, a3 as $r, f9 as eo, fa as ZC, fb as QC, fc as eT, fd as vb, fe as gb, ff as bb, fg as xb, fh as kb, fi as q6, fj as yc, fk as tT, fl as nT, fm as iT, dP as df, fn as hl, fo as pl, fp as ai, fq as rT, fr as H6, b6 as Ye, fs as aT, ft as ts, a7 as Ee, fu as oT, fv as W6, fw as ug, fx as V6, fy as U6, fz as sT, fA as fT, fB as K6, fC as lT, fD as cT, fE as uT, fF as wd, fG as dT, fH as hT, fI as pT, fJ as mT, a6 as Sa, fK as yT, fL as vT, dp as gT, a8 as Zn, a9 as Qn, cQ as bT, cR as xT, cS as kT, cV as wT, fM as G6, _ as nn, bD as _T, M as Le, aH as ml, aq as ST, eX as Ut, bf as OT, bg as ET, a2 as dg, bh as AT, bl as CT, bi as TT, bj as wb, bn as _b, aK as Y6, bp as MT, bq as PT, bs as DT, bt as NT, N as _d, u as Ti, aB as X6, a0 as gn, R as nt, $ as $T, W as J6, aQ as IT, ak as hg, cy as RT, fN as Z6, fO as Sb, fP as jT, cD as LT, eu as BT, ev as FT, cv as zT, cw as qT, cx as HT, eR as WT, am as VT, eS as pg, c4 as hf, a4 as Q6, du as e5, bk as UT, fQ as KT, aN as t5, fR as GT, fS as YT, fT as n5, dM as yl, fU as Sd, fV as Od, dO as vl, ai as XT, aj as JT, dC as ZT, al as QT, c5 as mg, aM as Ob, er as eM, fW as tM, d$ as i5, dw as nM, fX as iM, fY as Vy, fZ as r5, f_ as a5, f$ as o5, g0 as rM, g1 as aM, g2 as oM, g3 as sM, dD as fM, dE as lM, dF as cM, ba as uM, dG as dM, b8 as hM, g4 as pM, dJ as mM, dL as yM, dK as vM, c2 as gM, dN as bM, g5 as xM, bY as s5, aG as f5, d2 as Uy, a1 as kM, b9 as wM, g6 as _M, bz as SM, bA as OM, Y as l5, Z as hn, g7 as EM, av as Eb, e2 as AM, Q as c5, b_ as CM, b$ as TM, bX as yg, aa as MM, ay as PM, dS as DM, cf as NM, bE as Ab, c0 as $M, aZ as IM, eB as RM, g8 as jM, bF as LM, bG as BM, g9 as FM, bH as zM, ga as qM, gb as HM, eH as Cb } from "./registry-Cfsd-zAT.js";
|
|
5
5
|
import vg from "react-dom";
|
|
6
6
|
import './index.css';const WM = {
|
|
7
7
|
active: !0,
|
|
@@ -199057,7 +199057,27 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199057
199057
|
onOpenChange: r
|
|
199058
199058
|
}
|
|
199059
199059
|
)
|
|
199060
|
-
] }),
|
|
199060
|
+
] }), Es = "border-0 border-r border-solid border-f1-border-secondary", UI2 = (e, t) => {
|
|
199061
|
+
const n = [];
|
|
199062
|
+
return e.forEach((r, a) => {
|
|
199063
|
+
const i = r.headerGroupId;
|
|
199064
|
+
if (!i) {
|
|
199065
|
+
n.push({
|
|
199066
|
+
type: "ungrouped",
|
|
199067
|
+
columnIndices: [a]
|
|
199068
|
+
});
|
|
199069
|
+
return;
|
|
199070
|
+
}
|
|
199071
|
+
const o = n[n.length - 1];
|
|
199072
|
+
o && o.type === "group" && o.id === i ? (o.colSpan++, o.columnIndices.push(a)) : n.push({
|
|
199073
|
+
colSpan: 1,
|
|
199074
|
+
id: i,
|
|
199075
|
+
type: "group",
|
|
199076
|
+
columnIndices: [a],
|
|
199077
|
+
label: t[i] ?? i
|
|
199078
|
+
});
|
|
199079
|
+
}), n;
|
|
199080
|
+
}, XI2 = (e, t) => Ee(() => !t || !e.some((r) => r.headerGroupId) ? null : UI2(e, t), [e, t]), Hme = (e, t, n) => {
|
|
199061
199081
|
const r = n ? 46 : 0;
|
|
199062
199082
|
return {
|
|
199063
199083
|
getStickyPosition: je(
|
|
@@ -199071,7 +199091,7 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199071
199091
|
),
|
|
199072
199092
|
checkColumnWidth: r
|
|
199073
199093
|
};
|
|
199074
|
-
},
|
|
199094
|
+
}, YI2 = (e, t) => {
|
|
199075
199095
|
const [n, r] = ve(null), [a, i] = ve(null), [o, s] = ve(0), l = Se(null), c = Se(null), d = je(
|
|
199076
199096
|
(h) => {
|
|
199077
199097
|
l.current = h, h && r(h);
|
|
@@ -199109,7 +199129,7 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199109
199129
|
b.disconnect(), M.disconnect();
|
|
199110
199130
|
};
|
|
199111
199131
|
}, [n, a, e]), { setFirstChildRef: d, setLastChildRef: f, calculatedHeight: o };
|
|
199112
|
-
}, Dme = W2(void 0),
|
|
199132
|
+
}, Dme = W2(void 0), qI2 = ({
|
|
199113
199133
|
children: e
|
|
199114
199134
|
}) => {
|
|
199115
199135
|
const [t, n] = ve({}), r = je(
|
|
@@ -199149,7 +199169,7 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199149
199169
|
"useNestedDataContext must be used within NestedDataProvider"
|
|
199150
199170
|
);
|
|
199151
199171
|
return e;
|
|
199152
|
-
},
|
|
199172
|
+
}, KI2 = (e) => e ? typeof e == "object" && "type" in e && e.type === "detailed" : !1, p3e = (e) => e ? Array.isArray(e) ? e : e.records : [], C3e = (e) => e && KI2(e) ? e?.type ?? "basic" : "basic", QI2 = ({
|
|
199153
199173
|
rowId: e,
|
|
199154
199174
|
item: t,
|
|
199155
199175
|
source: n,
|
|
@@ -199223,7 +199243,7 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199223
199243
|
childrenType: p,
|
|
199224
199244
|
paginationInfo: c
|
|
199225
199245
|
};
|
|
199226
|
-
},
|
|
199246
|
+
}, JI2 = (e, t) => {
|
|
199227
199247
|
const n = Se(null), r = e.rowRef?.current;
|
|
199228
199248
|
Gr(() => {
|
|
199229
199249
|
if (n.current && r) {
|
|
@@ -199253,7 +199273,7 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199253
199273
|
}
|
|
199254
199274
|
}
|
|
199255
199275
|
);
|
|
199256
|
-
}, Rme = W(
|
|
199276
|
+
}, Rme = W(JI2), eO2 = (e, t) => {
|
|
199257
199277
|
const n = e.addRowActions.map((r) => ({
|
|
199258
199278
|
label: r.label,
|
|
199259
199279
|
icon: r.icon,
|
|
@@ -199275,9 +199295,9 @@ const jI2 = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.select
|
|
|
199275
199295
|
}
|
|
199276
199296
|
}
|
|
199277
199297
|
);
|
|
199278
|
-
}, Ime = W(
|
|
199298
|
+
}, Ime = W(eO2);
|
|
199279
199299
|
Ime.displayName = "AddRowRow";
|
|
199280
|
-
const
|
|
199300
|
+
const tO2 = (e, t) => /* @__PURE__ */ u(
|
|
199281
199301
|
Rme,
|
|
199282
199302
|
{
|
|
199283
199303
|
...e,
|
|
@@ -199286,7 +199306,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199286
199306
|
onLoadMoreChildren: e.onLoadMoreChildren
|
|
199287
199307
|
}
|
|
199288
199308
|
}
|
|
199289
|
-
),
|
|
199309
|
+
), nO2 = W(tO2), rO2 = 5, aO2 = ({
|
|
199290
199310
|
rowRef: e,
|
|
199291
199311
|
rowIndex: t,
|
|
199292
199312
|
source: n,
|
|
@@ -199343,7 +199363,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199343
199363
|
},
|
|
199344
199364
|
`row-loading-${t}`
|
|
199345
199365
|
);
|
|
199346
|
-
},
|
|
199366
|
+
}, iO2 = W(aO2), oO2 = ({
|
|
199347
199367
|
rowRef: e,
|
|
199348
199368
|
...t
|
|
199349
199369
|
}, n) => {
|
|
@@ -199353,11 +199373,11 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199353
199373
|
}), a = t.paginationInfo ? t.paginationInfo.total ? Math.min(
|
|
199354
199374
|
t.paginationInfo.perPage,
|
|
199355
199375
|
t.paginationInfo.total - t.paginationInfo.currentPage * t.paginationInfo.perPage
|
|
199356
|
-
) : t.paginationInfo.perPage : void 0, i = r ?? a ??
|
|
199376
|
+
) : t.paginationInfo.perPage : void 0, i = r ?? a ?? rO2;
|
|
199357
199377
|
return /* @__PURE__ */ u(Tt, { children: Array.from({ length: i }).map((o, s) => {
|
|
199358
199378
|
const c = !(s === i - 1) || t.shouldHideBorder;
|
|
199359
199379
|
return /* @__PURE__ */ u(
|
|
199360
|
-
|
|
199380
|
+
iO2,
|
|
199361
199381
|
{
|
|
199362
199382
|
ref: n,
|
|
199363
199383
|
rowRef: e,
|
|
@@ -199368,15 +199388,15 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199368
199388
|
`row-loading-${s}`
|
|
199369
199389
|
);
|
|
199370
199390
|
}) });
|
|
199371
|
-
},
|
|
199391
|
+
}, sO2 = W(oO2), lO2 = (e) => e ? (Array.isArray(e) ? e : [e]).filter(
|
|
199372
199392
|
(t) => t !== void 0
|
|
199373
|
-
) : [],
|
|
199374
|
-
const n = Se(null), r = Sme(), a = `${e.nestedRowProps?.depth ?? 0}-${"id" in e.item ? e.item.id + "-" + e.index : e.index}`, { expandedRowIds: i, setRowExpanded: o } = Nme(), s = i[a] ?? !1, { children: l, loadChildren: c, isLoading: d, childrenType: f, paginationInfo: h } =
|
|
199393
|
+
) : [], cO2 = (e, t) => {
|
|
199394
|
+
const n = Se(null), r = Sme(), a = `${e.nestedRowProps?.depth ?? 0}-${"id" in e.item ? e.item.id + "-" + e.index : e.index}`, { expandedRowIds: i, setRowExpanded: o } = Nme(), s = i[a] ?? !1, { children: l, loadChildren: c, isLoading: d, childrenType: f, paginationInfo: h } = QI2({
|
|
199375
199395
|
rowId: a,
|
|
199376
199396
|
item: e.item,
|
|
199377
199397
|
source: e.source,
|
|
199378
199398
|
onClearFetchedData: () => o(a, !1)
|
|
199379
|
-
}), p = s && d, C = s, g = s && h?.hasMore, v = s ?
|
|
199399
|
+
}), p = s && d, C = s, g = s && h?.hasMore, v = s ? lO2(r?.addNestedRowActions?.(e.item)) : [], m = v.length > 0, { calculatedHeight: y, setFirstChildRef: w, setLastChildRef: b } = YI2(
|
|
199380
199400
|
f,
|
|
199381
199401
|
!!g || m
|
|
199382
199402
|
), x = je(
|
|
@@ -199487,7 +199507,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199487
199507
|
}
|
|
199488
199508
|
}),
|
|
199489
199509
|
p && /* @__PURE__ */ u(
|
|
199490
|
-
|
|
199510
|
+
sO2,
|
|
199491
199511
|
{
|
|
199492
199512
|
...e,
|
|
199493
199513
|
rowRef: n,
|
|
@@ -199501,7 +199521,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199501
199521
|
}
|
|
199502
199522
|
),
|
|
199503
199523
|
g && !d && /* @__PURE__ */ u(
|
|
199504
|
-
|
|
199524
|
+
nO2,
|
|
199505
199525
|
{
|
|
199506
199526
|
...e,
|
|
199507
199527
|
disableHover: !0,
|
|
@@ -199532,27 +199552,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
199532
199552
|
}
|
|
199533
199553
|
)
|
|
199534
199554
|
] });
|
|
199535
|
-
},
|
|
199536
|
-
const n = [];
|
|
199537
|
-
return e.forEach((r, a) => {
|
|
199538
|
-
const i = r.headerGroupId;
|
|
199539
|
-
if (!i) {
|
|
199540
|
-
n.push({
|
|
199541
|
-
type: "ungrouped",
|
|
199542
|
-
columnIndices: [a]
|
|
199543
|
-
});
|
|
199544
|
-
return;
|
|
199545
|
-
}
|
|
199546
|
-
const o = n[n.length - 1];
|
|
199547
|
-
o && o.type === "group" && o.id === i ? (o.colSpan++, o.columnIndices.push(a)) : n.push({
|
|
199548
|
-
colSpan: 1,
|
|
199549
|
-
id: i,
|
|
199550
|
-
type: "group",
|
|
199551
|
-
columnIndices: [a],
|
|
199552
|
-
label: t[i] ?? i
|
|
199553
|
-
});
|
|
199554
|
-
}), n;
|
|
199555
|
-
}, dO2 = (e, t) => Ee(() => !t || !e.some((r) => r.headerGroupId) ? null : uO2(e, t), [e, t]), fO2 = {
|
|
199555
|
+
}, uO2 = (e, t) => /* @__PURE__ */ u(dO2, { ...e, ref: t }), dO2 = W(cO2), Ome = W(uO2), fO2 = {
|
|
199556
199556
|
none: "",
|
|
199557
199557
|
striped: "bg-[repeating-linear-gradient(45deg,transparent_0px,transparent_8px,hsl(var(--neutral-20))_8px,hsl(var(--neutral-20))_9px)] [background-size:100%_100px]"
|
|
199558
199558
|
}, hO2 = ({
|
|
@@ -200078,7 +200078,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
200078
200078
|
Y,
|
|
200079
200079
|
x,
|
|
200080
200080
|
!!t.selectable
|
|
200081
|
-
), Lt =
|
|
200081
|
+
), Lt = XI2(x, c), jt = M?.records.some(
|
|
200082
200082
|
(_e) => t.itemsWithChildren?.(_e)
|
|
200083
200083
|
);
|
|
200084
200084
|
if (S)
|
|
@@ -200089,7 +200089,7 @@ const JI2 = (e, t) => /* @__PURE__ */ u(
|
|
|
200089
200089
|
);
|
|
200090
200090
|
});
|
|
200091
200091
|
const T2 = U.selectedCount > 0 || U.checked, C2 = !U.checked && U.unselectedCount === 0 && U.selectedCount > 0, Qe = !!t.allPagesSelection && !U.checked && k?.total !== void 0 && k.total > U.selectedCount, rt = x.length + (j ? 2 : 0), Le = U.selectedCount === 1 ? m.status.selected.singular : m.status.selected.plural;
|
|
200092
|
-
return /* @__PURE__ */ u("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ P(jt ?
|
|
200092
|
+
return /* @__PURE__ */ u("div", { className: "flex h-full min-h-0 flex-col gap-4", children: /* @__PURE__ */ P(jt ? qI2 : lo, { children: [
|
|
200093
200093
|
/* @__PURE__ */ P(f3e, { loading: I, children: [
|
|
200094
200094
|
/* @__PURE__ */ u(kme, { sticky: !0, children: T2 && t.selectable ? /* @__PURE__ */ P(N4, { children: [
|
|
200095
200095
|
/* @__PURE__ */ u(
|
|
@@ -200547,22 +200547,22 @@ function Sl({
|
|
|
200547
200547
|
readonly: e = !1,
|
|
200548
200548
|
showRightBorder: t = !0,
|
|
200549
200549
|
cursor: n = "text",
|
|
200550
|
-
|
|
200551
|
-
|
|
200550
|
+
isActive: r = !1,
|
|
200551
|
+
error: a,
|
|
200552
|
+
children: i
|
|
200552
200553
|
}) {
|
|
200553
200554
|
return /* @__PURE__ */ u(
|
|
200554
200555
|
"div",
|
|
200555
200556
|
{
|
|
200556
200557
|
className: ne(
|
|
200557
200558
|
"flex w-full h-full min-w-0 min-h-12 border-solid",
|
|
200559
|
+
"border-0 border-r-[1px] border-f1-border-secondary",
|
|
200560
|
+
!t && "border-r-0",
|
|
200558
200561
|
bO2[n],
|
|
200559
|
-
|
|
200560
|
-
"border-0 border-r-[1px] border-f1-border-secondary",
|
|
200561
|
-
!t && "border-r-0"
|
|
200562
|
-
),
|
|
200562
|
+
a ? "relative z-[1] border-r-0 bg-f1-background-critical/10 shadow-[inset_0_0_0_1px_hsl(var(--critical-50))]" : r ? "relative z-[1] border-r-0 bg-f1-background shadow-[inset_0_0_0_1px_hsl(var(--selected-50))]" : "shadow-none [&:not(:focus-within)]:hover:shadow-[inset_0_0_0_1px_hsl(var(--neutral-30))] focus-within:relative focus-within:z-[1] focus-within:border-r-0 focus-within:bg-f1-background focus-within:shadow-[inset_0_0_0_1px_hsl(var(--selected-50))]",
|
|
200563
200563
|
e && "bg-f1-background-secondary"
|
|
200564
200564
|
),
|
|
200565
|
-
children:
|
|
200565
|
+
children: a ? /* @__PURE__ */ u(LO2, { message: a, children: i }) : i
|
|
200566
200566
|
}
|
|
200567
200567
|
);
|
|
200568
200568
|
}
|
|
@@ -200625,27 +200625,28 @@ function _O2({
|
|
|
200625
200625
|
onChange: a,
|
|
200626
200626
|
item: i
|
|
200627
200627
|
}) {
|
|
200628
|
-
const o = wt(), s = e.selectConfig;
|
|
200629
|
-
if (!
|
|
200628
|
+
const o = wt(), [s, l] = ve(!1), c = e.selectConfig;
|
|
200629
|
+
if (!c)
|
|
200630
200630
|
return v3e.has(e.label) || (v3e.add(e.label), console.warn(
|
|
200631
200631
|
`SelectCell: column "${e.label}" has editType "select" but no selectConfig`
|
|
200632
200632
|
)), /* @__PURE__ */ u(Sl, { children: mp(i, e, "editableTable", o) });
|
|
200633
|
-
const
|
|
200633
|
+
const d = {
|
|
200634
200634
|
label: e.label,
|
|
200635
200635
|
hideLabel: !0,
|
|
200636
200636
|
value: t || void 0,
|
|
200637
|
-
onChange: (
|
|
200638
|
-
const
|
|
200639
|
-
|
|
200637
|
+
onChange: (h) => {
|
|
200638
|
+
const p = h ?? "";
|
|
200639
|
+
p !== t && a(p);
|
|
200640
200640
|
},
|
|
200641
200641
|
loading: r,
|
|
200642
200642
|
size: "sm",
|
|
200643
|
-
placeholder:
|
|
200644
|
-
showSearchBox:
|
|
200645
|
-
defaultItem:
|
|
200646
|
-
multiple: !1
|
|
200647
|
-
|
|
200648
|
-
|
|
200643
|
+
placeholder: c.placeholder,
|
|
200644
|
+
showSearchBox: c.showSearchBox,
|
|
200645
|
+
defaultItem: c.defaultItem?.(i),
|
|
200646
|
+
multiple: !1,
|
|
200647
|
+
onOpenChange: l
|
|
200648
|
+
}, f = c.clearable ? { clearable: !0 } : {};
|
|
200649
|
+
return /* @__PURE__ */ u(Sl, { error: n, isActive: s, children: /* @__PURE__ */ u(
|
|
200649
200650
|
"div",
|
|
200650
200651
|
{
|
|
200651
200652
|
className: ne(
|
|
@@ -200666,20 +200667,20 @@ function _O2({
|
|
|
200666
200667
|
"[&>div>button]:h-full",
|
|
200667
200668
|
e.align === "right" && "justify-end"
|
|
200668
200669
|
),
|
|
200669
|
-
children: "source" in
|
|
200670
|
+
children: "source" in c && c.source ? /* @__PURE__ */ u(
|
|
200670
200671
|
ll,
|
|
200671
200672
|
{
|
|
200672
|
-
...
|
|
200673
|
-
...
|
|
200674
|
-
source:
|
|
200675
|
-
mapOptions:
|
|
200673
|
+
...d,
|
|
200674
|
+
...f,
|
|
200675
|
+
source: c.source,
|
|
200676
|
+
mapOptions: c.mapOptions
|
|
200676
200677
|
}
|
|
200677
200678
|
) : /* @__PURE__ */ u(
|
|
200678
200679
|
ll,
|
|
200679
200680
|
{
|
|
200680
|
-
...
|
|
200681
|
-
...
|
|
200682
|
-
options: typeof
|
|
200681
|
+
...d,
|
|
200682
|
+
...f,
|
|
200683
|
+
options: typeof c.options == "function" ? c.options(i) : c.options
|
|
200683
200684
|
}
|
|
200684
200685
|
)
|
|
200685
200686
|
}
|