@factorialco/f0-react 11.3.0 → 11.3.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/{ChatPostComposerDialog-CBWrYzr5.js → ChatPostComposerDialog-CQpgcDlu.js} +2 -2
- package/dist/{CoachmarkProvider-DcDGwL4O.js → CoachmarkProvider-bQjMZ8Xd.js} +3 -3
- package/dist/{DocumentToolbar-Dibdy0XD.js → DocumentToolbar-DYb93j3S.js} +3 -3
- package/dist/{DocxViewer-D4R37ej-.js → DocxViewer-EfCHhhVh.js} +1 -1
- package/dist/{F0AiProcessingOverlay-DMiGnFsb.js → F0AiProcessingOverlay-DKVTZ7H9.js} +2 -2
- package/dist/{F0CanvasPanel-BwTjB_ef.js → F0CanvasPanel-D_By9mGX.js} +4 -4
- package/dist/F0DocumentViewer-fhtcwv4U.js +3 -0
- package/dist/{F0DocumentViewer-CBDtqTP1.js → F0DocumentViewer-n9KsIs_s.js} +4 -4
- package/dist/{F0Map-RAwqH-Mv.js → F0Map-OwKbbIMd.js} +3 -3
- package/dist/{F0Select-DSKdq9ZK.js → F0Select-qAx5mUYo.js} +277 -255
- package/dist/{F0VideoPlayer-BXkn2HYD.js → F0VideoPlayer-0HBjDANt.js} +1 -1
- package/dist/F0VideoPlayer-D7A_Ahmb.js +1 -0
- package/dist/{Map-BNZxJwoz.js → Map-YKcljPKV.js} +3 -3
- package/dist/{PdfThumbnail-CcphMSG_.js → PdfThumbnail-DHvw4vZZ.js} +1 -1
- package/dist/{SheetViewer-Dfb0hEj5.js → SheetViewer-DyBQHE1G.js} +3 -3
- package/dist/{TextViewer-D0aQleNb.js → TextViewer-jvjvPZ2v.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +5 -5
- package/dist/f0.js +7 -7
- package/dist/{maplibre-DUpIL8o7.js → maplibre-CV6XExqI.js} +1 -1
- package/dist/{pdfWorker-BrM0bRsr.js → pdfWorker-35KLzGK-.js} +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-vZ5QrV_0.js +0 -3
- package/dist/F0VideoPlayer-B96rE7Un.js +0 -1
|
@@ -56846,7 +56846,7 @@ var CF = /^\+\d{1,4}$/, wF = /* @__PURE__ */ new Set(), TF = (e) => e.type === "
|
|
|
56846
56846
|
className: "flex items-end gap-2",
|
|
56847
56847
|
children: [/* @__PURE__ */ U("div", {
|
|
56848
56848
|
className: "shrink grow [&_button]:h-8 [&_button]:rounded",
|
|
56849
|
-
children: /* @__PURE__ */ U(
|
|
56849
|
+
children: /* @__PURE__ */ U(RL, {
|
|
56850
56850
|
label: i.collections.grouping.groupBy,
|
|
56851
56851
|
options: a,
|
|
56852
56852
|
hideLabel: r,
|
|
@@ -57047,7 +57047,7 @@ function VF({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US
|
|
|
57047
57047
|
className: "flex min-w-0 items-center gap-1",
|
|
57048
57048
|
children: [n ? /* @__PURE__ */ U("div", {
|
|
57049
57049
|
className: o ? "w-[5.5rem]" : "w-[8.5rem]",
|
|
57050
|
-
children: /* @__PURE__ */ U(
|
|
57050
|
+
children: /* @__PURE__ */ U(RL, {
|
|
57051
57051
|
size: "sm",
|
|
57052
57052
|
label: s.date.selectMonth,
|
|
57053
57053
|
hideLabel: !0,
|
|
@@ -57061,7 +57061,7 @@ function VF({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US
|
|
|
57061
57061
|
})
|
|
57062
57062
|
}) : null, /* @__PURE__ */ U("div", {
|
|
57063
57063
|
className: o ? "w-[5.5rem]" : "w-[6rem]",
|
|
57064
|
-
children: /* @__PURE__ */ U(
|
|
57064
|
+
children: /* @__PURE__ */ U(RL, {
|
|
57065
57065
|
size: "sm",
|
|
57066
57066
|
label: s.date.selectYear,
|
|
57067
57067
|
hideLabel: !0,
|
|
@@ -57531,27 +57531,41 @@ function gI({ schema: e, search: t }) {
|
|
|
57531
57531
|
function _I(e, t) {
|
|
57532
57532
|
return e.label.toLowerCase().includes(t) ? !0 : e.children ? e.children.options.some((e) => _I(e, t)) : !1;
|
|
57533
57533
|
}
|
|
57534
|
-
function vI(e, t) {
|
|
57534
|
+
function vI(e, t, n = !1) {
|
|
57535
|
+
let r = e.children?.options ?? [];
|
|
57536
|
+
if (!t) return {
|
|
57537
|
+
subtreeMatchesSearch: !1,
|
|
57538
|
+
visibleChildren: r,
|
|
57539
|
+
hasMatchingChild: !1
|
|
57540
|
+
};
|
|
57541
|
+
let i = n || e.label.toLowerCase().includes(t), a = r.filter((e) => _I(e, t));
|
|
57542
|
+
return {
|
|
57543
|
+
subtreeMatchesSearch: i,
|
|
57544
|
+
visibleChildren: i ? r : a,
|
|
57545
|
+
hasMatchingChild: a.length > 0
|
|
57546
|
+
};
|
|
57547
|
+
}
|
|
57548
|
+
function yI(e, t) {
|
|
57535
57549
|
if (!e.children || !t) return !1;
|
|
57536
57550
|
let { filterKey: n, options: r } = e.children, i = t[n] ?? [];
|
|
57537
|
-
for (let e of r) if (i.includes(e.value) ||
|
|
57551
|
+
for (let e of r) if (i.includes(e.value) || yI(e, t)) return !0;
|
|
57538
57552
|
return !1;
|
|
57539
57553
|
}
|
|
57540
|
-
function
|
|
57554
|
+
function bI(e) {
|
|
57541
57555
|
let t = /* @__PURE__ */ new Set();
|
|
57542
57556
|
function n(e) {
|
|
57543
57557
|
for (let r of e) r.children && (t.add(r.children.filterKey), n(r.children.options));
|
|
57544
57558
|
}
|
|
57545
57559
|
return n(e ?? []), [...t];
|
|
57546
57560
|
}
|
|
57547
|
-
function
|
|
57561
|
+
function xI(e) {
|
|
57548
57562
|
let t = e.options, n = new Set(t.nestedFilterKeys ?? []), r = "options" in t && Array.isArray(t.options) ? t.options : void 0;
|
|
57549
|
-
for (let e of
|
|
57563
|
+
for (let e of bI(r)) n.add(e);
|
|
57550
57564
|
return [...n];
|
|
57551
57565
|
}
|
|
57552
57566
|
//#endregion
|
|
57553
57567
|
//#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterOptionRow.tsx
|
|
57554
|
-
var
|
|
57568
|
+
var SI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
57555
57569
|
let i = he(), a = n ? `${e}. ${i.status.selected.singular}` : e;
|
|
57556
57570
|
return /* @__PURE__ */ W("div", {
|
|
57557
57571
|
className: "relative shrink-0",
|
|
@@ -57570,40 +57584,45 @@ var xI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
57570
57584
|
}) : null]
|
|
57571
57585
|
});
|
|
57572
57586
|
};
|
|
57573
|
-
function
|
|
57574
|
-
let [
|
|
57575
|
-
|
|
57576
|
-
|
|
57587
|
+
function CI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i, onFilterChange: a, allFiltersValue: o, cacheKey: s, searchTerm: c, searchRevision: l, ancestorMatchesSearch: u = !1, disabled: d }) {
|
|
57588
|
+
let [f, p] = H(!1), [m, h] = H(null), g = he(), _ = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: v, visibleChildren: y, hasMatchingChild: b } = vI(e, c, u), x = m?.revision === l ? m.expanded : b, S = c ? x : f, C = () => {
|
|
57589
|
+
c ? h({
|
|
57590
|
+
revision: l,
|
|
57591
|
+
expanded: !S
|
|
57592
|
+
}) : p((e) => !e);
|
|
57593
|
+
}, w = e.children?.filterKey, T = w && o ? o[w] ?? [] : [], E = R((t, n) => {
|
|
57594
|
+
if (!w || !a) return;
|
|
57595
|
+
let r = T.includes(t);
|
|
57577
57596
|
if (!r) {
|
|
57578
57597
|
dI(s, t, n);
|
|
57579
57598
|
let r = `${e.label} > ${n}`;
|
|
57580
|
-
pI(
|
|
57599
|
+
pI(w, t, r);
|
|
57581
57600
|
}
|
|
57582
|
-
let i = r ?
|
|
57583
|
-
a(
|
|
57601
|
+
let i = r ? T.filter((e) => e !== t) : [...T, t];
|
|
57602
|
+
a(w, i);
|
|
57584
57603
|
}, [
|
|
57585
|
-
|
|
57586
|
-
|
|
57604
|
+
w,
|
|
57605
|
+
T,
|
|
57587
57606
|
a,
|
|
57588
57607
|
s,
|
|
57589
57608
|
e.label
|
|
57590
|
-
]),
|
|
57609
|
+
]), D = _ && yI(e, o), O = g.t(S ? "actions.collapseItem" : "actions.expandItem", { title: e.label });
|
|
57591
57610
|
return /* @__PURE__ */ W("div", {
|
|
57592
57611
|
className: P("w-full", i === 0 && !r && "px-2", i === 0 && "border-0 border-b border-solid border-f1-border-secondary last:border-b-0"),
|
|
57593
57612
|
children: [/* @__PURE__ */ W("div", {
|
|
57594
57613
|
className: "flex flex-row items-center overflow-hidden min-w-0",
|
|
57595
57614
|
style: { paddingLeft: `${i * 24}px` },
|
|
57596
|
-
children: [
|
|
57597
|
-
label:
|
|
57598
|
-
expanded:
|
|
57599
|
-
hasSelectedDescendant:
|
|
57600
|
-
onToggle:
|
|
57615
|
+
children: [_ ? /* @__PURE__ */ U(SI, {
|
|
57616
|
+
label: O,
|
|
57617
|
+
expanded: S,
|
|
57618
|
+
hasSelectedDescendant: D,
|
|
57619
|
+
onToggle: C
|
|
57601
57620
|
}) : null, /* @__PURE__ */ U("div", {
|
|
57602
|
-
className: P("flex min-w-0 flex-1 cursor-pointer appearance-none items-center gap-1 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary", r && "py-1 pr-1",
|
|
57603
|
-
"aria-disabled":
|
|
57621
|
+
className: P("flex min-w-0 flex-1 cursor-pointer appearance-none items-center gap-1 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary", r && "py-1 pr-1", d && "cursor-not-allowed text-f1-foreground-secondary hover:bg-transparent", F()),
|
|
57622
|
+
"aria-disabled": d || void 0,
|
|
57604
57623
|
children: /* @__PURE__ */ W("div", {
|
|
57605
57624
|
className: "flex min-w-0 flex-1 items-center justify-between gap-1",
|
|
57606
|
-
onClick:
|
|
57625
|
+
onClick: d ? void 0 : n,
|
|
57607
57626
|
children: [/* @__PURE__ */ U("span", {
|
|
57608
57627
|
className: "min-w-0 flex-1",
|
|
57609
57628
|
children: /* @__PURE__ */ U(Te, { children: e.label })
|
|
@@ -57611,30 +57630,31 @@ function SI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
57611
57630
|
label: e.label,
|
|
57612
57631
|
isSelected: t,
|
|
57613
57632
|
onToggle: n,
|
|
57614
|
-
disabled:
|
|
57633
|
+
disabled: d
|
|
57615
57634
|
})]
|
|
57616
57635
|
})
|
|
57617
57636
|
})]
|
|
57618
|
-
}),
|
|
57619
|
-
let t =
|
|
57620
|
-
return /* @__PURE__ */ U(
|
|
57637
|
+
}), S && _ ? /* @__PURE__ */ U("div", { children: y.map((e) => {
|
|
57638
|
+
let t = T.includes(e.value);
|
|
57639
|
+
return /* @__PURE__ */ U(CI, {
|
|
57621
57640
|
option: e,
|
|
57622
57641
|
isSelected: t,
|
|
57623
|
-
onToggle: () =>
|
|
57642
|
+
onToggle: () => E(e.value, e.label),
|
|
57624
57643
|
isCompactMode: r,
|
|
57625
57644
|
depth: i + 1,
|
|
57626
57645
|
onFilterChange: a,
|
|
57627
57646
|
allFiltersValue: o,
|
|
57628
57647
|
cacheKey: s,
|
|
57629
57648
|
searchTerm: c,
|
|
57630
|
-
|
|
57649
|
+
searchRevision: l,
|
|
57650
|
+
ancestorMatchesSearch: v
|
|
57631
57651
|
}, String(e.value));
|
|
57632
57652
|
}) }) : null]
|
|
57633
57653
|
});
|
|
57634
57654
|
}
|
|
57635
57655
|
//#endregion
|
|
57636
57656
|
//#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterSelectionHeader.tsx
|
|
57637
|
-
function
|
|
57657
|
+
function wI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSelected: r, isIndeterminate: i, isCompactMode: a, onCheckedChange: o }) {
|
|
57638
57658
|
let s = he(), c = a ? "px-2" : "px-3.5", l = n !== void 0, u = t > 0, d = l && e >= n, f = l ? s.t("filters.inFilter.selectedOfMax", {
|
|
57639
57659
|
count: e,
|
|
57640
57660
|
max: n
|
|
@@ -57670,7 +57690,7 @@ function CI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSel
|
|
|
57670
57690
|
}
|
|
57671
57691
|
//#endregion
|
|
57672
57692
|
//#region src/blocks/OneFilterPicker/filterTypes/InFilter/InFilter.tsx
|
|
57673
|
-
var
|
|
57693
|
+
var TI = ({ isLoading: e, error: t, optionCount: n, hasSource: r }) => e && n === 0 ? "loading" : t ? "error" : n === 0 && !r ? "empty" : null, EI = ({ state: e, onRetry: t }) => {
|
|
57674
57694
|
let n = he();
|
|
57675
57695
|
return e === "loading" ? /* @__PURE__ */ U("div", {
|
|
57676
57696
|
className: "flex w-full items-center justify-center py-4",
|
|
@@ -57690,129 +57710,131 @@ var wI = ({ isLoading: e, error: t, optionCount: n, hasSource: r }) => e && n ==
|
|
|
57690
57710
|
children: "No options available"
|
|
57691
57711
|
});
|
|
57692
57712
|
};
|
|
57693
|
-
function
|
|
57694
|
-
let o = he(), [s, c] = H(""), l =
|
|
57713
|
+
function DI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange: i, allFiltersValue: a }) {
|
|
57714
|
+
let o = he(), [s, c] = H(""), [l, u] = H(0), d = (e) => {
|
|
57715
|
+
c(e), u((e) => e + 1);
|
|
57716
|
+
}, f = V(!0), { options: p, isLoading: m, error: h, loadOptions: g, loadMore: _ } = gI({
|
|
57695
57717
|
schema: {
|
|
57696
57718
|
...e,
|
|
57697
57719
|
type: "in"
|
|
57698
57720
|
},
|
|
57699
57721
|
search: s
|
|
57700
|
-
}),
|
|
57722
|
+
}), v = uI(e);
|
|
57701
57723
|
z(() => {
|
|
57702
|
-
if (!a || !
|
|
57724
|
+
if (!a || !p.length) return;
|
|
57703
57725
|
let e = (t) => {
|
|
57704
57726
|
for (let n of t) if (n.children) {
|
|
57705
57727
|
let { filterKey: t, options: r } = n.children, i = a[t] ?? [];
|
|
57706
57728
|
for (let a of r) {
|
|
57707
57729
|
if (i.includes(a.value)) {
|
|
57708
57730
|
let e = `${n.label} > ${a.label}`;
|
|
57709
|
-
pI(t, a.value, e), dI(
|
|
57731
|
+
pI(t, a.value, e), dI(v, a.value, a.label);
|
|
57710
57732
|
}
|
|
57711
57733
|
a.children && e([a]);
|
|
57712
57734
|
}
|
|
57713
57735
|
}
|
|
57714
57736
|
};
|
|
57715
|
-
e(
|
|
57737
|
+
e(p);
|
|
57716
57738
|
}, [
|
|
57717
|
-
|
|
57739
|
+
p,
|
|
57718
57740
|
a,
|
|
57719
|
-
|
|
57741
|
+
v
|
|
57720
57742
|
]), z(() => {
|
|
57721
57743
|
let e;
|
|
57722
|
-
return
|
|
57723
|
-
|
|
57744
|
+
return m ? f.current = !1 : e = setTimeout(() => {
|
|
57745
|
+
f.current = !0;
|
|
57724
57746
|
}, 1e3), () => clearTimeout(e);
|
|
57725
|
-
}, [
|
|
57726
|
-
let
|
|
57747
|
+
}, [m]);
|
|
57748
|
+
let y = "source" in e.options;
|
|
57727
57749
|
z(() => {
|
|
57728
57750
|
c("");
|
|
57729
57751
|
}, [e]);
|
|
57730
|
-
let
|
|
57731
|
-
|
|
57732
|
-
|
|
57733
|
-
|
|
57734
|
-
]),
|
|
57752
|
+
let b = s.toLowerCase(), x = B(() => y ? p : p.filter((e) => _I(e, b)), [
|
|
57753
|
+
y,
|
|
57754
|
+
p,
|
|
57755
|
+
b
|
|
57756
|
+
]), S = B(() => [.../* @__PURE__ */ new Set([...xI(e), ...bI(p)])], [e, p]), C = B(() => S.reduce((e, t) => {
|
|
57735
57757
|
let n = a?.[t];
|
|
57736
57758
|
return e + (Array.isArray(n) ? n.length : 0);
|
|
57737
|
-
}, 0), [
|
|
57738
|
-
isLoading:
|
|
57739
|
-
error:
|
|
57740
|
-
optionCount:
|
|
57741
|
-
hasSource:
|
|
57759
|
+
}, 0), [S, a]), w = C > 0, T = TI({
|
|
57760
|
+
isLoading: m,
|
|
57761
|
+
error: h,
|
|
57762
|
+
optionCount: p.length,
|
|
57763
|
+
hasSource: y
|
|
57742
57764
|
});
|
|
57743
|
-
if (
|
|
57744
|
-
state:
|
|
57745
|
-
onRetry: () =>
|
|
57765
|
+
if (T) return /* @__PURE__ */ U(EI, {
|
|
57766
|
+
state: T,
|
|
57767
|
+
onRetry: () => g(!0)
|
|
57746
57768
|
});
|
|
57747
|
-
let
|
|
57769
|
+
let E = p.length > 0 || y, D = e.options.maxSelected, O = D !== void 0, k = O && t.length >= D, ee = x.length > 0 && x.every((e) => t.includes(e.value)), te = (t.length > 0 || w) && !ee, A = () => {
|
|
57748
57770
|
let e = [...t ?? []];
|
|
57749
|
-
|
|
57750
|
-
e.includes(t.value) || (e.push(t.value), dI(
|
|
57771
|
+
x.forEach((t) => {
|
|
57772
|
+
e.includes(t.value) || (e.push(t.value), dI(v, t.value, t.label));
|
|
57751
57773
|
}), n(e);
|
|
57752
|
-
},
|
|
57753
|
-
n([]), i &&
|
|
57774
|
+
}, j = () => {
|
|
57775
|
+
n([]), i && S.forEach((e) => {
|
|
57754
57776
|
i(e, []);
|
|
57755
57777
|
});
|
|
57756
|
-
},
|
|
57757
|
-
|
|
57758
|
-
},
|
|
57759
|
-
!
|
|
57760
|
-
},
|
|
57778
|
+
}, ne = (e) => {
|
|
57779
|
+
O || te ? j() : e ? A() : j();
|
|
57780
|
+
}, re = () => {
|
|
57781
|
+
!m && _ && f.current && _();
|
|
57782
|
+
}, ie = (e, r) => {
|
|
57761
57783
|
let i = t.includes(e);
|
|
57762
|
-
(i || !
|
|
57763
|
-
},
|
|
57784
|
+
(i || !k) && (i || dI(v, e, r), n(i ? t.filter((t) => t !== e) : [...t, e]));
|
|
57785
|
+
}, M = t.length + C, ae = x.some((e) => !!e.children?.options.length);
|
|
57764
57786
|
return /* @__PURE__ */ W("div", {
|
|
57765
57787
|
className: "flex max-h-full w-full flex-col flex-1 min-h-0",
|
|
57766
57788
|
role: "group",
|
|
57767
57789
|
"aria-label": e.label,
|
|
57768
57790
|
children: [
|
|
57769
|
-
|
|
57791
|
+
E ? /* @__PURE__ */ U("div", {
|
|
57770
57792
|
className: "rounded-tr-xl p-2",
|
|
57771
57793
|
children: /* @__PURE__ */ U(rI, {
|
|
57772
57794
|
placeholder: o.filters.inFilter.searchPlaceholder,
|
|
57773
57795
|
value: s,
|
|
57774
|
-
onChange:
|
|
57796
|
+
onChange: d,
|
|
57775
57797
|
clearable: !0
|
|
57776
57798
|
})
|
|
57777
57799
|
}) : null,
|
|
57778
|
-
/* @__PURE__ */ U(
|
|
57800
|
+
/* @__PURE__ */ U(wI, {
|
|
57779
57801
|
selectedCount: t.length,
|
|
57780
|
-
totalSelected:
|
|
57781
|
-
maxSelected:
|
|
57782
|
-
allFilteredSelected:
|
|
57783
|
-
isIndeterminate:
|
|
57802
|
+
totalSelected: M,
|
|
57803
|
+
maxSelected: D,
|
|
57804
|
+
allFilteredSelected: ee,
|
|
57805
|
+
isIndeterminate: te,
|
|
57784
57806
|
isCompactMode: r,
|
|
57785
|
-
onCheckedChange:
|
|
57807
|
+
onCheckedChange: ne
|
|
57786
57808
|
}),
|
|
57787
57809
|
/* @__PURE__ */ W(Ue, {
|
|
57788
57810
|
className: P("[&>div]:pb-2", r && "px-1", r ? "max-h-[360px]" : "flex-1 min-h-0"),
|
|
57789
|
-
onScrollBottom:
|
|
57811
|
+
onScrollBottom: re,
|
|
57790
57812
|
scrollMargin: 50,
|
|
57791
57813
|
children: [
|
|
57792
|
-
|
|
57814
|
+
x.length === 0 && !m ? /* @__PURE__ */ U("div", {
|
|
57793
57815
|
className: "flex w-full items-center justify-center py-4 text-sm text-f1-foreground-secondary",
|
|
57794
57816
|
children: o.select.noResults
|
|
57795
57817
|
}) : null,
|
|
57796
|
-
|
|
57818
|
+
ae ? x.map((e) => /* @__PURE__ */ U(CI, {
|
|
57797
57819
|
option: e,
|
|
57798
57820
|
isSelected: t.includes(e.value),
|
|
57799
|
-
onToggle: () =>
|
|
57800
|
-
disabled:
|
|
57821
|
+
onToggle: () => ie(e.value, e.label),
|
|
57822
|
+
disabled: k && !t.includes(e.value),
|
|
57801
57823
|
isCompactMode: r,
|
|
57802
57824
|
depth: 0,
|
|
57803
57825
|
onFilterChange: i,
|
|
57804
57826
|
allFiltersValue: a,
|
|
57805
|
-
cacheKey:
|
|
57806
|
-
searchTerm:
|
|
57807
|
-
|
|
57808
|
-
}, String(e.value))) :
|
|
57827
|
+
cacheKey: v,
|
|
57828
|
+
searchTerm: b,
|
|
57829
|
+
searchRevision: l
|
|
57830
|
+
}, String(e.value))) : x.map((e) => /* @__PURE__ */ U(oI, {
|
|
57809
57831
|
option: e,
|
|
57810
57832
|
isSelected: t.includes(e.value),
|
|
57811
|
-
onToggle: () =>
|
|
57812
|
-
disabled:
|
|
57833
|
+
onToggle: () => ie(e.value, e.label),
|
|
57834
|
+
disabled: k && !t.includes(e.value),
|
|
57813
57835
|
isCompactMode: r
|
|
57814
57836
|
}, String(e.value))),
|
|
57815
|
-
|
|
57837
|
+
m ? /* @__PURE__ */ U("div", {
|
|
57816
57838
|
className: "flex w-full items-center justify-center py-4",
|
|
57817
57839
|
children: /* @__PURE__ */ U(ow, { size: "small" })
|
|
57818
57840
|
}) : null
|
|
@@ -57823,10 +57845,10 @@ function EI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
57823
57845
|
}
|
|
57824
57846
|
//#endregion
|
|
57825
57847
|
//#region src/blocks/OneFilterPicker/filterTypes/InFilter/definition.tsx
|
|
57826
|
-
var
|
|
57848
|
+
var OI = {
|
|
57827
57849
|
emptyValue: [],
|
|
57828
57850
|
isEmpty: (e) => (e || []).length === 0,
|
|
57829
|
-
render: (e) => /* @__PURE__ */ U(
|
|
57851
|
+
render: (e) => /* @__PURE__ */ U(DI, { ...e }),
|
|
57830
57852
|
chipLabel: async (e, { schema: t, filterKey: n }) => {
|
|
57831
57853
|
let r = uI(t);
|
|
57832
57854
|
if (n) {
|
|
@@ -57868,7 +57890,7 @@ var DI = {
|
|
|
57868
57890
|
};
|
|
57869
57891
|
//#endregion
|
|
57870
57892
|
//#region src/blocks/Fields/Switch/Switch.tsx
|
|
57871
|
-
function
|
|
57893
|
+
function kI({ title: e, onCheckedChange: t, id: n, disabled: r, checked: i = !1, value: a, hideLabel: o = !1, presentational: s = !1, required: c = !1, ...l }) {
|
|
57872
57894
|
return /* @__PURE__ */ U(Ds, {
|
|
57873
57895
|
title: e,
|
|
57874
57896
|
onCheckedChange: t,
|
|
@@ -57882,7 +57904,7 @@ function OI({ title: e, onCheckedChange: t, id: n, disabled: r, checked: i = !1,
|
|
|
57882
57904
|
...l
|
|
57883
57905
|
});
|
|
57884
57906
|
}
|
|
57885
|
-
var
|
|
57907
|
+
var AI = ge("Switch", kI), jI = ({ onClickArrow: e, step: t, disabled: n }) => !t || n ? null : /* @__PURE__ */ W("div", {
|
|
57886
57908
|
className: "-mt-1 hidden h-full flex-col group-focus-within:flex group-hover:flex",
|
|
57887
57909
|
onClick: (e) => e.preventDefault(),
|
|
57888
57910
|
onMouseDown: (e) => e.preventDefault(),
|
|
@@ -57905,13 +57927,13 @@ var kI = ge("Switch", OI), AI = ({ onClickArrow: e, step: t, disabled: n }) => !
|
|
|
57905
57927
|
icon: ds
|
|
57906
57928
|
})
|
|
57907
57929
|
})]
|
|
57908
|
-
}),
|
|
57909
|
-
function
|
|
57930
|
+
}), MI = /^(-?)(\d+)?(?:([\.,])(\d+)?)?$/;
|
|
57931
|
+
function NI(e, { maxDecimals: t }) {
|
|
57910
57932
|
if (!e || e === "-") return {
|
|
57911
57933
|
formattedValue: e ?? "",
|
|
57912
57934
|
value: null
|
|
57913
57935
|
};
|
|
57914
|
-
let n = e.match(
|
|
57936
|
+
let n = e.match(MI);
|
|
57915
57937
|
if (!n) return null;
|
|
57916
57938
|
let [r, i, a, o, s] = n;
|
|
57917
57939
|
t && (s?.length ?? 0) > t ? s = s?.slice(0, t) : t === 0 && (s = ""), a = a?.replace(/^0+(\d)/, (e, t) => t) ?? "";
|
|
@@ -57923,28 +57945,28 @@ function MI(e, { maxDecimals: t }) {
|
|
|
57923
57945
|
}
|
|
57924
57946
|
//#endregion
|
|
57925
57947
|
//#region src/elements/F0NumberInput/internal.tsx
|
|
57926
|
-
var
|
|
57948
|
+
var PI = (e, t, n, r = !1) => new Intl.NumberFormat(t, {
|
|
57927
57949
|
maximumFractionDigits: n,
|
|
57928
57950
|
useGrouping: r
|
|
57929
|
-
}).format(e),
|
|
57951
|
+
}).format(e), FI = (e, t, { maxDecimals: n, grouping: r = !1, units: i } = {}) => {
|
|
57930
57952
|
if (e == null) return "";
|
|
57931
|
-
let a =
|
|
57953
|
+
let a = PI(e, t, n, r);
|
|
57932
57954
|
return i ? `${a} ${i}` : a;
|
|
57933
|
-
},
|
|
57955
|
+
}, II = (e, t, n) => {
|
|
57934
57956
|
if (t != null && n != null) return e.t("numberInput.between", {
|
|
57935
57957
|
min: t,
|
|
57936
57958
|
max: n
|
|
57937
57959
|
});
|
|
57938
57960
|
if (t != null) return e.t("numberInput.greaterThan", { min: t });
|
|
57939
57961
|
if (n != null) return e.t("numberInput.lessThan", { max: n });
|
|
57940
|
-
},
|
|
57962
|
+
}, LI = (e, { hint: t, min: n, max: r, inline: i }) => t ?? (i ? void 0 : II(e, n, r)), RI = (e, t, n) => (r) => {
|
|
57941
57963
|
e && r.key === "Enter" && r.preventDefault();
|
|
57942
57964
|
let i = {
|
|
57943
57965
|
Enter: t,
|
|
57944
57966
|
Escape: n
|
|
57945
57967
|
}[r.key];
|
|
57946
57968
|
i?.();
|
|
57947
|
-
},
|
|
57969
|
+
}, zI = (e, t, n) => {
|
|
57948
57970
|
if (t) return {
|
|
57949
57971
|
type: "error",
|
|
57950
57972
|
message: typeof t == "string" ? t : void 0
|
|
@@ -57955,7 +57977,7 @@ var NI = (e, t, n, r = !1) => new Intl.NumberFormat(t, {
|
|
|
57955
57977
|
};
|
|
57956
57978
|
if (n) return n;
|
|
57957
57979
|
};
|
|
57958
|
-
function
|
|
57980
|
+
function BI({ label: e, htmlFor: t, disabled: n }) {
|
|
57959
57981
|
return /* @__PURE__ */ U(_M, {
|
|
57960
57982
|
label: e,
|
|
57961
57983
|
htmlFor: t,
|
|
@@ -57963,16 +57985,16 @@ function zI({ label: e, htmlFor: t, disabled: n }) {
|
|
|
57963
57985
|
className: "mb-2"
|
|
57964
57986
|
});
|
|
57965
57987
|
}
|
|
57966
|
-
function
|
|
57988
|
+
function VI(e) {
|
|
57967
57989
|
if (e && e !== "auto") return { width: e };
|
|
57968
57990
|
}
|
|
57969
|
-
function
|
|
57991
|
+
function HI({ children: e, extraContent: t, inputWidth: n, trailingAction: r }) {
|
|
57970
57992
|
let i = !n || n === "auto";
|
|
57971
57993
|
return /* @__PURE__ */ W("div", {
|
|
57972
57994
|
className: "flex flex-wrap items-center gap-3",
|
|
57973
57995
|
children: [
|
|
57974
57996
|
/* @__PURE__ */ U("div", {
|
|
57975
|
-
style:
|
|
57997
|
+
style: VI(n),
|
|
57976
57998
|
className: P(i ? "w-auto" : void 0),
|
|
57977
57999
|
children: e
|
|
57978
58000
|
}),
|
|
@@ -57984,12 +58006,12 @@ function VI({ children: e, extraContent: t, inputWidth: n, trailingAction: r })
|
|
|
57984
58006
|
]
|
|
57985
58007
|
});
|
|
57986
58008
|
}
|
|
57987
|
-
var
|
|
58009
|
+
var UI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i = !1, step: a, min: o, max: s, onChange: c, units: l, extraContent: u, inputWidth: d, popover: f, label: p, hint: m, error: h, status: g, hideLabel: _ = !1, disabled: v, readonly: y, loading: b, onBlur: x, variant: C, editing: w = !1, onBlurWithin: T, onPressEnter: D, onPressEscape: O, ...k }, ee) {
|
|
57988
58010
|
let te = he(), A = it(), j = t ?? A, [ne, re] = pe({
|
|
57989
58011
|
prop: f?.open,
|
|
57990
58012
|
defaultProp: !1,
|
|
57991
58013
|
onChange: f?.onOpenChange
|
|
57992
|
-
}), [M, ae] = H(!1), [oe, N] = H(() => n == null ? "" :
|
|
58014
|
+
}), [M, ae] = H(!1), [oe, N] = H(() => n == null ? "" : PI(n, e, r, i)), [se, ce] = H(n ?? null), le = C === "inline", ue = B(() => LI(te, {
|
|
57993
58015
|
hint: m,
|
|
57994
58016
|
min: o,
|
|
57995
58017
|
max: s,
|
|
@@ -57999,7 +58021,7 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
57999
58021
|
o,
|
|
58000
58022
|
s,
|
|
58001
58023
|
le
|
|
58002
|
-
]), de = !!u, fe = f?.commitMode === "deferred", me = f !== void 0 || de, ge = !_ && p != null, _e =
|
|
58024
|
+
]), de = !!u, fe = f?.commitMode === "deferred", me = f !== void 0 || de, ge = !_ && p != null, _e = zI(ue, h, g), ve = me && _e != null, be = !!(v || y || b), xe = (e) => {
|
|
58003
58025
|
e && be || re(e);
|
|
58004
58026
|
};
|
|
58005
58027
|
z(() => {
|
|
@@ -58009,7 +58031,7 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58009
58031
|
ne,
|
|
58010
58032
|
n
|
|
58011
58033
|
]);
|
|
58012
|
-
let Se = fe ? se : n, Ce =
|
|
58034
|
+
let Se = fe ? se : n, Ce = FI(Se, e, {
|
|
58013
58035
|
maxDecimals: r,
|
|
58014
58036
|
grouping: i,
|
|
58015
58037
|
units: l
|
|
@@ -58017,9 +58039,9 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58017
58039
|
let t = e.nativeEvent.data;
|
|
58018
58040
|
if (!t) return;
|
|
58019
58041
|
let n = e.currentTarget, i = n.selectionStart ?? 0, a = n.selectionEnd ?? 0;
|
|
58020
|
-
(!
|
|
58042
|
+
(!NI(n.value.slice(0, i) + t + n.value.slice(a), { maxDecimals: r }) || r === 0 && /[.,]/.test(t)) && e.preventDefault();
|
|
58021
58043
|
}, [r]), F = (e) => {
|
|
58022
|
-
let t =
|
|
58044
|
+
let t = NI(e, { maxDecimals: r });
|
|
58023
58045
|
if (!t) return;
|
|
58024
58046
|
let { value: n } = t;
|
|
58025
58047
|
if (n === null) {
|
|
@@ -58031,21 +58053,21 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58031
58053
|
N(t.formattedValue), we?.(n);
|
|
58032
58054
|
return;
|
|
58033
58055
|
}
|
|
58034
|
-
let a =
|
|
58056
|
+
let a = NI(i.toString(), { maxDecimals: r });
|
|
58035
58057
|
N(a?.formattedValue ?? ""), we?.(a?.value ?? null);
|
|
58036
58058
|
}, Ee = (t) => () => {
|
|
58037
58059
|
if (!a) return;
|
|
58038
|
-
if (Se == null) return F(
|
|
58060
|
+
if (Se == null) return F(PI(a, e, r));
|
|
58039
58061
|
let n = t === "increase" ? Se + a : Se - a;
|
|
58040
|
-
o != null && n < o || s != null && n > s || F(
|
|
58062
|
+
o != null && n < o || s != null && n > s || F(PI(n, e, r));
|
|
58041
58063
|
};
|
|
58042
58064
|
z(() => {
|
|
58043
58065
|
if (i && !M) {
|
|
58044
|
-
N(Se == null ? "" :
|
|
58066
|
+
N(Se == null ? "" : PI(Se, e, r, !0));
|
|
58045
58067
|
return;
|
|
58046
58068
|
}
|
|
58047
|
-
let t =
|
|
58048
|
-
Se !== void 0 && Se !== (t?.value ?? null) && N(Se == null ? "" :
|
|
58069
|
+
let t = NI(oe, { maxDecimals: r });
|
|
58070
|
+
Se !== void 0 && Se !== (t?.value ?? null) && N(Se == null ? "" : PI(Se, e, r));
|
|
58049
58071
|
}, [
|
|
58050
58072
|
oe,
|
|
58051
58073
|
Se,
|
|
@@ -58067,7 +58089,7 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58067
58089
|
variant: C,
|
|
58068
58090
|
editing: w,
|
|
58069
58091
|
inlineText: Ce,
|
|
58070
|
-
onKeyDown:
|
|
58092
|
+
onKeyDown: RI(le, D, O),
|
|
58071
58093
|
onBlurWithin: T,
|
|
58072
58094
|
label: me ? p ?? "" : p,
|
|
58073
58095
|
hideLabel: _ || me,
|
|
@@ -58083,7 +58105,7 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58083
58105
|
},
|
|
58084
58106
|
onBeforeInput: Te,
|
|
58085
58107
|
appendTag: l,
|
|
58086
|
-
append: a ? /* @__PURE__ */ U(
|
|
58108
|
+
append: a ? /* @__PURE__ */ U(jI, {
|
|
58087
58109
|
step: a,
|
|
58088
58110
|
disabled: v,
|
|
58089
58111
|
onClickArrow: Ee
|
|
@@ -58111,12 +58133,12 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58111
58133
|
children: /* @__PURE__ */ W("div", {
|
|
58112
58134
|
className: "flex flex-col",
|
|
58113
58135
|
children: [
|
|
58114
|
-
ge ? /* @__PURE__ */ U(
|
|
58136
|
+
ge ? /* @__PURE__ */ U(BI, {
|
|
58115
58137
|
label: p,
|
|
58116
58138
|
htmlFor: j,
|
|
58117
58139
|
disabled: be
|
|
58118
58140
|
}) : null,
|
|
58119
|
-
/* @__PURE__ */ U(
|
|
58141
|
+
/* @__PURE__ */ U(HI, {
|
|
58120
58142
|
extraContent: u,
|
|
58121
58143
|
inputWidth: d,
|
|
58122
58144
|
trailingAction: a ? /* @__PURE__ */ U(E, {
|
|
@@ -58138,12 +58160,12 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58138
58160
|
return de ? /* @__PURE__ */ W("div", {
|
|
58139
58161
|
className: "flex flex-col",
|
|
58140
58162
|
children: [
|
|
58141
|
-
ge ? /* @__PURE__ */ U(
|
|
58163
|
+
ge ? /* @__PURE__ */ U(BI, {
|
|
58142
58164
|
label: p,
|
|
58143
58165
|
htmlFor: j,
|
|
58144
58166
|
disabled: be
|
|
58145
58167
|
}) : null,
|
|
58146
|
-
/* @__PURE__ */ U(
|
|
58168
|
+
/* @__PURE__ */ U(HI, {
|
|
58147
58169
|
extraContent: u,
|
|
58148
58170
|
inputWidth: d,
|
|
58149
58171
|
children: Oe
|
|
@@ -58152,10 +58174,10 @@ var HI = L(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58152
58174
|
]
|
|
58153
58175
|
}) : Oe;
|
|
58154
58176
|
});
|
|
58155
|
-
|
|
58177
|
+
UI.displayName = "NumberInputInternal";
|
|
58156
58178
|
//#endregion
|
|
58157
58179
|
//#region src/blocks/OneFilterPicker/filterTypes/NumberFilter/NumberFilter.tsx
|
|
58158
|
-
function
|
|
58180
|
+
function WI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
58159
58181
|
let i = {
|
|
58160
58182
|
mode: n.options?.modes?.[0] ?? "single",
|
|
58161
58183
|
...n.options
|
|
@@ -58238,7 +58260,7 @@ function UI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58238
58260
|
className: "flex flex-row gap-2",
|
|
58239
58261
|
children: [/* @__PURE__ */ U("div", {
|
|
58240
58262
|
className: "min-w-1/2 flex-1",
|
|
58241
|
-
children: /* @__PURE__ */ U(
|
|
58263
|
+
children: /* @__PURE__ */ U(UI, {
|
|
58242
58264
|
label: l?.mode === "range" ? l?.from?.closed ? a.filters.number.greaterOrEqual : a.filters.number.greaterThan : a.filters.number.value,
|
|
58243
58265
|
locale: o.locale,
|
|
58244
58266
|
value: m.from.value,
|
|
@@ -58254,7 +58276,7 @@ function UI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58254
58276
|
})
|
|
58255
58277
|
}), l?.mode === "range" ? /* @__PURE__ */ U("div", {
|
|
58256
58278
|
className: "min-w-1/2 flex-1",
|
|
58257
|
-
children: /* @__PURE__ */ U(
|
|
58279
|
+
children: /* @__PURE__ */ U(UI, {
|
|
58258
58280
|
label: l?.to?.closed ? a.filters.number.lessOrEqual : a.filters.number.lessThan,
|
|
58259
58281
|
locale: o.locale,
|
|
58260
58282
|
value: m.to.value,
|
|
@@ -58269,7 +58291,7 @@ function UI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58269
58291
|
} : void 0
|
|
58270
58292
|
})
|
|
58271
58293
|
}) : null]
|
|
58272
|
-
}), c ? /* @__PURE__ */ U(
|
|
58294
|
+
}), c ? /* @__PURE__ */ U(AI, {
|
|
58273
58295
|
title: a.filters.number.rangeTitle,
|
|
58274
58296
|
checked: l?.mode === "range",
|
|
58275
58297
|
onCheckedChange: d
|
|
@@ -58287,14 +58309,14 @@ function UI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58287
58309
|
}
|
|
58288
58310
|
//#endregion
|
|
58289
58311
|
//#region src/blocks/OneFilterPicker/filterTypes/NumberFilter/definition.tsx
|
|
58290
|
-
var
|
|
58312
|
+
var GI = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value && e?.from?.value === void 0 || e?.mode === "single" && e?.value === void 0, KI = {
|
|
58291
58313
|
min: void 0,
|
|
58292
58314
|
max: void 0
|
|
58293
|
-
},
|
|
58315
|
+
}, qI = {
|
|
58294
58316
|
emptyValue: void 0,
|
|
58295
58317
|
render: (e) => {
|
|
58296
|
-
let t = ZF(e.schema.options,
|
|
58297
|
-
return /* @__PURE__ */ U(
|
|
58318
|
+
let t = ZF(e.schema.options, KI);
|
|
58319
|
+
return /* @__PURE__ */ U(WI, {
|
|
58298
58320
|
...e,
|
|
58299
58321
|
schema: {
|
|
58300
58322
|
...e.schema,
|
|
@@ -58302,7 +58324,7 @@ var WI = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
|
|
|
58302
58324
|
}
|
|
58303
58325
|
});
|
|
58304
58326
|
},
|
|
58305
|
-
isEmpty:
|
|
58327
|
+
isEmpty: GI,
|
|
58306
58328
|
chipLabel: (e, t) => {
|
|
58307
58329
|
let n = t.i18n;
|
|
58308
58330
|
if (e?.mode === "single" || e?.mode === void 0) return e?.value === void 0 ? "" : n.t("filters.number.equalShort", { value: e?.value?.toString() });
|
|
@@ -58318,20 +58340,20 @@ var WI = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
|
|
|
58318
58340
|
}
|
|
58319
58341
|
return "";
|
|
58320
58342
|
}
|
|
58321
|
-
},
|
|
58343
|
+
}, JI = {
|
|
58322
58344
|
autoComplete: "off",
|
|
58323
58345
|
"data-1p-ignore": !0,
|
|
58324
58346
|
"data-lpignore": "true",
|
|
58325
58347
|
"data-form-type": "other",
|
|
58326
58348
|
"data-bwignore": !0
|
|
58327
|
-
},
|
|
58349
|
+
}, YI = (e, t, n) => (r) => {
|
|
58328
58350
|
e && r.key === "Enter" && r.preventDefault();
|
|
58329
58351
|
let i = {
|
|
58330
58352
|
Enter: t,
|
|
58331
58353
|
Escape: n
|
|
58332
58354
|
}[r.key];
|
|
58333
58355
|
i?.();
|
|
58334
|
-
},
|
|
58356
|
+
}, XI = ({ type: e, onPressEnter: t, onPressEscape: n, ...r }) => {
|
|
58335
58357
|
let [i, a] = H(!1), [o, s] = H(!1);
|
|
58336
58358
|
z(() => {
|
|
58337
58359
|
r.variant === "inline" && !r.editing && s(!1);
|
|
@@ -58360,7 +58382,7 @@ var WI = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
|
|
|
58360
58382
|
]);
|
|
58361
58383
|
return /* @__PURE__ */ U(IF, {
|
|
58362
58384
|
...r,
|
|
58363
|
-
...e === "private" ?
|
|
58385
|
+
...e === "private" ? JI : {},
|
|
58364
58386
|
type: c,
|
|
58365
58387
|
inlineText: e === "private" || e === "password" ? "••••••••" : void 0,
|
|
58366
58388
|
onFocus: () => {
|
|
@@ -58372,14 +58394,14 @@ var WI = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
|
|
|
58372
58394
|
e === "private" && (!(n instanceof Node) || !t.currentTarget.contains(n)) && s(!1), r.onBlurWithin?.(t);
|
|
58373
58395
|
},
|
|
58374
58396
|
onChange: (t) => r.onChange?.(e === "email" ? t.toLowerCase() : t),
|
|
58375
|
-
onKeyDown:
|
|
58397
|
+
onKeyDown: YI(r.variant === "inline", t, n),
|
|
58376
58398
|
icon: l,
|
|
58377
58399
|
buttonToggle: d
|
|
58378
58400
|
});
|
|
58379
58401
|
};
|
|
58380
58402
|
//#endregion
|
|
58381
58403
|
//#region src/blocks/OneFilterPicker/filterTypes/SearchFilter/SearchFilter.tsx
|
|
58382
|
-
function
|
|
58404
|
+
function ZI({ schema: e, value: t, onChange: n }) {
|
|
58383
58405
|
let r = "options" in e ? e.options : void 0, i = (r && "defaultStrict" in r && r.defaultStrict) ?? !1, a = {
|
|
58384
58406
|
strictToggle: r ? r.strictToggle : !1,
|
|
58385
58407
|
defaultStrict: r ? i : !1,
|
|
@@ -58397,7 +58419,7 @@ function XI({ schema: e, value: t, onChange: n }) {
|
|
|
58397
58419
|
}, [l, u] = H(a.defaultStrict), d = B(() => typeof t == "object" && "value" in t ? t.value : t ?? "", [t]);
|
|
58398
58420
|
return /* @__PURE__ */ U("div", {
|
|
58399
58421
|
className: "space-y-4 p-2",
|
|
58400
|
-
children: /* @__PURE__ */ U(
|
|
58422
|
+
children: /* @__PURE__ */ U(XI, {
|
|
58401
58423
|
label: `Search ${e.label.toLowerCase()}...`,
|
|
58402
58424
|
hideLabel: !0,
|
|
58403
58425
|
placeholder: `Search ${e.label.toLowerCase()}...`,
|
|
@@ -58415,12 +58437,12 @@ function XI({ schema: e, value: t, onChange: n }) {
|
|
|
58415
58437
|
}
|
|
58416
58438
|
//#endregion
|
|
58417
58439
|
//#region src/blocks/OneFilterPicker/filterTypes/filters.tsx
|
|
58418
|
-
var
|
|
58419
|
-
in:
|
|
58440
|
+
var QI = {
|
|
58441
|
+
in: OI,
|
|
58420
58442
|
search: {
|
|
58421
58443
|
emptyValue: "",
|
|
58422
58444
|
defaultOptions: { strictToggle: !1 },
|
|
58423
|
-
render: (e) => /* @__PURE__ */ U(
|
|
58445
|
+
render: (e) => /* @__PURE__ */ U(ZI, { ...e }),
|
|
58424
58446
|
isEmpty: (e) => typeof e == "object" && "value" in e ? e.value?.trim() === "" : (e ?? "").trim() === "",
|
|
58425
58447
|
chipLabel: (e) => typeof e == "object" && "value" in e ? {
|
|
58426
58448
|
label: e.value,
|
|
@@ -58429,22 +58451,22 @@ var ZI = {
|
|
|
58429
58451
|
} : e ?? ""
|
|
58430
58452
|
},
|
|
58431
58453
|
date: tI,
|
|
58432
|
-
number:
|
|
58433
|
-
},
|
|
58434
|
-
let t =
|
|
58454
|
+
number: qI
|
|
58455
|
+
}, $I = (e) => {
|
|
58456
|
+
let t = QI[e];
|
|
58435
58457
|
if (!t) throw Error(`Filter type ${e.toString()} not found`);
|
|
58436
58458
|
return t;
|
|
58437
|
-
},
|
|
58459
|
+
}, eL = (e, t, n) => Object.keys(e).filter((r) => {
|
|
58438
58460
|
let i = t[r], a = e[r];
|
|
58439
|
-
return
|
|
58461
|
+
return !$I(a.type).isEmpty(i, {
|
|
58440
58462
|
schema: a,
|
|
58441
58463
|
i18n: n
|
|
58442
58464
|
});
|
|
58443
58465
|
});
|
|
58444
58466
|
//#endregion
|
|
58445
58467
|
//#region src/blocks/OneFilterPicker/components/FilterChipButton.tsx
|
|
58446
|
-
function
|
|
58447
|
-
let [o, c] = H(!0), l = s(), u =
|
|
58468
|
+
function tL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disabled: a = !1 }) {
|
|
58469
|
+
let [o, c] = H(!0), l = s(), u = $I(e.type), d = he(), [f, p] = H({ label: "" });
|
|
58448
58470
|
return z(() => {
|
|
58449
58471
|
(async () => {
|
|
58450
58472
|
if (n === void 0) return;
|
|
@@ -58496,13 +58518,13 @@ function eL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
|
|
|
58496
58518
|
}
|
|
58497
58519
|
//#endregion
|
|
58498
58520
|
//#region src/blocks/OneFilterPicker/components/FiltersChipsList.tsx
|
|
58499
|
-
var
|
|
58500
|
-
function
|
|
58501
|
-
let d = he(), f = s(), p =
|
|
58521
|
+
var nL = (e, t) => e ? {} : t;
|
|
58522
|
+
function rL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, onClearAll: i, hideChips: a = !1, resultCount: o, quickFilterChip: c, onQuickFilterChipSelect: l, disabled: u = !1 }) {
|
|
58523
|
+
let d = he(), f = s(), p = eL(e, t, d), m = !a && p.length > 0, h = m || c !== void 0;
|
|
58502
58524
|
if (!h) return null;
|
|
58503
58525
|
let g = () => {
|
|
58504
58526
|
c?.onRemove(), i();
|
|
58505
|
-
}, _ =
|
|
58527
|
+
}, _ = nL(u, {
|
|
58506
58528
|
onClose: c?.onRemove,
|
|
58507
58529
|
onClick: l
|
|
58508
58530
|
});
|
|
@@ -58540,10 +58562,10 @@ function nL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
58540
58562
|
let a = e[i];
|
|
58541
58563
|
if (!e[i]) return null;
|
|
58542
58564
|
let o = t?.[i];
|
|
58543
|
-
return
|
|
58565
|
+
return $I(a.type).isEmpty(o, {
|
|
58544
58566
|
schema: a,
|
|
58545
58567
|
i18n: d
|
|
58546
|
-
}) ? null : /* @__PURE__ */ U(
|
|
58568
|
+
}) ? null : /* @__PURE__ */ U(tL, {
|
|
58547
58569
|
filter: a,
|
|
58548
58570
|
filterKey: String(i),
|
|
58549
58571
|
value: o,
|
|
@@ -58563,15 +58585,15 @@ function nL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
58563
58585
|
}
|
|
58564
58586
|
//#endregion
|
|
58565
58587
|
//#region src/blocks/OneFilterPicker/components/FilterContent.tsx
|
|
58566
|
-
function
|
|
58588
|
+
function iL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChange: r, isCompactMode: i }) {
|
|
58567
58589
|
if (!e) return null;
|
|
58568
|
-
let a = t[e], o =
|
|
58590
|
+
let a = t[e], o = $I(a.type);
|
|
58569
58591
|
if (!o) throw Error(`Filter type ${a.type} not found`);
|
|
58570
58592
|
let s = n[e] || o.emptyValue, c = (e, t) => {
|
|
58571
58593
|
r(e, t);
|
|
58572
58594
|
};
|
|
58573
58595
|
function l({ schema: e, value: t, onChange: r }) {
|
|
58574
|
-
return
|
|
58596
|
+
return $I(e.type).render({
|
|
58575
58597
|
schema: e,
|
|
58576
58598
|
value: t,
|
|
58577
58599
|
onChange: r,
|
|
@@ -58596,11 +58618,11 @@ function rL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChang
|
|
|
58596
58618
|
}
|
|
58597
58619
|
//#endregion
|
|
58598
58620
|
//#region src/blocks/OneFilterPicker/components/FilterList.tsx
|
|
58599
|
-
function
|
|
58621
|
+
function aL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, isCompactMode: i, onClickApplyFilters: a, quickFilterLabel: o, quickFilterIcon: c, quickFilterSelected: l, onQuickFilterSelect: u }) {
|
|
58600
58622
|
let d = he(), f = it(), p = s(), m = i ? qe : Ue, h = B(() => {
|
|
58601
58623
|
let t = /* @__PURE__ */ new Map();
|
|
58602
58624
|
for (let [n, r] of Object.entries(e)) if (r.type === "in" && "options" in r) {
|
|
58603
|
-
let e =
|
|
58625
|
+
let e = xI(r);
|
|
58604
58626
|
e.length > 0 && t.set(n, e);
|
|
58605
58627
|
}
|
|
58606
58628
|
return t;
|
|
@@ -58631,7 +58653,7 @@ function iL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
58631
58653
|
]
|
|
58632
58654
|
})
|
|
58633
58655
|
}) : null, Object.entries(e).map(([e, a]) => {
|
|
58634
|
-
let o =
|
|
58656
|
+
let o = $I(a.type), s = t[e], c = !o.isEmpty(s, {
|
|
58635
58657
|
schema: a,
|
|
58636
58658
|
i18n: d
|
|
58637
58659
|
}), l = h.get(e), u = !c && !!l?.some((e) => {
|
|
@@ -58689,7 +58711,7 @@ function iL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
58689
58711
|
}
|
|
58690
58712
|
//#endregion
|
|
58691
58713
|
//#region src/blocks/F0FilterPickerContent/internal.tsx
|
|
58692
|
-
function
|
|
58714
|
+
function oL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, onFilterChange: i, onApply: a, onClear: o, height: s, showApplyButton: c = !0, applyButtonLabel: l, className: u, quickFilter: d, quickFilterSelected: f, onQuickFilterSelect: p, onStageFilters: m }) {
|
|
58693
58715
|
let h = he();
|
|
58694
58716
|
return /* @__PURE__ */ W("div", {
|
|
58695
58717
|
className: P("flex flex-col transition-all", "max-h-[calc(var(--radix-popover-content-available-height)-15px)] min-h-[250px]", u),
|
|
@@ -58697,7 +58719,7 @@ function aL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
58697
58719
|
children: [/* @__PURE__ */ W("div", {
|
|
58698
58720
|
className: "flex min-h-0 flex-1",
|
|
58699
58721
|
children: [
|
|
58700
|
-
/* @__PURE__ */ U(
|
|
58722
|
+
/* @__PURE__ */ U(aL, {
|
|
58701
58723
|
definition: e,
|
|
58702
58724
|
tempFilters: t,
|
|
58703
58725
|
selectedFilterKey: n,
|
|
@@ -58714,7 +58736,7 @@ function aL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
58714
58736
|
}) : null,
|
|
58715
58737
|
n ? /* @__PURE__ */ U("div", {
|
|
58716
58738
|
className: "min-w-[340px] flex-1",
|
|
58717
|
-
children: /* @__PURE__ */ U(
|
|
58739
|
+
children: /* @__PURE__ */ U(iL, {
|
|
58718
58740
|
selectedFilterKey: n,
|
|
58719
58741
|
definition: e,
|
|
58720
58742
|
tempFilters: t,
|
|
@@ -58735,40 +58757,40 @@ function aL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
58735
58757
|
}) : null]
|
|
58736
58758
|
});
|
|
58737
58759
|
}
|
|
58738
|
-
|
|
58760
|
+
oL.displayName = "FilterPickerInternal";
|
|
58739
58761
|
//#endregion
|
|
58740
58762
|
//#region src/blocks/OneFilterPicker/internal/getActiveFiltersValue.ts
|
|
58741
|
-
var
|
|
58763
|
+
var sL = (e, t, n) => {
|
|
58742
58764
|
let r = {};
|
|
58743
|
-
for (let i of
|
|
58765
|
+
for (let i of eL(e, t, n)) r[i] = t[i];
|
|
58744
58766
|
return r;
|
|
58745
58767
|
};
|
|
58746
58768
|
//#endregion
|
|
58747
58769
|
//#region src/blocks/OneFilterPicker/internal/getClearedFiltersValue.ts
|
|
58748
|
-
function
|
|
58770
|
+
function cL(e) {
|
|
58749
58771
|
let t = {};
|
|
58750
58772
|
for (let [n, r] of Object.entries(e)) {
|
|
58751
58773
|
let e = n;
|
|
58752
|
-
if (t[e] =
|
|
58774
|
+
if (t[e] = $I(r.type).emptyValue, r.type === "in" && "options" in r) for (let e of xI(r)) t[e] = [];
|
|
58753
58775
|
}
|
|
58754
58776
|
return t;
|
|
58755
58777
|
}
|
|
58756
58778
|
//#endregion
|
|
58757
58779
|
//#region src/blocks/OneFilterPicker/components/FiltersControls.tsx
|
|
58758
|
-
var
|
|
58759
|
-
function
|
|
58780
|
+
var lL = /* @__PURE__ */ e(us(), 1), uL = 388;
|
|
58781
|
+
function dL({ id: e, text: t }) {
|
|
58760
58782
|
return /* @__PURE__ */ U("span", {
|
|
58761
58783
|
id: e,
|
|
58762
58784
|
title: t,
|
|
58763
58785
|
className: "sr-only"
|
|
58764
58786
|
});
|
|
58765
58787
|
}
|
|
58766
|
-
var
|
|
58788
|
+
var fL = L((e, t) => /* @__PURE__ */ U(Se, {
|
|
58767
58789
|
...e,
|
|
58768
58790
|
ref: t
|
|
58769
58791
|
}));
|
|
58770
|
-
|
|
58771
|
-
function
|
|
58792
|
+
fL.displayName = "DescribedFilterButton";
|
|
58793
|
+
function pL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpenChange: a, hideLabel: o, mode: s = "default", displayCounter: c = !1, quickFilter: l, disabled: u = !1 }) {
|
|
58772
58794
|
let d = t ?? e, f = Object.keys(e)[0] ?? null, [p, m] = H(s === "compact" ? null : f), [h, g] = H(!1), _ = () => {
|
|
58773
58795
|
m(null), g(!0);
|
|
58774
58796
|
}, v = (e) => {
|
|
@@ -58793,7 +58815,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58793
58815
|
}, 150)) : D(e));
|
|
58794
58816
|
}, ne = V(n);
|
|
58795
58817
|
z(() => {
|
|
58796
|
-
(0,
|
|
58818
|
+
(0, lL.default)(ne.current, n) || (ne.current = n, k(n));
|
|
58797
58819
|
}, [n]);
|
|
58798
58820
|
let re = (e, t) => {
|
|
58799
58821
|
k((n) => ({
|
|
@@ -58801,18 +58823,18 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58801
58823
|
[e]: t
|
|
58802
58824
|
}));
|
|
58803
58825
|
}, M = () => {
|
|
58804
|
-
h && l?.onApply?.(), r(
|
|
58826
|
+
h && l?.onApply?.(), r(sL(d, O, x)), j(!1);
|
|
58805
58827
|
}, ae = () => {
|
|
58806
|
-
k(
|
|
58828
|
+
k(cL(d)), l?.chip?.onRemove();
|
|
58807
58829
|
}, oe = () => {
|
|
58808
|
-
p ? m(null) : (r(
|
|
58830
|
+
p ? m(null) : (r(sL(d, O, x)), j(!1));
|
|
58809
58831
|
}, N = () => {
|
|
58810
58832
|
k(n), j(!1);
|
|
58811
58833
|
}, se = () => {
|
|
58812
58834
|
oe();
|
|
58813
58835
|
};
|
|
58814
58836
|
z(() => {
|
|
58815
|
-
let t = () => Object.entries(O || {}).find(([t, n]) => e[t] ?
|
|
58837
|
+
let t = () => Object.entries(O || {}).find(([t, n]) => e[t] ? !$I(e[t].type).isEmpty(n, {
|
|
58816
58838
|
schema: e[t],
|
|
58817
58839
|
i18n: x
|
|
58818
58840
|
}) : !1);
|
|
@@ -58830,9 +58852,9 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58830
58852
|
}
|
|
58831
58853
|
}, [T]);
|
|
58832
58854
|
let ce = B(() => Object.entries(e).reduce((e, [t, n]) => {
|
|
58833
|
-
let r =
|
|
58834
|
-
return Math.max(e, r?.formHeight ||
|
|
58835
|
-
}, 0), [e]), le = it(), ue = `${le}-active-filters-description`, de = B(() =>
|
|
58855
|
+
let r = $I(n.type);
|
|
58856
|
+
return Math.max(e, r?.formHeight || uL);
|
|
58857
|
+
}, 0), [e]), le = it(), ue = `${le}-active-filters-description`, de = B(() => eL(d, n, x), [
|
|
58836
58858
|
d,
|
|
58837
58859
|
n,
|
|
58838
58860
|
x
|
|
@@ -58843,11 +58865,11 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58843
58865
|
className: "flex items-center gap-2",
|
|
58844
58866
|
children: [/* @__PURE__ */ W("div", {
|
|
58845
58867
|
className: "relative",
|
|
58846
|
-
children: [/* @__PURE__ */ U(
|
|
58868
|
+
children: [/* @__PURE__ */ U(fL, {
|
|
58847
58869
|
variant: "outline",
|
|
58848
58870
|
label: x.filters.label,
|
|
58849
58871
|
"aria-describedby": me ? ue : void 0,
|
|
58850
|
-
append: me ? /* @__PURE__ */ U(
|
|
58872
|
+
append: me ? /* @__PURE__ */ U(dL, {
|
|
58851
58873
|
id: ue,
|
|
58852
58874
|
text: me
|
|
58853
58875
|
}) : void 0,
|
|
@@ -58901,7 +58923,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58901
58923
|
/* @__PURE__ */ W("div", {
|
|
58902
58924
|
className: "flex flex-1 min-h-0 max-h-full",
|
|
58903
58925
|
children: [
|
|
58904
|
-
/* @__PURE__ */ U(
|
|
58926
|
+
/* @__PURE__ */ U(aL, {
|
|
58905
58927
|
definition: e,
|
|
58906
58928
|
tempFilters: O,
|
|
58907
58929
|
selectedFilterKey: p,
|
|
@@ -58918,7 +58940,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58918
58940
|
}) : null,
|
|
58919
58941
|
p ? /* @__PURE__ */ U("div", {
|
|
58920
58942
|
className: "flex-1 min-w-0 overflow-hidden",
|
|
58921
|
-
children: /* @__PURE__ */ U(
|
|
58943
|
+
children: /* @__PURE__ */ U(iL, {
|
|
58922
58944
|
selectedFilterKey: p,
|
|
58923
58945
|
definition: e,
|
|
58924
58946
|
tempFilters: O,
|
|
@@ -58962,11 +58984,11 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58962
58984
|
className: "flex items-center gap-2",
|
|
58963
58985
|
children: [/* @__PURE__ */ W("div", {
|
|
58964
58986
|
className: "relative",
|
|
58965
|
-
children: [/* @__PURE__ */ U(
|
|
58987
|
+
children: [/* @__PURE__ */ U(fL, {
|
|
58966
58988
|
variant: "outline",
|
|
58967
58989
|
label: x.filters.label,
|
|
58968
58990
|
"aria-describedby": me ? ue : void 0,
|
|
58969
|
-
append: me ? /* @__PURE__ */ U(
|
|
58991
|
+
append: me ? /* @__PURE__ */ U(dL, {
|
|
58970
58992
|
id: ue,
|
|
58971
58993
|
text: me
|
|
58972
58994
|
}) : void 0,
|
|
@@ -59012,7 +59034,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59012
59034
|
exit: { opacity: 0 },
|
|
59013
59035
|
transition: { duration: .2 },
|
|
59014
59036
|
className: "h-full w-full bg-f1-background",
|
|
59015
|
-
children: /* @__PURE__ */ U(
|
|
59037
|
+
children: /* @__PURE__ */ U(iL, {
|
|
59016
59038
|
selectedFilterKey: p,
|
|
59017
59039
|
definition: e,
|
|
59018
59040
|
tempFilters: O,
|
|
@@ -59025,7 +59047,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59025
59047
|
exit: { opacity: 0 },
|
|
59026
59048
|
transition: { duration: .2 },
|
|
59027
59049
|
className: "h-full w-full bg-f1-background",
|
|
59028
|
-
children: /* @__PURE__ */ U(
|
|
59050
|
+
children: /* @__PURE__ */ U(aL, {
|
|
59029
59051
|
definition: e,
|
|
59030
59052
|
tempFilters: O,
|
|
59031
59053
|
selectedFilterKey: p,
|
|
@@ -59050,11 +59072,11 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59050
59072
|
modal: !0,
|
|
59051
59073
|
children: [/* @__PURE__ */ U(S, {
|
|
59052
59074
|
asChild: !0,
|
|
59053
|
-
children: /* @__PURE__ */ U(
|
|
59075
|
+
children: /* @__PURE__ */ U(fL, {
|
|
59054
59076
|
variant: "outline",
|
|
59055
59077
|
label: x.filters.label,
|
|
59056
59078
|
"aria-describedby": me ? ue : void 0,
|
|
59057
|
-
append: me ? /* @__PURE__ */ U(
|
|
59079
|
+
append: me ? /* @__PURE__ */ U(dL, {
|
|
59058
59080
|
id: ue,
|
|
59059
59081
|
text: me
|
|
59060
59082
|
}) : void 0,
|
|
@@ -59072,7 +59094,7 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59072
59094
|
id: le,
|
|
59073
59095
|
"aria-label": x.filters.label,
|
|
59074
59096
|
container: w,
|
|
59075
|
-
children: /* @__PURE__ */ U(
|
|
59097
|
+
children: /* @__PURE__ */ U(oL, {
|
|
59076
59098
|
filters: e,
|
|
59077
59099
|
tempFilters: O,
|
|
59078
59100
|
selectedFilterKey: p,
|
|
@@ -59084,13 +59106,13 @@ function fL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59084
59106
|
onFilterChange: re,
|
|
59085
59107
|
onApply: M,
|
|
59086
59108
|
onClear: ae,
|
|
59087
|
-
height: ce ||
|
|
59109
|
+
height: ce || uL
|
|
59088
59110
|
})
|
|
59089
59111
|
})]
|
|
59090
59112
|
})
|
|
59091
59113
|
});
|
|
59092
59114
|
}
|
|
59093
|
-
var
|
|
59115
|
+
var mL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: a, disabled: o = !1 }) => {
|
|
59094
59116
|
let s = he(), c = !!a && !o, l = !!n && !o, [u, d] = H(!1), f = /* @__PURE__ */ W(A.label, {
|
|
59095
59117
|
layout: !0,
|
|
59096
59118
|
transition: {
|
|
@@ -59164,18 +59186,18 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59164
59186
|
children: i
|
|
59165
59187
|
})
|
|
59166
59188
|
})] }) : f;
|
|
59167
|
-
}),
|
|
59189
|
+
}), hL = (e, t) => {
|
|
59168
59190
|
let n = e.filter;
|
|
59169
59191
|
if (typeof n != "object" || !n || Array.isArray(n)) return !1;
|
|
59170
59192
|
let r = Object.keys(n).filter((e) => n[e] !== void 0), i = Object.keys(t).filter((e) => t[e] !== void 0);
|
|
59171
|
-
return r.length === i.length && Object.entries(n).filter(([, e]) => e !== void 0).every(([e, n]) => (0,
|
|
59172
|
-
},
|
|
59193
|
+
return r.length === i.length && Object.entries(n).filter(([, e]) => e !== void 0).every(([e, n]) => (0, lL.default)(t[e], n));
|
|
59194
|
+
}, gL = 4, _L = ({ presets: e, value: t, onPresetsChange: n, presetsLoading: r = !1, selectedPresetId: i, onSelectPreset: a, editablePresetIds: o, onEditPreset: s, presetActionState: c = "none", onPresetAction: l, disabled: u = !1 }) => {
|
|
59173
59195
|
let d = he(), f = B(() => typeof t == "object" && t && !Array.isArray(t) ? t : {}, [t]), m = (e, t) => {
|
|
59174
59196
|
if (a) return {
|
|
59175
59197
|
isSelected: t === i,
|
|
59176
59198
|
handleClick: () => a(t)
|
|
59177
59199
|
};
|
|
59178
|
-
let r =
|
|
59200
|
+
let r = hL(e, f);
|
|
59179
59201
|
return {
|
|
59180
59202
|
isSelected: r,
|
|
59181
59203
|
handleClick: () => {
|
|
@@ -59220,7 +59242,7 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59220
59242
|
}), d.actions.saveAsPreset]
|
|
59221
59243
|
});
|
|
59222
59244
|
let { preset: r, presetId: i } = e, { isSelected: a, handleClick: c } = m(r, i), p = r.itemsCount?.(f), h = o?.includes(i) ?? !1;
|
|
59223
|
-
return /* @__PURE__ */ U(
|
|
59245
|
+
return /* @__PURE__ */ U(mL, {
|
|
59224
59246
|
label: r.label,
|
|
59225
59247
|
description: r.description,
|
|
59226
59248
|
selected: a,
|
|
@@ -59265,7 +59287,7 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59265
59287
|
children: [/* @__PURE__ */ U(se, { className: "h-4 w-24" }), /* @__PURE__ */ U(se, { className: "h-4 w-6" })]
|
|
59266
59288
|
}, t);
|
|
59267
59289
|
if (r) {
|
|
59268
|
-
let e = Array.from({ length:
|
|
59290
|
+
let e = Array.from({ length: gL }, (e, t) => t);
|
|
59269
59291
|
return /* @__PURE__ */ U(Be, {
|
|
59270
59292
|
items: e,
|
|
59271
59293
|
renderListItem: b,
|
|
@@ -59281,7 +59303,7 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59281
59303
|
min: 1,
|
|
59282
59304
|
fluidItems: !0
|
|
59283
59305
|
});
|
|
59284
|
-
},
|
|
59306
|
+
}, vL = nt({
|
|
59285
59307
|
filters: {},
|
|
59286
59308
|
value: {},
|
|
59287
59309
|
presets: [],
|
|
@@ -59302,8 +59324,8 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59302
59324
|
presetActionState: "none",
|
|
59303
59325
|
onPresetAction: void 0,
|
|
59304
59326
|
disabled: !1
|
|
59305
|
-
}),
|
|
59306
|
-
let s = rt(
|
|
59327
|
+
}), yL = nt("optimistic"), bL = ({ filters: e, value: t, children: n, presetsLoading: r = !1, mode: i = "default", onOpenChange: a, ...o }) => {
|
|
59328
|
+
let s = rt(yL), { emitFilterChange: c, emitPresetClick: l } = PF({ defaultFilters: V(t).current }), [u, d] = H(!1);
|
|
59307
59329
|
z(() => {
|
|
59308
59330
|
a?.(u);
|
|
59309
59331
|
}, [u, a]);
|
|
@@ -59313,13 +59335,13 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59313
59335
|
}, [JSON.stringify(e), JSON.stringify(t)]);
|
|
59314
59336
|
let m = s === "controlled" ? t : f, h = (t) => {
|
|
59315
59337
|
let n = e?.[t], r = /* @__PURE__ */ new Set([String(t)]);
|
|
59316
|
-
if (n?.type === "in" && n.options) for (let e of
|
|
59338
|
+
if (n?.type === "in" && n.options) for (let e of xI(n)) r.add(String(e));
|
|
59317
59339
|
let i = Object.fromEntries(Object.entries(m).filter(([e]) => !r.has(e)));
|
|
59318
59340
|
s === "optimistic" && p(i), o.onChange(i);
|
|
59319
59341
|
}, g = (e) => {
|
|
59320
59342
|
s === "optimistic" && p(e), o.onChange(e);
|
|
59321
59343
|
};
|
|
59322
|
-
return /* @__PURE__ */ U(
|
|
59344
|
+
return /* @__PURE__ */ U(vL.Provider, {
|
|
59323
59345
|
value: {
|
|
59324
59346
|
...o,
|
|
59325
59347
|
mode: i,
|
|
@@ -59337,10 +59359,10 @@ var pL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
|
|
|
59337
59359
|
children: n
|
|
59338
59360
|
});
|
|
59339
59361
|
};
|
|
59340
|
-
|
|
59341
|
-
var
|
|
59342
|
-
let { value: e, filters: t, isFiltersOpen: n, setIsFiltersOpen: r, setFiltersValue: i, presets: a, emitFilterChange: o, mode: s, displayCounter: c, quickFilter: l, disabled: u } = rt(
|
|
59343
|
-
return !d || Object.keys(d).length === 0 ? null : /* @__PURE__ */ W(ct, { children: [/* @__PURE__ */ U(
|
|
59362
|
+
bL.displayName = "OneFilterPicker.Root";
|
|
59363
|
+
var xL = () => {
|
|
59364
|
+
let { value: e, filters: t, isFiltersOpen: n, setIsFiltersOpen: r, setFiltersValue: i, presets: a, emitFilterChange: o, mode: s, displayCounter: c, quickFilter: l, disabled: u } = rt(vL), d = t ? Object.fromEntries(Object.entries(t).filter(([e, t]) => !t.hideSelector)) : void 0;
|
|
59365
|
+
return !d || Object.keys(d).length === 0 ? null : /* @__PURE__ */ W(ct, { children: [/* @__PURE__ */ U(pL, {
|
|
59344
59366
|
filters: d,
|
|
59345
59367
|
allFilters: t,
|
|
59346
59368
|
value: e,
|
|
@@ -59359,12 +59381,12 @@ var bL = () => {
|
|
|
59359
59381
|
children: /* @__PURE__ */ U("div", { className: "mx-2 h-4 w-px bg-f1-background-secondary-hover" })
|
|
59360
59382
|
}) : null] });
|
|
59361
59383
|
};
|
|
59362
|
-
|
|
59363
|
-
var
|
|
59364
|
-
let { presets: e, presetsLoading: t, value: n, setFiltersValue: r, emitPresetClick: i, selectedPresetId: a, onSelectPreset: o, editablePresetIds: s, onEditPreset: c, presetActionState: l, onPresetAction: u, disabled: d } = rt(
|
|
59384
|
+
xL.displayName = "OneFilterPicker.Controls";
|
|
59385
|
+
var SL = () => {
|
|
59386
|
+
let { presets: e, presetsLoading: t, value: n, setFiltersValue: r, emitPresetClick: i, selectedPresetId: a, onSelectPreset: o, editablePresetIds: s, onEditPreset: c, presetActionState: l, onPresetAction: u, disabled: d } = rt(vL);
|
|
59365
59387
|
return e && /* @__PURE__ */ U(FF, {
|
|
59366
59388
|
onError: (e) => console.error("[f0-react] FiltersPresets failed to render; hiding the presets row", e),
|
|
59367
|
-
children: /* @__PURE__ */ U(
|
|
59389
|
+
children: /* @__PURE__ */ U(_L, {
|
|
59368
59390
|
presets: e,
|
|
59369
59391
|
presetsLoading: t,
|
|
59370
59392
|
value: n,
|
|
@@ -59384,14 +59406,14 @@ var xL = () => {
|
|
|
59384
59406
|
})
|
|
59385
59407
|
});
|
|
59386
59408
|
};
|
|
59387
|
-
|
|
59388
|
-
var
|
|
59389
|
-
let { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: i, setFiltersValue: a, resultCount: o, onSelectPreset: s, quickFilter: c, disabled: l } = rt(
|
|
59409
|
+
SL.displayName = "Filters.Presets";
|
|
59410
|
+
var CL = () => {
|
|
59411
|
+
let { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: i, setFiltersValue: a, resultCount: o, onSelectPreset: s, quickFilter: c, disabled: l } = rt(vL), u = B(() => s || !r?.length ? !1 : r.some((t) => hL(t, e)), [
|
|
59390
59412
|
r,
|
|
59391
59413
|
e,
|
|
59392
59414
|
s
|
|
59393
59415
|
]);
|
|
59394
|
-
return t && /* @__PURE__ */ U(
|
|
59416
|
+
return t && /* @__PURE__ */ U(rL, {
|
|
59395
59417
|
filters: t,
|
|
59396
59418
|
value: e,
|
|
59397
59419
|
onFilterSelect: () => n(!0),
|
|
@@ -59404,28 +59426,28 @@ var SL = () => {
|
|
|
59404
59426
|
disabled: l
|
|
59405
59427
|
});
|
|
59406
59428
|
};
|
|
59407
|
-
|
|
59408
|
-
var
|
|
59429
|
+
CL.displayName = "OneFilterPicker.ChipsList";
|
|
59430
|
+
var wL = (e) => {
|
|
59409
59431
|
let { dataTestId: t, ...n } = e;
|
|
59410
59432
|
return /* @__PURE__ */ U(ae, {
|
|
59411
59433
|
dataTestId: t,
|
|
59412
|
-
children: /* @__PURE__ */ W(
|
|
59434
|
+
children: /* @__PURE__ */ W(bL, {
|
|
59413
59435
|
...n,
|
|
59414
59436
|
children: [/* @__PURE__ */ W("div", {
|
|
59415
59437
|
className: P("flex items-center justify-between gap-4", !n.filters && "justify-end"),
|
|
59416
59438
|
children: [n.filters ? /* @__PURE__ */ W("div", {
|
|
59417
59439
|
className: "flex min-w-0 flex-1 gap-1",
|
|
59418
|
-
children: [/* @__PURE__ */ U(
|
|
59440
|
+
children: [/* @__PURE__ */ U(xL, {}), /* @__PURE__ */ U(SL, {})]
|
|
59419
59441
|
}) : null, n.children ? /* @__PURE__ */ U("div", {
|
|
59420
59442
|
className: "flex shrink-0 items-center gap-2",
|
|
59421
59443
|
children: n.children
|
|
59422
59444
|
}) : null]
|
|
59423
|
-
}), !n.mode || n.mode === "default" ? /* @__PURE__ */ U(
|
|
59445
|
+
}), !n.mode || n.mode === "default" ? /* @__PURE__ */ U(CL, {}) : null]
|
|
59424
59446
|
})
|
|
59425
59447
|
});
|
|
59426
59448
|
};
|
|
59427
|
-
|
|
59428
|
-
var
|
|
59449
|
+
wL.displayName = "OneFilterPicker";
|
|
59450
|
+
var TL = wL, EL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
59429
59451
|
let [r, i] = H([]), a = he();
|
|
59430
59452
|
if (z(() => {
|
|
59431
59453
|
(async () => {
|
|
@@ -59436,7 +59458,7 @@ var wL = CL, TL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
|
59436
59458
|
label: i,
|
|
59437
59459
|
displayText: String(n)
|
|
59438
59460
|
};
|
|
59439
|
-
let o =
|
|
59461
|
+
let o = QI[r.type];
|
|
59440
59462
|
if (!o?.chipLabel) return {
|
|
59441
59463
|
key: t,
|
|
59442
59464
|
label: i,
|
|
@@ -59502,10 +59524,10 @@ var wL = CL, TL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
|
59502
59524
|
})
|
|
59503
59525
|
}) });
|
|
59504
59526
|
};
|
|
59505
|
-
|
|
59527
|
+
EL.displayName = "ActiveFiltersChips";
|
|
59506
59528
|
//#endregion
|
|
59507
59529
|
//#region src/blocks/F0Select/components/SelectTopActions.tsx
|
|
59508
|
-
var
|
|
59530
|
+
var DL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, searchValue: r, grouping: i, currentGrouping: a, onGroupingChange: o, filters: s, currentFilters: c, onFiltersChange: l, asList: u = !1, onFiltersOpenChange: d, showPreview: f = !1 }) => {
|
|
59509
59531
|
let p = he(), [m, h] = H(!1), g = R((e) => {
|
|
59510
59532
|
h(e), d?.(e);
|
|
59511
59533
|
}, [d]);
|
|
@@ -59525,7 +59547,7 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59525
59547
|
autoFocus: !u && !m,
|
|
59526
59548
|
clearable: !0
|
|
59527
59549
|
})
|
|
59528
|
-
}) : null, s ? /* @__PURE__ */ U(
|
|
59550
|
+
}) : null, s ? /* @__PURE__ */ U(TL, {
|
|
59529
59551
|
filters: s,
|
|
59530
59552
|
value: c,
|
|
59531
59553
|
onChange: l,
|
|
@@ -59538,7 +59560,7 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59538
59560
|
currentGrouping: a,
|
|
59539
59561
|
onGroupingChange: o
|
|
59540
59562
|
})]
|
|
59541
|
-
}), /* @__PURE__ */ U(y, { children: s &&
|
|
59563
|
+
}), /* @__PURE__ */ U(y, { children: s && OL(c) ? /* @__PURE__ */ U(A.div, {
|
|
59542
59564
|
initial: {
|
|
59543
59565
|
opacity: 0,
|
|
59544
59566
|
height: 0
|
|
@@ -59556,14 +59578,14 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59556
59578
|
duration: .3,
|
|
59557
59579
|
bounce: 0
|
|
59558
59580
|
},
|
|
59559
|
-
children: /* @__PURE__ */ U(
|
|
59581
|
+
children: /* @__PURE__ */ U(EL, {
|
|
59560
59582
|
filters: s,
|
|
59561
59583
|
currentFilters: c,
|
|
59562
59584
|
onFiltersChange: l
|
|
59563
59585
|
})
|
|
59564
59586
|
}) : null })]
|
|
59565
59587
|
});
|
|
59566
|
-
},
|
|
59588
|
+
}, OL = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), kL = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, onBackspaceOnEmpty: d, triggerRef: f }) => {
|
|
59567
59589
|
let [p, m] = H(n), [h, g] = H(!1), _ = V(null);
|
|
59568
59590
|
z(() => {
|
|
59569
59591
|
e && !h && m(n);
|
|
@@ -59661,7 +59683,7 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59661
59683
|
t
|
|
59662
59684
|
])
|
|
59663
59685
|
};
|
|
59664
|
-
},
|
|
59686
|
+
}, AL = ZS(), jL = 400, ML = (e, t) => {
|
|
59665
59687
|
if (e.type === "separator" || !t) return !0;
|
|
59666
59688
|
let n = t.toLowerCase(), r = e.metadata?.type === "dialCode" ? e.metadata.dialCode : void 0;
|
|
59667
59689
|
return [
|
|
@@ -59669,9 +59691,9 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59669
59691
|
e.description,
|
|
59670
59692
|
r
|
|
59671
59693
|
].some((e) => e?.toLowerCase().includes(n));
|
|
59672
|
-
},
|
|
59694
|
+
}, NL = (e) => {
|
|
59673
59695
|
if (e.type !== "separator" && e.tag !== void 0 && typeof e.tag != "string") return e.tag.type;
|
|
59674
|
-
},
|
|
59696
|
+
}, PL = ne({
|
|
59675
59697
|
base: "flex flex-col rounded-md border border-solid bg-f1-background max-h-full",
|
|
59676
59698
|
variants: { status: {
|
|
59677
59699
|
default: "border-f1-border-secondary",
|
|
@@ -59680,11 +59702,11 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59680
59702
|
info: "border-f1-border-info-bold"
|
|
59681
59703
|
} },
|
|
59682
59704
|
defaultVariants: { status: "default" }
|
|
59683
|
-
}),
|
|
59705
|
+
}), FL = P("group inline-flex h-8 w-fit max-w-full items-center gap-1 rounded border-0 bg-transparent pl-3 pr-2 shadow-none outline-none transition-colors enabled:cursor-pointer enabled:hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover disabled:cursor-not-allowed disabled:bg-f1-background-tertiary disabled:text-f1-foreground-disabled disabled:data-[state=open]:bg-f1-background-tertiary disabled:[&_*]:text-f1-foreground-disabled", Fe({ variant: "label" })), IL = L(function({ label: e, placeholder: t, selection: n, hasValue: r }, i) {
|
|
59684
59706
|
return /* @__PURE__ */ W(rF, {
|
|
59685
59707
|
ref: i,
|
|
59686
59708
|
"aria-label": e,
|
|
59687
|
-
className: P(
|
|
59709
|
+
className: P(FL, F()),
|
|
59688
59710
|
children: [/* @__PURE__ */ U("span", {
|
|
59689
59711
|
className: "flex min-w-0 max-w-full items-center",
|
|
59690
59712
|
children: r ? /* @__PURE__ */ U(vF, {
|
|
@@ -59704,8 +59726,8 @@ var EL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59704
59726
|
})]
|
|
59705
59727
|
});
|
|
59706
59728
|
});
|
|
59707
|
-
|
|
59708
|
-
var
|
|
59729
|
+
IL.displayName = "InlineSelectTrigger";
|
|
59730
|
+
var LL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApplySelection: r = !1, applySelectionLabel: i, onChangeSelectedOption: a, value: o, options: s = [], mapOptions: c, children: l, disabled: d, open: f, defaultOpen: p, hideLabel: m, onOpenChange: h, showSearchBox: g, onSearchChange: _, searchBoxPlaceholder: v, searchEmptyMessage: y, searchEmptyAction: b, spaciousEmptyState: S, size: C, actions: w, onCreate: T, onFiltersChange: D, source: O, label: k, icon: ee, labelIcon: te, clearable: A, loading: j, name: ne, error: re, status: ie, hint: M, required: oe, multiple: N, portalContainer: se, asList: ce = !1, showPreview: le = !1, hideArrow: ue = !1, preserveSelectionOnDatasetChange: de = !0, fitContentWidth: fe, getSelectedLabel: me, dataTestId: ge, ..._e }, ve) {
|
|
59709
59731
|
let ye = it(), be = C ?? "sm", xe = rt(wM), Se = xe.portalContainer && (xe.position === "center" || xe.position === "fullscreen"), Ce = se === void 0 ? Se ? xe.portalContainer : void 0 : se, we = "onSelectItems" in _e ? _e.onSelectItems : void 0, Te = "disableSelectAll" in _e && _e.disableSelectAll, [F, Ee] = pe({
|
|
59710
59732
|
prop: f,
|
|
59711
59733
|
defaultProp: p,
|
|
@@ -59717,7 +59739,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
59717
59739
|
let Ie = B(() => UM(_e.defaultItem).filter((e) => e !== void 0), [_e.defaultItem]), Le = B(() => Ie.map((e) => String(e.value)), [Ie]), [Re, ze] = H(() => (UM(o) ?? Le ?? []).map(String)), Be = e === "inline" && typeof o == "string" ? String(o) : void 0;
|
|
59718
59740
|
z(() => {
|
|
59719
59741
|
let e = (UM(o) ?? []).map(String);
|
|
59720
|
-
if (!(0,
|
|
59742
|
+
if (!(0, AL.isEqual)(e, Re ?? [])) {
|
|
59721
59743
|
let e = UM(o) ?? Le ?? [];
|
|
59722
59744
|
ze(Array.from(new Set(e.map(String))));
|
|
59723
59745
|
}
|
|
@@ -59727,7 +59749,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
59727
59749
|
return {
|
|
59728
59750
|
...O,
|
|
59729
59751
|
dataAdapter: O ? O.dataAdapter : { fetchData: ({ search: e }) => {
|
|
59730
|
-
let t = "searchFn" in _e && _e.searchFn ? _e.searchFn :
|
|
59752
|
+
let t = "searchFn" in _e && _e.searchFn ? _e.searchFn : ML;
|
|
59731
59753
|
return { records: s.filter((n) => t(n, e) ?? !0) };
|
|
59732
59754
|
} }
|
|
59733
59755
|
};
|
|
@@ -59834,7 +59856,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
59834
59856
|
L,
|
|
59835
59857
|
Ie,
|
|
59836
59858
|
me
|
|
59837
|
-
]), gt = B(() => qe.records.some((e) =>
|
|
59859
|
+
]), gt = B(() => qe.records.some((e) => NL(Ke(e)) === "status") || ht.some((e) => NL(e) === "status"), [
|
|
59838
59860
|
qe.records,
|
|
59839
59861
|
Ke,
|
|
59840
59862
|
ht
|
|
@@ -59847,7 +59869,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
59847
59869
|
let xt = (e) => {
|
|
59848
59870
|
bt(), O ? yt.current = setTimeout(() => {
|
|
59849
59871
|
yt.current = null, vt(e);
|
|
59850
|
-
},
|
|
59872
|
+
}, jL) : vt(e);
|
|
59851
59873
|
}, St = N && !ce, Ct = !!(r && St), wt = V(!1), Tt = V(!0), Et = V(null), Dt = V(null), Ot = R((e, t) => {
|
|
59852
59874
|
if (!N && !A && !t && Re[0] === e) return;
|
|
59853
59875
|
wt.current = !0, st(e, t);
|
|
@@ -59979,7 +60001,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
59979
60001
|
de
|
|
59980
60002
|
]);
|
|
59981
60003
|
let Kt = Ge.grouping?.collapsible ?? !1, qt = Ge.grouping?.defaultOpenGroups, { openGroups: Jt, setGroupOpen: Yt } = NM(qe?.type === "grouped" ? qe.groups : [], qt), Xt = R((e, t) => e.map((e, n) => {
|
|
59982
|
-
let r = Ke(e), i =
|
|
60004
|
+
let r = Ke(e), i = NL(r);
|
|
59983
60005
|
if (i !== void 0 && (t.add(i), t.size > 1)) throw Error(`[F0Select] All options must use the same tag type, but multiple were provided: ${Array.from(t).map((e) => `"${e}"`).join(", ")}.`);
|
|
59984
60006
|
return r.type === "separator" ? {
|
|
59985
60007
|
height: 1,
|
|
@@ -60114,7 +60136,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60114
60136
|
Ot
|
|
60115
60137
|
]), dn = !N && ht[0] ? String(dF(ht[0])) : "", fn = N ? Math.max(Re.length, dt.selectedItemsCount) : +!!Re[0], pn = fn > 0, mn = () => {
|
|
60116
60138
|
wt.current = !0, ut(), nt.current.clear(), a?.(void 0, !1);
|
|
60117
|
-
}, { draft: hn, inputRef: gn, focusInput: _n, resetText: vn, handleChange: yn, handleFocus: bn, handleClick: xn, handleBlur: Sn, handleKeyDown: Cn } =
|
|
60139
|
+
}, { draft: hn, inputRef: gn, focusInput: _n, resetText: vn, handleChange: yn, handleFocus: bn, handleClick: xn, handleBlur: Sn, handleKeyDown: Cn } = kL({
|
|
60118
60140
|
enabled: et,
|
|
60119
60141
|
open: !!F,
|
|
60120
60142
|
restingText: et ? dn : "",
|
|
@@ -60182,7 +60204,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60182
60204
|
onCancel: Bt,
|
|
60183
60205
|
showCancelButton: Ct
|
|
60184
60206
|
}),
|
|
60185
|
-
top: /* @__PURE__ */ W(ct, { children: [/* @__PURE__ */ U(
|
|
60207
|
+
top: /* @__PURE__ */ W(ct, { children: [/* @__PURE__ */ U(DL, {
|
|
60186
60208
|
searchValue: Qe,
|
|
60187
60209
|
onSearchChange: vt,
|
|
60188
60210
|
searchBoxPlaceholder: v,
|
|
@@ -60253,7 +60275,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60253
60275
|
disabled: d
|
|
60254
60276
|
}) : null,
|
|
60255
60277
|
/* @__PURE__ */ U("div", {
|
|
60256
|
-
className: P("flex-1 min-h-0",
|
|
60278
|
+
className: P("flex-1 min-h-0", PL({ status: re ? "error" : ie?.type ? ie?.type : "default" })),
|
|
60257
60279
|
children: /* @__PURE__ */ U(TP, {
|
|
60258
60280
|
...on,
|
|
60259
60281
|
children: Dn
|
|
@@ -60265,7 +60287,7 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60265
60287
|
});
|
|
60266
60288
|
let Pn = /* @__PURE__ */ W(TP, {
|
|
60267
60289
|
...on,
|
|
60268
|
-
children: [e === "inline" ? /* @__PURE__ */ U(
|
|
60290
|
+
children: [e === "inline" ? /* @__PURE__ */ U(IL, {
|
|
60269
60291
|
ref: Ne,
|
|
60270
60292
|
label: k,
|
|
60271
60293
|
placeholder: t,
|
|
@@ -60356,6 +60378,6 @@ var IL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60356
60378
|
dataTestId: ge,
|
|
60357
60379
|
children: e === "inline" ? Pn : Nn(Pn)
|
|
60358
60380
|
});
|
|
60359
|
-
}),
|
|
60381
|
+
}), RL = ge("F0Select", LL);
|
|
60360
60382
|
//#endregion
|
|
60361
|
-
export { dM as $, Co as $n, AS as $t, aF as A, Ns as An, ht as Ar, nw as At, zM as B, es as Bn, TC as Bt, PF as C, Us as Cn, St as Cr, fw as Ct, SF as D, Bs as Dn, vt as Dr, sw as Dt, OF as E, q as En, yt as Er, lw as Et, UP as F, ps as Fn, GC as Ft, AM as G, Ho as Gn, DC as Gt, NM as H, Xo as Hn, AC as Ht, TP as I, ds as In, VC as It, EM as J, Mo as Jn, ZS as Jt, wM as K, zo as Kn, kC as Kt, UM as L, us as Ln, RC as Lt, tF as M, Ds as Mn, pt as Mr, QC as Mt, ZP as N, Ts as Nn, ft as Nr, XC as Nt, vF as O, Rs as On, _t as Or, ow as Ot, IP as P, Es as Pn, dt as Pr, JC as Pt, mM as Q, wo as Qn, OS as Qt, HM as R, ls as Rn, LC as Rt, FF as S, Ys as Sn, Ct as Sr, _w as St, kF as T, Vs as Tn, bt as Tr, uw as Tt, kM as U, Go as Un, PC as Ut, FM as V, $o as Vn, NC as Vt, OM as W, Uo as Wn, jC as Wt, _M as X, ko as Xn, jS as Xt, CM as Y, jo as Yn, XS as Yt, gM as Z, To as Zn, kS as Zt, JF as _, $s as _n, Ot as _r, RE as _t,
|
|
60383
|
+
export { dM as $, Co as $n, AS as $t, aF as A, Ns as An, ht as Ar, nw as At, zM as B, es as Bn, TC as Bt, PF as C, Us as Cn, St as Cr, fw as Ct, SF as D, Bs as Dn, vt as Dr, sw as Dt, OF as E, q as En, yt as Er, lw as Et, UP as F, ps as Fn, GC as Ft, AM as G, Ho as Gn, DC as Gt, NM as H, Xo as Hn, AC as Ht, TP as I, ds as In, VC as It, EM as J, Mo as Jn, ZS as Jt, wM as K, zo as Kn, kC as Kt, UM as L, us as Ln, RC as Lt, tF as M, Ds as Mn, pt as Mr, QC as Mt, ZP as N, Ts as Nn, ft as Nr, XC as Nt, vF as O, Rs as On, _t as Or, ow as Ot, IP as P, Es as Pn, dt as Pr, JC as Pt, mM as Q, wo as Qn, OS as Qt, HM as R, ls as Rn, LC as Rt, FF as S, Ys as Sn, Ct as Sr, _w as St, kF as T, Vs as Tn, bt as Tr, uw as Tt, kM as U, Go as Un, PC as Ut, FM as V, $o as Vn, NC as Vt, OM as W, Uo as Wn, jC as Wt, _M as X, ko as Xn, jS as Xt, CM as Y, jo as Yn, XS as Yt, gM as Z, To as Zn, kS as Zt, JF as _, $s as _n, Ot as _r, RE as _t, sL as a, Bu as an, qa as ar, Ek as at, LF as b, Zs as bn, Tt as br, Sw as bt, iL as c, Nu as cn, ja as cr, cD as ct, XI as d, Ic as dn, Pt as dr, GE as dt, TS as en, bo as er, lM as et, UI as f, gc as fn, Nt as fr, UE as ft, XF as g, ic as gn, kt as gr, zE as gt, iI as h, cc as hn, At as hr, LE as ht, yL as i, Wu as in, Ja as ir, Ok as it, nF as j, Ms as jn, mt as jr, ew as jt, dF as k, Fs as kn, gt as kr, rw as kt, eL as l, Sl as ln, Oa as lr, oD as lt, rI as m, dc as mn, jt as mr, BE as mt, LL as n, wS as nn, to as nr, iM as nt, oL as o, Lu as on, Wa as or, Tk as ot, AI as p, pc as pn, Mt as pr, HE as pt, TM as q, Lo as qn, FC as qt, TL as r, Uu as rn, Ya as rr, GA as rt, aL as s, Fu as sn, Ua as sr, mk as st, RL as t, DS as tn, vo as tr, rM as tt, $I as u, ul as un, Ft as ur, KE as ut, GF as v, qs as vn, Dt as vr, rE as vt, jF as w, Hs as wn, xt as wr, dw as wt, IF as x, Xs as xn, wt as xr, bw as xt, WF as y, Ks as yn, Et as yr, zT as yt, VM as z, as as zn, OC as zt };
|